source: trunk/vizservers/configure @ 749

Last change on this file since 749 was 749, checked in by dkearney, 15 years ago

moved vizservers directory to top level. added configure/makefiles to nanovis, nanoscale, pymolproxy all controlled by a configure script in
vizservers directory. to build you need to specify where rappture and tcl are installed. the start_viz.sh script was adjusted to copy the voronoi and
rappture libraries over to the tmp directory because these files tend to reside on an nfs mounted drive.

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