source: trunk/gui/configure @ 4096

Last change on this file since 4096 was 2117, checked in by mmc, 13 years ago

Added the "placard" canvas item type and a first cut at the Diffview
widget for showing textual diffs. I've been working on both of these
as part of "gui15", but we probably need Diffview for the new regression
tester, so I'm moving them over. The Diffview still needs lots of work.

  • Property svn:executable set to *
File size: 192.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for RapptureGUI 1.1.
4#
5# Report bugs to <rappture@nanohub.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62        expr "X$arg" : "X\\(.*\\)$as_nl";
63        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""        $as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191         /*)
192           for as_base in sh bash ksh sh5; do
193             # Try only shells that exist, to save several forks.
194             as_shell=$as_dir/$as_base
195             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202           done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215        # neutralization value for shells without unset; and this also
216        # works around shells that cannot unset nonexistent variables.
217        BASH_ENV=/dev/null
218        ENV=/dev/null
219        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220        export CONFIG_SHELL
221        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org and
232$0: rappture@nanohub.org about your system, including any
233$0: error possibly output before this message. Then install
234$0: a modern shell, or manually run the script under such a
235$0: shell if you do have one."
236  fi
237  exit 1
238fi
239fi
240fi
241SHELL=${CONFIG_SHELL-/bin/sh}
242export SHELL
243# Unset more variables known to interfere with behavior of common tools.
244CLICOLOR_FORCE= GREP_OPTIONS=
245unset CLICOLOR_FORCE GREP_OPTIONS
246
247## --------------------- ##
248## M4sh Shell Functions. ##
249## --------------------- ##
250# as_fn_unset VAR
251# ---------------
252# Portably unset VAR.
253as_fn_unset ()
254{
255  { eval $1=; unset $1;}
256}
257as_unset=as_fn_unset
258
259# as_fn_set_status STATUS
260# -----------------------
261# Set $? to STATUS, without forking.
262as_fn_set_status ()
263{
264  return $1
265} # as_fn_set_status
266
267# as_fn_exit STATUS
268# -----------------
269# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270as_fn_exit ()
271{
272  set +e
273  as_fn_set_status $1
274  exit $1
275} # as_fn_exit
276
277# as_fn_mkdir_p
278# -------------
279# Create "$as_dir" as a directory, including parents if necessary.
280as_fn_mkdir_p ()
281{
282
283  case $as_dir in #(
284  -*) as_dir=./$as_dir;;
285  esac
286  test -d "$as_dir" || eval $as_mkdir_p || {
287    as_dirs=
288    while :; do
289      case $as_dir in #(
290      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291      *) as_qdir=$as_dir;;
292      esac
293      as_dirs="'$as_qdir' $as_dirs"
294      as_dir=`$as_dirname -- "$as_dir" ||
295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296         X"$as_dir" : 'X\(//\)[^/]' \| \
297         X"$as_dir" : 'X\(//\)$' \| \
298         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299$as_echo X"$as_dir" |
300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301            s//\1/
302            q
303          }
304          /^X\(\/\/\)[^/].*/{
305            s//\1/
306            q
307          }
308          /^X\(\/\/\)$/{
309            s//\1/
310            q
311          }
312          /^X\(\/\).*/{
313            s//\1/
314            q
315          }
316          s/.*/./; q'`
317      test -d "$as_dir" && break
318    done
319    test -z "$as_dirs" || eval "mkdir $as_dirs"
320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323} # as_fn_mkdir_p
324# as_fn_append VAR VALUE
325# ----------------------
326# Append the text in VALUE to the end of the definition contained in VAR. Take
327# advantage of any shell optimizations that allow amortized linear growth over
328# repeated appends, instead of the typical quadratic growth present in naive
329# implementations.
330if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331  eval 'as_fn_append ()
332  {
333    eval $1+=\$2
334  }'
335else
336  as_fn_append ()
337  {
338    eval $1=\$$1\$2
339  }
340fi # as_fn_append
341
342# as_fn_arith ARG...
343# ------------------
344# Perform arithmetic evaluation on the ARGs, and store the result in the
345# global $as_val. Take advantage of shells that can avoid forks. The arguments
346# must be portable across $(()) and expr.
347if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348  eval 'as_fn_arith ()
349  {
350    as_val=$(( $* ))
351  }'
352else
353  as_fn_arith ()
354  {
355    as_val=`expr "$@" || test $? -eq 1`
356  }
357fi # as_fn_arith
358
359
360# as_fn_error ERROR [LINENO LOG_FD]
361# ---------------------------------
362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364# script with status $?, using 1 if that was 0.
365as_fn_error ()
366{
367  as_status=$?; test $as_status -eq 0 && as_status=1
368  if test "$3"; then
369    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371  fi
372  $as_echo "$as_me: error: $1" >&2
373  as_fn_exit $as_status
374} # as_fn_error
375
376if expr a : '\(a\)' >/dev/null 2>&1 &&
377   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378  as_expr=expr
379else
380  as_expr=false
381fi
382
383if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384  as_basename=basename
385else
386  as_basename=false
387fi
388
389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390  as_dirname=dirname
391else
392  as_dirname=false
393fi
394
395as_me=`$as_basename -- "$0" ||
396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397         X"$0" : 'X\(//\)$' \| \
398         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399$as_echo X/"$0" |
400    sed '/^.*\/\([^/][^/]*\)\/*$/{
401            s//\1/
402            q
403          }
404          /^X\/\(\/\/\)$/{
405            s//\1/
406            q
407          }
408          /^X\/\(\/\).*/{
409            s//\1/
410            q
411          }
412          s/.*/./; q'`
413
414# Avoid depending upon Character Ranges.
415as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418as_cr_digits='0123456789'
419as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427  sed -n '
428    p
429    /[$]LINENO/=
430  ' <$as_myself |
431    sed '
432      s/[$]LINENO.*/&-/
433      t lineno
434      b
435      :lineno
436      N
437      :loop
438      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439      t loop
440      s/-\n.*//
441    ' >$as_me.lineno &&
442  chmod +x "$as_me.lineno" ||
443    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445  # Don't try to exec as it changes $[0], causing all sort of problems
446  # (the dirname of $[0] is not the place where we might find the
447  # original and so on.  Autoconf is especially sensitive to this).
448  . "./$as_me.lineno"
449  # Exit status is that of the last command.
450  exit
451}
452
453ECHO_C= ECHO_N= ECHO_T=
454case `echo -n x` in #(((((
455-n*)
456  case `echo 'xy\c'` in
457  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458  xy)  ECHO_C='\c';;
459  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460       ECHO_T=' ';;
461  esac;;
462*)
463  ECHO_N='-n';;
464esac
465
466rm -f conf$$ conf$$.exe conf$$.file
467if test -d conf$$.dir; then
468  rm -f conf$$.dir/conf$$.file
469else
470  rm -f conf$$.dir
471  mkdir conf$$.dir 2>/dev/null
472fi
473if (echo >conf$$.file) 2>/dev/null; then
474  if ln -s conf$$.file conf$$ 2>/dev/null; then
475    as_ln_s='ln -s'
476    # ... but there are two gotchas:
477    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479    # In both cases, we have to default to `cp -p'.
480    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481      as_ln_s='cp -p'
482  elif ln conf$$.file conf$$ 2>/dev/null; then
483    as_ln_s=ln
484  else
485    as_ln_s='cp -p'
486  fi
487else
488  as_ln_s='cp -p'
489fi
490rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491rmdir conf$$.dir 2>/dev/null
492
493if mkdir -p . 2>/dev/null; then
494  as_mkdir_p='mkdir -p "$as_dir"'
495else
496  test -d ./-p && rmdir ./-p
497  as_mkdir_p=false
498fi
499
500if test -x / >/dev/null 2>&1; then
501  as_test_x='test -x'
502else
503  if ls -dL / >/dev/null 2>&1; then
504    as_ls_L_option=L
505  else
506    as_ls_L_option=
507  fi
508  as_test_x='
509    eval sh -c '\''
510      if test -d "$1"; then
511        test -d "$1/.";
512      else
513        case $1 in #(
514        -*)set "./$1";;
515        esac;
516        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517        ???[sx]*):;;*)false;;esac;fi
518    '\'' sh
519  '
520fi
521as_executable_p=$as_test_x
522
523# Sed expression to map a string onto a valid CPP name.
524as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526# Sed expression to map a string onto a valid variable name.
527as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530exec 7<&0 </dev/null 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME='RapptureGUI'
551PACKAGE_TARNAME='rappturegui'
552PACKAGE_VERSION='1.1'
553PACKAGE_STRING='RapptureGUI 1.1'
554PACKAGE_BUGREPORT='rappture@nanohub.org'
555PACKAGE_URL=''
556
557# Factoring default headers for most tests.
558ac_includes_default="\
559#include <stdio.h>
560#ifdef HAVE_SYS_TYPES_H
561# include <sys/types.h>
562#endif
563#ifdef HAVE_SYS_STAT_H
564# include <sys/stat.h>
565#endif
566#ifdef STDC_HEADERS
567# include <stdlib.h>
568# include <stddef.h>
569#else
570# ifdef HAVE_STDLIB_H
571#  include <stdlib.h>
572# endif
573#endif
574#ifdef HAVE_STRING_H
575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
576#  include <memory.h>
577# endif
578# include <string.h>
579#endif
580#ifdef HAVE_STRINGS_H
581# include <strings.h>
582#endif
583#ifdef HAVE_INTTYPES_H
584# include <inttypes.h>
585#endif
586#ifdef HAVE_STDINT_H
587# include <stdint.h>
588#endif
589#ifdef HAVE_UNISTD_H
590# include <unistd.h>
591#endif"
592
593ac_subst_vars='LTLIBOBJS
594LIBOBJS
595TK_VERSION
596TCL_LIB_SPEC
597TCL_INC_SPEC
598TCL_VERSION
599TCLSH
600ENABLE_GUI
601MAKE
602SHLIB_LDFLAGS
603INSTALL_STUB_LIB
604INSTALL_LIB
605MAKE_STUB_LIB
606MAKE_LIB
607SHLIB_SUFFIX
608SHLIB_CFLAGS
609SHLIB_LD_LIBS
610TK_SHLIB_LD_EXTRAS
611TCL_SHLIB_LD_EXTRAS
612SHLIB_LD
613STLIB_LD
614LD_SEARCH_FLAGS
615CC_SEARCH_FLAGS
616LDFLAGS_OPTIMIZE
617LDFLAGS_DEBUG
618CFLAGS_WARNING
619CFLAGS_OPTIMIZE
620CFLAGS_DEBUG
621PLAT_SRCS
622PLAT_OBJS
623DL_OBJS
624DL_LIBS
625EGREP
626GREP
627CPP
628AR
629OBJEXT
630EXEEXT
631ac_ct_CC
632CPPFLAGS
633LDFLAGS
634CFLAGS
635CC
636SET_MAKE
637MKDIR_P
638LN_S
639RANLIB
640INSTALL_DATA
641INSTALL_SCRIPT
642INSTALL_PROGRAM
643LIB_SEARCH_DIRS
644target_os
645target_vendor
646target_cpu
647target
648host_os
649host_vendor
650host_cpu
651host
652build_os
653build_vendor
654build_cpu
655build
656target_alias
657host_alias
658build_alias
659LIBS
660ECHO_T
661ECHO_N
662ECHO_C
663DEFS
664mandir
665localedir
666libdir
667psdir
668pdfdir
669dvidir
670htmldir
671infodir
672docdir
673oldincludedir
674includedir
675localstatedir
676sharedstatedir
677sysconfdir
678datadir
679datarootdir
680libexecdir
681sbindir
682bindir
683program_transform_name
684prefix
685exec_prefix
686PACKAGE_URL
687PACKAGE_BUGREPORT
688PACKAGE_STRING
689PACKAGE_VERSION
690PACKAGE_TARNAME
691PACKAGE_NAME
692PATH_SEPARATOR
693SHELL'
694ac_subst_files=''
695ac_user_opts='
696enable_option_checking
697enable_64bit
698enable_64bit_vis
699enable_corefoundation
700enable_load
701enable_shared
702enable_gui
703with_tclsh
704'
705      ac_precious_vars='build_alias
706host_alias
707target_alias
708CC
709CFLAGS
710LDFLAGS
711LIBS
712CPPFLAGS
713CPP'
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 RapptureGUI 1.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/rappturegui]
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
1312System types:
1313  --build=BUILD     configure for building on BUILD [guessed]
1314  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1315  --target=TARGET   configure for building compilers for TARGET [HOST]
1316_ACEOF
1317fi
1318
1319if test -n "$ac_init_help"; then
1320  case $ac_init_help in
1321     short | recursive ) echo "Configuration of RapptureGUI 1.1:";;
1322   esac
1323  cat <<\_ACEOF
1324
1325Optional Features:
1326  --disable-option-checking  ignore unrecognized --enable/--with options
1327  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1328  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1329  --enable-64bit          enable 64bit support (where applicable)
1330  --enable-64bit-vis      enable 64bit Sparc VIS support
1331  --enable-corefoundation use CoreFoundation API --enable-corefoundation
1332  --disable-load          disallow dynamic loading and "load" command
1333  --enable-shared         build and link with shared libraries --enable-shared
1334  --enable-gui            build code related to the graphical user interface
1335                          [default=yes]
1336
1337Optional Packages:
1338  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1339  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1340  --with-tclsh=DIR        location of tclsh [default=yes]
1341
1342Some influential environment variables:
1343  CC          C compiler command
1344  CFLAGS      C compiler flags
1345  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1346              nonstandard directory <lib dir>
1347  LIBS        libraries to pass to the linker, e.g. -l<library>
1348  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1349              you have headers in a nonstandard directory <include dir>
1350  CPP         C preprocessor
1351
1352Use these variables to override the choices made by `configure' or to help
1353it to find libraries and programs with nonstandard names/locations.
1354
1355Report bugs to <rappture@nanohub.org>.
1356_ACEOF
1357ac_status=$?
1358fi
1359
1360if test "$ac_init_help" = "recursive"; then
1361  # If there are subdirs, report their specific --help.
1362  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363    test -d "$ac_dir" ||
1364      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1365      continue
1366    ac_builddir=.
1367
1368case "$ac_dir" in
1369.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370*)
1371  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1372  # A ".." for each directory in $ac_dir_suffix.
1373  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1374  case $ac_top_builddir_sub in
1375  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1377  esac ;;
1378esac
1379ac_abs_top_builddir=$ac_pwd
1380ac_abs_builddir=$ac_pwd$ac_dir_suffix
1381# for backward compatibility:
1382ac_top_builddir=$ac_top_build_prefix
1383
1384case $srcdir in
1385  .)  # We are building in place.
1386    ac_srcdir=.
1387    ac_top_srcdir=$ac_top_builddir_sub
1388    ac_abs_top_srcdir=$ac_pwd ;;
1389  [\\/]* | ?:[\\/]* )  # Absolute name.
1390    ac_srcdir=$srcdir$ac_dir_suffix;
1391    ac_top_srcdir=$srcdir
1392    ac_abs_top_srcdir=$srcdir ;;
1393  *) # Relative name.
1394    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1395    ac_top_srcdir=$ac_top_build_prefix$srcdir
1396    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1397esac
1398ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1399
1400    cd "$ac_dir" || { ac_status=$?; continue; }
1401    # Check for guested configure.
1402    if test -f "$ac_srcdir/configure.gnu"; then
1403      echo &&
1404      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1405    elif test -f "$ac_srcdir/configure"; then
1406      echo &&
1407      $SHELL "$ac_srcdir/configure" --help=recursive
1408    else
1409      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1410    fi || ac_status=$?
1411    cd "$ac_pwd" || { ac_status=$?; break; }
1412  done
1413fi
1414
1415test -n "$ac_init_help" && exit $ac_status
1416if $ac_init_version; then
1417  cat <<\_ACEOF
1418RapptureGUI configure 1.1
1419generated by GNU Autoconf 2.64
1420
1421Copyright (C) 2009 Free Software Foundation, Inc.
1422This configure script is free software; the Free Software Foundation
1423gives unlimited permission to copy, distribute and modify it.
1424_ACEOF
1425  exit
1426fi
1427
1428## ------------------------ ##
1429## Autoconf initialization. ##
1430## ------------------------ ##
1431
1432# ac_fn_c_try_compile LINENO
1433# --------------------------
1434# Try to compile conftest.$ac_ext, and return whether this succeeded.
1435ac_fn_c_try_compile ()
1436{
1437  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1438  rm -f conftest.$ac_objext
1439  if { { ac_try="$ac_compile"
1440case "(($ac_try" in
1441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1442  *) ac_try_echo=$ac_try;;
1443esac
1444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1445$as_echo "$ac_try_echo"; } >&5
1446  (eval "$ac_compile") 2>conftest.err
1447  ac_status=$?
1448  if test -s conftest.err; then
1449    grep -v '^ *+' conftest.err >conftest.er1
1450    cat conftest.er1 >&5
1451    mv -f conftest.er1 conftest.err
1452  fi
1453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1454  test $ac_status = 0; } && {
1455         test -z "$ac_c_werror_flag" ||
1456         test ! -s conftest.err
1457       } && test -s conftest.$ac_objext; then :
1458  ac_retval=0
1459else
1460  $as_echo "$as_me: failed program was:" >&5
1461sed 's/^/| /' conftest.$ac_ext >&5
1462
1463        ac_retval=1
1464fi
1465  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1466  return $ac_retval
1467
1468} # ac_fn_c_try_compile
1469
1470# ac_fn_c_try_link LINENO
1471# -----------------------
1472# Try to link conftest.$ac_ext, and return whether this succeeded.
1473ac_fn_c_try_link ()
1474{
1475  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476  rm -f conftest.$ac_objext conftest$ac_exeext
1477  if { { ac_try="$ac_link"
1478case "(($ac_try" in
1479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480  *) ac_try_echo=$ac_try;;
1481esac
1482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483$as_echo "$ac_try_echo"; } >&5
1484  (eval "$ac_link") 2>conftest.err
1485  ac_status=$?
1486  if test -s conftest.err; then
1487    grep -v '^ *+' conftest.err >conftest.er1
1488    cat conftest.er1 >&5
1489    mv -f conftest.er1 conftest.err
1490  fi
1491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492  test $ac_status = 0; } && {
1493         test -z "$ac_c_werror_flag" ||
1494         test ! -s conftest.err
1495       } && test -s conftest$ac_exeext && {
1496         test "$cross_compiling" = yes ||
1497         $as_test_x conftest$ac_exeext
1498       }; then :
1499  ac_retval=0
1500else
1501  $as_echo "$as_me: failed program was:" >&5
1502sed 's/^/| /' conftest.$ac_ext >&5
1503
1504        ac_retval=1
1505fi
1506  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1507  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1508  # interfere with the next link command; also delete a directory that is
1509  # left behind by Apple's compiler.  We do this before executing the actions.
1510  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1511  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512  return $ac_retval
1513
1514} # ac_fn_c_try_link
1515
1516# ac_fn_c_try_cpp LINENO
1517# ----------------------
1518# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1519ac_fn_c_try_cpp ()
1520{
1521  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522  if { { ac_try="$ac_cpp conftest.$ac_ext"
1523case "(($ac_try" in
1524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525  *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1530  ac_status=$?
1531  if test -s conftest.err; then
1532    grep -v '^ *+' conftest.err >conftest.er1
1533    cat conftest.er1 >&5
1534    mv -f conftest.er1 conftest.err
1535  fi
1536  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537  test $ac_status = 0; } >/dev/null && {
1538         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1539         test ! -s conftest.err
1540       }; then :
1541  ac_retval=0
1542else
1543  $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546    ac_retval=1
1547fi
1548  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549  return $ac_retval
1550
1551} # ac_fn_c_try_cpp
1552
1553# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1554# -------------------------------------------------------
1555# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1556# the include files in INCLUDES and setting the cache variable VAR
1557# accordingly.
1558ac_fn_c_check_header_mongrel ()
1559{
1560  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563$as_echo_n "checking for $2... " >&6; }
1564if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1565  $as_echo_n "(cached) " >&6
1566fi
1567eval ac_res=\$$3
1568               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569$as_echo "$ac_res" >&6; }
1570else
1571  # Is the header compilable?
1572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1573$as_echo_n "checking $2 usability... " >&6; }
1574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575/* end confdefs.h.  */
1576$4
1577#include <$2>
1578_ACEOF
1579if ac_fn_c_try_compile "$LINENO"; then :
1580  ac_header_compiler=yes
1581else
1582  ac_header_compiler=no
1583fi
1584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1586$as_echo "$ac_header_compiler" >&6; }
1587
1588# Is the header present?
1589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1590$as_echo_n "checking $2 presence... " >&6; }
1591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592/* end confdefs.h.  */
1593#include <$2>
1594_ACEOF
1595if ac_fn_c_try_cpp "$LINENO"; then :
1596  ac_header_preproc=yes
1597else
1598  ac_header_preproc=no
1599fi
1600rm -f conftest.err conftest.$ac_ext
1601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1602$as_echo "$ac_header_preproc" >&6; }
1603
1604# So?  What about this header?
1605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1606  yes:no: )
1607    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1608$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1609    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1610$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1611    ;;
1612  no:yes:* )
1613    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1614$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1615    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1616$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1617    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1618$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1619    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1620$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1621    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1622$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1623( cat <<\_ASBOX
1624## ----------------------------------- ##
1625## Report this to rappture@nanohub.org ##
1626## ----------------------------------- ##
1627_ASBOX
1628     ) | sed "s/^/$as_me: WARNING:     /" >&2
1629    ;;
1630esac
1631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632$as_echo_n "checking for $2... " >&6; }
1633if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1634  $as_echo_n "(cached) " >&6
1635else
1636  eval "$3=\$ac_header_compiler"
1637fi
1638eval ac_res=\$$3
1639               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640$as_echo "$ac_res" >&6; }
1641fi
1642  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643
1644} # ac_fn_c_check_header_mongrel
1645
1646# ac_fn_c_try_run LINENO
1647# ----------------------
1648# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649# that executables *can* be run.
1650ac_fn_c_try_run ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if { { ac_try="$ac_link"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_link") 2>&5
1661  ac_status=$?
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664  { { case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_try") 2>&5
1671  ac_status=$?
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; }; }; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: program exited with status $ac_status" >&5
1677       $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680       ac_retval=$ac_status
1681fi
1682  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684  return $ac_retval
1685
1686} # ac_fn_c_try_run
1687
1688# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689# -------------------------------------------------------
1690# Tests whether HEADER exists and can be compiled using the include files in
1691# INCLUDES, setting the cache variable VAR accordingly.
1692ac_fn_c_check_header_compile ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696$as_echo_n "checking for $2... " >&6; }
1697if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698  $as_echo_n "(cached) " >&6
1699else
1700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701/* end confdefs.h.  */
1702$4
1703#include <$2>
1704_ACEOF
1705if ac_fn_c_try_compile "$LINENO"; then :
1706  eval "$3=yes"
1707else
1708  eval "$3=no"
1709fi
1710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711fi
1712eval ac_res=\$$3
1713               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714$as_echo "$ac_res" >&6; }
1715  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
1717} # ac_fn_c_check_header_compile
1718cat >config.log <<_ACEOF
1719This file contains any messages produced by compilers while
1720running configure, to aid debugging if configure makes a mistake.
1721
1722It was created by RapptureGUI $as_me 1.1, which was
1723generated by GNU Autoconf 2.64.  Invocation command line was
1724
1725  $ $0 $@
1726
1727_ACEOF
1728exec 5>>config.log
1729{
1730cat <<_ASUNAME
1731## --------- ##
1732## Platform. ##
1733## --------- ##
1734
1735hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1736uname -m = `(uname -m) 2>/dev/null || echo unknown`
1737uname -r = `(uname -r) 2>/dev/null || echo unknown`
1738uname -s = `(uname -s) 2>/dev/null || echo unknown`
1739uname -v = `(uname -v) 2>/dev/null || echo unknown`
1740
1741/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1742/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1743
1744/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1745/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1746/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1747/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1748/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1749/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1750/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1751
1752_ASUNAME
1753
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757  IFS=$as_save_IFS
1758  test -z "$as_dir" && as_dir=.
1759    $as_echo "PATH: $as_dir"
1760  done
1761IFS=$as_save_IFS
1762
1763} >&5
1764
1765cat >&5 <<_ACEOF
1766
1767
1768## ----------- ##
1769## Core tests. ##
1770## ----------- ##
1771
1772_ACEOF
1773
1774
1775# Keep a trace of the command line.
1776# Strip out --no-create and --no-recursion so they do not pile up.
1777# Strip out --silent because we don't want to record it for future runs.
1778# Also quote any args containing shell meta-characters.
1779# Make two passes to allow for proper duplicate-argument suppression.
1780ac_configure_args=
1781ac_configure_args0=
1782ac_configure_args1=
1783ac_must_keep_next=false
1784for ac_pass in 1 2
1785do
1786  for ac_arg
1787  do
1788    case $ac_arg in
1789    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1790    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1791    | -silent | --silent | --silen | --sile | --sil)
1792      continue ;;
1793    *\'*)
1794      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795    esac
1796    case $ac_pass in
1797    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1798    2)
1799      as_fn_append ac_configure_args1 " '$ac_arg'"
1800      if test $ac_must_keep_next = true; then
1801        ac_must_keep_next=false # Got value, back to normal.
1802      else
1803        case $ac_arg in
1804          *=* | --config-cache | -C | -disable-* | --disable-* \
1805          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1806          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1807          | -with-* | --with-* | -without-* | --without-* | --x)
1808            case "$ac_configure_args0 " in
1809              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1810            esac
1811            ;;
1812          -* ) ac_must_keep_next=true ;;
1813        esac
1814      fi
1815      as_fn_append ac_configure_args " '$ac_arg'"
1816      ;;
1817    esac
1818  done
1819done
1820{ ac_configure_args0=; unset ac_configure_args0;}
1821{ ac_configure_args1=; unset ac_configure_args1;}
1822
1823# When interrupted or exit'd, cleanup temporary files, and complete
1824# config.log.  We remove comments because anyway the quotes in there
1825# would cause problems or look ugly.
1826# WARNING: Use '\'' to represent an apostrophe within the trap.
1827# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1828trap 'exit_status=$?
1829  # Save into config.log some information that might help in debugging.
1830  {
1831    echo
1832
1833    cat <<\_ASBOX
1834## ---------------- ##
1835## Cache variables. ##
1836## ---------------- ##
1837_ASBOX
1838    echo
1839    # The following way of writing the cache mishandles newlines in values,
1840(
1841  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1842    eval ac_val=\$$ac_var
1843    case $ac_val in #(
1844    *${as_nl}*)
1845      case $ac_var in #(
1846      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1847$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1848      esac
1849      case $ac_var in #(
1850      _ | IFS | as_nl) ;; #(
1851      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1852      *) { eval $ac_var=; unset $ac_var;} ;;
1853      esac ;;
1854    esac
1855  done
1856  (set) 2>&1 |
1857    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1858    *${as_nl}ac_space=\ *)
1859      sed -n \
1860        "s/'\''/'\''\\\\'\'''\''/g;
1861          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1862      ;; #(
1863    *)
1864      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1865      ;;
1866    esac |
1867    sort
1868)
1869    echo
1870
1871    cat <<\_ASBOX
1872## ----------------- ##
1873## Output variables. ##
1874## ----------------- ##
1875_ASBOX
1876    echo
1877    for ac_var in $ac_subst_vars
1878    do
1879      eval ac_val=\$$ac_var
1880      case $ac_val in
1881      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882      esac
1883      $as_echo "$ac_var='\''$ac_val'\''"
1884    done | sort
1885    echo
1886
1887    if test -n "$ac_subst_files"; then
1888      cat <<\_ASBOX
1889## ------------------- ##
1890## File substitutions. ##
1891## ------------------- ##
1892_ASBOX
1893      echo
1894      for ac_var in $ac_subst_files
1895      do
1896        eval ac_val=\$$ac_var
1897        case $ac_val in
1898        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1899        esac
1900        $as_echo "$ac_var='\''$ac_val'\''"
1901      done | sort
1902      echo
1903    fi
1904
1905    if test -s confdefs.h; then
1906      cat <<\_ASBOX
1907## ----------- ##
1908## confdefs.h. ##
1909## ----------- ##
1910_ASBOX
1911      echo
1912      cat confdefs.h
1913      echo
1914    fi
1915    test "$ac_signal" != 0 &&
1916      $as_echo "$as_me: caught signal $ac_signal"
1917    $as_echo "$as_me: exit $exit_status"
1918  } >&5
1919  rm -f core *.core core.conftest.* &&
1920    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1921    exit $exit_status
1922' 0
1923for ac_signal in 1 2 13 15; do
1924  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1925done
1926ac_signal=0
1927
1928# confdefs.h avoids OS command line length limits that DEFS can exceed.
1929rm -f -r conftest* confdefs.h
1930
1931$as_echo "/* confdefs.h */" > confdefs.h
1932
1933# Predefined preprocessor variables.
1934
1935cat >>confdefs.h <<_ACEOF
1936#define PACKAGE_NAME "$PACKAGE_NAME"
1937_ACEOF
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1941_ACEOF
1942
1943cat >>confdefs.h <<_ACEOF
1944#define PACKAGE_VERSION "$PACKAGE_VERSION"
1945_ACEOF
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_STRING "$PACKAGE_STRING"
1949_ACEOF
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1953_ACEOF
1954
1955cat >>confdefs.h <<_ACEOF
1956#define PACKAGE_URL "$PACKAGE_URL"
1957_ACEOF
1958
1959
1960# Let the site file select an alternate cache file if it wants to.
1961# Prefer an explicitly selected file to automatically selected ones.
1962ac_site_file1=NONE
1963ac_site_file2=NONE
1964if test -n "$CONFIG_SITE"; then
1965  ac_site_file1=$CONFIG_SITE
1966elif test "x$prefix" != xNONE; then
1967  ac_site_file1=$prefix/share/config.site
1968  ac_site_file2=$prefix/etc/config.site
1969else
1970  ac_site_file1=$ac_default_prefix/share/config.site
1971  ac_site_file2=$ac_default_prefix/etc/config.site
1972fi
1973for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1974do
1975  test "x$ac_site_file" = xNONE && continue
1976  if test -r "$ac_site_file"; then
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1978$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1979    sed 's/^/| /' "$ac_site_file" >&5
1980    . "$ac_site_file"
1981  fi
1982done
1983
1984if test -r "$cache_file"; then
1985  # Some versions of bash will fail to source /dev/null (special
1986  # files actually), so we avoid doing that.
1987  if test -f "$cache_file"; then
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1989$as_echo "$as_me: loading cache $cache_file" >&6;}
1990    case $cache_file in
1991      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1992      *)                      . "./$cache_file";;
1993    esac
1994  fi
1995else
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1997$as_echo "$as_me: creating cache $cache_file" >&6;}
1998  >$cache_file
1999fi
2000
2001# Check that the precious variables saved in the cache have kept the same
2002# value.
2003ac_cache_corrupted=false
2004for ac_var in $ac_precious_vars; do
2005  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2006  eval ac_new_set=\$ac_env_${ac_var}_set
2007  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2008  eval ac_new_val=\$ac_env_${ac_var}_value
2009  case $ac_old_set,$ac_new_set in
2010    set,)
2011      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2012$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2013      ac_cache_corrupted=: ;;
2014    ,set)
2015      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2016$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2017      ac_cache_corrupted=: ;;
2018    ,);;
2019    *)
2020      if test "x$ac_old_val" != "x$ac_new_val"; then
2021        # differences in whitespace do not lead to failure.
2022        ac_old_val_w=`echo x $ac_old_val`
2023        ac_new_val_w=`echo x $ac_new_val`
2024        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2025          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2026$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2027          ac_cache_corrupted=:
2028        else
2029          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2030$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2031          eval $ac_var=\$ac_old_val
2032        fi
2033        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2034$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2035        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2036$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2037      fi;;
2038  esac
2039  # Pass precious variables to config.status.
2040  if test "$ac_new_set" = set; then
2041    case $ac_new_val in
2042    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2043    *) ac_arg=$ac_var=$ac_new_val ;;
2044    esac
2045    case " $ac_configure_args " in
2046      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2047      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2048    esac
2049  fi
2050done
2051if $ac_cache_corrupted; then
2052  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2055$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2056  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2057fi
2058## -------------------- ##
2059## Main body of script. ##
2060## -------------------- ##
2061
2062ac_ext=c
2063ac_cpp='$CPP $CPPFLAGS'
2064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067
2068
2069ac_aux_dir=
2070for ac_dir in cf "$srcdir"/cf; do
2071  for ac_t in install-sh install.sh shtool; do
2072    if test -f "$ac_dir/$ac_t"; then
2073      ac_aux_dir=$ac_dir
2074      ac_install_sh="$ac_aux_dir/$ac_t -c"
2075      break 2
2076    fi
2077  done
2078done
2079if test -z "$ac_aux_dir"; then
2080  as_fn_error "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5
2081fi
2082
2083# These three variables are undocumented and unsupported,
2084# and are intended to be withdrawn in a future Autoconf release.
2085# They can cause serious problems if a builder's source tree is in a directory
2086# whose full name contains unusual characters.
2087ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2088ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2089ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2090
2091
2092#------------------------------------------------------------------------
2093# Handle the --prefix=... option
2094#------------------------------------------------------------------------
2095
2096if test "${prefix}" = "NONE"; then
2097    prefix=/usr/local
2098fi
2099if test "${exec_prefix}" = "NONE"; then
2100    exec_prefix=$prefix
2101fi
2102
2103if test "${libdir}" != "${prefix}/lib"; then
2104    LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}"
2105else
2106    LIB_SEARCH_DIRS="-L${libdir}"
2107fi
2108# Make sure we can run config.sub.
2109$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2110  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2111
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2113$as_echo_n "checking build system type... " >&6; }
2114if test "${ac_cv_build+set}" = set; then :
2115  $as_echo_n "(cached) " >&6
2116else
2117  ac_build_alias=$build_alias
2118test "x$ac_build_alias" = x &&
2119  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2120test "x$ac_build_alias" = x &&
2121  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2122ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2123  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2124
2125fi
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2127$as_echo "$ac_cv_build" >&6; }
2128case $ac_cv_build in
2129*-*-*) ;;
2130*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2131esac
2132build=$ac_cv_build
2133ac_save_IFS=$IFS; IFS='-'
2134set x $ac_cv_build
2135shift
2136build_cpu=$1
2137build_vendor=$2
2138shift; shift
2139# Remember, the first character of IFS is used to create $*,
2140# except with old shells:
2141build_os=$*
2142IFS=$ac_save_IFS
2143case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2144
2145
2146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2147$as_echo_n "checking host system type... " >&6; }
2148if test "${ac_cv_host+set}" = set; then :
2149  $as_echo_n "(cached) " >&6
2150else
2151  if test "x$host_alias" = x; then
2152  ac_cv_host=$ac_cv_build
2153else
2154  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2155    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2156fi
2157
2158fi
2159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2160$as_echo "$ac_cv_host" >&6; }
2161case $ac_cv_host in
2162*-*-*) ;;
2163*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2164esac
2165host=$ac_cv_host
2166ac_save_IFS=$IFS; IFS='-'
2167set x $ac_cv_host
2168shift
2169host_cpu=$1
2170host_vendor=$2
2171shift; shift
2172# Remember, the first character of IFS is used to create $*,
2173# except with old shells:
2174host_os=$*
2175IFS=$ac_save_IFS
2176case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2177
2178
2179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2180$as_echo_n "checking target system type... " >&6; }
2181if test "${ac_cv_target+set}" = set; then :
2182  $as_echo_n "(cached) " >&6
2183else
2184  if test "x$target_alias" = x; then
2185  ac_cv_target=$ac_cv_host
2186else
2187  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2189fi
2190
2191fi
2192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2193$as_echo "$ac_cv_target" >&6; }
2194case $ac_cv_target in
2195*-*-*) ;;
2196*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2197esac
2198target=$ac_cv_target
2199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_target
2201shift
2202target_cpu=$1
2203target_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207target_os=$*
2208IFS=$ac_save_IFS
2209case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2210
2211
2212# The aliases save the names the user supplied, while $host etc.
2213# will get canonicalized.
2214test -n "$target_alias" &&
2215  test "$program_prefix$program_suffix$program_transform_name" = \
2216    NONENONEs,x,x, &&
2217  program_prefix=${target_alias}-
2218
2219
2220# Find a good install program.  We prefer a C program (faster),
2221# so one script is as good as another.  But avoid the broken or
2222# incompatible versions:
2223# SysV /etc/install, /usr/sbin/install
2224# SunOS /usr/etc/install
2225# IRIX /sbin/install
2226# AIX /bin/install
2227# AmigaOS /C/install, which installs bootblocks on floppy discs
2228# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2229# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2230# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2231# OS/2's system install, which has a completely different semantic
2232# ./install, which can be erroneously created by make from ./install.sh.
2233# Reject install programs that cannot install multiple files.
2234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2235$as_echo_n "checking for a BSD-compatible install... " >&6; }
2236if test -z "$INSTALL"; then
2237if test "${ac_cv_path_install+set}" = set; then :
2238  $as_echo_n "(cached) " >&6
2239else
2240  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245    # Account for people who put trailing slashes in PATH elements.
2246case $as_dir/ in #((
2247  ./ | .// | /[cC]/* | \
2248  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2249  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2250  /usr/ucb/* ) ;;
2251  *)
2252    # OSF1 and SCO ODT 3.0 have their own names for install.
2253    # Don't use installbsd from OSF since it installs stuff as root
2254    # by default.
2255    for ac_prog in ginstall scoinst install; do
2256      for ac_exec_ext in '' $ac_executable_extensions; do
2257        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2258          if test $ac_prog = install &&
2259            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260            # AIX install.  It has an incompatible calling convention.
2261            :
2262          elif test $ac_prog = install &&
2263            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2264            # program-specific install script used by HP pwplus--don't use.
2265            :
2266          else
2267            rm -rf conftest.one conftest.two conftest.dir
2268            echo one > conftest.one
2269            echo two > conftest.two
2270            mkdir conftest.dir
2271            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2272              test -s conftest.one && test -s conftest.two &&
2273              test -s conftest.dir/conftest.one &&
2274              test -s conftest.dir/conftest.two
2275            then
2276              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2277              break 3
2278            fi
2279          fi
2280        fi
2281      done
2282    done
2283    ;;
2284esac
2285
2286  done
2287IFS=$as_save_IFS
2288
2289rm -rf conftest.one conftest.two conftest.dir
2290
2291fi
2292  if test "${ac_cv_path_install+set}" = set; then
2293    INSTALL=$ac_cv_path_install
2294  else
2295    # As a last resort, use the slow shell script.  Don't cache a
2296    # value for INSTALL within a source directory, because that will
2297    # break other packages using the cache if that directory is
2298    # removed, or if the value is a relative name.
2299    INSTALL=$ac_install_sh
2300  fi
2301fi
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2303$as_echo "$INSTALL" >&6; }
2304
2305# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2306# It thinks the first close brace ends the variable substitution.
2307test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2308
2309test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2310
2311test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2312
2313
2314if test -n "$ac_tool_prefix"; then
2315  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2316set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
2319if test "${ac_cv_prog_RANLIB+set}" = set; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  if test -n "$RANLIB"; then
2323  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2324else
2325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326for as_dir in $PATH
2327do
2328  IFS=$as_save_IFS
2329  test -z "$as_dir" && as_dir=.
2330    for ac_exec_ext in '' $ac_executable_extensions; do
2331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2332    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334    break 2
2335  fi
2336done
2337  done
2338IFS=$as_save_IFS
2339
2340fi
2341fi
2342RANLIB=$ac_cv_prog_RANLIB
2343if test -n "$RANLIB"; then
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2345$as_echo "$RANLIB" >&6; }
2346else
2347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2348$as_echo "no" >&6; }
2349fi
2350
2351
2352fi
2353if test -z "$ac_cv_prog_RANLIB"; then
2354  ac_ct_RANLIB=$RANLIB
2355  # Extract the first word of "ranlib", so it can be a program name with args.
2356set dummy ranlib; ac_word=$2
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358$as_echo_n "checking for $ac_word... " >&6; }
2359if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2360  $as_echo_n "(cached) " >&6
2361else
2362  if test -n "$ac_ct_RANLIB"; then
2363  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2364else
2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366for as_dir in $PATH
2367do
2368  IFS=$as_save_IFS
2369  test -z "$as_dir" && as_dir=.
2370    for ac_exec_ext in '' $ac_executable_extensions; do
2371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372    ac_cv_prog_ac_ct_RANLIB="ranlib"
2373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374    break 2
2375  fi
2376done
2377  done
2378IFS=$as_save_IFS
2379
2380fi
2381fi
2382ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2383if test -n "$ac_ct_RANLIB"; then
2384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2385$as_echo "$ac_ct_RANLIB" >&6; }
2386else
2387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388$as_echo "no" >&6; }
2389fi
2390
2391  if test "x$ac_ct_RANLIB" = x; then
2392    RANLIB=":"
2393  else
2394    case $cross_compiling:$ac_tool_warned in
2395yes:)
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2398ac_tool_warned=yes ;;
2399esac
2400    RANLIB=$ac_ct_RANLIB
2401  fi
2402else
2403  RANLIB="$ac_cv_prog_RANLIB"
2404fi
2405
2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2407$as_echo_n "checking whether ln -s works... " >&6; }
2408LN_S=$as_ln_s
2409if test "$LN_S" = "ln -s"; then
2410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2411$as_echo "yes" >&6; }
2412else
2413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2414$as_echo "no, using $LN_S" >&6; }
2415fi
2416
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2418$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2419if test -z "$MKDIR_P"; then
2420  if test "${ac_cv_path_mkdir+set}" = set; then :
2421  $as_echo_n "(cached) " >&6
2422else
2423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2425do
2426  IFS=$as_save_IFS
2427  test -z "$as_dir" && as_dir=.
2428    for ac_prog in mkdir gmkdir; do
2429         for ac_exec_ext in '' $ac_executable_extensions; do
2430           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2431           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2432             'mkdir (GNU coreutils) '* | \
2433             'mkdir (coreutils) '* | \
2434             'mkdir (fileutils) '4.1*)
2435               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2436               break 3;;
2437           esac
2438         done
2439       done
2440  done
2441IFS=$as_save_IFS
2442
2443fi
2444
2445  if test "${ac_cv_path_mkdir+set}" = set; then
2446    MKDIR_P="$ac_cv_path_mkdir -p"
2447  else
2448    # As a last resort, use the slow shell script.  Don't cache a
2449    # value for MKDIR_P within a source directory, because that will
2450    # break other packages using the cache if that directory is
2451    # removed, or if the value is a relative name.
2452    test -d ./--version && rmdir ./--version
2453    MKDIR_P="$ac_install_sh -d"
2454  fi
2455fi
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2457$as_echo "$MKDIR_P" >&6; }
2458
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2460$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2461set x ${MAKE-make}
2462ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2463if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2464  $as_echo_n "(cached) " >&6
2465else
2466  cat >conftest.make <<\_ACEOF
2467SHELL = /bin/sh
2468all:
2469        @echo '@@@%%%=$(MAKE)=@@@%%%'
2470_ACEOF
2471# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2472case `${MAKE-make} -f conftest.make 2>/dev/null` in
2473  *@@@%%%=?*=@@@%%%*)
2474    eval ac_cv_prog_make_${ac_make}_set=yes;;
2475  *)
2476    eval ac_cv_prog_make_${ac_make}_set=no;;
2477esac
2478rm -f conftest.make
2479fi
2480if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2482$as_echo "yes" >&6; }
2483  SET_MAKE=
2484else
2485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486$as_echo "no" >&6; }
2487  SET_MAKE="MAKE=${MAKE-make}"
2488fi
2489
2490ac_ext=c
2491ac_cpp='$CPP $CPPFLAGS'
2492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495if test -n "$ac_tool_prefix"; then
2496  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497set dummy ${ac_tool_prefix}gcc; ac_word=$2
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499$as_echo_n "checking for $ac_word... " >&6; }
2500if test "${ac_cv_prog_CC+set}" = set; then :
2501  $as_echo_n "(cached) " >&6
2502else
2503  if test -n "$CC"; then
2504  ac_cv_prog_CC="$CC" # Let the user override the test.
2505else
2506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509  IFS=$as_save_IFS
2510  test -z "$as_dir" && as_dir=.
2511    for ac_exec_ext in '' $ac_executable_extensions; do
2512  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2513    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2515    break 2
2516  fi
2517done
2518  done
2519IFS=$as_save_IFS
2520
2521fi
2522fi
2523CC=$ac_cv_prog_CC
2524if test -n "$CC"; then
2525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2526$as_echo "$CC" >&6; }
2527else
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529$as_echo "no" >&6; }
2530fi
2531
2532
2533fi
2534if test -z "$ac_cv_prog_CC"; then
2535  ac_ct_CC=$CC
2536  # Extract the first word of "gcc", so it can be a program name with args.
2537set dummy gcc; ac_word=$2
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539$as_echo_n "checking for $ac_word... " >&6; }
2540if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2541  $as_echo_n "(cached) " >&6
2542else
2543  if test -n "$ac_ct_CC"; then
2544  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2545else
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549  IFS=$as_save_IFS
2550  test -z "$as_dir" && as_dir=.
2551    for ac_exec_ext in '' $ac_executable_extensions; do
2552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2553    ac_cv_prog_ac_ct_CC="gcc"
2554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555    break 2
2556  fi
2557done
2558  done
2559IFS=$as_save_IFS
2560
2561fi
2562fi
2563ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564if test -n "$ac_ct_CC"; then
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2566$as_echo "$ac_ct_CC" >&6; }
2567else
2568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569$as_echo "no" >&6; }
2570fi
2571
2572  if test "x$ac_ct_CC" = x; then
2573    CC=""
2574  else
2575    case $cross_compiling:$ac_tool_warned in
2576yes:)
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579ac_tool_warned=yes ;;
2580esac
2581    CC=$ac_ct_CC
2582  fi
2583else
2584  CC="$ac_cv_prog_CC"
2585fi
2586
2587if test -z "$CC"; then
2588          if test -n "$ac_tool_prefix"; then
2589    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2590set dummy ${ac_tool_prefix}cc; ac_word=$2
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592$as_echo_n "checking for $ac_word... " >&6; }
2593if test "${ac_cv_prog_CC+set}" = set; then :
2594  $as_echo_n "(cached) " >&6
2595else
2596  if test -n "$CC"; then
2597  ac_cv_prog_CC="$CC" # Let the user override the test.
2598else
2599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600for as_dir in $PATH
2601do
2602  IFS=$as_save_IFS
2603  test -z "$as_dir" && as_dir=.
2604    for ac_exec_ext in '' $ac_executable_extensions; do
2605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606    ac_cv_prog_CC="${ac_tool_prefix}cc"
2607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608    break 2
2609  fi
2610done
2611  done
2612IFS=$as_save_IFS
2613
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
2618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2619$as_echo "$CC" >&6; }
2620else
2621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622$as_echo "no" >&6; }
2623fi
2624
2625
2626  fi
2627fi
2628if test -z "$CC"; then
2629  # Extract the first word of "cc", so it can be a program name with args.
2630set dummy cc; ac_word=$2
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632$as_echo_n "checking for $ac_word... " >&6; }
2633if test "${ac_cv_prog_CC+set}" = set; then :
2634  $as_echo_n "(cached) " >&6
2635else
2636  if test -n "$CC"; then
2637  ac_cv_prog_CC="$CC" # Let the user override the test.
2638else
2639  ac_prog_rejected=no
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645    for ac_exec_ext in '' $ac_executable_extensions; do
2646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2648       ac_prog_rejected=yes
2649       continue
2650     fi
2651    ac_cv_prog_CC="cc"
2652    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653    break 2
2654  fi
2655done
2656  done
2657IFS=$as_save_IFS
2658
2659if test $ac_prog_rejected = yes; then
2660  # We found a bogon in the path, so make sure we never use it.
2661  set dummy $ac_cv_prog_CC
2662  shift
2663  if test $# != 0; then
2664    # We chose a different compiler from the bogus one.
2665    # However, it has the same basename, so the bogon will be chosen
2666    # first if we set CC to just the basename; use the full file name.
2667    shift
2668    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2669  fi
2670fi
2671fi
2672fi
2673CC=$ac_cv_prog_CC
2674if test -n "$CC"; then
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676$as_echo "$CC" >&6; }
2677else
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680fi
2681
2682
2683fi
2684if test -z "$CC"; then
2685  if test -n "$ac_tool_prefix"; then
2686  for ac_prog in cl.exe
2687  do
2688    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
2692if test "${ac_cv_prog_CC+set}" = set; then :
2693  $as_echo_n "(cached) " >&6
2694else
2695  if test -n "$CC"; then
2696  ac_cv_prog_CC="$CC" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703    for ac_exec_ext in '' $ac_executable_extensions; do
2704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2707    break 2
2708  fi
2709done
2710  done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715CC=$ac_cv_prog_CC
2716if test -n "$CC"; then
2717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718$as_echo "$CC" >&6; }
2719else
2720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724
2725    test -n "$CC" && break
2726  done
2727fi
2728if test -z "$CC"; then
2729  ac_ct_CC=$CC
2730  for ac_prog in cl.exe
2731do
2732  # Extract the first word of "$ac_prog", so it can be a program name with args.
2733set dummy $ac_prog; ac_word=$2
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  if test -n "$ac_ct_CC"; then
2740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745  IFS=$as_save_IFS
2746  test -z "$as_dir" && as_dir=.
2747    for ac_exec_ext in '' $ac_executable_extensions; do
2748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749    ac_cv_prog_ac_ct_CC="$ac_prog"
2750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751    break 2
2752  fi
2753done
2754  done
2755IFS=$as_save_IFS
2756
2757fi
2758fi
2759ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760if test -n "$ac_ct_CC"; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762$as_echo "$ac_ct_CC" >&6; }
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768
2769  test -n "$ac_ct_CC" && break
2770done
2771
2772  if test "x$ac_ct_CC" = x; then
2773    CC=""
2774  else
2775    case $cross_compiling:$ac_tool_warned in
2776yes:)
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779ac_tool_warned=yes ;;
2780esac
2781    CC=$ac_ct_CC
2782  fi
2783fi
2784
2785fi
2786
2787
2788test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790as_fn_error "no acceptable C compiler found in \$PATH
2791See \`config.log' for more details." "$LINENO" 5; }
2792
2793# Provide some information about the compiler.
2794$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2795set X $ac_compile
2796ac_compiler=$2
2797for ac_option in --version -v -V -qversion; do
2798  { { ac_try="$ac_compiler $ac_option >&5"
2799case "(($ac_try" in
2800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801  *) ac_try_echo=$ac_try;;
2802esac
2803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804$as_echo "$ac_try_echo"; } >&5
2805  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2806  ac_status=$?
2807  if test -s conftest.err; then
2808    sed '10a\
2809... rest of stderr output deleted ...
2810         10q' conftest.err >conftest.er1
2811    cat conftest.er1 >&5
2812    rm -f conftest.er1 conftest.err
2813  fi
2814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815  test $ac_status = 0; }
2816done
2817
2818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819/* end confdefs.h.  */
2820#include <stdio.h>
2821int
2822main ()
2823{
2824FILE *f = fopen ("conftest.out", "w");
2825 return ferror (f) || fclose (f) != 0;
2826
2827  ;
2828  return 0;
2829}
2830_ACEOF
2831ac_clean_files_save=$ac_clean_files
2832ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2833# Try to create an executable without -o first, disregard a.out.
2834# It will help us diagnose broken compilers, and finding out an intuition
2835# of exeext.
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2837$as_echo_n "checking for C compiler default output file name... " >&6; }
2838ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2839
2840# The possible output files:
2841ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2842
2843ac_rmfiles=
2844for ac_file in $ac_files
2845do
2846  case $ac_file in
2847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2848    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2849  esac
2850done
2851rm -f $ac_rmfiles
2852
2853if { { ac_try="$ac_link_default"
2854case "(($ac_try" in
2855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856  *) ac_try_echo=$ac_try;;
2857esac
2858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859$as_echo "$ac_try_echo"; } >&5
2860  (eval "$ac_link_default") 2>&5
2861  ac_status=$?
2862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2863  test $ac_status = 0; }; then :
2864  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2865# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2866# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2867# so that the user can short-circuit this test for compilers unknown to
2868# Autoconf.
2869for ac_file in $ac_files ''
2870do
2871  test -f "$ac_file" || continue
2872  case $ac_file in
2873    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2874        ;;
2875    [ab].out )
2876        # We found the default executable, but exeext='' is most
2877        # certainly right.
2878        break;;
2879    *.* )
2880        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2881        then :; else
2882           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2883        fi
2884        # We set ac_cv_exeext here because the later test for it is not
2885        # safe: cross compilers may not add the suffix if given an `-o'
2886        # argument, so we may need to know it at that point already.
2887        # Even if this section looks crufty: it has the advantage of
2888        # actually working.
2889        break;;
2890    * )
2891        break;;
2892  esac
2893done
2894test "$ac_cv_exeext" = no && ac_cv_exeext=
2895
2896else
2897  ac_file=''
2898fi
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2900$as_echo "$ac_file" >&6; }
2901if test -z "$ac_file"; then :
2902  $as_echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907{ as_fn_set_status 77
2908as_fn_error "C compiler cannot create executables
2909See \`config.log' for more details." "$LINENO" 5; }; }
2910fi
2911ac_exeext=$ac_cv_exeext
2912
2913# Check that the compiler produces executables we can run.  If not, either
2914# the compiler is broken, or we cross compile.
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2916$as_echo_n "checking whether the C compiler works... " >&6; }
2917# If not cross compiling, check that we can run a simple program.
2918if test "$cross_compiling" != yes; then
2919  if { ac_try='./$ac_file'
2920  { { case "(($ac_try" in
2921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922  *) ac_try_echo=$ac_try;;
2923esac
2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925$as_echo "$ac_try_echo"; } >&5
2926  (eval "$ac_try") 2>&5
2927  ac_status=$?
2928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929  test $ac_status = 0; }; }; then
2930    cross_compiling=no
2931  else
2932    if test "$cross_compiling" = maybe; then
2933        cross_compiling=yes
2934    else
2935        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937as_fn_error "cannot run C compiled programs.
2938If you meant to cross compile, use \`--host'.
2939See \`config.log' for more details." "$LINENO" 5; }
2940    fi
2941  fi
2942fi
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2944$as_echo "yes" >&6; }
2945
2946rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2947ac_clean_files=$ac_clean_files_save
2948# Check that the compiler produces executables we can run.  If not, either
2949# the compiler is broken, or we cross compile.
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2951$as_echo_n "checking whether we are cross compiling... " >&6; }
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2953$as_echo "$cross_compiling" >&6; }
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2956$as_echo_n "checking for suffix of executables... " >&6; }
2957if { { ac_try="$ac_link"
2958case "(($ac_try" in
2959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960  *) ac_try_echo=$ac_try;;
2961esac
2962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2963$as_echo "$ac_try_echo"; } >&5
2964  (eval "$ac_link") 2>&5
2965  ac_status=$?
2966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967  test $ac_status = 0; }; then :
2968  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2969# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2970# work properly (i.e., refer to `conftest.exe'), while it won't with
2971# `rm'.
2972for ac_file in conftest.exe conftest conftest.*; do
2973  test -f "$ac_file" || continue
2974  case $ac_file in
2975    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2976    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977          break;;
2978    * ) break;;
2979  esac
2980done
2981else
2982  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984as_fn_error "cannot compute suffix of executables: cannot compile and link
2985See \`config.log' for more details." "$LINENO" 5; }
2986fi
2987rm -f conftest$ac_cv_exeext
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2989$as_echo "$ac_cv_exeext" >&6; }
2990
2991rm -f conftest.$ac_ext
2992EXEEXT=$ac_cv_exeext
2993ac_exeext=$EXEEXT
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2995$as_echo_n "checking for suffix of object files... " >&6; }
2996if test "${ac_cv_objext+set}" = set; then :
2997  $as_echo_n "(cached) " >&6
2998else
2999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010rm -f conftest.o conftest.obj
3011if { { ac_try="$ac_compile"
3012case "(($ac_try" in
3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014  *) ac_try_echo=$ac_try;;
3015esac
3016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017$as_echo "$ac_try_echo"; } >&5
3018  (eval "$ac_compile") 2>&5
3019  ac_status=$?
3020  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021  test $ac_status = 0; }; then :
3022  for ac_file in conftest.o conftest.obj conftest.*; do
3023  test -f "$ac_file" || continue;
3024  case $ac_file in
3025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3026    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3027       break;;
3028  esac
3029done
3030else
3031  $as_echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3036as_fn_error "cannot compute suffix of object files: cannot compile
3037See \`config.log' for more details." "$LINENO" 5; }
3038fi
3039rm -f conftest.$ac_cv_objext conftest.$ac_ext
3040fi
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3042$as_echo "$ac_cv_objext" >&6; }
3043OBJEXT=$ac_cv_objext
3044ac_objext=$OBJEXT
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3046$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3047if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3048  $as_echo_n "(cached) " >&6
3049else
3050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051/* end confdefs.h.  */
3052
3053int
3054main ()
3055{
3056#ifndef __GNUC__
3057       choke me
3058#endif
3059
3060  ;
3061  return 0;
3062}
3063_ACEOF
3064if ac_fn_c_try_compile "$LINENO"; then :
3065  ac_compiler_gnu=yes
3066else
3067  ac_compiler_gnu=no
3068fi
3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3070ac_cv_c_compiler_gnu=$ac_compiler_gnu
3071
3072fi
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3074$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3075if test $ac_compiler_gnu = yes; then
3076  GCC=yes
3077else
3078  GCC=
3079fi
3080ac_test_CFLAGS=${CFLAGS+set}
3081ac_save_CFLAGS=$CFLAGS
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3083$as_echo_n "checking whether $CC accepts -g... " >&6; }
3084if test "${ac_cv_prog_cc_g+set}" = set; then :
3085  $as_echo_n "(cached) " >&6
3086else
3087  ac_save_c_werror_flag=$ac_c_werror_flag
3088   ac_c_werror_flag=yes
3089   ac_cv_prog_cc_g=no
3090   CFLAGS="-g"
3091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092/* end confdefs.h.  */
3093
3094int
3095main ()
3096{
3097
3098  ;
3099  return 0;
3100}
3101_ACEOF
3102if ac_fn_c_try_compile "$LINENO"; then :
3103  ac_cv_prog_cc_g=yes
3104else
3105  CFLAGS=""
3106      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107/* end confdefs.h.  */
3108
3109int
3110main ()
3111{
3112
3113  ;
3114  return 0;
3115}
3116_ACEOF
3117if ac_fn_c_try_compile "$LINENO"; then :
3118
3119else
3120  ac_c_werror_flag=$ac_save_c_werror_flag
3121         CFLAGS="-g"
3122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123/* end confdefs.h.  */
3124
3125int
3126main ()
3127{
3128
3129  ;
3130  return 0;
3131}
3132_ACEOF
3133if ac_fn_c_try_compile "$LINENO"; then :
3134  ac_cv_prog_cc_g=yes
3135fi
3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137fi
3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139fi
3140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3141   ac_c_werror_flag=$ac_save_c_werror_flag
3142fi
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3144$as_echo "$ac_cv_prog_cc_g" >&6; }
3145if test "$ac_test_CFLAGS" = set; then
3146  CFLAGS=$ac_save_CFLAGS
3147elif test $ac_cv_prog_cc_g = yes; then
3148  if test "$GCC" = yes; then
3149    CFLAGS="-g -O2"
3150  else
3151    CFLAGS="-g"
3152  fi
3153else
3154  if test "$GCC" = yes; then
3155    CFLAGS="-O2"
3156  else
3157    CFLAGS=
3158  fi
3159fi
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3161$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3162if test "${ac_cv_prog_cc_c89+set}" = set; then :
3163  $as_echo_n "(cached) " >&6
3164else
3165  ac_cv_prog_cc_c89=no
3166ac_save_CC=$CC
3167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h.  */
3169#include <stdarg.h>
3170#include <stdio.h>
3171#include <sys/types.h>
3172#include <sys/stat.h>
3173/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3174struct buf { int x; };
3175FILE * (*rcsopen) (struct buf *, struct stat *, int);
3176static char *e (p, i)
3177     char **p;
3178     int i;
3179{
3180  return p[i];
3181}
3182static char *f (char * (*g) (char **, int), char **p, ...)
3183{
3184  char *s;
3185  va_list v;
3186  va_start (v,p);
3187  s = g (p, va_arg (v,int));
3188  va_end (v);
3189  return s;
3190}
3191
3192/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3193   function prototypes and stuff, but not '\xHH' hex character constants.
3194   These don't provoke an error unfortunately, instead are silently treated
3195   as 'x'.  The following induces an error, until -std is added to get
3196   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3197   array size at least.  It's necessary to write '\x00'==0 to get something
3198   that's true only with -std.  */
3199int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3200
3201/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3202   inside strings and character constants.  */
3203#define FOO(x) 'x'
3204int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3205
3206int test (int i, double x);
3207struct s1 {int (*f) (int a);};
3208struct s2 {int (*f) (double a);};
3209int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3210int argc;
3211char **argv;
3212int
3213main ()
3214{
3215return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3216  ;
3217  return 0;
3218}
3219_ACEOF
3220for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3221        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3222do
3223  CC="$ac_save_CC $ac_arg"
3224  if ac_fn_c_try_compile "$LINENO"; then :
3225  ac_cv_prog_cc_c89=$ac_arg
3226fi
3227rm -f core conftest.err conftest.$ac_objext
3228  test "x$ac_cv_prog_cc_c89" != "xno" && break
3229done
3230rm -f conftest.$ac_ext
3231CC=$ac_save_CC
3232
3233fi
3234# AC_CACHE_VAL
3235case "x$ac_cv_prog_cc_c89" in
3236  x)
3237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3238$as_echo "none needed" >&6; } ;;
3239  xno)
3240    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3241$as_echo "unsupported" >&6; } ;;
3242  *)
3243    CC="$CC $ac_cv_prog_cc_c89"
3244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3245$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3246esac
3247if test "x$ac_cv_prog_cc_c89" != xno; then :
3248
3249fi
3250
3251ac_ext=c
3252ac_cpp='$CPP $CPPFLAGS'
3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
3257
3258
3259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3265$as_echo_n "checking how to run the C preprocessor... " >&6; }
3266# On Suns, sometimes $CPP names a directory.
3267if test -n "$CPP" && test -d "$CPP"; then
3268  CPP=
3269fi
3270if test -z "$CPP"; then
3271  if test "${ac_cv_prog_CPP+set}" = set; then :
3272  $as_echo_n "(cached) " >&6
3273else
3274      # Double quotes because CPP needs to be expanded
3275    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3276    do
3277      ac_preproc_ok=false
3278for ac_c_preproc_warn_flag in '' yes
3279do
3280  # Use a header file that comes with gcc, so configuring glibc
3281  # with a fresh cross-compiler works.
3282  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3283  # <limits.h> exists even on freestanding compilers.
3284  # On the NeXT, cc -E runs the code through the compiler's parser,
3285  # not just through cpp. "Syntax error" is here to catch this case.
3286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h.  */
3288#ifdef __STDC__
3289# include <limits.h>
3290#else
3291# include <assert.h>
3292#endif
3293                     Syntax error
3294_ACEOF
3295if ac_fn_c_try_cpp "$LINENO"; then :
3296
3297else
3298  # Broken: fails on valid input.
3299continue
3300fi
3301rm -f conftest.err conftest.$ac_ext
3302
3303  # OK, works on sane cases.  Now check whether nonexistent headers
3304  # can be detected and how.
3305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306/* end confdefs.h.  */
3307#include <ac_nonexistent.h>
3308_ACEOF
3309if ac_fn_c_try_cpp "$LINENO"; then :
3310  # Broken: success on invalid input.
3311continue
3312else
3313  # Passes both tests.
3314ac_preproc_ok=:
3315break
3316fi
3317rm -f conftest.err conftest.$ac_ext
3318
3319done
3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321rm -f conftest.err conftest.$ac_ext
3322if $ac_preproc_ok; then :
3323  break
3324fi
3325
3326    done
3327    ac_cv_prog_CPP=$CPP
3328
3329fi
3330  CPP=$ac_cv_prog_CPP
3331else
3332  ac_cv_prog_CPP=$CPP
3333fi
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3335$as_echo "$CPP" >&6; }
3336ac_preproc_ok=false
3337for ac_c_preproc_warn_flag in '' yes
3338do
3339  # Use a header file that comes with gcc, so configuring glibc
3340  # with a fresh cross-compiler works.
3341  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342  # <limits.h> exists even on freestanding compilers.
3343  # On the NeXT, cc -E runs the code through the compiler's parser,
3344  # not just through cpp. "Syntax error" is here to catch this case.
3345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347#ifdef __STDC__
3348# include <limits.h>
3349#else
3350# include <assert.h>
3351#endif
3352                     Syntax error
3353_ACEOF
3354if ac_fn_c_try_cpp "$LINENO"; then :
3355
3356else
3357  # Broken: fails on valid input.
3358continue
3359fi
3360rm -f conftest.err conftest.$ac_ext
3361
3362  # OK, works on sane cases.  Now check whether nonexistent headers
3363  # can be detected and how.
3364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h.  */
3366#include <ac_nonexistent.h>
3367_ACEOF
3368if ac_fn_c_try_cpp "$LINENO"; then :
3369  # Broken: success on invalid input.
3370continue
3371else
3372  # Passes both tests.
3373ac_preproc_ok=:
3374break
3375fi
3376rm -f conftest.err conftest.$ac_ext
3377
3378done
3379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380rm -f conftest.err conftest.$ac_ext
3381if $ac_preproc_ok; then :
3382
3383else
3384  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386as_fn_error "C preprocessor \"$CPP\" fails sanity check
3387See \`config.log' for more details." "$LINENO" 5; }
3388fi
3389
3390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395
3396
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3398$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3399if test "${ac_cv_path_GREP+set}" = set; then :
3400  $as_echo_n "(cached) " >&6
3401else
3402  if test -z "$GREP"; then
3403  ac_path_GREP_found=false
3404  # Loop through the user's path and test for each of PROGNAME-LIST
3405  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3407do
3408  IFS=$as_save_IFS
3409  test -z "$as_dir" && as_dir=.
3410    for ac_prog in grep ggrep; do
3411    for ac_exec_ext in '' $ac_executable_extensions; do
3412      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3413      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3414# Check for GNU ac_path_GREP and select it if it is found.
3415  # Check for GNU $ac_path_GREP
3416case `"$ac_path_GREP" --version 2>&1` in
3417*GNU*)
3418  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3419*)
3420  ac_count=0
3421  $as_echo_n 0123456789 >"conftest.in"
3422  while :
3423  do
3424    cat "conftest.in" "conftest.in" >"conftest.tmp"
3425    mv "conftest.tmp" "conftest.in"
3426    cp "conftest.in" "conftest.nl"
3427    $as_echo 'GREP' >> "conftest.nl"
3428    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3429    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3430    as_fn_arith $ac_count + 1 && ac_count=$as_val
3431    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3432      # Best one so far, save it but keep looking for a better one
3433      ac_cv_path_GREP="$ac_path_GREP"
3434      ac_path_GREP_max=$ac_count
3435    fi
3436    # 10*(2^10) chars as input seems more than enough
3437    test $ac_count -gt 10 && break
3438  done
3439  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3440esac
3441
3442      $ac_path_GREP_found && break 3
3443    done
3444  done
3445  done
3446IFS=$as_save_IFS
3447  if test -z "$ac_cv_path_GREP"; then
3448    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3449  fi
3450else
3451  ac_cv_path_GREP=$GREP
3452fi
3453
3454fi
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3456$as_echo "$ac_cv_path_GREP" >&6; }
3457 GREP="$ac_cv_path_GREP"
3458
3459
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3461$as_echo_n "checking for egrep... " >&6; }
3462if test "${ac_cv_path_EGREP+set}" = set; then :
3463  $as_echo_n "(cached) " >&6
3464else
3465  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3466   then ac_cv_path_EGREP="$GREP -E"
3467   else
3468     if test -z "$EGREP"; then
3469  ac_path_EGREP_found=false
3470  # Loop through the user's path and test for each of PROGNAME-LIST
3471  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3473do
3474  IFS=$as_save_IFS
3475  test -z "$as_dir" && as_dir=.
3476    for ac_prog in egrep; do
3477    for ac_exec_ext in '' $ac_executable_extensions; do
3478      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3479      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3480# Check for GNU ac_path_EGREP and select it if it is found.
3481  # Check for GNU $ac_path_EGREP
3482case `"$ac_path_EGREP" --version 2>&1` in
3483*GNU*)
3484  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3485*)
3486  ac_count=0
3487  $as_echo_n 0123456789 >"conftest.in"
3488  while :
3489  do
3490    cat "conftest.in" "conftest.in" >"conftest.tmp"
3491    mv "conftest.tmp" "conftest.in"
3492    cp "conftest.in" "conftest.nl"
3493    $as_echo 'EGREP' >> "conftest.nl"
3494    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3495    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3496    as_fn_arith $ac_count + 1 && ac_count=$as_val
3497    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3498      # Best one so far, save it but keep looking for a better one
3499      ac_cv_path_EGREP="$ac_path_EGREP"
3500      ac_path_EGREP_max=$ac_count
3501    fi
3502    # 10*(2^10) chars as input seems more than enough
3503    test $ac_count -gt 10 && break
3504  done
3505  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3506esac
3507
3508      $ac_path_EGREP_found && break 3
3509    done
3510  done
3511  done
3512IFS=$as_save_IFS
3513  if test -z "$ac_cv_path_EGREP"; then
3514    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3515  fi
3516else
3517  ac_cv_path_EGREP=$EGREP
3518fi
3519
3520   fi
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3523$as_echo "$ac_cv_path_EGREP" >&6; }
3524 EGREP="$ac_cv_path_EGREP"
3525
3526
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3528$as_echo_n "checking for ANSI C header files... " >&6; }
3529if test "${ac_cv_header_stdc+set}" = set; then :
3530  $as_echo_n "(cached) " >&6
3531else
3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534#include <stdlib.h>
3535#include <stdarg.h>
3536#include <string.h>
3537#include <float.h>
3538
3539int
3540main ()
3541{
3542
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547if ac_fn_c_try_compile "$LINENO"; then :
3548  ac_cv_header_stdc=yes
3549else
3550  ac_cv_header_stdc=no
3551fi
3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553
3554if test $ac_cv_header_stdc = yes; then
3555  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558#include <string.h>
3559
3560_ACEOF
3561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562  $EGREP "memchr" >/dev/null 2>&1; then :
3563
3564else
3565  ac_cv_header_stdc=no
3566fi
3567rm -f conftest*
3568
3569fi
3570
3571if test $ac_cv_header_stdc = yes; then
3572  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575#include <stdlib.h>
3576
3577_ACEOF
3578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3579  $EGREP "free" >/dev/null 2>&1; then :
3580
3581else
3582  ac_cv_header_stdc=no
3583fi
3584rm -f conftest*
3585
3586fi
3587
3588if test $ac_cv_header_stdc = yes; then
3589  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3590  if test "$cross_compiling" = yes; then :
3591  :
3592else
3593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595#include <ctype.h>
3596#include <stdlib.h>
3597#if ((' ' & 0x0FF) == 0x020)
3598# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3599# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3600#else
3601# define ISLOWER(c) \
3602                   (('a' <= (c) && (c) <= 'i') \
3603                     || ('j' <= (c) && (c) <= 'r') \
3604                     || ('s' <= (c) && (c) <= 'z'))
3605# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3606#endif
3607
3608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3609int
3610main ()
3611{
3612  int i;
3613  for (i = 0; i < 256; i++)
3614    if (XOR (islower (i), ISLOWER (i))
3615        || toupper (i) != TOUPPER (i))
3616      return 2;
3617  return 0;
3618}
3619_ACEOF
3620if ac_fn_c_try_run "$LINENO"; then :
3621
3622else
3623  ac_cv_header_stdc=no
3624fi
3625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3626  conftest.$ac_objext conftest.beam conftest.$ac_ext
3627fi
3628
3629fi
3630fi
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3632$as_echo "$ac_cv_header_stdc" >&6; }
3633if test $ac_cv_header_stdc = yes; then
3634
3635$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3636
3637fi
3638
3639# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3640for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3641                  inttypes.h stdint.h unistd.h
3642do :
3643  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3644ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3645"
3646eval as_val=\$$as_ac_Header
3647   if test "x$as_val" = x""yes; then :
3648  cat >>confdefs.h <<_ACEOF
3649#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3650_ACEOF
3651
3652fi
3653
3654done
3655
3656
3657
3658
3659    # Step 0.a: Enable 64 bit support?
3660
3661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5
3662$as_echo_n "checking if 64bit support is requested... " >&6; }
3663    # Check whether --enable-64bit was given.
3664if test "${enable_64bit+set}" = set; then :
3665  enableval=$enable_64bit; do64bit=$enableval
3666else
3667  do64bit=no
3668fi
3669
3670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5
3671$as_echo "$do64bit" >&6; }
3672
3673    # Step 0.b: Enable Solaris 64 bit VIS support?
3674
3675    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5
3676$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; }
3677    # Check whether --enable-64bit-vis was given.
3678if test "${enable_64bit_vis+set}" = set; then :
3679  enableval=$enable_64bit_vis; do64bitVIS=$enableval
3680else
3681  do64bitVIS=no
3682fi
3683
3684    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5
3685$as_echo "$do64bitVIS" >&6; }
3686
3687    if test "$do64bitVIS" = "yes"; then
3688        # Force 64bit on with VIS
3689        do64bit=yes
3690    fi
3691
3692    # Step 1: set the variable "system" to hold the name and version number
3693    # for the system.
3694
3695
3696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5
3697$as_echo_n "checking system version... " >&6; }
3698if test "${tcl_cv_sys_version+set}" = set; then :
3699  $as_echo_n "(cached) " >&6
3700else
3701
3702        if test -f /usr/lib/NextStep/software_version; then
3703            tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version`
3704        else
3705            tcl_cv_sys_version=`uname -s`-`uname -r`
3706            if test "$?" -ne 0 ; then
3707                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5
3708$as_echo "$as_me: WARNING: can't find uname command" >&2;}
3709                tcl_cv_sys_version=unknown
3710            else
3711                # Special check for weird MP-RAS system (uname returns weird
3712                # results, and the version is kept in special file).
3713
3714                if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
3715                    tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid`
3716                fi
3717                if test "`uname -s`" = "AIX" ; then
3718                    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
3719                fi
3720            fi
3721        fi
3722
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5
3725$as_echo "$tcl_cv_sys_version" >&6; }
3726    system=$tcl_cv_sys_version
3727
3728
3729    # Step 2: check for existence of -ldl library.  This is needed because
3730    # Linux can use either -ldl or -ldld for dynamic loading.
3731
3732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3733$as_echo_n "checking for dlopen in -ldl... " >&6; }
3734if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3735  $as_echo_n "(cached) " >&6
3736else
3737  ac_check_lib_save_LIBS=$LIBS
3738LIBS="-ldl  $LIBS"
3739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h.  */
3741
3742/* Override any GCC internal prototype to avoid an error.
3743   Use char because int might match the return type of a GCC
3744   builtin and then its argument prototype would still apply.  */
3745#ifdef __cplusplus
3746extern "C"
3747#endif
3748char dlopen ();
3749int
3750main ()
3751{
3752return dlopen ();
3753  ;
3754  return 0;
3755}
3756_ACEOF
3757if ac_fn_c_try_link "$LINENO"; then :
3758  ac_cv_lib_dl_dlopen=yes
3759else
3760  ac_cv_lib_dl_dlopen=no
3761fi
3762rm -f core conftest.err conftest.$ac_objext \
3763    conftest$ac_exeext conftest.$ac_ext
3764LIBS=$ac_check_lib_save_LIBS
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3767$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3768if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3769  have_dl=yes
3770else
3771  have_dl=no
3772fi
3773
3774
3775    # Require ranlib early so we can override it in special cases below.
3776
3777
3778
3779    # Step 3: set configuration options based on system name and version.
3780
3781    do64bit_ok=no
3782    LDFLAGS_ORIG="$LDFLAGS"
3783    TCL_EXPORT_FILE_SUFFIX=""
3784    UNSHARED_LIB_SUFFIX=""
3785    TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
3786    ECHO_VERSION='`echo ${VERSION}`'
3787    TCL_LIB_VERSIONS_OK=ok
3788    CFLAGS_DEBUG=-g
3789    CFLAGS_OPTIMIZE=-O
3790    if test "$GCC" = "yes" ; then
3791        CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing"
3792    else
3793        CFLAGS_WARNING=""
3794    fi
3795    TCL_NEEDS_EXP_FILE=0
3796    TCL_BUILD_EXP_FILE=""
3797    TCL_EXP_FILE=""
3798    # Extract the first word of "ar", so it can be a program name with args.
3799set dummy ar; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
3802if test "${ac_cv_prog_AR+set}" = set; then :
3803  $as_echo_n "(cached) " >&6
3804else
3805  if test -n "$AR"; then
3806  ac_cv_prog_AR="$AR" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811  IFS=$as_save_IFS
3812  test -z "$as_dir" && as_dir=.
3813    for ac_exec_ext in '' $ac_executable_extensions; do
3814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815    ac_cv_prog_AR="ar"
3816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817    break 2
3818  fi
3819done
3820  done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825AR=$ac_cv_prog_AR
3826if test -n "$AR"; then
3827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3828$as_echo "$AR" >&6; }
3829else
3830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834
3835    if test "${AR}" = "" ; then
3836        as_fn_error "Required archive tool 'ar' not found on PATH." "$LINENO" 5
3837    fi
3838    STLIB_LD='${AR} cr'
3839    LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH"
3840    PLAT_OBJS=""
3841    PLAT_SRCS=""
3842    case $system in
3843        AIX-*)
3844            if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then
3845                # AIX requires the _r compiler when gcc isn't being used
3846                case "${CC}" in
3847                    *_r)
3848                        # ok ...
3849                        ;;
3850                    *)
3851                        CC=${CC}_r
3852                        ;;
3853                esac
3854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
3855$as_echo "Using $CC for compiling with threads" >&6; }
3856            fi
3857            LIBS="$LIBS -lc"
3858            SHLIB_CFLAGS=""
3859            # Note: need the LIBS below, otherwise Tk won't find Tcl's
3860            # symbols when dynamically loaded into tclsh.
3861            SHLIB_LD_LIBS='${LIBS}'
3862            SHLIB_SUFFIX=".so"
3863
3864            DL_OBJS="tclLoadDl.o"
3865            LD_LIBRARY_PATH_VAR="LIBPATH"
3866
3867            # Check to enable 64-bit flags for compiler/linker on AIX 4+
3868            if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then
3869                if test "$GCC" = "yes" ; then
3870                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
3871$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
3872                else
3873                    do64bit_ok=yes
3874                    CFLAGS="$CFLAGS -q64"
3875                    LDFLAGS="$LDFLAGS -q64"
3876                    RANLIB="${RANLIB} -X64"
3877                    AR="${AR} -X64"
3878                    SHLIB_LD_FLAGS="-b64"
3879                fi
3880            fi
3881
3882            if test "`uname -m`" = "ia64" ; then
3883                # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC
3884                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
3885                # AIX-5 has dl* in libc.so
3886                DL_LIBS=""
3887                if test "$GCC" = "yes" ; then
3888                    CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
3889                else
3890                    CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
3891                fi
3892                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
3893            else
3894                if test "$GCC" = "yes" ; then
3895                    SHLIB_LD="gcc -shared"
3896                else
3897                    SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry"
3898                fi
3899                SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}"
3900                DL_LIBS="-ldl"
3901                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
3902                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
3903                TCL_NEEDS_EXP_FILE=1
3904                TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp'
3905            fi
3906
3907            # AIX v<=4.1 has some different flags than 4.2+
3908            if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
3909                LIBOBJS="$LIBOBJS tclLoadAix.o"
3910                DL_LIBS="-lld"
3911            fi
3912
3913            # On AIX <=v4 systems, libbsd.a has to be linked in to support
3914            # non-blocking file IO.  This library has to be linked in after
3915            # the MATH_LIBS or it breaks the pow() function.  The way to
3916            # insure proper sequencing, is to add it to the tail of MATH_LIBS.
3917            # This library also supplies gettimeofday.
3918            #
3919            # AIX does not have a timezone field in struct tm. When the AIX
3920            # bsd library is used, the timezone global and the gettimeofday
3921            # methods are to be avoided for timezone deduction instead, we
3922            # deduce the timezone by comparing the localtime result on a
3923            # known GMT value.
3924
3925            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5
3926$as_echo_n "checking for gettimeofday in -lbsd... " >&6; }
3927if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then :
3928  $as_echo_n "(cached) " >&6
3929else
3930  ac_check_lib_save_LIBS=$LIBS
3931LIBS="-lbsd  $LIBS"
3932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934
3935/* Override any GCC internal prototype to avoid an error.
3936   Use char because int might match the return type of a GCC
3937   builtin and then its argument prototype would still apply.  */
3938#ifdef __cplusplus
3939extern "C"
3940#endif
3941char gettimeofday ();
3942int
3943main ()
3944{
3945return gettimeofday ();
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950if ac_fn_c_try_link "$LINENO"; then :
3951  ac_cv_lib_bsd_gettimeofday=yes
3952else
3953  ac_cv_lib_bsd_gettimeofday=no
3954fi
3955rm -f core conftest.err conftest.$ac_objext \
3956    conftest$ac_exeext conftest.$ac_ext
3957LIBS=$ac_check_lib_save_LIBS
3958fi
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5
3960$as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; }
3961if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then :
3962  libbsd=yes
3963else
3964  libbsd=no
3965fi
3966
3967            if test $libbsd = yes; then
3968                MATH_LIBS="$MATH_LIBS -lbsd"
3969                $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h
3970
3971            fi
3972            ;;
3973        BeOS*)
3974            SHLIB_CFLAGS="-fPIC"
3975            SHLIB_LD="${CC} -nostart"
3976            SHLIB_LD_LIBS='${LIBS}'
3977            SHLIB_SUFFIX=".so"
3978            DL_OBJS="tclLoadDl.o"
3979            DL_LIBS="-ldl"
3980
3981            #-----------------------------------------------------------
3982            # Check for inet_ntoa in -lbind, for BeOS (which also needs
3983            # -lsocket, even if the network functions are in -lnet which
3984            # is always linked to, for compatibility.
3985            #-----------------------------------------------------------
3986            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5
3987$as_echo_n "checking for inet_ntoa in -lbind... " >&6; }
3988if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then :
3989  $as_echo_n "(cached) " >&6
3990else
3991  ac_check_lib_save_LIBS=$LIBS
3992LIBS="-lbind  $LIBS"
3993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h.  */
3995
3996/* Override any GCC internal prototype to avoid an error.
3997   Use char because int might match the return type of a GCC
3998   builtin and then its argument prototype would still apply.  */
3999#ifdef __cplusplus
4000extern "C"
4001#endif
4002char inet_ntoa ();
4003int
4004main ()
4005{
4006return inet_ntoa ();
4007  ;
4008  return 0;
4009}
4010_ACEOF
4011if ac_fn_c_try_link "$LINENO"; then :
4012  ac_cv_lib_bind_inet_ntoa=yes
4013else
4014  ac_cv_lib_bind_inet_ntoa=no
4015fi
4016rm -f core conftest.err conftest.$ac_objext \
4017    conftest$ac_exeext conftest.$ac_ext
4018LIBS=$ac_check_lib_save_LIBS
4019fi
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5
4021$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; }
4022if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then :
4023  LIBS="$LIBS -lbind -lsocket"
4024fi
4025
4026            ;;
4027        BSD/OS-2.1*|BSD/OS-3*)
4028            SHLIB_CFLAGS=""
4029            SHLIB_LD="shlicc -r"
4030            SHLIB_LD_LIBS='${LIBS}'
4031            SHLIB_SUFFIX=".so"
4032            DL_OBJS="tclLoadDl.o"
4033            DL_LIBS="-ldl"
4034            CC_SEARCH_FLAGS=""
4035            LD_SEARCH_FLAGS=""
4036            ;;
4037        BSD/OS-4.*)
4038            SHLIB_CFLAGS="-export-dynamic -fPIC"
4039            SHLIB_LD="cc -shared"
4040            SHLIB_LD_LIBS='${LIBS}'
4041            SHLIB_SUFFIX=".so"
4042            DL_OBJS="tclLoadDl.o"
4043            DL_LIBS="-ldl"
4044            LDFLAGS="$LDFLAGS -export-dynamic"
4045            CC_SEARCH_FLAGS=""
4046            LD_SEARCH_FLAGS=""
4047            ;;
4048        dgux*)
4049            SHLIB_CFLAGS="-K PIC"
4050            SHLIB_LD="cc -G"
4051            SHLIB_LD_LIBS=""
4052            SHLIB_SUFFIX=".so"
4053            DL_OBJS="tclLoadDl.o"
4054            DL_LIBS="-ldl"
4055            CC_SEARCH_FLAGS=""
4056            LD_SEARCH_FLAGS=""
4057            ;;
4058        HP-UX-*.11.*)
4059            # Use updated header definitions where possible
4060            $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
4061          # Use the XOPEN network library
4062            $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4063 # Use the XOPEN network library
4064            LIBS="$LIBS -lxnet"               # Use the XOPEN network library
4065
4066            if test "`uname -m`" = "ia64" ; then
4067                SHLIB_SUFFIX=".so"
4068            else
4069                SHLIB_SUFFIX=".sl"
4070            fi
4071            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4072$as_echo_n "checking for shl_load in -ldld... " >&6; }
4073if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
4074  $as_echo_n "(cached) " >&6
4075else
4076  ac_check_lib_save_LIBS=$LIBS
4077LIBS="-ldld  $LIBS"
4078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080
4081/* Override any GCC internal prototype to avoid an error.
4082   Use char because int might match the return type of a GCC
4083   builtin and then its argument prototype would still apply.  */
4084#ifdef __cplusplus
4085extern "C"
4086#endif
4087char shl_load ();
4088int
4089main ()
4090{
4091return shl_load ();
4092  ;
4093  return 0;
4094}
4095_ACEOF
4096if ac_fn_c_try_link "$LINENO"; then :
4097  ac_cv_lib_dld_shl_load=yes
4098else
4099  ac_cv_lib_dld_shl_load=no
4100fi
4101rm -f core conftest.err conftest.$ac_objext \
4102    conftest$ac_exeext conftest.$ac_ext
4103LIBS=$ac_check_lib_save_LIBS
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4106$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4107if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
4108  tcl_ok=yes
4109else
4110  tcl_ok=no
4111fi
4112
4113            if test "$tcl_ok" = yes; then
4114                SHLIB_CFLAGS="+z"
4115                SHLIB_LD="ld -b"
4116                SHLIB_LD_LIBS='${LIBS}'
4117                DL_OBJS="tclLoadShl.o"
4118                DL_LIBS="-ldld"
4119                LDFLAGS="$LDFLAGS -Wl,-E"
4120                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4121                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4122                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4123            fi
4124            if test "$GCC" = "yes" ; then
4125                SHLIB_LD="gcc -shared"
4126                SHLIB_LD_LIBS='${LIBS}'
4127                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4128            fi
4129
4130            # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc
4131            #CFLAGS="$CFLAGS +DAportable"
4132
4133            # Check to enable 64-bit flags for compiler/linker
4134            if test "$do64bit" = "yes" ; then
4135                if test "$GCC" = "yes" ; then
4136                    hpux_arch=`${CC} -dumpmachine`
4137                    case $hpux_arch in
4138                        hppa64*)
4139                            # 64-bit gcc in use.  Fix flags for GNU ld.
4140                            do64bit_ok=yes
4141                            SHLIB_LD="${CC} -shared"
4142                            SHLIB_LD_LIBS='${LIBS}'
4143                            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4144                            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4145                            ;;
4146                        *)
4147                            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
4148$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
4149                            ;;
4150                    esac
4151                else
4152                    do64bit_ok=yes
4153                    CFLAGS="$CFLAGS +DD64"
4154                    LDFLAGS="$LDFLAGS +DD64"
4155                fi
4156            fi
4157            ;;
4158        HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*)
4159            SHLIB_SUFFIX=".sl"
4160            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
4161$as_echo_n "checking for shl_load in -ldld... " >&6; }
4162if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  ac_check_lib_save_LIBS=$LIBS
4166LIBS="-ldld  $LIBS"
4167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h.  */
4169
4170/* Override any GCC internal prototype to avoid an error.
4171   Use char because int might match the return type of a GCC
4172   builtin and then its argument prototype would still apply.  */
4173#ifdef __cplusplus
4174extern "C"
4175#endif
4176char shl_load ();
4177int
4178main ()
4179{
4180return shl_load ();
4181  ;
4182  return 0;
4183}
4184_ACEOF
4185if ac_fn_c_try_link "$LINENO"; then :
4186  ac_cv_lib_dld_shl_load=yes
4187else
4188  ac_cv_lib_dld_shl_load=no
4189fi
4190rm -f core conftest.err conftest.$ac_objext \
4191    conftest$ac_exeext conftest.$ac_ext
4192LIBS=$ac_check_lib_save_LIBS
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
4195$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
4196if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
4197  tcl_ok=yes
4198else
4199  tcl_ok=no
4200fi
4201
4202            if test "$tcl_ok" = yes; then
4203                SHLIB_CFLAGS="+z"
4204                SHLIB_LD="ld -b"
4205                SHLIB_LD_LIBS=""
4206                DL_OBJS="tclLoadShl.o"
4207                DL_LIBS="-ldld"
4208                LDFLAGS="$LDFLAGS -Wl,-E"
4209                CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.'
4210                LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.'
4211                LD_LIBRARY_PATH_VAR="SHLIB_PATH"
4212            fi
4213            ;;
4214        IRIX-4.*)
4215            SHLIB_CFLAGS="-G 0"
4216            SHLIB_SUFFIX=".a"
4217            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4218            SHLIB_LD_LIBS='${LIBS}'
4219            DL_OBJS="tclLoadAout.o"
4220            DL_LIBS=""
4221            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
4222            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4223            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4224            SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
4225            ;;
4226        IRIX-5.*)
4227            SHLIB_CFLAGS=""
4228            SHLIB_LD="ld -shared -rdata_shared"
4229            SHLIB_LD_LIBS='${LIBS}'
4230            SHLIB_SUFFIX=".so"
4231            DL_OBJS="tclLoadDl.o"
4232            DL_LIBS=""
4233            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4234            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4235            ;;
4236        IRIX-6.*)
4237            SHLIB_CFLAGS=""
4238            SHLIB_LD="ld -n32 -shared -rdata_shared"
4239            SHLIB_LD_LIBS='${LIBS}'
4240            SHLIB_SUFFIX=".so"
4241            DL_OBJS="tclLoadDl.o"
4242            DL_LIBS=""
4243            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4244            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4245            if test "$GCC" = "yes" ; then
4246                CFLAGS="$CFLAGS -mabi=n32"
4247                LDFLAGS="$LDFLAGS -mabi=n32"
4248            else
4249                case $system in
4250                    IRIX-6.3)
4251                        # Use to build 6.2 compatible binaries on 6.3.
4252                        CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS"
4253                        ;;
4254                    *)
4255                        CFLAGS="$CFLAGS -n32"
4256                        ;;
4257                esac
4258                LDFLAGS="$LDFLAGS -n32"
4259            fi
4260            ;;
4261        IRIX64-6.*)
4262            SHLIB_CFLAGS=""
4263            SHLIB_LD="ld -n32 -shared -rdata_shared"
4264            SHLIB_LD_LIBS='${LIBS}'
4265            SHLIB_SUFFIX=".so"
4266            DL_OBJS="tclLoadDl.o"
4267            DL_LIBS=""
4268            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4269            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4270
4271            # Check to enable 64-bit flags for compiler/linker
4272
4273            if test "$do64bit" = "yes" ; then
4274                if test "$GCC" = "yes" ; then
4275                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5
4276$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;}
4277                else
4278                    do64bit_ok=yes
4279                    SHLIB_LD="ld -64 -shared -rdata_shared"
4280                    CFLAGS="$CFLAGS -64"
4281                    LDFLAGS="$LDFLAGS -64"
4282                fi
4283            fi
4284            ;;
4285        Linux*)
4286            SHLIB_CFLAGS="-fPIC"
4287            SHLIB_LD_LIBS='${LIBS}'
4288            SHLIB_SUFFIX=".so"
4289
4290            CFLAGS_OPTIMIZE=-O2
4291            # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
4292            # when you inline the string and math operations.  Turn this off to
4293            # get rid of the warnings.
4294            #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
4295
4296            if test "$have_dl" = yes; then
4297                SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
4298                DL_OBJS="tclLoadDl.o"
4299                DL_LIBS="-ldl"
4300                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4301                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4302                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4303            else
4304                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4305if test "x$ac_cv_header_dld_h" = x""yes; then :
4306
4307                    SHLIB_LD="ld -shared"
4308                    DL_OBJS="tclLoadDld.o"
4309                    DL_LIBS="-ldld"
4310                    CC_SEARCH_FLAGS=""
4311                    LD_SEARCH_FLAGS=""
4312fi
4313
4314
4315            fi
4316            if test "`uname -m`" = "alpha" ; then
4317                CFLAGS="$CFLAGS -mieee"
4318            fi
4319            if test $do64bit = yes; then
4320                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5
4321$as_echo_n "checking if compiler accepts -m64 flag... " >&6; }
4322if test "${tcl_cv_cc_m64+set}" = set; then :
4323  $as_echo_n "(cached) " >&6
4324else
4325
4326                    hold_cflags=$CFLAGS
4327                    CFLAGS="$CFLAGS -m64"
4328                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h.  */
4330
4331int
4332main ()
4333{
4334
4335  ;
4336  return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_link "$LINENO"; then :
4340  tcl_cv_cc_m64=yes
4341else
4342  tcl_cv_cc_m64=no
4343fi
4344rm -f core conftest.err conftest.$ac_objext \
4345    conftest$ac_exeext conftest.$ac_ext
4346                    CFLAGS=$hold_cflags
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5
4349$as_echo "$tcl_cv_cc_m64" >&6; }
4350                if test $tcl_cv_cc_m64 = yes; then
4351                    CFLAGS="$CFLAGS -m64"
4352                    do64bit_ok=yes
4353                fi
4354            fi
4355
4356            # The combo of gcc + glibc has a bug related
4357            # to inlining of functions like strtod(). The
4358            # -fno-builtin flag should address this problem
4359            # but it does not work. The -fno-inline flag
4360            # is kind of overkill but it works.
4361            # Disable inlining only when one of the
4362            # files in compat/*.c is being linked in.
4363            if test x"${LIBOBJS}" != x ; then
4364                CFLAGS="$CFLAGS -fno-inline"
4365            fi
4366
4367            # XIM peeking works under XFree86.
4368            $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h
4369
4370
4371            ;;
4372        GNU*)
4373            SHLIB_CFLAGS="-fPIC"
4374            SHLIB_LD_LIBS='${LIBS}'
4375            SHLIB_SUFFIX=".so"
4376
4377            if test "$have_dl" = yes; then
4378                SHLIB_LD="${CC} -shared"
4379                DL_OBJS=""
4380                DL_LIBS="-ldl"
4381                LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
4382                CC_SEARCH_FLAGS=""
4383                LD_SEARCH_FLAGS=""
4384            else
4385                ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default"
4386if test "x$ac_cv_header_dld_h" = x""yes; then :
4387
4388                    SHLIB_LD="ld -shared"
4389                    DL_OBJS=""
4390                    DL_LIBS="-ldld"
4391                    CC_SEARCH_FLAGS=""
4392                    LD_SEARCH_FLAGS=""
4393fi
4394
4395
4396            fi
4397            if test "`uname -m`" = "alpha" ; then
4398                CFLAGS="$CFLAGS -mieee"
4399            fi
4400            ;;
4401        Lynx*)
4402            SHLIB_CFLAGS="-fPIC"
4403            SHLIB_LD_LIBS='${LIBS}'
4404            SHLIB_SUFFIX=".so"
4405            CFLAGS_OPTIMIZE=-02
4406            SHLIB_LD="${CC} -shared "
4407            DL_OBJS="tclLoadDl.o"
4408            DL_LIBS="-mshared -ldl"
4409            LD_FLAGS="-Wl,--export-dynamic"
4410            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4411            LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4412            ;;
4413        MP-RAS-02*)
4414            SHLIB_CFLAGS="-K PIC"
4415            SHLIB_LD="cc -G"
4416            SHLIB_LD_LIBS=""
4417            SHLIB_SUFFIX=".so"
4418            DL_OBJS="tclLoadDl.o"
4419            DL_LIBS="-ldl"
4420            CC_SEARCH_FLAGS=""
4421            LD_SEARCH_FLAGS=""
4422            ;;
4423        MP-RAS-*)
4424            SHLIB_CFLAGS="-K PIC"
4425            SHLIB_LD="cc -G"
4426            SHLIB_LD_LIBS=""
4427            SHLIB_SUFFIX=".so"
4428            DL_OBJS="tclLoadDl.o"
4429            DL_LIBS="-ldl"
4430            LDFLAGS="$LDFLAGS -Wl,-Bexport"
4431            CC_SEARCH_FLAGS=""
4432            LD_SEARCH_FLAGS=""
4433            ;;
4434        NetBSD-*|FreeBSD-[1-2].*)
4435            # Not available on all versions:  check for include file.
4436            ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
4437if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4438
4439                # NetBSD/SPARC needs -fPIC, -fpic will not do.
4440                SHLIB_CFLAGS="-fPIC"
4441                SHLIB_LD="ld -Bshareable -x"
4442                SHLIB_LD_LIBS='${LIBS}'
4443                SHLIB_SUFFIX=".so"
4444                DL_OBJS="tclLoadDl.o"
4445                DL_LIBS=""
4446                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4447                LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4448                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4449$as_echo_n "checking for ELF... " >&6; }
4450if test "${tcl_cv_ld_elf+set}" = set; then :
4451  $as_echo_n "(cached) " >&6
4452else
4453
4454                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h.  */
4456
4457#ifdef __ELF__
4458        yes
4459#endif
4460
4461_ACEOF
4462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4463  $EGREP "yes" >/dev/null 2>&1; then :
4464  tcl_cv_ld_elf=yes
4465else
4466  tcl_cv_ld_elf=no
4467fi
4468rm -f conftest*
4469
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4472$as_echo "$tcl_cv_ld_elf" >&6; }
4473                if test $tcl_cv_ld_elf = yes; then
4474                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4475                else
4476                    SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4477                fi
4478
4479else
4480
4481                SHLIB_CFLAGS=""
4482                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4483                SHLIB_LD_LIBS='${LIBS}'
4484                SHLIB_SUFFIX=".a"
4485                DL_OBJS="tclLoadAout.o"
4486                DL_LIBS=""
4487                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4488                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4489                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4490
4491fi
4492
4493
4494
4495            # FreeBSD doesn't handle version numbers with dots.
4496
4497            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4498            TCL_LIB_VERSIONS_OK=nodots
4499            ;;
4500        OpenBSD-*)
4501            case `arch -s` in
4502            m88k|vax)
4503                SHLIB_CFLAGS=""
4504                SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
4505                SHLIB_LD_LIBS='${LIBS}'
4506                SHLIB_SUFFIX=".a"
4507                DL_OBJS="tclLoadAout.o"
4508                DL_LIBS=""
4509                LDFLAGS=""
4510                CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4511                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4512                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4513                ;;
4514            *)
4515                # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do.
4516                case `machine` in
4517                sparc|sparc64)
4518                    SHLIB_CFLAGS="-fPIC";;
4519                *)
4520                    SHLIB_CFLAGS="-fpic";;
4521                esac
4522                SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}"
4523                SHLIB_LD_LIBS='${LIBS}'
4524                SHLIB_SUFFIX=".so"
4525                DL_OBJS="tclLoadDl.o"
4526                DL_LIBS=""
4527                CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4528                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4529                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
4530                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5
4531$as_echo_n "checking for ELF... " >&6; }
4532if test "${tcl_cv_ld_elf+set}" = set; then :
4533  $as_echo_n "(cached) " >&6
4534else
4535
4536                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538
4539#ifdef __ELF__
4540        yes
4541#endif
4542
4543_ACEOF
4544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545  $EGREP "yes" >/dev/null 2>&1; then :
4546  tcl_cv_ld_elf=yes
4547else
4548  tcl_cv_ld_elf=no
4549fi
4550rm -f conftest*
4551
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5
4554$as_echo "$tcl_cv_ld_elf" >&6; }
4555                if test $tcl_cv_ld_elf = yes; then
4556                    LDFLAGS=-Wl,-export-dynamic
4557                else
4558                    LDFLAGS=""
4559                fi
4560                ;;
4561            esac
4562
4563            # OpenBSD doesn't do version numbers with dots.
4564            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4565            TCL_LIB_VERSIONS_OK=nodots
4566            ;;
4567        FreeBSD-*)
4568            # FreeBSD 3.* and greater have ELF.
4569            SHLIB_CFLAGS="-fPIC"
4570            SHLIB_LD="ld -Bshareable -x"
4571            SHLIB_LD_LIBS='${LIBS}'
4572            SHLIB_SUFFIX=".so"
4573            DL_OBJS="tclLoadDl.o"
4574            DL_LIBS=""
4575            LDFLAGS="$LDFLAGS -export-dynamic"
4576            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4577            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4578            if test "${TCL_THREADS}" = "1" ; then
4579                # The -pthread needs to go in the CFLAGS, not LIBS
4580                LIBS=`echo $LIBS | sed s/-pthread//`
4581                CFLAGS="$CFLAGS -pthread"
4582                LDFLAGS="$LDFLAGS -pthread"
4583            fi
4584            case $system in
4585            FreeBSD-3.*)
4586                # FreeBSD-3 doesn't handle version numbers with dots.
4587                UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
4588                SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
4589                TCL_LIB_VERSIONS_OK=nodots
4590                ;;
4591            esac
4592            ;;
4593        Darwin-*)
4594            CFLAGS_OPTIMIZE="-Os"
4595            SHLIB_CFLAGS="-fno-common"
4596            # To avoid discrepancies between what headers configure sees during
4597            # preprocessing tests and compiling tests, move any -isysroot and
4598            # -mmacosx-version-min flags from CFLAGS to CPPFLAGS:
4599            CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
4600                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4601                if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`"
4602            CFLAGS="`echo " ${CFLAGS}" | \
4603                awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \
4604                if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`"
4605            if test $do64bit = yes; then
4606                case `arch` in
4607                    ppc)
4608                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5
4609$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; }
4610if test "${tcl_cv_cc_arch_ppc64+set}" = set; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613
4614                            hold_cflags=$CFLAGS
4615                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4616                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618
4619int
4620main ()
4621{
4622
4623  ;
4624  return 0;
4625}
4626_ACEOF
4627if ac_fn_c_try_link "$LINENO"; then :
4628  tcl_cv_cc_arch_ppc64=yes
4629else
4630  tcl_cv_cc_arch_ppc64=no
4631fi
4632rm -f core conftest.err conftest.$ac_objext \
4633    conftest$ac_exeext conftest.$ac_ext
4634                            CFLAGS=$hold_cflags
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5
4637$as_echo "$tcl_cv_cc_arch_ppc64" >&6; }
4638                        if test $tcl_cv_cc_arch_ppc64 = yes; then
4639                            CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5"
4640                            do64bit_ok=yes
4641                        fi;;
4642                    i386)
4643                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5
4644$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; }
4645if test "${tcl_cv_cc_arch_x86_64+set}" = set; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648
4649                            hold_cflags=$CFLAGS
4650                            CFLAGS="$CFLAGS -arch x86_64"
4651                            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652/* end confdefs.h.  */
4653
4654int
4655main ()
4656{
4657
4658  ;
4659  return 0;
4660}
4661_ACEOF
4662if ac_fn_c_try_link "$LINENO"; then :
4663  tcl_cv_cc_arch_x86_64=yes
4664else
4665  tcl_cv_cc_arch_x86_64=no
4666fi
4667rm -f core conftest.err conftest.$ac_objext \
4668    conftest$ac_exeext conftest.$ac_ext
4669                            CFLAGS=$hold_cflags
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5
4672$as_echo "$tcl_cv_cc_arch_x86_64" >&6; }
4673                        if test $tcl_cv_cc_arch_x86_64 = yes; then
4674                            CFLAGS="$CFLAGS -arch x86_64"
4675                            do64bit_ok=yes
4676                        fi;;
4677                    *)
4678                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5
4679$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};;
4680                esac
4681            else
4682                # Check for combined 32-bit and 64-bit fat build
4683                echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \
4684                    echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \
4685                    fat_32_64=yes
4686            fi
4687            SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}'
4688            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
4689$as_echo_n "checking if ld accepts -single_module flag... " >&6; }
4690if test "${tcl_cv_ld_single_module+set}" = set; then :
4691  $as_echo_n "(cached) " >&6
4692else
4693
4694                hold_ldflags=$LDFLAGS
4695                LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
4696                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697/* end confdefs.h.  */
4698
4699int
4700main ()
4701{
4702int i;
4703  ;
4704  return 0;
4705}
4706_ACEOF
4707if ac_fn_c_try_link "$LINENO"; then :
4708  tcl_cv_ld_single_module=yes
4709else
4710  tcl_cv_ld_single_module=no
4711fi
4712rm -f core conftest.err conftest.$ac_objext \
4713    conftest$ac_exeext conftest.$ac_ext
4714                LDFLAGS=$hold_ldflags
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
4717$as_echo "$tcl_cv_ld_single_module" >&6; }
4718            if test $tcl_cv_ld_single_module = yes; then
4719                SHLIB_LD="${SHLIB_LD} -Wl,-single_module"
4720            fi
4721            SHLIB_LD_LIBS='${LIBS}'
4722            SHLIB_SUFFIX=".dylib"
4723            DL_OBJS="tclLoadDyld.o"
4724            DL_LIBS=""
4725            # Don't use -prebind when building for Mac OS X 10.4 or later only:
4726            test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \
4727                "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \
4728                LDFLAGS="$LDFLAGS -prebind"
4729            LDFLAGS="$LDFLAGS -headerpad_max_install_names"
4730            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5
4731$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; }
4732if test "${tcl_cv_ld_search_paths_first+set}" = set; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735
4736                hold_ldflags=$LDFLAGS
4737                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
4738                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740
4741int
4742main ()
4743{
4744int i;
4745  ;
4746  return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_link "$LINENO"; then :
4750  tcl_cv_ld_search_paths_first=yes
4751else
4752  tcl_cv_ld_search_paths_first=no
4753fi
4754rm -f core conftest.err conftest.$ac_objext \
4755    conftest$ac_exeext conftest.$ac_ext
4756                LDFLAGS=$hold_ldflags
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5
4759$as_echo "$tcl_cv_ld_search_paths_first" >&6; }
4760            if test $tcl_cv_ld_search_paths_first = yes; then
4761                LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
4762            fi
4763            CC_SEARCH_FLAGS=""
4764            LD_SEARCH_FLAGS=""
4765            LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH"
4766            PLAT_OBJS=\$\(MAC\_OSX_OBJS\)
4767            PLAT_SRCS=\$\(MAC\_OSX_SRCS\)
4768            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5
4769$as_echo_n "checking whether to use CoreFoundation... " >&6; }
4770            # Check whether --enable-corefoundation was given.
4771if test "${enable_corefoundation+set}" = set; then :
4772  enableval=$enable_corefoundation; tcl_corefoundation=$enableval
4773else
4774  tcl_corefoundation=yes
4775fi
4776
4777            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5
4778$as_echo "$tcl_corefoundation" >&6; }
4779            if test $tcl_corefoundation = yes; then
4780                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5
4781$as_echo_n "checking for CoreFoundation.framework... " >&6; }
4782if test "${tcl_cv_lib_corefoundation+set}" = set; then :
4783  $as_echo_n "(cached) " >&6
4784else
4785
4786                    hold_libs=$LIBS
4787                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
4788                        # On Tiger there is no 64-bit CF, so remove 64-bit archs
4789                        # from CFLAGS et al. while testing for presence of CF.
4790                        # 64-bit CF is disabled in tclUnixPort.h if necessary.
4791                        eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"'
4792                    done; fi
4793                    LIBS="$LIBS -framework CoreFoundation"
4794                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h.  */
4796#include <CoreFoundation/CoreFoundation.h>
4797int
4798main ()
4799{
4800CFBundleRef b = CFBundleGetMainBundle();
4801  ;
4802  return 0;
4803}
4804_ACEOF
4805if ac_fn_c_try_link "$LINENO"; then :
4806  tcl_cv_lib_corefoundation=yes
4807else
4808  tcl_cv_lib_corefoundation=no
4809fi
4810rm -f core conftest.err conftest.$ac_objext \
4811    conftest$ac_exeext conftest.$ac_ext
4812                    if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do
4813                        eval $v'="$hold_'$v'"'
4814                    done; fi; LIBS=$hold_libs
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5
4817$as_echo "$tcl_cv_lib_corefoundation" >&6; }
4818                if test $tcl_cv_lib_corefoundation = yes; then
4819                    LIBS="$LIBS -framework CoreFoundation"
4820                    $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
4821
4822                else
4823                    tcl_corefoundation=no
4824                fi
4825                if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then
4826                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5
4827$as_echo_n "checking for 64-bit CoreFoundation... " >&6; }
4828if test "${tcl_cv_lib_corefoundation_64+set}" = set; then :
4829  $as_echo_n "(cached) " >&6
4830else
4831
4832                        for v in CFLAGS CPPFLAGS LDFLAGS; do
4833                            eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"'
4834                        done
4835                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h.  */
4837#include <CoreFoundation/CoreFoundation.h>
4838int
4839main ()
4840{
4841CFBundleRef b = CFBundleGetMainBundle();
4842  ;
4843  return 0;
4844}
4845_ACEOF
4846if ac_fn_c_try_link "$LINENO"; then :
4847  tcl_cv_lib_corefoundation_64=yes
4848else
4849  tcl_cv_lib_corefoundation_64=no
4850fi
4851rm -f core conftest.err conftest.$ac_objext \
4852    conftest$ac_exeext conftest.$ac_ext
4853                        for v in CFLAGS CPPFLAGS LDFLAGS; do
4854                            eval $v'="$hold_'$v'"'
4855                        done
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5
4858$as_echo "$tcl_cv_lib_corefoundation_64" >&6; }
4859                    if test $tcl_cv_lib_corefoundation_64 = no; then
4860                        $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h
4861
4862                    fi
4863                fi
4864            fi
4865            $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h
4866
4867            ;;
4868        NEXTSTEP-*)
4869            SHLIB_CFLAGS=""
4870            SHLIB_LD="cc -nostdlib -r"
4871            SHLIB_LD_LIBS=""
4872            SHLIB_SUFFIX=".so"
4873            DL_OBJS="tclLoadNext.o"
4874            DL_LIBS=""
4875            CC_SEARCH_FLAGS=""
4876            LD_SEARCH_FLAGS=""
4877            ;;
4878        OS/390-*)
4879            CFLAGS_OPTIMIZE=""          # Optimizer is buggy
4880            $as_echo "#define _OE_SOCKETS 1" >>confdefs.h
4881        # needed in sys/socket.h
4882            ;;
4883        OSF1-1.0|OSF1-1.1|OSF1-1.2)
4884            # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1
4885            SHLIB_CFLAGS=""
4886            # Hack: make package name same as library name
4887            SHLIB_LD='ld -R -export :'
4888            SHLIB_LD_LIBS=""
4889            SHLIB_SUFFIX=".so"
4890            DL_OBJS="tclLoadOSF.o"
4891            DL_LIBS=""
4892            CC_SEARCH_FLAGS=""
4893            LD_SEARCH_FLAGS=""
4894            ;;
4895        OSF1-1.*)
4896            # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2
4897            SHLIB_CFLAGS="-fPIC"
4898            if test "$SHARED_BUILD" = "1" ; then
4899                SHLIB_LD="ld -shared"
4900            else
4901                SHLIB_LD="ld -non_shared"
4902            fi
4903            SHLIB_LD_LIBS=""
4904            SHLIB_SUFFIX=".so"
4905            DL_OBJS="tclLoadDl.o"
4906            DL_LIBS=""
4907            CC_SEARCH_FLAGS=""
4908            LD_SEARCH_FLAGS=""
4909            ;;
4910        OSF1-V*)
4911            # Digital OSF/1
4912            SHLIB_CFLAGS=""
4913            if test "$SHARED_BUILD" = "1" ; then
4914                SHLIB_LD='ld -shared -expect_unresolved "*"'
4915            else
4916                SHLIB_LD='ld -non_shared -expect_unresolved "*"'
4917            fi
4918            SHLIB_LD_LIBS=""
4919            SHLIB_SUFFIX=".so"
4920            DL_OBJS="tclLoadDl.o"
4921            DL_LIBS=""
4922            CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
4923            LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
4924            if test "$GCC" = "yes" ; then
4925                CFLAGS="$CFLAGS -mieee"
4926            else
4927                CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee"
4928            fi
4929            # see pthread_intro(3) for pthread support on osf1, k.furukawa
4930            if test "${TCL_THREADS}" = "1" ; then
4931                CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE"
4932                CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64"
4933                LIBS=`echo $LIBS | sed s/-lpthreads//`
4934                if test "$GCC" = "yes" ; then
4935                    LIBS="$LIBS -lpthread -lmach -lexc"
4936                else
4937                    CFLAGS="$CFLAGS -pthread"
4938                    LDFLAGS="$LDFLAGS -pthread"
4939                fi
4940            fi
4941
4942            ;;
4943        QNX-6*)
4944            # QNX RTP
4945            # This may work for all QNX, but it was only reported for v6.
4946            SHLIB_CFLAGS="-fPIC"
4947            SHLIB_LD="ld -Bshareable -x"
4948            SHLIB_LD_LIBS=""
4949            SHLIB_SUFFIX=".so"
4950            DL_OBJS="tclLoadDl.o"
4951            # dlopen is in -lc on QNX
4952            DL_LIBS=""
4953            CC_SEARCH_FLAGS=""
4954            LD_SEARCH_FLAGS=""
4955            ;;
4956        RISCos-*)
4957            SHLIB_CFLAGS="-G 0"
4958            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
4959            SHLIB_LD_LIBS='${LIBS}'
4960            SHLIB_SUFFIX=".a"
4961            DL_OBJS="tclLoadAout.o"
4962            DL_LIBS=""
4963            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
4964            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
4965            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
4966            ;;
4967        SCO_SV-3.2*)
4968            # Note, dlopen is available only on SCO 3.2.5 and greater. However,
4969            # this test works, since "uname -s" was non-standard in 3.2.4 and
4970            # below.
4971            if test "$GCC" = "yes" ; then
4972                SHLIB_CFLAGS="-fPIC -melf"
4973                LDFLAGS="$LDFLAGS -melf -Wl,-Bexport"
4974            else
4975                SHLIB_CFLAGS="-Kpic -belf"
4976                LDFLAGS="$LDFLAGS -belf -Wl,-Bexport"
4977            fi
4978            SHLIB_LD="ld -G"
4979            SHLIB_LD_LIBS=""
4980            SHLIB_SUFFIX=".so"
4981            DL_OBJS="tclLoadDl.o"
4982            DL_LIBS=""
4983            CC_SEARCH_FLAGS=""
4984            LD_SEARCH_FLAGS=""
4985            ;;
4986        SINIX*5.4*)
4987            SHLIB_CFLAGS="-K PIC"
4988            SHLIB_LD="cc -G"
4989            SHLIB_LD_LIBS=""
4990            SHLIB_SUFFIX=".so"
4991            DL_OBJS="tclLoadDl.o"
4992            DL_LIBS="-ldl"
4993            CC_SEARCH_FLAGS=""
4994            LD_SEARCH_FLAGS=""
4995            ;;
4996        SunOS-4*)
4997            SHLIB_CFLAGS="-PIC"
4998            SHLIB_LD="ld"
4999            SHLIB_LD_LIBS=""
5000            SHLIB_SUFFIX=".so"
5001            DL_OBJS="tclLoadDl.o"
5002            DL_LIBS="-ldl"
5003            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5004            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5005
5006            # SunOS can't handle version numbers with dots in them in library
5007            # specs, like -ltcl7.5, so use -ltcl75 instead.  Also, it
5008            # requires an extra version number at the end of .so file names.
5009            # So, the library has to have a name like libtcl75.so.1.0
5010
5011            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
5012            UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
5013            TCL_LIB_VERSIONS_OK=nodots
5014            ;;
5015        SunOS-5.[0-6])
5016            # Careful to not let 5.10+ fall into this case
5017
5018            # Note: If _REENTRANT isn't defined, then Solaris
5019            # won't define thread-safe library routines.
5020
5021            $as_echo "#define _REENTRANT 1" >>confdefs.h
5022
5023            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5024
5025
5026            SHLIB_CFLAGS="-KPIC"
5027
5028            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5029            # symbols when dynamically loaded into tclsh.
5030
5031            SHLIB_LD_LIBS='${LIBS}'
5032            SHLIB_SUFFIX=".so"
5033            DL_OBJS="tclLoadDl.o"
5034            DL_LIBS="-ldl"
5035            if test "$GCC" = "yes" ; then
5036                SHLIB_LD="$CC -shared"
5037                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5038                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5039            else
5040                SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5041                CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5042                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5043            fi
5044            ;;
5045        SunOS-5*)
5046            # Note: If _REENTRANT isn't defined, then Solaris
5047            # won't define thread-safe library routines.
5048
5049            $as_echo "#define _REENTRANT 1" >>confdefs.h
5050
5051            $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5052
5053
5054            SHLIB_CFLAGS="-KPIC"
5055
5056            # Check to enable 64-bit flags for compiler/linker
5057            if test "$do64bit" = "yes" ; then
5058                arch=`isainfo`
5059                if test "$arch" = "sparcv9 sparc" ; then
5060                        if test "$GCC" = "yes" ; then
5061                            if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then
5062                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5
5063$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;}
5064                            else
5065                                do64bit_ok=yes
5066                                CFLAGS="$CFLAGS -m64 -mcpu=v9"
5067                                LDFLAGS="$LDFLAGS -m64 -mcpu=v9"
5068                                SHLIB_CFLAGS="-fPIC"
5069                            fi
5070                        else
5071                            do64bit_ok=yes
5072                            if test "$do64bitVIS" = "yes" ; then
5073                                CFLAGS="$CFLAGS -xarch=v9a"
5074                                LDFLAGS="$LDFLAGS -xarch=v9a"
5075                            else
5076                                CFLAGS="$CFLAGS -xarch=v9"
5077                                LDFLAGS="$LDFLAGS -xarch=v9"
5078                            fi
5079                            # Solaris 64 uses this as well
5080                            #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64"
5081                        fi
5082                elif test "$arch" = "amd64 i386" ; then
5083                    if test "$GCC" = "yes" ; then
5084                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5
5085$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;}
5086                    else
5087                        do64bit_ok=yes
5088                        CFLAGS="$CFLAGS -xarch=amd64"
5089                        LDFLAGS="$LDFLAGS -xarch=amd64"
5090                    fi
5091                else
5092                    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5
5093$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;}
5094                fi
5095            fi
5096
5097            # Note: need the LIBS below, otherwise Tk won't find Tcl's
5098            # symbols when dynamically loaded into tclsh.
5099
5100            SHLIB_LD_LIBS='${LIBS}'
5101            SHLIB_SUFFIX=".so"
5102            DL_OBJS="tclLoadDl.o"
5103            DL_LIBS="-ldl"
5104            if test "$GCC" = "yes" ; then
5105                SHLIB_LD="$CC -shared"
5106                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5107                LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5108                if test "$do64bit_ok" = "yes" ; then
5109                    # We need to specify -static-libgcc or we need to
5110                    # add the path to the sparv9 libgcc.
5111                    SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc"
5112                    # for finding sparcv9 libgcc, get the regular libgcc
5113                    # path, remove so name and append 'sparcv9'
5114                    #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..."
5115                    #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir"
5116                fi
5117            else
5118                case $system in
5119                    SunOS-5.[1-9][0-9]*)
5120                        SHLIB_LD='${CC} -G -z text ${LDFLAGS}';;
5121                    *)
5122                        SHLIB_LD="/usr/ccs/bin/ld -G -z text";;
5123                esac
5124                CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
5125                LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5126            fi
5127            ;;
5128        ULTRIX-4.*)
5129            SHLIB_CFLAGS="-G 0"
5130            SHLIB_SUFFIX=".a"
5131            SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5132            SHLIB_LD_LIBS='${LIBS}'
5133            DL_OBJS="tclLoadAout.o"
5134            DL_LIBS=""
5135            LDFLAGS="$LDFLAGS -Wl,-D,08000000"
5136            CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5137            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
5138            if test "$GCC" != "yes" ; then
5139                CFLAGS="$CFLAGS -DHAVE_TZSET -std1"
5140            fi
5141            ;;
5142        UNIX_SV* | UnixWare-5*)
5143            SHLIB_CFLAGS="-KPIC"
5144            SHLIB_LD="cc -G"
5145            SHLIB_LD_LIBS=""
5146            SHLIB_SUFFIX=".so"
5147            DL_OBJS="tclLoadDl.o"
5148            DL_LIBS="-ldl"
5149            # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
5150            # that don't grok the -Bexport option.  Test that it does.
5151            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5
5152$as_echo_n "checking for ld accepts -Bexport flag... " >&6; }
5153if test "${tcl_cv_ld_Bexport+set}" = set; then :
5154  $as_echo_n "(cached) " >&6
5155else
5156
5157                hold_ldflags=$LDFLAGS
5158                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5159                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160/* end confdefs.h.  */
5161
5162int
5163main ()
5164{
5165int i;
5166  ;
5167  return 0;
5168}
5169_ACEOF
5170if ac_fn_c_try_link "$LINENO"; then :
5171  tcl_cv_ld_Bexport=yes
5172else
5173  tcl_cv_ld_Bexport=no
5174fi
5175rm -f core conftest.err conftest.$ac_objext \
5176    conftest$ac_exeext conftest.$ac_ext
5177                LDFLAGS=$hold_ldflags
5178fi
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5
5180$as_echo "$tcl_cv_ld_Bexport" >&6; }
5181            if test $tcl_cv_ld_Bexport = yes; then
5182                LDFLAGS="$LDFLAGS -Wl,-Bexport"
5183            fi
5184            CC_SEARCH_FLAGS=""
5185            LD_SEARCH_FLAGS=""
5186            ;;
5187    esac
5188
5189    if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then
5190        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5
5191$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;}
5192    fi
5193
5194
5195
5196
5197    # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic
5198    # Loading for Tcl -- What Became of It?".  Proc. 2nd Tcl/Tk Workshop,
5199    # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need
5200    # to determine which of several header files defines the a.out file
5201    # format (a.out.h, sys/exec.h, or sys/exec_aout.h).  At present, we
5202    # support only a file format that is more or less version-7-compatible.
5203    # In particular,
5204    #   - a.out files must begin with `struct exec'.
5205    #   - the N_TXTOFF on the `struct exec' must compute the seek address
5206    #     of the text segment
5207    #   - The `struct exec' must contain a_magic, a_text, a_data, a_bss
5208    #     and a_entry fields.
5209    # The following compilation should succeed if and only if either sys/exec.h
5210    # or a.out.h is usable for the purpose.
5211    #
5212    # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the
5213    # `struct exec' includes a second header that contains information that
5214    # duplicates the v7 fields that are needed.
5215
5216    if test "x$DL_OBJS" = "xtclLoadAout.o" ; then
5217        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5
5218$as_echo_n "checking sys/exec.h... " >&6; }
5219if test "${tcl_cv_sysexec_h+set}" = set; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222
5223        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225#include <sys/exec.h>
5226int
5227main ()
5228{
5229
5230            struct exec foo;
5231            unsigned long seek;
5232            int flag;
5233#if defined(__mips) || defined(mips)
5234            seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5235#else
5236            seek = N_TXTOFF (foo);
5237#endif
5238            flag = (foo.a_magic == OMAGIC);
5239            return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5240
5241  ;
5242  return 0;
5243}
5244_ACEOF
5245if ac_fn_c_try_compile "$LINENO"; then :
5246  tcl_cv_sysexec_h=usable
5247else
5248  tcl_cv_sysexec_h=unusable
5249fi
5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5
5253$as_echo "$tcl_cv_sysexec_h" >&6; }
5254        if test $tcl_cv_sysexec_h = usable; then
5255            $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h
5256
5257        else
5258            { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5
5259$as_echo_n "checking a.out.h... " >&6; }
5260if test "${tcl_cv_aout_h+set}" = set; then :
5261  $as_echo_n "(cached) " >&6
5262else
5263
5264            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h.  */
5266#include <a.out.h>
5267int
5268main ()
5269{
5270
5271                struct exec foo;
5272                unsigned long seek;
5273                int flag;
5274#if defined(__mips) || defined(mips)
5275                seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5276#else
5277                seek = N_TXTOFF (foo);
5278#endif
5279                flag = (foo.a_magic == OMAGIC);
5280                return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5281
5282  ;
5283  return 0;
5284}
5285_ACEOF
5286if ac_fn_c_try_compile "$LINENO"; then :
5287  tcl_cv_aout_h=usable
5288else
5289  tcl_cv_aout_h=unusable
5290fi
5291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292fi
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5
5294$as_echo "$tcl_cv_aout_h" >&6; }
5295            if test $tcl_cv_aout_h = usable; then
5296                $as_echo "#define USE_A_OUT_H 1" >>confdefs.h
5297
5298            else
5299                { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5
5300$as_echo_n "checking sys/exec_aout.h... " >&6; }
5301if test "${tcl_cv_sysexecaout_h+set}" = set; then :
5302  $as_echo_n "(cached) " >&6
5303else
5304
5305                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h.  */
5307#include <sys/exec_aout.h>
5308int
5309main ()
5310{
5311
5312                    struct exec foo;
5313                    unsigned long seek;
5314                    int flag;
5315#if defined(__mips) || defined(mips)
5316                    seek = N_TXTOFF (foo.ex_f, foo.ex_o);
5317#else
5318                    seek = N_TXTOFF (foo);
5319#endif
5320                    flag = (foo.a_midmag == OMAGIC);
5321                    return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry;
5322
5323  ;
5324  return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_compile "$LINENO"; then :
5328  tcl_cv_sysexecaout_h=usable
5329else
5330  tcl_cv_sysexecaout_h=unusable
5331fi
5332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333fi
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5
5335$as_echo "$tcl_cv_sysexecaout_h" >&6; }
5336                if test $tcl_cv_sysexecaout_h = usable; then
5337                    $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h
5338
5339                else
5340                    DL_OBJS=""
5341                fi
5342            fi
5343        fi
5344    fi
5345
5346    # Step 5: disable dynamic loading if requested via a command-line switch.
5347
5348    # Check whether --enable-load was given.
5349if test "${enable_load+set}" = set; then :
5350  enableval=$enable_load; tcl_ok=$enableval
5351else
5352  tcl_ok=yes
5353fi
5354
5355    if test "$tcl_ok" = "no"; then
5356        DL_OBJS=""
5357    fi
5358
5359    if test "x$DL_OBJS" != "x" ; then
5360        BUILD_DLTEST="\$(DLTEST_TARGETS)"
5361    else
5362        echo "Can't figure out how to do dynamic loading or shared libraries"
5363        echo "on this system."
5364        SHLIB_CFLAGS=""
5365        SHLIB_LD=""
5366        SHLIB_SUFFIX=""
5367        DL_OBJS="tclLoadNone.o"
5368        DL_LIBS=""
5369        LDFLAGS="$LDFLAGS_ORIG"
5370        CC_SEARCH_FLAGS=""
5371        LD_SEARCH_FLAGS=""
5372        BUILD_DLTEST=""
5373    fi
5374
5375    # If we're running gcc, then change the C flags for compiling shared
5376    # libraries to the right flags for gcc, instead of those for the
5377    # standard manufacturer compiler.
5378
5379    if test "$DL_OBJS" != "tclLoadNone.o" ; then
5380        if test "$GCC" = "yes" ; then
5381            case $system in
5382                AIX-*)
5383                    ;;
5384                BSD/OS*)
5385                    ;;
5386                IRIX*)
5387                    ;;
5388                NetBSD-*|FreeBSD-*|OpenBSD-*)
5389                    ;;
5390                Darwin-*)
5391                    ;;
5392                RISCos-*)
5393                    ;;
5394                SCO_SV-3.2*)
5395                    ;;
5396                ULTRIX-4.*)
5397                    ;;
5398                *)
5399                    SHLIB_CFLAGS="-fPIC"
5400                    ;;
5401            esac
5402        fi
5403    fi
5404
5405    if test "$SHARED_LIB_SUFFIX" = "" ; then
5406        SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}'
5407    fi
5408    if test "$UNSHARED_LIB_SUFFIX" = "" ; then
5409        UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a'
5410    fi
5411
5412    if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then
5413        LIB_SUFFIX=${SHARED_LIB_SUFFIX}
5414        MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}'
5415        INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5416    else
5417        LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
5418
5419        if test "$RANLIB" = "" ; then
5420            MAKE_LIB='$(STLIB_LD) $@ ${OBJS}'
5421            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)'
5422        else
5423            MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@'
5424            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))'
5425        fi
5426
5427    fi
5428
5429
5430    # Stub lib does not depend on shared/static configuration
5431    if test "$RANLIB" = "" ; then
5432        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}'
5433        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)'
5434    else
5435        MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@'
5436        INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))'
5437    fi
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5
5472$as_echo_n "checking how to build libraries... " >&6; }
5473    # Check whether --enable-shared was given.
5474if test "${enable_shared+set}" = set; then :
5475  enableval=$enable_shared; tcl_ok=$enableval
5476else
5477  tcl_ok=yes
5478fi
5479
5480
5481    if test "${enable_shared+set}" = set; then
5482        enableval="$enable_shared"
5483        tcl_ok=$enableval
5484    else
5485        tcl_ok=yes
5486    fi
5487
5488    if test "$tcl_ok" = "yes" ; then
5489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5
5490$as_echo "shared" >&6; }
5491        SHARED_BUILD=1
5492    else
5493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
5494$as_echo "static" >&6; }
5495        SHARED_BUILD=0
5496        $as_echo "#define STATIC_BUILD 1" >>confdefs.h
5497
5498    fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509gui_with_tcl=""
5510
5511make_command=""
5512for m in "$MAKE" make gmake gnumake ; do
5513  if test "x${m}" != "x" ; then
5514    if  ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then
5515      make_command=$m; break;
5516    fi
5517  fi
5518done
5519if test "x${make_command}" = "x" ; then
5520  as_fn_error "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5
5521fi
5522MAKE=${make_command}
5523
5524
5525# Check whether --enable-gui was given.
5526if test "${enable_gui+set}" = set; then :
5527  enableval=$enable_gui;
5528else
5529  enable_gui=yes
5530fi
5531
5532
5533ENABLE_GUI=
5534if test "$enable_gui" != "no" ; then
5535    ENABLE_GUI="yes"
5536fi
5537
5538
5539with_tclsh="yes"
5540
5541# Check whether --with-tclsh was given.
5542if test "${with_tclsh+set}" = set; then :
5543  withval=$with_tclsh;
5544else
5545  with_tclsh=yes
5546fi
5547
5548
5549TCLSH=
5550# -----------------------------------------------------------------------
5551#
5552#       Find the Tcl build configuration file "tclConfig.sh"
5553#
5554# -----------------------------------------------------------------------
5555
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
5557$as_echo_n "checking for tclConfig.sh... " >&6; }
5558tcl_config_sh=""
5559if test "x$gui_with_tcl" != "x" ; then
5560
5561  # Verify that a tclConfig.sh file exists in the directory specified
5562  # by --with-tcl.
5563
5564  for dir in \
5565   $gui_with_tcl
5566  do
5567    if test -r "$dir/tclConfig.sh" ; then
5568      tcl_config_sh="$dir/tclConfig.sh"
5569      break
5570    elif test -r "$dir/lib/tclConfig.sh" ; then
5571      tcl_config_sh="$dir/lib/tclConfig.sh"
5572      break
5573    fi
5574  done
5575else
5576
5577  # Otherwise, search for Tcl configuration file.
5578
5579  #  1. Search previously named locations.
5580
5581  for dir in \
5582   $prefix \
5583   $exec_prefix \
5584   $gui_cv_tcl_lib
5585  do
5586    if test -r "$dir/tclConfig.sh" ; then
5587      tcl_config_sh="$dir/tclConfig.sh"
5588      break
5589    elif test -r "$dir/lib/tclConfig.sh" ; then
5590      tcl_config_sh="$dir/lib/tclConfig.sh"
5591      break
5592    fi
5593  done
5594fi
5595
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
5597$as_echo "${tcl_config_sh}" >&6; }
5598
5599if test "x$tcl_config_sh" = "x" ; then
5600  echo "can't find Tcl configuration script \"tclConfig.sh\""
5601  exit 1
5602fi
5603. ${tcl_config_sh}
5604TCL_INC_SPEC="$TCL_INCLUDE_SPEC"
5605
5606case $target in
5607  *-*-cygwin*|*-*-mingw*)
5608    gui_platform="win"
5609    TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}
5610    ;;
5611  *-*-darwin*)
5612    gui_platform="macosx"
5613    TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
5614    ;;
5615  *)
5616    blt_platform="unix"
5617    TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}
5618    ;;
5619esac
5620
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH}" >&5
5622$as_echo "${TCLSH}" >&6; }
5623
5624
5625
5626
5627
5628
5629if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
5630  . ${exec_prefix}/lib/tclConfig.sh
5631fi
5632if test -f "${exec_prefix}/lib/tclConfig.sh" ; then
5633  . ${exec_prefix}/lib/tkConfig.sh
5634fi
5635
5636
5637
5638ac_config_files="$ac_config_files Makefile pkgIndex.tcl apps/Makefile apps/about apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff scripts/Makefile src/Makefile"
5639
5640cat >confcache <<\_ACEOF
5641# This file is a shell script that caches the results of configure
5642# tests run on this system so they can be shared between configure
5643# scripts and configure runs, see configure's option --config-cache.
5644# It is not useful on other systems.  If it contains results you don't
5645# want to keep, you may remove or edit it.
5646#
5647# config.status only pays attention to the cache file if you give it
5648# the --recheck option to rerun configure.
5649#
5650# `ac_cv_env_foo' variables (set or unset) will be overridden when
5651# loading this file, other *unset* `ac_cv_foo' will be assigned the
5652# following values.
5653
5654_ACEOF
5655
5656# The following way of writing the cache mishandles newlines in values,
5657# but we know of no workaround that is simple, portable, and efficient.
5658# So, we kill variables containing newlines.
5659# Ultrix sh set writes to stderr and can't be redirected directly,
5660# and sets the high bit in the cache file unless we assign to the vars.
5661(
5662  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5663    eval ac_val=\$$ac_var
5664    case $ac_val in #(
5665    *${as_nl}*)
5666      case $ac_var in #(
5667      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5668$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5669      esac
5670      case $ac_var in #(
5671      _ | IFS | as_nl) ;; #(
5672      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5673      *) { eval $ac_var=; unset $ac_var;} ;;
5674      esac ;;
5675    esac
5676  done
5677
5678  (set) 2>&1 |
5679    case $as_nl`(ac_space=' '; set) 2>&1` in #(
5680    *${as_nl}ac_space=\ *)
5681      # `set' does not quote correctly, so add quotes: double-quote
5682      # substitution turns \\\\ into \\, and sed turns \\ into \.
5683      sed -n \
5684        "s/'/'\\\\''/g;
5685          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5686      ;; #(
5687    *)
5688      # `set' quotes correctly as required by POSIX, so do not add quotes.
5689      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5690      ;;
5691    esac |
5692    sort
5693) |
5694  sed '
5695     /^ac_cv_env_/b end
5696     t clear
5697     :clear
5698     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5699     t end
5700     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5701     :end' >>confcache
5702if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5703  if test -w "$cache_file"; then
5704    test "x$cache_file" != "x/dev/null" &&
5705      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5706$as_echo "$as_me: updating cache $cache_file" >&6;}
5707    cat confcache >$cache_file
5708  else
5709    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5710$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5711  fi
5712fi
5713rm -f confcache
5714
5715test "x$prefix" = xNONE && prefix=$ac_default_prefix
5716# Let make expand exec_prefix.
5717test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5718
5719# Transform confdefs.h into DEFS.
5720# Protect against shell expansion while executing Makefile rules.
5721# Protect against Makefile macro expansion.
5722#
5723# If the first sed substitution is executed (which looks for macros that
5724# take arguments), then branch to the quote section.  Otherwise,
5725# look for a macro that doesn't take arguments.
5726ac_script='
5727:mline
5728/\\$/{
5729 N
5730 s,\\\n,,
5731 b mline
5732}
5733t clear
5734:clear
5735s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
5736t quote
5737s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
5738t quote
5739b any
5740:quote
5741s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5742s/\[/\\&/g
5743s/\]/\\&/g
5744s/\$/$$/g
5745H
5746:any
5747${
5748        g
5749        s/^\n//
5750        s/\n/ /g
5751        p
5752}
5753'
5754DEFS=`sed -n "$ac_script" confdefs.h`
5755
5756
5757ac_libobjs=
5758ac_ltlibobjs=
5759for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5760  # 1. Remove the extension, and $U if already installed.
5761  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5762  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5763  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5764  #    will be set to the directory where LIBOBJS objects are built.
5765  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5766  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5767done
5768LIBOBJS=$ac_libobjs
5769
5770LTLIBOBJS=$ac_ltlibobjs
5771
5772
5773
5774: ${CONFIG_STATUS=./config.status}
5775ac_write_fail=0
5776ac_clean_files_save=$ac_clean_files
5777ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5779$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5780as_write_fail=0
5781cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5782#! $SHELL
5783# Generated by $as_me.
5784# Run this file to recreate the current configuration.
5785# Compiler output produced by configure, useful for debugging
5786# configure, is in config.log if it exists.
5787
5788debug=false
5789ac_cs_recheck=false
5790ac_cs_silent=false
5791
5792SHELL=\${CONFIG_SHELL-$SHELL}
5793export SHELL
5794_ASEOF
5795cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5796## -------------------- ##
5797## M4sh Initialization. ##
5798## -------------------- ##
5799
5800# Be more Bourne compatible
5801DUALCASE=1; export DUALCASE # for MKS sh
5802if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5803  emulate sh
5804  NULLCMD=:
5805  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5806  # is contrary to our usage.  Disable this feature.
5807  alias -g '${1+"$@"}'='"$@"'
5808  setopt NO_GLOB_SUBST
5809else
5810  case `(set -o) 2>/dev/null` in #(
5811  *posix*) :
5812    set -o posix ;; #(
5813  *) :
5814     ;;
5815esac
5816fi
5817
5818
5819as_nl='
5820'
5821export as_nl
5822# Printing a long string crashes Solaris 7 /usr/bin/printf.
5823as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5824as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5825as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5826# Prefer a ksh shell builtin over an external printf program on Solaris,
5827# but without wasting forks for bash or zsh.
5828if test -z "$BASH_VERSION$ZSH_VERSION" \
5829    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5830  as_echo='print -r --'
5831  as_echo_n='print -rn --'
5832elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5833  as_echo='printf %s\n'
5834  as_echo_n='printf %s'
5835else
5836  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5837    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5838    as_echo_n='/usr/ucb/echo -n'
5839  else
5840    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5841    as_echo_n_body='eval
5842      arg=$1;
5843      case $arg in #(
5844      *"$as_nl"*)
5845        expr "X$arg" : "X\\(.*\\)$as_nl";
5846        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5847      esac;
5848      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5849    '
5850    export as_echo_n_body
5851    as_echo_n='sh -c $as_echo_n_body as_echo'
5852  fi
5853  export as_echo_body
5854  as_echo='sh -c $as_echo_body as_echo'
5855fi
5856
5857# The user is always right.
5858if test "${PATH_SEPARATOR+set}" != set; then
5859  PATH_SEPARATOR=:
5860  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5861    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5862      PATH_SEPARATOR=';'
5863  }
5864fi
5865
5866
5867# IFS
5868# We need space, tab and new line, in precisely that order.  Quoting is
5869# there to prevent editors from complaining about space-tab.
5870# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5871# splitting by setting IFS to empty value.)
5872IFS=" ""        $as_nl"
5873
5874# Find who we are.  Look in the path if we contain no directory separator.
5875case $0 in #((
5876  *[\\/]* ) as_myself=$0 ;;
5877  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880  IFS=$as_save_IFS
5881  test -z "$as_dir" && as_dir=.
5882    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5883  done
5884IFS=$as_save_IFS
5885
5886     ;;
5887esac
5888# We did not find ourselves, most probably we were run as `sh COMMAND'
5889# in which case we are not to be found in the path.
5890if test "x$as_myself" = x; then
5891  as_myself=$0
5892fi
5893if test ! -f "$as_myself"; then
5894  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5895  exit 1
5896fi
5897
5898# Unset variables that we do not need and which cause bugs (e.g. in
5899# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5900# suppresses any "Segmentation fault" message there.  '((' could
5901# trigger a bug in pdksh 5.2.14.
5902for as_var in BASH_ENV ENV MAIL MAILPATH
5903do eval test x\${$as_var+set} = xset \
5904  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5905done
5906PS1='$ '
5907PS2='> '
5908PS4='+ '
5909
5910# NLS nuisances.
5911LC_ALL=C
5912export LC_ALL
5913LANGUAGE=C
5914export LANGUAGE
5915
5916# CDPATH.
5917(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5918
5919
5920# as_fn_error ERROR [LINENO LOG_FD]
5921# ---------------------------------
5922# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5923# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5924# script with status $?, using 1 if that was 0.
5925as_fn_error ()
5926{
5927  as_status=$?; test $as_status -eq 0 && as_status=1
5928  if test "$3"; then
5929    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5930    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5931  fi
5932  $as_echo "$as_me: error: $1" >&2
5933  as_fn_exit $as_status
5934} # as_fn_error
5935
5936
5937# as_fn_set_status STATUS
5938# -----------------------
5939# Set $? to STATUS, without forking.
5940as_fn_set_status ()
5941{
5942  return $1
5943} # as_fn_set_status
5944
5945# as_fn_exit STATUS
5946# -----------------
5947# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5948as_fn_exit ()
5949{
5950  set +e
5951  as_fn_set_status $1
5952  exit $1
5953} # as_fn_exit
5954
5955# as_fn_unset VAR
5956# ---------------
5957# Portably unset VAR.
5958as_fn_unset ()
5959{
5960  { eval $1=; unset $1;}
5961}
5962as_unset=as_fn_unset
5963# as_fn_append VAR VALUE
5964# ----------------------
5965# Append the text in VALUE to the end of the definition contained in VAR. Take
5966# advantage of any shell optimizations that allow amortized linear growth over
5967# repeated appends, instead of the typical quadratic growth present in naive
5968# implementations.
5969if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5970  eval 'as_fn_append ()
5971  {
5972    eval $1+=\$2
5973  }'
5974else
5975  as_fn_append ()
5976  {
5977    eval $1=\$$1\$2
5978  }
5979fi # as_fn_append
5980
5981# as_fn_arith ARG...
5982# ------------------
5983# Perform arithmetic evaluation on the ARGs, and store the result in the
5984# global $as_val. Take advantage of shells that can avoid forks. The arguments
5985# must be portable across $(()) and expr.
5986if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5987  eval 'as_fn_arith ()
5988  {
5989    as_val=$(( $* ))
5990  }'
5991else
5992  as_fn_arith ()
5993  {
5994    as_val=`expr "$@" || test $? -eq 1`
5995  }
5996fi # as_fn_arith
5997
5998
5999if expr a : '\(a\)' >/dev/null 2>&1 &&
6000   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6001  as_expr=expr
6002else
6003  as_expr=false
6004fi
6005
6006if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6007  as_basename=basename
6008else
6009  as_basename=false
6010fi
6011
6012if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6013  as_dirname=dirname
6014else
6015  as_dirname=false
6016fi
6017
6018as_me=`$as_basename -- "$0" ||
6019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6020         X"$0" : 'X\(//\)$' \| \
6021         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6022$as_echo X/"$0" |
6023    sed '/^.*\/\([^/][^/]*\)\/*$/{
6024            s//\1/
6025            q
6026          }
6027          /^X\/\(\/\/\)$/{
6028            s//\1/
6029            q
6030          }
6031          /^X\/\(\/\).*/{
6032            s//\1/
6033            q
6034          }
6035          s/.*/./; q'`
6036
6037# Avoid depending upon Character Ranges.
6038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6041as_cr_digits='0123456789'
6042as_cr_alnum=$as_cr_Letters$as_cr_digits
6043
6044ECHO_C= ECHO_N= ECHO_T=
6045case `echo -n x` in #(((((
6046-n*)
6047  case `echo 'xy\c'` in
6048  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6049  xy)  ECHO_C='\c';;
6050  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6051       ECHO_T=' ';;
6052  esac;;
6053*)
6054  ECHO_N='-n';;
6055esac
6056
6057rm -f conf$$ conf$$.exe conf$$.file
6058if test -d conf$$.dir; then
6059  rm -f conf$$.dir/conf$$.file
6060else
6061  rm -f conf$$.dir
6062  mkdir conf$$.dir 2>/dev/null
6063fi
6064if (echo >conf$$.file) 2>/dev/null; then
6065  if ln -s conf$$.file conf$$ 2>/dev/null; then
6066    as_ln_s='ln -s'
6067    # ... but there are two gotchas:
6068    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6069    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6070    # In both cases, we have to default to `cp -p'.
6071    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6072      as_ln_s='cp -p'
6073  elif ln conf$$.file conf$$ 2>/dev/null; then
6074    as_ln_s=ln
6075  else
6076    as_ln_s='cp -p'
6077  fi
6078else
6079  as_ln_s='cp -p'
6080fi
6081rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6082rmdir conf$$.dir 2>/dev/null
6083
6084
6085# as_fn_mkdir_p
6086# -------------
6087# Create "$as_dir" as a directory, including parents if necessary.
6088as_fn_mkdir_p ()
6089{
6090
6091  case $as_dir in #(
6092  -*) as_dir=./$as_dir;;
6093  esac
6094  test -d "$as_dir" || eval $as_mkdir_p || {
6095    as_dirs=
6096    while :; do
6097      case $as_dir in #(
6098      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6099      *) as_qdir=$as_dir;;
6100      esac
6101      as_dirs="'$as_qdir' $as_dirs"
6102      as_dir=`$as_dirname -- "$as_dir" ||
6103$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6104         X"$as_dir" : 'X\(//\)[^/]' \| \
6105         X"$as_dir" : 'X\(//\)$' \| \
6106         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6107$as_echo X"$as_dir" |
6108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6109            s//\1/
6110            q
6111          }
6112          /^X\(\/\/\)[^/].*/{
6113            s//\1/
6114            q
6115          }
6116          /^X\(\/\/\)$/{
6117            s//\1/
6118            q
6119          }
6120          /^X\(\/\).*/{
6121            s//\1/
6122            q
6123          }
6124          s/.*/./; q'`
6125      test -d "$as_dir" && break
6126    done
6127    test -z "$as_dirs" || eval "mkdir $as_dirs"
6128  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6129
6130
6131} # as_fn_mkdir_p
6132if mkdir -p . 2>/dev/null; then
6133  as_mkdir_p='mkdir -p "$as_dir"'
6134else
6135  test -d ./-p && rmdir ./-p
6136  as_mkdir_p=false
6137fi
6138
6139if test -x / >/dev/null 2>&1; then
6140  as_test_x='test -x'
6141else
6142  if ls -dL / >/dev/null 2>&1; then
6143    as_ls_L_option=L
6144  else
6145    as_ls_L_option=
6146  fi
6147  as_test_x='
6148    eval sh -c '\''
6149      if test -d "$1"; then
6150        test -d "$1/.";
6151      else
6152        case $1 in #(
6153        -*)set "./$1";;
6154        esac;
6155        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6156        ???[sx]*):;;*)false;;esac;fi
6157    '\'' sh
6158  '
6159fi
6160as_executable_p=$as_test_x
6161
6162# Sed expression to map a string onto a valid CPP name.
6163as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6164
6165# Sed expression to map a string onto a valid variable name.
6166as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6167
6168
6169exec 6>&1
6170## ----------------------------------- ##
6171## Main body of $CONFIG_STATUS script. ##
6172## ----------------------------------- ##
6173_ASEOF
6174test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6175
6176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6177# Save the log message, to keep $0 and so on meaningful, and to
6178# report actual input values of CONFIG_FILES etc. instead of their
6179# values after options handling.
6180ac_log="
6181This file was extended by RapptureGUI $as_me 1.1, which was
6182generated by GNU Autoconf 2.64.  Invocation command line was
6183
6184  CONFIG_FILES    = $CONFIG_FILES
6185  CONFIG_HEADERS  = $CONFIG_HEADERS
6186  CONFIG_LINKS    = $CONFIG_LINKS
6187  CONFIG_COMMANDS = $CONFIG_COMMANDS
6188  $ $0 $@
6189
6190on `(hostname || uname -n) 2>/dev/null | sed 1q`
6191"
6192
6193_ACEOF
6194
6195case $ac_config_files in *"
6196"*) set x $ac_config_files; shift; ac_config_files=$*;;
6197esac
6198
6199
6200
6201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6202# Files that config.status was made for.
6203config_files="$ac_config_files"
6204
6205_ACEOF
6206
6207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6208ac_cs_usage="\
6209\`$as_me' instantiates files and other configuration actions
6210from templates according to the current configuration.  Unless the files
6211and actions are specified as TAGs, all are instantiated by default.
6212
6213Usage: $0 [OPTION]... [TAG]...
6214
6215  -h, --help       print this help, then exit
6216  -V, --version    print version number and configuration settings, then exit
6217  -q, --quiet, --silent
6218                   do not print progress messages
6219  -d, --debug      don't remove temporary files
6220      --recheck    update $as_me by reconfiguring in the same conditions
6221      --file=FILE[:TEMPLATE]
6222                   instantiate the configuration file FILE
6223
6224Configuration files:
6225$config_files
6226
6227Report bugs to <rappture@nanohub.org>."
6228
6229_ACEOF
6230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6231ac_cs_version="\\
6232RapptureGUI config.status 1.1
6233configured by $0, generated by GNU Autoconf 2.64,
6234  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6235
6236Copyright (C) 2009 Free Software Foundation, Inc.
6237This config.status script is free software; the Free Software Foundation
6238gives unlimited permission to copy, distribute and modify it."
6239
6240ac_pwd='$ac_pwd'
6241srcdir='$srcdir'
6242INSTALL='$INSTALL'
6243MKDIR_P='$MKDIR_P'
6244test -n "\$AWK" || AWK=awk
6245_ACEOF
6246
6247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6248# The default lists apply if the user does not specify any file.
6249ac_need_defaults=:
6250while test $# != 0
6251do
6252  case $1 in
6253  --*=*)
6254    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6255    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6256    ac_shift=:
6257    ;;
6258  *)
6259    ac_option=$1
6260    ac_optarg=$2
6261    ac_shift=shift
6262    ;;
6263  esac
6264
6265  case $ac_option in
6266  # Handling of the options.
6267  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6268    ac_cs_recheck=: ;;
6269  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6270    $as_echo "$ac_cs_version"; exit ;;
6271  --debug | --debu | --deb | --de | --d | -d )
6272    debug=: ;;
6273  --file | --fil | --fi | --f )
6274    $ac_shift
6275    case $ac_optarg in
6276    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6277    esac
6278    as_fn_append CONFIG_FILES " '$ac_optarg'"
6279    ac_need_defaults=false;;
6280  --he | --h |  --help | --hel | -h )
6281    $as_echo "$ac_cs_usage"; exit ;;
6282  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6283  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6284    ac_cs_silent=: ;;
6285
6286  # This is an error.
6287  -*) as_fn_error "unrecognized option: \`$1'
6288Try \`$0 --help' for more information." ;;
6289
6290  *) as_fn_append ac_config_targets " $1"
6291     ac_need_defaults=false ;;
6292
6293  esac
6294  shift
6295done
6296
6297ac_configure_extra_args=
6298
6299if $ac_cs_silent; then
6300  exec 6>/dev/null
6301  ac_configure_extra_args="$ac_configure_extra_args --silent"
6302fi
6303
6304_ACEOF
6305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6306if \$ac_cs_recheck; then
6307  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6308  shift
6309  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6310  CONFIG_SHELL='$SHELL'
6311  export CONFIG_SHELL
6312  exec "\$@"
6313fi
6314
6315_ACEOF
6316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6317exec 5>>config.log
6318{
6319  echo
6320  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6321## Running $as_me. ##
6322_ASBOX
6323  $as_echo "$ac_log"
6324} >&5
6325
6326_ACEOF
6327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6328_ACEOF
6329
6330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6331
6332# Handling of arguments.
6333for ac_config_target in $ac_config_targets
6334do
6335  case $ac_config_target in
6336    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6337    "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;;
6338    "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;;
6339    "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;;
6340    "apps/encodedata") CONFIG_FILES="$CONFIG_FILES apps/encodedata" ;;
6341    "apps/rappture") CONFIG_FILES="$CONFIG_FILES apps/rappture" ;;
6342    "apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES apps/rappture-csh.env" ;;
6343    "apps/rappture.env") CONFIG_FILES="$CONFIG_FILES apps/rappture.env" ;;
6344    "apps/rappture.use") CONFIG_FILES="$CONFIG_FILES apps/rappture.use" ;;
6345    "apps/rerun") CONFIG_FILES="$CONFIG_FILES apps/rerun" ;;
6346    "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;;
6347    "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;;
6348    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
6349    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6350
6351  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6352  esac
6353done
6354
6355
6356# If the user did not use the arguments to specify the items to instantiate,
6357# then the envvar interface is used.  Set only those that are not.
6358# We use the long form for the default assignment because of an extremely
6359# bizarre bug on SunOS 4.1.3.
6360if $ac_need_defaults; then
6361  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6362fi
6363
6364# Have a temporary directory for convenience.  Make it in the build tree
6365# simply because there is no reason against having it here, and in addition,
6366# creating and moving files from /tmp can sometimes cause problems.
6367# Hook for its removal unless debugging.
6368# Note that there is a small window in which the directory will not be cleaned:
6369# after its creation but before its name has been assigned to `$tmp'.
6370$debug ||
6371{
6372  tmp=
6373  trap 'exit_status=$?
6374  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6375' 0
6376  trap 'as_fn_exit 1' 1 2 13 15
6377}
6378# Create a (secure) tmp directory for tmp files.
6379
6380{
6381  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6382  test -n "$tmp" && test -d "$tmp"
6383}  ||
6384{
6385  tmp=./conf$$-$RANDOM
6386  (umask 077 && mkdir "$tmp")
6387} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6388
6389# Set up the scripts for CONFIG_FILES section.
6390# No need to generate them if there are no CONFIG_FILES.
6391# This happens for instance with `./config.status config.h'.
6392if test -n "$CONFIG_FILES"; then
6393
6394
6395ac_cr=`echo X | tr X '\015'`
6396# On cygwin, bash can eat \r inside `` if the user requested igncr.
6397# But we know of no other shell where ac_cr would be empty at this
6398# point, so we can use a bashism as a fallback.
6399if test "x$ac_cr" = x; then
6400  eval ac_cr=\$\'\\r\'
6401fi
6402ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6403if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6404  ac_cs_awk_cr='\r'
6405else
6406  ac_cs_awk_cr=$ac_cr
6407fi
6408
6409echo 'BEGIN {' >"$tmp/subs1.awk" &&
6410_ACEOF
6411
6412
6413{
6414  echo "cat >conf$$subs.awk <<_ACEOF" &&
6415  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6416  echo "_ACEOF"
6417} >conf$$subs.sh ||
6418  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6419ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6420ac_delim='%!_!# '
6421for ac_last_try in false false false false false :; do
6422  . ./conf$$subs.sh ||
6423    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6424
6425  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6426  if test $ac_delim_n = $ac_delim_num; then
6427    break
6428  elif $ac_last_try; then
6429    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6430  else
6431    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6432  fi
6433done
6434rm -f conf$$subs.sh
6435
6436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6437cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6438_ACEOF
6439sed -n '
6440h
6441s/^/S["/; s/!.*/"]=/
6442p
6443g
6444s/^[^!]*!//
6445:repl
6446t repl
6447s/'"$ac_delim"'$//
6448t delim
6449:nl
6450h
6451s/\(.\{148\}\).*/\1/
6452t more1
6453s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6454p
6455n
6456b repl
6457:more1
6458s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6459p
6460g
6461s/.\{148\}//
6462t nl
6463:delim
6464h
6465s/\(.\{148\}\).*/\1/
6466t more2
6467s/["\\]/\\&/g; s/^/"/; s/$/"/
6468p
6469b
6470:more2
6471s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6472p
6473g
6474s/.\{148\}//
6475t delim
6476' <conf$$subs.awk | sed '
6477/^[^""]/{
6478  N
6479  s/\n//
6480}
6481' >>$CONFIG_STATUS || ac_write_fail=1
6482rm -f conf$$subs.awk
6483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6484_ACAWK
6485cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6486  for (key in S) S_is_set[key] = 1
6487  FS = ""
6488
6489}
6490{
6491  line = $ 0
6492  nfields = split(line, field, "@")
6493  substed = 0
6494  len = length(field[1])
6495  for (i = 2; i < nfields; i++) {
6496    key = field[i]
6497    keylen = length(key)
6498    if (S_is_set[key]) {
6499      value = S[key]
6500      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6501      len += length(value) + length(field[++i])
6502      substed = 1
6503    } else
6504      len += 1 + keylen
6505  }
6506
6507  print line
6508}
6509
6510_ACAWK
6511_ACEOF
6512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6513if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6514  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6515else
6516  cat
6517fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6518  || as_fn_error "could not setup config files machinery" "$LINENO" 5
6519_ACEOF
6520
6521# VPATH may cause trouble with some makes, so we remove $(srcdir),
6522# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6523# trailing colons and then remove the whole line if VPATH becomes empty
6524# (actually we leave an empty line to preserve line numbers).
6525if test "x$srcdir" = x.; then
6526  ac_vpsub='/^[  ]*VPATH[        ]*=/{
6527s/:*\$(srcdir):*/:/
6528s/:*\${srcdir}:*/:/
6529s/:*@srcdir@:*/:/
6530s/^\([^=]*=[     ]*\):*/\1/
6531s/:*$//
6532s/^[^=]*=[       ]*$//
6533}'
6534fi
6535
6536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6537fi # test -n "$CONFIG_FILES"
6538
6539
6540eval set X "  :F $CONFIG_FILES      "
6541shift
6542for ac_tag
6543do
6544  case $ac_tag in
6545  :[FHLC]) ac_mode=$ac_tag; continue;;
6546  esac
6547  case $ac_mode$ac_tag in
6548  :[FHL]*:*);;
6549  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6550  :[FH]-) ac_tag=-:-;;
6551  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6552  esac
6553  ac_save_IFS=$IFS
6554  IFS=:
6555  set x $ac_tag
6556  IFS=$ac_save_IFS
6557  shift
6558  ac_file=$1
6559  shift
6560
6561  case $ac_mode in
6562  :L) ac_source=$1;;
6563  :[FH])
6564    ac_file_inputs=
6565    for ac_f
6566    do
6567      case $ac_f in
6568      -) ac_f="$tmp/stdin";;
6569      *) # Look for the file first in the build tree, then in the source tree
6570         # (if the path is not absolute).  The absolute path cannot be DOS-style,
6571         # because $ac_f cannot contain `:'.
6572         test -f "$ac_f" ||
6573           case $ac_f in
6574           [\\/$]*) false;;
6575           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6576           esac ||
6577           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6578      esac
6579      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6580      as_fn_append ac_file_inputs " '$ac_f'"
6581    done
6582
6583    # Let's still pretend it is `configure' which instantiates (i.e., don't
6584    # use $as_me), people would be surprised to read:
6585    #    /* config.h.  Generated by config.status.  */
6586    configure_input='Generated from '`
6587          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6588        `' by configure.'
6589    if test x"$ac_file" != x-; then
6590      configure_input="$ac_file.  $configure_input"
6591      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6592$as_echo "$as_me: creating $ac_file" >&6;}
6593    fi
6594    # Neutralize special characters interpreted by sed in replacement strings.
6595    case $configure_input in #(
6596    *\&* | *\|* | *\\* )
6597       ac_sed_conf_input=`$as_echo "$configure_input" |
6598       sed 's/[\\\\&|]/\\\\&/g'`;; #(
6599    *) ac_sed_conf_input=$configure_input;;
6600    esac
6601
6602    case $ac_tag in
6603    *:-:* | *:-) cat >"$tmp/stdin" \
6604      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6605    esac
6606    ;;
6607  esac
6608
6609  ac_dir=`$as_dirname -- "$ac_file" ||
6610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6611         X"$ac_file" : 'X\(//\)[^/]' \| \
6612         X"$ac_file" : 'X\(//\)$' \| \
6613         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6614$as_echo X"$ac_file" |
6615    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6616            s//\1/
6617            q
6618          }
6619          /^X\(\/\/\)[^/].*/{
6620            s//\1/
6621            q
6622          }
6623          /^X\(\/\/\)$/{
6624            s//\1/
6625            q
6626          }
6627          /^X\(\/\).*/{
6628            s//\1/
6629            q
6630          }
6631          s/.*/./; q'`
6632  as_dir="$ac_dir"; as_fn_mkdir_p
6633  ac_builddir=.
6634
6635case "$ac_dir" in
6636.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6637*)
6638  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6639  # A ".." for each directory in $ac_dir_suffix.
6640  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6641  case $ac_top_builddir_sub in
6642  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6643  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6644  esac ;;
6645esac
6646ac_abs_top_builddir=$ac_pwd
6647ac_abs_builddir=$ac_pwd$ac_dir_suffix
6648# for backward compatibility:
6649ac_top_builddir=$ac_top_build_prefix
6650
6651case $srcdir in
6652  .)  # We are building in place.
6653    ac_srcdir=.
6654    ac_top_srcdir=$ac_top_builddir_sub
6655    ac_abs_top_srcdir=$ac_pwd ;;
6656  [\\/]* | ?:[\\/]* )  # Absolute name.
6657    ac_srcdir=$srcdir$ac_dir_suffix;
6658    ac_top_srcdir=$srcdir
6659    ac_abs_top_srcdir=$srcdir ;;
6660  *) # Relative name.
6661    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6662    ac_top_srcdir=$ac_top_build_prefix$srcdir
6663    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6664esac
6665ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6666
6667
6668  case $ac_mode in
6669  :F)
6670  #
6671  # CONFIG_FILE
6672  #
6673
6674  case $INSTALL in
6675  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6676  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6677  esac
6678  ac_MKDIR_P=$MKDIR_P
6679  case $MKDIR_P in
6680  [\\/$]* | ?:[\\/]* ) ;;
6681  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6682  esac
6683_ACEOF
6684
6685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6686# If the template does not know about datarootdir, expand it.
6687# FIXME: This hack should be removed a few years after 2.60.
6688ac_datarootdir_hack=; ac_datarootdir_seen=
6689ac_sed_dataroot='
6690/datarootdir/ {
6691  p
6692  q
6693}
6694/@datadir@/p
6695/@docdir@/p
6696/@infodir@/p
6697/@localedir@/p
6698/@mandir@/p'
6699case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6700*datarootdir*) ac_datarootdir_seen=yes;;
6701*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6702  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6703$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6704_ACEOF
6705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6706  ac_datarootdir_hack='
6707  s&@datadir@&$datadir&g
6708  s&@docdir@&$docdir&g
6709  s&@infodir@&$infodir&g
6710  s&@localedir@&$localedir&g
6711  s&@mandir@&$mandir&g
6712  s&\\\${datarootdir}&$datarootdir&g' ;;
6713esac
6714_ACEOF
6715
6716# Neutralize VPATH when `$srcdir' = `.'.
6717# Shell code in configure.ac might set extrasub.
6718# FIXME: do we really want to maintain this feature?
6719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6720ac_sed_extra="$ac_vpsub
6721$extrasub
6722_ACEOF
6723cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6724:t
6725/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6726s|@configure_input@|$ac_sed_conf_input|;t t
6727s&@top_builddir@&$ac_top_builddir_sub&;t t
6728s&@top_build_prefix@&$ac_top_build_prefix&;t t
6729s&@srcdir@&$ac_srcdir&;t t
6730s&@abs_srcdir@&$ac_abs_srcdir&;t t
6731s&@top_srcdir@&$ac_top_srcdir&;t t
6732s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6733s&@builddir@&$ac_builddir&;t t
6734s&@abs_builddir@&$ac_abs_builddir&;t t
6735s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6736s&@INSTALL@&$ac_INSTALL&;t t
6737s&@MKDIR_P@&$ac_MKDIR_P&;t t
6738$ac_datarootdir_hack
6739"
6740eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6741  || as_fn_error "could not create $ac_file" "$LINENO" 5
6742
6743test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6744  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6745  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6746  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6747which seems to be undefined.  Please make sure it is defined." >&5
6748$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6749which seems to be undefined.  Please make sure it is defined." >&2;}
6750
6751  rm -f "$tmp/stdin"
6752  case $ac_file in
6753  -) cat "$tmp/out" && rm -f "$tmp/out";;
6754  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6755  esac \
6756  || as_fn_error "could not create $ac_file" "$LINENO" 5
6757 ;;
6758
6759
6760
6761  esac
6762
6763done # for ac_tag
6764
6765
6766as_fn_exit 0
6767_ACEOF
6768ac_clean_files=$ac_clean_files_save
6769
6770test $ac_write_fail = 0 ||
6771  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6772
6773
6774# configure is writing to config.log, and then calls config.status.
6775# config.status does its own redirection, appending to config.log.
6776# Unfortunately, on DOS this fails, as config.log is still kept open
6777# by configure, so config.status won't be able to write to it; its
6778# output is simply discarded.  So we exec the FD to /dev/null,
6779# effectively closing config.log, so it can be properly (re)opened and
6780# appended to by config.status.  When coming back to configure, we
6781# need to make the FD available again.
6782if test "$no_create" != yes; then
6783  ac_cs_success=:
6784  ac_config_status_args=
6785  test "$silent" = yes &&
6786    ac_config_status_args="$ac_config_status_args --quiet"
6787  exec 5>/dev/null
6788  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6789  exec 5>>config.log
6790  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6791  # would make configure fail if this is the last instruction.
6792  $ac_cs_success || as_fn_exit $?
6793fi
6794if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6795  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6796$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6797fi
6798
Note: See TracBrowser for help on using the repository browser.