source: trunk/packages/vizservers/configure @ 4503

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

Rename configure option to --with-logdir (instead of logsdir)

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