source: trunk/vizservers/configure @ 916

Last change on this file since 916 was 916, checked in by gah, 15 years ago
  • Property svn:executable set to *
File size: 155.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 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 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  # Zsh 3.x and 4.x performs 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
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""        $as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135         X"$0" : 'X\(//\)$' \| \
136         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139            s//\1/
140            q
141          }
142          /^X\/\(\/\/\)$/{
143            s//\1/
144            q
145          }
146          /^X\/\(\/\).*/{
147            s//\1/
148            q
149          }
150          s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes &&     (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229         /*)
230           for as_base in sh bash ksh sh5; do
231             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232           done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239         # Try only shells that exist, to save several forks.
240         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261               as_have_required=yes
262               if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536        case $1 in
537        -*)set "./$1";;
538        esac;
539        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540        ???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 7<&0 </dev/null 6>&1
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='vizservers'
576PACKAGE_TARNAME='vizservers'
577PACKAGE_VERSION='0.1'
578PACKAGE_STRING='vizservers 0.1'
579PACKAGE_BUGREPORT='rappture@nanohub.org'
580
581# Factoring default headers for most tests.
582ac_includes_default="\
583#include <stdio.h>
584#ifdef HAVE_SYS_TYPES_H
585# include <sys/types.h>
586#endif
587#ifdef HAVE_SYS_STAT_H
588# include <sys/stat.h>
589#endif
590#ifdef STDC_HEADERS
591# include <stdlib.h>
592# include <stddef.h>
593#else
594# ifdef HAVE_STDLIB_H
595#  include <stdlib.h>
596# endif
597#endif
598#ifdef HAVE_STRING_H
599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600#  include <memory.h>
601# endif
602# include <string.h>
603#endif
604#ifdef HAVE_STRINGS_H
605# include <strings.h>
606#endif
607#ifdef HAVE_INTTYPES_H
608# include <inttypes.h>
609#endif
610#ifdef HAVE_STDINT_H
611# include <stdint.h>
612#endif
613#ifdef HAVE_UNISTD_H
614# include <unistd.h>
615#endif"
616
617ac_subst_vars='SHELL
618PATH_SEPARATOR
619PACKAGE_NAME
620PACKAGE_TARNAME
621PACKAGE_VERSION
622PACKAGE_STRING
623PACKAGE_BUGREPORT
624exec_prefix
625prefix
626program_transform_name
627bindir
628sbindir
629libexecdir
630datarootdir
631datadir
632sysconfdir
633sharedstatedir
634localstatedir
635includedir
636oldincludedir
637docdir
638infodir
639htmldir
640dvidir
641pdfdir
642psdir
643libdir
644localedir
645mandir
646DEFS
647ECHO_C
648ECHO_N
649ECHO_T
650LIBS
651build_alias
652host_alias
653target_alias
654VERSION
655LIB_SEARCH_DIRS
656INSTALL_PROGRAM
657INSTALL_SCRIPT
658INSTALL_DATA
659SET_MAKE
660CC
661CFLAGS
662LDFLAGS
663CPPFLAGS
664ac_ct_CC
665EXEEXT
666OBJEXT
667RANLIB
668CXX
669CXXFLAGS
670ac_ct_CXX
671SUBDIRS
672CXXCPP
673GREP
674EGREP
675TCL_LIB_DIR
676TCL_LIB
677TCL_LIB_VERSION
678TCL_INCL_DIR
679RP2_INCL_DIR
680RP_DIR
681LIBOBJS
682LTLIBOBJS'
683ac_subst_files=''
684      ac_precious_vars='build_alias
685host_alias
686target_alias
687CC
688CFLAGS
689LDFLAGS
690LIBS
691CPPFLAGS
692CXX
693CXXFLAGS
694CCC
695CXXCPP'
696
697
698# Initialize some variables set by options.
699ac_init_help=
700ac_init_version=false
701# The variables have the same names as the options, with
702# dashes changed to underlines.
703cache_file=/dev/null
704exec_prefix=NONE
705no_create=
706no_recursion=
707prefix=NONE
708program_prefix=NONE
709program_suffix=NONE
710program_transform_name=s,x,x,
711silent=
712site=
713srcdir=
714verbose=
715x_includes=NONE
716x_libraries=NONE
717
718# Installation directory options.
719# These are left unexpanded so users can "make install exec_prefix=/foo"
720# and all the variables that are supposed to be based on exec_prefix
721# by default will actually change.
722# Use braces instead of parens because sh, perl, etc. also accept them.
723# (The list follows the same order as the GNU Coding Standards.)
724bindir='${exec_prefix}/bin'
725sbindir='${exec_prefix}/sbin'
726libexecdir='${exec_prefix}/libexec'
727datarootdir='${prefix}/share'
728datadir='${datarootdir}'
729sysconfdir='${prefix}/etc'
730sharedstatedir='${prefix}/com'
731localstatedir='${prefix}/var'
732includedir='${prefix}/include'
733oldincludedir='/usr/include'
734docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
735infodir='${datarootdir}/info'
736htmldir='${docdir}'
737dvidir='${docdir}'
738pdfdir='${docdir}'
739psdir='${docdir}'
740libdir='${exec_prefix}/lib'
741localedir='${datarootdir}/locale'
742mandir='${datarootdir}/man'
743
744ac_prev=
745ac_dashdash=
746for ac_option
747do
748  # If the previous option needs an argument, assign it.
749  if test -n "$ac_prev"; then
750    eval $ac_prev=\$ac_option
751    ac_prev=
752    continue
753  fi
754
755  case $ac_option in
756  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
757  *)    ac_optarg=yes ;;
758  esac
759
760  # Accept the important Cygnus configure options, so we can diagnose typos.
761
762  case $ac_dashdash$ac_option in
763  --)
764    ac_dashdash=yes ;;
765
766  -bindir | --bindir | --bindi | --bind | --bin | --bi)
767    ac_prev=bindir ;;
768  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
769    bindir=$ac_optarg ;;
770
771  -build | --build | --buil | --bui | --bu)
772    ac_prev=build_alias ;;
773  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
774    build_alias=$ac_optarg ;;
775
776  -cache-file | --cache-file | --cache-fil | --cache-fi \
777  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
778    ac_prev=cache_file ;;
779  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
780  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
781    cache_file=$ac_optarg ;;
782
783  --config-cache | -C)
784    cache_file=config.cache ;;
785
786  -datadir | --datadir | --datadi | --datad)
787    ac_prev=datadir ;;
788  -datadir=* | --datadir=* | --datadi=* | --datad=*)
789    datadir=$ac_optarg ;;
790
791  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
792  | --dataroo | --dataro | --datar)
793    ac_prev=datarootdir ;;
794  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
795  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
796    datarootdir=$ac_optarg ;;
797
798  -disable-* | --disable-*)
799    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
800    # Reject names that are not valid shell variable names.
801    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
803   { (exit 1); exit 1; }; }
804    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
805    eval enable_$ac_feature=no ;;
806
807  -docdir | --docdir | --docdi | --doc | --do)
808    ac_prev=docdir ;;
809  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
810    docdir=$ac_optarg ;;
811
812  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
813    ac_prev=dvidir ;;
814  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
815    dvidir=$ac_optarg ;;
816
817  -enable-* | --enable-*)
818    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
819    # Reject names that are not valid shell variable names.
820    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
821      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
822   { (exit 1); exit 1; }; }
823    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
824    eval enable_$ac_feature=\$ac_optarg ;;
825
826  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
827  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
828  | --exec | --exe | --ex)
829    ac_prev=exec_prefix ;;
830  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
831  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
832  | --exec=* | --exe=* | --ex=*)
833    exec_prefix=$ac_optarg ;;
834
835  -gas | --gas | --ga | --g)
836    # Obsolete; use --with-gas.
837    with_gas=yes ;;
838
839  -help | --help | --hel | --he | -h)
840    ac_init_help=long ;;
841  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
842    ac_init_help=recursive ;;
843  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
844    ac_init_help=short ;;
845
846  -host | --host | --hos | --ho)
847    ac_prev=host_alias ;;
848  -host=* | --host=* | --hos=* | --ho=*)
849    host_alias=$ac_optarg ;;
850
851  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
852    ac_prev=htmldir ;;
853  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
854  | --ht=*)
855    htmldir=$ac_optarg ;;
856
857  -includedir | --includedir | --includedi | --included | --include \
858  | --includ | --inclu | --incl | --inc)
859    ac_prev=includedir ;;
860  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
861  | --includ=* | --inclu=* | --incl=* | --inc=*)
862    includedir=$ac_optarg ;;
863
864  -infodir | --infodir | --infodi | --infod | --info | --inf)
865    ac_prev=infodir ;;
866  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
867    infodir=$ac_optarg ;;
868
869  -libdir | --libdir | --libdi | --libd)
870    ac_prev=libdir ;;
871  -libdir=* | --libdir=* | --libdi=* | --libd=*)
872    libdir=$ac_optarg ;;
873
874  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
875  | --libexe | --libex | --libe)
876    ac_prev=libexecdir ;;
877  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
878  | --libexe=* | --libex=* | --libe=*)
879    libexecdir=$ac_optarg ;;
880
881  -localedir | --localedir | --localedi | --localed | --locale)
882    ac_prev=localedir ;;
883  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
884    localedir=$ac_optarg ;;
885
886  -localstatedir | --localstatedir | --localstatedi | --localstated \
887  | --localstate | --localstat | --localsta | --localst | --locals)
888    ac_prev=localstatedir ;;
889  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
890  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
891    localstatedir=$ac_optarg ;;
892
893  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
894    ac_prev=mandir ;;
895  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
896    mandir=$ac_optarg ;;
897
898  -nfp | --nfp | --nf)
899    # Obsolete; use --without-fp.
900    with_fp=no ;;
901
902  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
903  | --no-cr | --no-c | -n)
904    no_create=yes ;;
905
906  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
907  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
908    no_recursion=yes ;;
909
910  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
911  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
912  | --oldin | --oldi | --old | --ol | --o)
913    ac_prev=oldincludedir ;;
914  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
915  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
916  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
917    oldincludedir=$ac_optarg ;;
918
919  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
920    ac_prev=prefix ;;
921  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
922    prefix=$ac_optarg ;;
923
924  -program-prefix | --program-prefix | --program-prefi | --program-pref \
925  | --program-pre | --program-pr | --program-p)
926    ac_prev=program_prefix ;;
927  -program-prefix=* | --program-prefix=* | --program-prefi=* \
928  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
929    program_prefix=$ac_optarg ;;
930
931  -program-suffix | --program-suffix | --program-suffi | --program-suff \
932  | --program-suf | --program-su | --program-s)
933    ac_prev=program_suffix ;;
934  -program-suffix=* | --program-suffix=* | --program-suffi=* \
935  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
936    program_suffix=$ac_optarg ;;
937
938  -program-transform-name | --program-transform-name \
939  | --program-transform-nam | --program-transform-na \
940  | --program-transform-n | --program-transform- \
941  | --program-transform | --program-transfor \
942  | --program-transfo | --program-transf \
943  | --program-trans | --program-tran \
944  | --progr-tra | --program-tr | --program-t)
945    ac_prev=program_transform_name ;;
946  -program-transform-name=* | --program-transform-name=* \
947  | --program-transform-nam=* | --program-transform-na=* \
948  | --program-transform-n=* | --program-transform-=* \
949  | --program-transform=* | --program-transfor=* \
950  | --program-transfo=* | --program-transf=* \
951  | --program-trans=* | --program-tran=* \
952  | --progr-tra=* | --program-tr=* | --program-t=*)
953    program_transform_name=$ac_optarg ;;
954
955  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
956    ac_prev=pdfdir ;;
957  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
958    pdfdir=$ac_optarg ;;
959
960  -psdir | --psdir | --psdi | --psd | --ps)
961    ac_prev=psdir ;;
962  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
963    psdir=$ac_optarg ;;
964
965  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
966  | -silent | --silent | --silen | --sile | --sil)
967    silent=yes ;;
968
969  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
970    ac_prev=sbindir ;;
971  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
972  | --sbi=* | --sb=*)
973    sbindir=$ac_optarg ;;
974
975  -sharedstatedir | --sharedstatedir | --sharedstatedi \
976  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
977  | --sharedst | --shareds | --shared | --share | --shar \
978  | --sha | --sh)
979    ac_prev=sharedstatedir ;;
980  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
981  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
982  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
983  | --sha=* | --sh=*)
984    sharedstatedir=$ac_optarg ;;
985
986  -site | --site | --sit)
987    ac_prev=site ;;
988  -site=* | --site=* | --sit=*)
989    site=$ac_optarg ;;
990
991  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
992    ac_prev=srcdir ;;
993  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
994    srcdir=$ac_optarg ;;
995
996  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
997  | --syscon | --sysco | --sysc | --sys | --sy)
998    ac_prev=sysconfdir ;;
999  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1000  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1001    sysconfdir=$ac_optarg ;;
1002
1003  -target | --target | --targe | --targ | --tar | --ta | --t)
1004    ac_prev=target_alias ;;
1005  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1006    target_alias=$ac_optarg ;;
1007
1008  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1009    verbose=yes ;;
1010
1011  -version | --version | --versio | --versi | --vers | -V)
1012    ac_init_version=: ;;
1013
1014  -with-* | --with-*)
1015    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid package name: $ac_package" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1021    eval with_$ac_package=\$ac_optarg ;;
1022
1023  -without-* | --without-*)
1024    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1025    # Reject names that are not valid shell variable names.
1026    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027      { echo "$as_me: error: invalid package name: $ac_package" >&2
1028   { (exit 1); exit 1; }; }
1029    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1030    eval with_$ac_package=no ;;
1031
1032  --x)
1033    # Obsolete; use --with-x.
1034    with_x=yes ;;
1035
1036  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1037  | --x-incl | --x-inc | --x-in | --x-i)
1038    ac_prev=x_includes ;;
1039  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1040  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1041    x_includes=$ac_optarg ;;
1042
1043  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1044  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1045    ac_prev=x_libraries ;;
1046  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1047  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1048    x_libraries=$ac_optarg ;;
1049
1050  -*) { echo "$as_me: error: unrecognized option: $ac_option
1051Try \`$0 --help' for more information." >&2
1052   { (exit 1); exit 1; }; }
1053    ;;
1054
1055  *=*)
1056    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1059      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1060   { (exit 1); exit 1; }; }
1061    eval $ac_envvar=\$ac_optarg
1062    export $ac_envvar ;;
1063
1064  *)
1065    # FIXME: should be removed in autoconf 3.0.
1066    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1067    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1069    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1070    ;;
1071
1072  esac
1073done
1074
1075if test -n "$ac_prev"; then
1076  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1077  { echo "$as_me: error: missing argument to $ac_option" >&2
1078   { (exit 1); exit 1; }; }
1079fi
1080
1081# Be sure to have absolute directory names.
1082for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1083                datadir sysconfdir sharedstatedir localstatedir includedir \
1084                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1085                libdir localedir mandir
1086do
1087  eval ac_val=\$$ac_var
1088  case $ac_val in
1089    [\\/$]* | ?:[\\/]* )  continue;;
1090    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1091  esac
1092  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1093   { (exit 1); exit 1; }; }
1094done
1095
1096# There might be people who depend on the old broken behavior: `$host'
1097# used to hold the argument of --host etc.
1098# FIXME: To remove some day.
1099build=$build_alias
1100host=$host_alias
1101target=$target_alias
1102
1103# FIXME: To remove some day.
1104if test "x$host_alias" != x; then
1105  if test "x$build_alias" = x; then
1106    cross_compiling=maybe
1107    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1108    If a cross compiler is detected then cross compile mode will be used." >&2
1109  elif test "x$build_alias" != "x$host_alias"; then
1110    cross_compiling=yes
1111  fi
1112fi
1113
1114ac_tool_prefix=
1115test -n "$host_alias" && ac_tool_prefix=$host_alias-
1116
1117test "$silent" = yes && exec 6>/dev/null
1118
1119
1120ac_pwd=`pwd` && test -n "$ac_pwd" &&
1121ac_ls_di=`ls -di .` &&
1122ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1123  { echo "$as_me: error: Working directory cannot be determined" >&2
1124   { (exit 1); exit 1; }; }
1125test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1126  { echo "$as_me: error: pwd does not report name of working directory" >&2
1127   { (exit 1); exit 1; }; }
1128
1129
1130# Find the source files, if location was not specified.
1131if test -z "$srcdir"; then
1132  ac_srcdir_defaulted=yes
1133  # Try the directory containing this script, then the parent directory.
1134  ac_confdir=`$as_dirname -- "$0" ||
1135$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1136         X"$0" : 'X\(//\)[^/]' \| \
1137         X"$0" : 'X\(//\)$' \| \
1138         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1139echo X"$0" |
1140    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1141            s//\1/
1142            q
1143          }
1144          /^X\(\/\/\)[^/].*/{
1145            s//\1/
1146            q
1147          }
1148          /^X\(\/\/\)$/{
1149            s//\1/
1150            q
1151          }
1152          /^X\(\/\).*/{
1153            s//\1/
1154            q
1155          }
1156          s/.*/./; q'`
1157  srcdir=$ac_confdir
1158  if test ! -r "$srcdir/$ac_unique_file"; then
1159    srcdir=..
1160  fi
1161else
1162  ac_srcdir_defaulted=no
1163fi
1164if test ! -r "$srcdir/$ac_unique_file"; then
1165  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1166  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1167   { (exit 1); exit 1; }; }
1168fi
1169ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1170ac_abs_confdir=`(
1171        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1172   { (exit 1); exit 1; }; }
1173        pwd)`
1174# When building in place, set srcdir=.
1175if test "$ac_abs_confdir" = "$ac_pwd"; then
1176  srcdir=.
1177fi
1178# Remove unnecessary trailing slashes from srcdir.
1179# Double slashes in file names in object file debugging info
1180# mess up M-x gdb in Emacs.
1181case $srcdir in
1182*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1183esac
1184for ac_var in $ac_precious_vars; do
1185  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1186  eval ac_env_${ac_var}_value=\$${ac_var}
1187  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1188  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1189done
1190
1191#
1192# Report the --help message.
1193#
1194if test "$ac_init_help" = "long"; then
1195  # Omit some internal or obsolete options to make the list less imposing.
1196  # This message is too long to be a string in the A/UX 3.1 sh.
1197  cat <<_ACEOF
1198\`configure' configures vizservers 0.1 to adapt to many kinds of systems.
1199
1200Usage: $0 [OPTION]... [VAR=VALUE]...
1201
1202To assign environment variables (e.g., CC, CFLAGS...), specify them as
1203VAR=VALUE.  See below for descriptions of some of the useful variables.
1204
1205Defaults for the options are specified in brackets.
1206
1207Configuration:
1208  -h, --help              display this help and exit
1209      --help=short        display options specific to this package
1210      --help=recursive    display the short help of all the included packages
1211  -V, --version           display version information and exit
1212  -q, --quiet, --silent   do not print \`checking...' messages
1213      --cache-file=FILE   cache test results in FILE [disabled]
1214  -C, --config-cache      alias for \`--cache-file=config.cache'
1215  -n, --no-create         do not create output files
1216      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1217
1218Installation directories:
1219  --prefix=PREFIX         install architecture-independent files in PREFIX
1220                          [$ac_default_prefix]
1221  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1222                          [PREFIX]
1223
1224By default, \`make install' will install all the files in
1225\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1226an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1227for instance \`--prefix=\$HOME'.
1228
1229For better control, use the options below.
1230
1231Fine tuning of the installation directories:
1232  --bindir=DIR           user executables [EPREFIX/bin]
1233  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1234  --libexecdir=DIR       program executables [EPREFIX/libexec]
1235  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1236  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1237  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1238  --libdir=DIR           object code libraries [EPREFIX/lib]
1239  --includedir=DIR       C header files [PREFIX/include]
1240  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1241  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1242  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1243  --infodir=DIR          info documentation [DATAROOTDIR/info]
1244  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1245  --mandir=DIR           man documentation [DATAROOTDIR/man]
1246  --docdir=DIR           documentation root [DATAROOTDIR/doc/vizservers]
1247  --htmldir=DIR          html documentation [DOCDIR]
1248  --dvidir=DIR           dvi documentation [DOCDIR]
1249  --pdfdir=DIR           pdf documentation [DOCDIR]
1250  --psdir=DIR            ps documentation [DOCDIR]
1251_ACEOF
1252
1253  cat <<\_ACEOF
1254_ACEOF
1255fi
1256
1257if test -n "$ac_init_help"; then
1258  case $ac_init_help in
1259     short | recursive ) echo "Configuration of vizservers 0.1:";;
1260   esac
1261  cat <<\_ACEOF
1262
1263Optional Packages:
1264  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1265  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1266  --with-tcllib=DIR       location of Tcl binary library libtclstubs.a
1267                          [default=/usr/lib]
1268  --with-tclinclude=DIR   location of tcl.h header file [default=/usr/include]
1269  --with-rappture=DIR     location of rappture files lib/librappture2.a and
1270                          include/rappture2/rappture2.h [default=/usr]
1271
1272Some influential environment variables:
1273  CC          C compiler command
1274  CFLAGS      C compiler flags
1275  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1276              nonstandard directory <lib dir>
1277  LIBS        libraries to pass to the linker, e.g. -l<library>
1278  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1279              you have headers in a nonstandard directory <include dir>
1280  CXX         C++ compiler command
1281  CXXFLAGS    C++ compiler flags
1282  CXXCPP      C++ preprocessor
1283
1284Use these variables to override the choices made by `configure' or to help
1285it to find libraries and programs with nonstandard names/locations.
1286
1287Report bugs to <rappture@nanohub.org>.
1288_ACEOF
1289ac_status=$?
1290fi
1291
1292if test "$ac_init_help" = "recursive"; then
1293  # If there are subdirs, report their specific --help.
1294  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1295    test -d "$ac_dir" || continue
1296    ac_builddir=.
1297
1298case "$ac_dir" in
1299.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1300*)
1301  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1302  # A ".." for each directory in $ac_dir_suffix.
1303  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1304  case $ac_top_builddir_sub in
1305  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1306  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1307  esac ;;
1308esac
1309ac_abs_top_builddir=$ac_pwd
1310ac_abs_builddir=$ac_pwd$ac_dir_suffix
1311# for backward compatibility:
1312ac_top_builddir=$ac_top_build_prefix
1313
1314case $srcdir in
1315  .)  # We are building in place.
1316    ac_srcdir=.
1317    ac_top_srcdir=$ac_top_builddir_sub
1318    ac_abs_top_srcdir=$ac_pwd ;;
1319  [\\/]* | ?:[\\/]* )  # Absolute name.
1320    ac_srcdir=$srcdir$ac_dir_suffix;
1321    ac_top_srcdir=$srcdir
1322    ac_abs_top_srcdir=$srcdir ;;
1323  *) # Relative name.
1324    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1325    ac_top_srcdir=$ac_top_build_prefix$srcdir
1326    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1327esac
1328ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1329
1330    cd "$ac_dir" || { ac_status=$?; continue; }
1331    # Check for guested configure.
1332    if test -f "$ac_srcdir/configure.gnu"; then
1333      echo &&
1334      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1335    elif test -f "$ac_srcdir/configure"; then
1336      echo &&
1337      $SHELL "$ac_srcdir/configure" --help=recursive
1338    else
1339      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1340    fi || ac_status=$?
1341    cd "$ac_pwd" || { ac_status=$?; break; }
1342  done
1343fi
1344
1345test -n "$ac_init_help" && exit $ac_status
1346if $ac_init_version; then
1347  cat <<\_ACEOF
1348vizservers configure 0.1
1349generated by GNU Autoconf 2.61
1350
1351Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13522002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1353This configure script is free software; the Free Software Foundation
1354gives unlimited permission to copy, distribute and modify it.
1355_ACEOF
1356  exit
1357fi
1358cat >config.log <<_ACEOF
1359This file contains any messages produced by compilers while
1360running configure, to aid debugging if configure makes a mistake.
1361
1362It was created by vizservers $as_me 0.1, which was
1363generated by GNU Autoconf 2.61.  Invocation command line was
1364
1365  $ $0 $@
1366
1367_ACEOF
1368exec 5>>config.log
1369{
1370cat <<_ASUNAME
1371## --------- ##
1372## Platform. ##
1373## --------- ##
1374
1375hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1376uname -m = `(uname -m) 2>/dev/null || echo unknown`
1377uname -r = `(uname -r) 2>/dev/null || echo unknown`
1378uname -s = `(uname -s) 2>/dev/null || echo unknown`
1379uname -v = `(uname -v) 2>/dev/null || echo unknown`
1380
1381/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1382/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1383
1384/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1385/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1386/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1387/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1388/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1389/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1390/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1391
1392_ASUNAME
1393
1394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1395for as_dir in $PATH
1396do
1397  IFS=$as_save_IFS
1398  test -z "$as_dir" && as_dir=.
1399  echo "PATH: $as_dir"
1400done
1401IFS=$as_save_IFS
1402
1403} >&5
1404
1405cat >&5 <<_ACEOF
1406
1407
1408## ----------- ##
1409## Core tests. ##
1410## ----------- ##
1411
1412_ACEOF
1413
1414
1415# Keep a trace of the command line.
1416# Strip out --no-create and --no-recursion so they do not pile up.
1417# Strip out --silent because we don't want to record it for future runs.
1418# Also quote any args containing shell meta-characters.
1419# Make two passes to allow for proper duplicate-argument suppression.
1420ac_configure_args=
1421ac_configure_args0=
1422ac_configure_args1=
1423ac_must_keep_next=false
1424for ac_pass in 1 2
1425do
1426  for ac_arg
1427  do
1428    case $ac_arg in
1429    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1430    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1431    | -silent | --silent | --silen | --sile | --sil)
1432      continue ;;
1433    *\'*)
1434      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1435    esac
1436    case $ac_pass in
1437    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1438    2)
1439      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1440      if test $ac_must_keep_next = true; then
1441        ac_must_keep_next=false # Got value, back to normal.
1442      else
1443        case $ac_arg in
1444          *=* | --config-cache | -C | -disable-* | --disable-* \
1445          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1446          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1447          | -with-* | --with-* | -without-* | --without-* | --x)
1448            case "$ac_configure_args0 " in
1449              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1450            esac
1451            ;;
1452          -* ) ac_must_keep_next=true ;;
1453        esac
1454      fi
1455      ac_configure_args="$ac_configure_args '$ac_arg'"
1456      ;;
1457    esac
1458  done
1459done
1460$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1461$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1462
1463# When interrupted or exit'd, cleanup temporary files, and complete
1464# config.log.  We remove comments because anyway the quotes in there
1465# would cause problems or look ugly.
1466# WARNING: Use '\'' to represent an apostrophe within the trap.
1467# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1468trap 'exit_status=$?
1469  # Save into config.log some information that might help in debugging.
1470  {
1471    echo
1472
1473    cat <<\_ASBOX
1474## ---------------- ##
1475## Cache variables. ##
1476## ---------------- ##
1477_ASBOX
1478    echo
1479    # The following way of writing the cache mishandles newlines in values,
1480(
1481  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1482    eval ac_val=\$$ac_var
1483    case $ac_val in #(
1484    *${as_nl}*)
1485      case $ac_var in #(
1486      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1487echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1488      esac
1489      case $ac_var in #(
1490      _ | IFS | as_nl) ;; #(
1491      *) $as_unset $ac_var ;;
1492      esac ;;
1493    esac
1494  done
1495  (set) 2>&1 |
1496    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1497    *${as_nl}ac_space=\ *)
1498      sed -n \
1499        "s/'\''/'\''\\\\'\'''\''/g;
1500          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1501      ;; #(
1502    *)
1503      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1504      ;;
1505    esac |
1506    sort
1507)
1508    echo
1509
1510    cat <<\_ASBOX
1511## ----------------- ##
1512## Output variables. ##
1513## ----------------- ##
1514_ASBOX
1515    echo
1516    for ac_var in $ac_subst_vars
1517    do
1518      eval ac_val=\$$ac_var
1519      case $ac_val in
1520      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1521      esac
1522      echo "$ac_var='\''$ac_val'\''"
1523    done | sort
1524    echo
1525
1526    if test -n "$ac_subst_files"; then
1527      cat <<\_ASBOX
1528## ------------------- ##
1529## File substitutions. ##
1530## ------------------- ##
1531_ASBOX
1532      echo
1533      for ac_var in $ac_subst_files
1534      do
1535        eval ac_val=\$$ac_var
1536        case $ac_val in
1537        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1538        esac
1539        echo "$ac_var='\''$ac_val'\''"
1540      done | sort
1541      echo
1542    fi
1543
1544    if test -s confdefs.h; then
1545      cat <<\_ASBOX
1546## ----------- ##
1547## confdefs.h. ##
1548## ----------- ##
1549_ASBOX
1550      echo
1551      cat confdefs.h
1552      echo
1553    fi
1554    test "$ac_signal" != 0 &&
1555      echo "$as_me: caught signal $ac_signal"
1556    echo "$as_me: exit $exit_status"
1557  } >&5
1558  rm -f core *.core core.conftest.* &&
1559    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1560    exit $exit_status
1561' 0
1562for ac_signal in 1 2 13 15; do
1563  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1564done
1565ac_signal=0
1566
1567# confdefs.h avoids OS command line length limits that DEFS can exceed.
1568rm -f -r conftest* confdefs.h
1569
1570# Predefined preprocessor variables.
1571
1572cat >>confdefs.h <<_ACEOF
1573#define PACKAGE_NAME "$PACKAGE_NAME"
1574_ACEOF
1575
1576
1577cat >>confdefs.h <<_ACEOF
1578#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1579_ACEOF
1580
1581
1582cat >>confdefs.h <<_ACEOF
1583#define PACKAGE_VERSION "$PACKAGE_VERSION"
1584_ACEOF
1585
1586
1587cat >>confdefs.h <<_ACEOF
1588#define PACKAGE_STRING "$PACKAGE_STRING"
1589_ACEOF
1590
1591
1592cat >>confdefs.h <<_ACEOF
1593#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1594_ACEOF
1595
1596
1597# Let the site file select an alternate cache file if it wants to.
1598# Prefer explicitly selected file to automatically selected ones.
1599if test -n "$CONFIG_SITE"; then
1600  set x "$CONFIG_SITE"
1601elif test "x$prefix" != xNONE; then
1602  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1603else
1604  set x "$ac_default_prefix/share/config.site" \
1605        "$ac_default_prefix/etc/config.site"
1606fi
1607shift
1608for ac_site_file
1609do
1610  if test -r "$ac_site_file"; then
1611    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1612echo "$as_me: loading site script $ac_site_file" >&6;}
1613    sed 's/^/| /' "$ac_site_file" >&5
1614    . "$ac_site_file"
1615  fi
1616done
1617
1618if test -r "$cache_file"; then
1619  # Some versions of bash will fail to source /dev/null (special
1620  # files actually), so we avoid doing that.
1621  if test -f "$cache_file"; then
1622    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1623echo "$as_me: loading cache $cache_file" >&6;}
1624    case $cache_file in
1625      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1626      *)                      . "./$cache_file";;
1627    esac
1628  fi
1629else
1630  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1631echo "$as_me: creating cache $cache_file" >&6;}
1632  >$cache_file
1633fi
1634
1635# Check that the precious variables saved in the cache have kept the same
1636# value.
1637ac_cache_corrupted=false
1638for ac_var in $ac_precious_vars; do
1639  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1640  eval ac_new_set=\$ac_env_${ac_var}_set
1641  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1642  eval ac_new_val=\$ac_env_${ac_var}_value
1643  case $ac_old_set,$ac_new_set in
1644    set,)
1645      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1646echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1647      ac_cache_corrupted=: ;;
1648    ,set)
1649      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1650echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1651      ac_cache_corrupted=: ;;
1652    ,);;
1653    *)
1654      if test "x$ac_old_val" != "x$ac_new_val"; then
1655        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1656echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1657        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1658echo "$as_me:   former value:  $ac_old_val" >&2;}
1659        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1660echo "$as_me:   current value: $ac_new_val" >&2;}
1661        ac_cache_corrupted=:
1662      fi;;
1663  esac
1664  # Pass precious variables to config.status.
1665  if test "$ac_new_set" = set; then
1666    case $ac_new_val in
1667    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1668    *) ac_arg=$ac_var=$ac_new_val ;;
1669    esac
1670    case " $ac_configure_args " in
1671      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1672      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1673    esac
1674  fi
1675done
1676if $ac_cache_corrupted; then
1677  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1678echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1679  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1680echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1681   { (exit 1); exit 1; }; }
1682fi
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708ac_ext=c
1709ac_cpp='$CPP $CPPFLAGS'
1710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1712ac_compiler_gnu=$ac_cv_c_compiler_gnu
1713
1714
1715
1716VERSION=0.0.1
1717
1718
1719#------------------------------------------------------------------------
1720# Handle the --prefix=... option
1721#------------------------------------------------------------------------
1722
1723if test "${prefix}" = "NONE"; then
1724    prefix=/usr/local
1725fi
1726if test "${exec_prefix}" = "NONE"; then
1727    exec_prefix=$prefix
1728fi
1729
1730if test "${libdir}" != "${prefix}/lib"; then
1731    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
1732else
1733    LIB_SEARCH_DIRS="-L ${libdir}"
1734fi
1735
1736
1737
1738ac_aux_dir=
1739for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1740  if test -f "$ac_dir/install-sh"; then
1741    ac_aux_dir=$ac_dir
1742    ac_install_sh="$ac_aux_dir/install-sh -c"
1743    break
1744  elif test -f "$ac_dir/install.sh"; then
1745    ac_aux_dir=$ac_dir
1746    ac_install_sh="$ac_aux_dir/install.sh -c"
1747    break
1748  elif test -f "$ac_dir/shtool"; then
1749    ac_aux_dir=$ac_dir
1750    ac_install_sh="$ac_aux_dir/shtool install -c"
1751    break
1752  fi
1753done
1754if test -z "$ac_aux_dir"; then
1755  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1756echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1757   { (exit 1); exit 1; }; }
1758fi
1759
1760# These three variables are undocumented and unsupported,
1761# and are intended to be withdrawn in a future Autoconf release.
1762# They can cause serious problems if a builder's source tree is in a directory
1763# whose full name contains unusual characters.
1764ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1765ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1766ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1767
1768
1769# Find a good install program.  We prefer a C program (faster),
1770# so one script is as good as another.  But avoid the broken or
1771# incompatible versions:
1772# SysV /etc/install, /usr/sbin/install
1773# SunOS /usr/etc/install
1774# IRIX /sbin/install
1775# AIX /bin/install
1776# AmigaOS /C/install, which installs bootblocks on floppy discs
1777# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1778# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1779# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1780# OS/2's system install, which has a completely different semantic
1781# ./install, which can be erroneously created by make from ./install.sh.
1782{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1783echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1784if test -z "$INSTALL"; then
1785if test "${ac_cv_path_install+set}" = set; then
1786  echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791  IFS=$as_save_IFS
1792  test -z "$as_dir" && as_dir=.
1793  # Account for people who put trailing slashes in PATH elements.
1794case $as_dir/ in
1795  ./ | .// | /cC/* | \
1796  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1797  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1798  /usr/ucb/* ) ;;
1799  *)
1800    # OSF1 and SCO ODT 3.0 have their own names for install.
1801    # Don't use installbsd from OSF since it installs stuff as root
1802    # by default.
1803    for ac_prog in ginstall scoinst install; do
1804      for ac_exec_ext in '' $ac_executable_extensions; do
1805        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1806          if test $ac_prog = install &&
1807            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1808            # AIX install.  It has an incompatible calling convention.
1809            :
1810          elif test $ac_prog = install &&
1811            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1812            # program-specific install script used by HP pwplus--don't use.
1813            :
1814          else
1815            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1816            break 3
1817          fi
1818        fi
1819      done
1820    done
1821    ;;
1822esac
1823done
1824IFS=$as_save_IFS
1825
1826
1827fi
1828  if test "${ac_cv_path_install+set}" = set; then
1829    INSTALL=$ac_cv_path_install
1830  else
1831    # As a last resort, use the slow shell script.  Don't cache a
1832    # value for INSTALL within a source directory, because that will
1833    # break other packages using the cache if that directory is
1834    # removed, or if the value is a relative name.
1835    INSTALL=$ac_install_sh
1836  fi
1837fi
1838{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1839echo "${ECHO_T}$INSTALL" >&6; }
1840
1841# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842# It thinks the first close brace ends the variable substitution.
1843test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1844
1845test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1846
1847test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1848
1849{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1850echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1851set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1852if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1853  echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855  cat >conftest.make <<\_ACEOF
1856SHELL = /bin/sh
1857all:
1858        @echo '@@@%%%=$(MAKE)=@@@%%%'
1859_ACEOF
1860# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1861case `${MAKE-make} -f conftest.make 2>/dev/null` in
1862  *@@@%%%=?*=@@@%%%*)
1863    eval ac_cv_prog_make_${ac_make}_set=yes;;
1864  *)
1865    eval ac_cv_prog_make_${ac_make}_set=no;;
1866esac
1867rm -f conftest.make
1868fi
1869if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1870  { echo "$as_me:$LINENO: result: yes" >&5
1871echo "${ECHO_T}yes" >&6; }
1872  SET_MAKE=
1873else
1874  { echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6; }
1876  SET_MAKE="MAKE=${MAKE-make}"
1877fi
1878
1879
1880ac_ext=c
1881ac_cpp='$CPP $CPPFLAGS'
1882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885if test -n "$ac_tool_prefix"; then
1886  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1887set dummy ${ac_tool_prefix}gcc; ac_word=$2
1888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1890if test "${ac_cv_prog_CC+set}" = set; then
1891  echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893  if test -n "$CC"; then
1894  ac_cv_prog_CC="$CC" # Let the user override the test.
1895else
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899  IFS=$as_save_IFS
1900  test -z "$as_dir" && as_dir=.
1901  for ac_exec_ext in '' $ac_executable_extensions; do
1902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905    break 2
1906  fi
1907done
1908done
1909IFS=$as_save_IFS
1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
1915  { echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6; }
1917else
1918  { echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6; }
1920fi
1921
1922
1923fi
1924if test -z "$ac_cv_prog_CC"; then
1925  ac_ct_CC=$CC
1926  # Extract the first word of "gcc", so it can be a program name with args.
1927set dummy gcc; ac_word=$2
1928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1930if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931  echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933  if test -n "$ac_ct_CC"; then
1934  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1935else
1936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937for as_dir in $PATH
1938do
1939  IFS=$as_save_IFS
1940  test -z "$as_dir" && as_dir=.
1941  for ac_exec_ext in '' $ac_executable_extensions; do
1942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1943    ac_cv_prog_ac_ct_CC="gcc"
1944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945    break 2
1946  fi
1947done
1948done
1949IFS=$as_save_IFS
1950
1951fi
1952fi
1953ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954if test -n "$ac_ct_CC"; then
1955  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956echo "${ECHO_T}$ac_ct_CC" >&6; }
1957else
1958  { echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6; }
1960fi
1961
1962  if test "x$ac_ct_CC" = x; then
1963    CC=""
1964  else
1965    case $cross_compiling:$ac_tool_warned in
1966yes:)
1967{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1968whose name does not start with the host triplet.  If you think this
1969configuration is useful to you, please write to autoconf@gnu.org." >&5
1970echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1971whose name does not start with the host triplet.  If you think this
1972configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1973ac_tool_warned=yes ;;
1974esac
1975    CC=$ac_ct_CC
1976  fi
1977else
1978  CC="$ac_cv_prog_CC"
1979fi
1980
1981if test -z "$CC"; then
1982          if test -n "$ac_tool_prefix"; then
1983    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1984set dummy ${ac_tool_prefix}cc; ac_word=$2
1985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987if test "${ac_cv_prog_CC+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  if test -n "$CC"; then
1991  ac_cv_prog_CC="$CC" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2000    ac_cv_prog_CC="${ac_tool_prefix}cc"
2001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002    break 2
2003  fi
2004done
2005done
2006IFS=$as_save_IFS
2007
2008fi
2009fi
2010CC=$ac_cv_prog_CC
2011if test -n "$CC"; then
2012  { echo "$as_me:$LINENO: result: $CC" >&5
2013echo "${ECHO_T}$CC" >&6; }
2014else
2015  { echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6; }
2017fi
2018
2019
2020  fi
2021fi
2022if test -z "$CC"; then
2023  # Extract the first word of "cc", so it can be a program name with args.
2024set dummy cc; ac_word=$2
2025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027if test "${ac_cv_prog_CC+set}" = set; then
2028  echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
2030  if test -n "$CC"; then
2031  ac_cv_prog_CC="$CC" # Let the user override the test.
2032else
2033  ac_prog_rejected=no
2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035for as_dir in $PATH
2036do
2037  IFS=$as_save_IFS
2038  test -z "$as_dir" && as_dir=.
2039  for ac_exec_ext in '' $ac_executable_extensions; do
2040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2041    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2042       ac_prog_rejected=yes
2043       continue
2044     fi
2045    ac_cv_prog_CC="cc"
2046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047    break 2
2048  fi
2049done
2050done
2051IFS=$as_save_IFS
2052
2053if test $ac_prog_rejected = yes; then
2054  # We found a bogon in the path, so make sure we never use it.
2055  set dummy $ac_cv_prog_CC
2056  shift
2057  if test $# != 0; then
2058    # We chose a different compiler from the bogus one.
2059    # However, it has the same basename, so the bogon will be chosen
2060    # first if we set CC to just the basename; use the full file name.
2061    shift
2062    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2063  fi
2064fi
2065fi
2066fi
2067CC=$ac_cv_prog_CC
2068if test -n "$CC"; then
2069  { echo "$as_me:$LINENO: result: $CC" >&5
2070echo "${ECHO_T}$CC" >&6; }
2071else
2072  { echo "$as_me:$LINENO: result: no" >&5
2073echo "${ECHO_T}no" >&6; }
2074fi
2075
2076
2077fi
2078if test -z "$CC"; then
2079  if test -n "$ac_tool_prefix"; then
2080  for ac_prog in cl.exe
2081  do
2082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2086if test "${ac_cv_prog_CC+set}" = set; then
2087  echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089  if test -n "$CC"; then
2090  ac_cv_prog_CC="$CC" # Let the user override the test.
2091else
2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093for as_dir in $PATH
2094do
2095  IFS=$as_save_IFS
2096  test -z "$as_dir" && as_dir=.
2097  for ac_exec_ext in '' $ac_executable_extensions; do
2098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101    break 2
2102  fi
2103done
2104done
2105IFS=$as_save_IFS
2106
2107fi
2108fi
2109CC=$ac_cv_prog_CC
2110if test -n "$CC"; then
2111  { echo "$as_me:$LINENO: result: $CC" >&5
2112echo "${ECHO_T}$CC" >&6; }
2113else
2114  { echo "$as_me:$LINENO: result: no" >&5
2115echo "${ECHO_T}no" >&6; }
2116fi
2117
2118
2119    test -n "$CC" && break
2120  done
2121fi
2122if test -z "$CC"; then
2123  ac_ct_CC=$CC
2124  for ac_prog in cl.exe
2125do
2126  # Extract the first word of "$ac_prog", so it can be a program name with args.
2127set dummy $ac_prog; ac_word=$2
2128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  if test -n "$ac_ct_CC"; then
2134  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2135else
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139  IFS=$as_save_IFS
2140  test -z "$as_dir" && as_dir=.
2141  for ac_exec_ext in '' $ac_executable_extensions; do
2142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2143    ac_cv_prog_ac_ct_CC="$ac_prog"
2144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145    break 2
2146  fi
2147done
2148done
2149IFS=$as_save_IFS
2150
2151fi
2152fi
2153ac_ct_CC=$ac_cv_prog_ac_ct_CC
2154if test -n "$ac_ct_CC"; then
2155  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2156echo "${ECHO_T}$ac_ct_CC" >&6; }
2157else
2158  { echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6; }
2160fi
2161
2162
2163  test -n "$ac_ct_CC" && break
2164done
2165
2166  if test "x$ac_ct_CC" = x; then
2167    CC=""
2168  else
2169    case $cross_compiling:$ac_tool_warned in
2170yes:)
2171{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2172whose name does not start with the host triplet.  If you think this
2173configuration is useful to you, please write to autoconf@gnu.org." >&5
2174echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2175whose name does not start with the host triplet.  If you think this
2176configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2177ac_tool_warned=yes ;;
2178esac
2179    CC=$ac_ct_CC
2180  fi
2181fi
2182
2183fi
2184
2185
2186test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2187See \`config.log' for more details." >&5
2188echo "$as_me: error: no acceptable C compiler found in \$PATH
2189See \`config.log' for more details." >&2;}
2190   { (exit 1); exit 1; }; }
2191
2192# Provide some information about the compiler.
2193echo "$as_me:$LINENO: checking for C compiler version" >&5
2194ac_compiler=`set X $ac_compile; echo $2`
2195{ (ac_try="$ac_compiler --version >&5"
2196case "(($ac_try" in
2197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198  *) ac_try_echo=$ac_try;;
2199esac
2200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201  (eval "$ac_compiler --version >&5") 2>&5
2202  ac_status=$?
2203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204  (exit $ac_status); }
2205{ (ac_try="$ac_compiler -v >&5"
2206case "(($ac_try" in
2207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208  *) ac_try_echo=$ac_try;;
2209esac
2210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211  (eval "$ac_compiler -v >&5") 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }
2215{ (ac_try="$ac_compiler -V >&5"
2216case "(($ac_try" in
2217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218  *) ac_try_echo=$ac_try;;
2219esac
2220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221  (eval "$ac_compiler -V >&5") 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }
2225
2226cat >conftest.$ac_ext <<_ACEOF
2227/* confdefs.h.  */
2228_ACEOF
2229cat confdefs.h >>conftest.$ac_ext
2230cat >>conftest.$ac_ext <<_ACEOF
2231/* end confdefs.h.  */
2232
2233int
2234main ()
2235{
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241ac_clean_files_save=$ac_clean_files
2242ac_clean_files="$ac_clean_files a.out a.exe b.out"
2243# Try to create an executable without -o first, disregard a.out.
2244# It will help us diagnose broken compilers, and finding out an intuition
2245# of exeext.
2246{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2247echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2248ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2249#
2250# List of possible output files, starting from the most likely.
2251# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2252# only as a last resort.  b.out is created by i960 compilers.
2253ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2254#
2255# The IRIX 6 linker writes into existing files which may not be
2256# executable, retaining their permissions.  Remove them first so a
2257# subsequent execution test works.
2258ac_rmfiles=
2259for ac_file in $ac_files
2260do
2261  case $ac_file in
2262    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2263    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2264  esac
2265done
2266rm -f $ac_rmfiles
2267
2268if { (ac_try="$ac_link_default"
2269case "(($ac_try" in
2270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271  *) ac_try_echo=$ac_try;;
2272esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2274  (eval "$ac_link_default") 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; then
2278  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2279# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2280# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2281# so that the user can short-circuit this test for compilers unknown to
2282# Autoconf.
2283for ac_file in $ac_files ''
2284do
2285  test -f "$ac_file" || continue
2286  case $ac_file in
2287    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2288        ;;
2289    [ab].out )
2290        # We found the default executable, but exeext='' is most
2291        # certainly right.
2292        break;;
2293    *.* )
2294        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2295        then :; else
2296           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297        fi
2298        # We set ac_cv_exeext here because the later test for it is not
2299        # safe: cross compilers may not add the suffix if given an `-o'
2300        # argument, so we may need to know it at that point already.
2301        # Even if this section looks crufty: it has the advantage of
2302        # actually working.
2303        break;;
2304    * )
2305        break;;
2306  esac
2307done
2308test "$ac_cv_exeext" = no && ac_cv_exeext=
2309
2310else
2311  ac_file=''
2312fi
2313
2314{ echo "$as_me:$LINENO: result: $ac_file" >&5
2315echo "${ECHO_T}$ac_file" >&6; }
2316if test -z "$ac_file"; then
2317  echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2321See \`config.log' for more details." >&5
2322echo "$as_me: error: C compiler cannot create executables
2323See \`config.log' for more details." >&2;}
2324   { (exit 77); exit 77; }; }
2325fi
2326
2327ac_exeext=$ac_cv_exeext
2328
2329# Check that the compiler produces executables we can run.  If not, either
2330# the compiler is broken, or we cross compile.
2331{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2332echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2333# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2334# If not cross compiling, check that we can run a simple program.
2335if test "$cross_compiling" != yes; then
2336  if { ac_try='./$ac_file'
2337  { (case "(($ac_try" in
2338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339  *) ac_try_echo=$ac_try;;
2340esac
2341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342  (eval "$ac_try") 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; }; then
2346    cross_compiling=no
2347  else
2348    if test "$cross_compiling" = maybe; then
2349        cross_compiling=yes
2350    else
2351        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2352If you meant to cross compile, use \`--host'.
2353See \`config.log' for more details." >&5
2354echo "$as_me: error: cannot run C compiled programs.
2355If you meant to cross compile, use \`--host'.
2356See \`config.log' for more details." >&2;}
2357   { (exit 1); exit 1; }; }
2358    fi
2359  fi
2360fi
2361{ echo "$as_me:$LINENO: result: yes" >&5
2362echo "${ECHO_T}yes" >&6; }
2363
2364rm -f a.out a.exe conftest$ac_cv_exeext b.out
2365ac_clean_files=$ac_clean_files_save
2366# Check that the compiler produces executables we can run.  If not, either
2367# the compiler is broken, or we cross compile.
2368{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2369echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2370{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2371echo "${ECHO_T}$cross_compiling" >&6; }
2372
2373{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2374echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2375if { (ac_try="$ac_link"
2376case "(($ac_try" in
2377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378  *) ac_try_echo=$ac_try;;
2379esac
2380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381  (eval "$ac_link") 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; then
2385  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2386# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2387# work properly (i.e., refer to `conftest.exe'), while it won't with
2388# `rm'.
2389for ac_file in conftest.exe conftest conftest.*; do
2390  test -f "$ac_file" || continue
2391  case $ac_file in
2392    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2393    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2394          break;;
2395    * ) break;;
2396  esac
2397done
2398else
2399  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2400See \`config.log' for more details." >&5
2401echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2402See \`config.log' for more details." >&2;}
2403   { (exit 1); exit 1; }; }
2404fi
2405
2406rm -f conftest$ac_cv_exeext
2407{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2408echo "${ECHO_T}$ac_cv_exeext" >&6; }
2409
2410rm -f conftest.$ac_ext
2411EXEEXT=$ac_cv_exeext
2412ac_exeext=$EXEEXT
2413{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2415if test "${ac_cv_objext+set}" = set; then
2416  echo $ECHO_N "(cached) $ECHO_C" >&6
2417else
2418  cat >conftest.$ac_ext <<_ACEOF
2419/* confdefs.h.  */
2420_ACEOF
2421cat confdefs.h >>conftest.$ac_ext
2422cat >>conftest.$ac_ext <<_ACEOF
2423/* end confdefs.h.  */
2424
2425int
2426main ()
2427{
2428
2429  ;
2430  return 0;
2431}
2432_ACEOF
2433rm -f conftest.o conftest.obj
2434if { (ac_try="$ac_compile"
2435case "(($ac_try" in
2436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437  *) ac_try_echo=$ac_try;;
2438esac
2439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440  (eval "$ac_compile") 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; then
2444  for ac_file in conftest.o conftest.obj conftest.*; do
2445  test -f "$ac_file" || continue;
2446  case $ac_file in
2447    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2448    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2449       break;;
2450  esac
2451done
2452else
2453  echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2457See \`config.log' for more details." >&5
2458echo "$as_me: error: cannot compute suffix of object files: cannot compile
2459See \`config.log' for more details." >&2;}
2460   { (exit 1); exit 1; }; }
2461fi
2462
2463rm -f conftest.$ac_cv_objext conftest.$ac_ext
2464fi
2465{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2466echo "${ECHO_T}$ac_cv_objext" >&6; }
2467OBJEXT=$ac_cv_objext
2468ac_objext=$OBJEXT
2469{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2470echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2471if test "${ac_cv_c_compiler_gnu+set}" = set; then
2472  echo $ECHO_N "(cached) $ECHO_C" >&6
2473else
2474  cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h.  */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h.  */
2480
2481int
2482main ()
2483{
2484#ifndef __GNUC__
2485       choke me
2486#endif
2487
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492rm -f conftest.$ac_objext
2493if { (ac_try="$ac_compile"
2494case "(($ac_try" in
2495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496  *) ac_try_echo=$ac_try;;
2497esac
2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499  (eval "$ac_compile") 2>conftest.er1
2500  ac_status=$?
2501  grep -v '^ *+' conftest.er1 >conftest.err
2502  rm -f conftest.er1
2503  cat conftest.err >&5
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); } && {
2506         test -z "$ac_c_werror_flag" ||
2507         test ! -s conftest.err
2508       } && test -s conftest.$ac_objext; then
2509  ac_compiler_gnu=yes
2510else
2511  echo "$as_me: failed program was:" >&5
2512sed 's/^/| /' conftest.$ac_ext >&5
2513
2514        ac_compiler_gnu=no
2515fi
2516
2517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518ac_cv_c_compiler_gnu=$ac_compiler_gnu
2519
2520fi
2521{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2522echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2523GCC=`test $ac_compiler_gnu = yes && echo yes`
2524ac_test_CFLAGS=${CFLAGS+set}
2525ac_save_CFLAGS=$CFLAGS
2526{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2527echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2528if test "${ac_cv_prog_cc_g+set}" = set; then
2529  echo $ECHO_N "(cached) $ECHO_C" >&6
2530else
2531  ac_save_c_werror_flag=$ac_c_werror_flag
2532   ac_c_werror_flag=yes
2533   ac_cv_prog_cc_g=no
2534   CFLAGS="-g"
2535   cat >conftest.$ac_ext <<_ACEOF
2536/* confdefs.h.  */
2537_ACEOF
2538cat confdefs.h >>conftest.$ac_ext
2539cat >>conftest.$ac_ext <<_ACEOF
2540/* end confdefs.h.  */
2541
2542int
2543main ()
2544{
2545
2546  ;
2547  return 0;
2548}
2549_ACEOF
2550rm -f conftest.$ac_objext
2551if { (ac_try="$ac_compile"
2552case "(($ac_try" in
2553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554  *) ac_try_echo=$ac_try;;
2555esac
2556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557  (eval "$ac_compile") 2>conftest.er1
2558  ac_status=$?
2559  grep -v '^ *+' conftest.er1 >conftest.err
2560  rm -f conftest.er1
2561  cat conftest.err >&5
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); } && {
2564         test -z "$ac_c_werror_flag" ||
2565         test ! -s conftest.err
2566       } && test -s conftest.$ac_objext; then
2567  ac_cv_prog_cc_g=yes
2568else
2569  echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572        CFLAGS=""
2573      cat >conftest.$ac_ext <<_ACEOF
2574/* confdefs.h.  */
2575_ACEOF
2576cat confdefs.h >>conftest.$ac_ext
2577cat >>conftest.$ac_ext <<_ACEOF
2578/* end confdefs.h.  */
2579
2580int
2581main ()
2582{
2583
2584  ;
2585  return 0;
2586}
2587_ACEOF
2588rm -f conftest.$ac_objext
2589if { (ac_try="$ac_compile"
2590case "(($ac_try" in
2591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592  *) ac_try_echo=$ac_try;;
2593esac
2594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595  (eval "$ac_compile") 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } && {
2602         test -z "$ac_c_werror_flag" ||
2603         test ! -s conftest.err
2604       } && test -s conftest.$ac_objext; then
2605  :
2606else
2607  echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610        ac_c_werror_flag=$ac_save_c_werror_flag
2611         CFLAGS="-g"
2612         cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h.  */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h.  */
2618
2619int
2620main ()
2621{
2622
2623  ;
2624  return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext
2628if { (ac_try="$ac_compile"
2629case "(($ac_try" in
2630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631  *) ac_try_echo=$ac_try;;
2632esac
2633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634  (eval "$ac_compile") 2>conftest.er1
2635  ac_status=$?
2636  grep -v '^ *+' conftest.er1 >conftest.err
2637  rm -f conftest.er1
2638  cat conftest.err >&5
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); } && {
2641         test -z "$ac_c_werror_flag" ||
2642         test ! -s conftest.err
2643       } && test -s conftest.$ac_objext; then
2644  ac_cv_prog_cc_g=yes
2645else
2646  echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649
2650fi
2651
2652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653fi
2654
2655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656fi
2657
2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659   ac_c_werror_flag=$ac_save_c_werror_flag
2660fi
2661{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2662echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2663if test "$ac_test_CFLAGS" = set; then
2664  CFLAGS=$ac_save_CFLAGS
2665elif test $ac_cv_prog_cc_g = yes; then
2666  if test "$GCC" = yes; then
2667    CFLAGS="-g -O2"
2668  else
2669    CFLAGS="-g"
2670  fi
2671else
2672  if test "$GCC" = yes; then
2673    CFLAGS="-O2"
2674  else
2675    CFLAGS=
2676  fi
2677fi
2678{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2679echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2680if test "${ac_cv_prog_cc_c89+set}" = set; then
2681  echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
2683  ac_cv_prog_cc_c89=no
2684ac_save_CC=$CC
2685cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h.  */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h.  */
2691#include <stdarg.h>
2692#include <stdio.h>
2693#include <sys/types.h>
2694#include <sys/stat.h>
2695/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2696struct buf { int x; };
2697FILE * (*rcsopen) (struct buf *, struct stat *, int);
2698static char *e (p, i)
2699     char **p;
2700     int i;
2701{
2702  return p[i];
2703}
2704static char *f (char * (*g) (char **, int), char **p, ...)
2705{
2706  char *s;
2707  va_list v;
2708  va_start (v,p);
2709  s = g (p, va_arg (v,int));
2710  va_end (v);
2711  return s;
2712}
2713
2714/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2715   function prototypes and stuff, but not '\xHH' hex character constants.
2716   These don't provoke an error unfortunately, instead are silently treated
2717   as 'x'.  The following induces an error, until -std is added to get
2718   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2719   array size at least.  It's necessary to write '\x00'==0 to get something
2720   that's true only with -std.  */
2721int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2722
2723/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2724   inside strings and character constants.  */
2725#define FOO(x) 'x'
2726int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2727
2728int test (int i, double x);
2729struct s1 {int (*f) (int a);};
2730struct s2 {int (*f) (double a);};
2731int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2732int argc;
2733char **argv;
2734int
2735main ()
2736{
2737return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2738  ;
2739  return 0;
2740}
2741_ACEOF
2742for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2743        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2744do
2745  CC="$ac_save_CC $ac_arg"
2746  rm -f conftest.$ac_objext
2747if { (ac_try="$ac_compile"
2748case "(($ac_try" in
2749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750  *) ac_try_echo=$ac_try;;
2751esac
2752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753  (eval "$ac_compile") 2>conftest.er1
2754  ac_status=$?
2755  grep -v '^ *+' conftest.er1 >conftest.err
2756  rm -f conftest.er1
2757  cat conftest.err >&5
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); } && {
2760         test -z "$ac_c_werror_flag" ||
2761         test ! -s conftest.err
2762       } && test -s conftest.$ac_objext; then
2763  ac_cv_prog_cc_c89=$ac_arg
2764else
2765  echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768
2769fi
2770
2771rm -f core conftest.err conftest.$ac_objext
2772  test "x$ac_cv_prog_cc_c89" != "xno" && break
2773done
2774rm -f conftest.$ac_ext
2775CC=$ac_save_CC
2776
2777fi
2778# AC_CACHE_VAL
2779case "x$ac_cv_prog_cc_c89" in
2780  x)
2781    { echo "$as_me:$LINENO: result: none needed" >&5
2782echo "${ECHO_T}none needed" >&6; } ;;
2783  xno)
2784    { echo "$as_me:$LINENO: result: unsupported" >&5
2785echo "${ECHO_T}unsupported" >&6; } ;;
2786  *)
2787    CC="$CC $ac_cv_prog_cc_c89"
2788    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2789echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2790esac
2791
2792
2793ac_ext=c
2794ac_cpp='$CPP $CPPFLAGS'
2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799ac_ext=c
2800ac_cpp='$CPP $CPPFLAGS'
2801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
2805
2806if test -n "$ac_tool_prefix"; then
2807  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2808set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2811if test "${ac_cv_prog_RANLIB+set}" = set; then
2812  echo $ECHO_N "(cached) $ECHO_C" >&6
2813else
2814  if test -n "$RANLIB"; then
2815  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820  IFS=$as_save_IFS
2821  test -z "$as_dir" && as_dir=.
2822  for ac_exec_ext in '' $ac_executable_extensions; do
2823  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826    break 2
2827  fi
2828done
2829done
2830IFS=$as_save_IFS
2831
2832fi
2833fi
2834RANLIB=$ac_cv_prog_RANLIB
2835if test -n "$RANLIB"; then
2836  { echo "$as_me:$LINENO: result: $RANLIB" >&5
2837echo "${ECHO_T}$RANLIB" >&6; }
2838else
2839  { echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6; }
2841fi
2842
2843
2844fi
2845if test -z "$ac_cv_prog_RANLIB"; then
2846  ac_ct_RANLIB=$RANLIB
2847  # Extract the first word of "ranlib", so it can be a program name with args.
2848set dummy ranlib; ac_word=$2
2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2852  echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
2854  if test -n "$ac_ct_RANLIB"; then
2855  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862  for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_ac_ct_RANLIB="ranlib"
2865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2875if test -n "$ac_ct_RANLIB"; then
2876  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2877echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2878else
2879  { echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6; }
2881fi
2882
2883  if test "x$ac_ct_RANLIB" = x; then
2884    RANLIB=":"
2885  else
2886    case $cross_compiling:$ac_tool_warned in
2887yes:)
2888{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2889whose name does not start with the host triplet.  If you think this
2890configuration is useful to you, please write to autoconf@gnu.org." >&5
2891echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2892whose name does not start with the host triplet.  If you think this
2893configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2894ac_tool_warned=yes ;;
2895esac
2896    RANLIB=$ac_ct_RANLIB
2897  fi
2898else
2899  RANLIB="$ac_cv_prog_RANLIB"
2900fi
2901
2902
2903ac_ext=cpp
2904ac_cpp='$CXXCPP $CPPFLAGS'
2905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2908if test -z "$CXX"; then
2909  if test -n "$CCC"; then
2910    CXX=$CCC
2911  else
2912    if test -n "$ac_tool_prefix"; then
2913  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2914  do
2915    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2919if test "${ac_cv_prog_CXX+set}" = set; then
2920  echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922  if test -n "$CXX"; then
2923  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928  IFS=$as_save_IFS
2929  test -z "$as_dir" && as_dir=.
2930  for ac_exec_ext in '' $ac_executable_extensions; do
2931  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942CXX=$ac_cv_prog_CXX
2943if test -n "$CXX"; then
2944  { echo "$as_me:$LINENO: result: $CXX" >&5
2945echo "${ECHO_T}$CXX" >&6; }
2946else
2947  { echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6; }
2949fi
2950
2951
2952    test -n "$CXX" && break
2953  done
2954fi
2955if test -z "$CXX"; then
2956  ac_ct_CXX=$CXX
2957  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2958do
2959  # Extract the first word of "$ac_prog", so it can be a program name with args.
2960set dummy $ac_prog; ac_word=$2
2961{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2964  echo $ECHO_N "(cached) $ECHO_C" >&6
2965else
2966  if test -n "$ac_ct_CXX"; then
2967  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2968else
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972  IFS=$as_save_IFS
2973  test -z "$as_dir" && as_dir=.
2974  for ac_exec_ext in '' $ac_executable_extensions; do
2975  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976    ac_cv_prog_ac_ct_CXX="$ac_prog"
2977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978    break 2
2979  fi
2980done
2981done
2982IFS=$as_save_IFS
2983
2984fi
2985fi
2986ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2987if test -n "$ac_ct_CXX"; then
2988  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2989echo "${ECHO_T}$ac_ct_CXX" >&6; }
2990else
2991  { echo "$as_me:$LINENO: result: no" >&5
2992echo "${ECHO_T}no" >&6; }
2993fi
2994
2995
2996  test -n "$ac_ct_CXX" && break
2997done
2998
2999  if test "x$ac_ct_CXX" = x; then
3000    CXX="g++"
3001  else
3002    case $cross_compiling:$ac_tool_warned in
3003yes:)
3004{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3005whose name does not start with the host triplet.  If you think this
3006configuration is useful to you, please write to autoconf@gnu.org." >&5
3007echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3008whose name does not start with the host triplet.  If you think this
3009configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3010ac_tool_warned=yes ;;
3011esac
3012    CXX=$ac_ct_CXX
3013  fi
3014fi
3015
3016  fi
3017fi
3018# Provide some information about the compiler.
3019echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3020ac_compiler=`set X $ac_compile; echo $2`
3021{ (ac_try="$ac_compiler --version >&5"
3022case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027  (eval "$ac_compiler --version >&5") 2>&5
3028  ac_status=$?
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }
3031{ (ac_try="$ac_compiler -v >&5"
3032case "(($ac_try" in
3033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034  *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037  (eval "$ac_compiler -v >&5") 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }
3041{ (ac_try="$ac_compiler -V >&5"
3042case "(($ac_try" in
3043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044  *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047  (eval "$ac_compiler -V >&5") 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }
3051
3052{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3053echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3054if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3055  echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057  cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h.  */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h.  */
3063
3064int
3065main ()
3066{
3067#ifndef __GNUC__
3068       choke me
3069#endif
3070
3071  ;
3072  return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079  *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082  (eval "$ac_compile") 2>conftest.er1
3083  ac_status=$?
3084  grep -v '^ *+' conftest.er1 >conftest.err
3085  rm -f conftest.er1
3086  cat conftest.err >&5
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); } && {
3089         test -z "$ac_cxx_werror_flag" ||
3090         test ! -s conftest.err
3091       } && test -s conftest.$ac_objext; then
3092  ac_compiler_gnu=yes
3093else
3094  echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097        ac_compiler_gnu=no
3098fi
3099
3100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3102
3103fi
3104{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3105echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3106GXX=`test $ac_compiler_gnu = yes && echo yes`
3107ac_test_CXXFLAGS=${CXXFLAGS+set}
3108ac_save_CXXFLAGS=$CXXFLAGS
3109{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3110echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3111if test "${ac_cv_prog_cxx_g+set}" = set; then
3112  echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3115   ac_cxx_werror_flag=yes
3116   ac_cv_prog_cxx_g=no
3117   CXXFLAGS="-g"
3118   cat >conftest.$ac_ext <<_ACEOF
3119/* confdefs.h.  */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h.  */
3124
3125int
3126main ()
3127{
3128
3129  ;
3130  return 0;
3131}
3132_ACEOF
3133rm -f conftest.$ac_objext
3134if { (ac_try="$ac_compile"
3135case "(($ac_try" in
3136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137  *) ac_try_echo=$ac_try;;
3138esac
3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140  (eval "$ac_compile") 2>conftest.er1
3141  ac_status=$?
3142  grep -v '^ *+' conftest.er1 >conftest.err
3143  rm -f conftest.er1
3144  cat conftest.err >&5
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); } && {
3147         test -z "$ac_cxx_werror_flag" ||
3148         test ! -s conftest.err
3149       } && test -s conftest.$ac_objext; then
3150  ac_cv_prog_cxx_g=yes
3151else
3152  echo "$as_me: failed program was:" >&5
3153sed 's/^/| /' conftest.$ac_ext >&5
3154
3155        CXXFLAGS=""
3156      cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h.  */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h.  */
3162
3163int
3164main ()
3165{
3166
3167  ;
3168  return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (ac_try="$ac_compile"
3173case "(($ac_try" in
3174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175  *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178  (eval "$ac_compile") 2>conftest.er1
3179  ac_status=$?
3180  grep -v '^ *+' conftest.er1 >conftest.err
3181  rm -f conftest.er1
3182  cat conftest.err >&5
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } && {
3185         test -z "$ac_cxx_werror_flag" ||
3186         test ! -s conftest.err
3187       } && test -s conftest.$ac_objext; then
3188  :
3189else
3190  echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3194         CXXFLAGS="-g"
3195         cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h.  */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h.  */
3201
3202int
3203main ()
3204{
3205
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (ac_try="$ac_compile"
3212case "(($ac_try" in
3213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214  *) ac_try_echo=$ac_try;;
3215esac
3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217  (eval "$ac_compile") 2>conftest.er1
3218  ac_status=$?
3219  grep -v '^ *+' conftest.er1 >conftest.err
3220  rm -f conftest.er1
3221  cat conftest.err >&5
3222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223  (exit $ac_status); } && {
3224         test -z "$ac_cxx_werror_flag" ||
3225         test ! -s conftest.err
3226       } && test -s conftest.$ac_objext; then
3227  ac_cv_prog_cxx_g=yes
3228else
3229  echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232
3233fi
3234
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
3237
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3243fi
3244{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3245echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3246if test "$ac_test_CXXFLAGS" = set; then
3247  CXXFLAGS=$ac_save_CXXFLAGS
3248elif test $ac_cv_prog_cxx_g = yes; then
3249  if test "$GXX" = yes; then
3250    CXXFLAGS="-g -O2"
3251  else
3252    CXXFLAGS="-g"
3253  fi
3254else
3255  if test "$GXX" = yes; then
3256    CXXFLAGS="-O2"
3257  else
3258    CXXFLAGS=
3259  fi
3260fi
3261ac_ext=c
3262ac_cpp='$CPP $CPPFLAGS'
3263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267ac_ext=cpp
3268ac_cpp='$CXXCPP $CPPFLAGS'
3269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3272
3273
3274SUBDIRS="nanoscale nanovis pymolproxy"
3275
3276
3277
3278# Check whether --with-tcllib was given.
3279if test "${with_tcllib+set}" = set; then
3280  withval=$with_tcllib; with_tcllib=$withval
3281else
3282  with_tcllib=/usr/lib
3283fi
3284
3285
3286TCL_LIB_DIR=""
3287TCL_LIB=""
3288TCL_LIB_VERSION=""
3289{ echo "$as_me:$LINENO: checking for tcl binary libraries" >&5
3290echo $ECHO_N "checking for tcl binary libraries... $ECHO_C" >&6; }
3291if test "x$with_tcllib" != "x" ; then
3292    if test -f "$with_tcllib"
3293    then
3294        if test -n `basename $with_tcllib | grep libtcl0-9\.0-9.so`
3295        then
3296            TCL_LIB_DIR="$with_tcllib"
3297        fi
3298    else
3299        if test -d "$with_tcllib"
3300        then
3301            if test -x "$with_tcllib/`ls $with_tcllib | grep libtcl0-9\.0-9\.so$`"
3302            then
3303                TCL_LIB_DIR="$with_tcllib"
3304            else
3305                { echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6; }
3307                { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries, try using --with-tcllib" >&5
3308echo "$as_me: error: cannot find tcl binary libraries, try using --with-tcllib" >&2;}
3309   { (exit 1); exit 1; }; }
3310            fi
3311        else
3312            { echo "$as_me:$LINENO: result: no" >&5
3313echo "${ECHO_T}no" >&6; }
3314            { { echo "$as_me:$LINENO: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&5
3315echo "$as_me: error: cannot find tcl binary libraries inside $with_tcllib, try using --with-tcllib" >&2;}
3316   { (exit 1); exit 1; }; }
3317        fi
3318    fi
3319else
3320
3321ac_ext=cpp
3322ac_cpp='$CXXCPP $CPPFLAGS'
3323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3326{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3327echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3328if test -z "$CXXCPP"; then
3329  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3330  echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332      # Double quotes because CXXCPP needs to be expanded
3333    for CXXCPP in "$CXX -E" "/lib/cpp"
3334    do
3335      ac_preproc_ok=false
3336for ac_cxx_preproc_warn_flag in '' yes
3337do
3338  # Use a header file that comes with gcc, so configuring glibc
3339  # with a fresh cross-compiler works.
3340  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3341  # <limits.h> exists even on freestanding compilers.
3342  # On the NeXT, cc -E runs the code through the compiler's parser,
3343  # not just through cpp. "Syntax error" is here to catch this case.
3344  cat >conftest.$ac_ext <<_ACEOF
3345/* confdefs.h.  */
3346_ACEOF
3347cat confdefs.h >>conftest.$ac_ext
3348cat >>conftest.$ac_ext <<_ACEOF
3349/* end confdefs.h.  */
3350#ifdef __STDC__
3351# include <limits.h>
3352#else
3353# include <assert.h>
3354#endif
3355                     Syntax error
3356_ACEOF
3357if { (ac_try="$ac_cpp conftest.$ac_ext"
3358case "(($ac_try" in
3359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360  *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364  ac_status=$?
3365  grep -v '^ *+' conftest.er1 >conftest.err
3366  rm -f conftest.er1
3367  cat conftest.err >&5
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); } >/dev/null && {
3370         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3371         test ! -s conftest.err
3372       }; then
3373  :
3374else
3375  echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378  # Broken: fails on valid input.
3379continue
3380fi
3381
3382rm -f conftest.err conftest.$ac_ext
3383
3384  # OK, works on sane cases.  Now check whether nonexistent headers
3385  # can be detected and how.
3386  cat >conftest.$ac_ext <<_ACEOF
3387/* confdefs.h.  */
3388_ACEOF
3389cat confdefs.h >>conftest.$ac_ext
3390cat >>conftest.$ac_ext <<_ACEOF
3391/* end confdefs.h.  */
3392#include <ac_nonexistent.h>
3393_ACEOF
3394if { (ac_try="$ac_cpp conftest.$ac_ext"
3395case "(($ac_try" in
3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397  *) ac_try_echo=$ac_try;;
3398esac
3399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401  ac_status=$?
3402  grep -v '^ *+' conftest.er1 >conftest.err
3403  rm -f conftest.er1
3404  cat conftest.err >&5
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); } >/dev/null && {
3407         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3408         test ! -s conftest.err
3409       }; then
3410  # Broken: success on invalid input.
3411continue
3412else
3413  echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416  # Passes both tests.
3417ac_preproc_ok=:
3418break
3419fi
3420
3421rm -f conftest.err conftest.$ac_ext
3422
3423done
3424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3425rm -f conftest.err conftest.$ac_ext
3426if $ac_preproc_ok; then
3427  break
3428fi
3429
3430    done
3431    ac_cv_prog_CXXCPP=$CXXCPP
3432
3433fi
3434  CXXCPP=$ac_cv_prog_CXXCPP
3435else
3436  ac_cv_prog_CXXCPP=$CXXCPP
3437fi
3438{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3439echo "${ECHO_T}$CXXCPP" >&6; }
3440ac_preproc_ok=false
3441for ac_cxx_preproc_warn_flag in '' yes
3442do
3443  # Use a header file that comes with gcc, so configuring glibc
3444  # with a fresh cross-compiler works.
3445  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446  # <limits.h> exists even on freestanding compilers.
3447  # On the NeXT, cc -E runs the code through the compiler's parser,
3448  # not just through cpp. "Syntax error" is here to catch this case.
3449  cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455#ifdef __STDC__
3456# include <limits.h>
3457#else
3458# include <assert.h>
3459#endif
3460                     Syntax error
3461_ACEOF
3462if { (ac_try="$ac_cpp conftest.$ac_ext"
3463case "(($ac_try" in
3464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465  *) ac_try_echo=$ac_try;;
3466esac
3467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } >/dev/null && {
3475         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3476         test ! -s conftest.err
3477       }; then
3478  :
3479else
3480  echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483  # Broken: fails on valid input.
3484continue
3485fi
3486
3487rm -f conftest.err conftest.$ac_ext
3488
3489  # OK, works on sane cases.  Now check whether nonexistent headers
3490  # can be detected and how.
3491  cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h.  */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h.  */
3497#include <ac_nonexistent.h>
3498_ACEOF
3499if { (ac_try="$ac_cpp conftest.$ac_ext"
3500case "(($ac_try" in
3501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502  *) ac_try_echo=$ac_try;;
3503esac
3504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506  ac_status=$?
3507  grep -v '^ *+' conftest.er1 >conftest.err
3508  rm -f conftest.er1
3509  cat conftest.err >&5
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); } >/dev/null && {
3512         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3513         test ! -s conftest.err
3514       }; then
3515  # Broken: success on invalid input.
3516continue
3517else
3518  echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521  # Passes both tests.
3522ac_preproc_ok=:
3523break
3524fi
3525
3526rm -f conftest.err conftest.$ac_ext
3527
3528done
3529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530rm -f conftest.err conftest.$ac_ext
3531if $ac_preproc_ok; then
3532  :
3533else
3534  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3535See \`config.log' for more details." >&5
3536echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3537See \`config.log' for more details." >&2;}
3538   { (exit 1); exit 1; }; }
3539fi
3540
3541ac_ext=cpp
3542ac_cpp='$CXXCPP $CPPFLAGS'
3543ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3546
3547
3548{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3549echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3550if test "${ac_cv_path_GREP+set}" = set; then
3551  echo $ECHO_N "(cached) $ECHO_C" >&6
3552else
3553  # Extract the first word of "grep ggrep" to use in msg output
3554if test -z "$GREP"; then
3555set dummy grep ggrep; ac_prog_name=$2
3556if test "${ac_cv_path_GREP+set}" = set; then
3557  echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559  ac_path_GREP_found=false
3560# Loop through the user's path and test for each of PROGNAME-LIST
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3563do
3564  IFS=$as_save_IFS
3565  test -z "$as_dir" && as_dir=.
3566  for ac_prog in grep ggrep; do
3567  for ac_exec_ext in '' $ac_executable_extensions; do
3568    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3569    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3570    # Check for GNU ac_path_GREP and select it if it is found.
3571  # Check for GNU $ac_path_GREP
3572case `"$ac_path_GREP" --version 2>&1` in
3573*GNU*)
3574  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3575*)
3576  ac_count=0
3577  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3578  while :
3579  do
3580    cat "conftest.in" "conftest.in" >"conftest.tmp"
3581    mv "conftest.tmp" "conftest.in"
3582    cp "conftest.in" "conftest.nl"
3583    echo 'GREP' >> "conftest.nl"
3584    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3585    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3586    ac_count=`expr $ac_count + 1`
3587    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3588      # Best one so far, save it but keep looking for a better one
3589      ac_cv_path_GREP="$ac_path_GREP"
3590      ac_path_GREP_max=$ac_count
3591    fi
3592    # 10*(2^10) chars as input seems more than enough
3593    test $ac_count -gt 10 && break
3594  done
3595  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3596esac
3597
3598
3599    $ac_path_GREP_found && break 3
3600  done
3601done
3602
3603done
3604IFS=$as_save_IFS
3605
3606
3607fi
3608
3609GREP="$ac_cv_path_GREP"
3610if test -z "$GREP"; then
3611  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3612echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3613   { (exit 1); exit 1; }; }
3614fi
3615
3616else
3617  ac_cv_path_GREP=$GREP
3618fi
3619
3620
3621fi
3622{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3623echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3624 GREP="$ac_cv_path_GREP"
3625
3626
3627{ echo "$as_me:$LINENO: checking for egrep" >&5
3628echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3629if test "${ac_cv_path_EGREP+set}" = set; then
3630  echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3633   then ac_cv_path_EGREP="$GREP -E"
3634   else
3635     # Extract the first word of "egrep" to use in msg output
3636if test -z "$EGREP"; then
3637set dummy egrep; ac_prog_name=$2
3638if test "${ac_cv_path_EGREP+set}" = set; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641  ac_path_EGREP_found=false
3642# Loop through the user's path and test for each of PROGNAME-LIST
3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3645do
3646  IFS=$as_save_IFS
3647  test -z "$as_dir" && as_dir=.
3648  for ac_prog in egrep; do
3649  for ac_exec_ext in '' $ac_executable_extensions; do
3650    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3651    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3652    # Check for GNU ac_path_EGREP and select it if it is found.
3653  # Check for GNU $ac_path_EGREP
3654case `"$ac_path_EGREP" --version 2>&1` in
3655*GNU*)
3656  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3657*)
3658  ac_count=0
3659  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3660  while :
3661  do
3662    cat "conftest.in" "conftest.in" >"conftest.tmp"
3663    mv "conftest.tmp" "conftest.in"
3664    cp "conftest.in" "conftest.nl"
3665    echo 'EGREP' >> "conftest.nl"
3666    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3668    ac_count=`expr $ac_count + 1`
3669    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3670      # Best one so far, save it but keep looking for a better one
3671      ac_cv_path_EGREP="$ac_path_EGREP"
3672      ac_path_EGREP_max=$ac_count
3673    fi
3674    # 10*(2^10) chars as input seems more than enough
3675    test $ac_count -gt 10 && break
3676  done
3677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3678esac
3679
3680
3681    $ac_path_EGREP_found && break 3
3682  done
3683done
3684
3685done
3686IFS=$as_save_IFS
3687
3688
3689fi
3690
3691EGREP="$ac_cv_path_EGREP"
3692if test -z "$EGREP"; then
3693  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3694echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3695   { (exit 1); exit 1; }; }
3696fi
3697
3698else
3699  ac_cv_path_EGREP=$EGREP
3700fi
3701
3702
3703   fi
3704fi
3705{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3706echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3707 EGREP="$ac_cv_path_EGREP"
3708
3709
3710{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3711echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3712if test "${ac_cv_header_stdc+set}" = set; then
3713  echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
3715  cat >conftest.$ac_ext <<_ACEOF
3716/* confdefs.h.  */
3717_ACEOF
3718cat confdefs.h >>conftest.$ac_ext
3719cat >>conftest.$ac_ext <<_ACEOF
3720/* end confdefs.h.  */
3721#include <stdlib.h>
3722#include <stdarg.h>
3723#include <string.h>
3724#include <float.h>
3725
3726int
3727main ()
3728{
3729
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734rm -f conftest.$ac_objext
3735if { (ac_try="$ac_compile"
3736case "(($ac_try" in
3737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738  *) ac_try_echo=$ac_try;;
3739esac
3740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3741  (eval "$ac_compile") 2>conftest.er1
3742  ac_status=$?
3743  grep -v '^ *+' conftest.er1 >conftest.err
3744  rm -f conftest.er1
3745  cat conftest.err >&5
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); } && {
3748         test -z "$ac_cxx_werror_flag" ||
3749         test ! -s conftest.err
3750       } && test -s conftest.$ac_objext; then
3751  ac_cv_header_stdc=yes
3752else
3753  echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756        ac_cv_header_stdc=no
3757fi
3758
3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760
3761if test $ac_cv_header_stdc = yes; then
3762  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763  cat >conftest.$ac_ext <<_ACEOF
3764/* confdefs.h.  */
3765_ACEOF
3766cat confdefs.h >>conftest.$ac_ext
3767cat >>conftest.$ac_ext <<_ACEOF
3768/* end confdefs.h.  */
3769#include <string.h>
3770
3771_ACEOF
3772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773  $EGREP "memchr" >/dev/null 2>&1; then
3774  :
3775else
3776  ac_cv_header_stdc=no
3777fi
3778rm -f conftest*
3779
3780fi
3781
3782if test $ac_cv_header_stdc = yes; then
3783  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3784  cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h.  */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h.  */
3790#include <stdlib.h>
3791
3792_ACEOF
3793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794  $EGREP "free" >/dev/null 2>&1; then
3795  :
3796else
3797  ac_cv_header_stdc=no
3798fi
3799rm -f conftest*
3800
3801fi
3802
3803if test $ac_cv_header_stdc = yes; then
3804  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3805  if test "$cross_compiling" = yes; then
3806  :
3807else
3808  cat >conftest.$ac_ext <<_ACEOF
3809/* confdefs.h.  */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h.  */
3814#include <ctype.h>
3815#include <stdlib.h>
3816#if ((' ' & 0x0FF) == 0x020)
3817# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3819#else
3820# define ISLOWER(c) \
3821                   (('a' <= (c) && (c) <= 'i') \
3822                     || ('j' <= (c) && (c) <= 'r') \
3823                     || ('s' <= (c) && (c) <= 'z'))
3824# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825#endif
3826
3827#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3828int
3829main ()
3830{
3831  int i;
3832  for (i = 0; i < 256; i++)
3833    if (XOR (islower (i), ISLOWER (i))
3834        || toupper (i) != TOUPPER (i))
3835      return 2;
3836  return 0;
3837}
3838_ACEOF
3839rm -f conftest$ac_exeext
3840if { (ac_try="$ac_link"
3841case "(($ac_try" in
3842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843  *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846  (eval "$ac_link") 2>&5
3847  ac_status=$?
3848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3850  { (case "(($ac_try" in
3851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852  *) ac_try_echo=$ac_try;;
3853esac
3854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855  (eval "$ac_try") 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); }; }; then
3859  :
3860else
3861  echo "$as_me: program exited with status $ac_status" >&5
3862echo "$as_me: failed program was:" >&5
3863sed 's/^/| /' conftest.$ac_ext >&5
3864
3865( exit $ac_status )
3866ac_cv_header_stdc=no
3867fi
3868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3869fi
3870
3871
3872fi
3873fi
3874{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3875echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3876if test $ac_cv_header_stdc = yes; then
3877
3878cat >>confdefs.h <<\_ACEOF
3879#define STDC_HEADERS 1
3880_ACEOF
3881
3882fi
3883
3884# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3895                  inttypes.h stdint.h unistd.h
3896do
3897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3898{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3900if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3901  echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903  cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909$ac_includes_default
3910
3911#include <$ac_header>
3912_ACEOF
3913rm -f conftest.$ac_objext
3914if { (ac_try="$ac_compile"
3915case "(($ac_try" in
3916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917  *) ac_try_echo=$ac_try;;
3918esac
3919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920  (eval "$ac_compile") 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } && {
3927         test -z "$ac_cxx_werror_flag" ||
3928         test ! -s conftest.err
3929       } && test -s conftest.$ac_objext; then
3930  eval "$as_ac_Header=yes"
3931else
3932  echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935        eval "$as_ac_Header=no"
3936fi
3937
3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939fi
3940ac_res=`eval echo '${'$as_ac_Header'}'`
3941               { echo "$as_me:$LINENO: result: $ac_res" >&5
3942echo "${ECHO_T}$ac_res" >&6; }
3943if test `eval echo '${'$as_ac_Header'}'` = yes; then
3944  cat >>confdefs.h <<_ACEOF
3945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3946_ACEOF
3947
3948fi
3949
3950done
3951
3952
3953
3954for ac_header in tcl.h
3955do
3956as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3958  { echo "$as_me:$LINENO: checking for $ac_header" >&5
3959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3961  echo $ECHO_N "(cached) $ECHO_C" >&6
3962fi
3963ac_res=`eval echo '${'$as_ac_Header'}'`
3964               { echo "$as_me:$LINENO: result: $ac_res" >&5
3965echo "${ECHO_T}$ac_res" >&6; }
3966else
3967  # Is the header compilable?
3968{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
3969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3970cat >conftest.$ac_ext <<_ACEOF
3971/* confdefs.h.  */
3972_ACEOF
3973cat confdefs.h >>conftest.$ac_ext
3974cat >>conftest.$ac_ext <<_ACEOF
3975/* end confdefs.h.  */
3976$ac_includes_default
3977#include <$ac_header>
3978_ACEOF
3979rm -f conftest.$ac_objext
3980if { (ac_try="$ac_compile"
3981case "(($ac_try" in
3982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983  *) ac_try_echo=$ac_try;;
3984esac
3985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986  (eval "$ac_compile") 2>conftest.er1
3987  ac_status=$?
3988  grep -v '^ *+' conftest.er1 >conftest.err
3989  rm -f conftest.er1
3990  cat conftest.err >&5
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); } && {
3993         test -z "$ac_cxx_werror_flag" ||
3994         test ! -s conftest.err
3995       } && test -s conftest.$ac_objext; then
3996  ac_header_compiler=yes
3997else
3998  echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001        ac_header_compiler=no
4002fi
4003
4004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4006echo "${ECHO_T}$ac_header_compiler" >&6; }
4007
4008# Is the header present?
4009{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4010echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4011cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h.  */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h.  */
4017#include <$ac_header>
4018_ACEOF
4019if { (ac_try="$ac_cpp conftest.$ac_ext"
4020case "(($ac_try" in
4021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022  *) ac_try_echo=$ac_try;;
4023esac
4024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4026  ac_status=$?
4027  grep -v '^ *+' conftest.er1 >conftest.err
4028  rm -f conftest.er1
4029  cat conftest.err >&5
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); } >/dev/null && {
4032         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4033         test ! -s conftest.err
4034       }; then
4035  ac_header_preproc=yes
4036else
4037  echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040  ac_header_preproc=no
4041fi
4042
4043rm -f conftest.err conftest.$ac_ext
4044{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4045echo "${ECHO_T}$ac_header_preproc" >&6; }
4046
4047# So?  What about this header?
4048case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4049  yes:no: )
4050    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4051echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4052    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4053echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4054    ac_header_preproc=yes
4055    ;;
4056  no:yes:* )
4057    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4058echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4059    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4060echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4061    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4062echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4063    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4064echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4065    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4067    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4068echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4069    ( cat <<\_ASBOX
4070## ----------------------------------- ##
4071## Report this to rappture@nanohub.org ##
4072## ----------------------------------- ##
4073_ASBOX
4074     ) | sed "s/^/$as_me: WARNING:     /" >&2
4075    ;;
4076esac
4077{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4079if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4080  echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082  eval "$as_ac_Header=\$ac_header_preproc"
4083fi
4084ac_res=`eval echo '${'$as_ac_Header'}'`
4085               { echo "$as_me:$LINENO: result: $ac_res" >&5
4086echo "${ECHO_T}$ac_res" >&6; }
4087
4088fi
4089if test `eval echo '${'$as_ac_Header'}'` = yes; then
4090  cat >>confdefs.h <<_ACEOF
4091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4092_ACEOF
4093
4094else
4095  { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
4096echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
4097   { (exit 1); exit 1; }; }
4098fi
4099
4100done
4101
4102fi
4103# TCL_LIB=$(ls ${TCL_LIB_DIR} | grep -o libtcl[0-9]\.[0-9])
4104# TCL_LIB=`ls ${TCL_LIB_DIR} | awk '/libtcl([0-9]\.?[0-9])?\.so/ { print }'`
4105# TCL_LIB=`ls ${TCL_LIB_DIR} | sed -e '/libtcl([0-9]\.?[0-9])?\.so$/ {p}'`
4106# TCL_LIB_VERSION=$(echo ${TCL_LIB} | sed -e s/libtcl// -e s/\.so//)
4107{ echo "$as_me:$LINENO: result: ${TCL_LIB_DIR}/${TCL_LIB}" >&5
4108echo "${ECHO_T}${TCL_LIB_DIR}/${TCL_LIB}" >&6; }
4109# echo TCL_LIB_DIR = ${TCL_LIB_DIR}
4110# echo TCL_LIB = ${TCL_LIB}
4111# echo TCL_LIB_VERSION = ${TCL_LIB_VERSION}
4112
4113
4114
4115
4116
4117# Check whether --with-tclinclude was given.
4118if test "${with_tclinclude+set}" = set; then
4119  withval=$with_tclinclude; with_tclinclude=$withval
4120else
4121  with_tclinclude=/usr/include
4122fi
4123
4124
4125TCL_INCL_DIR=""
4126{ echo "$as_me:$LINENO: checking for tcl.h" >&5
4127echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
4128if test "x$with_tclinclude" != "x" ; then
4129    if test -f "$with_tclinclude"
4130    then
4131        if test `basename $with_tclinclude` = "tcl.h"
4132        then
4133            TCL_INCL_DIR="`dirname $with_tclinclude`"
4134        fi
4135    else
4136        if test -d "$with_tclinclude"
4137        then
4138            if test -r "$with_tclinclude/tcl.h"
4139            then
4140                TCL_INCL_DIR="$with_tclinclude"
4141            else
4142                if test -r "$with_tclinclude/tcl${TCL_LIB_VERSION}/tcl.h"
4143                then
4144                    TCL_INCL_DIR="$with_tclinclude/tcl${TCL_LIB_VERSION}"
4145                else
4146                    { echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6; }
4148                    { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
4149echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
4150   { (exit 1); exit 1; }; }
4151                fi
4152            fi
4153        else
4154            { echo "$as_me:$LINENO: result: no" >&5
4155echo "${ECHO_T}no" >&6; }
4156            { { echo "$as_me:$LINENO: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&5
4157echo "$as_me: error: cannot find tcl.h inside $with_tclinclude, try using --with-tclinclude" >&2;}
4158   { (exit 1); exit 1; }; }
4159        fi
4160    fi
4161else
4162
4163for ac_header in tcl.h
4164do
4165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4167  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4170  echo $ECHO_N "(cached) $ECHO_C" >&6
4171fi
4172ac_res=`eval echo '${'$as_ac_Header'}'`
4173               { echo "$as_me:$LINENO: result: $ac_res" >&5
4174echo "${ECHO_T}$ac_res" >&6; }
4175else
4176  # Is the header compilable?
4177{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4179cat >conftest.$ac_ext <<_ACEOF
4180/* confdefs.h.  */
4181_ACEOF
4182cat confdefs.h >>conftest.$ac_ext
4183cat >>conftest.$ac_ext <<_ACEOF
4184/* end confdefs.h.  */
4185$ac_includes_default
4186#include <$ac_header>
4187_ACEOF
4188rm -f conftest.$ac_objext
4189if { (ac_try="$ac_compile"
4190case "(($ac_try" in
4191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192  *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195  (eval "$ac_compile") 2>conftest.er1
4196  ac_status=$?
4197  grep -v '^ *+' conftest.er1 >conftest.err
4198  rm -f conftest.er1
4199  cat conftest.err >&5
4200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201  (exit $ac_status); } && {
4202         test -z "$ac_cxx_werror_flag" ||
4203         test ! -s conftest.err
4204       } && test -s conftest.$ac_objext; then
4205  ac_header_compiler=yes
4206else
4207  echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210        ac_header_compiler=no
4211fi
4212
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4215echo "${ECHO_T}$ac_header_compiler" >&6; }
4216
4217# Is the header present?
4218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4220cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h.  */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h.  */
4226#include <$ac_header>
4227_ACEOF
4228if { (ac_try="$ac_cpp conftest.$ac_ext"
4229case "(($ac_try" in
4230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231  *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4235  ac_status=$?
4236  grep -v '^ *+' conftest.er1 >conftest.err
4237  rm -f conftest.er1
4238  cat conftest.err >&5
4239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240  (exit $ac_status); } >/dev/null && {
4241         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4242         test ! -s conftest.err
4243       }; then
4244  ac_header_preproc=yes
4245else
4246  echo "$as_me: failed program was:" >&5
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
4249  ac_header_preproc=no
4250fi
4251
4252rm -f conftest.err conftest.$ac_ext
4253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4254echo "${ECHO_T}$ac_header_preproc" >&6; }
4255
4256# So?  What about this header?
4257case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4258  yes:no: )
4259    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4261    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4263    ac_header_preproc=yes
4264    ;;
4265  no:yes:* )
4266    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4268    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4269echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4270    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4272    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4273echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4274    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4276    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4278    ( cat <<\_ASBOX
4279## ----------------------------------- ##
4280## Report this to rappture@nanohub.org ##
4281## ----------------------------------- ##
4282_ASBOX
4283     ) | sed "s/^/$as_me: WARNING:     /" >&2
4284    ;;
4285esac
4286{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4289  echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291  eval "$as_ac_Header=\$ac_header_preproc"
4292fi
4293ac_res=`eval echo '${'$as_ac_Header'}'`
4294               { echo "$as_me:$LINENO: result: $ac_res" >&5
4295echo "${ECHO_T}$ac_res" >&6; }
4296
4297fi
4298if test `eval echo '${'$as_ac_Header'}'` = yes; then
4299  cat >>confdefs.h <<_ACEOF
4300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4301_ACEOF
4302
4303else
4304  { { echo "$as_me:$LINENO: error: cannot find tcl.h, try using --with-tclinclude" >&5
4305echo "$as_me: error: cannot find tcl.h, try using --with-tclinclude" >&2;}
4306   { (exit 1); exit 1; }; }
4307fi
4308
4309done
4310
4311fi
4312{ echo "$as_me:$LINENO: result: ${TCL_INCL_DIR}" >&5
4313echo "${ECHO_T}${TCL_INCL_DIR}" >&6; }
4314
4315
4316
4317# Check whether --with-rappture was given.
4318if test "${with_rappture+set}" = set; then
4319  withval=$with_rappture; with_rappture=$withval
4320else
4321  with_rappture=/usr
4322fi
4323
4324
4325RP2_INCL_DIR=""
4326RP_DIR=""
4327{ echo "$as_me:$LINENO: checking for rappture" >&5
4328echo $ECHO_N "checking for rappture... $ECHO_C" >&6; }
4329if test "x$with_rappture" != "x" ; then
4330    if test "x$with_rappture" != "xprefix" ; then
4331        if test -f "$with_rappture"
4332        then
4333            { echo "$as_me:$LINENO: result: no" >&5
4334echo "${ECHO_T}no" >&6; }
4335            { { echo "$as_me:$LINENO: error: please provide --with-rappture with directory" >&5
4336echo "$as_me: error: please provide --with-rappture with directory" >&2;}
4337   { (exit 1); exit 1; }; }
4338        else
4339            if test -d "$with_rappture"
4340            then
4341                if test -r "$with_rappture/include/rappture2/rappture2.h" -a -r "$with_rappture/lib/librappture2.a"
4342                then
4343                    RP2_INCL_DIR="$with_rappture/include/rappture2"
4344                    RP_DIR="$with_rappture"
4345                    { echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6; }
4347                else
4348                    { echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6; }
4350                    { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&5
4351echo "$as_me: error: cannot find rappture2.h and librappture2.a, try using --with-rappture" >&2;}
4352   { (exit 1); exit 1; }; }
4353                fi
4354            else
4355                { echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6; }
4357                { { echo "$as_me:$LINENO: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&5
4358echo "$as_me: error: cannot find rappture2.h and librappture2.a inside $with_rappture, try using --with-rappture" >&2;}
4359   { (exit 1); exit 1; }; }
4360            fi
4361        fi
4362    else
4363        RP2_INCL_DIR="$prefix/include/rappture2"
4364        RP_DIR="$prefix"
4365        { echo "$as_me:$LINENO: result: set to prefix" >&5
4366echo "${ECHO_T}set to prefix" >&6; }
4367    fi
4368else
4369
4370for ac_header in rappture.h
4371do
4372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4374  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4377  echo $ECHO_N "(cached) $ECHO_C" >&6
4378fi
4379ac_res=`eval echo '${'$as_ac_Header'}'`
4380               { echo "$as_me:$LINENO: result: $ac_res" >&5
4381echo "${ECHO_T}$ac_res" >&6; }
4382else
4383  # Is the header compilable?
4384{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4385echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4386cat >conftest.$ac_ext <<_ACEOF
4387/* confdefs.h.  */
4388_ACEOF
4389cat confdefs.h >>conftest.$ac_ext
4390cat >>conftest.$ac_ext <<_ACEOF
4391/* end confdefs.h.  */
4392$ac_includes_default
4393#include <$ac_header>
4394_ACEOF
4395rm -f conftest.$ac_objext
4396if { (ac_try="$ac_compile"
4397case "(($ac_try" in
4398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399  *) ac_try_echo=$ac_try;;
4400esac
4401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402  (eval "$ac_compile") 2>conftest.er1
4403  ac_status=$?
4404  grep -v '^ *+' conftest.er1 >conftest.err
4405  rm -f conftest.er1
4406  cat conftest.err >&5
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); } && {
4409         test -z "$ac_cxx_werror_flag" ||
4410         test ! -s conftest.err
4411       } && test -s conftest.$ac_objext; then
4412  ac_header_compiler=yes
4413else
4414  echo "$as_me: failed program was:" >&5
4415sed 's/^/| /' conftest.$ac_ext >&5
4416
4417        ac_header_compiler=no
4418fi
4419
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4422echo "${ECHO_T}$ac_header_compiler" >&6; }
4423
4424# Is the header present?
4425{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4427cat >conftest.$ac_ext <<_ACEOF
4428/* confdefs.h.  */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
4432/* end confdefs.h.  */
4433#include <$ac_header>
4434_ACEOF
4435if { (ac_try="$ac_cpp conftest.$ac_ext"
4436case "(($ac_try" in
4437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438  *) ac_try_echo=$ac_try;;
4439esac
4440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4442  ac_status=$?
4443  grep -v '^ *+' conftest.er1 >conftest.err
4444  rm -f conftest.er1
4445  cat conftest.err >&5
4446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447  (exit $ac_status); } >/dev/null && {
4448         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4449         test ! -s conftest.err
4450       }; then
4451  ac_header_preproc=yes
4452else
4453  echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456  ac_header_preproc=no
4457fi
4458
4459rm -f conftest.err conftest.$ac_ext
4460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4461echo "${ECHO_T}$ac_header_preproc" >&6; }
4462
4463# So?  What about this header?
4464case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4465  yes:no: )
4466    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4468    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4470    ac_header_preproc=yes
4471    ;;
4472  no:yes:* )
4473    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4475    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4476echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4477    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4479    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4480echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4481    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4483    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4485    ( cat <<\_ASBOX
4486## ----------------------------------- ##
4487## Report this to rappture@nanohub.org ##
4488## ----------------------------------- ##
4489_ASBOX
4490     ) | sed "s/^/$as_me: WARNING:     /" >&2
4491    ;;
4492esac
4493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4496  echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498  eval "$as_ac_Header=\$ac_header_preproc"
4499fi
4500ac_res=`eval echo '${'$as_ac_Header'}'`
4501               { echo "$as_me:$LINENO: result: $ac_res" >&5
4502echo "${ECHO_T}$ac_res" >&6; }
4503
4504fi
4505if test `eval echo '${'$as_ac_Header'}'` = yes; then
4506  cat >>confdefs.h <<_ACEOF
4507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4508_ACEOF
4509
4510else
4511  { { echo "$as_me:$LINENO: error: cannot find rappture.h, try using --with-rappture" >&5
4512echo "$as_me: error: cannot find rappture.h, try using --with-rappture" >&2;}
4513   { (exit 1); exit 1; }; }
4514fi
4515
4516done
4517
4518fi
4519{ echo "$as_me:$LINENO: result: ${RP_DIR}/include" >&5
4520echo "${ECHO_T}${RP_DIR}/include" >&6; }
4521
4522
4523
4524
4525
4526ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/imgLoaders/Makefile pymolproxy/Makefile start_viz.sh"
4527
4528cat >confcache <<\_ACEOF
4529# This file is a shell script that caches the results of configure
4530# tests run on this system so they can be shared between configure
4531# scripts and configure runs, see configure's option --config-cache.
4532# It is not useful on other systems.  If it contains results you don't
4533# want to keep, you may remove or edit it.
4534#
4535# config.status only pays attention to the cache file if you give it
4536# the --recheck option to rerun configure.
4537#
4538# `ac_cv_env_foo' variables (set or unset) will be overridden when
4539# loading this file, other *unset* `ac_cv_foo' will be assigned the
4540# following values.
4541
4542_ACEOF
4543
4544# The following way of writing the cache mishandles newlines in values,
4545# but we know of no workaround that is simple, portable, and efficient.
4546# So, we kill variables containing newlines.
4547# Ultrix sh set writes to stderr and can't be redirected directly,
4548# and sets the high bit in the cache file unless we assign to the vars.
4549(
4550  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4551    eval ac_val=\$$ac_var
4552    case $ac_val in #(
4553    *${as_nl}*)
4554      case $ac_var in #(
4555      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4556echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4557      esac
4558      case $ac_var in #(
4559      _ | IFS | as_nl) ;; #(
4560      *) $as_unset $ac_var ;;
4561      esac ;;
4562    esac
4563  done
4564
4565  (set) 2>&1 |
4566    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4567    *${as_nl}ac_space=\ *)
4568      # `set' does not quote correctly, so add quotes (double-quote
4569      # substitution turns \\\\ into \\, and sed turns \\ into \).
4570      sed -n \
4571        "s/'/'\\\\''/g;
4572          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4573      ;; #(
4574    *)
4575      # `set' quotes correctly as required by POSIX, so do not add quotes.
4576      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4577      ;;
4578    esac |
4579    sort
4580) |
4581  sed '
4582     /^ac_cv_env_/b end
4583     t clear
4584     :clear
4585     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4586     t end
4587     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4588     :end' >>confcache
4589if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4590  if test -w "$cache_file"; then
4591    test "x$cache_file" != "x/dev/null" &&
4592      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4593echo "$as_me: updating cache $cache_file" >&6;}
4594    cat confcache >$cache_file
4595  else
4596    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4597echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4598  fi
4599fi
4600rm -f confcache
4601
4602test "x$prefix" = xNONE && prefix=$ac_default_prefix
4603# Let make expand exec_prefix.
4604test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4605
4606# Transform confdefs.h into DEFS.
4607# Protect against shell expansion while executing Makefile rules.
4608# Protect against Makefile macro expansion.
4609#
4610# If the first sed substitution is executed (which looks for macros that
4611# take arguments), then branch to the quote section.  Otherwise,
4612# look for a macro that doesn't take arguments.
4613ac_script='
4614t clear
4615:clear
4616s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
4617t quote
4618s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
4619t quote
4620b any
4621:quote
4622s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4623s/\[/\\&/g
4624s/\]/\\&/g
4625s/\$/$$/g
4626H
4627:any
4628${
4629        g
4630        s/^\n//
4631        s/\n/ /g
4632        p
4633}
4634'
4635DEFS=`sed -n "$ac_script" confdefs.h`
4636
4637
4638ac_libobjs=
4639ac_ltlibobjs=
4640for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4641  # 1. Remove the extension, and $U if already installed.
4642  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4643  ac_i=`echo "$ac_i" | sed "$ac_script"`
4644  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4645  #    will be set to the directory where LIBOBJS objects are built.
4646  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4647  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4648done
4649LIBOBJS=$ac_libobjs
4650
4651LTLIBOBJS=$ac_ltlibobjs
4652
4653
4654
4655: ${CONFIG_STATUS=./config.status}
4656ac_clean_files_save=$ac_clean_files
4657ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4658{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4659echo "$as_me: creating $CONFIG_STATUS" >&6;}
4660cat >$CONFIG_STATUS <<_ACEOF
4661#! $SHELL
4662# Generated by $as_me.
4663# Run this file to recreate the current configuration.
4664# Compiler output produced by configure, useful for debugging
4665# configure, is in config.log if it exists.
4666
4667debug=false
4668ac_cs_recheck=false
4669ac_cs_silent=false
4670SHELL=\${CONFIG_SHELL-$SHELL}
4671_ACEOF
4672
4673cat >>$CONFIG_STATUS <<\_ACEOF
4674## --------------------- ##
4675## M4sh Initialization.  ##
4676## --------------------- ##
4677
4678# Be more Bourne compatible
4679DUALCASE=1; export DUALCASE # for MKS sh
4680if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4681  emulate sh
4682  NULLCMD=:
4683  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4684  # is contrary to our usage.  Disable this feature.
4685  alias -g '${1+"$@"}'='"$@"'
4686  setopt NO_GLOB_SUBST
4687else
4688  case `(set -o) 2>/dev/null` in
4689  *posix*) set -o posix ;;
4690esac
4691
4692fi
4693
4694
4695
4696
4697# PATH needs CR
4698# Avoid depending upon Character Ranges.
4699as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4701as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4702as_cr_digits='0123456789'
4703as_cr_alnum=$as_cr_Letters$as_cr_digits
4704
4705# The user is always right.
4706if test "${PATH_SEPARATOR+set}" != set; then
4707  echo "#! /bin/sh" >conf$$.sh
4708  echo  "exit 0"   >>conf$$.sh
4709  chmod +x conf$$.sh
4710  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4711    PATH_SEPARATOR=';'
4712  else
4713    PATH_SEPARATOR=:
4714  fi
4715  rm -f conf$$.sh
4716fi
4717
4718# Support unset when possible.
4719if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4720  as_unset=unset
4721else
4722  as_unset=false
4723fi
4724
4725
4726# IFS
4727# We need space, tab and new line, in precisely that order.  Quoting is
4728# there to prevent editors from complaining about space-tab.
4729# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4730# splitting by setting IFS to empty value.)
4731as_nl='
4732'
4733IFS=" ""        $as_nl"
4734
4735# Find who we are.  Look in the path if we contain no directory separator.
4736case $0 in
4737  *[\\/]* ) as_myself=$0 ;;
4738  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741  IFS=$as_save_IFS
4742  test -z "$as_dir" && as_dir=.
4743  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4744done
4745IFS=$as_save_IFS
4746
4747     ;;
4748esac
4749# We did not find ourselves, most probably we were run as `sh COMMAND'
4750# in which case we are not to be found in the path.
4751if test "x$as_myself" = x; then
4752  as_myself=$0
4753fi
4754if test ! -f "$as_myself"; then
4755  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4756  { (exit 1); exit 1; }
4757fi
4758
4759# Work around bugs in pre-3.0 UWIN ksh.
4760for as_var in ENV MAIL MAILPATH
4761do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4762done
4763PS1='$ '
4764PS2='> '
4765PS4='+ '
4766
4767# NLS nuisances.
4768for as_var in \
4769  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4770  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4771  LC_TELEPHONE LC_TIME
4772do
4773  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4774    eval $as_var=C; export $as_var
4775  else
4776    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4777  fi
4778done
4779
4780# Required to use basename.
4781if expr a : '\(a\)' >/dev/null 2>&1 &&
4782   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4783  as_expr=expr
4784else
4785  as_expr=false
4786fi
4787
4788if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4789  as_basename=basename
4790else
4791  as_basename=false
4792fi
4793
4794
4795# Name of the executable.
4796as_me=`$as_basename -- "$0" ||
4797$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4798         X"$0" : 'X\(//\)$' \| \
4799         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4800echo X/"$0" |
4801    sed '/^.*\/\([^/][^/]*\)\/*$/{
4802            s//\1/
4803            q
4804          }
4805          /^X\/\(\/\/\)$/{
4806            s//\1/
4807            q
4808          }
4809          /^X\/\(\/\).*/{
4810            s//\1/
4811            q
4812          }
4813          s/.*/./; q'`
4814
4815# CDPATH.
4816$as_unset CDPATH
4817
4818
4819
4820  as_lineno_1=$LINENO
4821  as_lineno_2=$LINENO
4822  test "x$as_lineno_1" != "x$as_lineno_2" &&
4823  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4824
4825  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4826  # uniformly replaced by the line number.  The first 'sed' inserts a
4827  # line-number line after each line using $LINENO; the second 'sed'
4828  # does the real work.  The second script uses 'N' to pair each
4829  # line-number line with the line containing $LINENO, and appends
4830  # trailing '-' during substitution so that $LINENO is not a special
4831  # case at line end.
4832  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4833  # scripts with optimization help from Paolo Bonzini.  Blame Lee
4834  # E. McMahon (1931-1989) for sed's syntax.  :-)
4835  sed -n '
4836    p
4837    /[$]LINENO/=
4838  ' <$as_myself |
4839    sed '
4840      s/[$]LINENO.*/&-/
4841      t lineno
4842      b
4843      :lineno
4844      N
4845      :loop
4846      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4847      t loop
4848      s/-\n.*//
4849    ' >$as_me.lineno &&
4850  chmod +x "$as_me.lineno" ||
4851    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4852   { (exit 1); exit 1; }; }
4853
4854  # Don't try to exec as it changes $[0], causing all sort of problems
4855  # (the dirname of $[0] is not the place where we might find the
4856  # original and so on.  Autoconf is especially sensitive to this).
4857  . "./$as_me.lineno"
4858  # Exit status is that of the last command.
4859  exit
4860}
4861
4862
4863if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4864  as_dirname=dirname
4865else
4866  as_dirname=false
4867fi
4868
4869ECHO_C= ECHO_N= ECHO_T=
4870case `echo -n x` in
4871-n*)
4872  case `echo 'x\c'` in
4873  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
4874  *)   ECHO_C='\c';;
4875  esac;;
4876*)
4877  ECHO_N='-n';;
4878esac
4879
4880if expr a : '\(a\)' >/dev/null 2>&1 &&
4881   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4882  as_expr=expr
4883else
4884  as_expr=false
4885fi
4886
4887rm -f conf$$ conf$$.exe conf$$.file
4888if test -d conf$$.dir; then
4889  rm -f conf$$.dir/conf$$.file
4890else
4891  rm -f conf$$.dir
4892  mkdir conf$$.dir
4893fi
4894echo >conf$$.file
4895if ln -s conf$$.file conf$$ 2>/dev/null; then
4896  as_ln_s='ln -s'
4897  # ... but there are two gotchas:
4898  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4899  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4900  # In both cases, we have to default to `cp -p'.
4901  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4902    as_ln_s='cp -p'
4903elif ln conf$$.file conf$$ 2>/dev/null; then
4904  as_ln_s=ln
4905else
4906  as_ln_s='cp -p'
4907fi
4908rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4909rmdir conf$$.dir 2>/dev/null
4910
4911if mkdir -p . 2>/dev/null; then
4912  as_mkdir_p=:
4913else
4914  test -d ./-p && rmdir ./-p
4915  as_mkdir_p=false
4916fi
4917
4918if test -x / >/dev/null 2>&1; then
4919  as_test_x='test -x'
4920else
4921  if ls -dL / >/dev/null 2>&1; then
4922    as_ls_L_option=L
4923  else
4924    as_ls_L_option=
4925  fi
4926  as_test_x='
4927    eval sh -c '\''
4928      if test -d "$1"; then
4929        test -d "$1/.";
4930      else
4931        case $1 in
4932        -*)set "./$1";;
4933        esac;
4934        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4935        ???[sx]*):;;*)false;;esac;fi
4936    '\'' sh
4937  '
4938fi
4939as_executable_p=$as_test_x
4940
4941# Sed expression to map a string onto a valid CPP name.
4942as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4943
4944# Sed expression to map a string onto a valid variable name.
4945as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4946
4947
4948exec 6>&1
4949
4950# Save the log message, to keep $[0] and so on meaningful, and to
4951# report actual input values of CONFIG_FILES etc. instead of their
4952# values after options handling.
4953ac_log="
4954This file was extended by vizservers $as_me 0.1, which was
4955generated by GNU Autoconf 2.61.  Invocation command line was
4956
4957  CONFIG_FILES    = $CONFIG_FILES
4958  CONFIG_HEADERS  = $CONFIG_HEADERS
4959  CONFIG_LINKS    = $CONFIG_LINKS
4960  CONFIG_COMMANDS = $CONFIG_COMMANDS
4961  $ $0 $@
4962
4963on `(hostname || uname -n) 2>/dev/null | sed 1q`
4964"
4965
4966_ACEOF
4967
4968cat >>$CONFIG_STATUS <<_ACEOF
4969# Files that config.status was made for.
4970config_files="$ac_config_files"
4971
4972_ACEOF
4973
4974cat >>$CONFIG_STATUS <<\_ACEOF
4975ac_cs_usage="\
4976\`$as_me' instantiates files from templates according to the
4977current configuration.
4978
4979Usage: $0 [OPTIONS] [FILE]...
4980
4981  -h, --help       print this help, then exit
4982  -V, --version    print version number and configuration settings, then exit
4983  -q, --quiet      do not print progress messages
4984  -d, --debug      don't remove temporary files
4985      --recheck    update $as_me by reconfiguring in the same conditions
4986  --file=FILE[:TEMPLATE]
4987                   instantiate the configuration file FILE
4988
4989Configuration files:
4990$config_files
4991
4992Report bugs to <bug-autoconf@gnu.org>."
4993
4994_ACEOF
4995cat >>$CONFIG_STATUS <<_ACEOF
4996ac_cs_version="\\
4997vizservers config.status 0.1
4998configured by $0, generated by GNU Autoconf 2.61,
4999  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5000
5001Copyright (C) 2006 Free Software Foundation, Inc.
5002This config.status script is free software; the Free Software Foundation
5003gives unlimited permission to copy, distribute and modify it."
5004
5005ac_pwd='$ac_pwd'
5006srcdir='$srcdir'
5007INSTALL='$INSTALL'
5008_ACEOF
5009
5010cat >>$CONFIG_STATUS <<\_ACEOF
5011# If no file are specified by the user, then we need to provide default
5012# value.  By we need to know if files were specified by the user.
5013ac_need_defaults=:
5014while test $# != 0
5015do
5016  case $1 in
5017  --*=*)
5018    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5019    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5020    ac_shift=:
5021    ;;
5022  *)
5023    ac_option=$1
5024    ac_optarg=$2
5025    ac_shift=shift
5026    ;;
5027  esac
5028
5029  case $ac_option in
5030  # Handling of the options.
5031  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5032    ac_cs_recheck=: ;;
5033  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5034    echo "$ac_cs_version"; exit ;;
5035  --debug | --debu | --deb | --de | --d | -d )
5036    debug=: ;;
5037  --file | --fil | --fi | --f )
5038    $ac_shift
5039    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5040    ac_need_defaults=false;;
5041  --he | --h |  --help | --hel | -h )
5042    echo "$ac_cs_usage"; exit ;;
5043  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5044  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5045    ac_cs_silent=: ;;
5046
5047  # This is an error.
5048  -*) { echo "$as_me: error: unrecognized option: $1
5049Try \`$0 --help' for more information." >&2
5050   { (exit 1); exit 1; }; } ;;
5051
5052  *) ac_config_targets="$ac_config_targets $1"
5053     ac_need_defaults=false ;;
5054
5055  esac
5056  shift
5057done
5058
5059ac_configure_extra_args=
5060
5061if $ac_cs_silent; then
5062  exec 6>/dev/null
5063  ac_configure_extra_args="$ac_configure_extra_args --silent"
5064fi
5065
5066_ACEOF
5067cat >>$CONFIG_STATUS <<_ACEOF
5068if \$ac_cs_recheck; then
5069  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5070  CONFIG_SHELL=$SHELL
5071  export CONFIG_SHELL
5072  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5073fi
5074
5075_ACEOF
5076cat >>$CONFIG_STATUS <<\_ACEOF
5077exec 5>>config.log
5078{
5079  echo
5080  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5081## Running $as_me. ##
5082_ASBOX
5083  echo "$ac_log"
5084} >&5
5085
5086_ACEOF
5087cat >>$CONFIG_STATUS <<_ACEOF
5088_ACEOF
5089
5090cat >>$CONFIG_STATUS <<\_ACEOF
5091
5092# Handling of arguments.
5093for ac_config_target in $ac_config_targets
5094do
5095  case $ac_config_target in
5096    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5097    "nanoscale/Makefile") CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;;
5098    "nanovis/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/Makefile" ;;
5099    "nanovis/newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/newmat11/Makefile" ;;
5100    "nanovis/R2/src/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/R2/src/Makefile" ;;
5101    "nanovis/imgLoaders/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/imgLoaders/Makefile" ;;
5102    "pymolproxy/Makefile") CONFIG_FILES="$CONFIG_FILES pymolproxy/Makefile" ;;
5103    "start_viz.sh") CONFIG_FILES="$CONFIG_FILES start_viz.sh" ;;
5104
5105  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5106echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5107   { (exit 1); exit 1; }; };;
5108  esac
5109done
5110
5111
5112# If the user did not use the arguments to specify the items to instantiate,
5113# then the envvar interface is used.  Set only those that are not.
5114# We use the long form for the default assignment because of an extremely
5115# bizarre bug on SunOS 4.1.3.
5116if $ac_need_defaults; then
5117  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5118fi
5119
5120# Have a temporary directory for convenience.  Make it in the build tree
5121# simply because there is no reason against having it here, and in addition,
5122# creating and moving files from /tmp can sometimes cause problems.
5123# Hook for its removal unless debugging.
5124# Note that there is a small window in which the directory will not be cleaned:
5125# after its creation but before its name has been assigned to `$tmp'.
5126$debug ||
5127{
5128  tmp=
5129  trap 'exit_status=$?
5130  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5131' 0
5132  trap '{ (exit 1); exit 1; }' 1 2 13 15
5133}
5134# Create a (secure) tmp directory for tmp files.
5135
5136{
5137  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5138  test -n "$tmp" && test -d "$tmp"
5139}  ||
5140{
5141  tmp=./conf$$-$RANDOM
5142  (umask 077 && mkdir "$tmp")
5143} ||
5144{
5145   echo "$me: cannot create a temporary directory in ." >&2
5146   { (exit 1); exit 1; }
5147}
5148
5149#
5150# Set up the sed scripts for CONFIG_FILES section.
5151#
5152
5153# No need to generate the scripts if there are no CONFIG_FILES.
5154# This happens for instance when ./config.status config.h
5155if test -n "$CONFIG_FILES"; then
5156
5157_ACEOF
5158
5159
5160
5161ac_delim='%!_!# '
5162for ac_last_try in false false false false false :; do
5163  cat >conf$$subs.sed <<_ACEOF
5164SHELL!$SHELL$ac_delim
5165PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5166PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5167PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5168PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5169PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5170PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5171exec_prefix!$exec_prefix$ac_delim
5172prefix!$prefix$ac_delim
5173program_transform_name!$program_transform_name$ac_delim
5174bindir!$bindir$ac_delim
5175sbindir!$sbindir$ac_delim
5176libexecdir!$libexecdir$ac_delim
5177datarootdir!$datarootdir$ac_delim
5178datadir!$datadir$ac_delim
5179sysconfdir!$sysconfdir$ac_delim
5180sharedstatedir!$sharedstatedir$ac_delim
5181localstatedir!$localstatedir$ac_delim
5182includedir!$includedir$ac_delim
5183oldincludedir!$oldincludedir$ac_delim
5184docdir!$docdir$ac_delim
5185infodir!$infodir$ac_delim
5186htmldir!$htmldir$ac_delim
5187dvidir!$dvidir$ac_delim
5188pdfdir!$pdfdir$ac_delim
5189psdir!$psdir$ac_delim
5190libdir!$libdir$ac_delim
5191localedir!$localedir$ac_delim
5192mandir!$mandir$ac_delim
5193DEFS!$DEFS$ac_delim
5194ECHO_C!$ECHO_C$ac_delim
5195ECHO_N!$ECHO_N$ac_delim
5196ECHO_T!$ECHO_T$ac_delim
5197LIBS!$LIBS$ac_delim
5198build_alias!$build_alias$ac_delim
5199host_alias!$host_alias$ac_delim
5200target_alias!$target_alias$ac_delim
5201VERSION!$VERSION$ac_delim
5202LIB_SEARCH_DIRS!$LIB_SEARCH_DIRS$ac_delim
5203INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
5204INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
5205INSTALL_DATA!$INSTALL_DATA$ac_delim
5206SET_MAKE!$SET_MAKE$ac_delim
5207CC!$CC$ac_delim
5208CFLAGS!$CFLAGS$ac_delim
5209LDFLAGS!$LDFLAGS$ac_delim
5210CPPFLAGS!$CPPFLAGS$ac_delim
5211ac_ct_CC!$ac_ct_CC$ac_delim
5212EXEEXT!$EXEEXT$ac_delim
5213OBJEXT!$OBJEXT$ac_delim
5214RANLIB!$RANLIB$ac_delim
5215CXX!$CXX$ac_delim
5216CXXFLAGS!$CXXFLAGS$ac_delim
5217ac_ct_CXX!$ac_ct_CXX$ac_delim
5218SUBDIRS!$SUBDIRS$ac_delim
5219CXXCPP!$CXXCPP$ac_delim
5220GREP!$GREP$ac_delim
5221EGREP!$EGREP$ac_delim
5222TCL_LIB_DIR!$TCL_LIB_DIR$ac_delim
5223TCL_LIB!$TCL_LIB$ac_delim
5224TCL_LIB_VERSION!$TCL_LIB_VERSION$ac_delim
5225TCL_INCL_DIR!$TCL_INCL_DIR$ac_delim
5226RP2_INCL_DIR!$RP2_INCL_DIR$ac_delim
5227RP_DIR!$RP_DIR$ac_delim
5228LIBOBJS!$LIBOBJS$ac_delim
5229LTLIBOBJS!$LTLIBOBJS$ac_delim
5230_ACEOF
5231
5232  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
5233    break
5234  elif $ac_last_try; then
5235    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5236echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5237   { (exit 1); exit 1; }; }
5238  else
5239    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5240  fi
5241done
5242
5243ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5244if test -n "$ac_eof"; then
5245  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5246  ac_eof=`expr $ac_eof + 1`
5247fi
5248
5249cat >>$CONFIG_STATUS <<_ACEOF
5250cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5251/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5252_ACEOF
5253sed '
5254s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5255s/^/s,@/; s/!/@,|#_!!_#|/
5256:n
5257t n
5258s/'"$ac_delim"'$/,g/; t
5259s/$/\\/; p
5260N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5261' >>$CONFIG_STATUS <conf$$subs.sed
5262rm -f conf$$subs.sed
5263cat >>$CONFIG_STATUS <<_ACEOF
5264:end
5265s/|#_!!_#|//g
5266CEOF$ac_eof
5267_ACEOF
5268
5269
5270# VPATH may cause trouble with some makes, so we remove $(srcdir),
5271# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5272# trailing colons and then remove the whole line if VPATH becomes empty
5273# (actually we leave an empty line to preserve line numbers).
5274if test "x$srcdir" = x.; then
5275  ac_vpsub='/^[  ]*VPATH[        ]*=/{
5276s/:*\$(srcdir):*/:/
5277s/:*\${srcdir}:*/:/
5278s/:*@srcdir@:*/:/
5279s/^\([^=]*=[     ]*\):*/\1/
5280s/:*$//
5281s/^[^=]*=[       ]*$//
5282}'
5283fi
5284
5285cat >>$CONFIG_STATUS <<\_ACEOF
5286fi # test -n "$CONFIG_FILES"
5287
5288
5289for ac_tag in  :F $CONFIG_FILES
5290do
5291  case $ac_tag in
5292  :[FHLC]) ac_mode=$ac_tag; continue;;
5293  esac
5294  case $ac_mode$ac_tag in
5295  :[FHL]*:*);;
5296  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5297echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5298   { (exit 1); exit 1; }; };;
5299  :[FH]-) ac_tag=-:-;;
5300  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5301  esac
5302  ac_save_IFS=$IFS
5303  IFS=:
5304  set x $ac_tag
5305  IFS=$ac_save_IFS
5306  shift
5307  ac_file=$1
5308  shift
5309
5310  case $ac_mode in
5311  :L) ac_source=$1;;
5312  :[FH])
5313    ac_file_inputs=
5314    for ac_f
5315    do
5316      case $ac_f in
5317      -) ac_f="$tmp/stdin";;
5318      *) # Look for the file first in the build tree, then in the source tree
5319         # (if the path is not absolute).  The absolute path cannot be DOS-style,
5320         # because $ac_f cannot contain `:'.
5321         test -f "$ac_f" ||
5322           case $ac_f in
5323           [\\/$]*) false;;
5324           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5325           esac ||
5326           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5327echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5328   { (exit 1); exit 1; }; };;
5329      esac
5330      ac_file_inputs="$ac_file_inputs $ac_f"
5331    done
5332
5333    # Let's still pretend it is `configure' which instantiates (i.e., don't
5334    # use $as_me), people would be surprised to read:
5335    #    /* config.h.  Generated by config.status.  */
5336    configure_input="Generated from "`IFS=:
5337          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5338    if test x"$ac_file" != x-; then
5339      configure_input="$ac_file.  $configure_input"
5340      { echo "$as_me:$LINENO: creating $ac_file" >&5
5341echo "$as_me: creating $ac_file" >&6;}
5342    fi
5343
5344    case $ac_tag in
5345    *:-:* | *:-) cat >"$tmp/stdin";;
5346    esac
5347    ;;
5348  esac
5349
5350  ac_dir=`$as_dirname -- "$ac_file" ||
5351$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5352         X"$ac_file" : 'X\(//\)[^/]' \| \
5353         X"$ac_file" : 'X\(//\)$' \| \
5354         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5355echo X"$ac_file" |
5356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5357            s//\1/
5358            q
5359          }
5360          /^X\(\/\/\)[^/].*/{
5361            s//\1/
5362            q
5363          }
5364          /^X\(\/\/\)$/{
5365            s//\1/
5366            q
5367          }
5368          /^X\(\/\).*/{
5369            s//\1/
5370            q
5371          }
5372          s/.*/./; q'`
5373  { as_dir="$ac_dir"
5374  case $as_dir in #(
5375  -*) as_dir=./$as_dir;;
5376  esac
5377  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5378    as_dirs=
5379    while :; do
5380      case $as_dir in #(
5381      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5382      *) as_qdir=$as_dir;;
5383      esac
5384      as_dirs="'$as_qdir' $as_dirs"
5385      as_dir=`$as_dirname -- "$as_dir" ||
5386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5387         X"$as_dir" : 'X\(//\)[^/]' \| \
5388         X"$as_dir" : 'X\(//\)$' \| \
5389         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5390echo X"$as_dir" |
5391    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5392            s//\1/
5393            q
5394          }
5395          /^X\(\/\/\)[^/].*/{
5396            s//\1/
5397            q
5398          }
5399          /^X\(\/\/\)$/{
5400            s//\1/
5401            q
5402          }
5403          /^X\(\/\).*/{
5404            s//\1/
5405            q
5406          }
5407          s/.*/./; q'`
5408      test -d "$as_dir" && break
5409    done
5410    test -z "$as_dirs" || eval "mkdir $as_dirs"
5411  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5412echo "$as_me: error: cannot create directory $as_dir" >&2;}
5413   { (exit 1); exit 1; }; }; }
5414  ac_builddir=.
5415
5416case "$ac_dir" in
5417.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5418*)
5419  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5420  # A ".." for each directory in $ac_dir_suffix.
5421  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5422  case $ac_top_builddir_sub in
5423  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5424  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5425  esac ;;
5426esac
5427ac_abs_top_builddir=$ac_pwd
5428ac_abs_builddir=$ac_pwd$ac_dir_suffix
5429# for backward compatibility:
5430ac_top_builddir=$ac_top_build_prefix
5431
5432case $srcdir in
5433  .)  # We are building in place.
5434    ac_srcdir=.
5435    ac_top_srcdir=$ac_top_builddir_sub
5436    ac_abs_top_srcdir=$ac_pwd ;;
5437  [\\/]* | ?:[\\/]* )  # Absolute name.
5438    ac_srcdir=$srcdir$ac_dir_suffix;
5439    ac_top_srcdir=$srcdir
5440    ac_abs_top_srcdir=$srcdir ;;
5441  *) # Relative name.
5442    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5443    ac_top_srcdir=$ac_top_build_prefix$srcdir
5444    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5445esac
5446ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5447
5448
5449  case $ac_mode in
5450  :F)
5451  #
5452  # CONFIG_FILE
5453  #
5454
5455  case $INSTALL in
5456  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5457  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5458  esac
5459_ACEOF
5460
5461cat >>$CONFIG_STATUS <<\_ACEOF
5462# If the template does not know about datarootdir, expand it.
5463# FIXME: This hack should be removed a few years after 2.60.
5464ac_datarootdir_hack=; ac_datarootdir_seen=
5465
5466case `sed -n '/datarootdir/ {
5467  p
5468  q
5469}
5470/@datadir@/p
5471/@docdir@/p
5472/@infodir@/p
5473/@localedir@/p
5474/@mandir@/p
5475' $ac_file_inputs` in
5476*datarootdir*) ac_datarootdir_seen=yes;;
5477*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5478  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5479echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5480_ACEOF
5481cat >>$CONFIG_STATUS <<_ACEOF
5482  ac_datarootdir_hack='
5483  s&@datadir@&$datadir&g
5484  s&@docdir@&$docdir&g
5485  s&@infodir@&$infodir&g
5486  s&@localedir@&$localedir&g
5487  s&@mandir@&$mandir&g
5488    s&\\\${datarootdir}&$datarootdir&g' ;;
5489esac
5490_ACEOF
5491
5492# Neutralize VPATH when `$srcdir' = `.'.
5493# Shell code in configure.ac might set extrasub.
5494# FIXME: do we really want to maintain this feature?
5495cat >>$CONFIG_STATUS <<_ACEOF
5496  sed "$ac_vpsub
5497$extrasub
5498_ACEOF
5499cat >>$CONFIG_STATUS <<\_ACEOF
5500:t
5501/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5502s&@configure_input@&$configure_input&;t t
5503s&@top_builddir@&$ac_top_builddir_sub&;t t
5504s&@srcdir@&$ac_srcdir&;t t
5505s&@abs_srcdir@&$ac_abs_srcdir&;t t
5506s&@top_srcdir@&$ac_top_srcdir&;t t
5507s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5508s&@builddir@&$ac_builddir&;t t
5509s&@abs_builddir@&$ac_abs_builddir&;t t
5510s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5511s&@INSTALL@&$ac_INSTALL&;t t
5512$ac_datarootdir_hack
5513" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5514
5515test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5516  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5517  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5518  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5519which seems to be undefined.  Please make sure it is defined." >&5
5520echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5521which seems to be undefined.  Please make sure it is defined." >&2;}
5522
5523  rm -f "$tmp/stdin"
5524  case $ac_file in
5525  -) cat "$tmp/out"; rm -f "$tmp/out";;
5526  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5527  esac
5528 ;;
5529
5530
5531
5532  esac
5533
5534done # for ac_tag
5535
5536
5537{ (exit 0); exit 0; }
5538_ACEOF
5539chmod +x $CONFIG_STATUS
5540ac_clean_files=$ac_clean_files_save
5541
5542
5543# configure is writing to config.log, and then calls config.status.
5544# config.status does its own redirection, appending to config.log.
5545# Unfortunately, on DOS this fails, as config.log is still kept open
5546# by configure, so config.status won't be able to write to it; its
5547# output is simply discarded.  So we exec the FD to /dev/null,
5548# effectively closing config.log, so it can be properly (re)opened and
5549# appended to by config.status.  When coming back to configure, we
5550# need to make the FD available again.
5551if test "$no_create" != yes; then
5552  ac_cs_success=:
5553  ac_config_status_args=
5554  test "$silent" = yes &&
5555    ac_config_status_args="$ac_config_status_args --quiet"
5556  exec 5>/dev/null
5557  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5558  exec 5>>config.log
5559  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5560  # would make configure fail if this is the last instruction.
5561  $ac_cs_success || { (exit 1); exit 1; }
5562fi
5563
Note: See TracBrowser for help on using the repository browser.