source: pymolproxy/trunk/configure @ 4589

Last change on this file since 4589 was 4589, checked in by ldelgass, 7 years ago

add configure for pymolproxy

  • Property svn:executable set to *
File size: 251.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pymolproxy 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='pymolproxy'
582PACKAGE_TARNAME='pymolproxy'
583PACKAGE_VERSION='0.1'
584PACKAGE_STRING='pymolproxy 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 pymolproxy 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/pymolproxy]
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 pymolproxy 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
1451pymolproxy 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 pymolproxy $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
2451
2452
2453# Check whether --with-tcllib was given.
2454if test "${with_tcllib+set}" = set; then :
2455  withval=$with_tcllib; with_tcllib=$withval
2456else
2457  with_tcllib=""
2458fi
2459
2460
2461
2462# Check whether --with-statsdir was given.
2463if test "${with_statsdir+set}" = set; then :
2464  withval=$with_statsdir; STATSDIR=$withval
2465else
2466  STATSDIR="/var/tmp/visservers"
2467fi
2468
2469
2470
2471# Check whether --with-logdir was given.
2472if test "${with_logdir+set}" = set; then :
2473  withval=$with_logdir; LOGDIR=$withval
2474else
2475  LOGDIR="/tmp"
2476fi
2477
2478
2479ac_ext=c
2480ac_cpp='$CPP $CPPFLAGS'
2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484if test -n "$ac_tool_prefix"; then
2485  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2486set dummy ${ac_tool_prefix}gcc; ac_word=$2
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488$as_echo_n "checking for $ac_word... " >&6; }
2489if ${ac_cv_prog_CC+:} false; then :
2490  $as_echo_n "(cached) " >&6
2491else
2492  if test -n "$CC"; then
2493  ac_cv_prog_CC="$CC" # Let the user override the test.
2494else
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498  IFS=$as_save_IFS
2499  test -z "$as_dir" && as_dir=.
2500    for ac_exec_ext in '' $ac_executable_extensions; do
2501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504    break 2
2505  fi
2506done
2507  done
2508IFS=$as_save_IFS
2509
2510fi
2511fi
2512CC=$ac_cv_prog_CC
2513if test -n "$CC"; then
2514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2515$as_echo "$CC" >&6; }
2516else
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518$as_echo "no" >&6; }
2519fi
2520
2521
2522fi
2523if test -z "$ac_cv_prog_CC"; then
2524  ac_ct_CC=$CC
2525  # Extract the first word of "gcc", so it can be a program name with args.
2526set dummy gcc; ac_word=$2
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528$as_echo_n "checking for $ac_word... " >&6; }
2529if ${ac_cv_prog_ac_ct_CC+:} false; then :
2530  $as_echo_n "(cached) " >&6
2531else
2532  if test -n "$ac_ct_CC"; then
2533  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2534else
2535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536for as_dir in $PATH
2537do
2538  IFS=$as_save_IFS
2539  test -z "$as_dir" && as_dir=.
2540    for ac_exec_ext in '' $ac_executable_extensions; do
2541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2542    ac_cv_prog_ac_ct_CC="gcc"
2543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544    break 2
2545  fi
2546done
2547  done
2548IFS=$as_save_IFS
2549
2550fi
2551fi
2552ac_ct_CC=$ac_cv_prog_ac_ct_CC
2553if test -n "$ac_ct_CC"; then
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2555$as_echo "$ac_ct_CC" >&6; }
2556else
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558$as_echo "no" >&6; }
2559fi
2560
2561  if test "x$ac_ct_CC" = x; then
2562    CC=""
2563  else
2564    case $cross_compiling:$ac_tool_warned in
2565yes:)
2566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2568ac_tool_warned=yes ;;
2569esac
2570    CC=$ac_ct_CC
2571  fi
2572else
2573  CC="$ac_cv_prog_CC"
2574fi
2575
2576if test -z "$CC"; then
2577          if test -n "$ac_tool_prefix"; then
2578    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2579set dummy ${ac_tool_prefix}cc; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if ${ac_cv_prog_CC+:} false; then :
2583  $as_echo_n "(cached) " >&6
2584else
2585  if test -n "$CC"; then
2586  ac_cv_prog_CC="$CC" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591  IFS=$as_save_IFS
2592  test -z "$as_dir" && as_dir=.
2593    for ac_exec_ext in '' $ac_executable_extensions; do
2594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595    ac_cv_prog_CC="${ac_tool_prefix}cc"
2596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597    break 2
2598  fi
2599done
2600  done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605CC=$ac_cv_prog_CC
2606if test -n "$CC"; then
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2608$as_echo "$CC" >&6; }
2609else
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615  fi
2616fi
2617if test -z "$CC"; then
2618  # Extract the first word of "cc", so it can be a program name with args.
2619set dummy cc; ac_word=$2
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621$as_echo_n "checking for $ac_word... " >&6; }
2622if ${ac_cv_prog_CC+:} false; then :
2623  $as_echo_n "(cached) " >&6
2624else
2625  if test -n "$CC"; then
2626  ac_cv_prog_CC="$CC" # Let the user override the test.
2627else
2628  ac_prog_rejected=no
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_exec_ext in '' $ac_executable_extensions; do
2635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2637       ac_prog_rejected=yes
2638       continue
2639     fi
2640    ac_cv_prog_CC="cc"
2641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642    break 2
2643  fi
2644done
2645  done
2646IFS=$as_save_IFS
2647
2648if test $ac_prog_rejected = yes; then
2649  # We found a bogon in the path, so make sure we never use it.
2650  set dummy $ac_cv_prog_CC
2651  shift
2652  if test $# != 0; then
2653    # We chose a different compiler from the bogus one.
2654    # However, it has the same basename, so the bogon will be chosen
2655    # first if we set CC to just the basename; use the full file name.
2656    shift
2657    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2658  fi
2659fi
2660fi
2661fi
2662CC=$ac_cv_prog_CC
2663if test -n "$CC"; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665$as_echo "$CC" >&6; }
2666else
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668$as_echo "no" >&6; }
2669fi
2670
2671
2672fi
2673if test -z "$CC"; then
2674  if test -n "$ac_tool_prefix"; then
2675  for ac_prog in cl.exe
2676  do
2677    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680$as_echo_n "checking for $ac_word... " >&6; }
2681if ${ac_cv_prog_CC+:} false; then :
2682  $as_echo_n "(cached) " >&6
2683else
2684  if test -n "$CC"; then
2685  ac_cv_prog_CC="$CC" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692    for ac_exec_ext in '' $ac_executable_extensions; do
2693  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2695    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696    break 2
2697  fi
2698done
2699  done
2700IFS=$as_save_IFS
2701
2702fi
2703fi
2704CC=$ac_cv_prog_CC
2705if test -n "$CC"; then
2706  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707$as_echo "$CC" >&6; }
2708else
2709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710$as_echo "no" >&6; }
2711fi
2712
2713
2714    test -n "$CC" && break
2715  done
2716fi
2717if test -z "$CC"; then
2718  ac_ct_CC=$CC
2719  for ac_prog in cl.exe
2720do
2721  # Extract the first word of "$ac_prog", so it can be a program name with args.
2722set dummy $ac_prog; ac_word=$2
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724$as_echo_n "checking for $ac_word... " >&6; }
2725if ${ac_cv_prog_ac_ct_CC+:} false; then :
2726  $as_echo_n "(cached) " >&6
2727else
2728  if test -n "$ac_ct_CC"; then
2729  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2730else
2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734  IFS=$as_save_IFS
2735  test -z "$as_dir" && as_dir=.
2736    for ac_exec_ext in '' $ac_executable_extensions; do
2737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738    ac_cv_prog_ac_ct_CC="$ac_prog"
2739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740    break 2
2741  fi
2742done
2743  done
2744IFS=$as_save_IFS
2745
2746fi
2747fi
2748ac_ct_CC=$ac_cv_prog_ac_ct_CC
2749if test -n "$ac_ct_CC"; then
2750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2751$as_echo "$ac_ct_CC" >&6; }
2752else
2753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754$as_echo "no" >&6; }
2755fi
2756
2757
2758  test -n "$ac_ct_CC" && break
2759done
2760
2761  if test "x$ac_ct_CC" = x; then
2762    CC=""
2763  else
2764    case $cross_compiling:$ac_tool_warned in
2765yes:)
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768ac_tool_warned=yes ;;
2769esac
2770    CC=$ac_ct_CC
2771  fi
2772fi
2773
2774fi
2775
2776
2777test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779as_fn_error $? "no acceptable C compiler found in \$PATH
2780See \`config.log' for more details" "$LINENO" 5; }
2781
2782# Provide some information about the compiler.
2783$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2784set X $ac_compile
2785ac_compiler=$2
2786for ac_option in --version -v -V -qversion; do
2787  { { ac_try="$ac_compiler $ac_option >&5"
2788case "(($ac_try" in
2789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790  *) ac_try_echo=$ac_try;;
2791esac
2792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2793$as_echo "$ac_try_echo"; } >&5
2794  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2795  ac_status=$?
2796  if test -s conftest.err; then
2797    sed '10a\
2798... rest of stderr output deleted ...
2799         10q' conftest.err >conftest.er1
2800    cat conftest.er1 >&5
2801  fi
2802  rm -f conftest.er1 conftest.err
2803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804  test $ac_status = 0; }
2805done
2806
2807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808/* end confdefs.h.  */
2809
2810int
2811main ()
2812{
2813
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818ac_clean_files_save=$ac_clean_files
2819ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2820# Try to create an executable without -o first, disregard a.out.
2821# It will help us diagnose broken compilers, and finding out an intuition
2822# of exeext.
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2824$as_echo_n "checking whether the C compiler works... " >&6; }
2825ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826
2827# The possible output files:
2828ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2829
2830ac_rmfiles=
2831for ac_file in $ac_files
2832do
2833  case $ac_file in
2834    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2835    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836  esac
2837done
2838rm -f $ac_rmfiles
2839
2840if { { ac_try="$ac_link_default"
2841case "(($ac_try" in
2842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843  *) ac_try_echo=$ac_try;;
2844esac
2845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846$as_echo "$ac_try_echo"; } >&5
2847  (eval "$ac_link_default") 2>&5
2848  ac_status=$?
2849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850  test $ac_status = 0; }; then :
2851  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2852# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2853# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2854# so that the user can short-circuit this test for compilers unknown to
2855# Autoconf.
2856for ac_file in $ac_files ''
2857do
2858  test -f "$ac_file" || continue
2859  case $ac_file in
2860    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2861        ;;
2862    [ab].out )
2863        # We found the default executable, but exeext='' is most
2864        # certainly right.
2865        break;;
2866    *.* )
2867        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2868        then :; else
2869           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2870        fi
2871        # We set ac_cv_exeext here because the later test for it is not
2872        # safe: cross compilers may not add the suffix if given an `-o'
2873        # argument, so we may need to know it at that point already.
2874        # Even if this section looks crufty: it has the advantage of
2875        # actually working.
2876        break;;
2877    * )
2878        break;;
2879  esac
2880done
2881test "$ac_cv_exeext" = no && ac_cv_exeext=
2882
2883else
2884  ac_file=''
2885fi
2886if test -z "$ac_file"; then :
2887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888$as_echo "no" >&6; }
2889$as_echo "$as_me: failed program was:" >&5
2890sed 's/^/| /' conftest.$ac_ext >&5
2891
2892{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2894as_fn_error 77 "C compiler cannot create executables
2895See \`config.log' for more details" "$LINENO" 5; }
2896else
2897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898$as_echo "yes" >&6; }
2899fi
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2901$as_echo_n "checking for C compiler default output file name... " >&6; }
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2903$as_echo "$ac_file" >&6; }
2904ac_exeext=$ac_cv_exeext
2905
2906rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2907ac_clean_files=$ac_clean_files_save
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2909$as_echo_n "checking for suffix of executables... " >&6; }
2910if { { ac_try="$ac_link"
2911case "(($ac_try" in
2912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913  *) ac_try_echo=$ac_try;;
2914esac
2915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2916$as_echo "$ac_try_echo"; } >&5
2917  (eval "$ac_link") 2>&5
2918  ac_status=$?
2919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2920  test $ac_status = 0; }; then :
2921  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2922# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2923# work properly (i.e., refer to `conftest.exe'), while it won't with
2924# `rm'.
2925for ac_file in conftest.exe conftest conftest.*; do
2926  test -f "$ac_file" || continue
2927  case $ac_file in
2928    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2930          break;;
2931    * ) break;;
2932  esac
2933done
2934else
2935  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2938See \`config.log' for more details" "$LINENO" 5; }
2939fi
2940rm -f conftest conftest$ac_cv_exeext
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2942$as_echo "$ac_cv_exeext" >&6; }
2943
2944rm -f conftest.$ac_ext
2945EXEEXT=$ac_cv_exeext
2946ac_exeext=$EXEEXT
2947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948/* end confdefs.h.  */
2949#include <stdio.h>
2950int
2951main ()
2952{
2953FILE *f = fopen ("conftest.out", "w");
2954 return ferror (f) || fclose (f) != 0;
2955
2956  ;
2957  return 0;
2958}
2959_ACEOF
2960ac_clean_files="$ac_clean_files conftest.out"
2961# Check that the compiler produces executables we can run.  If not, either
2962# the compiler is broken, or we cross compile.
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2964$as_echo_n "checking whether we are cross compiling... " >&6; }
2965if test "$cross_compiling" != yes; then
2966  { { ac_try="$ac_link"
2967case "(($ac_try" in
2968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969  *) ac_try_echo=$ac_try;;
2970esac
2971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972$as_echo "$ac_try_echo"; } >&5
2973  (eval "$ac_link") 2>&5
2974  ac_status=$?
2975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976  test $ac_status = 0; }
2977  if { ac_try='./conftest$ac_cv_exeext'
2978  { { case "(($ac_try" in
2979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980  *) ac_try_echo=$ac_try;;
2981esac
2982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983$as_echo "$ac_try_echo"; } >&5
2984  (eval "$ac_try") 2>&5
2985  ac_status=$?
2986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2987  test $ac_status = 0; }; }; then
2988    cross_compiling=no
2989  else
2990    if test "$cross_compiling" = maybe; then
2991        cross_compiling=yes
2992    else
2993        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995as_fn_error $? "cannot run C compiled programs.
2996If you meant to cross compile, use \`--host'.
2997See \`config.log' for more details" "$LINENO" 5; }
2998    fi
2999  fi
3000fi
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3002$as_echo "$cross_compiling" >&6; }
3003
3004rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3005ac_clean_files=$ac_clean_files_save
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3007$as_echo_n "checking for suffix of object files... " >&6; }
3008if ${ac_cv_objext+:} false; then :
3009  $as_echo_n "(cached) " >&6
3010else
3011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012/* end confdefs.h.  */
3013
3014int
3015main ()
3016{
3017
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022rm -f conftest.o conftest.obj
3023if { { ac_try="$ac_compile"
3024case "(($ac_try" in
3025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026  *) ac_try_echo=$ac_try;;
3027esac
3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029$as_echo "$ac_try_echo"; } >&5
3030  (eval "$ac_compile") 2>&5
3031  ac_status=$?
3032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033  test $ac_status = 0; }; then :
3034  for ac_file in conftest.o conftest.obj conftest.*; do
3035  test -f "$ac_file" || continue;
3036  case $ac_file in
3037    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3038    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3039       break;;
3040  esac
3041done
3042else
3043  $as_echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048as_fn_error $? "cannot compute suffix of object files: cannot compile
3049See \`config.log' for more details" "$LINENO" 5; }
3050fi
3051rm -f conftest.$ac_cv_objext conftest.$ac_ext
3052fi
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3054$as_echo "$ac_cv_objext" >&6; }
3055OBJEXT=$ac_cv_objext
3056ac_objext=$OBJEXT
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3058$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3059if ${ac_cv_c_compiler_gnu+:} false; then :
3060  $as_echo_n "(cached) " >&6
3061else
3062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063/* end confdefs.h.  */
3064
3065int
3066main ()
3067{
3068#ifndef __GNUC__
3069       choke me
3070#endif
3071
3072  ;
3073  return 0;
3074}
3075_ACEOF
3076if ac_fn_c_try_compile "$LINENO"; then :
3077  ac_compiler_gnu=yes
3078else
3079  ac_compiler_gnu=no
3080fi
3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082ac_cv_c_compiler_gnu=$ac_compiler_gnu
3083
3084fi
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3086$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3087if test $ac_compiler_gnu = yes; then
3088  GCC=yes
3089else
3090  GCC=
3091fi
3092ac_test_CFLAGS=${CFLAGS+set}
3093ac_save_CFLAGS=$CFLAGS
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3095$as_echo_n "checking whether $CC accepts -g... " >&6; }
3096if ${ac_cv_prog_cc_g+:} false; then :
3097  $as_echo_n "(cached) " >&6
3098else
3099  ac_save_c_werror_flag=$ac_c_werror_flag
3100   ac_c_werror_flag=yes
3101   ac_cv_prog_cc_g=no
3102   CFLAGS="-g"
3103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h.  */
3105
3106int
3107main ()
3108{
3109
3110  ;
3111  return 0;
3112}
3113_ACEOF
3114if ac_fn_c_try_compile "$LINENO"; then :
3115  ac_cv_prog_cc_g=yes
3116else
3117  CFLAGS=""
3118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h.  */
3120
3121int
3122main ()
3123{
3124
3125  ;
3126  return 0;
3127}
3128_ACEOF
3129if ac_fn_c_try_compile "$LINENO"; then :
3130
3131else
3132  ac_c_werror_flag=$ac_save_c_werror_flag
3133         CFLAGS="-g"
3134         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145if ac_fn_c_try_compile "$LINENO"; then :
3146  ac_cv_prog_cc_g=yes
3147fi
3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3149fi
3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151fi
3152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3153   ac_c_werror_flag=$ac_save_c_werror_flag
3154fi
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3156$as_echo "$ac_cv_prog_cc_g" >&6; }
3157if test "$ac_test_CFLAGS" = set; then
3158  CFLAGS=$ac_save_CFLAGS
3159elif test $ac_cv_prog_cc_g = yes; then
3160  if test "$GCC" = yes; then
3161    CFLAGS="-g -O2"
3162  else
3163    CFLAGS="-g"
3164  fi
3165else
3166  if test "$GCC" = yes; then
3167    CFLAGS="-O2"
3168  else
3169    CFLAGS=
3170  fi
3171fi
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3173$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3174if ${ac_cv_prog_cc_c89+:} false; then :
3175  $as_echo_n "(cached) " >&6
3176else
3177  ac_cv_prog_cc_c89=no
3178ac_save_CC=$CC
3179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h.  */
3181#include <stdarg.h>
3182#include <stdio.h>
3183struct stat;
3184/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3185struct buf { int x; };
3186FILE * (*rcsopen) (struct buf *, struct stat *, int);
3187static char *e (p, i)
3188     char **p;
3189     int i;
3190{
3191  return p[i];
3192}
3193static char *f (char * (*g) (char **, int), char **p, ...)
3194{
3195  char *s;
3196  va_list v;
3197  va_start (v,p);
3198  s = g (p, va_arg (v,int));
3199  va_end (v);
3200  return s;
3201}
3202
3203/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3204   function prototypes and stuff, but not '\xHH' hex character constants.
3205   These don't provoke an error unfortunately, instead are silently treated
3206   as 'x'.  The following induces an error, until -std is added to get
3207   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3208   array size at least.  It's necessary to write '\x00'==0 to get something
3209   that's true only with -std.  */
3210int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3211
3212/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3213   inside strings and character constants.  */
3214#define FOO(x) 'x'
3215int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3216
3217int test (int i, double x);
3218struct s1 {int (*f) (int a);};
3219struct s2 {int (*f) (double a);};
3220int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3221int argc;
3222char **argv;
3223int
3224main ()
3225{
3226return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3227  ;
3228  return 0;
3229}
3230_ACEOF
3231for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3232        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3233do
3234  CC="$ac_save_CC $ac_arg"
3235  if ac_fn_c_try_compile "$LINENO"; then :
3236  ac_cv_prog_cc_c89=$ac_arg
3237fi
3238rm -f core conftest.err conftest.$ac_objext
3239  test "x$ac_cv_prog_cc_c89" != "xno" && break
3240done
3241rm -f conftest.$ac_ext
3242CC=$ac_save_CC
3243
3244fi
3245# AC_CACHE_VAL
3246case "x$ac_cv_prog_cc_c89" in
3247  x)
3248    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3249$as_echo "none needed" >&6; } ;;
3250  xno)
3251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3252$as_echo "unsupported" >&6; } ;;
3253  *)
3254    CC="$CC $ac_cv_prog_cc_c89"
3255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3256$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3257esac
3258if test "x$ac_cv_prog_cc_c89" != xno; then :
3259
3260fi
3261
3262ac_ext=c
3263ac_cpp='$CPP $CPPFLAGS'
3264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267
3268
3269ac_ext=c
3270ac_cpp='$CPP $CPPFLAGS'
3271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3275$as_echo_n "checking how to run the C preprocessor... " >&6; }
3276# On Suns, sometimes $CPP names a directory.
3277if test -n "$CPP" && test -d "$CPP"; then
3278  CPP=
3279fi
3280if test -z "$CPP"; then
3281  if ${ac_cv_prog_CPP+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284      # Double quotes because CPP needs to be expanded
3285    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3286    do
3287      ac_preproc_ok=false
3288for ac_c_preproc_warn_flag in '' yes
3289do
3290  # Use a header file that comes with gcc, so configuring glibc
3291  # with a fresh cross-compiler works.
3292  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3293  # <limits.h> exists even on freestanding compilers.
3294  # On the NeXT, cc -E runs the code through the compiler's parser,
3295  # not just through cpp. "Syntax error" is here to catch this case.
3296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297/* end confdefs.h.  */
3298#ifdef __STDC__
3299# include <limits.h>
3300#else
3301# include <assert.h>
3302#endif
3303                     Syntax error
3304_ACEOF
3305if ac_fn_c_try_cpp "$LINENO"; then :
3306
3307else
3308  # Broken: fails on valid input.
3309continue
3310fi
3311rm -f conftest.err conftest.i conftest.$ac_ext
3312
3313  # OK, works on sane cases.  Now check whether nonexistent headers
3314  # can be detected and how.
3315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316/* end confdefs.h.  */
3317#include <ac_nonexistent.h>
3318_ACEOF
3319if ac_fn_c_try_cpp "$LINENO"; then :
3320  # Broken: success on invalid input.
3321continue
3322else
3323  # Passes both tests.
3324ac_preproc_ok=:
3325break
3326fi
3327rm -f conftest.err conftest.i conftest.$ac_ext
3328
3329done
3330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331rm -f conftest.i conftest.err conftest.$ac_ext
3332if $ac_preproc_ok; then :
3333  break
3334fi
3335
3336    done
3337    ac_cv_prog_CPP=$CPP
3338
3339fi
3340  CPP=$ac_cv_prog_CPP
3341else
3342  ac_cv_prog_CPP=$CPP
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3345$as_echo "$CPP" >&6; }
3346ac_preproc_ok=false
3347for ac_c_preproc_warn_flag in '' yes
3348do
3349  # Use a header file that comes with gcc, so configuring glibc
3350  # with a fresh cross-compiler works.
3351  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352  # <limits.h> exists even on freestanding compilers.
3353  # On the NeXT, cc -E runs the code through the compiler's parser,
3354  # not just through cpp. "Syntax error" is here to catch this case.
3355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h.  */
3357#ifdef __STDC__
3358# include <limits.h>
3359#else
3360# include <assert.h>
3361#endif
3362                     Syntax error
3363_ACEOF
3364if ac_fn_c_try_cpp "$LINENO"; then :
3365
3366else
3367  # Broken: fails on valid input.
3368continue
3369fi
3370rm -f conftest.err conftest.i conftest.$ac_ext
3371
3372  # OK, works on sane cases.  Now check whether nonexistent headers
3373  # can be detected and how.
3374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h.  */
3376#include <ac_nonexistent.h>
3377_ACEOF
3378if ac_fn_c_try_cpp "$LINENO"; then :
3379  # Broken: success on invalid input.
3380continue
3381else
3382  # Passes both tests.
3383ac_preproc_ok=:
3384break
3385fi
3386rm -f conftest.err conftest.i conftest.$ac_ext
3387
3388done
3389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3390rm -f conftest.i conftest.err conftest.$ac_ext
3391if $ac_preproc_ok; then :
3392
3393else
3394  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3396as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3397See \`config.log' for more details" "$LINENO" 5; }
3398fi
3399
3400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3408$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3409if ${ac_cv_path_GREP+:} false; then :
3410  $as_echo_n "(cached) " >&6
3411else
3412  if test -z "$GREP"; then
3413  ac_path_GREP_found=false
3414  # Loop through the user's path and test for each of PROGNAME-LIST
3415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3417do
3418  IFS=$as_save_IFS
3419  test -z "$as_dir" && as_dir=.
3420    for ac_prog in grep ggrep; do
3421    for ac_exec_ext in '' $ac_executable_extensions; do
3422      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3423      as_fn_executable_p "$ac_path_GREP" || continue
3424# Check for GNU ac_path_GREP and select it if it is found.
3425  # Check for GNU $ac_path_GREP
3426case `"$ac_path_GREP" --version 2>&1` in
3427*GNU*)
3428  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3429*)
3430  ac_count=0
3431  $as_echo_n 0123456789 >"conftest.in"
3432  while :
3433  do
3434    cat "conftest.in" "conftest.in" >"conftest.tmp"
3435    mv "conftest.tmp" "conftest.in"
3436    cp "conftest.in" "conftest.nl"
3437    $as_echo 'GREP' >> "conftest.nl"
3438    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3439    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3440    as_fn_arith $ac_count + 1 && ac_count=$as_val
3441    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3442      # Best one so far, save it but keep looking for a better one
3443      ac_cv_path_GREP="$ac_path_GREP"
3444      ac_path_GREP_max=$ac_count
3445    fi
3446    # 10*(2^10) chars as input seems more than enough
3447    test $ac_count -gt 10 && break
3448  done
3449  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3450esac
3451
3452      $ac_path_GREP_found && break 3
3453    done
3454  done
3455  done
3456IFS=$as_save_IFS
3457  if test -z "$ac_cv_path_GREP"; then
3458    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3459  fi
3460else
3461  ac_cv_path_GREP=$GREP
3462fi
3463
3464fi
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3466$as_echo "$ac_cv_path_GREP" >&6; }
3467 GREP="$ac_cv_path_GREP"
3468
3469
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3471$as_echo_n "checking for egrep... " >&6; }
3472if ${ac_cv_path_EGREP+:} false; then :
3473  $as_echo_n "(cached) " >&6
3474else
3475  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3476   then ac_cv_path_EGREP="$GREP -E"
3477   else
3478     if test -z "$EGREP"; then
3479  ac_path_EGREP_found=false
3480  # Loop through the user's path and test for each of PROGNAME-LIST
3481  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3483do
3484  IFS=$as_save_IFS
3485  test -z "$as_dir" && as_dir=.
3486    for ac_prog in egrep; do
3487    for ac_exec_ext in '' $ac_executable_extensions; do
3488      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3489      as_fn_executable_p "$ac_path_EGREP" || continue
3490# Check for GNU ac_path_EGREP and select it if it is found.
3491  # Check for GNU $ac_path_EGREP
3492case `"$ac_path_EGREP" --version 2>&1` in
3493*GNU*)
3494  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3495*)
3496  ac_count=0
3497  $as_echo_n 0123456789 >"conftest.in"
3498  while :
3499  do
3500    cat "conftest.in" "conftest.in" >"conftest.tmp"
3501    mv "conftest.tmp" "conftest.in"
3502    cp "conftest.in" "conftest.nl"
3503    $as_echo 'EGREP' >> "conftest.nl"
3504    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3505    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3506    as_fn_arith $ac_count + 1 && ac_count=$as_val
3507    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3508      # Best one so far, save it but keep looking for a better one
3509      ac_cv_path_EGREP="$ac_path_EGREP"
3510      ac_path_EGREP_max=$ac_count
3511    fi
3512    # 10*(2^10) chars as input seems more than enough
3513    test $ac_count -gt 10 && break
3514  done
3515  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3516esac
3517
3518      $ac_path_EGREP_found && break 3
3519    done
3520  done
3521  done
3522IFS=$as_save_IFS
3523  if test -z "$ac_cv_path_EGREP"; then
3524    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3525  fi
3526else
3527  ac_cv_path_EGREP=$EGREP
3528fi
3529
3530   fi
3531fi
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3533$as_echo "$ac_cv_path_EGREP" >&6; }
3534 EGREP="$ac_cv_path_EGREP"
3535
3536
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3538$as_echo_n "checking for ANSI C header files... " >&6; }
3539if ${ac_cv_header_stdc+:} false; then :
3540  $as_echo_n "(cached) " >&6
3541else
3542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544#include <stdlib.h>
3545#include <stdarg.h>
3546#include <string.h>
3547#include <float.h>
3548
3549int
3550main ()
3551{
3552
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557if ac_fn_c_try_compile "$LINENO"; then :
3558  ac_cv_header_stdc=yes
3559else
3560  ac_cv_header_stdc=no
3561fi
3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563
3564if test $ac_cv_header_stdc = yes; then
3565  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h.  */
3568#include <string.h>
3569
3570_ACEOF
3571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3572  $EGREP "memchr" >/dev/null 2>&1; then :
3573
3574else
3575  ac_cv_header_stdc=no
3576fi
3577rm -f conftest*
3578
3579fi
3580
3581if test $ac_cv_header_stdc = yes; then
3582  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585#include <stdlib.h>
3586
3587_ACEOF
3588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589  $EGREP "free" >/dev/null 2>&1; then :
3590
3591else
3592  ac_cv_header_stdc=no
3593fi
3594rm -f conftest*
3595
3596fi
3597
3598if test $ac_cv_header_stdc = yes; then
3599  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3600  if test "$cross_compiling" = yes; then :
3601  :
3602else
3603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605#include <ctype.h>
3606#include <stdlib.h>
3607#if ((' ' & 0x0FF) == 0x020)
3608# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3609# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3610#else
3611# define ISLOWER(c) \
3612                   (('a' <= (c) && (c) <= 'i') \
3613                     || ('j' <= (c) && (c) <= 'r') \
3614                     || ('s' <= (c) && (c) <= 'z'))
3615# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3616#endif
3617
3618#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3619int
3620main ()
3621{
3622  int i;
3623  for (i = 0; i < 256; i++)
3624    if (XOR (islower (i), ISLOWER (i))
3625        || toupper (i) != TOUPPER (i))
3626      return 2;
3627  return 0;
3628}
3629_ACEOF
3630if ac_fn_c_try_run "$LINENO"; then :
3631
3632else
3633  ac_cv_header_stdc=no
3634fi
3635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3636  conftest.$ac_objext conftest.beam conftest.$ac_ext
3637fi
3638
3639fi
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3642$as_echo "$ac_cv_header_stdc" >&6; }
3643if test $ac_cv_header_stdc = yes; then
3644
3645$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3646
3647fi
3648
3649# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3650for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3651                  inttypes.h stdint.h unistd.h
3652do :
3653  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3654ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3655"
3656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3657  cat >>confdefs.h <<_ACEOF
3658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3659_ACEOF
3660
3661fi
3662
3663done
3664
3665
3666
3667PYTHON=""
3668PYTHON_CFLAGS=""
3669PYTHON_CPPFLAGS=""
3670PYTHON_DISTUTILS=""
3671PYTHON_INCLUDES=""
3672PYTHON_LDFLAGS=""
3673PYTHON_LIB=""
3674PYTHON_LIBDIR=""
3675PYTHON_SITE_DIR=""
3676PYTHON_SITE_PACKAGES=""
3677PYTHON_VERSION=""
3678pythondir=""
3679
3680# Check whether --with-python was given.
3681if test "${with_python+set}" = set; then :
3682  withval=$with_python;
3683else
3684  with_python=yes
3685fi
3686
3687
3688if test "$with_python" != "no" ; then
3689  if test "$with_python" = "yes" ; then
3690    # 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.
3691set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693$as_echo_n "checking for $ac_word... " >&6; }
3694if ${ac_cv_path_PYTHON+:} false; then :
3695  $as_echo_n "(cached) " >&6
3696else
3697  case $PYTHON in
3698  [\\/]* | ?:[\\/]*)
3699  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3700  ;;
3701  *)
3702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705  IFS=$as_save_IFS
3706  test -z "$as_dir" && as_dir=.
3707    for ac_exec_ext in '' $ac_executable_extensions; do
3708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711    break 2
3712  fi
3713done
3714  done
3715IFS=$as_save_IFS
3716
3717  ;;
3718esac
3719fi
3720PYTHON=$ac_cv_path_PYTHON
3721if test -n "$PYTHON"; then
3722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3723$as_echo "$PYTHON" >&6; }
3724else
3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726$as_echo "no" >&6; }
3727fi
3728
3729
3730  else
3731    # Extract the first word of "python", so it can be a program name with args.
3732set dummy python; ac_word=$2
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734$as_echo_n "checking for $ac_word... " >&6; }
3735if ${ac_cv_path_PYTHON+:} false; then :
3736  $as_echo_n "(cached) " >&6
3737else
3738  case $PYTHON in
3739  [\\/]* | ?:[\\/]*)
3740  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3741  ;;
3742  *)
3743  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744as_dummy="${with_python}/bin:${with_python}"
3745for as_dir in $as_dummy
3746do
3747  IFS=$as_save_IFS
3748  test -z "$as_dir" && as_dir=.
3749    for ac_exec_ext in '' $ac_executable_extensions; do
3750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753    break 2
3754  fi
3755done
3756  done
3757IFS=$as_save_IFS
3758
3759  ;;
3760esac
3761fi
3762PYTHON=$ac_cv_path_PYTHON
3763if test -n "$PYTHON"; then
3764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3765$as_echo "$PYTHON" >&6; }
3766else
3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768$as_echo "no" >&6; }
3769fi
3770
3771
3772  fi
3773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&5
3774$as_echo_n "checking for Python version... " >&6; }
3775  if test "x${PYTHON}" != "x"; then
3776    PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`
3777  fi
3778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&5
3779$as_echo "$PYTHON_VERSION" >&6; }
3780fi
3781
3782if test "x${PYTHON_VERSION}" != "x"; then
3783  PYTHON_INCLUDES=$incdir
3784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&5
3785$as_echo_n "checking for Python distutils... " >&6; }
3786  PYTHON_DISTUTILS=""
3787  ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \
3788        build build_ext 2>&1 > /dev/null
3789  if test $? = 0 ; then
3790    PYTHON_DISTUTILS="yes"
3791  fi
3792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&5
3793$as_echo "$PYTHON_DISTUTILS" >&6; }
3794  if test "${PYTHON_DISTUTILS}" = "yes" ; then
3795    PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
3796    #
3797    # Check for Python include path
3798    #
3799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&5
3800$as_echo_n "checking path to Python headers... " >&6; }
3801    PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \
3802     print distutils.sysconfig.get_python_inc();"`
3803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&5
3804$as_echo "$PYTHON_INCDIR" >&6; }
3805    #
3806    # Python distutils found, get settings from python directly
3807    #
3808    PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`"
3809
3810    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);'`"
3811    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);'`"
3812    PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print \"python\" + sysconfig.get_config_var(\"VERSION\");'`"
3813    PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\"LIBDIR\");'`"
3814    save_CPPFLAGS=$CPPFLAGS
3815    CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"
3816    for ac_header in Python.h
3817do :
3818  ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
3819if test "x$ac_cv_header_Python_h" = xyes; then :
3820  cat >>confdefs.h <<_ACEOF
3821#define HAVE_PYTHON_H 1
3822_ACEOF
3823 found=yes
3824else
3825  found=no
3826fi
3827
3828done
3829
3830    CPPFLAGS=$save_CPPFLAGS
3831    if test "$found" = "no" ; then
3832      PYTHON_DISTUTILS=""
3833    fi
3834  fi
3835fi
3836
3837
3838#------------------------------------------------------------------------
3839# Handle the --prefix=... option
3840#------------------------------------------------------------------------
3841
3842if test "${prefix}" = "NONE"; then
3843    prefix=/usr/local
3844fi
3845if test "${exec_prefix}" = "NONE"; then
3846    exec_prefix=$prefix
3847fi
3848
3849if test "x${incdir}" == "x"; then
3850  incdir=${exec_prefix}/include
3851fi
3852libdir=${exec_prefix}/lib
3853
3854if test "${libdir}" != "${prefix}/lib"; then
3855    LIB_SEARCH_DIRS="-L ${prefix}/lib -L ${libdir}"
3856else
3857    LIB_SEARCH_DIRS="-L ${libdir}"
3858fi
3859
3860if test -n "$ac_tool_prefix"; then
3861  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864$as_echo_n "checking for $ac_word... " >&6; }
3865if ${ac_cv_prog_RANLIB+:} false; then :
3866  $as_echo_n "(cached) " >&6
3867else
3868  if test -n "$RANLIB"; then
3869  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3870else
3871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872for as_dir in $PATH
3873do
3874  IFS=$as_save_IFS
3875  test -z "$as_dir" && as_dir=.
3876    for ac_exec_ext in '' $ac_executable_extensions; do
3877  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3879    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880    break 2
3881  fi
3882done
3883  done
3884IFS=$as_save_IFS
3885
3886fi
3887fi
3888RANLIB=$ac_cv_prog_RANLIB
3889if test -n "$RANLIB"; then
3890  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3891$as_echo "$RANLIB" >&6; }
3892else
3893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894$as_echo "no" >&6; }
3895fi
3896
3897
3898fi
3899if test -z "$ac_cv_prog_RANLIB"; then
3900  ac_ct_RANLIB=$RANLIB
3901  # Extract the first word of "ranlib", so it can be a program name with args.
3902set dummy ranlib; ac_word=$2
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904$as_echo_n "checking for $ac_word... " >&6; }
3905if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  if test -n "$ac_ct_RANLIB"; then
3909  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914  IFS=$as_save_IFS
3915  test -z "$as_dir" && as_dir=.
3916    for ac_exec_ext in '' $ac_executable_extensions; do
3917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918    ac_cv_prog_ac_ct_RANLIB="ranlib"
3919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920    break 2
3921  fi
3922done
3923  done
3924IFS=$as_save_IFS
3925
3926fi
3927fi
3928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3929if test -n "$ac_ct_RANLIB"; then
3930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3931$as_echo "$ac_ct_RANLIB" >&6; }
3932else
3933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934$as_echo "no" >&6; }
3935fi
3936
3937  if test "x$ac_ct_RANLIB" = x; then
3938    RANLIB=":"
3939  else
3940    case $cross_compiling:$ac_tool_warned in
3941yes:)
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944ac_tool_warned=yes ;;
3945esac
3946    RANLIB=$ac_ct_RANLIB
3947  fi
3948else
3949  RANLIB="$ac_cv_prog_RANLIB"
3950fi
3951
3952
3953
3954    # Step 0.a: Enable 64 bit support?
3955
3956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
3957$as_echo_n "checking if 64bit support is requested... " >&6; }
3958    # Check whether --enable-64bit was given.
3959if test "${enable_64bit+set}" = set; then :
3960  enableval=$enable_64bit; do64bit=$enableval
3961else
3962  do64bit=no
3963fi
3964
3965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
3966$as_echo "$do64bit" >&6; }
3967
3968    # Step 0.b: Enable Solaris 64 bit VIS support?
3969
3970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
3971$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
3972    # Check whether --enable-64bit-vis was given.
3973if test "${enable_64bit_vis+set}" = set; then :
3974  enableval=$enable_64bit_vis; do64bitVIS=$enableval
3975else
3976  do64bitVIS=no
3977fi
3978
3979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
3980$as_echo "$do64bitVIS" >&6; }
3981
3982    if test "$do64bitVIS" = "yes"; then
3983        # Force 64bit on with VIS
3984        do64bit=yes
3985    fi
3986
3987    # Step 1: set the variable "system" to hold the name and version number
3988    # for the system.
3989
3990
3991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
3992$as_echo_n "checking system version... " >&6; }
3993if ${tcl_cv_sys_version+:} false; then :
3994  $as_echo_n "(cached) " >&6
3995else
3996
3997        if test -f /usr/lib/NextStep/software_version; then
3998            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
3999        else
4000            tcl_cv_sys_version=`uname -s`-`uname -r`
4001            if test "$?" -ne 0 ; then
4002                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
4003$as_echo "$as_me: WARNING: can't find uname command" >&2;}
4004                tcl_cv_sys_version=unknown
4005            else
4006                # Special check for weird MP-RAS system (uname returns weird
4007                # results, and the version is kept in special file).
4008
4009                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
4010                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
4011                fi
4012                if test "`uname -s`" = "AIX" ; then
4013                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
4014                fi
4015            fi
4016        fi
4017
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
4020$as_echo "$tcl_cv_sys_version" >&6; }
4021    system=$tcl_cv_sys_version
4022
4023
4024    # Step 2: check for existence of -ldl library.  This is needed because
4025    # Linux can use either -ldl or -ldld for dynamic loading.
4026
4027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4028$as_echo_n "checking for dlopen in -ldl... " >&6; }
4029if ${ac_cv_lib_dl_dlopen+:} false; then :
4030  $as_echo_n "(cached) " >&6
4031else
4032  ac_check_lib_save_LIBS=$LIBS
4033LIBS="-ldl  $LIBS"
4034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h.  */
4036
4037/* Override any GCC internal prototype to avoid an error.
4038   Use char because int might match the return type of a GCC
4039   builtin and then its argument prototype would still apply.  */
4040#ifdef __cplusplus
4041extern "C"
4042#endif
4043char dlopen ();
4044int
4045main ()
4046{
4047return dlopen ();
4048  ;
4049  return 0;
4050}
4051_ACEOF
4052if ac_fn_c_try_link "$LINENO"; then :
4053  ac_cv_lib_dl_dlopen=yes
4054else
4055  ac_cv_lib_dl_dlopen=no
4056fi
4057rm -f core conftest.err conftest.$ac_objext \
4058    conftest$ac_exeext conftest.$ac_ext
4059LIBS=$ac_check_lib_save_LIBS
4060fi
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4062$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4063if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4064  have_dl=yes
4065else
4066  have_dl=no
4067fi
4068
4069
4070    # Require ranlib early so we can override it in special cases below.
4071
4072
4073
4074    # Step 3: set configuration options based on system name and version.
4075
4076    do64bit_ok=no
4077    LDFLAGS_ORIG="$LDFLAGS"
4078    TCL_EXPORT_FILE_SUFFIX=""
4079    UNSHARED_LIB_SUFFIX=""
4080    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
4081    ECHO_VERSION='`echo ${VERSION}`'
4082    TCL_LIB_VERSIONS_OK=ok
4083    CFLAGS_DEBUG=-g
4084    CFLAGS_OPTIMIZE=-O
4085    if test "$GCC" = "yes" ; then
4086        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
4087    else
4088        CFLAGS_WARNING=""
4089    fi
4090    TCL_NEEDS_EXP_FILE=0
4091    TCL_BUILD_EXP_FILE=""
4092    TCL_EXP_FILE=""
4093    # Extract the first word of "ar", so it can be a program name with args.
4094set dummy ar; ac_word=$2
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096$as_echo_n "checking for $ac_word... " >&6; }
4097if ${ac_cv_prog_AR+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  if test -n "$AR"; then
4101  ac_cv_prog_AR="$AR" # Let the user override the test.
4102else
4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106  IFS=$as_save_IFS
4107  test -z "$as_dir" && as_dir=.
4108    for ac_exec_ext in '' $ac_executable_extensions; do
4109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110    ac_cv_prog_AR="ar"
4111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112    break 2
4113  fi
4114done
4115  done
4116IFS=$as_save_IFS
4117
4118fi
4119fi
4120AR=$ac_cv_prog_AR
4121if test -n "$AR"; then
4122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4123$as_echo "$AR" >&6; }
4124else
4125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126$as_echo "no" >&6; }
4127fi
4128
4129
4130    if test "${AR}" = "" ; then
4131        as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
4132    fi
4133    STLIB_LD='${AR} cr'
4134    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
4135    PLAT_OBJS=""
4136    PLAT_SRCS=""
4137    case $system in
4138        AIX-*)
4139            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
4140                # AIX requires the _r compiler when gcc isn't being used
4141                case "${CC}" in
4142                    *_r)
4143                        # ok ...
4144                        ;;
4145                    *)
4146                        CC=${CC}_r
4147                        ;;
4148                esac
4149                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
4150$as_echo "Using $CC for compiling with threads" >&6; }
4151            fi
4152            LIBS="$LIBS -lc"
4153            SHLIB_CFLAGS=""
4154            # Note: need the LIBS below, otherwise Tk won't find Tcl's
4155            # symbols when dynamically loaded into tclsh.
4156            SHLIB_LD_LIBS='${LIBS}'
4157            SHLIB_SUFFIX=".so"
4158
4159            DL_OBJS="tclLoadDl.o"
4160            LD_LIBRARY_PATH_VAR="LIBPATH"
4161
4162            # Check to enable 64-bit flags for compiler/linker on AIX 4+
4163            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
4164                if test "$GCC" = "yes" ; then
4165                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4166$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4167                else
4168                    do64bit_ok=yes
4169                    CFLAGS="$CFLAGS -q64"
4170                    LDFLAGS="$LDFLAGS -q64"
4171                    RANLIB="${RANLIB} -X64"
4172                    AR="${AR} -X64"
4173                    SHLIB_LD_FLAGS="-b64"
4174                fi
4175            fi
4176
4177            if test "`uname -m`" = "ia64" ; then
4178                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
4179                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
4180                # AIX-5 has dl* in libc.so
4181                DL_LIBS=""
4182                if test "$GCC" = "yes" ; then
4183                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
4184                else
4185                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
4186                fi
4187                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
4188            else
4189                if test "$GCC" = "yes" ; then
4190                    SHLIB_LD="gcc -shared"
4191                else
4192                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
4193                fi
4194                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
4195                DL_LIBS="-ldl"
4196                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4197                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4198                TCL_NEEDS_EXP_FILE=1
4199                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
4200            fi
4201
4202            # AIX v<=4.1 has some different flags than 4.2+
4203            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
4204                LIBOBJS="$LIBOBJS tclLoadAix.o"
4205                DL_LIBS="-lld"
4206            fi
4207
4208            # On AIX <=v4 systems, libbsd.a has to be linked in to support
4209            # non-blocking file IO.  This library has to be linked in after
4210            # the MATH_LIBS or it breaks the pow() function.  The way to
4211            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
4212            # This library also supplies gettimeofday.
4213            #
4214            # AIX does not have a timezone field in struct tm. When the AIX
4215            # bsd library is used, the timezone global and the gettimeofday
4216            # methods are to be avoided for timezone deduction instead, we
4217            # deduce the timezone by comparing the localtime result on a
4218            # known GMT value.
4219
4220            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
4221$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
4222if ${ac_cv_lib_bsd_gettimeofday+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  ac_check_lib_save_LIBS=$LIBS
4226LIBS="-lbsd  $LIBS"
4227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228/* end confdefs.h.  */
4229
4230/* Override any GCC internal prototype to avoid an error.
4231   Use char because int might match the return type of a GCC
4232   builtin and then its argument prototype would still apply.  */
4233#ifdef __cplusplus
4234extern "C"
4235#endif
4236char gettimeofday ();
4237int
4238main ()
4239{
4240return gettimeofday ();
4241  ;
4242  return 0;
4243}
4244_ACEOF
4245if ac_fn_c_try_link "$LINENO"; then :
4246  ac_cv_lib_bsd_gettimeofday=yes
4247else
4248  ac_cv_lib_bsd_gettimeofday=no
4249fi
4250rm -f core conftest.err conftest.$ac_objext \
4251    conftest$ac_exeext conftest.$ac_ext
4252LIBS=$ac_check_lib_save_LIBS
4253fi
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
4255$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
4256if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then :
4257  libbsd=yes
4258else
4259  libbsd=no
4260fi
4261
4262            if test $libbsd = yes; then
4263                MATH_LIBS="$MATH_LIBS -lbsd"
4264                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
4265
4266            fi
4267            ;;
4268        BeOS*)
4269            SHLIB_CFLAGS="-fPIC"
4270            SHLIB_LD="${CC} -nostart"
4271            SHLIB_LD_LIBS='${LIBS}'
4272            SHLIB_SUFFIX=".so"
4273            DL_OBJS="tclLoadDl.o"
4274            DL_LIBS="-ldl"
4275
4276            #-----------------------------------------------------------
4277            # Check for inet_ntoa in -lbind, for BeOS (which also needs
4278            # -lsocket, even if the network functions are in -lnet which
4279            # is always linked to, for compatibility.
4280            #-----------------------------------------------------------
4281            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
4282$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
4283if ${ac_cv_lib_bind_inet_ntoa+:} false; then :
4284  $as_echo_n "(cached) " >&6
4285else
4286  ac_check_lib_save_LIBS=$LIBS
4287LIBS="-lbind  $LIBS"
4288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290
4291/* Override any GCC internal prototype to avoid an error.
4292   Use char because int might match the return type of a GCC
4293   builtin and then its argument prototype would still apply.  */
4294#ifdef __cplusplus
4295extern "C"
4296#endif
4297char inet_ntoa ();
4298int
4299main ()
4300{
4301return inet_ntoa ();
4302  ;
4303  return 0;
4304}
4305_ACEOF
4306if ac_fn_c_try_link "$LINENO"; then :
4307  ac_cv_lib_bind_inet_ntoa=yes
4308else
4309  ac_cv_lib_bind_inet_ntoa=no
4310fi
4311rm -f core conftest.err conftest.$ac_objext \
4312    conftest$ac_exeext conftest.$ac_ext
4313LIBS=$ac_check_lib_save_LIBS
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
4316$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
4317if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then :
4318  LIBS="$LIBS -lbind -lsocket"
4319fi
4320
4321            ;;
4322        BSD/OS-2.1*|BSD/OS-3*)
4323            SHLIB_CFLAGS=""
4324            SHLIB_LD="shlicc -r"
4325            SHLIB_LD_LIBS='${LIBS}'
4326            SHLIB_SUFFIX=".so"
4327            DL_OBJS="tclLoadDl.o"
4328            DL_LIBS="-ldl"
4329            CC_SEARCH_FLAGS=""
4330            LD_SEARCH_FLAGS=""
4331            ;;
4332        BSD/OS-4.*)
4333            SHLIB_CFLAGS="-export-dynamic -fPIC"
4334            SHLIB_LD="cc -shared"
4335            SHLIB_LD_LIBS='${LIBS}'
4336            SHLIB_SUFFIX=".so"
4337            DL_OBJS="tclLoadDl.o"
4338            DL_LIBS="-ldl"
4339            LDFLAGS="$LDFLAGS -export-dynamic"
4340            CC_SEARCH_FLAGS=""
4341            LD_SEARCH_FLAGS=""
4342            ;;
4343        dgux*)
4344            SHLIB_CFLAGS="-K PIC"
4345            SHLIB_LD="cc -G"
4346            SHLIB_LD_LIBS=""
4347            SHLIB_SUFFIX=".so"
4348            DL_OBJS="tclLoadDl.o"
4349            DL_LIBS="-ldl"
4350            CC_SEARCH_FLAGS=""
4351            LD_SEARCH_FLAGS=""
4352            ;;
4353        HP-UX-*.11.*)
4354            # Use updated header definitions where possible
4355            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
4356          # Use the XOPEN network library
4357            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4358 # Use the XOPEN network library
4359            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
4360
4361            if test "`uname -m`" = "ia64" ; then
4362                SHLIB_SUFFIX=".so"
4363            else
4364                SHLIB_SUFFIX=".sl"
4365            fi
4366            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4367$as_echo_n "checking for shl_load in -ldld... " >&6; }
4368if ${ac_cv_lib_dld_shl_load+:} false; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  ac_check_lib_save_LIBS=$LIBS
4372LIBS="-ldld  $LIBS"
4373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h.  */
4375
4376/* Override any GCC internal prototype to avoid an error.
4377   Use char because int might match the return type of a GCC
4378   builtin and then its argument prototype would still apply.  */
4379#ifdef __cplusplus
4380extern "C"
4381#endif
4382char shl_load ();
4383int
4384main ()
4385{
4386return shl_load ();
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391if ac_fn_c_try_link "$LINENO"; then :
4392  ac_cv_lib_dld_shl_load=yes
4393else
4394  ac_cv_lib_dld_shl_load=no
4395fi
4396rm -f core conftest.err conftest.$ac_objext \
4397    conftest$ac_exeext conftest.$ac_ext
4398LIBS=$ac_check_lib_save_LIBS
4399fi
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4401$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4402if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4403  tcl_ok=yes
4404else
4405  tcl_ok=no
4406fi
4407
4408            if test "$tcl_ok" = yes; then
4409                SHLIB_CFLAGS="+z"
4410                SHLIB_LD="ld -b"
4411                SHLIB_LD_LIBS='${LIBS}'
4412                DL_OBJS="tclLoadShl.o"
4413                DL_LIBS="-ldld"
4414                LDFLAGS="$LDFLAGS -Wl,-E"
4415                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4416                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4417                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4418            fi
4419            if test "$GCC" = "yes" ; then
4420                SHLIB_LD="gcc -shared"
4421                SHLIB_LD_LIBS='${LIBS}'
4422                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4423            fi
4424
4425            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
4426            #CFLAGS="$CFLAGS +DAportable"
4427
4428            # Check to enable 64-bit flags for compiler/linker
4429            if test "$do64bit" = "yes" ; then
4430                if test "$GCC" = "yes" ; then
4431                    hpux_arch=`${CC} -dumpmachine`
4432                    case $hpux_arch in
4433                        hppa64*)
4434                            # 64-bit gcc in use.  Fix flags for GNU ld.
4435                            do64bit_ok=yes
4436                            SHLIB_LD="${CC} -shared"
4437                            SHLIB_LD_LIBS='${LIBS}'
4438                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4439                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4440                            ;;
4441                        *)
4442                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4443$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4444                            ;;
4445                    esac
4446                else
4447                    do64bit_ok=yes
4448                    CFLAGS="$CFLAGS +DD64"
4449                    LDFLAGS="$LDFLAGS +DD64"
4450                fi
4451            fi
4452            ;;
4453        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
4454            SHLIB_SUFFIX=".sl"
4455            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4456$as_echo_n "checking for shl_load in -ldld... " >&6; }
4457if ${ac_cv_lib_dld_shl_load+:} false; then :
4458  $as_echo_n "(cached) " >&6
4459else
4460  ac_check_lib_save_LIBS=$LIBS
4461LIBS="-ldld  $LIBS"
4462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h.  */
4464
4465/* Override any GCC internal prototype to avoid an error.
4466   Use char because int might match the return type of a GCC
4467   builtin and then its argument prototype would still apply.  */
4468#ifdef __cplusplus
4469extern "C"
4470#endif
4471char shl_load ();
4472int
4473main ()
4474{
4475return shl_load ();
4476  ;
4477  return 0;
4478}
4479_ACEOF
4480if ac_fn_c_try_link "$LINENO"; then :
4481  ac_cv_lib_dld_shl_load=yes
4482else
4483  ac_cv_lib_dld_shl_load=no
4484fi
4485rm -f core conftest.err conftest.$ac_objext \
4486    conftest$ac_exeext conftest.$ac_ext
4487LIBS=$ac_check_lib_save_LIBS
4488fi
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4490$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4491if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
4492  tcl_ok=yes
4493else
4494  tcl_ok=no
4495fi
4496
4497            if test "$tcl_ok" = yes; then
4498                SHLIB_CFLAGS="+z"
4499                SHLIB_LD="ld -b"
4500                SHLIB_LD_LIBS=""
4501                DL_OBJS="tclLoadShl.o"
4502                DL_LIBS="-ldld"
4503                LDFLAGS="$LDFLAGS -Wl,-E"
4504                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4505                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4506                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4507            fi
4508            ;;
4509        IRIX-4.*)
4510            SHLIB_CFLAGS="-G 0"
4511            SHLIB_SUFFIX=".a"
4512            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4513            SHLIB_LD_LIBS='${LIBS}'
4514            DL_OBJS="tclLoadAout.o"
4515            DL_LIBS=""
4516            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
4517            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4518            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4519            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
4520            ;;
4521        IRIX-5.*)
4522            SHLIB_CFLAGS=""
4523            SHLIB_LD="ld -shared -rdata_shared"
4524            SHLIB_LD_LIBS='${LIBS}'
4525            SHLIB_SUFFIX=".so"
4526            DL_OBJS="tclLoadDl.o"
4527            DL_LIBS=""
4528            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4529            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4530            ;;
4531        IRIX-6.*)
4532            SHLIB_CFLAGS=""
4533            SHLIB_LD="ld -n32 -shared -rdata_shared"
4534            SHLIB_LD_LIBS='${LIBS}'
4535            SHLIB_SUFFIX=".so"
4536            DL_OBJS="tclLoadDl.o"
4537            DL_LIBS=""
4538            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4539            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4540            if test "$GCC" = "yes" ; then
4541                CFLAGS="$CFLAGS -mabi=n32"
4542                LDFLAGS="$LDFLAGS -mabi=n32"
4543            else
4544                case $system in
4545                    IRIX-6.3)
4546                        # Use to build 6.2 compatible binaries on 6.3.
4547                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
4548                        ;;
4549                    *)
4550                        CFLAGS="$CFLAGS -n32"
4551                        ;;
4552                esac
4553                LDFLAGS="$LDFLAGS -n32"
4554            fi
4555            ;;
4556        IRIX64-6.*)
4557            SHLIB_CFLAGS=""
4558            SHLIB_LD="ld -n32 -shared -rdata_shared"
4559            SHLIB_LD_LIBS='${LIBS}'
4560            SHLIB_SUFFIX=".so"
4561            DL_OBJS="tclLoadDl.o"
4562            DL_LIBS=""
4563            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4564            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4565
4566            # Check to enable 64-bit flags for compiler/linker
4567
4568            if test "$do64bit" = "yes" ; then
4569                if test "$GCC" = "yes" ; then
4570                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
4571$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
4572                else
4573                    do64bit_ok=yes
4574                    SHLIB_LD="ld -64 -shared -rdata_shared"
4575                    CFLAGS="$CFLAGS -64"
4576                    LDFLAGS="$LDFLAGS -64"
4577                fi
4578            fi
4579            ;;
4580        Linux*)
4581            SHLIB_CFLAGS="-fPIC"
4582            SHLIB_LD_LIBS='${LIBS}'
4583            SHLIB_SUFFIX=".so"
4584
4585            CFLAGS_OPTIMIZE=-O2
4586            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
4587            # when you inline the string and math operations.  Turn this off to
4588            # get rid of the warnings.
4589            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
4590
4591            if test "$have_dl" = yes; then
4592                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
4593                DL_OBJS="tclLoadDl.o"
4594                DL_LIBS="-ldl"
4595                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4596                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4597                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4598            else
4599                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4600if test "x$ac_cv_header_dld_h" = xyes; then :
4601
4602                    SHLIB_LD="ld -shared"
4603                    DL_OBJS="tclLoadDld.o"
4604                    DL_LIBS="-ldld"
4605                    CC_SEARCH_FLAGS=""
4606                    LD_SEARCH_FLAGS=""
4607fi
4608
4609
4610            fi
4611            if test "`uname -m`" = "alpha" ; then
4612                CFLAGS="$CFLAGS -mieee"
4613            fi
4614            if test $do64bit = yes; then
4615                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
4616$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
4617if ${tcl_cv_cc_m64+:} false; then :
4618  $as_echo_n "(cached) " >&6
4619else
4620
4621                    hold_cflags=$CFLAGS
4622                    CFLAGS="$CFLAGS -m64"
4623                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624/* end confdefs.h.  */
4625
4626int
4627main ()
4628{
4629
4630  ;
4631  return 0;
4632}
4633_ACEOF
4634if ac_fn_c_try_link "$LINENO"; then :
4635  tcl_cv_cc_m64=yes
4636else
4637  tcl_cv_cc_m64=no
4638fi
4639rm -f core conftest.err conftest.$ac_objext \
4640    conftest$ac_exeext conftest.$ac_ext
4641                    CFLAGS=$hold_cflags
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
4644$as_echo "$tcl_cv_cc_m64" >&6; }
4645                if test $tcl_cv_cc_m64 = yes; then
4646                    CFLAGS="$CFLAGS -m64"
4647                    do64bit_ok=yes
4648                fi
4649            fi
4650
4651            # The combo of gcc + glibc has a bug related
4652            # to inlining of functions like strtod(). The
4653            # -fno-builtin flag should address this problem
4654            # but it does not work. The -fno-inline flag
4655            # is kind of overkill but it works.
4656            # Disable inlining only when one of the
4657            # files in compat/*.c is being linked in.
4658            if test x"${LIBOBJS}" != x ; then
4659                CFLAGS="$CFLAGS -fno-inline"
4660            fi
4661
4662            # XIM peeking works under XFree86.
4663            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
4664
4665
4666            ;;
4667        GNU*)
4668            SHLIB_CFLAGS="-fPIC"
4669            SHLIB_LD_LIBS='${LIBS}'
4670            SHLIB_SUFFIX=".so"
4671
4672            if test "$have_dl" = yes; then
4673                SHLIB_LD="${CC} -shared"
4674                DL_OBJS=""
4675                DL_LIBS="-ldl"
4676                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4677                CC_SEARCH_FLAGS=""
4678                LD_SEARCH_FLAGS=""
4679            else
4680                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4681if test "x$ac_cv_header_dld_h" = xyes; then :
4682
4683                    SHLIB_LD="ld -shared"
4684                    DL_OBJS=""
4685                    DL_LIBS="-ldld"
4686                    CC_SEARCH_FLAGS=""
4687                    LD_SEARCH_FLAGS=""
4688fi
4689
4690
4691            fi
4692            if test "`uname -m`" = "alpha" ; then
4693                CFLAGS="$CFLAGS -mieee"
4694            fi
4695            ;;
4696        Lynx*)
4697            SHLIB_CFLAGS="-fPIC"
4698            SHLIB_LD_LIBS='${LIBS}'
4699            SHLIB_SUFFIX=".so"
4700            CFLAGS_OPTIMIZE=-02
4701            SHLIB_LD="${CC} -shared "
4702            DL_OBJS="tclLoadDl.o"
4703            DL_LIBS="-mshared -ldl"
4704            LD_FLAGS="-Wl,--export-dynamic"
4705            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4706            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4707            ;;
4708        MP-RAS-02*)
4709            SHLIB_CFLAGS="-K PIC"
4710            SHLIB_LD="cc -G"
4711            SHLIB_LD_LIBS=""
4712            SHLIB_SUFFIX=".so"
4713            DL_OBJS="tclLoadDl.o"
4714            DL_LIBS="-ldl"
4715            CC_SEARCH_FLAGS=""
4716            LD_SEARCH_FLAGS=""
4717            ;;
4718        MP-RAS-*)
4719            SHLIB_CFLAGS="-K PIC"
4720            SHLIB_LD="cc -G"
4721            SHLIB_LD_LIBS=""
4722            SHLIB_SUFFIX=".so"
4723            DL_OBJS="tclLoadDl.o"
4724            DL_LIBS="-ldl"
4725            LDFLAGS="$LDFLAGS -Wl,-Bexport"
4726            CC_SEARCH_FLAGS=""
4727            LD_SEARCH_FLAGS=""
4728            ;;
4729        NetBSD-*|FreeBSD-[1-2].*)
4730            # Not available on all versions:  check for include file.
4731            ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4732if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4733
4734                # NetBSD/SPARC needs -fPIC, -fpic will not do.
4735                SHLIB_CFLAGS="-fPIC"
4736                SHLIB_LD="ld -Bshareable -x"
4737                SHLIB_LD_LIBS='${LIBS}'
4738                SHLIB_SUFFIX=".so"
4739                DL_OBJS="tclLoadDl.o"
4740                DL_LIBS=""
4741                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4742                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4743                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4744$as_echo_n "checking for ELF... " >&6; }
4745if ${tcl_cv_ld_elf+:} false; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748
4749                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750/* end confdefs.h.  */
4751
4752#ifdef __ELF__
4753        yes
4754#endif
4755
4756_ACEOF
4757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758  $EGREP "yes" >/dev/null 2>&1; then :
4759  tcl_cv_ld_elf=yes
4760else
4761  tcl_cv_ld_elf=no
4762fi
4763rm -f conftest*
4764
4765fi
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4767$as_echo "$tcl_cv_ld_elf" >&6; }
4768                if test $tcl_cv_ld_elf = yes; then
4769                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4770                else
4771                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4772                fi
4773
4774else
4775
4776                SHLIB_CFLAGS=""
4777                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4778                SHLIB_LD_LIBS='${LIBS}'
4779                SHLIB_SUFFIX=".a"
4780                DL_OBJS="tclLoadAout.o"
4781                DL_LIBS=""
4782                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4783                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4784                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4785
4786fi
4787
4788
4789
4790            # FreeBSD doesn't handle version numbers with dots.
4791
4792            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4793            TCL_LIB_VERSIONS_OK=nodots
4794            ;;
4795        OpenBSD-*)
4796            case `arch -s` in
4797            m88k|vax)
4798                SHLIB_CFLAGS=""
4799                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4800                SHLIB_LD_LIBS='${LIBS}'
4801                SHLIB_SUFFIX=".a"
4802                DL_OBJS="tclLoadAout.o"
4803                DL_LIBS=""
4804                LDFLAGS=""
4805                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4806                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4807                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4808                ;;
4809            *)
4810                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
4811                case `machine` in
4812                sparc|sparc64)
4813                    SHLIB_CFLAGS="-fPIC";;
4814                *)
4815                    SHLIB_CFLAGS="-fpic";;
4816                esac
4817                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
4818                SHLIB_LD_LIBS='${LIBS}'
4819                SHLIB_SUFFIX=".so"
4820                DL_OBJS="tclLoadDl.o"
4821                DL_LIBS=""
4822                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4823                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4824                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4825                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4826$as_echo_n "checking for ELF... " >&6; }
4827if ${tcl_cv_ld_elf+:} false; then :
4828  $as_echo_n "(cached) " >&6
4829else
4830
4831                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h.  */
4833
4834#ifdef __ELF__
4835        yes
4836#endif
4837
4838_ACEOF
4839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4840  $EGREP "yes" >/dev/null 2>&1; then :
4841  tcl_cv_ld_elf=yes
4842else
4843  tcl_cv_ld_elf=no
4844fi
4845rm -f conftest*
4846
4847fi
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4849$as_echo "$tcl_cv_ld_elf" >&6; }
4850                if test $tcl_cv_ld_elf = yes; then
4851                    LDFLAGS=-Wl,-export-dynamic
4852                else
4853                    LDFLAGS=""
4854                fi
4855                ;;
4856            esac
4857
4858            # OpenBSD doesn't do version numbers with dots.
4859            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4860            TCL_LIB_VERSIONS_OK=nodots
4861            ;;
4862        FreeBSD-*)
4863            # FreeBSD 3.* and greater have ELF.
4864            SHLIB_CFLAGS="-fPIC"
4865            SHLIB_LD="ld -Bshareable -x"
4866            SHLIB_LD_LIBS='${LIBS}'
4867            SHLIB_SUFFIX=".so"
4868            DL_OBJS="tclLoadDl.o"
4869            DL_LIBS=""
4870            LDFLAGS="$LDFLAGS -export-dynamic"
4871            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4872            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4873            if test "${TCL_THREADS}" = "1" ; then
4874                # The -pthread needs to go in the CFLAGS, not LIBS
4875                LIBS=`echo $LIBS | sed s/-pthread//`
4876                CFLAGS="$CFLAGS -pthread"
4877                LDFLAGS="$LDFLAGS -pthread"
4878            fi
4879            case $system in
4880            FreeBSD-3.*)
4881                # FreeBSD-3 doesn't handle version numbers with dots.
4882                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4883                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4884                TCL_LIB_VERSIONS_OK=nodots
4885                ;;
4886            esac
4887            ;;
4888        Darwin-*)
4889            CFLAGS_OPTIMIZE="-Os"
4890            SHLIB_CFLAGS="-fno-common"
4891            # To avoid discrepancies between what headers configure sees during
4892            # preprocessing tests and compiling tests, move any -isysroot and
4893            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
4894            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
4895                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4896                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
4897            CFLAGS="`echo " ${CFLAGS}" | \
4898                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4899                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
4900            if test $do64bit = yes; then
4901                case `arch` in
4902                    ppc)
4903                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
4904$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
4905if ${tcl_cv_cc_arch_ppc64+:} false; then :
4906  $as_echo_n "(cached) " >&6
4907else
4908
4909                            hold_cflags=$CFLAGS
4910                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4911                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h.  */
4913
4914int
4915main ()
4916{
4917
4918  ;
4919  return 0;
4920}
4921_ACEOF
4922if ac_fn_c_try_link "$LINENO"; then :
4923  tcl_cv_cc_arch_ppc64=yes
4924else
4925  tcl_cv_cc_arch_ppc64=no
4926fi
4927rm -f core conftest.err conftest.$ac_objext \
4928    conftest$ac_exeext conftest.$ac_ext
4929                            CFLAGS=$hold_cflags
4930fi
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
4932$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
4933                        if test $tcl_cv_cc_arch_ppc64 = yes; then
4934                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4935                            do64bit_ok=yes
4936                        fi;;
4937                    i386)
4938                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
4939$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
4940if ${tcl_cv_cc_arch_x86_64+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943
4944                            hold_cflags=$CFLAGS
4945                            CFLAGS="$CFLAGS -arch x86_64"
4946                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947/* end confdefs.h.  */
4948
4949int
4950main ()
4951{
4952
4953  ;
4954  return 0;
4955}
4956_ACEOF
4957if ac_fn_c_try_link "$LINENO"; then :
4958  tcl_cv_cc_arch_x86_64=yes
4959else
4960  tcl_cv_cc_arch_x86_64=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext \
4963    conftest$ac_exeext conftest.$ac_ext
4964                            CFLAGS=$hold_cflags
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
4967$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
4968                        if test $tcl_cv_cc_arch_x86_64 = yes; then
4969                            CFLAGS="$CFLAGS -arch x86_64"
4970                            do64bit_ok=yes
4971                        fi;;
4972                    *)
4973                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
4974$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
4975                esac
4976            else
4977                # Check for combined 32-bit and 64-bit fat build
4978                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
4979                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
4980                    fat_32_64=yes
4981            fi
4982            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
4983            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
4984$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
4985if ${tcl_cv_ld_single_module+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988
4989                hold_ldflags=$LDFLAGS
4990                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
4991                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992/* end confdefs.h.  */
4993
4994int
4995main ()
4996{
4997int i;
4998  ;
4999  return 0;
5000}
5001_ACEOF
5002if ac_fn_c_try_link "$LINENO"; then :
5003  tcl_cv_ld_single_module=yes
5004else
5005  tcl_cv_ld_single_module=no
5006fi
5007rm -f core conftest.err conftest.$ac_objext \
5008    conftest$ac_exeext conftest.$ac_ext
5009                LDFLAGS=$hold_ldflags
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
5012$as_echo "$tcl_cv_ld_single_module" >&6; }
5013            if test $tcl_cv_ld_single_module = yes; then
5014                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
5015            fi
5016            SHLIB_LD_LIBS='${LIBS}'
5017            SHLIB_SUFFIX=".dylib"
5018            DL_OBJS="tclLoadDyld.o"
5019            DL_LIBS=""
5020            # Don't use -prebind when building for Mac OS X 10.4 or later only:
5021            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
5022                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
5023                LDFLAGS="$LDFLAGS -prebind"
5024            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
5025            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
5026$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
5027if ${tcl_cv_ld_search_paths_first+:} false; then :
5028  $as_echo_n "(cached) " >&6
5029else
5030
5031                hold_ldflags=$LDFLAGS
5032                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5033                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h.  */
5035
5036int
5037main ()
5038{
5039int i;
5040  ;
5041  return 0;
5042}
5043_ACEOF
5044if ac_fn_c_try_link "$LINENO"; then :
5045  tcl_cv_ld_search_paths_first=yes
5046else
5047  tcl_cv_ld_search_paths_first=no
5048fi
5049rm -f core conftest.err conftest.$ac_objext \
5050    conftest$ac_exeext conftest.$ac_ext
5051                LDFLAGS=$hold_ldflags
5052fi
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
5054$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
5055            if test $tcl_cv_ld_search_paths_first = yes; then
5056                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
5057            fi
5058            CC_SEARCH_FLAGS=""
5059            LD_SEARCH_FLAGS=""
5060            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
5061            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
5062            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
5063            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
5064$as_echo_n "checking whether to use CoreFoundation... " >&6; }
5065            # Check whether --enable-corefoundation was given.
5066if test "${enable_corefoundation+set}" = set; then :
5067  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
5068else
5069  tcl_corefoundation=yes
5070fi
5071
5072            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
5073$as_echo "$tcl_corefoundation" >&6; }
5074            if test $tcl_corefoundation = yes; then
5075                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
5076$as_echo_n "checking for CoreFoundation.framework... " >&6; }
5077if ${tcl_cv_lib_corefoundation+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080
5081                    hold_libs=$LIBS
5082                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
5083                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
5084                        # from CFLAGS et al. while testing for presence of CF.
5085                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
5086                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
5087                    done; fi
5088                    LIBS="$LIBS -framework CoreFoundation"
5089                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090/* end confdefs.h.  */
5091#include <CoreFoundation/CoreFoundation.h>
5092int
5093main ()
5094{
5095CFBundleRef b = CFBundleGetMainBundle();
5096  ;
5097  return 0;
5098}
5099_ACEOF
5100if ac_fn_c_try_link "$LINENO"; then :
5101  tcl_cv_lib_corefoundation=yes
5102else
5103  tcl_cv_lib_corefoundation=no
5104fi
5105rm -f core conftest.err conftest.$ac_objext \
5106    conftest$ac_exeext conftest.$ac_ext
5107                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
5108                        eval $v'="$hold_'$v'"'
5109                    done; fi; LIBS=$hold_libs
5110fi
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
5112$as_echo "$tcl_cv_lib_corefoundation" >&6; }
5113                if test $tcl_cv_lib_corefoundation = yes; then
5114                    LIBS="$LIBS -framework CoreFoundation"
5115                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
5116
5117                else
5118                    tcl_corefoundation=no
5119                fi
5120                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
5121                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
5122$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
5123if ${tcl_cv_lib_corefoundation_64+:} false; then :
5124  $as_echo_n "(cached) " >&6
5125else
5126
5127                        for v in CFLAGS CPPFLAGS LDFLAGS; do
5128                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
5129                        done
5130                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131/* end confdefs.h.  */
5132#include <CoreFoundation/CoreFoundation.h>
5133int
5134main ()
5135{
5136CFBundleRef b = CFBundleGetMainBundle();
5137  ;
5138  return 0;
5139}
5140_ACEOF
5141if ac_fn_c_try_link "$LINENO"; then :
5142  tcl_cv_lib_corefoundation_64=yes
5143else
5144  tcl_cv_lib_corefoundation_64=no
5145fi
5146rm -f core conftest.err conftest.$ac_objext \
5147    conftest$ac_exeext conftest.$ac_ext
5148                        for v in CFLAGS CPPFLAGS LDFLAGS; do
5149                            eval $v'="$hold_'$v'"'
5150                        done
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
5153$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
5154                    if test $tcl_cv_lib_corefoundation_64 = no; then
5155                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
5156
5157                    fi
5158                fi
5159            fi
5160            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
5161
5162            ;;
5163        NEXTSTEP-*)
5164            SHLIB_CFLAGS=""
5165            SHLIB_LD="cc -nostdlib -r"
5166            SHLIB_LD_LIBS=""
5167            SHLIB_SUFFIX=".so"
5168            DL_OBJS="tclLoadNext.o"
5169            DL_LIBS=""
5170            CC_SEARCH_FLAGS=""
5171            LD_SEARCH_FLAGS=""
5172            ;;
5173        OS/390-*)
5174            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
5175            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
5176        # needed in sys/socket.h
5177            ;;
5178        OSF1-1.0|OSF1-1.1|OSF1-1.2)
5179            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
5180            SHLIB_CFLAGS=""
5181            # Hack: make package name same as library name
5182            SHLIB_LD='ld -R -export :'
5183            SHLIB_LD_LIBS=""
5184            SHLIB_SUFFIX=".so"
5185            DL_OBJS="tclLoadOSF.o"
5186            DL_LIBS=""
5187            CC_SEARCH_FLAGS=""
5188            LD_SEARCH_FLAGS=""
5189            ;;
5190        OSF1-1.*)
5191            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
5192            SHLIB_CFLAGS="-fPIC"
5193            if test "$SHARED_BUILD" = "1" ; then
5194                SHLIB_LD="ld -shared"
5195            else
5196                SHLIB_LD="ld -non_shared"
5197            fi
5198            SHLIB_LD_LIBS=""
5199            SHLIB_SUFFIX=".so"
5200            DL_OBJS="tclLoadDl.o"
5201            DL_LIBS=""
5202            CC_SEARCH_FLAGS=""
5203            LD_SEARCH_FLAGS=""
5204            ;;
5205        OSF1-V*)
5206            # Digital OSF/1
5207            SHLIB_CFLAGS=""
5208            if test "$SHARED_BUILD" = "1" ; then
5209                SHLIB_LD='ld -shared -expect_unresolved "*"'
5210            else
5211                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
5212            fi
5213            SHLIB_LD_LIBS=""
5214            SHLIB_SUFFIX=".so"
5215            DL_OBJS="tclLoadDl.o"
5216            DL_LIBS=""
5217            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
5218            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
5219            if test "$GCC" = "yes" ; then
5220                CFLAGS="$CFLAGS -mieee"
5221            else
5222                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
5223            fi
5224            # see pthread_intro(3) for pthread support on osf1, k.furukawa
5225            if test "${TCL_THREADS}" = "1" ; then
5226                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
5227                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
5228                LIBS=`echo $LIBS | sed s/-lpthreads//`
5229                if test "$GCC" = "yes" ; then
5230                    LIBS="$LIBS -lpthread -lmach -lexc"
5231                else
5232                    CFLAGS="$CFLAGS -pthread"
5233                    LDFLAGS="$LDFLAGS -pthread"
5234                fi
5235            fi
5236
5237            ;;
5238        QNX-6*)
5239            # QNX RTP
5240            # This may work for all QNX, but it was only reported for v6.
5241            SHLIB_CFLAGS="-fPIC"
5242            SHLIB_LD="ld -Bshareable -x"
5243            SHLIB_LD_LIBS=""
5244            SHLIB_SUFFIX=".so"
5245            DL_OBJS="tclLoadDl.o"
5246            # dlopen is in -lc on QNX
5247            DL_LIBS=""
5248            CC_SEARCH_FLAGS=""
5249            LD_SEARCH_FLAGS=""
5250            ;;
5251        RISCos-*)
5252            SHLIB_CFLAGS="-G 0"
5253            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5254            SHLIB_LD_LIBS='${LIBS}'
5255            SHLIB_SUFFIX=".a"
5256            DL_OBJS="tclLoadAout.o"
5257            DL_LIBS=""
5258            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5259            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5260            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5261            ;;
5262        SCO_SV-3.2*)
5263            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
5264            # this test works, since "uname -s" was non-standard in 3.2.4 and
5265            # below.
5266            if test "$GCC" = "yes" ; then
5267                SHLIB_CFLAGS="-fPIC -melf"
5268                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
5269            else
5270                SHLIB_CFLAGS="-Kpic -belf"
5271                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
5272            fi
5273            SHLIB_LD="ld -G"
5274            SHLIB_LD_LIBS=""
5275            SHLIB_SUFFIX=".so"
5276            DL_OBJS="tclLoadDl.o"
5277            DL_LIBS=""
5278            CC_SEARCH_FLAGS=""
5279            LD_SEARCH_FLAGS=""
5280            ;;
5281        SINIX*5.4*)
5282            SHLIB_CFLAGS="-K PIC"
5283            SHLIB_LD="cc -G"
5284            SHLIB_LD_LIBS=""
5285            SHLIB_SUFFIX=".so"
5286            DL_OBJS="tclLoadDl.o"
5287            DL_LIBS="-ldl"
5288            CC_SEARCH_FLAGS=""
5289            LD_SEARCH_FLAGS=""
5290            ;;
5291        SunOS-4*)
5292            SHLIB_CFLAGS="-PIC"
5293            SHLIB_LD="ld"
5294            SHLIB_LD_LIBS=""
5295            SHLIB_SUFFIX=".so"
5296            DL_OBJS="tclLoadDl.o"
5297            DL_LIBS="-ldl"
5298            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5299            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5300
5301            # SunOS can't handle version numbers with dots in them in library
5302            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
5303            # requires an extra version number at the end of .so file names.
5304            # So, the library has to have a name like libtcl75.so.1.0
5305
5306            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
5307            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
5308            TCL_LIB_VERSIONS_OK=nodots
5309            ;;
5310        SunOS-5.[0-6])
5311            # Careful to not let 5.10+ fall into this case
5312
5313            # Note: If _REENTRANT isn't defined, then Solaris
5314            # won't define thread-safe library routines.
5315
5316            $as_echo "#define _REENTRANT 1" >>confdefs.h
5317
5318            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5319
5320
5321            SHLIB_CFLAGS="-KPIC"
5322
5323            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5324            # symbols when dynamically loaded into tclsh.
5325
5326            SHLIB_LD_LIBS='${LIBS}'
5327            SHLIB_SUFFIX=".so"
5328            DL_OBJS="tclLoadDl.o"
5329            DL_LIBS="-ldl"
5330            if test "$GCC" = "yes" ; then
5331                SHLIB_LD="$CC -shared"
5332                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5333                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5334            else
5335                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5336                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5337                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5338            fi
5339            ;;
5340        SunOS-5*)
5341            # Note: If _REENTRANT isn't defined, then Solaris
5342            # won't define thread-safe library routines.
5343
5344            $as_echo "#define _REENTRANT 1" >>confdefs.h
5345
5346            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5347
5348
5349            SHLIB_CFLAGS="-KPIC"
5350
5351            # Check to enable 64-bit flags for compiler/linker
5352            if test "$do64bit" = "yes" ; then
5353                arch=`isainfo`
5354                if test "$arch" = "sparcv9 sparc" ; then
5355                        if test "$GCC" = "yes" ; then
5356                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
5357                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
5358$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
5359                            else
5360                                do64bit_ok=yes
5361                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
5362                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
5363                                SHLIB_CFLAGS="-fPIC"
5364                            fi
5365                        else
5366                            do64bit_ok=yes
5367                            if test "$do64bitVIS" = "yes" ; then
5368                                CFLAGS="$CFLAGS -xarch=v9a"
5369                                LDFLAGS="$LDFLAGS -xarch=v9a"
5370                            else
5371                                CFLAGS="$CFLAGS -xarch=v9"
5372                                LDFLAGS="$LDFLAGS -xarch=v9"
5373                            fi
5374                            # Solaris 64 uses this as well
5375                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
5376                        fi
5377                elif test "$arch" = "amd64 i386" ; then
5378                    if test "$GCC" = "yes" ; then
5379                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5380$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
5381                    else
5382                        do64bit_ok=yes
5383                        CFLAGS="$CFLAGS -xarch=amd64"
5384                        LDFLAGS="$LDFLAGS -xarch=amd64"
5385                    fi
5386                else
5387                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
5388$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
5389                fi
5390            fi
5391
5392            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5393            # symbols when dynamically loaded into tclsh.
5394
5395            SHLIB_LD_LIBS='${LIBS}'
5396            SHLIB_SUFFIX=".so"
5397            DL_OBJS="tclLoadDl.o"
5398            DL_LIBS="-ldl"
5399            if test "$GCC" = "yes" ; then
5400                SHLIB_LD="$CC -shared"
5401                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5402                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5403                if test "$do64bit_ok" = "yes" ; then
5404                    # We need to specify -static-libgcc or we need to
5405                    # add the path to the sparv9 libgcc.
5406                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
5407                    # for finding sparcv9 libgcc, get the regular libgcc
5408                    # path, remove so name and append 'sparcv9'
5409                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
5410                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
5411                fi
5412            else
5413                case $system in
5414                    SunOS-5.[1-9][0-9]*)
5415                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
5416                    *)
5417                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
5418                esac
5419                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5420                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5421            fi
5422            ;;
5423        ULTRIX-4.*)
5424            SHLIB_CFLAGS="-G 0"
5425            SHLIB_SUFFIX=".a"
5426            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5427            SHLIB_LD_LIBS='${LIBS}'
5428            DL_OBJS="tclLoadAout.o"
5429            DL_LIBS=""
5430            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5431            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5432            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5433            if test "$GCC" != "yes" ; then
5434                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
5435            fi
5436            ;;
5437        UNIX_SV* | UnixWare-5*)
5438            SHLIB_CFLAGS="-KPIC"
5439            SHLIB_LD="cc -G"
5440            SHLIB_LD_LIBS=""
5441            SHLIB_SUFFIX=".so"
5442            DL_OBJS="tclLoadDl.o"
5443            DL_LIBS="-ldl"
5444            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
5445            # that don't grok the -Bexport option.  Test that it does.
5446            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
5447$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
5448if ${tcl_cv_ld_Bexport+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451
5452                hold_ldflags=$LDFLAGS
5453                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5454                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456
5457int
5458main ()
5459{
5460int i;
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465if ac_fn_c_try_link "$LINENO"; then :
5466  tcl_cv_ld_Bexport=yes
5467else
5468  tcl_cv_ld_Bexport=no
5469fi
5470rm -f core conftest.err conftest.$ac_objext \
5471    conftest$ac_exeext conftest.$ac_ext
5472                LDFLAGS=$hold_ldflags
5473fi
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
5475$as_echo "$tcl_cv_ld_Bexport" >&6; }
5476            if test $tcl_cv_ld_Bexport = yes; then
5477                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5478            fi
5479            CC_SEARCH_FLAGS=""
5480            LD_SEARCH_FLAGS=""
5481            ;;
5482    esac
5483
5484    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
5485        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
5486$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
5487    fi
5488
5489
5490
5491
5492    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
5493    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
5494    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
5495    # to determine which of several header files defines the a.out file
5496    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
5497    # support only a file format that is more or less version-7-compatible.
5498    # In particular,
5499    #   - a.out files must begin with `struct exec'.
5500    #   - the N_TXTOFF on the `struct exec' must compute the seek address
5501    #     of the text segment
5502    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
5503    #     and a_entry fields.
5504    # The following compilation should succeed if and only if either sys/exec.h
5505    # or a.out.h is usable for the purpose.
5506    #
5507    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
5508    # `struct exec' includes a second header that contains information that
5509    # duplicates the v7 fields that are needed.
5510
5511    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
5512        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
5513$as_echo_n "checking sys/exec.h... " >&6; }
5514if ${tcl_cv_sysexec_h+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517
5518        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519/* end confdefs.h.  */
5520#include <sys/exec.h>
5521int
5522main ()
5523{
5524
5525            struct exec foo;
5526            unsigned long seek;
5527            int flag;
5528#if defined(__mips) || defined(mips)
5529            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5530#else
5531            seek = N_TXTOFF (foo);
5532#endif
5533            flag = (foo.a_magic == OMAGIC);
5534            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5535
5536  ;
5537  return 0;
5538}
5539_ACEOF
5540if ac_fn_c_try_compile "$LINENO"; then :
5541  tcl_cv_sysexec_h=usable
5542else
5543  tcl_cv_sysexec_h=unusable
5544fi
5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
5548$as_echo "$tcl_cv_sysexec_h" >&6; }
5549        if test $tcl_cv_sysexec_h = usable; then
5550            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
5551
5552        else
5553            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
5554$as_echo_n "checking a.out.h... " >&6; }
5555if ${tcl_cv_aout_h+:} false; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558
5559            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h.  */
5561#include <a.out.h>
5562int
5563main ()
5564{
5565
5566                struct exec foo;
5567                unsigned long seek;
5568                int flag;
5569#if defined(__mips) || defined(mips)
5570                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5571#else
5572                seek = N_TXTOFF (foo);
5573#endif
5574                flag = (foo.a_magic == OMAGIC);
5575                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5576
5577  ;
5578  return 0;
5579}
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
5582  tcl_cv_aout_h=usable
5583else
5584  tcl_cv_aout_h=unusable
5585fi
5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
5589$as_echo "$tcl_cv_aout_h" >&6; }
5590            if test $tcl_cv_aout_h = usable; then
5591                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
5592
5593            else
5594                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
5595$as_echo_n "checking sys/exec_aout.h... " >&6; }
5596if ${tcl_cv_sysexecaout_h+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599
5600                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h.  */
5602#include <sys/exec_aout.h>
5603int
5604main ()
5605{
5606
5607                    struct exec foo;
5608                    unsigned long seek;
5609                    int flag;
5610#if defined(__mips) || defined(mips)
5611                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5612#else
5613                    seek = N_TXTOFF (foo);
5614#endif
5615                    flag = (foo.a_midmag == OMAGIC);
5616                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5617
5618  ;
5619  return 0;
5620}
5621_ACEOF
5622if ac_fn_c_try_compile "$LINENO"; then :
5623  tcl_cv_sysexecaout_h=usable
5624else
5625  tcl_cv_sysexecaout_h=unusable
5626fi
5627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628fi
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
5630$as_echo "$tcl_cv_sysexecaout_h" >&6; }
5631                if test $tcl_cv_sysexecaout_h = usable; then
5632                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
5633
5634                else
5635                    DL_OBJS=""
5636                fi
5637            fi
5638        fi
5639    fi
5640
5641    # Step 5: disable dynamic loading if requested via a command-line switch.
5642
5643    # Check whether --enable-load was given.
5644if test "${enable_load+set}" = set; then :
5645  enableval=$enable_load; tcl_ok=$enableval
5646else
5647  tcl_ok=yes
5648fi
5649
5650    if test "$tcl_ok" = "no"; then
5651        DL_OBJS=""
5652    fi
5653
5654    if test "x$DL_OBJS" != "x" ; then
5655        BUILD_DLTEST="\$(DLTEST_TARGETS)"
5656    else
5657        echo "Can't figure out how to do dynamic loading or shared libraries"
5658        echo "on this system."
5659        SHLIB_CFLAGS=""
5660        SHLIB_LD=""
5661        SHLIB_SUFFIX=""
5662        DL_OBJS="tclLoadNone.o"
5663        DL_LIBS=""
5664        LDFLAGS="$LDFLAGS_ORIG"
5665        CC_SEARCH_FLAGS=""
5666        LD_SEARCH_FLAGS=""
5667        BUILD_DLTEST=""
5668    fi
5669
5670    # If we're running gcc, then change the C flags for compiling shared
5671    # libraries to the right flags for gcc, instead of those for the
5672    # standard manufacturer compiler.
5673
5674    if test "$DL_OBJS" != "tclLoadNone.o" ; then
5675        if test "$GCC" = "yes" ; then
5676            case $system in
5677                AIX-*)
5678                    ;;
5679                BSD/OS*)
5680                    ;;
5681                IRIX*)
5682                    ;;
5683                NetBSD-*|FreeBSD-*|OpenBSD-*)
5684                    ;;
5685                Darwin-*)
5686                    ;;
5687                RISCos-*)
5688                    ;;
5689                SCO_SV-3.2*)
5690                    ;;
5691                ULTRIX-4.*)
5692                    ;;
5693                *)
5694                    SHLIB_CFLAGS="-fPIC"
5695                    ;;
5696            esac
5697        fi
5698    fi
5699
5700    if test "$SHARED_LIB_SUFFIX" = "" ; then
5701        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
5702    fi
5703    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
5704        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
5705    fi
5706
5707    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
5708        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
5709        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
5710        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5711    else
5712        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
5713
5714        if test "$RANLIB" = "" ; then
5715            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
5716            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5717        else
5718            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
5719            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
5720        fi
5721
5722    fi
5723
5724
5725    # Stub lib does not depend on shared/static configuration
5726    if test "$RANLIB" = "" ; then
5727        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
5728        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
5729    else
5730        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
5731        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
5732    fi
5733
5734
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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5767$as_echo_n "checking for X... " >&6; }
5768
5769
5770# Check whether --with-x was given.
5771if test "${with_x+set}" = set; then :
5772  withval=$with_x;
5773fi
5774
5775# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5776if test "x$with_x" = xno; then
5777  # The user explicitly disabled X.
5778  have_x=disabled
5779else
5780  case $x_includes,$x_libraries in #(
5781    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5782    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5783  $as_echo_n "(cached) " >&6
5784else
5785  # One or both of the vars are not set, and there is no cached value.
5786ac_x_includes=no ac_x_libraries=no
5787rm -f -r conftest.dir
5788if mkdir conftest.dir; then
5789  cd conftest.dir
5790  cat >Imakefile <<'_ACEOF'
5791incroot:
5792        @echo incroot='${INCROOT}'
5793usrlibdir:
5794        @echo usrlibdir='${USRLIBDIR}'
5795libdir:
5796        @echo libdir='${LIBDIR}'
5797_ACEOF
5798  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5799    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5800    for ac_var in incroot usrlibdir libdir; do
5801      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5802    done
5803    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5804    for ac_extension in a so sl dylib la dll; do
5805      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5806         test -f "$ac_im_libdir/libX11.$ac_extension"; then
5807        ac_im_usrlibdir=$ac_im_libdir; break
5808      fi
5809    done
5810    # Screen out bogus values from the imake configuration.  They are
5811    # bogus both because they are the default anyway, and because
5812    # using them would break gcc on systems where it needs fixed includes.
5813    case $ac_im_incroot in
5814        /usr/include) ac_x_includes= ;;
5815        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5816    esac
5817    case $ac_im_usrlibdir in
5818        /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5819        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5820    esac
5821  fi
5822  cd ..
5823  rm -f -r conftest.dir
5824fi
5825
5826# Standard set of common directories for X headers.
5827# Check X11 before X11Rn because it is often a symlink to the current release.
5828ac_x_header_dirs='
5829/usr/X11/include
5830/usr/X11R7/include
5831/usr/X11R6/include
5832/usr/X11R5/include
5833/usr/X11R4/include
5834
5835/usr/include/X11
5836/usr/include/X11R7
5837/usr/include/X11R6
5838/usr/include/X11R5
5839/usr/include/X11R4
5840
5841/usr/local/X11/include
5842/usr/local/X11R7/include
5843/usr/local/X11R6/include
5844/usr/local/X11R5/include
5845/usr/local/X11R4/include
5846
5847/usr/local/include/X11
5848/usr/local/include/X11R7
5849/usr/local/include/X11R6
5850/usr/local/include/X11R5
5851/usr/local/include/X11R4
5852
5853/usr/X386/include
5854/usr/x386/include
5855/usr/XFree86/include/X11
5856
5857/usr/include
5858/usr/local/include
5859/usr/unsupported/include
5860/usr/athena/include
5861/usr/local/x11r5/include
5862/usr/lpp/Xamples/include
5863
5864/usr/openwin/include
5865/usr/openwin/share/include'
5866
5867if test "$ac_x_includes" = no; then
5868  # Guess where to find include files, by looking for Xlib.h.
5869  # First, try using that file with no special directory specified.
5870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h.  */
5872#include <X11/Xlib.h>
5873_ACEOF
5874if ac_fn_c_try_cpp "$LINENO"; then :
5875  # We can compile using X headers with no special include directory.
5876ac_x_includes=
5877else
5878  for ac_dir in $ac_x_header_dirs; do
5879  if test -r "$ac_dir/X11/Xlib.h"; then
5880    ac_x_includes=$ac_dir
5881    break
5882  fi
5883done
5884fi
5885rm -f conftest.err conftest.i conftest.$ac_ext
5886fi # $ac_x_includes = no
5887
5888if test "$ac_x_libraries" = no; then
5889  # Check for the libraries.
5890  # See if we find them without any special options.
5891  # Don't add to $LIBS permanently.
5892  ac_save_LIBS=$LIBS
5893  LIBS="-lX11 $LIBS"
5894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896#include <X11/Xlib.h>
5897int
5898main ()
5899{
5900XrmInitialize ()
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905if ac_fn_c_try_link "$LINENO"; then :
5906  LIBS=$ac_save_LIBS
5907# We can link X programs with no special library path.
5908ac_x_libraries=
5909else
5910  LIBS=$ac_save_LIBS
5911for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5912do
5913  # Don't even attempt the hair of trying to link an X program!
5914  for ac_extension in a so sl dylib la dll; do
5915    if test -r "$ac_dir/libX11.$ac_extension"; then
5916      ac_x_libraries=$ac_dir
5917      break 2
5918    fi
5919  done
5920done
5921fi
5922rm -f core conftest.err conftest.$ac_objext \
5923    conftest$ac_exeext conftest.$ac_ext
5924fi # $ac_x_libraries = no
5925
5926case $ac_x_includes,$ac_x_libraries in #(
5927  no,* | *,no | *\'*)
5928    # Didn't find X, or a directory has "'" in its name.
5929    ac_cv_have_x="have_x=no";; #(
5930  *)
5931    # Record where we found X for the cache.
5932    ac_cv_have_x="have_x=yes\
5933        ac_x_includes='$ac_x_includes'\
5934        ac_x_libraries='$ac_x_libraries'"
5935esac
5936fi
5937;; #(
5938    *) have_x=yes;;
5939  esac
5940  eval "$ac_cv_have_x"
5941fi # $with_x != no
5942
5943if test "$have_x" != yes; then
5944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5945$as_echo "$have_x" >&6; }
5946  no_x=yes
5947else
5948  # If each of the values was on the command line, it overrides each guess.
5949  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5950  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5951  # Update the cache value to reflect the command line values.
5952  ac_cv_have_x="have_x=yes\
5953        ac_x_includes='$x_includes'\
5954        ac_x_libraries='$x_libraries'"
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5956$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5957fi
5958
5959
5960# Find a good install program.  We prefer a C program (faster),
5961# so one script is as good as another.  But avoid the broken or
5962# incompatible versions:
5963# SysV /etc/install, /usr/sbin/install
5964# SunOS /usr/etc/install
5965# IRIX /sbin/install
5966# AIX /bin/install
5967# AmigaOS /C/install, which installs bootblocks on floppy discs
5968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5971# OS/2's system install, which has a completely different semantic
5972# ./install, which can be erroneously created by make from ./install.sh.
5973# Reject install programs that cannot install multiple files.
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5975$as_echo_n "checking for a BSD-compatible install... " >&6; }
5976if test -z "$INSTALL"; then
5977if ${ac_cv_path_install+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981for as_dir in $PATH
5982do
5983  IFS=$as_save_IFS
5984  test -z "$as_dir" && as_dir=.
5985    # Account for people who put trailing slashes in PATH elements.
5986case $as_dir/ in #((
5987  ./ | .// | /[cC]/* | \
5988  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5989  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5990  /usr/ucb/* ) ;;
5991  *)
5992    # OSF1 and SCO ODT 3.0 have their own names for install.
5993    # Don't use installbsd from OSF since it installs stuff as root
5994    # by default.
5995    for ac_prog in ginstall scoinst install; do
5996      for ac_exec_ext in '' $ac_executable_extensions; do
5997        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5998          if test $ac_prog = install &&
5999            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6000            # AIX install.  It has an incompatible calling convention.
6001            :
6002          elif test $ac_prog = install &&
6003            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6004            # program-specific install script used by HP pwplus--don't use.
6005            :
6006          else
6007            rm -rf conftest.one conftest.two conftest.dir
6008            echo one > conftest.one
6009            echo two > conftest.two
6010            mkdir conftest.dir
6011            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6012              test -s conftest.one && test -s conftest.two &&
6013              test -s conftest.dir/conftest.one &&
6014              test -s conftest.dir/conftest.two
6015            then
6016              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6017              break 3
6018            fi
6019          fi
6020        fi
6021      done
6022    done
6023    ;;
6024esac
6025
6026  done
6027IFS=$as_save_IFS
6028
6029rm -rf conftest.one conftest.two conftest.dir
6030
6031fi
6032  if test "${ac_cv_path_install+set}" = set; then
6033    INSTALL=$ac_cv_path_install
6034  else
6035    # As a last resort, use the slow shell script.  Don't cache a
6036    # value for INSTALL within a source directory, because that will
6037    # break other packages using the cache if that directory is
6038    # removed, or if the value is a relative name.
6039    INSTALL=$ac_install_sh
6040  fi
6041fi
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6043$as_echo "$INSTALL" >&6; }
6044
6045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6046# It thinks the first close brace ends the variable substitution.
6047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6048
6049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6050
6051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6052
6053if test -n "$ac_tool_prefix"; then
6054  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6055set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057$as_echo_n "checking for $ac_word... " >&6; }
6058if ${ac_cv_prog_RANLIB+:} false; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  if test -n "$RANLIB"; then
6062  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6063else
6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065for as_dir in $PATH
6066do
6067  IFS=$as_save_IFS
6068  test -z "$as_dir" && as_dir=.
6069    for ac_exec_ext in '' $ac_executable_extensions; do
6070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073    break 2
6074  fi
6075done
6076  done
6077IFS=$as_save_IFS
6078
6079fi
6080fi
6081RANLIB=$ac_cv_prog_RANLIB
6082if test -n "$RANLIB"; then
6083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6084$as_echo "$RANLIB" >&6; }
6085else
6086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087$as_echo "no" >&6; }
6088fi
6089
6090
6091fi
6092if test -z "$ac_cv_prog_RANLIB"; then
6093  ac_ct_RANLIB=$RANLIB
6094  # Extract the first word of "ranlib", so it can be a program name with args.
6095set dummy ranlib; ac_word=$2
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097$as_echo_n "checking for $ac_word... " >&6; }
6098if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6099  $as_echo_n "(cached) " >&6
6100else
6101  if test -n "$ac_ct_RANLIB"; then
6102  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6103else
6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105for as_dir in $PATH
6106do
6107  IFS=$as_save_IFS
6108  test -z "$as_dir" && as_dir=.
6109    for ac_exec_ext in '' $ac_executable_extensions; do
6110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111    ac_cv_prog_ac_ct_RANLIB="ranlib"
6112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113    break 2
6114  fi
6115done
6116  done
6117IFS=$as_save_IFS
6118
6119fi
6120fi
6121ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6122if test -n "$ac_ct_RANLIB"; then
6123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6124$as_echo "$ac_ct_RANLIB" >&6; }
6125else
6126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127$as_echo "no" >&6; }
6128fi
6129
6130  if test "x$ac_ct_RANLIB" = x; then
6131    RANLIB=":"
6132  else
6133    case $cross_compiling:$ac_tool_warned in
6134yes:)
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6137ac_tool_warned=yes ;;
6138esac
6139    RANLIB=$ac_ct_RANLIB
6140  fi
6141else
6142  RANLIB="$ac_cv_prog_RANLIB"
6143fi
6144
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6146$as_echo_n "checking whether ln -s works... " >&6; }
6147LN_S=$as_ln_s
6148if test "$LN_S" = "ln -s"; then
6149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150$as_echo "yes" >&6; }
6151else
6152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6153$as_echo "no, using $LN_S" >&6; }
6154fi
6155
6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6157$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6158if test -z "$MKDIR_P"; then
6159  if ${ac_cv_path_mkdir+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6164do
6165  IFS=$as_save_IFS
6166  test -z "$as_dir" && as_dir=.
6167    for ac_prog in mkdir gmkdir; do
6168         for ac_exec_ext in '' $ac_executable_extensions; do
6169           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6170           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6171             'mkdir (GNU coreutils) '* | \
6172             'mkdir (coreutils) '* | \
6173             'mkdir (fileutils) '4.1*)
6174               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6175               break 3;;
6176           esac
6177         done
6178       done
6179  done
6180IFS=$as_save_IFS
6181
6182fi
6183
6184  test -d ./--version && rmdir ./--version
6185  if test "${ac_cv_path_mkdir+set}" = set; then
6186    MKDIR_P="$ac_cv_path_mkdir -p"
6187  else
6188    # As a last resort, use the slow shell script.  Don't cache a
6189    # value for MKDIR_P within a source directory, because that will
6190    # break other packages using the cache if that directory is
6191    # removed, or if the value is a relative name.
6192    MKDIR_P="$ac_install_sh -d"
6193  fi
6194fi
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6196$as_echo "$MKDIR_P" >&6; }
6197
6198
6199ac_ext=c
6200ac_cpp='$CPP $CPPFLAGS'
6201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204if test -n "$ac_tool_prefix"; then
6205  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6206set dummy ${ac_tool_prefix}gcc; ac_word=$2
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208$as_echo_n "checking for $ac_word... " >&6; }
6209if ${ac_cv_prog_CC+:} false; then :
6210  $as_echo_n "(cached) " >&6
6211else
6212  if test -n "$CC"; then
6213  ac_cv_prog_CC="$CC" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218  IFS=$as_save_IFS
6219  test -z "$as_dir" && as_dir=.
6220    for ac_exec_ext in '' $ac_executable_extensions; do
6221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6222    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6224    break 2
6225  fi
6226done
6227  done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232CC=$ac_cv_prog_CC
6233if test -n "$CC"; then
6234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6235$as_echo "$CC" >&6; }
6236else
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238$as_echo "no" >&6; }
6239fi
6240
6241
6242fi
6243if test -z "$ac_cv_prog_CC"; then
6244  ac_ct_CC=$CC
6245  # Extract the first word of "gcc", so it can be a program name with args.
6246set dummy gcc; ac_word=$2
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if ${ac_cv_prog_ac_ct_CC+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  if test -n "$ac_ct_CC"; then
6253  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258  IFS=$as_save_IFS
6259  test -z "$as_dir" && as_dir=.
6260    for ac_exec_ext in '' $ac_executable_extensions; do
6261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262    ac_cv_prog_ac_ct_CC="gcc"
6263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264    break 2
6265  fi
6266done
6267  done
6268IFS=$as_save_IFS
6269
6270fi
6271fi
6272ac_ct_CC=$ac_cv_prog_ac_ct_CC
6273if test -n "$ac_ct_CC"; then
6274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6275$as_echo "$ac_ct_CC" >&6; }
6276else
6277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278$as_echo "no" >&6; }
6279fi
6280
6281  if test "x$ac_ct_CC" = x; then
6282    CC=""
6283  else
6284    case $cross_compiling:$ac_tool_warned in
6285yes:)
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288ac_tool_warned=yes ;;
6289esac
6290    CC=$ac_ct_CC
6291  fi
6292else
6293  CC="$ac_cv_prog_CC"
6294fi
6295
6296if test -z "$CC"; then
6297          if test -n "$ac_tool_prefix"; then
6298    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6299set dummy ${ac_tool_prefix}cc; ac_word=$2
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301$as_echo_n "checking for $ac_word... " >&6; }
6302if ${ac_cv_prog_CC+:} false; then :
6303  $as_echo_n "(cached) " >&6
6304else
6305  if test -n "$CC"; then
6306  ac_cv_prog_CC="$CC" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311  IFS=$as_save_IFS
6312  test -z "$as_dir" && as_dir=.
6313    for ac_exec_ext in '' $ac_executable_extensions; do
6314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315    ac_cv_prog_CC="${ac_tool_prefix}cc"
6316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317    break 2
6318  fi
6319done
6320  done
6321IFS=$as_save_IFS
6322
6323fi
6324fi
6325CC=$ac_cv_prog_CC
6326if test -n "$CC"; then
6327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6328$as_echo "$CC" >&6; }
6329else
6330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331$as_echo "no" >&6; }
6332fi
6333
6334
6335  fi
6336fi
6337if test -z "$CC"; then
6338  # Extract the first word of "cc", so it can be a program name with args.
6339set dummy cc; ac_word=$2
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341$as_echo_n "checking for $ac_word... " >&6; }
6342if ${ac_cv_prog_CC+:} false; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  if test -n "$CC"; then
6346  ac_cv_prog_CC="$CC" # Let the user override the test.
6347else
6348  ac_prog_rejected=no
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352  IFS=$as_save_IFS
6353  test -z "$as_dir" && as_dir=.
6354    for ac_exec_ext in '' $ac_executable_extensions; do
6355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6357       ac_prog_rejected=yes
6358       continue
6359     fi
6360    ac_cv_prog_CC="cc"
6361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362    break 2
6363  fi
6364done
6365  done
6366IFS=$as_save_IFS
6367
6368if test $ac_prog_rejected = yes; then
6369  # We found a bogon in the path, so make sure we never use it.
6370  set dummy $ac_cv_prog_CC
6371  shift
6372  if test $# != 0; then
6373    # We chose a different compiler from the bogus one.
6374    # However, it has the same basename, so the bogon will be chosen
6375    # first if we set CC to just the basename; use the full file name.
6376    shift
6377    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6378  fi
6379fi
6380fi
6381fi
6382CC=$ac_cv_prog_CC
6383if test -n "$CC"; then
6384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6385$as_echo "$CC" >&6; }
6386else
6387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388$as_echo "no" >&6; }
6389fi
6390
6391
6392fi
6393if test -z "$CC"; then
6394  if test -n "$ac_tool_prefix"; then
6395  for ac_prog in cl.exe
6396  do
6397    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400$as_echo_n "checking for $ac_word... " >&6; }
6401if ${ac_cv_prog_CC+:} false; then :
6402  $as_echo_n "(cached) " >&6
6403else
6404  if test -n "$CC"; then
6405  ac_cv_prog_CC="$CC" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410  IFS=$as_save_IFS
6411  test -z "$as_dir" && as_dir=.
6412    for ac_exec_ext in '' $ac_executable_extensions; do
6413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416    break 2
6417  fi
6418done
6419  done
6420IFS=$as_save_IFS
6421
6422fi
6423fi
6424CC=$ac_cv_prog_CC
6425if test -n "$CC"; then
6426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6427$as_echo "$CC" >&6; }
6428else
6429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430$as_echo "no" >&6; }
6431fi
6432
6433
6434    test -n "$CC" && break
6435  done
6436fi
6437if test -z "$CC"; then
6438  ac_ct_CC=$CC
6439  for ac_prog in cl.exe
6440do
6441  # Extract the first word of "$ac_prog", so it can be a program name with args.
6442set dummy $ac_prog; ac_word=$2
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444$as_echo_n "checking for $ac_word... " >&6; }
6445if ${ac_cv_prog_ac_ct_CC+:} false; then :
6446  $as_echo_n "(cached) " >&6
6447else
6448  if test -n "$ac_ct_CC"; then
6449  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6450else
6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452for as_dir in $PATH
6453do
6454  IFS=$as_save_IFS
6455  test -z "$as_dir" && as_dir=.
6456    for ac_exec_ext in '' $ac_executable_extensions; do
6457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458    ac_cv_prog_ac_ct_CC="$ac_prog"
6459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460    break 2
6461  fi
6462done
6463  done
6464IFS=$as_save_IFS
6465
6466fi
6467fi
6468ac_ct_CC=$ac_cv_prog_ac_ct_CC
6469if test -n "$ac_ct_CC"; then
6470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6471$as_echo "$ac_ct_CC" >&6; }
6472else
6473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474$as_echo "no" >&6; }
6475fi
6476
6477
6478  test -n "$ac_ct_CC" && break
6479done
6480
6481  if test "x$ac_ct_CC" = x; then
6482    CC=""
6483  else
6484    case $cross_compiling:$ac_tool_warned in
6485yes:)
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488ac_tool_warned=yes ;;
6489esac
6490    CC=$ac_ct_CC
6491  fi
6492fi
6493
6494fi
6495
6496
6497test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6499as_fn_error $? "no acceptable C compiler found in \$PATH
6500See \`config.log' for more details" "$LINENO" 5; }
6501
6502# Provide some information about the compiler.
6503$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6504set X $ac_compile
6505ac_compiler=$2
6506for ac_option in --version -v -V -qversion; do
6507  { { ac_try="$ac_compiler $ac_option >&5"
6508case "(($ac_try" in
6509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510  *) ac_try_echo=$ac_try;;
6511esac
6512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6513$as_echo "$ac_try_echo"; } >&5
6514  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6515  ac_status=$?
6516  if test -s conftest.err; then
6517    sed '10a\
6518... rest of stderr output deleted ...
6519         10q' conftest.err >conftest.er1
6520    cat conftest.er1 >&5
6521  fi
6522  rm -f conftest.er1 conftest.err
6523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524  test $ac_status = 0; }
6525done
6526
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6528$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6529if ${ac_cv_c_compiler_gnu+:} false; then :
6530  $as_echo_n "(cached) " >&6
6531else
6532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533/* end confdefs.h.  */
6534
6535int
6536main ()
6537{
6538#ifndef __GNUC__
6539       choke me
6540#endif
6541
6542  ;
6543  return 0;
6544}
6545_ACEOF
6546if ac_fn_c_try_compile "$LINENO"; then :
6547  ac_compiler_gnu=yes
6548else
6549  ac_compiler_gnu=no
6550fi
6551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552ac_cv_c_compiler_gnu=$ac_compiler_gnu
6553
6554fi
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6556$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6557if test $ac_compiler_gnu = yes; then
6558  GCC=yes
6559else
6560  GCC=
6561fi
6562ac_test_CFLAGS=${CFLAGS+set}
6563ac_save_CFLAGS=$CFLAGS
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6565$as_echo_n "checking whether $CC accepts -g... " >&6; }
6566if ${ac_cv_prog_cc_g+:} false; then :
6567  $as_echo_n "(cached) " >&6
6568else
6569  ac_save_c_werror_flag=$ac_c_werror_flag
6570   ac_c_werror_flag=yes
6571   ac_cv_prog_cc_g=no
6572   CFLAGS="-g"
6573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h.  */
6575
6576int
6577main ()
6578{
6579
6580  ;
6581  return 0;
6582}
6583_ACEOF
6584if ac_fn_c_try_compile "$LINENO"; then :
6585  ac_cv_prog_cc_g=yes
6586else
6587  CFLAGS=""
6588      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590
6591int
6592main ()
6593{
6594
6595  ;
6596  return 0;
6597}
6598_ACEOF
6599if ac_fn_c_try_compile "$LINENO"; then :
6600
6601else
6602  ac_c_werror_flag=$ac_save_c_werror_flag
6603         CFLAGS="-g"
6604         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605/* end confdefs.h.  */
6606
6607int
6608main ()
6609{
6610
6611  ;
6612  return 0;
6613}
6614_ACEOF
6615if ac_fn_c_try_compile "$LINENO"; then :
6616  ac_cv_prog_cc_g=yes
6617fi
6618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619fi
6620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6621fi
6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623   ac_c_werror_flag=$ac_save_c_werror_flag
6624fi
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6626$as_echo "$ac_cv_prog_cc_g" >&6; }
6627if test "$ac_test_CFLAGS" = set; then
6628  CFLAGS=$ac_save_CFLAGS
6629elif test $ac_cv_prog_cc_g = yes; then
6630  if test "$GCC" = yes; then
6631    CFLAGS="-g -O2"
6632  else
6633    CFLAGS="-g"
6634  fi
6635else
6636  if test "$GCC" = yes; then
6637    CFLAGS="-O2"
6638  else
6639    CFLAGS=
6640  fi
6641fi
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6643$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6644if ${ac_cv_prog_cc_c89+:} false; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647  ac_cv_prog_cc_c89=no
6648ac_save_CC=$CC
6649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650/* end confdefs.h.  */
6651#include <stdarg.h>
6652#include <stdio.h>
6653struct stat;
6654/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6655struct buf { int x; };
6656FILE * (*rcsopen) (struct buf *, struct stat *, int);
6657static char *e (p, i)
6658     char **p;
6659     int i;
6660{
6661  return p[i];
6662}
6663static char *f (char * (*g) (char **, int), char **p, ...)
6664{
6665  char *s;
6666  va_list v;
6667  va_start (v,p);
6668  s = g (p, va_arg (v,int));
6669  va_end (v);
6670  return s;
6671}
6672
6673/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6674   function prototypes and stuff, but not '\xHH' hex character constants.
6675   These don't provoke an error unfortunately, instead are silently treated
6676   as 'x'.  The following induces an error, until -std is added to get
6677   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6678   array size at least.  It's necessary to write '\x00'==0 to get something
6679   that's true only with -std.  */
6680int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6681
6682/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6683   inside strings and character constants.  */
6684#define FOO(x) 'x'
6685int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6686
6687int test (int i, double x);
6688struct s1 {int (*f) (int a);};
6689struct s2 {int (*f) (double a);};
6690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6691int argc;
6692char **argv;
6693int
6694main ()
6695{
6696return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6702        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6703do
6704  CC="$ac_save_CC $ac_arg"
6705  if ac_fn_c_try_compile "$LINENO"; then :
6706  ac_cv_prog_cc_c89=$ac_arg
6707fi
6708rm -f core conftest.err conftest.$ac_objext
6709  test "x$ac_cv_prog_cc_c89" != "xno" && break
6710done
6711rm -f conftest.$ac_ext
6712CC=$ac_save_CC
6713
6714fi
6715# AC_CACHE_VAL
6716case "x$ac_cv_prog_cc_c89" in
6717  x)
6718    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6719$as_echo "none needed" >&6; } ;;
6720  xno)
6721    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6722$as_echo "unsupported" >&6; } ;;
6723  *)
6724    CC="$CC $ac_cv_prog_cc_c89"
6725    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6726$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6727esac
6728if test "x$ac_cv_prog_cc_c89" != xno; then :
6729
6730fi
6731
6732ac_ext=c
6733ac_cpp='$CPP $CPPFLAGS'
6734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6736ac_compiler_gnu=$ac_cv_c_compiler_gnu
6737
6738ac_ext=c
6739ac_cpp='$CPP $CPPFLAGS'
6740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742ac_compiler_gnu=$ac_cv_c_compiler_gnu
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6744$as_echo_n "checking how to run the C preprocessor... " >&6; }
6745# On Suns, sometimes $CPP names a directory.
6746if test -n "$CPP" && test -d "$CPP"; then
6747  CPP=
6748fi
6749if test -z "$CPP"; then
6750  if ${ac_cv_prog_CPP+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753      # Double quotes because CPP needs to be expanded
6754    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6755    do
6756      ac_preproc_ok=false
6757for ac_c_preproc_warn_flag in '' yes
6758do
6759  # Use a header file that comes with gcc, so configuring glibc
6760  # with a fresh cross-compiler works.
6761  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762  # <limits.h> exists even on freestanding compilers.
6763  # On the NeXT, cc -E runs the code through the compiler's parser,
6764  # not just through cpp. "Syntax error" is here to catch this case.
6765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766/* end confdefs.h.  */
6767#ifdef __STDC__
6768# include <limits.h>
6769#else
6770# include <assert.h>
6771#endif
6772                     Syntax error
6773_ACEOF
6774if ac_fn_c_try_cpp "$LINENO"; then :
6775
6776else
6777  # Broken: fails on valid input.
6778continue
6779fi
6780rm -f conftest.err conftest.i conftest.$ac_ext
6781
6782  # OK, works on sane cases.  Now check whether nonexistent headers
6783  # can be detected and how.
6784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h.  */
6786#include <ac_nonexistent.h>
6787_ACEOF
6788if ac_fn_c_try_cpp "$LINENO"; then :
6789  # Broken: success on invalid input.
6790continue
6791else
6792  # Passes both tests.
6793ac_preproc_ok=:
6794break
6795fi
6796rm -f conftest.err conftest.i conftest.$ac_ext
6797
6798done
6799# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6800rm -f conftest.i conftest.err conftest.$ac_ext
6801if $ac_preproc_ok; then :
6802  break
6803fi
6804
6805    done
6806    ac_cv_prog_CPP=$CPP
6807
6808fi
6809  CPP=$ac_cv_prog_CPP
6810else
6811  ac_cv_prog_CPP=$CPP
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6814$as_echo "$CPP" >&6; }
6815ac_preproc_ok=false
6816for ac_c_preproc_warn_flag in '' yes
6817do
6818  # Use a header file that comes with gcc, so configuring glibc
6819  # with a fresh cross-compiler works.
6820  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6821  # <limits.h> exists even on freestanding compilers.
6822  # On the NeXT, cc -E runs the code through the compiler's parser,
6823  # not just through cpp. "Syntax error" is here to catch this case.
6824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h.  */
6826#ifdef __STDC__
6827# include <limits.h>
6828#else
6829# include <assert.h>
6830#endif
6831                     Syntax error
6832_ACEOF
6833if ac_fn_c_try_cpp "$LINENO"; then :
6834
6835else
6836  # Broken: fails on valid input.
6837continue
6838fi
6839rm -f conftest.err conftest.i conftest.$ac_ext
6840
6841  # OK, works on sane cases.  Now check whether nonexistent headers
6842  # can be detected and how.
6843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h.  */
6845#include <ac_nonexistent.h>
6846_ACEOF
6847if ac_fn_c_try_cpp "$LINENO"; then :
6848  # Broken: success on invalid input.
6849continue
6850else
6851  # Passes both tests.
6852ac_preproc_ok=:
6853break
6854fi
6855rm -f conftest.err conftest.i conftest.$ac_ext
6856
6857done
6858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6859rm -f conftest.i conftest.err conftest.$ac_ext
6860if $ac_preproc_ok; then :
6861
6862else
6863  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6865as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6866See \`config.log' for more details" "$LINENO" 5; }
6867fi
6868
6869ac_ext=c
6870ac_cpp='$CPP $CPPFLAGS'
6871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874
6875ac_ext=cpp
6876ac_cpp='$CXXCPP $CPPFLAGS'
6877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6880if test -z "$CXX"; then
6881  if test -n "$CCC"; then
6882    CXX=$CCC
6883  else
6884    if test -n "$ac_tool_prefix"; then
6885  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6886  do
6887    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if ${ac_cv_prog_CXX+:} false; then :
6892  $as_echo_n "(cached) " >&6
6893else
6894  if test -n "$CXX"; then
6895  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900  IFS=$as_save_IFS
6901  test -z "$as_dir" && as_dir=.
6902    for ac_exec_ext in '' $ac_executable_extensions; do
6903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6904    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906    break 2
6907  fi
6908done
6909  done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914CXX=$ac_cv_prog_CXX
6915if test -n "$CXX"; then
6916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6917$as_echo "$CXX" >&6; }
6918else
6919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923
6924    test -n "$CXX" && break
6925  done
6926fi
6927if test -z "$CXX"; then
6928  ac_ct_CXX=$CXX
6929  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6930do
6931  # Extract the first word of "$ac_prog", so it can be a program name with args.
6932set dummy $ac_prog; ac_word=$2
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
6935if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6936  $as_echo_n "(cached) " >&6
6937else
6938  if test -n "$ac_ct_CXX"; then
6939  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944  IFS=$as_save_IFS
6945  test -z "$as_dir" && as_dir=.
6946    for ac_exec_ext in '' $ac_executable_extensions; do
6947  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6948    ac_cv_prog_ac_ct_CXX="$ac_prog"
6949    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950    break 2
6951  fi
6952done
6953  done
6954IFS=$as_save_IFS
6955
6956fi
6957fi
6958ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6959if test -n "$ac_ct_CXX"; then
6960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6961$as_echo "$ac_ct_CXX" >&6; }
6962else
6963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
6965fi
6966
6967
6968  test -n "$ac_ct_CXX" && break
6969done
6970
6971  if test "x$ac_ct_CXX" = x; then
6972    CXX="g++"
6973  else
6974    case $cross_compiling:$ac_tool_warned in
6975yes:)
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978ac_tool_warned=yes ;;
6979esac
6980    CXX=$ac_ct_CXX
6981  fi
6982fi
6983
6984  fi
6985fi
6986# Provide some information about the compiler.
6987$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6988set X $ac_compile
6989ac_compiler=$2
6990for ac_option in --version -v -V -qversion; do
6991  { { ac_try="$ac_compiler $ac_option >&5"
6992case "(($ac_try" in
6993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994  *) ac_try_echo=$ac_try;;
6995esac
6996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6997$as_echo "$ac_try_echo"; } >&5
6998  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6999  ac_status=$?
7000  if test -s conftest.err; then
7001    sed '10a\
7002... rest of stderr output deleted ...
7003         10q' conftest.err >conftest.er1
7004    cat conftest.er1 >&5
7005  fi
7006  rm -f conftest.er1 conftest.err
7007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008  test $ac_status = 0; }
7009done
7010
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7012$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7013if ${ac_cv_cxx_compiler_gnu+:} false; then :
7014  $as_echo_n "(cached) " >&6
7015else
7016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017/* end confdefs.h.  */
7018
7019int
7020main ()
7021{
7022#ifndef __GNUC__
7023       choke me
7024#endif
7025
7026  ;
7027  return 0;
7028}
7029_ACEOF
7030if ac_fn_cxx_try_compile "$LINENO"; then :
7031  ac_compiler_gnu=yes
7032else
7033  ac_compiler_gnu=no
7034fi
7035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7037
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7040$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7041if test $ac_compiler_gnu = yes; then
7042  GXX=yes
7043else
7044  GXX=
7045fi
7046ac_test_CXXFLAGS=${CXXFLAGS+set}
7047ac_save_CXXFLAGS=$CXXFLAGS
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7049$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7050if ${ac_cv_prog_cxx_g+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7054   ac_cxx_werror_flag=yes
7055   ac_cv_prog_cxx_g=no
7056   CXXFLAGS="-g"
7057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h.  */
7059
7060int
7061main ()
7062{
7063
7064  ;
7065  return 0;
7066}
7067_ACEOF
7068if ac_fn_cxx_try_compile "$LINENO"; then :
7069  ac_cv_prog_cxx_g=yes
7070else
7071  CXXFLAGS=""
7072      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073/* end confdefs.h.  */
7074
7075int
7076main ()
7077{
7078
7079  ;
7080  return 0;
7081}
7082_ACEOF
7083if ac_fn_cxx_try_compile "$LINENO"; then :
7084
7085else
7086  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7087         CXXFLAGS="-g"
7088         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h.  */
7090
7091int
7092main ()
7093{
7094
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099if ac_fn_cxx_try_compile "$LINENO"; then :
7100  ac_cv_prog_cxx_g=yes
7101fi
7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103fi
7104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7108fi
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7110$as_echo "$ac_cv_prog_cxx_g" >&6; }
7111if test "$ac_test_CXXFLAGS" = set; then
7112  CXXFLAGS=$ac_save_CXXFLAGS
7113elif test $ac_cv_prog_cxx_g = yes; then
7114  if test "$GXX" = yes; then
7115    CXXFLAGS="-g -O2"
7116  else
7117    CXXFLAGS="-g"
7118  fi
7119else
7120  if test "$GXX" = yes; then
7121    CXXFLAGS="-O2"
7122  else
7123    CXXFLAGS=
7124  fi
7125fi
7126ac_ext=c
7127ac_cpp='$CPP $CPPFLAGS'
7128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130ac_compiler_gnu=$ac_cv_c_compiler_gnu
7131
7132ac_ext=cpp
7133ac_cpp='$CXXCPP $CPPFLAGS'
7134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7138$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7139if test -z "$CXXCPP"; then
7140  if ${ac_cv_prog_CXXCPP+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143      # Double quotes because CXXCPP needs to be expanded
7144    for CXXCPP in "$CXX -E" "/lib/cpp"
7145    do
7146      ac_preproc_ok=false
7147for ac_cxx_preproc_warn_flag in '' yes
7148do
7149  # Use a header file that comes with gcc, so configuring glibc
7150  # with a fresh cross-compiler works.
7151  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152  # <limits.h> exists even on freestanding compilers.
7153  # On the NeXT, cc -E runs the code through the compiler's parser,
7154  # not just through cpp. "Syntax error" is here to catch this case.
7155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156/* end confdefs.h.  */
7157#ifdef __STDC__
7158# include <limits.h>
7159#else
7160# include <assert.h>
7161#endif
7162                     Syntax error
7163_ACEOF
7164if ac_fn_cxx_try_cpp "$LINENO"; then :
7165
7166else
7167  # Broken: fails on valid input.
7168continue
7169fi
7170rm -f conftest.err conftest.i conftest.$ac_ext
7171
7172  # OK, works on sane cases.  Now check whether nonexistent headers
7173  # can be detected and how.
7174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175/* end confdefs.h.  */
7176#include <ac_nonexistent.h>
7177_ACEOF
7178if ac_fn_cxx_try_cpp "$LINENO"; then :
7179  # Broken: success on invalid input.
7180continue
7181else
7182  # Passes both tests.
7183ac_preproc_ok=:
7184break
7185fi
7186rm -f conftest.err conftest.i conftest.$ac_ext
7187
7188done
7189# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7190rm -f conftest.i conftest.err conftest.$ac_ext
7191if $ac_preproc_ok; then :
7192  break
7193fi
7194
7195    done
7196    ac_cv_prog_CXXCPP=$CXXCPP
7197
7198fi
7199  CXXCPP=$ac_cv_prog_CXXCPP
7200else
7201  ac_cv_prog_CXXCPP=$CXXCPP
7202fi
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7204$as_echo "$CXXCPP" >&6; }
7205ac_preproc_ok=false
7206for ac_cxx_preproc_warn_flag in '' yes
7207do
7208  # Use a header file that comes with gcc, so configuring glibc
7209  # with a fresh cross-compiler works.
7210  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7211  # <limits.h> exists even on freestanding compilers.
7212  # On the NeXT, cc -E runs the code through the compiler's parser,
7213  # not just through cpp. "Syntax error" is here to catch this case.
7214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215/* end confdefs.h.  */
7216#ifdef __STDC__
7217# include <limits.h>
7218#else
7219# include <assert.h>
7220#endif
7221                     Syntax error
7222_ACEOF
7223if ac_fn_cxx_try_cpp "$LINENO"; then :
7224
7225else
7226  # Broken: fails on valid input.
7227continue
7228fi
7229rm -f conftest.err conftest.i conftest.$ac_ext
7230
7231  # OK, works on sane cases.  Now check whether nonexistent headers
7232  # can be detected and how.
7233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235#include <ac_nonexistent.h>
7236_ACEOF
7237if ac_fn_cxx_try_cpp "$LINENO"; then :
7238  # Broken: success on invalid input.
7239continue
7240else
7241  # Passes both tests.
7242ac_preproc_ok=:
7243break
7244fi
7245rm -f conftest.err conftest.i conftest.$ac_ext
7246
7247done
7248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7249rm -f conftest.i conftest.err conftest.$ac_ext
7250if $ac_preproc_ok; then :
7251
7252else
7253  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7255as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
7256See \`config.log' for more details" "$LINENO" 5; }
7257fi
7258
7259ac_ext=c
7260ac_cpp='$CPP $CPPFLAGS'
7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264
7265ac_ext=cpp
7266ac_cpp='$CXXCPP $CPPFLAGS'
7267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7270if test -z "$CXX"; then
7271  if test -n "$CCC"; then
7272    CXX=$CCC
7273  else
7274    if test -n "$ac_tool_prefix"; then
7275  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7276  do
7277    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280$as_echo_n "checking for $ac_word... " >&6; }
7281if ${ac_cv_prog_CXX+:} false; then :
7282  $as_echo_n "(cached) " >&6
7283else
7284  if test -n "$CXX"; then
7285  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7286else
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290  IFS=$as_save_IFS
7291  test -z "$as_dir" && as_dir=.
7292    for ac_exec_ext in '' $ac_executable_extensions; do
7293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296    break 2
7297  fi
7298done
7299  done
7300IFS=$as_save_IFS
7301
7302fi
7303fi
7304CXX=$ac_cv_prog_CXX
7305if test -n "$CXX"; then
7306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7307$as_echo "$CXX" >&6; }
7308else
7309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310$as_echo "no" >&6; }
7311fi
7312
7313
7314    test -n "$CXX" && break
7315  done
7316fi
7317if test -z "$CXX"; then
7318  ac_ct_CXX=$CXX
7319  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7320do
7321  # Extract the first word of "$ac_prog", so it can be a program name with args.
7322set dummy $ac_prog; ac_word=$2
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324$as_echo_n "checking for $ac_word... " >&6; }
7325if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  if test -n "$ac_ct_CXX"; then
7329  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336    for ac_exec_ext in '' $ac_executable_extensions; do
7337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338    ac_cv_prog_ac_ct_CXX="$ac_prog"
7339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343  done
7344IFS=$as_save_IFS
7345
7346fi
7347fi
7348ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7349if test -n "$ac_ct_CXX"; then
7350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7351$as_echo "$ac_ct_CXX" >&6; }
7352else
7353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354$as_echo "no" >&6; }
7355fi
7356
7357
7358  test -n "$ac_ct_CXX" && break
7359done
7360
7361  if test "x$ac_ct_CXX" = x; then
7362    CXX="g++"
7363  else
7364    case $cross_compiling:$ac_tool_warned in
7365yes:)
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7368ac_tool_warned=yes ;;
7369esac
7370    CXX=$ac_ct_CXX
7371  fi
7372fi
7373
7374  fi
7375fi
7376# Provide some information about the compiler.
7377$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7378set X $ac_compile
7379ac_compiler=$2
7380for ac_option in --version -v -V -qversion; do
7381  { { ac_try="$ac_compiler $ac_option >&5"
7382case "(($ac_try" in
7383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384  *) ac_try_echo=$ac_try;;
7385esac
7386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7387$as_echo "$ac_try_echo"; } >&5
7388  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7389  ac_status=$?
7390  if test -s conftest.err; then
7391    sed '10a\
7392... rest of stderr output deleted ...
7393         10q' conftest.err >conftest.er1
7394    cat conftest.er1 >&5
7395  fi
7396  rm -f conftest.er1 conftest.err
7397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398  test $ac_status = 0; }
7399done
7400
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7402$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7403if ${ac_cv_cxx_compiler_gnu+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h.  */
7408
7409int
7410main ()
7411{
7412#ifndef __GNUC__
7413       choke me
7414#endif
7415
7416  ;
7417  return 0;
7418}
7419_ACEOF
7420if ac_fn_cxx_try_compile "$LINENO"; then :
7421  ac_compiler_gnu=yes
7422else
7423  ac_compiler_gnu=no
7424fi
7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7427
7428fi
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7430$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7431if test $ac_compiler_gnu = yes; then
7432  GXX=yes
7433else
7434  GXX=
7435fi
7436ac_test_CXXFLAGS=${CXXFLAGS+set}
7437ac_save_CXXFLAGS=$CXXFLAGS
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7439$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7440if ${ac_cv_prog_cxx_g+:} false; then :
7441  $as_echo_n "(cached) " >&6
7442else
7443  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7444   ac_cxx_werror_flag=yes
7445   ac_cv_prog_cxx_g=no
7446   CXXFLAGS="-g"
7447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449
7450int
7451main ()
7452{
7453
7454  ;
7455  return 0;
7456}
7457_ACEOF
7458if ac_fn_cxx_try_compile "$LINENO"; then :
7459  ac_cv_prog_cxx_g=yes
7460else
7461  CXXFLAGS=""
7462      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h.  */
7464
7465int
7466main ()
7467{
7468
7469  ;
7470  return 0;
7471}
7472_ACEOF
7473if ac_fn_cxx_try_compile "$LINENO"; then :
7474
7475else
7476  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7477         CXXFLAGS="-g"
7478         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h.  */
7480
7481int
7482main ()
7483{
7484
7485  ;
7486  return 0;
7487}
7488_ACEOF
7489if ac_fn_cxx_try_compile "$LINENO"; then :
7490  ac_cv_prog_cxx_g=yes
7491fi
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493fi
7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495fi
7496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7500$as_echo "$ac_cv_prog_cxx_g" >&6; }
7501if test "$ac_test_CXXFLAGS" = set; then
7502  CXXFLAGS=$ac_save_CXXFLAGS
7503elif test $ac_cv_prog_cxx_g = yes; then
7504  if test "$GXX" = yes; then
7505    CXXFLAGS="-g -O2"
7506  else
7507    CXXFLAGS="-g"
7508  fi
7509else
7510  if test "$GXX" = yes; then
7511    CXXFLAGS="-O2"
7512  else
7513    CXXFLAGS=
7514  fi
7515fi
7516ac_ext=c
7517ac_cpp='$CPP $CPPFLAGS'
7518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521
7522ac_ext=cpp
7523ac_cpp='$CXXCPP $CPPFLAGS'
7524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7527
7528
7529
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7531$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7532if ${ac_cv_c_bigendian+:} false; then :
7533  $as_echo_n "(cached) " >&6
7534else
7535  ac_cv_c_bigendian=unknown
7536    # See if we're dealing with a universal compiler.
7537    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h.  */
7539#ifndef __APPLE_CC__
7540               not a universal capable compiler
7541             #endif
7542             typedef int dummy;
7543
7544_ACEOF
7545if ac_fn_cxx_try_compile "$LINENO"; then :
7546
7547        # Check for potential -arch flags.  It is not universal unless
7548        # there are at least two -arch flags with different values.
7549        ac_arch=
7550        ac_prev=
7551        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7552         if test -n "$ac_prev"; then
7553           case $ac_word in
7554             i?86 | x86_64 | ppc | ppc64)
7555               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7556                 ac_arch=$ac_word
7557               else
7558                 ac_cv_c_bigendian=universal
7559                 break
7560               fi
7561               ;;
7562           esac
7563           ac_prev=
7564         elif test "x$ac_word" = "x-arch"; then
7565           ac_prev=arch
7566         fi
7567       done
7568fi
7569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7570    if test $ac_cv_c_bigendian = unknown; then
7571      # See if sys/param.h defines the BYTE_ORDER macro.
7572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h.  */
7574#include <sys/types.h>
7575             #include <sys/param.h>
7576
7577int
7578main ()
7579{
7580#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7581                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7582                     && LITTLE_ENDIAN)
7583              bogus endian macros
7584             #endif
7585
7586  ;
7587  return 0;
7588}
7589_ACEOF
7590if ac_fn_cxx_try_compile "$LINENO"; then :
7591  # It does; now see whether it defined to BIG_ENDIAN or not.
7592         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594#include <sys/types.h>
7595                #include <sys/param.h>
7596
7597int
7598main ()
7599{
7600#if BYTE_ORDER != BIG_ENDIAN
7601                 not big endian
7602                #endif
7603
7604  ;
7605  return 0;
7606}
7607_ACEOF
7608if ac_fn_cxx_try_compile "$LINENO"; then :
7609  ac_cv_c_bigendian=yes
7610else
7611  ac_cv_c_bigendian=no
7612fi
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616    fi
7617    if test $ac_cv_c_bigendian = unknown; then
7618      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7619      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620/* end confdefs.h.  */
7621#include <limits.h>
7622
7623int
7624main ()
7625{
7626#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7627              bogus endian macros
7628             #endif
7629
7630  ;
7631  return 0;
7632}
7633_ACEOF
7634if ac_fn_cxx_try_compile "$LINENO"; then :
7635  # It does; now see whether it defined to _BIG_ENDIAN or not.
7636         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h.  */
7638#include <limits.h>
7639
7640int
7641main ()
7642{
7643#ifndef _BIG_ENDIAN
7644                 not big endian
7645                #endif
7646
7647  ;
7648  return 0;
7649}
7650_ACEOF
7651if ac_fn_cxx_try_compile "$LINENO"; then :
7652  ac_cv_c_bigendian=yes
7653else
7654  ac_cv_c_bigendian=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657fi
7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659    fi
7660    if test $ac_cv_c_bigendian = unknown; then
7661      # Compile a test program.
7662      if test "$cross_compiling" = yes; then :
7663  # Try to guess by grepping values from an object file.
7664         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665/* end confdefs.h.  */
7666short int ascii_mm[] =
7667                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7668                short int ascii_ii[] =
7669                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7670                int use_ascii (int i) {
7671                  return ascii_mm[i] + ascii_ii[i];
7672                }
7673                short int ebcdic_ii[] =
7674                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7675                short int ebcdic_mm[] =
7676                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7677                int use_ebcdic (int i) {
7678                  return ebcdic_mm[i] + ebcdic_ii[i];
7679                }
7680                extern int foo;
7681
7682int
7683main ()
7684{
7685return use_ascii (foo) == use_ebcdic (foo);
7686  ;
7687  return 0;
7688}
7689_ACEOF
7690if ac_fn_cxx_try_compile "$LINENO"; then :
7691  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7692              ac_cv_c_bigendian=yes
7693            fi
7694            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7695              if test "$ac_cv_c_bigendian" = unknown; then
7696                ac_cv_c_bigendian=no
7697              else
7698                # finding both strings is unlikely to happen, but who knows?
7699                ac_cv_c_bigendian=unknown
7700              fi
7701            fi
7702fi
7703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704else
7705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706/* end confdefs.h.  */
7707$ac_includes_default
7708int
7709main ()
7710{
7711
7712             /* Are we little or big endian?  From Harbison&Steele.  */
7713             union
7714             {
7715               long int l;
7716               char c[sizeof (long int)];
7717             } u;
7718             u.l = 1;
7719             return u.c[sizeof (long int) - 1] == 1;
7720
7721  ;
7722  return 0;
7723}
7724_ACEOF
7725if ac_fn_cxx_try_run "$LINENO"; then :
7726  ac_cv_c_bigendian=no
7727else
7728  ac_cv_c_bigendian=yes
7729fi
7730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7731  conftest.$ac_objext conftest.beam conftest.$ac_ext
7732fi
7733
7734    fi
7735fi
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7737$as_echo "$ac_cv_c_bigendian" >&6; }
7738 case $ac_cv_c_bigendian in #(
7739   yes)
7740     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7741;; #(
7742   no)
7743      ;; #(
7744   universal)
7745
7746$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7747
7748     ;; #(
7749   *)
7750     as_fn_error $? "unknown endianness
7751 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7752 esac
7753
7754
7755# Save the values as shell variables so that we can substitute them
7756# into bltHash.h for situtations where there's no bltInt.h.
7757
7758LD_RPATH="";
7759
7760#
7761# Need to check for the following dependencies:
7762#       Rappture headers and library (done)
7763#       Tcl headers and library (done)
7764#       GL headers and library
7765#       GLEW header and library
7766#       pthread library
7767#
7768
7769TCL_VERSION="8.4"
7770for dir in \
7771 ${exec_prefix} \
7772 ${exec_prefix}/lib ; do
7773  tclconfig="${dir}/tclConfig.sh"
7774  if test -f "$tclconfig" ; then
7775    . $tclconfig
7776    break
7777  fi
7778done
7779TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
7780
7781if test "x$with_tcllib" != "x" ; then
7782   tclconfig="${with_tcllib}/tclConfig.sh"
7783   if test -f "$tclconfig" ; then
7784    . $tclconfig
7785   fi
7786   TCL_LIB_SPEC="-L${with_tcllib} -ltcl${TCL_VERSION}"
7787fi
7788if test "x$with_tclinclude" != "x" ; then
7789   TCL_INC_SPEC="-I${with_tclinclude}"
7790fi
7791
7792
7793ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glew.h" "ac_cv_header_GL_glew_h" "$ac_includes_default"
7794if test "x$ac_cv_header_GL_glew_h" = xyes; then :
7795
7796fi
7797
7798
7799
7800for ac_header in stdio.h unistd.h stdlib.h string.h sys/types.h
7801do :
7802  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7805  cat >>confdefs.h <<_ACEOF
7806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7807_ACEOF
7808
7809fi
7810
7811done
7812
7813for ac_header in sys/socket.h sys/time.h netinet/in.h arpa/inet.h netdb.h
7814do :
7815  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7816ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7817if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7818  cat >>confdefs.h <<_ACEOF
7819#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7820_ACEOF
7821
7822fi
7823
7824done
7825
7826
7827for ac_func in accept4
7828do :
7829  ac_fn_cxx_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
7830if test "x$ac_cv_func_accept4" = xyes; then :
7831  cat >>confdefs.h <<_ACEOF
7832#define HAVE_ACCEPT4 1
7833_ACEOF
7834
7835fi
7836done
7837
7838for ac_func in mkstemps
7839do :
7840  ac_fn_cxx_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
7841if test "x$ac_cv_func_mkstemps" = xyes; then :
7842  cat >>confdefs.h <<_ACEOF
7843#define HAVE_MKSTEMPS 1
7844_ACEOF
7845
7846fi
7847done
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859ac_config_files="$ac_config_files Makefile"
7860
7861cat >confcache <<\_ACEOF
7862# This file is a shell script that caches the results of configure
7863# tests run on this system so they can be shared between configure
7864# scripts and configure runs, see configure's option --config-cache.
7865# It is not useful on other systems.  If it contains results you don't
7866# want to keep, you may remove or edit it.
7867#
7868# config.status only pays attention to the cache file if you give it
7869# the --recheck option to rerun configure.
7870#
7871# `ac_cv_env_foo' variables (set or unset) will be overridden when
7872# loading this file, other *unset* `ac_cv_foo' will be assigned the
7873# following values.
7874
7875_ACEOF
7876
7877# The following way of writing the cache mishandles newlines in values,
7878# but we know of no workaround that is simple, portable, and efficient.
7879# So, we kill variables containing newlines.
7880# Ultrix sh set writes to stderr and can't be redirected directly,
7881# and sets the high bit in the cache file unless we assign to the vars.
7882(
7883  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7884    eval ac_val=\$$ac_var
7885    case $ac_val in #(
7886    *${as_nl}*)
7887      case $ac_var in #(
7888      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7889$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7890      esac
7891      case $ac_var in #(
7892      _ | IFS | as_nl) ;; #(
7893      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7894      *) { eval $ac_var=; unset $ac_var;} ;;
7895      esac ;;
7896    esac
7897  done
7898
7899  (set) 2>&1 |
7900    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7901    *${as_nl}ac_space=\ *)
7902      # `set' does not quote correctly, so add quotes: double-quote
7903      # substitution turns \\\\ into \\, and sed turns \\ into \.
7904      sed -n \
7905        "s/'/'\\\\''/g;
7906          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7907      ;; #(
7908    *)
7909      # `set' quotes correctly as required by POSIX, so do not add quotes.
7910      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7911      ;;
7912    esac |
7913    sort
7914) |
7915  sed '
7916     /^ac_cv_env_/b end
7917     t clear
7918     :clear
7919     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7920     t end
7921     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7922     :end' >>confcache
7923if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7924  if test -w "$cache_file"; then
7925    if test "x$cache_file" != "x/dev/null"; then
7926      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7927$as_echo "$as_me: updating cache $cache_file" >&6;}
7928      if test ! -f "$cache_file" || test -h "$cache_file"; then
7929        cat confcache >"$cache_file"
7930      else
7931        case $cache_file in #(
7932        */* | ?:*)
7933          mv -f confcache "$cache_file"$$ &&
7934          mv -f "$cache_file"$$ "$cache_file" ;; #(
7935        *)
7936          mv -f confcache "$cache_file" ;;
7937        esac
7938      fi
7939    fi
7940  else
7941    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7942$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7943  fi
7944fi
7945rm -f confcache
7946
7947test "x$prefix" = xNONE && prefix=$ac_default_prefix
7948# Let make expand exec_prefix.
7949test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7950
7951# Transform confdefs.h into DEFS.
7952# Protect against shell expansion while executing Makefile rules.
7953# Protect against Makefile macro expansion.
7954#
7955# If the first sed substitution is executed (which looks for macros that
7956# take arguments), then branch to the quote section.  Otherwise,
7957# look for a macro that doesn't take arguments.
7958ac_script='
7959:mline
7960/\\$/{
7961 N
7962 s,\\\n,,
7963 b mline
7964}
7965t clear
7966:clear
7967s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
7968t quote
7969s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
7970t quote
7971b any
7972:quote
7973s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7974s/\[/\\&/g
7975s/\]/\\&/g
7976s/\$/$$/g
7977H
7978:any
7979${
7980        g
7981        s/^\n//
7982        s/\n/ /g
7983        p
7984}
7985'
7986DEFS=`sed -n "$ac_script" confdefs.h`
7987
7988
7989ac_libobjs=
7990ac_ltlibobjs=
7991U=
7992for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7993  # 1. Remove the extension, and $U if already installed.
7994  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7995  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7996  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7997  #    will be set to the directory where LIBOBJS objects are built.
7998  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7999  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8000done
8001LIBOBJS=$ac_libobjs
8002
8003LTLIBOBJS=$ac_ltlibobjs
8004
8005
8006
8007
8008: "${CONFIG_STATUS=./config.status}"
8009ac_write_fail=0
8010ac_clean_files_save=$ac_clean_files
8011ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8013$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8014as_write_fail=0
8015cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8016#! $SHELL
8017# Generated by $as_me.
8018# Run this file to recreate the current configuration.
8019# Compiler output produced by configure, useful for debugging
8020# configure, is in config.log if it exists.
8021
8022debug=false
8023ac_cs_recheck=false
8024ac_cs_silent=false
8025
8026SHELL=\${CONFIG_SHELL-$SHELL}
8027export SHELL
8028_ASEOF
8029cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8030## -------------------- ##
8031## M4sh Initialization. ##
8032## -------------------- ##
8033
8034# Be more Bourne compatible
8035DUALCASE=1; export DUALCASE # for MKS sh
8036if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8037  emulate sh
8038  NULLCMD=:
8039  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8040  # is contrary to our usage.  Disable this feature.
8041  alias -g '${1+"$@"}'='"$@"'
8042  setopt NO_GLOB_SUBST
8043else
8044  case `(set -o) 2>/dev/null` in #(
8045  *posix*) :
8046    set -o posix ;; #(
8047  *) :
8048     ;;
8049esac
8050fi
8051
8052
8053as_nl='
8054'
8055export as_nl
8056# Printing a long string crashes Solaris 7 /usr/bin/printf.
8057as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8058as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8059as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8060# Prefer a ksh shell builtin over an external printf program on Solaris,
8061# but without wasting forks for bash or zsh.
8062if test -z "$BASH_VERSION$ZSH_VERSION" \
8063    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8064  as_echo='print -r --'
8065  as_echo_n='print -rn --'
8066elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8067  as_echo='printf %s\n'
8068  as_echo_n='printf %s'
8069else
8070  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8071    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8072    as_echo_n='/usr/ucb/echo -n'
8073  else
8074    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8075    as_echo_n_body='eval
8076      arg=$1;
8077      case $arg in #(
8078      *"$as_nl"*)
8079        expr "X$arg" : "X\\(.*\\)$as_nl";
8080        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8081      esac;
8082      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8083    '
8084    export as_echo_n_body
8085    as_echo_n='sh -c $as_echo_n_body as_echo'
8086  fi
8087  export as_echo_body
8088  as_echo='sh -c $as_echo_body as_echo'
8089fi
8090
8091# The user is always right.
8092if test "${PATH_SEPARATOR+set}" != set; then
8093  PATH_SEPARATOR=:
8094  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8095    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8096      PATH_SEPARATOR=';'
8097  }
8098fi
8099
8100
8101# IFS
8102# We need space, tab and new line, in precisely that order.  Quoting is
8103# there to prevent editors from complaining about space-tab.
8104# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8105# splitting by setting IFS to empty value.)
8106IFS=" ""        $as_nl"
8107
8108# Find who we are.  Look in the path if we contain no directory separator.
8109as_myself=
8110case $0 in #((
8111  *[\\/]* ) as_myself=$0 ;;
8112  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113for as_dir in $PATH
8114do
8115  IFS=$as_save_IFS
8116  test -z "$as_dir" && as_dir=.
8117    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8118  done
8119IFS=$as_save_IFS
8120
8121     ;;
8122esac
8123# We did not find ourselves, most probably we were run as `sh COMMAND'
8124# in which case we are not to be found in the path.
8125if test "x$as_myself" = x; then
8126  as_myself=$0
8127fi
8128if test ! -f "$as_myself"; then
8129  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8130  exit 1
8131fi
8132
8133# Unset variables that we do not need and which cause bugs (e.g. in
8134# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8135# suppresses any "Segmentation fault" message there.  '((' could
8136# trigger a bug in pdksh 5.2.14.
8137for as_var in BASH_ENV ENV MAIL MAILPATH
8138do eval test x\${$as_var+set} = xset \
8139  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8140done
8141PS1='$ '
8142PS2='> '
8143PS4='+ '
8144
8145# NLS nuisances.
8146LC_ALL=C
8147export LC_ALL
8148LANGUAGE=C
8149export LANGUAGE
8150
8151# CDPATH.
8152(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8153
8154
8155# as_fn_error STATUS ERROR [LINENO LOG_FD]
8156# ----------------------------------------
8157# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8158# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8159# script with STATUS, using 1 if that was 0.
8160as_fn_error ()
8161{
8162  as_status=$1; test $as_status -eq 0 && as_status=1
8163  if test "$4"; then
8164    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8165    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8166  fi
8167  $as_echo "$as_me: error: $2" >&2
8168  as_fn_exit $as_status
8169} # as_fn_error
8170
8171
8172# as_fn_set_status STATUS
8173# -----------------------
8174# Set $? to STATUS, without forking.
8175as_fn_set_status ()
8176{
8177  return $1
8178} # as_fn_set_status
8179
8180# as_fn_exit STATUS
8181# -----------------
8182# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8183as_fn_exit ()
8184{
8185  set +e
8186  as_fn_set_status $1
8187  exit $1
8188} # as_fn_exit
8189
8190# as_fn_unset VAR
8191# ---------------
8192# Portably unset VAR.
8193as_fn_unset ()
8194{
8195  { eval $1=; unset $1;}
8196}
8197as_unset=as_fn_unset
8198# as_fn_append VAR VALUE
8199# ----------------------
8200# Append the text in VALUE to the end of the definition contained in VAR. Take
8201# advantage of any shell optimizations that allow amortized linear growth over
8202# repeated appends, instead of the typical quadratic growth present in naive
8203# implementations.
8204if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8205  eval 'as_fn_append ()
8206  {
8207    eval $1+=\$2
8208  }'
8209else
8210  as_fn_append ()
8211  {
8212    eval $1=\$$1\$2
8213  }
8214fi # as_fn_append
8215
8216# as_fn_arith ARG...
8217# ------------------
8218# Perform arithmetic evaluation on the ARGs, and store the result in the
8219# global $as_val. Take advantage of shells that can avoid forks. The arguments
8220# must be portable across $(()) and expr.
8221if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8222  eval 'as_fn_arith ()
8223  {
8224    as_val=$(( $* ))
8225  }'
8226else
8227  as_fn_arith ()
8228  {
8229    as_val=`expr "$@" || test $? -eq 1`
8230  }
8231fi # as_fn_arith
8232
8233
8234if expr a : '\(a\)' >/dev/null 2>&1 &&
8235   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8236  as_expr=expr
8237else
8238  as_expr=false
8239fi
8240
8241if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8242  as_basename=basename
8243else
8244  as_basename=false
8245fi
8246
8247if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8248  as_dirname=dirname
8249else
8250  as_dirname=false
8251fi
8252
8253as_me=`$as_basename -- "$0" ||
8254$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8255         X"$0" : 'X\(//\)$' \| \
8256         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8257$as_echo X/"$0" |
8258    sed '/^.*\/\([^/][^/]*\)\/*$/{
8259            s//\1/
8260            q
8261          }
8262          /^X\/\(\/\/\)$/{
8263            s//\1/
8264            q
8265          }
8266          /^X\/\(\/\).*/{
8267            s//\1/
8268            q
8269          }
8270          s/.*/./; q'`
8271
8272# Avoid depending upon Character Ranges.
8273as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8274as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8275as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8276as_cr_digits='0123456789'
8277as_cr_alnum=$as_cr_Letters$as_cr_digits
8278
8279ECHO_C= ECHO_N= ECHO_T=
8280case `echo -n x` in #(((((
8281-n*)
8282  case `echo 'xy\c'` in
8283  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8284  xy)  ECHO_C='\c';;
8285  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8286       ECHO_T=' ';;
8287  esac;;
8288*)
8289  ECHO_N='-n';;
8290esac
8291
8292rm -f conf$$ conf$$.exe conf$$.file
8293if test -d conf$$.dir; then
8294  rm -f conf$$.dir/conf$$.file
8295else
8296  rm -f conf$$.dir
8297  mkdir conf$$.dir 2>/dev/null
8298fi
8299if (echo >conf$$.file) 2>/dev/null; then
8300  if ln -s conf$$.file conf$$ 2>/dev/null; then
8301    as_ln_s='ln -s'
8302    # ... but there are two gotchas:
8303    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8304    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8305    # In both cases, we have to default to `cp -pR'.
8306    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8307      as_ln_s='cp -pR'
8308  elif ln conf$$.file conf$$ 2>/dev/null; then
8309    as_ln_s=ln
8310  else
8311    as_ln_s='cp -pR'
8312  fi
8313else
8314  as_ln_s='cp -pR'
8315fi
8316rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8317rmdir conf$$.dir 2>/dev/null
8318
8319
8320# as_fn_mkdir_p
8321# -------------
8322# Create "$as_dir" as a directory, including parents if necessary.
8323as_fn_mkdir_p ()
8324{
8325
8326  case $as_dir in #(
8327  -*) as_dir=./$as_dir;;
8328  esac
8329  test -d "$as_dir" || eval $as_mkdir_p || {
8330    as_dirs=
8331    while :; do
8332      case $as_dir in #(
8333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8334      *) as_qdir=$as_dir;;
8335      esac
8336      as_dirs="'$as_qdir' $as_dirs"
8337      as_dir=`$as_dirname -- "$as_dir" ||
8338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8339         X"$as_dir" : 'X\(//\)[^/]' \| \
8340         X"$as_dir" : 'X\(//\)$' \| \
8341         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8342$as_echo X"$as_dir" |
8343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8344            s//\1/
8345            q
8346          }
8347          /^X\(\/\/\)[^/].*/{
8348            s//\1/
8349            q
8350          }
8351          /^X\(\/\/\)$/{
8352            s//\1/
8353            q
8354          }
8355          /^X\(\/\).*/{
8356            s//\1/
8357            q
8358          }
8359          s/.*/./; q'`
8360      test -d "$as_dir" && break
8361    done
8362    test -z "$as_dirs" || eval "mkdir $as_dirs"
8363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8364
8365
8366} # as_fn_mkdir_p
8367if mkdir -p . 2>/dev/null; then
8368  as_mkdir_p='mkdir -p "$as_dir"'
8369else
8370  test -d ./-p && rmdir ./-p
8371  as_mkdir_p=false
8372fi
8373
8374
8375# as_fn_executable_p FILE
8376# -----------------------
8377# Test if FILE is an executable regular file.
8378as_fn_executable_p ()
8379{
8380  test -f "$1" && test -x "$1"
8381} # as_fn_executable_p
8382as_test_x='test -x'
8383as_executable_p=as_fn_executable_p
8384
8385# Sed expression to map a string onto a valid CPP name.
8386as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8387
8388# Sed expression to map a string onto a valid variable name.
8389as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8390
8391
8392exec 6>&1
8393## ----------------------------------- ##
8394## Main body of $CONFIG_STATUS script. ##
8395## ----------------------------------- ##
8396_ASEOF
8397test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8398
8399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8400# Save the log message, to keep $0 and so on meaningful, and to
8401# report actual input values of CONFIG_FILES etc. instead of their
8402# values after options handling.
8403ac_log="
8404This file was extended by pymolproxy $as_me 0.1, which was
8405generated by GNU Autoconf 2.69.  Invocation command line was
8406
8407  CONFIG_FILES    = $CONFIG_FILES
8408  CONFIG_HEADERS  = $CONFIG_HEADERS
8409  CONFIG_LINKS    = $CONFIG_LINKS
8410  CONFIG_COMMANDS = $CONFIG_COMMANDS
8411  $ $0 $@
8412
8413on `(hostname || uname -n) 2>/dev/null | sed 1q`
8414"
8415
8416_ACEOF
8417
8418case $ac_config_files in *"
8419"*) set x $ac_config_files; shift; ac_config_files=$*;;
8420esac
8421
8422
8423
8424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8425# Files that config.status was made for.
8426config_files="$ac_config_files"
8427
8428_ACEOF
8429
8430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8431ac_cs_usage="\
8432\`$as_me' instantiates files and other configuration actions
8433from templates according to the current configuration.  Unless the files
8434and actions are specified as TAGs, all are instantiated by default.
8435
8436Usage: $0 [OPTION]... [TAG]...
8437
8438  -h, --help       print this help, then exit
8439  -V, --version    print version number and configuration settings, then exit
8440      --config     print configuration, then exit
8441  -q, --quiet, --silent
8442                   do not print progress messages
8443  -d, --debug      don't remove temporary files
8444      --recheck    update $as_me by reconfiguring in the same conditions
8445      --file=FILE[:TEMPLATE]
8446                   instantiate the configuration file FILE
8447
8448Configuration files:
8449$config_files
8450
8451Report bugs to <rappture@nanohub.org>."
8452
8453_ACEOF
8454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8455ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8456ac_cs_version="\\
8457pymolproxy config.status 0.1
8458configured by $0, generated by GNU Autoconf 2.69,
8459  with options \\"\$ac_cs_config\\"
8460
8461Copyright (C) 2012 Free Software Foundation, Inc.
8462This config.status script is free software; the Free Software Foundation
8463gives unlimited permission to copy, distribute and modify it."
8464
8465ac_pwd='$ac_pwd'
8466srcdir='$srcdir'
8467INSTALL='$INSTALL'
8468MKDIR_P='$MKDIR_P'
8469test -n "\$AWK" || AWK=awk
8470_ACEOF
8471
8472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8473# The default lists apply if the user does not specify any file.
8474ac_need_defaults=:
8475while test $# != 0
8476do
8477  case $1 in
8478  --*=?*)
8479    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8480    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8481    ac_shift=:
8482    ;;
8483  --*=)
8484    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8485    ac_optarg=
8486    ac_shift=:
8487    ;;
8488  *)
8489    ac_option=$1
8490    ac_optarg=$2
8491    ac_shift=shift
8492    ;;
8493  esac
8494
8495  case $ac_option in
8496  # Handling of the options.
8497  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8498    ac_cs_recheck=: ;;
8499  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8500    $as_echo "$ac_cs_version"; exit ;;
8501  --config | --confi | --conf | --con | --co | --c )
8502    $as_echo "$ac_cs_config"; exit ;;
8503  --debug | --debu | --deb | --de | --d | -d )
8504    debug=: ;;
8505  --file | --fil | --fi | --f )
8506    $ac_shift
8507    case $ac_optarg in
8508    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8509    '') as_fn_error $? "missing file argument" ;;
8510    esac
8511    as_fn_append CONFIG_FILES " '$ac_optarg'"
8512    ac_need_defaults=false;;
8513  --he | --h |  --help | --hel | -h )
8514    $as_echo "$ac_cs_usage"; exit ;;
8515  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8516  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8517    ac_cs_silent=: ;;
8518
8519  # This is an error.
8520  -*) as_fn_error $? "unrecognized option: \`$1'
8521Try \`$0 --help' for more information." ;;
8522
8523  *) as_fn_append ac_config_targets " $1"
8524     ac_need_defaults=false ;;
8525
8526  esac
8527  shift
8528done
8529
8530ac_configure_extra_args=
8531
8532if $ac_cs_silent; then
8533  exec 6>/dev/null
8534  ac_configure_extra_args="$ac_configure_extra_args --silent"
8535fi
8536
8537_ACEOF
8538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8539if \$ac_cs_recheck; then
8540  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8541  shift
8542  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8543  CONFIG_SHELL='$SHELL'
8544  export CONFIG_SHELL
8545  exec "\$@"
8546fi
8547
8548_ACEOF
8549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8550exec 5>>config.log
8551{
8552  echo
8553  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8554## Running $as_me. ##
8555_ASBOX
8556  $as_echo "$ac_log"
8557} >&5
8558
8559_ACEOF
8560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8561_ACEOF
8562
8563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8564
8565# Handling of arguments.
8566for ac_config_target in $ac_config_targets
8567do
8568  case $ac_config_target in
8569    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8570
8571  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8572  esac
8573done
8574
8575
8576# If the user did not use the arguments to specify the items to instantiate,
8577# then the envvar interface is used.  Set only those that are not.
8578# We use the long form for the default assignment because of an extremely
8579# bizarre bug on SunOS 4.1.3.
8580if $ac_need_defaults; then
8581  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8582fi
8583
8584# Have a temporary directory for convenience.  Make it in the build tree
8585# simply because there is no reason against having it here, and in addition,
8586# creating and moving files from /tmp can sometimes cause problems.
8587# Hook for its removal unless debugging.
8588# Note that there is a small window in which the directory will not be cleaned:
8589# after its creation but before its name has been assigned to `$tmp'.
8590$debug ||
8591{
8592  tmp= ac_tmp=
8593  trap 'exit_status=$?
8594  : "${ac_tmp:=$tmp}"
8595  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8596' 0
8597  trap 'as_fn_exit 1' 1 2 13 15
8598}
8599# Create a (secure) tmp directory for tmp files.
8600
8601{
8602  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8603  test -d "$tmp"
8604}  ||
8605{
8606  tmp=./conf$$-$RANDOM
8607  (umask 077 && mkdir "$tmp")
8608} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8609ac_tmp=$tmp
8610
8611# Set up the scripts for CONFIG_FILES section.
8612# No need to generate them if there are no CONFIG_FILES.
8613# This happens for instance with `./config.status config.h'.
8614if test -n "$CONFIG_FILES"; then
8615
8616
8617ac_cr=`echo X | tr X '\015'`
8618# On cygwin, bash can eat \r inside `` if the user requested igncr.
8619# But we know of no other shell where ac_cr would be empty at this
8620# point, so we can use a bashism as a fallback.
8621if test "x$ac_cr" = x; then
8622  eval ac_cr=\$\'\\r\'
8623fi
8624ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8625if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8626  ac_cs_awk_cr='\\r'
8627else
8628  ac_cs_awk_cr=$ac_cr
8629fi
8630
8631echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8632_ACEOF
8633
8634
8635{
8636  echo "cat >conf$$subs.awk <<_ACEOF" &&
8637  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8638  echo "_ACEOF"
8639} >conf$$subs.sh ||
8640  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8641ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8642ac_delim='%!_!# '
8643for ac_last_try in false false false false false :; do
8644  . ./conf$$subs.sh ||
8645    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8646
8647  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8648  if test $ac_delim_n = $ac_delim_num; then
8649    break
8650  elif $ac_last_try; then
8651    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8652  else
8653    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8654  fi
8655done
8656rm -f conf$$subs.sh
8657
8658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8659cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8660_ACEOF
8661sed -n '
8662h
8663s/^/S["/; s/!.*/"]=/
8664p
8665g
8666s/^[^!]*!//
8667:repl
8668t repl
8669s/'"$ac_delim"'$//
8670t delim
8671:nl
8672h
8673s/\(.\{148\}\)..*/\1/
8674t more1
8675s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8676p
8677n
8678b repl
8679:more1
8680s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8681p
8682g
8683s/.\{148\}//
8684t nl
8685:delim
8686h
8687s/\(.\{148\}\)..*/\1/
8688t more2
8689s/["\\]/\\&/g; s/^/"/; s/$/"/
8690p
8691b
8692:more2
8693s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8694p
8695g
8696s/.\{148\}//
8697t delim
8698' <conf$$subs.awk | sed '
8699/^[^""]/{
8700  N
8701  s/\n//
8702}
8703' >>$CONFIG_STATUS || ac_write_fail=1
8704rm -f conf$$subs.awk
8705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8706_ACAWK
8707cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8708  for (key in S) S_is_set[key] = 1
8709  FS = ""
8710
8711}
8712{
8713  line = $ 0
8714  nfields = split(line, field, "@")
8715  substed = 0
8716  len = length(field[1])
8717  for (i = 2; i < nfields; i++) {
8718    key = field[i]
8719    keylen = length(key)
8720    if (S_is_set[key]) {
8721      value = S[key]
8722      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8723      len += length(value) + length(field[++i])
8724      substed = 1
8725    } else
8726      len += 1 + keylen
8727  }
8728
8729  print line
8730}
8731
8732_ACAWK
8733_ACEOF
8734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8735if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8736  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8737else
8738  cat
8739fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8740  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8741_ACEOF
8742
8743# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8744# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8745# trailing colons and then remove the whole line if VPATH becomes empty
8746# (actually we leave an empty line to preserve line numbers).
8747if test "x$srcdir" = x.; then
8748  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8749h
8750s///
8751s/^/:/
8752s/[      ]*$/:/
8753s/:\$(srcdir):/:/g
8754s/:\${srcdir}:/:/g
8755s/:@srcdir@:/:/g
8756s/^:*//
8757s/:*$//
8758x
8759s/\(=[   ]*\).*/\1/
8760G
8761s/\n//
8762s/^[^=]*=[       ]*$//
8763}'
8764fi
8765
8766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8767fi # test -n "$CONFIG_FILES"
8768
8769
8770eval set X "  :F $CONFIG_FILES      "
8771shift
8772for ac_tag
8773do
8774  case $ac_tag in
8775  :[FHLC]) ac_mode=$ac_tag; continue;;
8776  esac
8777  case $ac_mode$ac_tag in
8778  :[FHL]*:*);;
8779  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8780  :[FH]-) ac_tag=-:-;;
8781  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8782  esac
8783  ac_save_IFS=$IFS
8784  IFS=:
8785  set x $ac_tag
8786  IFS=$ac_save_IFS
8787  shift
8788  ac_file=$1
8789  shift
8790
8791  case $ac_mode in
8792  :L) ac_source=$1;;
8793  :[FH])
8794    ac_file_inputs=
8795    for ac_f
8796    do
8797      case $ac_f in
8798      -) ac_f="$ac_tmp/stdin";;
8799      *) # Look for the file first in the build tree, then in the source tree
8800         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8801         # because $ac_f cannot contain `:'.
8802         test -f "$ac_f" ||
8803           case $ac_f in
8804           [\\/$]*) false;;
8805           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8806           esac ||
8807           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8808      esac
8809      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8810      as_fn_append ac_file_inputs " '$ac_f'"
8811    done
8812
8813    # Let's still pretend it is `configure' which instantiates (i.e., don't
8814    # use $as_me), people would be surprised to read:
8815    #    /* config.h.  Generated by config.status.  */
8816    configure_input='Generated from '`
8817          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8818        `' by configure.'
8819    if test x"$ac_file" != x-; then
8820      configure_input="$ac_file.  $configure_input"
8821      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8822$as_echo "$as_me: creating $ac_file" >&6;}
8823    fi
8824    # Neutralize special characters interpreted by sed in replacement strings.
8825    case $configure_input in #(
8826    *\&* | *\|* | *\\* )
8827       ac_sed_conf_input=`$as_echo "$configure_input" |
8828       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8829    *) ac_sed_conf_input=$configure_input;;
8830    esac
8831
8832    case $ac_tag in
8833    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8834      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8835    esac
8836    ;;
8837  esac
8838
8839  ac_dir=`$as_dirname -- "$ac_file" ||
8840$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8841         X"$ac_file" : 'X\(//\)[^/]' \| \
8842         X"$ac_file" : 'X\(//\)$' \| \
8843         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8844$as_echo X"$ac_file" |
8845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8846            s//\1/
8847            q
8848          }
8849          /^X\(\/\/\)[^/].*/{
8850            s//\1/
8851            q
8852          }
8853          /^X\(\/\/\)$/{
8854            s//\1/
8855            q
8856          }
8857          /^X\(\/\).*/{
8858            s//\1/
8859            q
8860          }
8861          s/.*/./; q'`
8862  as_dir="$ac_dir"; as_fn_mkdir_p
8863  ac_builddir=.
8864
8865case "$ac_dir" in
8866.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8867*)
8868  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8869  # A ".." for each directory in $ac_dir_suffix.
8870  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8871  case $ac_top_builddir_sub in
8872  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8873  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8874  esac ;;
8875esac
8876ac_abs_top_builddir=$ac_pwd
8877ac_abs_builddir=$ac_pwd$ac_dir_suffix
8878# for backward compatibility:
8879ac_top_builddir=$ac_top_build_prefix
8880
8881case $srcdir in
8882  .)  # We are building in place.
8883    ac_srcdir=.
8884    ac_top_srcdir=$ac_top_builddir_sub
8885    ac_abs_top_srcdir=$ac_pwd ;;
8886  [\\/]* | ?:[\\/]* )  # Absolute name.
8887    ac_srcdir=$srcdir$ac_dir_suffix;
8888    ac_top_srcdir=$srcdir
8889    ac_abs_top_srcdir=$srcdir ;;
8890  *) # Relative name.
8891    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8892    ac_top_srcdir=$ac_top_build_prefix$srcdir
8893    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8894esac
8895ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8896
8897
8898  case $ac_mode in
8899  :F)
8900  #
8901  # CONFIG_FILE
8902  #
8903
8904  case $INSTALL in
8905  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8906  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8907  esac
8908  ac_MKDIR_P=$MKDIR_P
8909  case $MKDIR_P in
8910  [\\/$]* | ?:[\\/]* ) ;;
8911  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8912  esac
8913_ACEOF
8914
8915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8916# If the template does not know about datarootdir, expand it.
8917# FIXME: This hack should be removed a few years after 2.60.
8918ac_datarootdir_hack=; ac_datarootdir_seen=
8919ac_sed_dataroot='
8920/datarootdir/ {
8921  p
8922  q
8923}
8924/@datadir@/p
8925/@docdir@/p
8926/@infodir@/p
8927/@localedir@/p
8928/@mandir@/p'
8929case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8930*datarootdir*) ac_datarootdir_seen=yes;;
8931*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8932  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8933$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8934_ACEOF
8935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8936  ac_datarootdir_hack='
8937  s&@datadir@&$datadir&g
8938  s&@docdir@&$docdir&g
8939  s&@infodir@&$infodir&g
8940  s&@localedir@&$localedir&g
8941  s&@mandir@&$mandir&g
8942  s&\\\${datarootdir}&$datarootdir&g' ;;
8943esac
8944_ACEOF
8945
8946# Neutralize VPATH when `$srcdir' = `.'.
8947# Shell code in configure.ac might set extrasub.
8948# FIXME: do we really want to maintain this feature?
8949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8950ac_sed_extra="$ac_vpsub
8951$extrasub
8952_ACEOF
8953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8954:t
8955/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8956s|@configure_input@|$ac_sed_conf_input|;t t
8957s&@top_builddir@&$ac_top_builddir_sub&;t t
8958s&@top_build_prefix@&$ac_top_build_prefix&;t t
8959s&@srcdir@&$ac_srcdir&;t t
8960s&@abs_srcdir@&$ac_abs_srcdir&;t t
8961s&@top_srcdir@&$ac_top_srcdir&;t t
8962s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8963s&@builddir@&$ac_builddir&;t t
8964s&@abs_builddir@&$ac_abs_builddir&;t t
8965s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8966s&@INSTALL@&$ac_INSTALL&;t t
8967s&@MKDIR_P@&$ac_MKDIR_P&;t t
8968$ac_datarootdir_hack
8969"
8970eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8971  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8972
8973test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8974  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8975  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8976      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8977  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8978which seems to be undefined.  Please make sure it is defined" >&5
8979$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8980which seems to be undefined.  Please make sure it is defined" >&2;}
8981
8982  rm -f "$ac_tmp/stdin"
8983  case $ac_file in
8984  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8985  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8986  esac \
8987  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8988 ;;
8989
8990
8991
8992  esac
8993
8994done # for ac_tag
8995
8996
8997as_fn_exit 0
8998_ACEOF
8999ac_clean_files=$ac_clean_files_save
9000
9001test $ac_write_fail = 0 ||
9002  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9003
9004
9005# configure is writing to config.log, and then calls config.status.
9006# config.status does its own redirection, appending to config.log.
9007# Unfortunately, on DOS this fails, as config.log is still kept open
9008# by configure, so config.status won't be able to write to it; its
9009# output is simply discarded.  So we exec the FD to /dev/null,
9010# effectively closing config.log, so it can be properly (re)opened and
9011# appended to by config.status.  When coming back to configure, we
9012# need to make the FD available again.
9013if test "$no_create" != yes; then
9014  ac_cs_success=:
9015  ac_config_status_args=
9016  test "$silent" = yes &&
9017    ac_config_status_args="$ac_config_status_args --quiet"
9018  exec 5>/dev/null
9019  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9020  exec 5>>config.log
9021  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9022  # would make configure fail if this is the last instruction.
9023  $ac_cs_success || as_fn_exit 1
9024fi
9025if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9026  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9027$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9028fi
9029
Note: See TracBrowser for help on using the repository browser.