OSDN Git Service

* libc/getopt.c (getopt_internal): Set optreset according to optind
[pf3gnuchains/pf3gnuchains3x.git] / libgui / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="src/subcommand.h"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_subst_vars='am__EXEEXT_FALSE
592 am__EXEEXT_TRUE
593 LTLIBOBJS
594 LIBOBJS
595 RPATH_ENVVAR
596 TCL_SHARED_FALSE
597 TCL_SHARED_TRUE
598 TK_LIBS
599 TCL_LIBRARY
600 TK_LIBRARY
601 TCL_LIBS
602 TK_XINCLUDES
603 TK_INCLUDES
604 TK_DEFS
605 TCL_INCLUDES
606 TCL_DEFS
607 TK_STUB_LIB_SPEC
608 TK_STUB_LIB_FLAG
609 TK_STUB_LIB_FILE
610 TK_LIB_SPEC
611 TK_LIB_FLAG
612 TK_LIB_FILE
613 TK_SRC_DIR
614 TK_BIN_DIR
615 TK_VERSION
616 TCL_STUB_LIB_SPEC
617 TCL_STUB_LIB_FLAG
618 TCL_STUB_LIB_FILE
619 TCL_LIB_SPEC
620 TCL_LIB_FLAG
621 TCL_LIB_FILE
622 TCL_SRC_DIR
623 TCL_BIN_DIR
624 TCL_PATCH_LEVEL
625 TCL_VERSION
626 LIBGUI_LIBRARY_DIR
627 LIBGUI_CFLAGS
628 IDE_ENABLED_FALSE
629 IDE_ENABLED_TRUE
630 EGREP
631 GREP
632 CPP
633 ALLOCA
634 AR
635 RANLIB
636 INSTALL_LIBGUI_FALSE
637 INSTALL_LIBGUI_TRUE
638 CROSS_COMPILING_FALSE
639 CROSS_COMPILING_TRUE
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 am__untar
668 am__tar
669 AMTAR
670 am__leading_dot
671 SET_MAKE
672 AWK
673 mkdir_p
674 MKDIR_P
675 INSTALL_STRIP_PROGRAM
676 STRIP
677 install_sh
678 MAKEINFO
679 AUTOHEADER
680 AUTOMAKE
681 AUTOCONF
682 ACLOCAL
683 VERSION
684 PACKAGE
685 CYGPATH_W
686 am__isrc
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 target_alias
691 host_alias
692 build_alias
693 LIBS
694 ECHO_T
695 ECHO_N
696 ECHO_C
697 DEFS
698 mandir
699 localedir
700 libdir
701 psdir
702 pdfdir
703 dvidir
704 htmldir
705 infodir
706 docdir
707 oldincludedir
708 includedir
709 localstatedir
710 sharedstatedir
711 sysconfdir
712 datadir
713 datarootdir
714 libexecdir
715 sbindir
716 bindir
717 program_transform_name
718 prefix
719 exec_prefix
720 PACKAGE_URL
721 PACKAGE_BUGREPORT
722 PACKAGE_STRING
723 PACKAGE_VERSION
724 PACKAGE_TARNAME
725 PACKAGE_NAME
726 PATH_SEPARATOR
727 SHELL'
728 ac_subst_files=''
729 ac_user_opts='
730 enable_option_checking
731 enable_maintainer_mode
732 enable_dependency_tracking
733 enable_install_libgui
734 enable_ide
735 with_tcl
736 with_tk
737 '
738       ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CC
742 CFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CPP'
747
748
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 ac_unrecognized_opts=
753 ac_unrecognized_sep=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801   # If the previous option needs an argument, assign it.
802   if test -n "$ac_prev"; then
803     eval $ac_prev=\$ac_option
804     ac_prev=
805     continue
806   fi
807
808   case $ac_option in
809   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810   *)    ac_optarg=yes ;;
811   esac
812
813   # Accept the important Cygnus configure options, so we can diagnose typos.
814
815   case $ac_dashdash$ac_option in
816   --)
817     ac_dashdash=yes ;;
818
819   -bindir | --bindir | --bindi | --bind | --bin | --bi)
820     ac_prev=bindir ;;
821   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822     bindir=$ac_optarg ;;
823
824   -build | --build | --buil | --bui | --bu)
825     ac_prev=build_alias ;;
826   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827     build_alias=$ac_optarg ;;
828
829   -cache-file | --cache-file | --cache-fil | --cache-fi \
830   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831     ac_prev=cache_file ;;
832   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834     cache_file=$ac_optarg ;;
835
836   --config-cache | -C)
837     cache_file=config.cache ;;
838
839   -datadir | --datadir | --datadi | --datad)
840     ac_prev=datadir ;;
841   -datadir=* | --datadir=* | --datadi=* | --datad=*)
842     datadir=$ac_optarg ;;
843
844   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845   | --dataroo | --dataro | --datar)
846     ac_prev=datarootdir ;;
847   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849     datarootdir=$ac_optarg ;;
850
851   -disable-* | --disable-*)
852     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853     # Reject names that are not valid shell variable names.
854     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855       as_fn_error "invalid feature name: $ac_useropt"
856     ac_useropt_orig=$ac_useropt
857     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858     case $ac_user_opts in
859       *"
860 "enable_$ac_useropt"
861 "*) ;;
862       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863          ac_unrecognized_sep=', ';;
864     esac
865     eval enable_$ac_useropt=no ;;
866
867   -docdir | --docdir | --docdi | --doc | --do)
868     ac_prev=docdir ;;
869   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870     docdir=$ac_optarg ;;
871
872   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873     ac_prev=dvidir ;;
874   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875     dvidir=$ac_optarg ;;
876
877   -enable-* | --enable-*)
878     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879     # Reject names that are not valid shell variable names.
880     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881       as_fn_error "invalid feature name: $ac_useropt"
882     ac_useropt_orig=$ac_useropt
883     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884     case $ac_user_opts in
885       *"
886 "enable_$ac_useropt"
887 "*) ;;
888       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889          ac_unrecognized_sep=', ';;
890     esac
891     eval enable_$ac_useropt=\$ac_optarg ;;
892
893   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895   | --exec | --exe | --ex)
896     ac_prev=exec_prefix ;;
897   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899   | --exec=* | --exe=* | --ex=*)
900     exec_prefix=$ac_optarg ;;
901
902   -gas | --gas | --ga | --g)
903     # Obsolete; use --with-gas.
904     with_gas=yes ;;
905
906   -help | --help | --hel | --he | -h)
907     ac_init_help=long ;;
908   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909     ac_init_help=recursive ;;
910   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911     ac_init_help=short ;;
912
913   -host | --host | --hos | --ho)
914     ac_prev=host_alias ;;
915   -host=* | --host=* | --hos=* | --ho=*)
916     host_alias=$ac_optarg ;;
917
918   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
919     ac_prev=htmldir ;;
920   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
921   | --ht=*)
922     htmldir=$ac_optarg ;;
923
924   -includedir | --includedir | --includedi | --included | --include \
925   | --includ | --inclu | --incl | --inc)
926     ac_prev=includedir ;;
927   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928   | --includ=* | --inclu=* | --incl=* | --inc=*)
929     includedir=$ac_optarg ;;
930
931   -infodir | --infodir | --infodi | --infod | --info | --inf)
932     ac_prev=infodir ;;
933   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934     infodir=$ac_optarg ;;
935
936   -libdir | --libdir | --libdi | --libd)
937     ac_prev=libdir ;;
938   -libdir=* | --libdir=* | --libdi=* | --libd=*)
939     libdir=$ac_optarg ;;
940
941   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942   | --libexe | --libex | --libe)
943     ac_prev=libexecdir ;;
944   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945   | --libexe=* | --libex=* | --libe=*)
946     libexecdir=$ac_optarg ;;
947
948   -localedir | --localedir | --localedi | --localed | --locale)
949     ac_prev=localedir ;;
950   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951     localedir=$ac_optarg ;;
952
953   -localstatedir | --localstatedir | --localstatedi | --localstated \
954   | --localstate | --localstat | --localsta | --localst | --locals)
955     ac_prev=localstatedir ;;
956   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958     localstatedir=$ac_optarg ;;
959
960   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
961     ac_prev=mandir ;;
962   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
963     mandir=$ac_optarg ;;
964
965   -nfp | --nfp | --nf)
966     # Obsolete; use --without-fp.
967     with_fp=no ;;
968
969   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970   | --no-cr | --no-c | -n)
971     no_create=yes ;;
972
973   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975     no_recursion=yes ;;
976
977   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979   | --oldin | --oldi | --old | --ol | --o)
980     ac_prev=oldincludedir ;;
981   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984     oldincludedir=$ac_optarg ;;
985
986   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
987     ac_prev=prefix ;;
988   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989     prefix=$ac_optarg ;;
990
991   -program-prefix | --program-prefix | --program-prefi | --program-pref \
992   | --program-pre | --program-pr | --program-p)
993     ac_prev=program_prefix ;;
994   -program-prefix=* | --program-prefix=* | --program-prefi=* \
995   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996     program_prefix=$ac_optarg ;;
997
998   -program-suffix | --program-suffix | --program-suffi | --program-suff \
999   | --program-suf | --program-su | --program-s)
1000     ac_prev=program_suffix ;;
1001   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003     program_suffix=$ac_optarg ;;
1004
1005   -program-transform-name | --program-transform-name \
1006   | --program-transform-nam | --program-transform-na \
1007   | --program-transform-n | --program-transform- \
1008   | --program-transform | --program-transfor \
1009   | --program-transfo | --program-transf \
1010   | --program-trans | --program-tran \
1011   | --progr-tra | --program-tr | --program-t)
1012     ac_prev=program_transform_name ;;
1013   -program-transform-name=* | --program-transform-name=* \
1014   | --program-transform-nam=* | --program-transform-na=* \
1015   | --program-transform-n=* | --program-transform-=* \
1016   | --program-transform=* | --program-transfor=* \
1017   | --program-transfo=* | --program-transf=* \
1018   | --program-trans=* | --program-tran=* \
1019   | --progr-tra=* | --program-tr=* | --program-t=*)
1020     program_transform_name=$ac_optarg ;;
1021
1022   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1023     ac_prev=pdfdir ;;
1024   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025     pdfdir=$ac_optarg ;;
1026
1027   -psdir | --psdir | --psdi | --psd | --ps)
1028     ac_prev=psdir ;;
1029   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030     psdir=$ac_optarg ;;
1031
1032   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033   | -silent | --silent | --silen | --sile | --sil)
1034     silent=yes ;;
1035
1036   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1037     ac_prev=sbindir ;;
1038   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1039   | --sbi=* | --sb=*)
1040     sbindir=$ac_optarg ;;
1041
1042   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044   | --sharedst | --shareds | --shared | --share | --shar \
1045   | --sha | --sh)
1046     ac_prev=sharedstatedir ;;
1047   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1050   | --sha=* | --sh=*)
1051     sharedstatedir=$ac_optarg ;;
1052
1053   -site | --site | --sit)
1054     ac_prev=site ;;
1055   -site=* | --site=* | --sit=*)
1056     site=$ac_optarg ;;
1057
1058   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1059     ac_prev=srcdir ;;
1060   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061     srcdir=$ac_optarg ;;
1062
1063   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064   | --syscon | --sysco | --sysc | --sys | --sy)
1065     ac_prev=sysconfdir ;;
1066   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068     sysconfdir=$ac_optarg ;;
1069
1070   -target | --target | --targe | --targ | --tar | --ta | --t)
1071     ac_prev=target_alias ;;
1072   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073     target_alias=$ac_optarg ;;
1074
1075   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076     verbose=yes ;;
1077
1078   -version | --version | --versio | --versi | --vers | -V)
1079     ac_init_version=: ;;
1080
1081   -with-* | --with-*)
1082     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085       as_fn_error "invalid package name: $ac_useropt"
1086     ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089       *"
1090 "with_$ac_useropt"
1091 "*) ;;
1092       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093          ac_unrecognized_sep=', ';;
1094     esac
1095     eval with_$ac_useropt=\$ac_optarg ;;
1096
1097   -without-* | --without-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       as_fn_error "invalid package name: $ac_useropt"
1102     ac_useropt_orig=$ac_useropt
1103     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104     case $ac_user_opts in
1105       *"
1106 "with_$ac_useropt"
1107 "*) ;;
1108       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109          ac_unrecognized_sep=', ';;
1110     esac
1111     eval with_$ac_useropt=no ;;
1112
1113   --x)
1114     # Obsolete; use --with-x.
1115     with_x=yes ;;
1116
1117   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118   | --x-incl | --x-inc | --x-in | --x-i)
1119     ac_prev=x_includes ;;
1120   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122     x_includes=$ac_optarg ;;
1123
1124   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126     ac_prev=x_libraries ;;
1127   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129     x_libraries=$ac_optarg ;;
1130
1131   -*) as_fn_error "unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information."
1133     ;;
1134
1135   *=*)
1136     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137     # Reject names that are not valid shell variable names.
1138     case $ac_envvar in #(
1139       '' | [0-9]* | *[!_$as_cr_alnum]* )
1140       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1141     esac
1142     eval $ac_envvar=\$ac_optarg
1143     export $ac_envvar ;;
1144
1145   *)
1146     # FIXME: should be removed in autoconf 3.0.
1147     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151     ;;
1152
1153   esac
1154 done
1155
1156 if test -n "$ac_prev"; then
1157   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158   as_fn_error "missing argument to $ac_option"
1159 fi
1160
1161 if test -n "$ac_unrecognized_opts"; then
1162   case $enable_option_checking in
1163     no) ;;
1164     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1165     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166   esac
1167 fi
1168
1169 # Check all directory arguments for consistency.
1170 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171                 datadir sysconfdir sharedstatedir localstatedir includedir \
1172                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173                 libdir localedir mandir
1174 do
1175   eval ac_val=\$$ac_var
1176   # Remove trailing slashes.
1177   case $ac_val in
1178     */ )
1179       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180       eval $ac_var=\$ac_val;;
1181   esac
1182   # Be sure to have absolute directory names.
1183   case $ac_val in
1184     [\\/$]* | ?:[\\/]* )  continue;;
1185     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186   esac
1187   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1188 done
1189
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1196
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199   if test "x$build_alias" = x; then
1200     cross_compiling=maybe
1201     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202     If a cross compiler is detected then cross compile mode will be used." >&2
1203   elif test "x$build_alias" != "x$host_alias"; then
1204     cross_compiling=yes
1205   fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217   as_fn_error "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219   as_fn_error "pwd does not report name of working directory"
1220
1221
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224   ac_srcdir_defaulted=yes
1225   # Try the directory containing this script, then the parent directory.
1226   ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228          X"$as_myself" : 'X\(//\)[^/]' \| \
1229          X"$as_myself" : 'X\(//\)$' \| \
1230          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)[^/].*/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\/\)$/{
1241             s//\1/
1242             q
1243           }
1244           /^X\(\/\).*/{
1245             s//\1/
1246             q
1247           }
1248           s/.*/./; q'`
1249   srcdir=$ac_confdir
1250   if test ! -r "$srcdir/$ac_unique_file"; then
1251     srcdir=..
1252   fi
1253 else
1254   ac_srcdir_defaulted=no
1255 fi
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1259 fi
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1263         pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266   srcdir=.
1267 fi
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276   eval ac_env_${ac_var}_value=\$${ac_var}
1277   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1280
1281 #
1282 # Report the --help message.
1283 #
1284 if test "$ac_init_help" = "long"; then
1285   # Omit some internal or obsolete options to make the list less imposing.
1286   # This message is too long to be a string in the A/UX 3.1 sh.
1287   cat <<_ACEOF
1288 \`configure' configures this package to adapt to many kinds of systems.
1289
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1291
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE.  See below for descriptions of some of the useful variables.
1294
1295 Defaults for the options are specified in brackets.
1296
1297 Configuration:
1298   -h, --help              display this help and exit
1299       --help=short        display options specific to this package
1300       --help=recursive    display the short help of all the included packages
1301   -V, --version           display version information and exit
1302   -q, --quiet, --silent   do not print \`checking...' messages
1303       --cache-file=FILE   cache test results in FILE [disabled]
1304   -C, --config-cache      alias for \`--cache-file=config.cache'
1305   -n, --no-create         do not create output files
1306       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1307
1308 Installation directories:
1309   --prefix=PREFIX         install architecture-independent files in PREFIX
1310                           [$ac_default_prefix]
1311   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1312                           [PREFIX]
1313
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1318
1319 For better control, use the options below.
1320
1321 Fine tuning of the installation directories:
1322   --bindir=DIR            user executables [EPREFIX/bin]
1323   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1324   --libexecdir=DIR        program executables [EPREFIX/libexec]
1325   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1326   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1327   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1328   --libdir=DIR            object code libraries [EPREFIX/lib]
1329   --includedir=DIR        C header files [PREFIX/include]
1330   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1331   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1332   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1333   --infodir=DIR           info documentation [DATAROOTDIR/info]
1334   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1335   --mandir=DIR            man documentation [DATAROOTDIR/man]
1336   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1337   --htmldir=DIR           html documentation [DOCDIR]
1338   --dvidir=DIR            dvi documentation [DOCDIR]
1339   --pdfdir=DIR            pdf documentation [DOCDIR]
1340   --psdir=DIR             ps documentation [DOCDIR]
1341 _ACEOF
1342
1343   cat <<\_ACEOF
1344
1345 Program names:
1346   --program-prefix=PREFIX            prepend PREFIX to installed program names
1347   --program-suffix=SUFFIX            append SUFFIX to installed program names
1348   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1349
1350 System types:
1351   --build=BUILD     configure for building on BUILD [guessed]
1352   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1353 _ACEOF
1354 fi
1355
1356 if test -n "$ac_init_help"; then
1357
1358   cat <<\_ACEOF
1359
1360 Optional Features:
1361   --disable-option-checking  ignore unrecognized --enable/--with options
1362   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1364   --enable-maintainer-mode  enable make rules and dependencies not useful
1365                           (and sometimes confusing) to the casual installer
1366   --disable-dependency-tracking  speeds up one-time build
1367   --enable-dependency-tracking   do not reject slow dependency extractors
1368 \
1369     --enable-install-libgui Install libgui.a and library header files
1370   --enable-ide            Enable IDE support
1371
1372 Optional Packages:
1373   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1374   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1375   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1376   --with-tk               directory containing tk configuration (tkConfig.sh)
1377
1378 Some influential environment variables:
1379   CC          C compiler command
1380   CFLAGS      C compiler flags
1381   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1382               nonstandard directory <lib dir>
1383   LIBS        libraries to pass to the linker, e.g. -l<library>
1384   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385               you have headers in a nonstandard directory <include dir>
1386   CPP         C preprocessor
1387
1388 Use these variables to override the choices made by `configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1390
1391 Report bugs to the package provider.
1392 _ACEOF
1393 ac_status=$?
1394 fi
1395
1396 if test "$ac_init_help" = "recursive"; then
1397   # If there are subdirs, report their specific --help.
1398   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399     test -d "$ac_dir" ||
1400       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1401       continue
1402     ac_builddir=.
1403
1404 case "$ac_dir" in
1405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *)
1407   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1408   # A ".." for each directory in $ac_dir_suffix.
1409   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1410   case $ac_top_builddir_sub in
1411   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413   esac ;;
1414 esac
1415 ac_abs_top_builddir=$ac_pwd
1416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir=$ac_top_build_prefix
1419
1420 case $srcdir in
1421   .)  # We are building in place.
1422     ac_srcdir=.
1423     ac_top_srcdir=$ac_top_builddir_sub
1424     ac_abs_top_srcdir=$ac_pwd ;;
1425   [\\/]* | ?:[\\/]* )  # Absolute name.
1426     ac_srcdir=$srcdir$ac_dir_suffix;
1427     ac_top_srcdir=$srcdir
1428     ac_abs_top_srcdir=$srcdir ;;
1429   *) # Relative name.
1430     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431     ac_top_srcdir=$ac_top_build_prefix$srcdir
1432     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 esac
1434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435
1436     cd "$ac_dir" || { ac_status=$?; continue; }
1437     # Check for guested configure.
1438     if test -f "$ac_srcdir/configure.gnu"; then
1439       echo &&
1440       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441     elif test -f "$ac_srcdir/configure"; then
1442       echo &&
1443       $SHELL "$ac_srcdir/configure" --help=recursive
1444     else
1445       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446     fi || ac_status=$?
1447     cd "$ac_pwd" || { ac_status=$?; break; }
1448   done
1449 fi
1450
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1453   cat <<\_ACEOF
1454 configure
1455 generated by GNU Autoconf 2.64
1456
1457 Copyright (C) 2009 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461   exit
1462 fi
1463
1464 ## ------------------------ ##
1465 ## Autoconf initialization. ##
1466 ## ------------------------ ##
1467
1468 # ac_fn_c_try_compile LINENO
1469 # --------------------------
1470 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1471 ac_fn_c_try_compile ()
1472 {
1473   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474   rm -f conftest.$ac_objext
1475   if { { ac_try="$ac_compile"
1476 case "(($ac_try" in
1477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478   *) ac_try_echo=$ac_try;;
1479 esac
1480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481 $as_echo "$ac_try_echo"; } >&5
1482   (eval "$ac_compile") 2>conftest.err
1483   ac_status=$?
1484   if test -s conftest.err; then
1485     grep -v '^ *+' conftest.err >conftest.er1
1486     cat conftest.er1 >&5
1487     mv -f conftest.er1 conftest.err
1488   fi
1489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490   test $ac_status = 0; } && {
1491          test -z "$ac_c_werror_flag" ||
1492          test ! -s conftest.err
1493        } && test -s conftest.$ac_objext; then :
1494   ac_retval=0
1495 else
1496   $as_echo "$as_me: failed program was:" >&5
1497 sed 's/^/| /' conftest.$ac_ext >&5
1498
1499         ac_retval=1
1500 fi
1501   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1502   return $ac_retval
1503
1504 } # ac_fn_c_try_compile
1505
1506 # ac_fn_c_try_link LINENO
1507 # -----------------------
1508 # Try to link conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_link ()
1510 {
1511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512   rm -f conftest.$ac_objext conftest$ac_exeext
1513   if { { ac_try="$ac_link"
1514 case "(($ac_try" in
1515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516   *) ac_try_echo=$ac_try;;
1517 esac
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520   (eval "$ac_link") 2>conftest.err
1521   ac_status=$?
1522   if test -s conftest.err; then
1523     grep -v '^ *+' conftest.err >conftest.er1
1524     cat conftest.er1 >&5
1525     mv -f conftest.er1 conftest.err
1526   fi
1527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528   test $ac_status = 0; } && {
1529          test -z "$ac_c_werror_flag" ||
1530          test ! -s conftest.err
1531        } && test -s conftest$ac_exeext && {
1532          test "$cross_compiling" = yes ||
1533          $as_test_x conftest$ac_exeext
1534        }; then :
1535   ac_retval=0
1536 else
1537   $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540         ac_retval=1
1541 fi
1542   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1543   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1544   # interfere with the next link command; also delete a directory that is
1545   # left behind by Apple's compiler.  We do this before executing the actions.
1546   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1547   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1548   return $ac_retval
1549
1550 } # ac_fn_c_try_link
1551
1552 # ac_fn_c_try_cpp LINENO
1553 # ----------------------
1554 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_cpp ()
1556 {
1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558   if { { ac_try="$ac_cpp conftest.$ac_ext"
1559 case "(($ac_try" in
1560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561   *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566   ac_status=$?
1567   if test -s conftest.err; then
1568     grep -v '^ *+' conftest.err >conftest.er1
1569     cat conftest.er1 >&5
1570     mv -f conftest.er1 conftest.err
1571   fi
1572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573   test $ac_status = 0; } >/dev/null && {
1574          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575          test ! -s conftest.err
1576        }; then :
1577   ac_retval=0
1578 else
1579   $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582     ac_retval=1
1583 fi
1584   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585   return $ac_retval
1586
1587 } # ac_fn_c_try_cpp
1588
1589 # ac_fn_c_check_func LINENO FUNC VAR
1590 # ----------------------------------
1591 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1592 ac_fn_c_check_func ()
1593 {
1594   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1598   $as_echo_n "(cached) " >&6
1599 else
1600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h.  */
1602 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1604 #define $2 innocuous_$2
1605
1606 /* System header to define __stub macros and hopefully few prototypes,
1607     which can conflict with char $2 (); below.
1608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1609     <limits.h> exists even on freestanding compilers.  */
1610
1611 #ifdef __STDC__
1612 # include <limits.h>
1613 #else
1614 # include <assert.h>
1615 #endif
1616
1617 #undef $2
1618
1619 /* Override any GCC internal prototype to avoid an error.
1620    Use char because int might match the return type of a GCC
1621    builtin and then its argument prototype would still apply.  */
1622 #ifdef __cplusplus
1623 extern "C"
1624 #endif
1625 char $2 ();
1626 /* The GNU C library defines this for functions which it implements
1627     to always fail with ENOSYS.  Some functions are actually named
1628     something starting with __ and the normal name is an alias.  */
1629 #if defined __stub_$2 || defined __stub___$2
1630 choke me
1631 #endif
1632
1633 int
1634 main ()
1635 {
1636 return $2 ();
1637   ;
1638   return 0;
1639 }
1640 _ACEOF
1641 if ac_fn_c_try_link "$LINENO"; then :
1642   eval "$3=yes"
1643 else
1644   eval "$3=no"
1645 fi
1646 rm -f core conftest.err conftest.$ac_objext \
1647     conftest$ac_exeext conftest.$ac_ext
1648 fi
1649 eval ac_res=\$$3
1650                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1652   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653
1654 } # ac_fn_c_check_func
1655
1656 # ac_fn_c_try_run LINENO
1657 # ----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659 # that executables *can* be run.
1660 ac_fn_c_try_run ()
1661 {
1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663   if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666   *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670   (eval "$ac_link") 2>&5
1671   ac_status=$?
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674   { { case "(($ac_try" in
1675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676   *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680   (eval "$ac_try") 2>&5
1681   ac_status=$?
1682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683   test $ac_status = 0; }; }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: program exited with status $ac_status" >&5
1687        $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690        ac_retval=$ac_status
1691 fi
1692   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694   return $ac_retval
1695
1696 } # ac_fn_c_try_run
1697
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708   $as_echo_n "(cached) " >&6
1709 else
1710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h.  */
1712 $4
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716   eval "$3=yes"
1717 else
1718   eval "$3=no"
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 fi
1722 eval ac_res=\$$3
1723                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726
1727 } # ac_fn_c_check_header_compile
1728
1729 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1733 # accordingly.
1734 ac_fn_c_check_header_mongrel ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741   $as_echo_n "(cached) " >&6
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 else
1747   # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h.  */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756   ac_header_compiler=yes
1757 else
1758   ac_header_compiler=no
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1763
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h.  */
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_cpp "$LINENO"; then :
1772   ac_header_preproc=yes
1773 else
1774   ac_header_preproc=no
1775 fi
1776 rm -f conftest.err conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1779
1780 # So?  What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782   yes:no: )
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787     ;;
1788   no:yes:* )
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1797     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799     ;;
1800 esac
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804   $as_echo_n "(cached) " >&6
1805 else
1806   eval "$3=\$ac_header_compiler"
1807 fi
1808 eval ac_res=\$$3
1809                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 fi
1812   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814 } # ac_fn_c_check_header_mongrel
1815 cat >config.log <<_ACEOF
1816 This file contains any messages produced by compilers while
1817 running configure, to aid debugging if configure makes a mistake.
1818
1819 It was created by $as_me, which was
1820 generated by GNU Autoconf 2.64.  Invocation command line was
1821
1822   $ $0 $@
1823
1824 _ACEOF
1825 exec 5>>config.log
1826 {
1827 cat <<_ASUNAME
1828 ## --------- ##
1829 ## Platform. ##
1830 ## --------- ##
1831
1832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1837
1838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1840
1841 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1842 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1845 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1846 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1847 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1848
1849 _ASUNAME
1850
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854   IFS=$as_save_IFS
1855   test -z "$as_dir" && as_dir=.
1856     $as_echo "PATH: $as_dir"
1857   done
1858 IFS=$as_save_IFS
1859
1860 } >&5
1861
1862 cat >&5 <<_ACEOF
1863
1864
1865 ## ----------- ##
1866 ## Core tests. ##
1867 ## ----------- ##
1868
1869 _ACEOF
1870
1871
1872 # Keep a trace of the command line.
1873 # Strip out --no-create and --no-recursion so they do not pile up.
1874 # Strip out --silent because we don't want to record it for future runs.
1875 # Also quote any args containing shell meta-characters.
1876 # Make two passes to allow for proper duplicate-argument suppression.
1877 ac_configure_args=
1878 ac_configure_args0=
1879 ac_configure_args1=
1880 ac_must_keep_next=false
1881 for ac_pass in 1 2
1882 do
1883   for ac_arg
1884   do
1885     case $ac_arg in
1886     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888     | -silent | --silent | --silen | --sile | --sil)
1889       continue ;;
1890     *\'*)
1891       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892     esac
1893     case $ac_pass in
1894     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1895     2)
1896       as_fn_append ac_configure_args1 " '$ac_arg'"
1897       if test $ac_must_keep_next = true; then
1898         ac_must_keep_next=false # Got value, back to normal.
1899       else
1900         case $ac_arg in
1901           *=* | --config-cache | -C | -disable-* | --disable-* \
1902           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904           | -with-* | --with-* | -without-* | --without-* | --x)
1905             case "$ac_configure_args0 " in
1906               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1907             esac
1908             ;;
1909           -* ) ac_must_keep_next=true ;;
1910         esac
1911       fi
1912       as_fn_append ac_configure_args " '$ac_arg'"
1913       ;;
1914     esac
1915   done
1916 done
1917 { ac_configure_args0=; unset ac_configure_args0;}
1918 { ac_configure_args1=; unset ac_configure_args1;}
1919
1920 # When interrupted or exit'd, cleanup temporary files, and complete
1921 # config.log.  We remove comments because anyway the quotes in there
1922 # would cause problems or look ugly.
1923 # WARNING: Use '\'' to represent an apostrophe within the trap.
1924 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925 trap 'exit_status=$?
1926   # Save into config.log some information that might help in debugging.
1927   {
1928     echo
1929
1930     cat <<\_ASBOX
1931 ## ---------------- ##
1932 ## Cache variables. ##
1933 ## ---------------- ##
1934 _ASBOX
1935     echo
1936     # The following way of writing the cache mishandles newlines in values,
1937 (
1938   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1939     eval ac_val=\$$ac_var
1940     case $ac_val in #(
1941     *${as_nl}*)
1942       case $ac_var in #(
1943       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1944 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1945       esac
1946       case $ac_var in #(
1947       _ | IFS | as_nl) ;; #(
1948       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1949       *) { eval $ac_var=; unset $ac_var;} ;;
1950       esac ;;
1951     esac
1952   done
1953   (set) 2>&1 |
1954     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1955     *${as_nl}ac_space=\ *)
1956       sed -n \
1957         "s/'\''/'\''\\\\'\'''\''/g;
1958           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1959       ;; #(
1960     *)
1961       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1962       ;;
1963     esac |
1964     sort
1965 )
1966     echo
1967
1968     cat <<\_ASBOX
1969 ## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##
1972 _ASBOX
1973     echo
1974     for ac_var in $ac_subst_vars
1975     do
1976       eval ac_val=\$$ac_var
1977       case $ac_val in
1978       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979       esac
1980       $as_echo "$ac_var='\''$ac_val'\''"
1981     done | sort
1982     echo
1983
1984     if test -n "$ac_subst_files"; then
1985       cat <<\_ASBOX
1986 ## ------------------- ##
1987 ## File substitutions. ##
1988 ## ------------------- ##
1989 _ASBOX
1990       echo
1991       for ac_var in $ac_subst_files
1992       do
1993         eval ac_val=\$$ac_var
1994         case $ac_val in
1995         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996         esac
1997         $as_echo "$ac_var='\''$ac_val'\''"
1998       done | sort
1999       echo
2000     fi
2001
2002     if test -s confdefs.h; then
2003       cat <<\_ASBOX
2004 ## ----------- ##
2005 ## confdefs.h. ##
2006 ## ----------- ##
2007 _ASBOX
2008       echo
2009       cat confdefs.h
2010       echo
2011     fi
2012     test "$ac_signal" != 0 &&
2013       $as_echo "$as_me: caught signal $ac_signal"
2014     $as_echo "$as_me: exit $exit_status"
2015   } >&5
2016   rm -f core *.core core.conftest.* &&
2017     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2018     exit $exit_status
2019 ' 0
2020 for ac_signal in 1 2 13 15; do
2021   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2022 done
2023 ac_signal=0
2024
2025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026 rm -f -r conftest* confdefs.h
2027
2028 $as_echo "/* confdefs.h */" > confdefs.h
2029
2030 # Predefined preprocessor variables.
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_NAME "$PACKAGE_NAME"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_STRING "$PACKAGE_STRING"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_URL "$PACKAGE_URL"
2054 _ACEOF
2055
2056
2057 # Let the site file select an alternate cache file if it wants to.
2058 # Prefer an explicitly selected file to automatically selected ones.
2059 ac_site_file1=NONE
2060 ac_site_file2=NONE
2061 if test -n "$CONFIG_SITE"; then
2062   ac_site_file1=$CONFIG_SITE
2063 elif test "x$prefix" != xNONE; then
2064   ac_site_file1=$prefix/share/config.site
2065   ac_site_file2=$prefix/etc/config.site
2066 else
2067   ac_site_file1=$ac_default_prefix/share/config.site
2068   ac_site_file2=$ac_default_prefix/etc/config.site
2069 fi
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2071 do
2072   test "x$ac_site_file" = xNONE && continue
2073   if test -r "$ac_site_file"; then
2074     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076     sed 's/^/| /' "$ac_site_file" >&5
2077     . "$ac_site_file"
2078   fi
2079 done
2080
2081 if test -r "$cache_file"; then
2082   # Some versions of bash will fail to source /dev/null (special
2083   # files actually), so we avoid doing that.
2084   if test -f "$cache_file"; then
2085     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086 $as_echo "$as_me: loading cache $cache_file" >&6;}
2087     case $cache_file in
2088       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089       *)                      . "./$cache_file";;
2090     esac
2091   fi
2092 else
2093   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094 $as_echo "$as_me: creating cache $cache_file" >&6;}
2095   >$cache_file
2096 fi
2097
2098 # Check that the precious variables saved in the cache have kept the same
2099 # value.
2100 ac_cache_corrupted=false
2101 for ac_var in $ac_precious_vars; do
2102   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103   eval ac_new_set=\$ac_env_${ac_var}_set
2104   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105   eval ac_new_val=\$ac_env_${ac_var}_value
2106   case $ac_old_set,$ac_new_set in
2107     set,)
2108       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110       ac_cache_corrupted=: ;;
2111     ,set)
2112       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114       ac_cache_corrupted=: ;;
2115     ,);;
2116     *)
2117       if test "x$ac_old_val" != "x$ac_new_val"; then
2118         # differences in whitespace do not lead to failure.
2119         ac_old_val_w=`echo x $ac_old_val`
2120         ac_new_val_w=`echo x $ac_new_val`
2121         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124           ac_cache_corrupted=:
2125         else
2126           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128           eval $ac_var=\$ac_old_val
2129         fi
2130         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2131 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2132         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2133 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2134       fi;;
2135   esac
2136   # Pass precious variables to config.status.
2137   if test "$ac_new_set" = set; then
2138     case $ac_new_val in
2139     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140     *) ac_arg=$ac_var=$ac_new_val ;;
2141     esac
2142     case " $ac_configure_args " in
2143       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2144       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2145     esac
2146   fi
2147 done
2148 if $ac_cache_corrupted; then
2149   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2154 fi
2155 ## -------------------- ##
2156 ## Main body of script. ##
2157 ## -------------------- ##
2158
2159 ac_ext=c
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2164
2165
2166 am__api_version='1.11'
2167
2168 ac_aux_dir=
2169 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2170   for ac_t in install-sh install.sh shtool; do
2171     if test -f "$ac_dir/$ac_t"; then
2172       ac_aux_dir=$ac_dir
2173       ac_install_sh="$ac_aux_dir/$ac_t -c"
2174       break 2
2175     fi
2176   done
2177 done
2178 if test -z "$ac_aux_dir"; then
2179   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2180 fi
2181
2182 # These three variables are undocumented and unsupported,
2183 # and are intended to be withdrawn in a future Autoconf release.
2184 # They can cause serious problems if a builder's source tree is in a directory
2185 # whose full name contains unusual characters.
2186 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2187 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2188 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2189
2190
2191 # Find a good install program.  We prefer a C program (faster),
2192 # so one script is as good as another.  But avoid the broken or
2193 # incompatible versions:
2194 # SysV /etc/install, /usr/sbin/install
2195 # SunOS /usr/etc/install
2196 # IRIX /sbin/install
2197 # AIX /bin/install
2198 # AmigaOS /C/install, which installs bootblocks on floppy discs
2199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2202 # OS/2's system install, which has a completely different semantic
2203 # ./install, which can be erroneously created by make from ./install.sh.
2204 # Reject install programs that cannot install multiple files.
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2207 if test -z "$INSTALL"; then
2208 if test "${ac_cv_path_install+set}" = set; then :
2209   $as_echo_n "(cached) " >&6
2210 else
2211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2213 do
2214   IFS=$as_save_IFS
2215   test -z "$as_dir" && as_dir=.
2216     # Account for people who put trailing slashes in PATH elements.
2217 case $as_dir/ in #((
2218   ./ | .// | /[cC]/* | \
2219   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2220   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2221   /usr/ucb/* ) ;;
2222   *)
2223     # OSF1 and SCO ODT 3.0 have their own names for install.
2224     # Don't use installbsd from OSF since it installs stuff as root
2225     # by default.
2226     for ac_prog in ginstall scoinst install; do
2227       for ac_exec_ext in '' $ac_executable_extensions; do
2228         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2229           if test $ac_prog = install &&
2230             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2231             # AIX install.  It has an incompatible calling convention.
2232             :
2233           elif test $ac_prog = install &&
2234             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2235             # program-specific install script used by HP pwplus--don't use.
2236             :
2237           else
2238             rm -rf conftest.one conftest.two conftest.dir
2239             echo one > conftest.one
2240             echo two > conftest.two
2241             mkdir conftest.dir
2242             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2243               test -s conftest.one && test -s conftest.two &&
2244               test -s conftest.dir/conftest.one &&
2245               test -s conftest.dir/conftest.two
2246             then
2247               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2248               break 3
2249             fi
2250           fi
2251         fi
2252       done
2253     done
2254     ;;
2255 esac
2256
2257   done
2258 IFS=$as_save_IFS
2259
2260 rm -rf conftest.one conftest.two conftest.dir
2261
2262 fi
2263   if test "${ac_cv_path_install+set}" = set; then
2264     INSTALL=$ac_cv_path_install
2265   else
2266     # As a last resort, use the slow shell script.  Don't cache a
2267     # value for INSTALL within a source directory, because that will
2268     # break other packages using the cache if that directory is
2269     # removed, or if the value is a relative name.
2270     INSTALL=$ac_install_sh
2271   fi
2272 fi
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2274 $as_echo "$INSTALL" >&6; }
2275
2276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2277 # It thinks the first close brace ends the variable substitution.
2278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2279
2280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2281
2282 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2283
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2285 $as_echo_n "checking whether build environment is sane... " >&6; }
2286 # Just in case
2287 sleep 1
2288 echo timestamp > conftest.file
2289 # Reject unsafe characters in $srcdir or the absolute working directory
2290 # name.  Accept space and tab only in the latter.
2291 am_lf='
2292 '
2293 case `pwd` in
2294   *[\\\"\#\$\&\'\`$am_lf]*)
2295     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2296 esac
2297 case $srcdir in
2298   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2299     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2300 esac
2301
2302 # Do `set' in a subshell so we don't clobber the current shell's
2303 # arguments.  Must try -L first in case configure is actually a
2304 # symlink; some systems play weird games with the mod time of symlinks
2305 # (eg FreeBSD returns the mod time of the symlink's containing
2306 # directory).
2307 if (
2308    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2309    if test "$*" = "X"; then
2310       # -L didn't work.
2311       set X `ls -t "$srcdir/configure" conftest.file`
2312    fi
2313    rm -f conftest.file
2314    if test "$*" != "X $srcdir/configure conftest.file" \
2315       && test "$*" != "X conftest.file $srcdir/configure"; then
2316
2317       # If neither matched, then we have a broken ls.  This can happen
2318       # if, for instance, CONFIG_SHELL is bash and it inherits a
2319       # broken ls alias from the environment.  This has actually
2320       # happened.  Such a system could not be considered "sane".
2321       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2322 alias in your environment" "$LINENO" 5
2323    fi
2324
2325    test "$2" = conftest.file
2326    )
2327 then
2328    # Ok.
2329    :
2330 else
2331    as_fn_error "newly created file is older than distributed files!
2332 Check your system clock" "$LINENO" 5
2333 fi
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2335 $as_echo "yes" >&6; }
2336 test "$program_prefix" != NONE &&
2337   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2338 # Use a double $ so make ignores it.
2339 test "$program_suffix" != NONE &&
2340   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2341 # Double any \ or $.
2342 # By default was `s,x,x', remove it if useless.
2343 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2344 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2345
2346 # expand $ac_aux_dir to an absolute path
2347 am_aux_dir=`cd $ac_aux_dir && pwd`
2348
2349 if test x"${MISSING+set}" != xset; then
2350   case $am_aux_dir in
2351   *\ * | *\     *)
2352     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2353   *)
2354     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2355   esac
2356 fi
2357 # Use eval to expand $SHELL
2358 if eval "$MISSING --run true"; then
2359   am_missing_run="$MISSING --run "
2360 else
2361   am_missing_run=
2362   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2363 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2364 fi
2365
2366 if test x"${install_sh}" != xset; then
2367   case $am_aux_dir in
2368   *\ * | *\     *)
2369     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2370   *)
2371     install_sh="\${SHELL} $am_aux_dir/install-sh"
2372   esac
2373 fi
2374
2375 # Installed binaries are usually stripped using `strip' when the user
2376 # run `make install-strip'.  However `strip' might not be the right
2377 # tool to use in cross-compilation environments, therefore Automake
2378 # will honor the `STRIP' environment variable to overrule this program.
2379 if test "$cross_compiling" != no; then
2380   if test -n "$ac_tool_prefix"; then
2381   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2382 set dummy ${ac_tool_prefix}strip; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if test "${ac_cv_prog_STRIP+set}" = set; then :
2386   $as_echo_n "(cached) " >&6
2387 else
2388   if test -n "$STRIP"; then
2389   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2390 else
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 for as_dir in $PATH
2393 do
2394   IFS=$as_save_IFS
2395   test -z "$as_dir" && as_dir=.
2396     for ac_exec_ext in '' $ac_executable_extensions; do
2397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400     break 2
2401   fi
2402 done
2403   done
2404 IFS=$as_save_IFS
2405
2406 fi
2407 fi
2408 STRIP=$ac_cv_prog_STRIP
2409 if test -n "$STRIP"; then
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2411 $as_echo "$STRIP" >&6; }
2412 else
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2415 fi
2416
2417
2418 fi
2419 if test -z "$ac_cv_prog_STRIP"; then
2420   ac_ct_STRIP=$STRIP
2421   # Extract the first word of "strip", so it can be a program name with args.
2422 set dummy strip; ac_word=$2
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2424 $as_echo_n "checking for $ac_word... " >&6; }
2425 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2426   $as_echo_n "(cached) " >&6
2427 else
2428   if test -n "$ac_ct_STRIP"; then
2429   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2433 do
2434   IFS=$as_save_IFS
2435   test -z "$as_dir" && as_dir=.
2436     for ac_exec_ext in '' $ac_executable_extensions; do
2437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438     ac_cv_prog_ac_ct_STRIP="strip"
2439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440     break 2
2441   fi
2442 done
2443   done
2444 IFS=$as_save_IFS
2445
2446 fi
2447 fi
2448 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2449 if test -n "$ac_ct_STRIP"; then
2450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2451 $as_echo "$ac_ct_STRIP" >&6; }
2452 else
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454 $as_echo "no" >&6; }
2455 fi
2456
2457   if test "x$ac_ct_STRIP" = x; then
2458     STRIP=":"
2459   else
2460     case $cross_compiling:$ac_tool_warned in
2461 yes:)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464 ac_tool_warned=yes ;;
2465 esac
2466     STRIP=$ac_ct_STRIP
2467   fi
2468 else
2469   STRIP="$ac_cv_prog_STRIP"
2470 fi
2471
2472 fi
2473 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2474
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2476 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2477 if test -z "$MKDIR_P"; then
2478   if test "${ac_cv_path_mkdir+set}" = set; then :
2479   $as_echo_n "(cached) " >&6
2480 else
2481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2483 do
2484   IFS=$as_save_IFS
2485   test -z "$as_dir" && as_dir=.
2486     for ac_prog in mkdir gmkdir; do
2487          for ac_exec_ext in '' $ac_executable_extensions; do
2488            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2489            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2490              'mkdir (GNU coreutils) '* | \
2491              'mkdir (coreutils) '* | \
2492              'mkdir (fileutils) '4.1*)
2493                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2494                break 3;;
2495            esac
2496          done
2497        done
2498   done
2499 IFS=$as_save_IFS
2500
2501 fi
2502
2503   if test "${ac_cv_path_mkdir+set}" = set; then
2504     MKDIR_P="$ac_cv_path_mkdir -p"
2505   else
2506     # As a last resort, use the slow shell script.  Don't cache a
2507     # value for MKDIR_P within a source directory, because that will
2508     # break other packages using the cache if that directory is
2509     # removed, or if the value is a relative name.
2510     test -d ./--version && rmdir ./--version
2511     MKDIR_P="$ac_install_sh -d"
2512   fi
2513 fi
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2515 $as_echo "$MKDIR_P" >&6; }
2516
2517 mkdir_p="$MKDIR_P"
2518 case $mkdir_p in
2519   [\\/$]* | ?:[\\/]*) ;;
2520   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2521 esac
2522
2523 for ac_prog in gawk mawk nawk awk
2524 do
2525   # Extract the first word of "$ac_prog", so it can be a program name with args.
2526 set dummy $ac_prog; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if test "${ac_cv_prog_AWK+set}" = set; then :
2530   $as_echo_n "(cached) " >&6
2531 else
2532   if test -n "$AWK"; then
2533   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540     for ac_exec_ext in '' $ac_executable_extensions; do
2541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542     ac_cv_prog_AWK="$ac_prog"
2543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547   done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 AWK=$ac_cv_prog_AWK
2553 if test -n "$AWK"; then
2554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2555 $as_echo "$AWK" >&6; }
2556 else
2557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2559 fi
2560
2561
2562   test -n "$AWK" && break
2563 done
2564
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2566 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2567 set x ${MAKE-make}
2568 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2569 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2570   $as_echo_n "(cached) " >&6
2571 else
2572   cat >conftest.make <<\_ACEOF
2573 SHELL = /bin/sh
2574 all:
2575         @echo '@@@%%%=$(MAKE)=@@@%%%'
2576 _ACEOF
2577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2578 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2579   *@@@%%%=?*=@@@%%%*)
2580     eval ac_cv_prog_make_${ac_make}_set=yes;;
2581   *)
2582     eval ac_cv_prog_make_${ac_make}_set=no;;
2583 esac
2584 rm -f conftest.make
2585 fi
2586 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2588 $as_echo "yes" >&6; }
2589   SET_MAKE=
2590 else
2591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2593   SET_MAKE="MAKE=${MAKE-make}"
2594 fi
2595
2596 rm -rf .tst 2>/dev/null
2597 mkdir .tst 2>/dev/null
2598 if test -d .tst; then
2599   am__leading_dot=.
2600 else
2601   am__leading_dot=_
2602 fi
2603 rmdir .tst 2>/dev/null
2604
2605 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2606   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2607   # is not polluted with repeated "-I."
2608   am__isrc=' -I$(srcdir)'
2609   # test to see if srcdir already configured
2610   if test -f $srcdir/config.status; then
2611     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2612   fi
2613 fi
2614
2615 # test whether we have cygpath
2616 if test -z "$CYGPATH_W"; then
2617   if (cygpath --version) >/dev/null 2>/dev/null; then
2618     CYGPATH_W='cygpath -w'
2619   else
2620     CYGPATH_W=echo
2621   fi
2622 fi
2623
2624
2625 # Define the identity of the package.
2626  PACKAGE=libgui
2627  VERSION=0.0
2628
2629
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE "$PACKAGE"
2632 _ACEOF
2633
2634
2635 cat >>confdefs.h <<_ACEOF
2636 #define VERSION "$VERSION"
2637 _ACEOF
2638
2639 # Some tools Automake needs.
2640
2641 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2642
2643
2644 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2645
2646
2647 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2648
2649
2650 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2651
2652
2653 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2654
2655 # We need awk for the "check" target.  The system "awk" is bad on
2656 # some platforms.
2657 # Always define AMTAR for backward compatibility.
2658
2659 AMTAR=${AMTAR-"${am_missing_run}tar"}
2660
2661 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2662
2663
2664
2665
2666
2667 ac_config_headers="$ac_config_headers config.h"
2668
2669
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2671 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2672     # Check whether --enable-maintainer-mode was given.
2673 if test "${enable_maintainer_mode+set}" = set; then :
2674   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2675 else
2676   USE_MAINTAINER_MODE=no
2677 fi
2678
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2680 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2681    if test $USE_MAINTAINER_MODE = yes; then
2682   MAINTAINER_MODE_TRUE=
2683   MAINTAINER_MODE_FALSE='#'
2684 else
2685   MAINTAINER_MODE_TRUE='#'
2686   MAINTAINER_MODE_FALSE=
2687 fi
2688
2689   MAINT=$MAINTAINER_MODE_TRUE
2690
2691
2692 # Make sure we can run config.sub.
2693 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2694   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2695
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2697 $as_echo_n "checking build system type... " >&6; }
2698 if test "${ac_cv_build+set}" = set; then :
2699   $as_echo_n "(cached) " >&6
2700 else
2701   ac_build_alias=$build_alias
2702 test "x$ac_build_alias" = x &&
2703   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2704 test "x$ac_build_alias" = x &&
2705   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2706 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2707   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2708
2709 fi
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2711 $as_echo "$ac_cv_build" >&6; }
2712 case $ac_cv_build in
2713 *-*-*) ;;
2714 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2715 esac
2716 build=$ac_cv_build
2717 ac_save_IFS=$IFS; IFS='-'
2718 set x $ac_cv_build
2719 shift
2720 build_cpu=$1
2721 build_vendor=$2
2722 shift; shift
2723 # Remember, the first character of IFS is used to create $*,
2724 # except with old shells:
2725 build_os=$*
2726 IFS=$ac_save_IFS
2727 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2728
2729
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2731 $as_echo_n "checking host system type... " >&6; }
2732 if test "${ac_cv_host+set}" = set; then :
2733   $as_echo_n "(cached) " >&6
2734 else
2735   if test "x$host_alias" = x; then
2736   ac_cv_host=$ac_cv_build
2737 else
2738   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2739     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2740 fi
2741
2742 fi
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2744 $as_echo "$ac_cv_host" >&6; }
2745 case $ac_cv_host in
2746 *-*-*) ;;
2747 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2748 esac
2749 host=$ac_cv_host
2750 ac_save_IFS=$IFS; IFS='-'
2751 set x $ac_cv_host
2752 shift
2753 host_cpu=$1
2754 host_vendor=$2
2755 shift; shift
2756 # Remember, the first character of IFS is used to create $*,
2757 # except with old shells:
2758 host_os=$*
2759 IFS=$ac_save_IFS
2760 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2761
2762
2763 ac_ext=c
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 if test -n "$ac_tool_prefix"; then
2769   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2770 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if test "${ac_cv_prog_CC+set}" = set; then :
2774   $as_echo_n "(cached) " >&6
2775 else
2776   if test -n "$CC"; then
2777   ac_cv_prog_CC="$CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2781 do
2782   IFS=$as_save_IFS
2783   test -z "$as_dir" && as_dir=.
2784     for ac_exec_ext in '' $ac_executable_extensions; do
2785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788     break 2
2789   fi
2790 done
2791   done
2792 IFS=$as_save_IFS
2793
2794 fi
2795 fi
2796 CC=$ac_cv_prog_CC
2797 if test -n "$CC"; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 fi
2804
2805
2806 fi
2807 if test -z "$ac_cv_prog_CC"; then
2808   ac_ct_CC=$CC
2809   # Extract the first word of "gcc", so it can be a program name with args.
2810 set dummy gcc; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   if test -n "$ac_ct_CC"; then
2817   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 else
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2821 do
2822   IFS=$as_save_IFS
2823   test -z "$as_dir" && as_dir=.
2824     for ac_exec_ext in '' $ac_executable_extensions; do
2825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826     ac_cv_prog_ac_ct_CC="gcc"
2827     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828     break 2
2829   fi
2830 done
2831   done
2832 IFS=$as_save_IFS
2833
2834 fi
2835 fi
2836 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837 if test -n "$ac_ct_CC"; then
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2839 $as_echo "$ac_ct_CC" >&6; }
2840 else
2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2843 fi
2844
2845   if test "x$ac_ct_CC" = x; then
2846     CC=""
2847   else
2848     case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854     CC=$ac_ct_CC
2855   fi
2856 else
2857   CC="$ac_cv_prog_CC"
2858 fi
2859
2860 if test -z "$CC"; then
2861           if test -n "$ac_tool_prefix"; then
2862     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   if test -n "$CC"; then
2870   ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875   IFS=$as_save_IFS
2876   test -z "$as_dir" && as_dir=.
2877     for ac_exec_ext in '' $ac_executable_extensions; do
2878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879     ac_cv_prog_CC="${ac_tool_prefix}cc"
2880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884   done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 CC=$ac_cv_prog_CC
2890 if test -n "$CC"; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2893 else
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899   fi
2900 fi
2901 if test -z "$CC"; then
2902   # Extract the first word of "cc", so it can be a program name with args.
2903 set dummy cc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if test -n "$CC"; then
2910   ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912   ac_prog_rejected=no
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_exec_ext in '' $ac_executable_extensions; do
2919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2921        ac_prog_rejected=yes
2922        continue
2923      fi
2924     ac_cv_prog_CC="cc"
2925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926     break 2
2927   fi
2928 done
2929   done
2930 IFS=$as_save_IFS
2931
2932 if test $ac_prog_rejected = yes; then
2933   # We found a bogon in the path, so make sure we never use it.
2934   set dummy $ac_cv_prog_CC
2935   shift
2936   if test $# != 0; then
2937     # We chose a different compiler from the bogus one.
2938     # However, it has the same basename, so the bogon will be chosen
2939     # first if we set CC to just the basename; use the full file name.
2940     shift
2941     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2942   fi
2943 fi
2944 fi
2945 fi
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2950 else
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2953 fi
2954
2955
2956 fi
2957 if test -z "$CC"; then
2958   if test -n "$ac_tool_prefix"; then
2959   for ac_prog in cl.exe
2960   do
2961     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then :
2966   $as_echo_n "(cached) " >&6
2967 else
2968   if test -n "$CC"; then
2969   ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976     for ac_exec_ext in '' $ac_executable_extensions; do
2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983   done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2992 else
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997
2998     test -n "$CC" && break
2999   done
3000 fi
3001 if test -z "$CC"; then
3002   ac_ct_CC=$CC
3003   for ac_prog in cl.exe
3004 do
3005   # Extract the first word of "$ac_prog", so it can be a program name with args.
3006 set dummy $ac_prog; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if test -n "$ac_ct_CC"; then
3013   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_ac_ct_CC="$ac_prog"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3035 $as_echo "$ac_ct_CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042   test -n "$ac_ct_CC" && break
3043 done
3044
3045   if test "x$ac_ct_CC" = x; then
3046     CC=""
3047   else
3048     case $cross_compiling:$ac_tool_warned in
3049 yes:)
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052 ac_tool_warned=yes ;;
3053 esac
3054     CC=$ac_ct_CC
3055   fi
3056 fi
3057
3058 fi
3059
3060
3061 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error "no acceptable C compiler found in \$PATH
3064 See \`config.log' for more details." "$LINENO" 5; }
3065
3066 # Provide some information about the compiler.
3067 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3068 set X $ac_compile
3069 ac_compiler=$2
3070 for ac_option in --version -v -V -qversion; do
3071   { { ac_try="$ac_compiler $ac_option >&5"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3079   ac_status=$?
3080   if test -s conftest.err; then
3081     sed '10a\
3082 ... rest of stderr output deleted ...
3083          10q' conftest.err >conftest.er1
3084     cat conftest.er1 >&5
3085     rm -f conftest.er1 conftest.err
3086   fi
3087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088   test $ac_status = 0; }
3089 done
3090
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h.  */
3093 #include <stdio.h>
3094 int
3095 main ()
3096 {
3097 FILE *f = fopen ("conftest.out", "w");
3098  return ferror (f) || fclose (f) != 0;
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 ac_clean_files_save=$ac_clean_files
3105 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3106 # Try to create an executable without -o first, disregard a.out.
3107 # It will help us diagnose broken compilers, and finding out an intuition
3108 # of exeext.
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3110 $as_echo_n "checking for C compiler default output file name... " >&6; }
3111 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3112
3113 # The possible output files:
3114 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3115
3116 ac_rmfiles=
3117 for ac_file in $ac_files
3118 do
3119   case $ac_file in
3120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3122   esac
3123 done
3124 rm -f $ac_rmfiles
3125
3126 if { { ac_try="$ac_link_default"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133   (eval "$ac_link_default") 2>&5
3134   ac_status=$?
3135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136   test $ac_status = 0; }; then :
3137   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3138 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3139 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3140 # so that the user can short-circuit this test for compilers unknown to
3141 # Autoconf.
3142 for ac_file in $ac_files ''
3143 do
3144   test -f "$ac_file" || continue
3145   case $ac_file in
3146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3147         ;;
3148     [ab].out )
3149         # We found the default executable, but exeext='' is most
3150         # certainly right.
3151         break;;
3152     *.* )
3153         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3154         then :; else
3155            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3156         fi
3157         # We set ac_cv_exeext here because the later test for it is not
3158         # safe: cross compilers may not add the suffix if given an `-o'
3159         # argument, so we may need to know it at that point already.
3160         # Even if this section looks crufty: it has the advantage of
3161         # actually working.
3162         break;;
3163     * )
3164         break;;
3165   esac
3166 done
3167 test "$ac_cv_exeext" = no && ac_cv_exeext=
3168
3169 else
3170   ac_file=''
3171 fi
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3173 $as_echo "$ac_file" >&6; }
3174 if test -z "$ac_file"; then :
3175   $as_echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 { as_fn_set_status 77
3181 as_fn_error "C compiler cannot create executables
3182 See \`config.log' for more details." "$LINENO" 5; }; }
3183 fi
3184 ac_exeext=$ac_cv_exeext
3185
3186 # Check that the compiler produces executables we can run.  If not, either
3187 # the compiler is broken, or we cross compile.
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3189 $as_echo_n "checking whether the C compiler works... " >&6; }
3190 # If not cross compiling, check that we can run a simple program.
3191 if test "$cross_compiling" != yes; then
3192   if { ac_try='./$ac_file'
3193   { { case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199   (eval "$ac_try") 2>&5
3200   ac_status=$?
3201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202   test $ac_status = 0; }; }; then
3203     cross_compiling=no
3204   else
3205     if test "$cross_compiling" = maybe; then
3206         cross_compiling=yes
3207     else
3208         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error "cannot run C compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details." "$LINENO" 5; }
3213     fi
3214   fi
3215 fi
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3218
3219 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3220 ac_clean_files=$ac_clean_files_save
3221 # Check that the compiler produces executables we can run.  If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3224 $as_echo_n "checking whether we are cross compiling... " >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3226 $as_echo "$cross_compiling" >&6; }
3227
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3229 $as_echo_n "checking for suffix of executables... " >&6; }
3230 if { { ac_try="$ac_link"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237   (eval "$ac_link") 2>&5
3238   ac_status=$?
3239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240   test $ac_status = 0; }; then :
3241   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3242 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3243 # work properly (i.e., refer to `conftest.exe'), while it won't with
3244 # `rm'.
3245 for ac_file in conftest.exe conftest conftest.*; do
3246   test -f "$ac_file" || continue
3247   case $ac_file in
3248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3249     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3250           break;;
3251     * ) break;;
3252   esac
3253 done
3254 else
3255   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error "cannot compute suffix of executables: cannot compile and link
3258 See \`config.log' for more details." "$LINENO" 5; }
3259 fi
3260 rm -f conftest$ac_cv_exeext
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3262 $as_echo "$ac_cv_exeext" >&6; }
3263
3264 rm -f conftest.$ac_ext
3265 EXEEXT=$ac_cv_exeext
3266 ac_exeext=$EXEEXT
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268 $as_echo_n "checking for suffix of object files... " >&6; }
3269 if test "${ac_cv_objext+set}" = set; then :
3270   $as_echo_n "(cached) " >&6
3271 else
3272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.o conftest.obj
3284 if { { ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291   (eval "$ac_compile") 2>&5
3292   ac_status=$?
3293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294   test $ac_status = 0; }; then :
3295   for ac_file in conftest.o conftest.obj conftest.*; do
3296   test -f "$ac_file" || continue;
3297   case $ac_file in
3298     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3300        break;;
3301   esac
3302 done
3303 else
3304   $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error "cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details." "$LINENO" 5; }
3311 fi
3312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3313 fi
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 $as_echo "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3317 ac_objext=$OBJEXT
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3319 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3320 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3321   $as_echo_n "(cached) " >&6
3322 else
3323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329 #ifndef __GNUC__
3330        choke me
3331 #endif
3332
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338   ac_compiler_gnu=yes
3339 else
3340   ac_compiler_gnu=no
3341 fi
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3347 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348 if test $ac_compiler_gnu = yes; then
3349   GCC=yes
3350 else
3351   GCC=
3352 fi
3353 ac_test_CFLAGS=${CFLAGS+set}
3354 ac_save_CFLAGS=$CFLAGS
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3356 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3357 if test "${ac_cv_prog_cc_g+set}" = set; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   ac_save_c_werror_flag=$ac_c_werror_flag
3361    ac_c_werror_flag=yes
3362    ac_cv_prog_cc_g=no
3363    CFLAGS="-g"
3364    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h.  */
3366
3367 int
3368 main ()
3369 {
3370
3371   ;
3372   return 0;
3373 }
3374 _ACEOF
3375 if ac_fn_c_try_compile "$LINENO"; then :
3376   ac_cv_prog_cc_g=yes
3377 else
3378   CFLAGS=""
3379       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h.  */
3381
3382 int
3383 main ()
3384 {
3385
3386   ;
3387   return 0;
3388 }
3389 _ACEOF
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391
3392 else
3393   ac_c_werror_flag=$ac_save_c_werror_flag
3394          CFLAGS="-g"
3395          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h.  */
3397
3398 int
3399 main ()
3400 {
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 if ac_fn_c_try_compile "$LINENO"; then :
3407   ac_cv_prog_cc_g=yes
3408 fi
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 fi
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414    ac_c_werror_flag=$ac_save_c_werror_flag
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3417 $as_echo "$ac_cv_prog_cc_g" >&6; }
3418 if test "$ac_test_CFLAGS" = set; then
3419   CFLAGS=$ac_save_CFLAGS
3420 elif test $ac_cv_prog_cc_g = yes; then
3421   if test "$GCC" = yes; then
3422     CFLAGS="-g -O2"
3423   else
3424     CFLAGS="-g"
3425   fi
3426 else
3427   if test "$GCC" = yes; then
3428     CFLAGS="-O2"
3429   else
3430     CFLAGS=
3431   fi
3432 fi
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3434 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3435 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   ac_cv_prog_cc_c89=no
3439 ac_save_CC=$CC
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h.  */
3442 #include <stdarg.h>
3443 #include <stdio.h>
3444 #include <sys/types.h>
3445 #include <sys/stat.h>
3446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3447 struct buf { int x; };
3448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3449 static char *e (p, i)
3450      char **p;
3451      int i;
3452 {
3453   return p[i];
3454 }
3455 static char *f (char * (*g) (char **, int), char **p, ...)
3456 {
3457   char *s;
3458   va_list v;
3459   va_start (v,p);
3460   s = g (p, va_arg (v,int));
3461   va_end (v);
3462   return s;
3463 }
3464
3465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3466    function prototypes and stuff, but not '\xHH' hex character constants.
3467    These don't provoke an error unfortunately, instead are silently treated
3468    as 'x'.  The following induces an error, until -std is added to get
3469    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3470    array size at least.  It's necessary to write '\x00'==0 to get something
3471    that's true only with -std.  */
3472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473
3474 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3475    inside strings and character constants.  */
3476 #define FOO(x) 'x'
3477 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478
3479 int test (int i, double x);
3480 struct s1 {int (*f) (int a);};
3481 struct s2 {int (*f) (double a);};
3482 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3483 int argc;
3484 char **argv;
3485 int
3486 main ()
3487 {
3488 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3494         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 do
3496   CC="$ac_save_CC $ac_arg"
3497   if ac_fn_c_try_compile "$LINENO"; then :
3498   ac_cv_prog_cc_c89=$ac_arg
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext
3501   test "x$ac_cv_prog_cc_c89" != "xno" && break
3502 done
3503 rm -f conftest.$ac_ext
3504 CC=$ac_save_CC
3505
3506 fi
3507 # AC_CACHE_VAL
3508 case "x$ac_cv_prog_cc_c89" in
3509   x)
3510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3511 $as_echo "none needed" >&6; } ;;
3512   xno)
3513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3514 $as_echo "unsupported" >&6; } ;;
3515   *)
3516     CC="$CC $ac_cv_prog_cc_c89"
3517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3518 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3519 esac
3520 if test "x$ac_cv_prog_cc_c89" != xno; then :
3521
3522 fi
3523
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 DEPDIR="${am__leading_dot}deps"
3530
3531 ac_config_commands="$ac_config_commands depfiles"
3532
3533
3534 am_make=${MAKE-make}
3535 cat > confinc << 'END'
3536 am__doit:
3537         @echo this is the am__doit target
3538 .PHONY: am__doit
3539 END
3540 # If we don't find an include directive, just comment out the code.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3542 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3543 am__include="#"
3544 am__quote=
3545 _am_result=none
3546 # First try GNU make style include.
3547 echo "include confinc" > confmf
3548 # Ignore all kinds of additional output from `make'.
3549 case `$am_make -s -f confmf 2> /dev/null` in #(
3550 *the\ am__doit\ target*)
3551   am__include=include
3552   am__quote=
3553   _am_result=GNU
3554   ;;
3555 esac
3556 # Now try BSD make style include.
3557 if test "$am__include" = "#"; then
3558    echo '.include "confinc"' > confmf
3559    case `$am_make -s -f confmf 2> /dev/null` in #(
3560    *the\ am__doit\ target*)
3561      am__include=.include
3562      am__quote="\""
3563      _am_result=BSD
3564      ;;
3565    esac
3566 fi
3567
3568
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3570 $as_echo "$_am_result" >&6; }
3571 rm -f confinc confmf
3572
3573 # Check whether --enable-dependency-tracking was given.
3574 if test "${enable_dependency_tracking+set}" = set; then :
3575   enableval=$enable_dependency_tracking;
3576 fi
3577
3578 if test "x$enable_dependency_tracking" != xno; then
3579   am_depcomp="$ac_aux_dir/depcomp"
3580   AMDEPBACKSLASH='\'
3581 fi
3582  if test "x$enable_dependency_tracking" != xno; then
3583   AMDEP_TRUE=
3584   AMDEP_FALSE='#'
3585 else
3586   AMDEP_TRUE='#'
3587   AMDEP_FALSE=
3588 fi
3589
3590
3591
3592 depcc="$CC"   am_compiler_list=
3593
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3595 $as_echo_n "checking dependency style of $depcc... " >&6; }
3596 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3600   # We make a subdir and do the tests there.  Otherwise we can end up
3601   # making bogus files that we don't know about and never remove.  For
3602   # instance it was reported that on HP-UX the gcc test will end up
3603   # making a dummy file named `D' -- because `-MD' means `put the output
3604   # in D'.
3605   mkdir conftest.dir
3606   # Copy depcomp to subdir because otherwise we won't find it if we're
3607   # using a relative directory.
3608   cp "$am_depcomp" conftest.dir
3609   cd conftest.dir
3610   # We will build objects and dependencies in a subdirectory because
3611   # it helps to detect inapplicable dependency modes.  For instance
3612   # both Tru64's cc and ICC support -MD to output dependencies as a
3613   # side effect of compilation, but ICC will put the dependencies in
3614   # the current directory while Tru64 will put them in the object
3615   # directory.
3616   mkdir sub
3617
3618   am_cv_CC_dependencies_compiler_type=none
3619   if test "$am_compiler_list" = ""; then
3620      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3621   fi
3622   am__universal=false
3623   case " $depcc " in #(
3624      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3625      esac
3626
3627   for depmode in $am_compiler_list; do
3628     # Setup a source with many dependencies, because some compilers
3629     # like to wrap large dependency lists on column 80 (with \), and
3630     # we should not choose a depcomp mode which is confused by this.
3631     #
3632     # We need to recreate these files for each test, as the compiler may
3633     # overwrite some of them when testing with obscure command lines.
3634     # This happens at least with the AIX C compiler.
3635     : > sub/conftest.c
3636     for i in 1 2 3 4 5 6; do
3637       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3638       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3639       # Solaris 8's {/usr,}/bin/sh.
3640       touch sub/conftst$i.h
3641     done
3642     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3643
3644     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3645     # mode.  It turns out that the SunPro C++ compiler does not properly
3646     # handle `-M -o', and we need to detect this.  Also, some Intel
3647     # versions had trouble with output in subdirs
3648     am__obj=sub/conftest.${OBJEXT-o}
3649     am__minus_obj="-o $am__obj"
3650     case $depmode in
3651     gcc)
3652       # This depmode causes a compiler race in universal mode.
3653       test "$am__universal" = false || continue
3654       ;;
3655     nosideeffect)
3656       # after this tag, mechanisms are not by side-effect, so they'll
3657       # only be used when explicitly requested
3658       if test "x$enable_dependency_tracking" = xyes; then
3659         continue
3660       else
3661         break
3662       fi
3663       ;;
3664     msvisualcpp | msvcmsys)
3665       # This compiler won't grok `-c -o', but also, the minuso test has
3666       # not run yet.  These depmodes are late enough in the game, and
3667       # so weak that their functioning should not be impacted.
3668       am__obj=conftest.${OBJEXT-o}
3669       am__minus_obj=
3670       ;;
3671     none) break ;;
3672     esac
3673     if depmode=$depmode \
3674        source=sub/conftest.c object=$am__obj \
3675        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3676        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3677          >/dev/null 2>conftest.err &&
3678        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3679        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3681        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682       # icc doesn't choke on unknown options, it will just issue warnings
3683       # or remarks (even with -Werror).  So we grep stderr for any message
3684       # that says an option was ignored or not supported.
3685       # When given -MP, icc 7.0 and 7.1 complain thusly:
3686       #   icc: Command line warning: ignoring option '-M'; no argument required
3687       # The diagnosis changed in icc 8.0:
3688       #   icc: Command line remark: option '-MP' not supported
3689       if (grep 'ignoring option' conftest.err ||
3690           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691         am_cv_CC_dependencies_compiler_type=$depmode
3692         break
3693       fi
3694     fi
3695   done
3696
3697   cd ..
3698   rm -rf conftest.dir
3699 else
3700   am_cv_CC_dependencies_compiler_type=none
3701 fi
3702
3703 fi
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3705 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3706 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3707
3708  if
3709   test "x$enable_dependency_tracking" != xno \
3710   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3711   am__fastdepCC_TRUE=
3712   am__fastdepCC_FALSE='#'
3713 else
3714   am__fastdepCC_TRUE='#'
3715   am__fastdepCC_FALSE=
3716 fi
3717
3718
3719
3720
3721 # Check whether --enable-install-libgui was given.
3722 if test "${enable_install_libgui+set}" = set; then :
3723   enableval=$enable_install_libgui;
3724 fi
3725
3726  if test x$cross_compiling = xyes; then
3727   CROSS_COMPILING_TRUE=
3728   CROSS_COMPILING_FALSE='#'
3729 else
3730   CROSS_COMPILING_TRUE='#'
3731   CROSS_COMPILING_FALSE=
3732 fi
3733
3734  if test x$enable_install_libgui = xyes; then
3735   INSTALL_LIBGUI_TRUE=
3736   INSTALL_LIBGUI_FALSE='#'
3737 else
3738   INSTALL_LIBGUI_TRUE='#'
3739   INSTALL_LIBGUI_FALSE=
3740 fi
3741
3742 if test -n "$ac_tool_prefix"; then
3743   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   if test -n "$RANLIB"; then
3751   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_exec_ext in '' $ac_executable_extensions; do
3759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 RANLIB=$ac_cv_prog_RANLIB
3771 if test -n "$RANLIB"; then
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3773 $as_echo "$RANLIB" >&6; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780 fi
3781 if test -z "$ac_cv_prog_RANLIB"; then
3782   ac_ct_RANLIB=$RANLIB
3783   # Extract the first word of "ranlib", so it can be a program name with args.
3784 set dummy ranlib; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   if test -n "$ac_ct_RANLIB"; then
3791   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798     for ac_exec_ext in '' $ac_executable_extensions; do
3799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800     ac_cv_prog_ac_ct_RANLIB="ranlib"
3801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802     break 2
3803   fi
3804 done
3805   done
3806 IFS=$as_save_IFS
3807
3808 fi
3809 fi
3810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3811 if test -n "$ac_ct_RANLIB"; then
3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3813 $as_echo "$ac_ct_RANLIB" >&6; }
3814 else
3815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3817 fi
3818
3819   if test "x$ac_ct_RANLIB" = x; then
3820     RANLIB=":"
3821   else
3822     case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828     RANLIB=$ac_ct_RANLIB
3829   fi
3830 else
3831   RANLIB="$ac_cv_prog_RANLIB"
3832 fi
3833
3834 if test -n "$ac_tool_prefix"; then
3835   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3836 set dummy ${ac_tool_prefix}ar; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if test "${ac_cv_prog_AR+set}" = set; then :
3840   $as_echo_n "(cached) " >&6
3841 else
3842   if test -n "$AR"; then
3843   ac_cv_prog_AR="$AR" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850     for ac_exec_ext in '' $ac_executable_extensions; do
3851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852     ac_cv_prog_AR="${ac_tool_prefix}ar"
3853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854     break 2
3855   fi
3856 done
3857   done
3858 IFS=$as_save_IFS
3859
3860 fi
3861 fi
3862 AR=$ac_cv_prog_AR
3863 if test -n "$AR"; then
3864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3865 $as_echo "$AR" >&6; }
3866 else
3867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3869 fi
3870
3871
3872 fi
3873 if test -z "$ac_cv_prog_AR"; then
3874   ac_ct_AR=$AR
3875   # Extract the first word of "ar", so it can be a program name with args.
3876 set dummy ar; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3880   $as_echo_n "(cached) " >&6
3881 else
3882   if test -n "$ac_ct_AR"; then
3883   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   test -z "$as_dir" && as_dir=.
3890     for ac_exec_ext in '' $ac_executable_extensions; do
3891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892     ac_cv_prog_ac_ct_AR="ar"
3893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894     break 2
3895   fi
3896 done
3897   done
3898 IFS=$as_save_IFS
3899
3900 fi
3901 fi
3902 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3903 if test -n "$ac_ct_AR"; then
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3905 $as_echo "$ac_ct_AR" >&6; }
3906 else
3907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3909 fi
3910
3911   if test "x$ac_ct_AR" = x; then
3912     AR=":"
3913   else
3914     case $cross_compiling:$ac_tool_warned in
3915 yes:)
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3918 ac_tool_warned=yes ;;
3919 esac
3920     AR=$ac_ct_AR
3921   fi
3922 else
3923   AR="$ac_cv_prog_AR"
3924 fi
3925
3926
3927
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3934 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3935 # On Suns, sometimes $CPP names a directory.
3936 if test -n "$CPP" && test -d "$CPP"; then
3937   CPP=
3938 fi
3939 if test -z "$CPP"; then
3940   if test "${ac_cv_prog_CPP+set}" = set; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943       # Double quotes because CPP needs to be expanded
3944     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3945     do
3946       ac_preproc_ok=false
3947 for ac_c_preproc_warn_flag in '' yes
3948 do
3949   # Use a header file that comes with gcc, so configuring glibc
3950   # with a fresh cross-compiler works.
3951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3952   # <limits.h> exists even on freestanding compilers.
3953   # On the NeXT, cc -E runs the code through the compiler's parser,
3954   # not just through cpp. "Syntax error" is here to catch this case.
3955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957 #ifdef __STDC__
3958 # include <limits.h>
3959 #else
3960 # include <assert.h>
3961 #endif
3962                      Syntax error
3963 _ACEOF
3964 if ac_fn_c_try_cpp "$LINENO"; then :
3965
3966 else
3967   # Broken: fails on valid input.
3968 continue
3969 fi
3970 rm -f conftest.err conftest.$ac_ext
3971
3972   # OK, works on sane cases.  Now check whether nonexistent headers
3973   # can be detected and how.
3974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h.  */
3976 #include <ac_nonexistent.h>
3977 _ACEOF
3978 if ac_fn_c_try_cpp "$LINENO"; then :
3979   # Broken: success on invalid input.
3980 continue
3981 else
3982   # Passes both tests.
3983 ac_preproc_ok=:
3984 break
3985 fi
3986 rm -f conftest.err conftest.$ac_ext
3987
3988 done
3989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3990 rm -f conftest.err conftest.$ac_ext
3991 if $ac_preproc_ok; then :
3992   break
3993 fi
3994
3995     done
3996     ac_cv_prog_CPP=$CPP
3997
3998 fi
3999   CPP=$ac_cv_prog_CPP
4000 else
4001   ac_cv_prog_CPP=$CPP
4002 fi
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4004 $as_echo "$CPP" >&6; }
4005 ac_preproc_ok=false
4006 for ac_c_preproc_warn_flag in '' yes
4007 do
4008   # Use a header file that comes with gcc, so configuring glibc
4009   # with a fresh cross-compiler works.
4010   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4011   # <limits.h> exists even on freestanding compilers.
4012   # On the NeXT, cc -E runs the code through the compiler's parser,
4013   # not just through cpp. "Syntax error" is here to catch this case.
4014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016 #ifdef __STDC__
4017 # include <limits.h>
4018 #else
4019 # include <assert.h>
4020 #endif
4021                      Syntax error
4022 _ACEOF
4023 if ac_fn_c_try_cpp "$LINENO"; then :
4024
4025 else
4026   # Broken: fails on valid input.
4027 continue
4028 fi
4029 rm -f conftest.err conftest.$ac_ext
4030
4031   # OK, works on sane cases.  Now check whether nonexistent headers
4032   # can be detected and how.
4033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h.  */
4035 #include <ac_nonexistent.h>
4036 _ACEOF
4037 if ac_fn_c_try_cpp "$LINENO"; then :
4038   # Broken: success on invalid input.
4039 continue
4040 else
4041   # Passes both tests.
4042 ac_preproc_ok=:
4043 break
4044 fi
4045 rm -f conftest.err conftest.$ac_ext
4046
4047 done
4048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4049 rm -f conftest.err conftest.$ac_ext
4050 if $ac_preproc_ok; then :
4051
4052 else
4053   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4056 See \`config.log' for more details." "$LINENO" 5; }
4057 fi
4058
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064
4065
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4067 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4068 if test "${ac_cv_path_GREP+set}" = set; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071   if test -z "$GREP"; then
4072   ac_path_GREP_found=false
4073   # Loop through the user's path and test for each of PROGNAME-LIST
4074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079     for ac_prog in grep ggrep; do
4080     for ac_exec_ext in '' $ac_executable_extensions; do
4081       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4082       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4083 # Check for GNU ac_path_GREP and select it if it is found.
4084   # Check for GNU $ac_path_GREP
4085 case `"$ac_path_GREP" --version 2>&1` in
4086 *GNU*)
4087   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4088 *)
4089   ac_count=0
4090   $as_echo_n 0123456789 >"conftest.in"
4091   while :
4092   do
4093     cat "conftest.in" "conftest.in" >"conftest.tmp"
4094     mv "conftest.tmp" "conftest.in"
4095     cp "conftest.in" "conftest.nl"
4096     $as_echo 'GREP' >> "conftest.nl"
4097     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4099     as_fn_arith $ac_count + 1 && ac_count=$as_val
4100     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4101       # Best one so far, save it but keep looking for a better one
4102       ac_cv_path_GREP="$ac_path_GREP"
4103       ac_path_GREP_max=$ac_count
4104     fi
4105     # 10*(2^10) chars as input seems more than enough
4106     test $ac_count -gt 10 && break
4107   done
4108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 esac
4110
4111       $ac_path_GREP_found && break 3
4112     done
4113   done
4114   done
4115 IFS=$as_save_IFS
4116   if test -z "$ac_cv_path_GREP"; then
4117     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4118   fi
4119 else
4120   ac_cv_path_GREP=$GREP
4121 fi
4122
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4125 $as_echo "$ac_cv_path_GREP" >&6; }
4126  GREP="$ac_cv_path_GREP"
4127
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4130 $as_echo_n "checking for egrep... " >&6; }
4131 if test "${ac_cv_path_EGREP+set}" = set; then :
4132   $as_echo_n "(cached) " >&6
4133 else
4134   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4135    then ac_cv_path_EGREP="$GREP -E"
4136    else
4137      if test -z "$EGREP"; then
4138   ac_path_EGREP_found=false
4139   # Loop through the user's path and test for each of PROGNAME-LIST
4140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4142 do
4143   IFS=$as_save_IFS
4144   test -z "$as_dir" && as_dir=.
4145     for ac_prog in egrep; do
4146     for ac_exec_ext in '' $ac_executable_extensions; do
4147       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4148       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4149 # Check for GNU ac_path_EGREP and select it if it is found.
4150   # Check for GNU $ac_path_EGREP
4151 case `"$ac_path_EGREP" --version 2>&1` in
4152 *GNU*)
4153   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4154 *)
4155   ac_count=0
4156   $as_echo_n 0123456789 >"conftest.in"
4157   while :
4158   do
4159     cat "conftest.in" "conftest.in" >"conftest.tmp"
4160     mv "conftest.tmp" "conftest.in"
4161     cp "conftest.in" "conftest.nl"
4162     $as_echo 'EGREP' >> "conftest.nl"
4163     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4164     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4165     as_fn_arith $ac_count + 1 && ac_count=$as_val
4166     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4167       # Best one so far, save it but keep looking for a better one
4168       ac_cv_path_EGREP="$ac_path_EGREP"
4169       ac_path_EGREP_max=$ac_count
4170     fi
4171     # 10*(2^10) chars as input seems more than enough
4172     test $ac_count -gt 10 && break
4173   done
4174   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4175 esac
4176
4177       $ac_path_EGREP_found && break 3
4178     done
4179   done
4180   done
4181 IFS=$as_save_IFS
4182   if test -z "$ac_cv_path_EGREP"; then
4183     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4184   fi
4185 else
4186   ac_cv_path_EGREP=$EGREP
4187 fi
4188
4189    fi
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4192 $as_echo "$ac_cv_path_EGREP" >&6; }
4193  EGREP="$ac_cv_path_EGREP"
4194
4195
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4197 $as_echo_n "checking for ANSI C header files... " >&6; }
4198 if test "${ac_cv_header_stdc+set}" = set; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h.  */
4203 #include <stdlib.h>
4204 #include <stdarg.h>
4205 #include <string.h>
4206 #include <float.h>
4207
4208 int
4209 main ()
4210 {
4211
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_c_try_compile "$LINENO"; then :
4217   ac_cv_header_stdc=yes
4218 else
4219   ac_cv_header_stdc=no
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222
4223 if test $ac_cv_header_stdc = yes; then
4224   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h.  */
4227 #include <string.h>
4228
4229 _ACEOF
4230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231   $EGREP "memchr" >/dev/null 2>&1; then :
4232
4233 else
4234   ac_cv_header_stdc=no
4235 fi
4236 rm -f conftest*
4237
4238 fi
4239
4240 if test $ac_cv_header_stdc = yes; then
4241   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h.  */
4244 #include <stdlib.h>
4245
4246 _ACEOF
4247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4248   $EGREP "free" >/dev/null 2>&1; then :
4249
4250 else
4251   ac_cv_header_stdc=no
4252 fi
4253 rm -f conftest*
4254
4255 fi
4256
4257 if test $ac_cv_header_stdc = yes; then
4258   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4259   if test "$cross_compiling" = yes; then :
4260   :
4261 else
4262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h.  */
4264 #include <ctype.h>
4265 #include <stdlib.h>
4266 #if ((' ' & 0x0FF) == 0x020)
4267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4269 #else
4270 # define ISLOWER(c) \
4271                    (('a' <= (c) && (c) <= 'i') \
4272                      || ('j' <= (c) && (c) <= 'r') \
4273                      || ('s' <= (c) && (c) <= 'z'))
4274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4275 #endif
4276
4277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4278 int
4279 main ()
4280 {
4281   int i;
4282   for (i = 0; i < 256; i++)
4283     if (XOR (islower (i), ISLOWER (i))
4284         || toupper (i) != TOUPPER (i))
4285       return 2;
4286   return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_run "$LINENO"; then :
4290
4291 else
4292   ac_cv_header_stdc=no
4293 fi
4294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4295   conftest.$ac_objext conftest.beam conftest.$ac_ext
4296 fi
4297
4298 fi
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4301 $as_echo "$ac_cv_header_stdc" >&6; }
4302 if test $ac_cv_header_stdc = yes; then
4303
4304 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4305
4306 fi
4307
4308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4309 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4310                   inttypes.h stdint.h unistd.h
4311 do :
4312   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4314 "
4315 eval as_val=\$$as_ac_Header
4316    if test "x$as_val" = x""yes; then :
4317   cat >>confdefs.h <<_ACEOF
4318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4319 _ACEOF
4320
4321 fi
4322
4323 done
4324
4325
4326 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4327 # for constant arguments.  Useless!
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4329 $as_echo_n "checking for working alloca.h... " >&6; }
4330 if test "${ac_cv_working_alloca_h+set}" = set; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h.  */
4335 #include <alloca.h>
4336 int
4337 main ()
4338 {
4339 char *p = (char *) alloca (2 * sizeof (int));
4340                           if (p) return 0;
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_link "$LINENO"; then :
4346   ac_cv_working_alloca_h=yes
4347 else
4348   ac_cv_working_alloca_h=no
4349 fi
4350 rm -f core conftest.err conftest.$ac_objext \
4351     conftest$ac_exeext conftest.$ac_ext
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4354 $as_echo "$ac_cv_working_alloca_h" >&6; }
4355 if test $ac_cv_working_alloca_h = yes; then
4356
4357 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4358
4359 fi
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4362 $as_echo_n "checking for alloca... " >&6; }
4363 if test "${ac_cv_func_alloca_works+set}" = set; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h.  */
4368 #ifdef __GNUC__
4369 # define alloca __builtin_alloca
4370 #else
4371 # ifdef _MSC_VER
4372 #  include <malloc.h>
4373 #  define alloca _alloca
4374 # else
4375 #  ifdef HAVE_ALLOCA_H
4376 #   include <alloca.h>
4377 #  else
4378 #   ifdef _AIX
4379  #pragma alloca
4380 #   else
4381 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4382 char *alloca ();
4383 #    endif
4384 #   endif
4385 #  endif
4386 # endif
4387 #endif
4388
4389 int
4390 main ()
4391 {
4392 char *p = (char *) alloca (1);
4393                                     if (p) return 0;
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_c_try_link "$LINENO"; then :
4399   ac_cv_func_alloca_works=yes
4400 else
4401   ac_cv_func_alloca_works=no
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext \
4404     conftest$ac_exeext conftest.$ac_ext
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4407 $as_echo "$ac_cv_func_alloca_works" >&6; }
4408
4409 if test $ac_cv_func_alloca_works = yes; then
4410
4411 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4412
4413 else
4414   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4415 # that cause trouble.  Some versions do not even contain alloca or
4416 # contain a buggy version.  If you still want to use their alloca,
4417 # use ar to extract alloca.o from them instead of compiling alloca.c.
4418
4419 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4420
4421 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4422
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4425 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4426 if test "${ac_cv_os_cray+set}" = set; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h.  */
4431 #if defined CRAY && ! defined CRAY2
4432 webecray
4433 #else
4434 wenotbecray
4435 #endif
4436
4437 _ACEOF
4438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439   $EGREP "webecray" >/dev/null 2>&1; then :
4440   ac_cv_os_cray=yes
4441 else
4442   ac_cv_os_cray=no
4443 fi
4444 rm -f conftest*
4445
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4448 $as_echo "$ac_cv_os_cray" >&6; }
4449 if test $ac_cv_os_cray = yes; then
4450   for ac_func in _getb67 GETB67 getb67; do
4451     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4452 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4453 eval as_val=\$$as_ac_var
4454    if test "x$as_val" = x""yes; then :
4455
4456 cat >>confdefs.h <<_ACEOF
4457 #define CRAY_STACKSEG_END $ac_func
4458 _ACEOF
4459
4460     break
4461 fi
4462
4463   done
4464 fi
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4467 $as_echo_n "checking stack direction for C alloca... " >&6; }
4468 if test "${ac_cv_c_stack_direction+set}" = set; then :
4469   $as_echo_n "(cached) " >&6
4470 else
4471   if test "$cross_compiling" = yes; then :
4472   ac_cv_c_stack_direction=0
4473 else
4474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476 $ac_includes_default
4477 int
4478 find_stack_direction ()
4479 {
4480   static char *addr = 0;
4481   auto char dummy;
4482   if (addr == 0)
4483     {
4484       addr = &dummy;
4485       return find_stack_direction ();
4486     }
4487   else
4488     return (&dummy > addr) ? 1 : -1;
4489 }
4490
4491 int
4492 main ()
4493 {
4494   return find_stack_direction () < 0;
4495 }
4496 _ACEOF
4497 if ac_fn_c_try_run "$LINENO"; then :
4498   ac_cv_c_stack_direction=1
4499 else
4500   ac_cv_c_stack_direction=-1
4501 fi
4502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4503   conftest.$ac_objext conftest.beam conftest.$ac_ext
4504 fi
4505
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4508 $as_echo "$ac_cv_c_stack_direction" >&6; }
4509 cat >>confdefs.h <<_ACEOF
4510 #define STACK_DIRECTION $ac_cv_c_stack_direction
4511 _ACEOF
4512
4513
4514 fi
4515
4516 for ac_header in stddef.h stdlib.h getopt.h unistd.h fcntl.h sys/file.h sys/wait.h string.h strings.h
4517 do :
4518   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4520 eval as_val=\$$as_ac_Header
4521    if test "x$as_val" = x""yes; then :
4522   cat >>confdefs.h <<_ACEOF
4523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4524 _ACEOF
4525
4526 fi
4527
4528 done
4529
4530 for ac_func in raise
4531 do :
4532   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
4533 if test "x$ac_cv_func_raise" = x""yes; then :
4534   cat >>confdefs.h <<_ACEOF
4535 #define HAVE_RAISE 1
4536 _ACEOF
4537
4538 fi
4539 done
4540
4541
4542 # Check whether --enable-ide was given.
4543 if test "${enable_ide+set}" = set; then :
4544   enableval=$enable_ide; case "${enableval}" in
4545   yes) ide=yes ;;
4546   no)  ide=no ;;
4547   *)   as_fn_error "bad value ${enableval} for enable-ide option" "$LINENO" 5 ;;
4548 esac
4549 else
4550   ide=no
4551 fi
4552
4553  if test x$ide = xyes; then
4554   IDE_ENABLED_TRUE=
4555   IDE_ENABLED_FALSE='#'
4556 else
4557   IDE_ENABLED_TRUE='#'
4558   IDE_ENABLED_FALSE=
4559 fi
4560
4561 if test x$ide = xyes; then
4562   $as_echo "#define IDE_ENABLED 1" >>confdefs.h
4563
4564 fi
4565
4566 # If we have random, assume we have srandom.  If we have drand48,
4567 # assume we have srand48.  If we have rand, assume we have srand.
4568 for ac_func in random drand48 rand
4569 do :
4570   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4572 eval as_val=\$$as_ac_var
4573    if test "x$as_val" = x""yes; then :
4574   cat >>confdefs.h <<_ACEOF
4575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4576 _ACEOF
4577  break
4578 fi
4579 done
4580
4581
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h.  */
4584 #include <string.h>
4585 _ACEOF
4586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587   $EGREP "strncasecmp" >/dev/null 2>&1; then :
4588   $as_echo "#define HAVE_STRNCASECMP_DECL 1" >>confdefs.h
4589
4590 fi
4591 rm -f conftest*
4592
4593
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin32" >&5
4596 $as_echo_n "checking for cygwin32... " >&6; }
4597 if test "${ide_cv_os_cygwin32+set}" = set; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h.  */
4602
4603 #ifdef __CYGWIN32__
4604 lose
4605 #endif
4606 _ACEOF
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608   $EGREP "lose" >/dev/null 2>&1; then :
4609   ide_cv_os_cygwin32=yes
4610 else
4611   ide_cv_os_cygwin32=no
4612 fi
4613 rm -f conftest*
4614
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ide_cv_os_cygwin32" >&5
4617 $as_echo "$ide_cv_os_cygwin32" >&6; }
4618 ac_win_build="no"
4619 if test x$ide_cv_os_cygwin32 = xyes; then
4620   ac_win_build="yes"
4621 fi
4622
4623 case "${host}" in
4624 *-*-cygwin*)
4625         touch ac$$.c
4626         if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
4627             case "$LIBGUI_CFLAGS" in
4628                 *-mwin32*) ;;
4629                 *) LIBGUI_CFLAGS="-mwin32 $LIBGUI_CFLAGS" ;;
4630             esac
4631         fi
4632         rm -f ac$$.o ac$$.c
4633         ;;
4634 esac
4635 case "${host}" in
4636 *-*-cygwin*)
4637         LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS" ;;
4638 esac
4639
4640
4641 tmp="`cd $srcdir/library; pwd`"
4642 if test x"$ac_cv_prog_CC" = xcl ; then
4643   tmp2="`cygpath --windows $tmp`"
4644   LIBGUI_LIBRARY_DIR="`echo $tmp2 | sed -e s#\\\\\\\\#/#g`"
4645 else
4646   LIBGUI_LIBRARY_DIR=$tmp
4647 fi
4648
4649
4650 # Check for Tcl and Tk.
4651
4652     #
4653     # Ok, lets find the tcl configuration
4654     # First, look for one uninstalled.
4655     # the alternative search directory is invoked by --with-tcl
4656     #
4657
4658     if test x"${no_tcl}" = x ; then
4659         # we reset no_tcl in case something fails here
4660         no_tcl=true
4661
4662 # Check whether --with-tcl was given.
4663 if test "${with_tcl+set}" = set; then :
4664   withval=$with_tcl; with_tclconfig=${withval}
4665 fi
4666
4667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
4668 $as_echo_n "checking for Tcl configuration... " >&6; }
4669         if test "${ac_cv_c_tclconfig+set}" = set; then :
4670   $as_echo_n "(cached) " >&6
4671 else
4672
4673
4674             # First check to see if --with-tcl was specified.
4675             case "${host}" in
4676                 *-*-cygwin*) platDir="win" ;;
4677                 *) platDir="unix" ;;
4678             esac
4679             if test x"${with_tclconfig}" != x ; then
4680                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
4681                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
4682                 else
4683                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
4684                 fi
4685             fi
4686
4687             # then check for a private Tcl installation
4688             if test x"${ac_cv_c_tclconfig}" = x ; then
4689                 for i in \
4690                         ../tcl \
4691                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4692                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
4693                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
4694                         ../../tcl \
4695                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4696                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
4697                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
4698                         ../../../tcl \
4699                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4700                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
4701                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
4702                     if test -f "$i/$platDir/tclConfig.sh" ; then
4703                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
4704                         break
4705                     fi
4706                 done
4707             fi
4708
4709             # on Darwin, check in Framework installation locations
4710             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
4711                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4712                         `ls -d /Library/Frameworks 2>/dev/null` \
4713                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
4714                         `ls -d /System/Library/Frameworks 2>/dev/null` \
4715                         ; do
4716                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
4717                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
4718                         break
4719                     fi
4720                 done
4721             fi
4722
4723             # check in a few common install locations
4724             if test x"${ac_cv_c_tclconfig}" = x ; then
4725                 for i in `ls -d ${libdir} 2>/dev/null` \
4726                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
4727                         `ls -d ${prefix}/lib 2>/dev/null` \
4728                         `ls -d /usr/local/lib 2>/dev/null` \
4729                         `ls -d /usr/contrib/lib 2>/dev/null` \
4730                         `ls -d /usr/lib 2>/dev/null` \
4731                         ; do
4732                     if test -f "$i/tclConfig.sh" ; then
4733                         ac_cv_c_tclconfig=`(cd $i; pwd)`
4734                         break
4735                     fi
4736                 done
4737             fi
4738
4739             # check in a few other private locations
4740             if test x"${ac_cv_c_tclconfig}" = x ; then
4741                 for i in \
4742                         ${srcdir}/../tcl \
4743                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
4744                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
4745                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
4746                     if test -f "$i/$platDir/tclConfig.sh" ; then
4747                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
4748                     break
4749                 fi
4750                 done
4751             fi
4752
4753 fi
4754
4755
4756         if test x"${ac_cv_c_tclconfig}" = x ; then
4757             TCL_BIN_DIR="# no Tcl configs found"
4758             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
4759 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
4760         else
4761             no_tcl=
4762             TCL_BIN_DIR=${ac_cv_c_tclconfig}
4763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
4764 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
4765         fi
4766     fi
4767
4768
4769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
4770 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
4771
4772     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
4773         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4774 $as_echo "loading" >&6; }
4775         . ${TCL_BIN_DIR}/tclConfig.sh
4776     else
4777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
4778 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
4779     fi
4780
4781     # eval is required to do the TCL_DBGX substitution
4782     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
4783     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
4784
4785     # If the TCL_BIN_DIR is the build directory (not the install directory),
4786     # then set the common variable name to the value of the build variables.
4787     # For example, the variable TCL_LIB_SPEC will be set to the value
4788     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
4789     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
4790     # installed and uninstalled version of Tcl.
4791     if test -f "${TCL_BIN_DIR}/Makefile" ; then
4792         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
4793         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
4794         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
4795     elif test "`uname -s`" = "Darwin"; then
4796         # If Tcl was built as a framework, attempt to use the libraries
4797         # from the framework at the given location so that linking works
4798         # against Tcl.framework installed in an arbitary location.
4799         case ${TCL_DEFS} in
4800             *TCL_FRAMEWORK*)
4801                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
4802                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
4803                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
4804                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
4805                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
4806                             break
4807                         fi
4808                     done
4809                 fi
4810                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
4811                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
4812                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
4813                 fi
4814                 ;;
4815         esac
4816     fi
4817
4818     # eval is required to do the TCL_DBGX substitution
4819     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
4820     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
4821     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
4822     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838     #
4839     # Ok, lets find the tk configuration
4840     # First, look for one uninstalled.
4841     # the alternative search directory is invoked by --with-tk
4842     #
4843
4844     if test x"${no_tk}" = x ; then
4845         # we reset no_tk in case something fails here
4846         no_tk=true
4847
4848 # Check whether --with-tk was given.
4849 if test "${with_tk+set}" = set; then :
4850   withval=$with_tk; with_tkconfig=${withval}
4851 fi
4852
4853         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
4854 $as_echo_n "checking for Tk configuration... " >&6; }
4855         if test "${ac_cv_c_tkconfig+set}" = set; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858
4859
4860             # First check to see if --with-tkconfig was specified.
4861             if test x"${with_tkconfig}" != x ; then
4862                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
4863                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
4864                 else
4865                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
4866                 fi
4867             fi
4868
4869             # then check for a private Tk library
4870             case "${host}" in
4871                 *-*-cygwin*) platDir="win" ;;
4872                 *) platDir="unix" ;;
4873             esac
4874             if test x"${ac_cv_c_tkconfig}" = x ; then
4875                 for i in \
4876                         ../tk \
4877                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4878                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
4879                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
4880                         ../../tk \
4881                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4882                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
4883                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
4884                         ../../../tk \
4885                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4886                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
4887                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
4888                     if test -f "$i/$platDir/tkConfig.sh" ; then
4889                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
4890                         break
4891                     fi
4892                 done
4893             fi
4894
4895             # on Darwin, check in Framework installation locations
4896             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
4897                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
4898                         `ls -d /Library/Frameworks 2>/dev/null` \
4899                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
4900                         `ls -d /System/Library/Frameworks 2>/dev/null` \
4901                         ; do
4902                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
4903                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
4904                         break
4905                     fi
4906                 done
4907             fi
4908
4909             # check in a few common install locations
4910             if test x"${ac_cv_c_tkconfig}" = x ; then
4911                 for i in `ls -d ${libdir} 2>/dev/null` \
4912                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
4913                         `ls -d ${prefix}/lib 2>/dev/null` \
4914                         `ls -d /usr/local/lib 2>/dev/null` \
4915                         `ls -d /usr/contrib/lib 2>/dev/null` \
4916                         `ls -d /usr/lib 2>/dev/null` \
4917                         ; do
4918                     if test -f "$i/tkConfig.sh" ; then
4919                         ac_cv_c_tkconfig=`(cd $i; pwd)`
4920                         break
4921                     fi
4922                 done
4923             fi
4924             # check in a few other private locations
4925             if test x"${ac_cv_c_tkconfig}" = x ; then
4926                 for i in \
4927                         ${srcdir}/../tk \
4928                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
4929                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
4930                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
4931                     if test -f "$i/$platDir/tkConfig.sh" ; then
4932                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
4933                         break
4934                     fi
4935                 done
4936             fi
4937
4938 fi
4939
4940
4941         if test x"${ac_cv_c_tkconfig}" = x ; then
4942             TK_BIN_DIR="# no Tk configs found"
4943             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
4944 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
4945         else
4946             no_tk=
4947             TK_BIN_DIR=${ac_cv_c_tkconfig}
4948             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
4949 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4950         fi
4951     fi
4952
4953
4954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
4955 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
4956
4957     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
4958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
4959 $as_echo "loading" >&6; }
4960         . ${TK_BIN_DIR}/tkConfig.sh
4961     else
4962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
4963 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
4964     fi
4965
4966     # eval is required to do the TK_DBGX substitution
4967     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
4968     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
4969
4970     # If the TK_BIN_DIR is the build directory (not the install directory),
4971     # then set the common variable name to the value of the build variables.
4972     # For example, the variable TK_LIB_SPEC will be set to the value
4973     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
4974     # instead of TK_BUILD_LIB_SPEC since it will work with both an
4975     # installed and uninstalled version of Tcl.
4976     if test -f "${TK_BIN_DIR}/Makefile" ; then
4977         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
4978         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
4979         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
4980     elif test "`uname -s`" = "Darwin"; then
4981         # If Tk was built as a framework, attempt to use the libraries
4982         # from the framework at the given location so that linking works
4983         # against Tk.framework installed in an arbitary location.
4984         case ${TK_DEFS} in
4985             *TK_FRAMEWORK*)
4986                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
4987                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
4988                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
4989                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
4990                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
4991                             break
4992                         fi
4993                     done
4994                 fi
4995                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
4996                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
4997                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
4998                 fi
4999                 ;;
5000         esac
5001     fi
5002
5003     # eval is required to do the TK_DBGX substitution
5004     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
5005     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
5006     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
5007     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022 here=`pwd`
5023 cd ${srcdir}/..
5024 topdir=`pwd`
5025 cd ${here}
5026
5027 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
5028   # Using in-tree Tcl/Tk
5029   case "${host}" in
5030     *-*-cygwin*) platDir="win" ;;
5031     *) platDir="unix" ;;
5032   esac
5033
5034   TCL_INCLUDES="-I${TCL_SRC_DIR}/generic -I${TCL_SRC_DIR}/${platDir}"
5035   TCL_LIBRARY=${TCL_BUILD_LIB_SPEC}
5036   TK_INCLUDES="-I${TK_SRC_DIR}/generic -I${TK_SRC_DIR}/${platDir}"
5037   TK_LIBRARY=${TK_BUILD_LIB_SPEC}
5038 else
5039   # Using installed Tcl/Tk
5040
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
5042 $as_echo_n "checking for Tcl private headers... " >&6; }
5043   private_dir=""
5044   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
5045   if test -f ${dir}/tclInt.h ; then
5046     private_dir=${dir}
5047   fi
5048
5049   if test x"${private_dir}" = x; then
5050     as_fn_error "could not find private Tcl headers" "$LINENO" 5
5051   else
5052     TCL_PRIVATE_INCLUDE="-I${private_dir}"
5053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
5054 $as_echo "${private_dir}" >&6; }
5055   fi
5056
5057
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
5059 $as_echo_n "checking for Tk private headers... " >&6; }
5060   private_dir=""
5061   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
5062   if test -f ${dir}/tkInt.h; then
5063     private_dir=${dir}
5064   fi
5065
5066   if test x"${private_dir}" = x; then
5067     as_fn_error "could not find Tk private headers" "$LINENO" 5
5068   else
5069     TK_PRIVATE_INCLUDE="-I${private_dir}"
5070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
5071 $as_echo "${private_dir}" >&6; }
5072   fi
5073
5074   TCL_INCLUDES="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
5075   TCL_LIBRARY=${TCL_LIB_SPEC}
5076   TK_INCLUDES="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
5077   TK_LIBRARY=${TK_LIB_SPEC}
5078 fi
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090  if test x$TCL_SHARED_BUILD = x1; then
5091   TCL_SHARED_TRUE=
5092   TCL_SHARED_FALSE='#'
5093 else
5094   TCL_SHARED_TRUE='#'
5095   TCL_SHARED_FALSE=
5096 fi
5097
5098
5099
5100
5101 ac_config_files="$ac_config_files Makefile library/Makefile src/Makefile"
5102
5103 cat >confcache <<\_ACEOF
5104 # This file is a shell script that caches the results of configure
5105 # tests run on this system so they can be shared between configure
5106 # scripts and configure runs, see configure's option --config-cache.
5107 # It is not useful on other systems.  If it contains results you don't
5108 # want to keep, you may remove or edit it.
5109 #
5110 # config.status only pays attention to the cache file if you give it
5111 # the --recheck option to rerun configure.
5112 #
5113 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5114 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5115 # following values.
5116
5117 _ACEOF
5118
5119 # The following way of writing the cache mishandles newlines in values,
5120 # but we know of no workaround that is simple, portable, and efficient.
5121 # So, we kill variables containing newlines.
5122 # Ultrix sh set writes to stderr and can't be redirected directly,
5123 # and sets the high bit in the cache file unless we assign to the vars.
5124 (
5125   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5126     eval ac_val=\$$ac_var
5127     case $ac_val in #(
5128     *${as_nl}*)
5129       case $ac_var in #(
5130       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5132       esac
5133       case $ac_var in #(
5134       _ | IFS | as_nl) ;; #(
5135       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5136       *) { eval $ac_var=; unset $ac_var;} ;;
5137       esac ;;
5138     esac
5139   done
5140
5141   (set) 2>&1 |
5142     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5143     *${as_nl}ac_space=\ *)
5144       # `set' does not quote correctly, so add quotes: double-quote
5145       # substitution turns \\\\ into \\, and sed turns \\ into \.
5146       sed -n \
5147         "s/'/'\\\\''/g;
5148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5149       ;; #(
5150     *)
5151       # `set' quotes correctly as required by POSIX, so do not add quotes.
5152       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5153       ;;
5154     esac |
5155     sort
5156 ) |
5157   sed '
5158      /^ac_cv_env_/b end
5159      t clear
5160      :clear
5161      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5162      t end
5163      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5164      :end' >>confcache
5165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5166   if test -w "$cache_file"; then
5167     test "x$cache_file" != "x/dev/null" &&
5168       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5169 $as_echo "$as_me: updating cache $cache_file" >&6;}
5170     cat confcache >$cache_file
5171   else
5172     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5173 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5174   fi
5175 fi
5176 rm -f confcache
5177
5178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5179 # Let make expand exec_prefix.
5180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5181
5182 DEFS=-DHAVE_CONFIG_H
5183
5184 ac_libobjs=
5185 ac_ltlibobjs=
5186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5187   # 1. Remove the extension, and $U if already installed.
5188   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5189   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5190   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5191   #    will be set to the directory where LIBOBJS objects are built.
5192   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5193   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5194 done
5195 LIBOBJS=$ac_libobjs
5196
5197 LTLIBOBJS=$ac_ltlibobjs
5198
5199
5200  if test -n "$EXEEXT"; then
5201   am__EXEEXT_TRUE=
5202   am__EXEEXT_FALSE='#'
5203 else
5204   am__EXEEXT_TRUE='#'
5205   am__EXEEXT_FALSE=
5206 fi
5207
5208 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5209   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
5210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5211 fi
5212 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213   as_fn_error "conditional \"AMDEP\" was never defined.
5214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5215 fi
5216 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5217   as_fn_error "conditional \"am__fastdepCC\" was never defined.
5218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5219 fi
5220 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
5221   as_fn_error "conditional \"CROSS_COMPILING\" was never defined.
5222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5223 fi
5224 if test -z "${INSTALL_LIBGUI_TRUE}" && test -z "${INSTALL_LIBGUI_FALSE}"; then
5225   as_fn_error "conditional \"INSTALL_LIBGUI\" was never defined.
5226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5227 fi
5228 if test -z "${IDE_ENABLED_TRUE}" && test -z "${IDE_ENABLED_FALSE}"; then
5229   as_fn_error "conditional \"IDE_ENABLED\" was never defined.
5230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5231 fi
5232 if test -z "${TCL_SHARED_TRUE}" && test -z "${TCL_SHARED_FALSE}"; then
5233   as_fn_error "conditional \"TCL_SHARED\" was never defined.
5234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5235 fi
5236
5237 : ${CONFIG_STATUS=./config.status}
5238 ac_write_fail=0
5239 ac_clean_files_save=$ac_clean_files
5240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5243 as_write_fail=0
5244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5245 #! $SHELL
5246 # Generated by $as_me.
5247 # Run this file to recreate the current configuration.
5248 # Compiler output produced by configure, useful for debugging
5249 # configure, is in config.log if it exists.
5250
5251 debug=false
5252 ac_cs_recheck=false
5253 ac_cs_silent=false
5254
5255 SHELL=\${CONFIG_SHELL-$SHELL}
5256 export SHELL
5257 _ASEOF
5258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5259 ## -------------------- ##
5260 ## M4sh Initialization. ##
5261 ## -------------------- ##
5262
5263 # Be more Bourne compatible
5264 DUALCASE=1; export DUALCASE # for MKS sh
5265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5266   emulate sh
5267   NULLCMD=:
5268   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5269   # is contrary to our usage.  Disable this feature.
5270   alias -g '${1+"$@"}'='"$@"'
5271   setopt NO_GLOB_SUBST
5272 else
5273   case `(set -o) 2>/dev/null` in #(
5274   *posix*) :
5275     set -o posix ;; #(
5276   *) :
5277      ;;
5278 esac
5279 fi
5280
5281
5282 as_nl='
5283 '
5284 export as_nl
5285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5289 # Prefer a ksh shell builtin over an external printf program on Solaris,
5290 # but without wasting forks for bash or zsh.
5291 if test -z "$BASH_VERSION$ZSH_VERSION" \
5292     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5293   as_echo='print -r --'
5294   as_echo_n='print -rn --'
5295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5296   as_echo='printf %s\n'
5297   as_echo_n='printf %s'
5298 else
5299   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5300     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5301     as_echo_n='/usr/ucb/echo -n'
5302   else
5303     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5304     as_echo_n_body='eval
5305       arg=$1;
5306       case $arg in #(
5307       *"$as_nl"*)
5308         expr "X$arg" : "X\\(.*\\)$as_nl";
5309         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5310       esac;
5311       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5312     '
5313     export as_echo_n_body
5314     as_echo_n='sh -c $as_echo_n_body as_echo'
5315   fi
5316   export as_echo_body
5317   as_echo='sh -c $as_echo_body as_echo'
5318 fi
5319
5320 # The user is always right.
5321 if test "${PATH_SEPARATOR+set}" != set; then
5322   PATH_SEPARATOR=:
5323   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5324     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5325       PATH_SEPARATOR=';'
5326   }
5327 fi
5328
5329
5330 # IFS
5331 # We need space, tab and new line, in precisely that order.  Quoting is
5332 # there to prevent editors from complaining about space-tab.
5333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5334 # splitting by setting IFS to empty value.)
5335 IFS=" ""        $as_nl"
5336
5337 # Find who we are.  Look in the path if we contain no directory separator.
5338 case $0 in #((
5339   *[\\/]* ) as_myself=$0 ;;
5340   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5346   done
5347 IFS=$as_save_IFS
5348
5349      ;;
5350 esac
5351 # We did not find ourselves, most probably we were run as `sh COMMAND'
5352 # in which case we are not to be found in the path.
5353 if test "x$as_myself" = x; then
5354   as_myself=$0
5355 fi
5356 if test ! -f "$as_myself"; then
5357   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5358   exit 1
5359 fi
5360
5361 # Unset variables that we do not need and which cause bugs (e.g. in
5362 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
5363 # suppresses any "Segmentation fault" message there.  '((' could
5364 # trigger a bug in pdksh 5.2.14.
5365 for as_var in BASH_ENV ENV MAIL MAILPATH
5366 do eval test x\${$as_var+set} = xset \
5367   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5368 done
5369 PS1='$ '
5370 PS2='> '
5371 PS4='+ '
5372
5373 # NLS nuisances.
5374 LC_ALL=C
5375 export LC_ALL
5376 LANGUAGE=C
5377 export LANGUAGE
5378
5379 # CDPATH.
5380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5381
5382
5383 # as_fn_error ERROR [LINENO LOG_FD]
5384 # ---------------------------------
5385 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5386 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5387 # script with status $?, using 1 if that was 0.
5388 as_fn_error ()
5389 {
5390   as_status=$?; test $as_status -eq 0 && as_status=1
5391   if test "$3"; then
5392     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5393     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5394   fi
5395   $as_echo "$as_me: error: $1" >&2
5396   as_fn_exit $as_status
5397 } # as_fn_error
5398
5399
5400 # as_fn_set_status STATUS
5401 # -----------------------
5402 # Set $? to STATUS, without forking.
5403 as_fn_set_status ()
5404 {
5405   return $1
5406 } # as_fn_set_status
5407
5408 # as_fn_exit STATUS
5409 # -----------------
5410 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5411 as_fn_exit ()
5412 {
5413   set +e
5414   as_fn_set_status $1
5415   exit $1
5416 } # as_fn_exit
5417
5418 # as_fn_unset VAR
5419 # ---------------
5420 # Portably unset VAR.
5421 as_fn_unset ()
5422 {
5423   { eval $1=; unset $1;}
5424 }
5425 as_unset=as_fn_unset
5426 # as_fn_append VAR VALUE
5427 # ----------------------
5428 # Append the text in VALUE to the end of the definition contained in VAR. Take
5429 # advantage of any shell optimizations that allow amortized linear growth over
5430 # repeated appends, instead of the typical quadratic growth present in naive
5431 # implementations.
5432 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5433   eval 'as_fn_append ()
5434   {
5435     eval $1+=\$2
5436   }'
5437 else
5438   as_fn_append ()
5439   {
5440     eval $1=\$$1\$2
5441   }
5442 fi # as_fn_append
5443
5444 # as_fn_arith ARG...
5445 # ------------------
5446 # Perform arithmetic evaluation on the ARGs, and store the result in the
5447 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5448 # must be portable across $(()) and expr.
5449 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5450   eval 'as_fn_arith ()
5451   {
5452     as_val=$(( $* ))
5453   }'
5454 else
5455   as_fn_arith ()
5456   {
5457     as_val=`expr "$@" || test $? -eq 1`
5458   }
5459 fi # as_fn_arith
5460
5461
5462 if expr a : '\(a\)' >/dev/null 2>&1 &&
5463    test "X`expr 00001 : '.*\(...\)'`" = X001; then
5464   as_expr=expr
5465 else
5466   as_expr=false
5467 fi
5468
5469 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5470   as_basename=basename
5471 else
5472   as_basename=false
5473 fi
5474
5475 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5476   as_dirname=dirname
5477 else
5478   as_dirname=false
5479 fi
5480
5481 as_me=`$as_basename -- "$0" ||
5482 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5483          X"$0" : 'X\(//\)$' \| \
5484          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5485 $as_echo X/"$0" |
5486     sed '/^.*\/\([^/][^/]*\)\/*$/{
5487             s//\1/
5488             q
5489           }
5490           /^X\/\(\/\/\)$/{
5491             s//\1/
5492             q
5493           }
5494           /^X\/\(\/\).*/{
5495             s//\1/
5496             q
5497           }
5498           s/.*/./; q'`
5499
5500 # Avoid depending upon Character Ranges.
5501 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5504 as_cr_digits='0123456789'
5505 as_cr_alnum=$as_cr_Letters$as_cr_digits
5506
5507 ECHO_C= ECHO_N= ECHO_T=
5508 case `echo -n x` in #(((((
5509 -n*)
5510   case `echo 'xy\c'` in
5511   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
5512   xy)  ECHO_C='\c';;
5513   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5514        ECHO_T=' ';;
5515   esac;;
5516 *)
5517   ECHO_N='-n';;
5518 esac
5519
5520 rm -f conf$$ conf$$.exe conf$$.file
5521 if test -d conf$$.dir; then
5522   rm -f conf$$.dir/conf$$.file
5523 else
5524   rm -f conf$$.dir
5525   mkdir conf$$.dir 2>/dev/null
5526 fi
5527 if (echo >conf$$.file) 2>/dev/null; then
5528   if ln -s conf$$.file conf$$ 2>/dev/null; then
5529     as_ln_s='ln -s'
5530     # ... but there are two gotchas:
5531     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5532     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5533     # In both cases, we have to default to `cp -p'.
5534     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5535       as_ln_s='cp -p'
5536   elif ln conf$$.file conf$$ 2>/dev/null; then
5537     as_ln_s=ln
5538   else
5539     as_ln_s='cp -p'
5540   fi
5541 else
5542   as_ln_s='cp -p'
5543 fi
5544 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5545 rmdir conf$$.dir 2>/dev/null
5546
5547
5548 # as_fn_mkdir_p
5549 # -------------
5550 # Create "$as_dir" as a directory, including parents if necessary.
5551 as_fn_mkdir_p ()
5552 {
5553
5554   case $as_dir in #(
5555   -*) as_dir=./$as_dir;;
5556   esac
5557   test -d "$as_dir" || eval $as_mkdir_p || {
5558     as_dirs=
5559     while :; do
5560       case $as_dir in #(
5561       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5562       *) as_qdir=$as_dir;;
5563       esac
5564       as_dirs="'$as_qdir' $as_dirs"
5565       as_dir=`$as_dirname -- "$as_dir" ||
5566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5567          X"$as_dir" : 'X\(//\)[^/]' \| \
5568          X"$as_dir" : 'X\(//\)$' \| \
5569          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5570 $as_echo X"$as_dir" |
5571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5572             s//\1/
5573             q
5574           }
5575           /^X\(\/\/\)[^/].*/{
5576             s//\1/
5577             q
5578           }
5579           /^X\(\/\/\)$/{
5580             s//\1/
5581             q
5582           }
5583           /^X\(\/\).*/{
5584             s//\1/
5585             q
5586           }
5587           s/.*/./; q'`
5588       test -d "$as_dir" && break
5589     done
5590     test -z "$as_dirs" || eval "mkdir $as_dirs"
5591   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5592
5593
5594 } # as_fn_mkdir_p
5595 if mkdir -p . 2>/dev/null; then
5596   as_mkdir_p='mkdir -p "$as_dir"'
5597 else
5598   test -d ./-p && rmdir ./-p
5599   as_mkdir_p=false
5600 fi
5601
5602 if test -x / >/dev/null 2>&1; then
5603   as_test_x='test -x'
5604 else
5605   if ls -dL / >/dev/null 2>&1; then
5606     as_ls_L_option=L
5607   else
5608     as_ls_L_option=
5609   fi
5610   as_test_x='
5611     eval sh -c '\''
5612       if test -d "$1"; then
5613         test -d "$1/.";
5614       else
5615         case $1 in #(
5616         -*)set "./$1";;
5617         esac;
5618         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5619         ???[sx]*):;;*)false;;esac;fi
5620     '\'' sh
5621   '
5622 fi
5623 as_executable_p=$as_test_x
5624
5625 # Sed expression to map a string onto a valid CPP name.
5626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5627
5628 # Sed expression to map a string onto a valid variable name.
5629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5630
5631
5632 exec 6>&1
5633 ## ----------------------------------- ##
5634 ## Main body of $CONFIG_STATUS script. ##
5635 ## ----------------------------------- ##
5636 _ASEOF
5637 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5638
5639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5640 # Save the log message, to keep $0 and so on meaningful, and to
5641 # report actual input values of CONFIG_FILES etc. instead of their
5642 # values after options handling.
5643 ac_log="
5644 This file was extended by $as_me, which was
5645 generated by GNU Autoconf 2.64.  Invocation command line was
5646
5647   CONFIG_FILES    = $CONFIG_FILES
5648   CONFIG_HEADERS  = $CONFIG_HEADERS
5649   CONFIG_LINKS    = $CONFIG_LINKS
5650   CONFIG_COMMANDS = $CONFIG_COMMANDS
5651   $ $0 $@
5652
5653 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5654 "
5655
5656 _ACEOF
5657
5658 case $ac_config_files in *"
5659 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5660 esac
5661
5662 case $ac_config_headers in *"
5663 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5664 esac
5665
5666
5667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5668 # Files that config.status was made for.
5669 config_files="$ac_config_files"
5670 config_headers="$ac_config_headers"
5671 config_commands="$ac_config_commands"
5672
5673 _ACEOF
5674
5675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5676 ac_cs_usage="\
5677 \`$as_me' instantiates files and other configuration actions
5678 from templates according to the current configuration.  Unless the files
5679 and actions are specified as TAGs, all are instantiated by default.
5680
5681 Usage: $0 [OPTION]... [TAG]...
5682
5683   -h, --help       print this help, then exit
5684   -V, --version    print version number and configuration settings, then exit
5685   -q, --quiet, --silent
5686                    do not print progress messages
5687   -d, --debug      don't remove temporary files
5688       --recheck    update $as_me by reconfiguring in the same conditions
5689       --file=FILE[:TEMPLATE]
5690                    instantiate the configuration file FILE
5691       --header=FILE[:TEMPLATE]
5692                    instantiate the configuration header FILE
5693
5694 Configuration files:
5695 $config_files
5696
5697 Configuration headers:
5698 $config_headers
5699
5700 Configuration commands:
5701 $config_commands
5702
5703 Report bugs to the package provider."
5704
5705 _ACEOF
5706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5707 ac_cs_version="\\
5708 config.status
5709 configured by $0, generated by GNU Autoconf 2.64,
5710   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5711
5712 Copyright (C) 2009 Free Software Foundation, Inc.
5713 This config.status script is free software; the Free Software Foundation
5714 gives unlimited permission to copy, distribute and modify it."
5715
5716 ac_pwd='$ac_pwd'
5717 srcdir='$srcdir'
5718 INSTALL='$INSTALL'
5719 MKDIR_P='$MKDIR_P'
5720 AWK='$AWK'
5721 test -n "\$AWK" || AWK=awk
5722 _ACEOF
5723
5724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5725 # The default lists apply if the user does not specify any file.
5726 ac_need_defaults=:
5727 while test $# != 0
5728 do
5729   case $1 in
5730   --*=*)
5731     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5732     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5733     ac_shift=:
5734     ;;
5735   *)
5736     ac_option=$1
5737     ac_optarg=$2
5738     ac_shift=shift
5739     ;;
5740   esac
5741
5742   case $ac_option in
5743   # Handling of the options.
5744   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5745     ac_cs_recheck=: ;;
5746   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5747     $as_echo "$ac_cs_version"; exit ;;
5748   --debug | --debu | --deb | --de | --d | -d )
5749     debug=: ;;
5750   --file | --fil | --fi | --f )
5751     $ac_shift
5752     case $ac_optarg in
5753     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5754     esac
5755     as_fn_append CONFIG_FILES " '$ac_optarg'"
5756     ac_need_defaults=false;;
5757   --header | --heade | --head | --hea )
5758     $ac_shift
5759     case $ac_optarg in
5760     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5761     esac
5762     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5763     ac_need_defaults=false;;
5764   --he | --h)
5765     # Conflict between --help and --header
5766     as_fn_error "ambiguous option: \`$1'
5767 Try \`$0 --help' for more information.";;
5768   --help | --hel | -h )
5769     $as_echo "$ac_cs_usage"; exit ;;
5770   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5771   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5772     ac_cs_silent=: ;;
5773
5774   # This is an error.
5775   -*) as_fn_error "unrecognized option: \`$1'
5776 Try \`$0 --help' for more information." ;;
5777
5778   *) as_fn_append ac_config_targets " $1"
5779      ac_need_defaults=false ;;
5780
5781   esac
5782   shift
5783 done
5784
5785 ac_configure_extra_args=
5786
5787 if $ac_cs_silent; then
5788   exec 6>/dev/null
5789   ac_configure_extra_args="$ac_configure_extra_args --silent"
5790 fi
5791
5792 _ACEOF
5793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5794 if \$ac_cs_recheck; then
5795   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5796   shift
5797   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5798   CONFIG_SHELL='$SHELL'
5799   export CONFIG_SHELL
5800   exec "\$@"
5801 fi
5802
5803 _ACEOF
5804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5805 exec 5>>config.log
5806 {
5807   echo
5808   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5809 ## Running $as_me. ##
5810 _ASBOX
5811   $as_echo "$ac_log"
5812 } >&5
5813
5814 _ACEOF
5815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5816 #
5817 # INIT-COMMANDS
5818 #
5819 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5820
5821 _ACEOF
5822
5823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5824
5825 # Handling of arguments.
5826 for ac_config_target in $ac_config_targets
5827 do
5828   case $ac_config_target in
5829     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5830     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5831     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5832     "library/Makefile") CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
5833     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5834
5835   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5836   esac
5837 done
5838
5839
5840 # If the user did not use the arguments to specify the items to instantiate,
5841 # then the envvar interface is used.  Set only those that are not.
5842 # We use the long form for the default assignment because of an extremely
5843 # bizarre bug on SunOS 4.1.3.
5844 if $ac_need_defaults; then
5845   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5846   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5847   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5848 fi
5849
5850 # Have a temporary directory for convenience.  Make it in the build tree
5851 # simply because there is no reason against having it here, and in addition,
5852 # creating and moving files from /tmp can sometimes cause problems.
5853 # Hook for its removal unless debugging.
5854 # Note that there is a small window in which the directory will not be cleaned:
5855 # after its creation but before its name has been assigned to `$tmp'.
5856 $debug ||
5857 {
5858   tmp=
5859   trap 'exit_status=$?
5860   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5861 ' 0
5862   trap 'as_fn_exit 1' 1 2 13 15
5863 }
5864 # Create a (secure) tmp directory for tmp files.
5865
5866 {
5867   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5868   test -n "$tmp" && test -d "$tmp"
5869 }  ||
5870 {
5871   tmp=./conf$$-$RANDOM
5872   (umask 077 && mkdir "$tmp")
5873 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5874
5875 # Set up the scripts for CONFIG_FILES section.
5876 # No need to generate them if there are no CONFIG_FILES.
5877 # This happens for instance with `./config.status config.h'.
5878 if test -n "$CONFIG_FILES"; then
5879
5880
5881 ac_cr=`echo X | tr X '\015'`
5882 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5883 # But we know of no other shell where ac_cr would be empty at this
5884 # point, so we can use a bashism as a fallback.
5885 if test "x$ac_cr" = x; then
5886   eval ac_cr=\$\'\\r\'
5887 fi
5888 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5889 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5890   ac_cs_awk_cr='\r'
5891 else
5892   ac_cs_awk_cr=$ac_cr
5893 fi
5894
5895 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5896 _ACEOF
5897
5898
5899 {
5900   echo "cat >conf$$subs.awk <<_ACEOF" &&
5901   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5902   echo "_ACEOF"
5903 } >conf$$subs.sh ||
5904   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5905 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5906 ac_delim='%!_!# '
5907 for ac_last_try in false false false false false :; do
5908   . ./conf$$subs.sh ||
5909     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5910
5911   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5912   if test $ac_delim_n = $ac_delim_num; then
5913     break
5914   elif $ac_last_try; then
5915     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5916   else
5917     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5918   fi
5919 done
5920 rm -f conf$$subs.sh
5921
5922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5923 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5924 _ACEOF
5925 sed -n '
5926 h
5927 s/^/S["/; s/!.*/"]=/
5928 p
5929 g
5930 s/^[^!]*!//
5931 :repl
5932 t repl
5933 s/'"$ac_delim"'$//
5934 t delim
5935 :nl
5936 h
5937 s/\(.\{148\}\).*/\1/
5938 t more1
5939 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5940 p
5941 n
5942 b repl
5943 :more1
5944 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5945 p
5946 g
5947 s/.\{148\}//
5948 t nl
5949 :delim
5950 h
5951 s/\(.\{148\}\).*/\1/
5952 t more2
5953 s/["\\]/\\&/g; s/^/"/; s/$/"/
5954 p
5955 b
5956 :more2
5957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5958 p
5959 g
5960 s/.\{148\}//
5961 t delim
5962 ' <conf$$subs.awk | sed '
5963 /^[^""]/{
5964   N
5965   s/\n//
5966 }
5967 ' >>$CONFIG_STATUS || ac_write_fail=1
5968 rm -f conf$$subs.awk
5969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5970 _ACAWK
5971 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5972   for (key in S) S_is_set[key] = 1
5973   FS = "\a"
5974
5975 }
5976 {
5977   line = $ 0
5978   nfields = split(line, field, "@")
5979   substed = 0
5980   len = length(field[1])
5981   for (i = 2; i < nfields; i++) {
5982     key = field[i]
5983     keylen = length(key)
5984     if (S_is_set[key]) {
5985       value = S[key]
5986       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5987       len += length(value) + length(field[++i])
5988       substed = 1
5989     } else
5990       len += 1 + keylen
5991   }
5992
5993   print line
5994 }
5995
5996 _ACAWK
5997 _ACEOF
5998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5999 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6000   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6001 else
6002   cat
6003 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6004   || as_fn_error "could not setup config files machinery" "$LINENO" 5
6005 _ACEOF
6006
6007 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6008 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6009 # trailing colons and then remove the whole line if VPATH becomes empty
6010 # (actually we leave an empty line to preserve line numbers).
6011 if test "x$srcdir" = x.; then
6012   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6013 s/:*\$(srcdir):*/:/
6014 s/:*\${srcdir}:*/:/
6015 s/:*@srcdir@:*/:/
6016 s/^\([^=]*=[     ]*\):*/\1/
6017 s/:*$//
6018 s/^[^=]*=[       ]*$//
6019 }'
6020 fi
6021
6022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6023 fi # test -n "$CONFIG_FILES"
6024
6025 # Set up the scripts for CONFIG_HEADERS section.
6026 # No need to generate them if there are no CONFIG_HEADERS.
6027 # This happens for instance with `./config.status Makefile'.
6028 if test -n "$CONFIG_HEADERS"; then
6029 cat >"$tmp/defines.awk" <<\_ACAWK ||
6030 BEGIN {
6031 _ACEOF
6032
6033 # Transform confdefs.h into an awk script `defines.awk', embedded as
6034 # here-document in config.status, that substitutes the proper values into
6035 # config.h.in to produce config.h.
6036
6037 # Create a delimiter string that does not exist in confdefs.h, to ease
6038 # handling of long lines.
6039 ac_delim='%!_!# '
6040 for ac_last_try in false false :; do
6041   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6042   if test -z "$ac_t"; then
6043     break
6044   elif $ac_last_try; then
6045     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6046   else
6047     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6048   fi
6049 done
6050
6051 # For the awk script, D is an array of macro values keyed by name,
6052 # likewise P contains macro parameters if any.  Preserve backslash
6053 # newline sequences.
6054
6055 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6056 sed -n '
6057 s/.\{148\}/&'"$ac_delim"'/g
6058 t rset
6059 :rset
6060 s/^[     ]*#[    ]*define[       ][      ]*/ /
6061 t def
6062 d
6063 :def
6064 s/\\$//
6065 t bsnl
6066 s/["\\]/\\&/g
6067 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6068 D["\1"]=" \3"/p
6069 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6070 d
6071 :bsnl
6072 s/["\\]/\\&/g
6073 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6074 D["\1"]=" \3\\\\\\n"\\/p
6075 t cont
6076 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6077 t cont
6078 d
6079 :cont
6080 n
6081 s/.\{148\}/&'"$ac_delim"'/g
6082 t clear
6083 :clear
6084 s/\\$//
6085 t bsnlc
6086 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6087 d
6088 :bsnlc
6089 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6090 b cont
6091 ' <confdefs.h | sed '
6092 s/'"$ac_delim"'/"\\\
6093 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6094
6095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6096   for (key in D) D_is_set[key] = 1
6097   FS = "\a"
6098 }
6099 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6100   line = \$ 0
6101   split(line, arg, " ")
6102   if (arg[1] == "#") {
6103     defundef = arg[2]
6104     mac1 = arg[3]
6105   } else {
6106     defundef = substr(arg[1], 2)
6107     mac1 = arg[2]
6108   }
6109   split(mac1, mac2, "(") #)
6110   macro = mac2[1]
6111   prefix = substr(line, 1, index(line, defundef) - 1)
6112   if (D_is_set[macro]) {
6113     # Preserve the white space surrounding the "#".
6114     print prefix "define", macro P[macro] D[macro]
6115     next
6116   } else {
6117     # Replace #undef with comments.  This is necessary, for example,
6118     # in the case of _POSIX_SOURCE, which is predefined and required
6119     # on some systems where configure will not decide to define it.
6120     if (defundef == "undef") {
6121       print "/*", prefix defundef, macro, "*/"
6122       next
6123     }
6124   }
6125 }
6126 { print }
6127 _ACAWK
6128 _ACEOF
6129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6130   as_fn_error "could not setup config headers machinery" "$LINENO" 5
6131 fi # test -n "$CONFIG_HEADERS"
6132
6133
6134 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6135 shift
6136 for ac_tag
6137 do
6138   case $ac_tag in
6139   :[FHLC]) ac_mode=$ac_tag; continue;;
6140   esac
6141   case $ac_mode$ac_tag in
6142   :[FHL]*:*);;
6143   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6144   :[FH]-) ac_tag=-:-;;
6145   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6146   esac
6147   ac_save_IFS=$IFS
6148   IFS=:
6149   set x $ac_tag
6150   IFS=$ac_save_IFS
6151   shift
6152   ac_file=$1
6153   shift
6154
6155   case $ac_mode in
6156   :L) ac_source=$1;;
6157   :[FH])
6158     ac_file_inputs=
6159     for ac_f
6160     do
6161       case $ac_f in
6162       -) ac_f="$tmp/stdin";;
6163       *) # Look for the file first in the build tree, then in the source tree
6164          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6165          # because $ac_f cannot contain `:'.
6166          test -f "$ac_f" ||
6167            case $ac_f in
6168            [\\/$]*) false;;
6169            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6170            esac ||
6171            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6172       esac
6173       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6174       as_fn_append ac_file_inputs " '$ac_f'"
6175     done
6176
6177     # Let's still pretend it is `configure' which instantiates (i.e., don't
6178     # use $as_me), people would be surprised to read:
6179     #    /* config.h.  Generated by config.status.  */
6180     configure_input='Generated from '`
6181           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6182         `' by configure.'
6183     if test x"$ac_file" != x-; then
6184       configure_input="$ac_file.  $configure_input"
6185       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6186 $as_echo "$as_me: creating $ac_file" >&6;}
6187     fi
6188     # Neutralize special characters interpreted by sed in replacement strings.
6189     case $configure_input in #(
6190     *\&* | *\|* | *\\* )
6191        ac_sed_conf_input=`$as_echo "$configure_input" |
6192        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6193     *) ac_sed_conf_input=$configure_input;;
6194     esac
6195
6196     case $ac_tag in
6197     *:-:* | *:-) cat >"$tmp/stdin" \
6198       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6199     esac
6200     ;;
6201   esac
6202
6203   ac_dir=`$as_dirname -- "$ac_file" ||
6204 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6205          X"$ac_file" : 'X\(//\)[^/]' \| \
6206          X"$ac_file" : 'X\(//\)$' \| \
6207          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6208 $as_echo X"$ac_file" |
6209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6210             s//\1/
6211             q
6212           }
6213           /^X\(\/\/\)[^/].*/{
6214             s//\1/
6215             q
6216           }
6217           /^X\(\/\/\)$/{
6218             s//\1/
6219             q
6220           }
6221           /^X\(\/\).*/{
6222             s//\1/
6223             q
6224           }
6225           s/.*/./; q'`
6226   as_dir="$ac_dir"; as_fn_mkdir_p
6227   ac_builddir=.
6228
6229 case "$ac_dir" in
6230 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6231 *)
6232   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6233   # A ".." for each directory in $ac_dir_suffix.
6234   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6235   case $ac_top_builddir_sub in
6236   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6237   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6238   esac ;;
6239 esac
6240 ac_abs_top_builddir=$ac_pwd
6241 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6242 # for backward compatibility:
6243 ac_top_builddir=$ac_top_build_prefix
6244
6245 case $srcdir in
6246   .)  # We are building in place.
6247     ac_srcdir=.
6248     ac_top_srcdir=$ac_top_builddir_sub
6249     ac_abs_top_srcdir=$ac_pwd ;;
6250   [\\/]* | ?:[\\/]* )  # Absolute name.
6251     ac_srcdir=$srcdir$ac_dir_suffix;
6252     ac_top_srcdir=$srcdir
6253     ac_abs_top_srcdir=$srcdir ;;
6254   *) # Relative name.
6255     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6256     ac_top_srcdir=$ac_top_build_prefix$srcdir
6257     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6258 esac
6259 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6260
6261
6262   case $ac_mode in
6263   :F)
6264   #
6265   # CONFIG_FILE
6266   #
6267
6268   case $INSTALL in
6269   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6270   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6271   esac
6272   ac_MKDIR_P=$MKDIR_P
6273   case $MKDIR_P in
6274   [\\/$]* | ?:[\\/]* ) ;;
6275   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6276   esac
6277 _ACEOF
6278
6279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6280 # If the template does not know about datarootdir, expand it.
6281 # FIXME: This hack should be removed a few years after 2.60.
6282 ac_datarootdir_hack=; ac_datarootdir_seen=
6283 ac_sed_dataroot='
6284 /datarootdir/ {
6285   p
6286   q
6287 }
6288 /@datadir@/p
6289 /@docdir@/p
6290 /@infodir@/p
6291 /@localedir@/p
6292 /@mandir@/p'
6293 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6294 *datarootdir*) ac_datarootdir_seen=yes;;
6295 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6297 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6298 _ACEOF
6299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6300   ac_datarootdir_hack='
6301   s&@datadir@&$datadir&g
6302   s&@docdir@&$docdir&g
6303   s&@infodir@&$infodir&g
6304   s&@localedir@&$localedir&g
6305   s&@mandir@&$mandir&g
6306   s&\\\${datarootdir}&$datarootdir&g' ;;
6307 esac
6308 _ACEOF
6309
6310 # Neutralize VPATH when `$srcdir' = `.'.
6311 # Shell code in configure.ac might set extrasub.
6312 # FIXME: do we really want to maintain this feature?
6313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6314 ac_sed_extra="$ac_vpsub
6315 $extrasub
6316 _ACEOF
6317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6318 :t
6319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6320 s|@configure_input@|$ac_sed_conf_input|;t t
6321 s&@top_builddir@&$ac_top_builddir_sub&;t t
6322 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6323 s&@srcdir@&$ac_srcdir&;t t
6324 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6325 s&@top_srcdir@&$ac_top_srcdir&;t t
6326 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6327 s&@builddir@&$ac_builddir&;t t
6328 s&@abs_builddir@&$ac_abs_builddir&;t t
6329 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6330 s&@INSTALL@&$ac_INSTALL&;t t
6331 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6332 $ac_datarootdir_hack
6333 "
6334 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6335   || as_fn_error "could not create $ac_file" "$LINENO" 5
6336
6337 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6338   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6339   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6341 which seems to be undefined.  Please make sure it is defined." >&5
6342 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6343 which seems to be undefined.  Please make sure it is defined." >&2;}
6344
6345   rm -f "$tmp/stdin"
6346   case $ac_file in
6347   -) cat "$tmp/out" && rm -f "$tmp/out";;
6348   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6349   esac \
6350   || as_fn_error "could not create $ac_file" "$LINENO" 5
6351  ;;
6352   :H)
6353   #
6354   # CONFIG_HEADER
6355   #
6356   if test x"$ac_file" != x-; then
6357     {
6358       $as_echo "/* $configure_input  */" \
6359       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6360     } >"$tmp/config.h" \
6361       || as_fn_error "could not create $ac_file" "$LINENO" 5
6362     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6363       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6364 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6365     else
6366       rm -f "$ac_file"
6367       mv "$tmp/config.h" "$ac_file" \
6368         || as_fn_error "could not create $ac_file" "$LINENO" 5
6369     fi
6370   else
6371     $as_echo "/* $configure_input  */" \
6372       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6373       || as_fn_error "could not create -" "$LINENO" 5
6374   fi
6375 # Compute "$ac_file"'s index in $config_headers.
6376 _am_arg="$ac_file"
6377 _am_stamp_count=1
6378 for _am_header in $config_headers :; do
6379   case $_am_header in
6380     $_am_arg | $_am_arg:* )
6381       break ;;
6382     * )
6383       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6384   esac
6385 done
6386 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6387 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6388          X"$_am_arg" : 'X\(//\)[^/]' \| \
6389          X"$_am_arg" : 'X\(//\)$' \| \
6390          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6391 $as_echo X"$_am_arg" |
6392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6393             s//\1/
6394             q
6395           }
6396           /^X\(\/\/\)[^/].*/{
6397             s//\1/
6398             q
6399           }
6400           /^X\(\/\/\)$/{
6401             s//\1/
6402             q
6403           }
6404           /^X\(\/\).*/{
6405             s//\1/
6406             q
6407           }
6408           s/.*/./; q'`/stamp-h$_am_stamp_count
6409  ;;
6410
6411   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6412 $as_echo "$as_me: executing $ac_file commands" >&6;}
6413  ;;
6414   esac
6415
6416
6417   case $ac_file$ac_mode in
6418     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6419   # Autoconf 2.62 quotes --file arguments for eval, but not when files
6420   # are listed without --file.  Let's play safe and only enable the eval
6421   # if we detect the quoting.
6422   case $CONFIG_FILES in
6423   *\'*) eval set x "$CONFIG_FILES" ;;
6424   *)   set x $CONFIG_FILES ;;
6425   esac
6426   shift
6427   for mf
6428   do
6429     # Strip MF so we end up with the name of the file.
6430     mf=`echo "$mf" | sed -e 's/:.*$//'`
6431     # Check whether this is an Automake generated Makefile or not.
6432     # We used to match only the files named `Makefile.in', but
6433     # some people rename them; so instead we look at the file content.
6434     # Grep'ing the first line is not enough: some people post-process
6435     # each Makefile.in and add a new line on top of each file to say so.
6436     # Grep'ing the whole file is not good either: AIX grep has a line
6437     # limit of 2048, but all sed's we know have understand at least 4000.
6438     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6439       dirpart=`$as_dirname -- "$mf" ||
6440 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6441          X"$mf" : 'X\(//\)[^/]' \| \
6442          X"$mf" : 'X\(//\)$' \| \
6443          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6444 $as_echo X"$mf" |
6445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6446             s//\1/
6447             q
6448           }
6449           /^X\(\/\/\)[^/].*/{
6450             s//\1/
6451             q
6452           }
6453           /^X\(\/\/\)$/{
6454             s//\1/
6455             q
6456           }
6457           /^X\(\/\).*/{
6458             s//\1/
6459             q
6460           }
6461           s/.*/./; q'`
6462     else
6463       continue
6464     fi
6465     # Extract the definition of DEPDIR, am__include, and am__quote
6466     # from the Makefile without running `make'.
6467     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6468     test -z "$DEPDIR" && continue
6469     am__include=`sed -n 's/^am__include = //p' < "$mf"`
6470     test -z "am__include" && continue
6471     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6472     # When using ansi2knr, U may be empty or an underscore; expand it
6473     U=`sed -n 's/^U = //p' < "$mf"`
6474     # Find all dependency output files, they are included files with
6475     # $(DEPDIR) in their names.  We invoke sed twice because it is the
6476     # simplest approach to changing $(DEPDIR) to its actual value in the
6477     # expansion.
6478     for file in `sed -n "
6479       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6480          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6481       # Make sure the directory exists.
6482       test -f "$dirpart/$file" && continue
6483       fdir=`$as_dirname -- "$file" ||
6484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6485          X"$file" : 'X\(//\)[^/]' \| \
6486          X"$file" : 'X\(//\)$' \| \
6487          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6488 $as_echo X"$file" |
6489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6490             s//\1/
6491             q
6492           }
6493           /^X\(\/\/\)[^/].*/{
6494             s//\1/
6495             q
6496           }
6497           /^X\(\/\/\)$/{
6498             s//\1/
6499             q
6500           }
6501           /^X\(\/\).*/{
6502             s//\1/
6503             q
6504           }
6505           s/.*/./; q'`
6506       as_dir=$dirpart/$fdir; as_fn_mkdir_p
6507       # echo "creating $dirpart/$file"
6508       echo '# dummy' > "$dirpart/$file"
6509     done
6510   done
6511 }
6512  ;;
6513
6514   esac
6515 done # for ac_tag
6516
6517
6518 as_fn_exit 0
6519 _ACEOF
6520 ac_clean_files=$ac_clean_files_save
6521
6522 test $ac_write_fail = 0 ||
6523   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6524
6525
6526 # configure is writing to config.log, and then calls config.status.
6527 # config.status does its own redirection, appending to config.log.
6528 # Unfortunately, on DOS this fails, as config.log is still kept open
6529 # by configure, so config.status won't be able to write to it; its
6530 # output is simply discarded.  So we exec the FD to /dev/null,
6531 # effectively closing config.log, so it can be properly (re)opened and
6532 # appended to by config.status.  When coming back to configure, we
6533 # need to make the FD available again.
6534 if test "$no_create" != yes; then
6535   ac_cs_success=:
6536   ac_config_status_args=
6537   test "$silent" = yes &&
6538     ac_config_status_args="$ac_config_status_args --quiet"
6539   exec 5>/dev/null
6540   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6541   exec 5>>config.log
6542   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6543   # would make configure fail if this is the last instruction.
6544   $ac_cs_success || as_fn_exit $?
6545 fi
6546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6549 fi
6550
6551
6552
6553