source: branches/blt4/packages/vizservers/configure @ 1823

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