Extended method of last commit to include a non-Cairo graphics
[xcircuit.git] / configure
blobba18aa5e0e940f8edff4e632fe0b58bb794296fa
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="xcircuit.c"
586 ac_unique_file="xcircuit.c"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
589 #include <stdio.h>
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
592 #endif
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
595 #endif
596 #ifdef STDC_HEADERS
597 # include <stdlib.h>
598 # include <stddef.h>
599 #else
600 # ifdef HAVE_STDLIB_H
601 # include <stdlib.h>
602 # endif
603 #endif
604 #ifdef HAVE_STRING_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 # include <memory.h>
607 # endif
608 # include <string.h>
609 #endif
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
612 #endif
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
615 #endif
616 #ifdef HAVE_STDINT_H
617 # include <stdint.h>
618 #endif
619 #ifdef HAVE_UNISTD_H
620 # include <unistd.h>
621 #endif"
623 ac_subst_vars='am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 LIBOBJS
627 INSTALL_TARGET
628 ALL_TARGET
629 HAVE_LGF
630 INTERPRETER
632 XCIRCUIT_TARGET
633 WRAPPER_SCRIPT
634 INTERP_PATH
635 STARTUP_FILE
636 GS_LIBS
637 STDLIBS
638 SUBLIB
639 SUBDIRS
640 PYTHON
641 SPICE_EXEC
642 GS_EXEC
643 WISH_EXE
644 TCL_LIB_DIR
645 LIB_SPECS
646 INC_SPECS
647 LD_RUN_PATH
648 EXTRA_LIB_SPECS
649 SHLIB_LIB_SPECS
650 LDDL_FLAGS
651 SHLIB_LD
652 SHDLIB_EXT
653 fontconfig_LIBS
654 fontconfig_CFLAGS
655 cairo_LIBS
656 cairo_CFLAGS
657 PKG_CONFIG_LIBDIR
658 PKG_CONFIG_PATH
659 PKG_CONFIG
660 X_EXTRA_LIBS
661 X_LIBS
662 X_PRE_LIBS
663 X_CFLAGS
664 XMKMF
665 EGREP
666 GREP
669 RANLIB
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
687 REVISION
688 AM_BACKSLASH
689 AM_DEFAULT_VERBOSITY
690 AM_DEFAULT_V
691 AM_V
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_os
716 target_vendor
717 target_cpu
718 target
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 target_alias
728 host_alias
729 build_alias
730 LIBS
731 ECHO_T
732 ECHO_N
733 ECHO_C
734 DEFS
735 mandir
736 localedir
737 libdir
738 psdir
739 pdfdir
740 dvidir
741 htmldir
742 infodir
743 docdir
744 oldincludedir
745 includedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_silent_rules
769 enable_dependency_tracking
770 with_x
771 enable_optimize
772 with_xpm
773 with_gnu_ld
774 with_cairo
775 with_tcl
776 with_tk
777 with_tclincls
778 with_tkincls
779 with_tcllibs
780 with_tklibs
781 enable_asg
782 enable_lgf
783 enable_focus_fix
784 with_gs
785 with_ngspice
786 with_python
787 enable_memdebug
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
798 XMKMF
799 PKG_CONFIG
800 PKG_CONFIG_PATH
801 PKG_CONFIG_LIBDIR
802 cairo_CFLAGS
803 cairo_LIBS
804 fontconfig_CFLAGS
805 fontconfig_LIBS'
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
856 ac_prev=
857 ac_dashdash=
858 for ac_option
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
867 case $ac_option in
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
871 esac
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
877 ac_dashdash=yes ;;
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
896 --config-cache | -C)
897 cache_file=config.cache ;;
899 -datadir | --datadir | --datadi | --datad)
900 ac_prev=datadir ;;
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1141 -with-* | --with-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201 esac
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 esac
1214 done
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 esac
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
1243 case $ac_val in
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 esac
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 done
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1253 build=$build_alias
1254 host=$host_alias
1255 target=$target_alias
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269 test "$silent" = yes && exec 6>/dev/null
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1298 /^X\(\/\/\)$/{
1299 s//\1/
1302 /^X\(\/\).*/{
1303 s//\1/
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1311 else
1312 ac_srcdir_defaulted=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1340 # Report the --help message.
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 \`configure' configures this package to adapt to many kinds of systems.
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1353 Defaults for the options are specified in brackets.
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1377 For better control, use the options below.
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1401 cat <<\_ACEOF
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408 X features:
1409 --x-includes=DIR X include files are in DIR
1410 --x-libraries=DIR X library files are in DIR
1412 System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1416 _ACEOF
1419 if test -n "$ac_init_help"; then
1421 cat <<\_ACEOF
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --enable-optimize enable compile-time optimizer flag -O2
1434 --enable-asg enable support for Automatic Schematic Generation
1435 --disable-lgf disable support for reading Caltech tools
1436 analog simulator .lgf files
1437 --disable-focus-fix disable focus fix for some window managers
1438 --enable-memdebug enable memory debugging
1440 Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-x use the X Window System
1444 --with-xpm=DIR use Xpm include/library files in DIR
1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1446 --with-cairo Use cairo graphics library [default=yes]
1447 --with-tcl=DIR Find tclConfig.sh in DIR
1448 --with-tk=DIR Find tkConfig.sh in DIR
1449 --with-tclincls=DIR Find tcl.h in DIR
1450 --with-tkincls=DIR Find tk.h in DIR
1451 --with-tcllibs=DIR Find Tcl library in DIR
1452 --with-tklibs=DIR Find Tk library in DIR
1453 --with-gs=DIR path to ghostscript
1454 --with-ngspice=DIR path to ngspice
1455 --with-python=DIR path to python interpreter
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CPP C preprocessor
1466 XMKMF Path to xmkmf, Makefile generator for X Window System
1467 PKG_CONFIG path to pkg-config utility
1468 PKG_CONFIG_PATH
1469 directories to add to pkg-config's search path
1470 PKG_CONFIG_LIBDIR
1471 path overriding pkg-config's built-in search path
1472 cairo_CFLAGS
1473 C compiler flags for cairo, overriding pkg-config
1474 cairo_LIBS linker flags for cairo, overriding pkg-config
1475 fontconfig_CFLAGS
1476 C compiler flags for fontconfig, overriding pkg-config
1477 fontconfig_LIBS
1478 linker flags for fontconfig, overriding pkg-config
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to the package provider.
1484 _ACEOF
1485 ac_status=$?
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 continue
1494 ac_builddir=.
1496 case "$ac_dir" in
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 esac ;;
1506 esac
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1512 case $srcdir in
1513 .) # We are building in place.
1514 ac_srcdir=.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1521 *) # Relative name.
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 esac
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1536 else
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 fi || ac_status=$?
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1540 done
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1545 cat <<\_ACEOF
1546 configure
1547 generated by GNU Autoconf 2.69
1549 Copyright (C) 2012 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1552 _ACEOF
1553 exit
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1568 case "(($ac_try" in
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1571 esac
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1575 ac_status=$?
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1586 ac_retval=0
1587 else
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1591 ac_retval=1
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_c_try_link ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 test -x conftest$ac_exeext
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_try_run LINENO
1645 # ----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1647 # that executables *can* be run.
1648 ac_fn_c_try_run ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>&5
1659 ac_status=$?
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1662 { { case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_try") 2>&5
1669 ac_status=$?
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; }; }; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: program exited with status $ac_status" >&5
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=$ac_status
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1684 } # ac_fn_c_try_run
1686 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1687 # --------------------------------------------
1688 # Tries to find the compile-time value of EXPR in a program that includes
1689 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1690 # computed
1691 ac_fn_c_compute_int ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if test "$cross_compiling" = yes; then
1695 # Depending upon the size, compute the lo and hi bounds.
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1700 main ()
1702 static int test_array [1 - 2 * !(($2) >= 0)];
1703 test_array [0] = 0;
1704 return test_array [0];
1707 return 0;
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 ac_lo=0 ac_mid=0
1712 while :; do
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1717 main ()
1719 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1720 test_array [0] = 0;
1721 return test_array [0];
1724 return 0;
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_hi=$ac_mid; break
1729 else
1730 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1731 if test $ac_lo -le $ac_mid; then
1732 ac_lo= ac_hi=
1733 break
1735 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 done
1739 else
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1744 main ()
1746 static int test_array [1 - 2 * !(($2) < 0)];
1747 test_array [0] = 0;
1748 return test_array [0];
1751 return 0;
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"; then :
1755 ac_hi=-1 ac_mid=-1
1756 while :; do
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1761 main ()
1763 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1764 test_array [0] = 0;
1765 return test_array [0];
1768 return 0;
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_lo=$ac_mid; break
1773 else
1774 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1775 if test $ac_mid -le $ac_hi; then
1776 ac_lo= ac_hi=
1777 break
1779 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 done
1783 else
1784 ac_lo= ac_hi=
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 # Binary search between lo and hi bounds.
1790 while test "x$ac_lo" != "x$ac_hi"; do
1791 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1796 main ()
1798 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1799 test_array [0] = 0;
1800 return test_array [0];
1803 return 0;
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"; then :
1807 ac_hi=$ac_mid
1808 else
1809 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 done
1813 case $ac_lo in #((
1814 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1815 '') ac_retval=1 ;;
1816 esac
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1821 static long int longval () { return $2; }
1822 static unsigned long int ulongval () { return $2; }
1823 #include <stdio.h>
1824 #include <stdlib.h>
1826 main ()
1829 FILE *f = fopen ("conftest.val", "w");
1830 if (! f)
1831 return 1;
1832 if (($2) < 0)
1834 long int i = longval ();
1835 if (i != ($2))
1836 return 1;
1837 fprintf (f, "%ld", i);
1839 else
1841 unsigned long int i = ulongval ();
1842 if (i != ($2))
1843 return 1;
1844 fprintf (f, "%lu", i);
1846 /* Do not output a trailing newline, as this causes \r\n confusion
1847 on some platforms. */
1848 return ferror (f) || fclose (f) != 0;
1851 return 0;
1853 _ACEOF
1854 if ac_fn_c_try_run "$LINENO"; then :
1855 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1856 else
1857 ac_retval=1
1859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1860 conftest.$ac_objext conftest.beam conftest.$ac_ext
1861 rm -f conftest.val
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_c_compute_int
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_cpp ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 ac_status=$?
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } > conftest.i && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=1
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_cpp
1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists and can be compiled using the include files in
1909 # INCLUDES, setting the cache variable VAR accordingly.
1910 ac_fn_c_check_header_compile ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_header_compile
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1947 else
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1959 #ifdef __STDC__
1960 # include <limits.h>
1961 #else
1962 # include <assert.h>
1963 #endif
1965 #undef $2
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1970 #ifdef __cplusplus
1971 extern "C"
1972 #endif
1973 char $2 ();
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1978 choke me
1979 #endif
1982 main ()
1984 return $2 ();
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_link "$LINENO"; then :
1990 eval "$3=yes"
1991 else
1992 eval "$3=no"
1994 rm -f core conftest.err conftest.$ac_objext \
1995 conftest$ac_exeext conftest.$ac_ext
1997 eval ac_res=\$$3
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_func
2004 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007 # the include files in INCLUDES and setting the cache variable VAR
2008 # accordingly.
2009 ac_fn_c_check_header_mongrel ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if eval \${$3+:} false; then :
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 else
2022 # Is the header compilable?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024 $as_echo_n "checking $2 usability... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2028 #include <$2>
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_header_compiler=yes
2032 else
2033 ac_header_compiler=no
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037 $as_echo "$ac_header_compiler" >&6; }
2039 # Is the header present?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041 $as_echo_n "checking $2 presence... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_cpp "$LINENO"; then :
2047 ac_header_preproc=yes
2048 else
2049 ac_header_preproc=no
2051 rm -f conftest.err conftest.i conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053 $as_echo "$ac_header_preproc" >&6; }
2055 # So? What about this header?
2056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2057 yes:no: )
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 no:yes:* )
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2067 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2071 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 esac
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \${$3+:} false; then :
2079 $as_echo_n "(cached) " >&6
2080 else
2081 eval "$3=\$ac_header_compiler"
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 } # ac_fn_c_check_header_mongrel
2090 cat >config.log <<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2094 It was created by $as_me, which was
2095 generated by GNU Autoconf 2.69. Invocation command line was
2097 $ $0 $@
2099 _ACEOF
2100 exec 5>>config.log
2102 cat <<_ASUNAME
2103 ## --------- ##
2104 ## Platform. ##
2105 ## --------- ##
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124 _ASUNAME
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 $as_echo "PATH: $as_dir"
2132 done
2133 IFS=$as_save_IFS
2135 } >&5
2137 cat >&5 <<_ACEOF
2140 ## ----------- ##
2141 ## Core tests. ##
2142 ## ----------- ##
2144 _ACEOF
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2152 ac_configure_args=
2153 ac_configure_args0=
2154 ac_configure_args1=
2155 ac_must_keep_next=false
2156 for ac_pass in 1 2
2158 for ac_arg
2160 case $ac_arg in
2161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163 | -silent | --silent | --silen | --sile | --sil)
2164 continue ;;
2165 *\'*)
2166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 esac
2168 case $ac_pass in
2169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2171 as_fn_append ac_configure_args1 " '$ac_arg'"
2172 if test $ac_must_keep_next = true; then
2173 ac_must_keep_next=false # Got value, back to normal.
2174 else
2175 case $ac_arg in
2176 *=* | --config-cache | -C | -disable-* | --disable-* \
2177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179 | -with-* | --with-* | -without-* | --without-* | --x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 esac
2184 -* ) ac_must_keep_next=true ;;
2185 esac
2187 as_fn_append ac_configure_args " '$ac_arg'"
2189 esac
2190 done
2191 done
2192 { ac_configure_args0=; unset ac_configure_args0;}
2193 { ac_configure_args1=; unset ac_configure_args1;}
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2203 echo
2205 $as_echo "## ---------------- ##
2206 ## Cache variables. ##
2207 ## ---------------- ##"
2208 echo
2209 # The following way of writing the cache mishandles newlines in values,
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2213 case $ac_val in #(
2214 *${as_nl}*)
2215 case $ac_var in #(
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2218 esac
2219 case $ac_var in #(
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2223 esac ;;
2224 esac
2225 done
2226 (set) 2>&1 |
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2229 sed -n \
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2232 ;; #(
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2236 esac |
2237 sort
2239 echo
2241 $as_echo "## ----------------- ##
2242 ## Output variables. ##
2243 ## ----------------- ##"
2244 echo
2245 for ac_var in $ac_subst_vars
2247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
2252 done | sort
2253 echo
2255 if test -n "$ac_subst_files"; then
2256 $as_echo "## ------------------- ##
2257 ## File substitutions. ##
2258 ## ------------------- ##"
2259 echo
2260 for ac_var in $ac_subst_files
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2271 if test -s confdefs.h; then
2272 $as_echo "## ----------- ##
2273 ## confdefs.h. ##
2274 ## ----------- ##"
2275 echo
2276 cat confdefs.h
2277 echo
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2282 } >&5
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2285 exit $exit_status
2287 for ac_signal in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2289 done
2290 ac_signal=0
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest* confdefs.h
2295 $as_echo "/* confdefs.h */" > confdefs.h
2297 # Predefined preprocessor variables.
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2301 _ACEOF
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2305 _ACEOF
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2309 _ACEOF
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2313 _ACEOF
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2321 _ACEOF
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2326 ac_site_file1=NONE
2327 ac_site_file2=NONE
2328 if test -n "$CONFIG_SITE"; then
2329 # We do not want a PATH search for config.site.
2330 case $CONFIG_SITE in #((
2331 -*) ac_site_file1=./$CONFIG_SITE;;
2332 */*) ac_site_file1=$CONFIG_SITE;;
2333 *) ac_site_file1=./$CONFIG_SITE;;
2334 esac
2335 elif test "x$prefix" != xNONE; then
2336 ac_site_file1=$prefix/share/config.site
2337 ac_site_file2=$prefix/etc/config.site
2338 else
2339 ac_site_file1=$ac_default_prefix/share/config.site
2340 ac_site_file2=$ac_default_prefix/etc/config.site
2342 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2344 test "x$ac_site_file" = xNONE && continue
2345 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2349 . "$ac_site_file" \
2350 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See \`config.log' for more details" "$LINENO" 5; }
2355 done
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 $as_echo "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2368 else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 $as_echo "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2374 # Check that the precious variables saved in the cache have kept the same
2375 # value.
2376 ac_cache_corrupted=false
2377 for ac_var in $ac_precious_vars; do
2378 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2379 eval ac_new_set=\$ac_env_${ac_var}_set
2380 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2381 eval ac_new_val=\$ac_env_${ac_var}_value
2382 case $ac_old_set,$ac_new_set in
2383 set,)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,set)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,);;
2393 if test "x$ac_old_val" != "x$ac_new_val"; then
2394 # differences in whitespace do not lead to failure.
2395 ac_old_val_w=`echo x $ac_old_val`
2396 ac_new_val_w=`echo x $ac_new_val`
2397 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 ac_cache_corrupted=:
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404 eval $ac_var=\$ac_old_val
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2407 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2409 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2410 fi;;
2411 esac
2412 # Pass precious variables to config.status.
2413 if test "$ac_new_set" = set; then
2414 case $ac_new_val in
2415 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 *) ac_arg=$ac_var=$ac_new_val ;;
2417 esac
2418 case " $ac_configure_args " in
2419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2420 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2421 esac
2423 done
2424 if $ac_cache_corrupted; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431 ## -------------------- ##
2432 ## Main body of script. ##
2433 ## -------------------- ##
2435 ac_ext=c
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445 ac_aux_dir=
2446 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2447 if test -f "$ac_dir/install-sh"; then
2448 ac_aux_dir=$ac_dir
2449 ac_install_sh="$ac_aux_dir/install-sh -c"
2450 break
2451 elif test -f "$ac_dir/install.sh"; then
2452 ac_aux_dir=$ac_dir
2453 ac_install_sh="$ac_aux_dir/install.sh -c"
2454 break
2455 elif test -f "$ac_dir/shtool"; then
2456 ac_aux_dir=$ac_dir
2457 ac_install_sh="$ac_aux_dir/shtool install -c"
2458 break
2460 done
2461 if test -z "$ac_aux_dir"; then
2462 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2465 # These three variables are undocumented and unsupported,
2466 # and are intended to be withdrawn in a future Autoconf release.
2467 # They can cause serious problems if a builder's source tree is in a directory
2468 # whose full name contains unusual characters.
2469 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2470 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2471 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2474 # Make sure we can run config.sub.
2475 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2476 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2479 $as_echo_n "checking build system type... " >&6; }
2480 if ${ac_cv_build+:} false; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 ac_build_alias=$build_alias
2484 test "x$ac_build_alias" = x &&
2485 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2486 test "x$ac_build_alias" = x &&
2487 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2488 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2489 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2493 $as_echo "$ac_cv_build" >&6; }
2494 case $ac_cv_build in
2495 *-*-*) ;;
2496 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2497 esac
2498 build=$ac_cv_build
2499 ac_save_IFS=$IFS; IFS='-'
2500 set x $ac_cv_build
2501 shift
2502 build_cpu=$1
2503 build_vendor=$2
2504 shift; shift
2505 # Remember, the first character of IFS is used to create $*,
2506 # except with old shells:
2507 build_os=$*
2508 IFS=$ac_save_IFS
2509 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2513 $as_echo_n "checking host system type... " >&6; }
2514 if ${ac_cv_host+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test "x$host_alias" = x; then
2518 ac_cv_host=$ac_cv_build
2519 else
2520 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2521 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2526 $as_echo "$ac_cv_host" >&6; }
2527 case $ac_cv_host in
2528 *-*-*) ;;
2529 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2530 esac
2531 host=$ac_cv_host
2532 ac_save_IFS=$IFS; IFS='-'
2533 set x $ac_cv_host
2534 shift
2535 host_cpu=$1
2536 host_vendor=$2
2537 shift; shift
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2540 host_os=$*
2541 IFS=$ac_save_IFS
2542 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2546 $as_echo_n "checking target system type... " >&6; }
2547 if ${ac_cv_target+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 if test "x$target_alias" = x; then
2551 ac_cv_target=$ac_cv_host
2552 else
2553 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2554 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2559 $as_echo "$ac_cv_target" >&6; }
2560 case $ac_cv_target in
2561 *-*-*) ;;
2562 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2563 esac
2564 target=$ac_cv_target
2565 ac_save_IFS=$IFS; IFS='-'
2566 set x $ac_cv_target
2567 shift
2568 target_cpu=$1
2569 target_vendor=$2
2570 shift; shift
2571 # Remember, the first character of IFS is used to create $*,
2572 # except with old shells:
2573 target_os=$*
2574 IFS=$ac_save_IFS
2575 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2578 # The aliases save the names the user supplied, while $host etc.
2579 # will get canonicalized.
2580 test -n "$target_alias" &&
2581 test "$program_prefix$program_suffix$program_transform_name" = \
2582 NONENONEs,x,x, &&
2583 program_prefix=${target_alias}-
2586 PACKAGE=xcircuit
2588 VERSION=`cat ./VERSION | cut -d. -f1-2`
2589 am__api_version='1.14'
2591 # Find a good install program. We prefer a C program (faster),
2592 # so one script is as good as another. But avoid the broken or
2593 # incompatible versions:
2594 # SysV /etc/install, /usr/sbin/install
2595 # SunOS /usr/etc/install
2596 # IRIX /sbin/install
2597 # AIX /bin/install
2598 # AmigaOS /C/install, which installs bootblocks on floppy discs
2599 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2600 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2601 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2602 # OS/2's system install, which has a completely different semantic
2603 # ./install, which can be erroneously created by make from ./install.sh.
2604 # Reject install programs that cannot install multiple files.
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2606 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2607 if test -z "$INSTALL"; then
2608 if ${ac_cv_path_install+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 # Account for people who put trailing slashes in PATH elements.
2617 case $as_dir/ in #((
2618 ./ | .// | /[cC]/* | \
2619 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2620 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2621 /usr/ucb/* ) ;;
2623 # OSF1 and SCO ODT 3.0 have their own names for install.
2624 # Don't use installbsd from OSF since it installs stuff as root
2625 # by default.
2626 for ac_prog in ginstall scoinst install; do
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2629 if test $ac_prog = install &&
2630 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631 # AIX install. It has an incompatible calling convention.
2633 elif test $ac_prog = install &&
2634 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635 # program-specific install script used by HP pwplus--don't use.
2637 else
2638 rm -rf conftest.one conftest.two conftest.dir
2639 echo one > conftest.one
2640 echo two > conftest.two
2641 mkdir conftest.dir
2642 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2643 test -s conftest.one && test -s conftest.two &&
2644 test -s conftest.dir/conftest.one &&
2645 test -s conftest.dir/conftest.two
2646 then
2647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2648 break 3
2652 done
2653 done
2655 esac
2657 done
2658 IFS=$as_save_IFS
2660 rm -rf conftest.one conftest.two conftest.dir
2663 if test "${ac_cv_path_install+set}" = set; then
2664 INSTALL=$ac_cv_path_install
2665 else
2666 # As a last resort, use the slow shell script. Don't cache a
2667 # value for INSTALL within a source directory, because that will
2668 # break other packages using the cache if that directory is
2669 # removed, or if the value is a relative name.
2670 INSTALL=$ac_install_sh
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2674 $as_echo "$INSTALL" >&6; }
2676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2677 # It thinks the first close brace ends the variable substitution.
2678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2682 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2685 $as_echo_n "checking whether build environment is sane... " >&6; }
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name. Accept space and tab only in the latter.
2688 am_lf='
2690 case `pwd` in
2691 *[\\\"\#\$\&\'\`$am_lf]*)
2692 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2693 esac
2694 case $srcdir in
2695 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2696 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2697 esac
2699 # Do 'set' in a subshell so we don't clobber the current shell's
2700 # arguments. Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2703 # directory).
2704 if (
2705 am_has_slept=no
2706 for am_try in 1 2; do
2707 echo "timestamp, slept: $am_has_slept" > conftest.file
2708 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2709 if test "$*" = "X"; then
2710 # -L didn't work.
2711 set X `ls -t "$srcdir/configure" conftest.file`
2713 if test "$*" != "X $srcdir/configure conftest.file" \
2714 && test "$*" != "X conftest.file $srcdir/configure"; then
2716 # If neither matched, then we have a broken ls. This can happen
2717 # if, for instance, CONFIG_SHELL is bash and it inherits a
2718 # broken ls alias from the environment. This has actually
2719 # happened. Such a system could not be considered "sane".
2720 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2721 alias in your environment" "$LINENO" 5
2723 if test "$2" = conftest.file || test $am_try -eq 2; then
2724 break
2726 # Just in case.
2727 sleep 1
2728 am_has_slept=yes
2729 done
2730 test "$2" = conftest.file
2732 then
2733 # Ok.
2735 else
2736 as_fn_error $? "newly created file is older than distributed files!
2737 Check your system clock" "$LINENO" 5
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740 $as_echo "yes" >&6; }
2741 # If we didn't sleep, we still need to ensure time stamps of config.status and
2742 # generated files are strictly newer.
2743 am_sleep_pid=
2744 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2745 ( sleep 1 ) &
2746 am_sleep_pid=$!
2749 rm -f conftest.file
2751 test "$program_prefix" != NONE &&
2752 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2753 # Use a double $ so make ignores it.
2754 test "$program_suffix" != NONE &&
2755 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2756 # Double any \ or $.
2757 # By default was `s,x,x', remove it if useless.
2758 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2759 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2761 # expand $ac_aux_dir to an absolute path
2762 am_aux_dir=`cd $ac_aux_dir && pwd`
2764 if test x"${MISSING+set}" != xset; then
2765 case $am_aux_dir in
2766 *\ * | *\ *)
2767 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2769 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2770 esac
2772 # Use eval to expand $SHELL
2773 if eval "$MISSING --is-lightweight"; then
2774 am_missing_run="$MISSING "
2775 else
2776 am_missing_run=
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2778 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2781 if test x"${install_sh}" != xset; then
2782 case $am_aux_dir in
2783 *\ * | *\ *)
2784 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2786 install_sh="\${SHELL} $am_aux_dir/install-sh"
2787 esac
2790 # Installed binaries are usually stripped using 'strip' when the user
2791 # run "make install-strip". However 'strip' might not be the right
2792 # tool to use in cross-compilation environments, therefore Automake
2793 # will honor the 'STRIP' environment variable to overrule this program.
2794 if test "$cross_compiling" != no; then
2795 if test -n "$ac_tool_prefix"; then
2796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2797 set dummy ${ac_tool_prefix}strip; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_STRIP+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if test -n "$STRIP"; then
2804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 break 2
2817 done
2818 done
2819 IFS=$as_save_IFS
2823 STRIP=$ac_cv_prog_STRIP
2824 if test -n "$STRIP"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2826 $as_echo "$STRIP" >&6; }
2827 else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2834 if test -z "$ac_cv_prog_STRIP"; then
2835 ac_ct_STRIP=$STRIP
2836 # Extract the first word of "strip", so it can be a program name with args.
2837 set dummy strip; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$ac_ct_STRIP"; then
2844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_ac_ct_STRIP="strip"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2857 done
2858 done
2859 IFS=$as_save_IFS
2863 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2864 if test -n "$ac_ct_STRIP"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2866 $as_echo "$ac_ct_STRIP" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2872 if test "x$ac_ct_STRIP" = x; then
2873 STRIP=":"
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned=yes ;;
2880 esac
2881 STRIP=$ac_ct_STRIP
2883 else
2884 STRIP="$ac_cv_prog_STRIP"
2888 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2891 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2892 if test -z "$MKDIR_P"; then
2893 if ${ac_cv_path_mkdir+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 for ac_prog in mkdir gmkdir; do
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2904 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2905 'mkdir (GNU coreutils) '* | \
2906 'mkdir (coreutils) '* | \
2907 'mkdir (fileutils) '4.1*)
2908 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2909 break 3;;
2910 esac
2911 done
2912 done
2913 done
2914 IFS=$as_save_IFS
2918 test -d ./--version && rmdir ./--version
2919 if test "${ac_cv_path_mkdir+set}" = set; then
2920 MKDIR_P="$ac_cv_path_mkdir -p"
2921 else
2922 # As a last resort, use the slow shell script. Don't cache a
2923 # value for MKDIR_P within a source directory, because that will
2924 # break other packages using the cache if that directory is
2925 # removed, or if the value is a relative name.
2926 MKDIR_P="$ac_install_sh -d"
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2930 $as_echo "$MKDIR_P" >&6; }
2932 for ac_prog in gawk mawk nawk awk
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy $ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_AWK+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$AWK"; then
2942 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_AWK="$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 AWK=$ac_cv_prog_AWK
2962 if test -n "$AWK"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2964 $as_echo "$AWK" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2971 test -n "$AWK" && break
2972 done
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2976 set x ${MAKE-make}
2977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2978 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 cat >conftest.make <<\_ACEOF
2982 SHELL = /bin/sh
2983 all:
2984 @echo '@@@%%%=$(MAKE)=@@@%%%'
2985 _ACEOF
2986 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2988 *@@@%%%=?*=@@@%%%*)
2989 eval ac_cv_prog_make_${ac_make}_set=yes;;
2991 eval ac_cv_prog_make_${ac_make}_set=no;;
2992 esac
2993 rm -f conftest.make
2995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2997 $as_echo "yes" >&6; }
2998 SET_MAKE=
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 SET_MAKE="MAKE=${MAKE-make}"
3005 rm -rf .tst 2>/dev/null
3006 mkdir .tst 2>/dev/null
3007 if test -d .tst; then
3008 am__leading_dot=.
3009 else
3010 am__leading_dot=_
3012 rmdir .tst 2>/dev/null
3014 # Check whether --enable-silent-rules was given.
3015 if test "${enable_silent_rules+set}" = set; then :
3016 enableval=$enable_silent_rules;
3019 case $enable_silent_rules in # (((
3020 yes) AM_DEFAULT_VERBOSITY=0;;
3021 no) AM_DEFAULT_VERBOSITY=1;;
3022 *) AM_DEFAULT_VERBOSITY=1;;
3023 esac
3024 am_make=${MAKE-make}
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3026 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3027 if ${am_cv_make_support_nested_variables+:} false; then :
3028 $as_echo_n "(cached) " >&6
3029 else
3030 if $as_echo 'TRUE=$(BAR$(V))
3031 BAR0=false
3032 BAR1=true
3034 am__doit:
3035 @$(TRUE)
3036 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3037 am_cv_make_support_nested_variables=yes
3038 else
3039 am_cv_make_support_nested_variables=no
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3043 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3044 if test $am_cv_make_support_nested_variables = yes; then
3045 AM_V='$(V)'
3046 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3047 else
3048 AM_V=$AM_DEFAULT_VERBOSITY
3049 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3051 AM_BACKSLASH='\'
3053 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3054 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3055 # is not polluted with repeated "-I."
3056 am__isrc=' -I$(srcdir)'
3057 # test to see if srcdir already configured
3058 if test -f $srcdir/config.status; then
3059 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3063 # test whether we have cygpath
3064 if test -z "$CYGPATH_W"; then
3065 if (cygpath --version) >/dev/null 2>/dev/null; then
3066 CYGPATH_W='cygpath -w'
3067 else
3068 CYGPATH_W=echo
3073 # Define the identity of the package.
3075 PACKAGE=${PACKAGE}
3076 VERSION=${VERSION}
3079 cat >>confdefs.h <<_ACEOF
3080 #define PACKAGE "$PACKAGE"
3081 _ACEOF
3084 cat >>confdefs.h <<_ACEOF
3085 #define VERSION "$VERSION"
3086 _ACEOF
3088 # Some tools Automake needs.
3090 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3093 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3096 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3099 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3102 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3104 # For better backward compatibility. To be removed once Automake 1.9.x
3105 # dies out for good. For more background, see:
3106 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3107 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3108 mkdir_p='$(MKDIR_P)'
3110 # We need awk for the "check" target. The system "awk" is bad on
3111 # some platforms.
3112 # Always define AMTAR for backward compatibility. Yes, it's still used
3113 # in the wild :-( We should find a proper way to deprecate it ...
3114 AMTAR='$${TAR-tar}'
3117 # We'll loop over all known methods to create a tar archive until one works.
3118 _am_tools='gnutar pax cpio none'
3120 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3127 # POSIX will say in a future version that running "rm -f" with no argument
3128 # is OK; and we want to be able to make that assumption in our Makefile
3129 # recipes. So use an aggressive probe to check that the usage we want is
3130 # actually supported "in the wild" to an acceptable degree.
3131 # See automake bug#10828.
3132 # To make any issue more visible, cause the running configure to be aborted
3133 # by default if the 'rm' program in use doesn't match our expectations; the
3134 # user can still override this though.
3135 if rm -f && rm -fr && rm -rf; then : OK; else
3136 cat >&2 <<'END'
3137 Oops!
3139 Your 'rm' program seems unable to run without file operands specified
3140 on the command line, even when the '-f' option is present. This is contrary
3141 to the behaviour of most rm programs out there, and not conforming with
3142 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3144 Please tell bug-automake@gnu.org about your system, including the value
3145 of your $PATH and any error possibly output before this message. This
3146 can help us improve future automake versions.
3149 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3150 echo 'Configuration will proceed anyway, since you have set the' >&2
3151 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3152 echo >&2
3153 else
3154 cat >&2 <<'END'
3155 Aborting the configuration process, to ensure you take notice of the issue.
3157 You can download and install GNU coreutils to get an 'rm' implementation
3158 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3160 If you want to complete the configuration process using your problematic
3161 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3162 to "yes", and re-run configure.
3165 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3169 SUBDIRS=
3170 SUBLIB=
3171 STDLIBS=
3172 XCIRCUIT_TARGET=
3173 ALL_TARGET="undefined-target"
3174 INSTALL_TARGET="undefined-install-target"
3175 REVISION=`cat ./VERSION | cut -d. -f3`
3176 INTERPRETER=NOINTERP
3177 HAVE_LGF=NOFORMATS
3179 LIB_SPECS=""
3180 WISH_EXE=""
3181 SHLIB_CFLAGS=""
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3189 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3190 set x ${MAKE-make}
3191 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3192 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 cat >conftest.make <<\_ACEOF
3196 SHELL = /bin/sh
3197 all:
3198 @echo '@@@%%%=$(MAKE)=@@@%%%'
3199 _ACEOF
3200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3202 *@@@%%%=?*=@@@%%%*)
3203 eval ac_cv_prog_make_${ac_make}_set=yes;;
3205 eval ac_cv_prog_make_${ac_make}_set=no;;
3206 esac
3207 rm -f conftest.make
3209 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3211 $as_echo "yes" >&6; }
3212 SET_MAKE=
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 SET_MAKE="MAKE=${MAKE-make}"
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3264 if test -z "$ac_cv_prog_CC"; then
3265 ac_ct_CC=$CC
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267 set dummy gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_ac_ct_CC="gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3287 done
3288 done
3289 IFS=$as_save_IFS
3293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296 $as_echo "$ac_ct_CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3302 if test "x$ac_ct_CC" = x; then
3303 CC=""
3304 else
3305 case $cross_compiling:$ac_tool_warned in
3306 yes:)
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 CC=$ac_ct_CC
3313 else
3314 CC="$ac_cv_prog_CC"
3317 if test -z "$CC"; then
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}cc; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if ${ac_cv_prog_CC+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_CC="${ac_tool_prefix}cc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3342 IFS=$as_save_IFS
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3358 if test -z "$CC"; then
3359 # Extract the first word of "cc", so it can be a program name with args.
3360 set dummy cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 ac_prog_rejected=no
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378 ac_prog_rejected=yes
3379 continue
3381 ac_cv_prog_CC="cc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3389 if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy $ac_cv_prog_CC
3392 shift
3393 if test $# != 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3397 shift
3398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$CC"; then
3415 if test -n "$ac_tool_prefix"; then
3416 for ac_prog in cl.exe
3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3439 done
3440 done
3441 IFS=$as_save_IFS
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3455 test -n "$CC" && break
3456 done
3458 if test -z "$CC"; then
3459 ac_ct_CC=$CC
3460 for ac_prog in cl.exe
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463 set dummy $ac_prog; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_ac_ct_CC="$ac_prog"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3485 IFS=$as_save_IFS
3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3499 test -n "$ac_ct_CC" && break
3500 done
3502 if test "x$ac_ct_CC" = x; then
3503 CC=""
3504 else
3505 case $cross_compiling:$ac_tool_warned in
3506 yes:)
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned=yes ;;
3510 esac
3511 CC=$ac_ct_CC
3518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error $? "no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details" "$LINENO" 5; }
3523 # Provide some information about the compiler.
3524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3525 set X $ac_compile
3526 ac_compiler=$2
3527 for ac_option in --version -v -V -qversion; do
3528 { { ac_try="$ac_compiler $ac_option >&5"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3536 ac_status=$?
3537 if test -s conftest.err; then
3538 sed '10a\
3539 ... rest of stderr output deleted ...
3540 10q' conftest.err >conftest.er1
3541 cat conftest.er1 >&5
3543 rm -f conftest.er1 conftest.err
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3546 done
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3552 main ()
3556 return 0;
3558 _ACEOF
3559 ac_clean_files_save=$ac_clean_files
3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3561 # Try to create an executable without -o first, disregard a.out.
3562 # It will help us diagnose broken compilers, and finding out an intuition
3563 # of exeext.
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3565 $as_echo_n "checking whether the C compiler works... " >&6; }
3566 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568 # The possible output files:
3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571 ac_rmfiles=
3572 for ac_file in $ac_files
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3577 esac
3578 done
3579 rm -f $ac_rmfiles
3581 if { { ac_try="$ac_link_default"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link_default") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595 # so that the user can short-circuit this test for compilers unknown to
3596 # Autoconf.
3597 for ac_file in $ac_files ''
3599 test -f "$ac_file" || continue
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603 [ab].out )
3604 # We found the default executable, but exeext='' is most
3605 # certainly right.
3606 break;;
3607 *.* )
3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3609 then :; else
3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3616 # actually working.
3617 break;;
3619 break;;
3620 esac
3621 done
3622 test "$ac_cv_exeext" = no && ac_cv_exeext=
3624 else
3625 ac_file=''
3627 if test -z "$ac_file"; then :
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error 77 "C compiler cannot create executables
3636 See \`config.log' for more details" "$LINENO" 5; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639 $as_echo "yes" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3642 $as_echo_n "checking for C compiler default output file name... " >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3644 $as_echo "$ac_file" >&6; }
3645 ac_exeext=$ac_cv_exeext
3647 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3648 ac_clean_files=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650 $as_echo_n "checking for suffix of executables... " >&6; }
3651 if { { ac_try="$ac_link"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; then :
3662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3664 # work properly (i.e., refer to `conftest.exe'), while it won't with
3665 # `rm'.
3666 for ac_file in conftest.exe conftest conftest.*; do
3667 test -f "$ac_file" || continue
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 break;;
3672 * ) break;;
3673 esac
3674 done
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3679 See \`config.log' for more details" "$LINENO" 5; }
3681 rm -f conftest conftest$ac_cv_exeext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683 $as_echo "$ac_cv_exeext" >&6; }
3685 rm -f conftest.$ac_ext
3686 EXEEXT=$ac_cv_exeext
3687 ac_exeext=$EXEEXT
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690 #include <stdio.h>
3692 main ()
3694 FILE *f = fopen ("conftest.out", "w");
3695 return ferror (f) || fclose (f) != 0;
3698 return 0;
3700 _ACEOF
3701 ac_clean_files="$ac_clean_files conftest.out"
3702 # Check that the compiler produces executables we can run. If not, either
3703 # the compiler is broken, or we cross compile.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3705 $as_echo_n "checking whether we are cross compiling... " >&6; }
3706 if test "$cross_compiling" != yes; then
3707 { { ac_try="$ac_link"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_link") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3718 if { ac_try='./conftest$ac_cv_exeext'
3719 { { case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_try") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; }; then
3729 cross_compiling=no
3730 else
3731 if test "$cross_compiling" = maybe; then
3732 cross_compiling=yes
3733 else
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $? "cannot run C compiled programs.
3737 If you meant to cross compile, use \`--host'.
3738 See \`config.log' for more details" "$LINENO" 5; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3743 $as_echo "$cross_compiling" >&6; }
3745 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3746 ac_clean_files=$ac_clean_files_save
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3748 $as_echo_n "checking for suffix of object files... " >&6; }
3749 if ${ac_cv_objext+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3756 main ()
3760 return 0;
3762 _ACEOF
3763 rm -f conftest.o conftest.obj
3764 if { { ac_try="$ac_compile"
3765 case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768 esac
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 $as_echo "$ac_try_echo"; } >&5
3771 (eval "$ac_compile") 2>&5
3772 ac_status=$?
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }; then :
3775 for ac_file in conftest.o conftest.obj conftest.*; do
3776 test -f "$ac_file" || continue;
3777 case $ac_file in
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3780 break;;
3781 esac
3782 done
3783 else
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error $? "cannot compute suffix of object files: cannot compile
3790 See \`config.log' for more details" "$LINENO" 5; }
3792 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3795 $as_echo "$ac_cv_objext" >&6; }
3796 OBJEXT=$ac_cv_objext
3797 ac_objext=$OBJEXT
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3799 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3800 if ${ac_cv_c_compiler_gnu+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3807 main ()
3809 #ifndef __GNUC__
3810 choke me
3811 #endif
3814 return 0;
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 ac_compiler_gnu=yes
3819 else
3820 ac_compiler_gnu=no
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3827 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3828 if test $ac_compiler_gnu = yes; then
3829 GCC=yes
3830 else
3831 GCC=
3833 ac_test_CFLAGS=${CFLAGS+set}
3834 ac_save_CFLAGS=$CFLAGS
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3836 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3837 if ${ac_cv_prog_cc_g+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 ac_save_c_werror_flag=$ac_c_werror_flag
3841 ac_c_werror_flag=yes
3842 ac_cv_prog_cc_g=no
3843 CFLAGS="-g"
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3848 main ()
3852 return 0;
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_prog_cc_g=yes
3857 else
3858 CFLAGS=""
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3863 main ()
3867 return 0;
3869 _ACEOF
3870 if ac_fn_c_try_compile "$LINENO"; then :
3872 else
3873 ac_c_werror_flag=$ac_save_c_werror_flag
3874 CFLAGS="-g"
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_prog_cc_g=yes
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_c_werror_flag=$ac_save_c_werror_flag
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3897 $as_echo "$ac_cv_prog_cc_g" >&6; }
3898 if test "$ac_test_CFLAGS" = set; then
3899 CFLAGS=$ac_save_CFLAGS
3900 elif test $ac_cv_prog_cc_g = yes; then
3901 if test "$GCC" = yes; then
3902 CFLAGS="-g -O2"
3903 else
3904 CFLAGS="-g"
3906 else
3907 if test "$GCC" = yes; then
3908 CFLAGS="-O2"
3909 else
3910 CFLAGS=
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3914 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3915 if ${ac_cv_prog_cc_c89+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 ac_cv_prog_cc_c89=no
3919 ac_save_CC=$CC
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922 #include <stdarg.h>
3923 #include <stdio.h>
3924 struct stat;
3925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3926 struct buf { int x; };
3927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3928 static char *e (p, i)
3929 char **p;
3930 int i;
3932 return p[i];
3934 static char *f (char * (*g) (char **, int), char **p, ...)
3936 char *s;
3937 va_list v;
3938 va_start (v,p);
3939 s = g (p, va_arg (v,int));
3940 va_end (v);
3941 return s;
3944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3945 function prototypes and stuff, but not '\xHH' hex character constants.
3946 These don't provoke an error unfortunately, instead are silently treated
3947 as 'x'. The following induces an error, until -std is added to get
3948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3949 array size at least. It's necessary to write '\x00'==0 to get something
3950 that's true only with -std. */
3951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3954 inside strings and character constants. */
3955 #define FOO(x) 'x'
3956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958 int test (int i, double x);
3959 struct s1 {int (*f) (int a);};
3960 struct s2 {int (*f) (double a);};
3961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3962 int argc;
3963 char **argv;
3965 main ()
3967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3969 return 0;
3971 _ACEOF
3972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975 CC="$ac_save_CC $ac_arg"
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_prog_cc_c89=$ac_arg
3979 rm -f core conftest.err conftest.$ac_objext
3980 test "x$ac_cv_prog_cc_c89" != "xno" && break
3981 done
3982 rm -f conftest.$ac_ext
3983 CC=$ac_save_CC
3986 # AC_CACHE_VAL
3987 case "x$ac_cv_prog_cc_c89" in
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990 $as_echo "none needed" >&6; } ;;
3991 xno)
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3993 $as_echo "unsupported" >&6; } ;;
3995 CC="$CC $ac_cv_prog_cc_c89"
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3998 esac
3999 if test "x$ac_cv_prog_cc_c89" != xno; then :
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4015 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4016 if ${am_cv_prog_cc_c_o+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4023 main ()
4027 return 0;
4029 _ACEOF
4030 # Make sure it works both with $CC and with simple cc.
4031 # Following AC_PROG_CC_C_O, we do the test twice because some
4032 # compilers refuse to overwrite an existing .o file with -o,
4033 # though they will create one.
4034 am_cv_prog_cc_c_o=yes
4035 for am_i in 1 2; do
4036 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4037 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } \
4041 && test -f conftest2.$ac_objext; then
4042 : OK
4043 else
4044 am_cv_prog_cc_c_o=no
4045 break
4047 done
4048 rm -f core conftest*
4049 unset am_i
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4052 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4053 if test "$am_cv_prog_cc_c_o" != yes; then
4054 # Losing compiler, so override with the script.
4055 # FIXME: It is wrong to rewrite CC.
4056 # But if we don't then we get into trouble of one sort or another.
4057 # A longer-term fix would be to have automake use am__CC in this case,
4058 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4059 CC="$am_aux_dir/compile $CC"
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067 DEPDIR="${am__leading_dot}deps"
4069 ac_config_commands="$ac_config_commands depfiles"
4072 am_make=${MAKE-make}
4073 cat > confinc << 'END'
4074 am__doit:
4075 @echo this is the am__doit target
4076 .PHONY: am__doit
4078 # If we don't find an include directive, just comment out the code.
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4080 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4081 am__include="#"
4082 am__quote=
4083 _am_result=none
4084 # First try GNU make style include.
4085 echo "include confinc" > confmf
4086 # Ignore all kinds of additional output from 'make'.
4087 case `$am_make -s -f confmf 2> /dev/null` in #(
4088 *the\ am__doit\ target*)
4089 am__include=include
4090 am__quote=
4091 _am_result=GNU
4093 esac
4094 # Now try BSD make style include.
4095 if test "$am__include" = "#"; then
4096 echo '.include "confinc"' > confmf
4097 case `$am_make -s -f confmf 2> /dev/null` in #(
4098 *the\ am__doit\ target*)
4099 am__include=.include
4100 am__quote="\""
4101 _am_result=BSD
4103 esac
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4108 $as_echo "$_am_result" >&6; }
4109 rm -f confinc confmf
4111 # Check whether --enable-dependency-tracking was given.
4112 if test "${enable_dependency_tracking+set}" = set; then :
4113 enableval=$enable_dependency_tracking;
4116 if test "x$enable_dependency_tracking" != xno; then
4117 am_depcomp="$ac_aux_dir/depcomp"
4118 AMDEPBACKSLASH='\'
4119 am__nodep='_no'
4121 if test "x$enable_dependency_tracking" != xno; then
4122 AMDEP_TRUE=
4123 AMDEP_FALSE='#'
4124 else
4125 AMDEP_TRUE='#'
4126 AMDEP_FALSE=
4131 depcc="$CC" am_compiler_list=
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4134 $as_echo_n "checking dependency style of $depcc... " >&6; }
4135 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4139 # We make a subdir and do the tests there. Otherwise we can end up
4140 # making bogus files that we don't know about and never remove. For
4141 # instance it was reported that on HP-UX the gcc test will end up
4142 # making a dummy file named 'D' -- because '-MD' means "put the output
4143 # in D".
4144 rm -rf conftest.dir
4145 mkdir conftest.dir
4146 # Copy depcomp to subdir because otherwise we won't find it if we're
4147 # using a relative directory.
4148 cp "$am_depcomp" conftest.dir
4149 cd conftest.dir
4150 # We will build objects and dependencies in a subdirectory because
4151 # it helps to detect inapplicable dependency modes. For instance
4152 # both Tru64's cc and ICC support -MD to output dependencies as a
4153 # side effect of compilation, but ICC will put the dependencies in
4154 # the current directory while Tru64 will put them in the object
4155 # directory.
4156 mkdir sub
4158 am_cv_CC_dependencies_compiler_type=none
4159 if test "$am_compiler_list" = ""; then
4160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4162 am__universal=false
4163 case " $depcc " in #(
4164 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4165 esac
4167 for depmode in $am_compiler_list; do
4168 # Setup a source with many dependencies, because some compilers
4169 # like to wrap large dependency lists on column 80 (with \), and
4170 # we should not choose a depcomp mode which is confused by this.
4172 # We need to recreate these files for each test, as the compiler may
4173 # overwrite some of them when testing with obscure command lines.
4174 # This happens at least with the AIX C compiler.
4175 : > sub/conftest.c
4176 for i in 1 2 3 4 5 6; do
4177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4178 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4179 # Solaris 10 /bin/sh.
4180 echo '/* dummy */' > sub/conftst$i.h
4181 done
4182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4184 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4185 # mode. It turns out that the SunPro C++ compiler does not properly
4186 # handle '-M -o', and we need to detect this. Also, some Intel
4187 # versions had trouble with output in subdirs.
4188 am__obj=sub/conftest.${OBJEXT-o}
4189 am__minus_obj="-o $am__obj"
4190 case $depmode in
4191 gcc)
4192 # This depmode causes a compiler race in universal mode.
4193 test "$am__universal" = false || continue
4195 nosideeffect)
4196 # After this tag, mechanisms are not by side-effect, so they'll
4197 # only be used when explicitly requested.
4198 if test "x$enable_dependency_tracking" = xyes; then
4199 continue
4200 else
4201 break
4204 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4205 # This compiler won't grok '-c -o', but also, the minuso test has
4206 # not run yet. These depmodes are late enough in the game, and
4207 # so weak that their functioning should not be impacted.
4208 am__obj=conftest.${OBJEXT-o}
4209 am__minus_obj=
4211 none) break ;;
4212 esac
4213 if depmode=$depmode \
4214 source=sub/conftest.c object=$am__obj \
4215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4216 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4217 >/dev/null 2>conftest.err &&
4218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4220 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4222 # icc doesn't choke on unknown options, it will just issue warnings
4223 # or remarks (even with -Werror). So we grep stderr for any message
4224 # that says an option was ignored or not supported.
4225 # When given -MP, icc 7.0 and 7.1 complain thusly:
4226 # icc: Command line warning: ignoring option '-M'; no argument required
4227 # The diagnosis changed in icc 8.0:
4228 # icc: Command line remark: option '-MP' not supported
4229 if (grep 'ignoring option' conftest.err ||
4230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4231 am_cv_CC_dependencies_compiler_type=$depmode
4232 break
4235 done
4237 cd ..
4238 rm -rf conftest.dir
4239 else
4240 am_cv_CC_dependencies_compiler_type=none
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4249 test "x$enable_dependency_tracking" != xno \
4250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4251 am__fastdepCC_TRUE=
4252 am__fastdepCC_FALSE='#'
4253 else
4254 am__fastdepCC_TRUE='#'
4255 am__fastdepCC_FALSE=
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4261 $as_echo_n "checking for library containing strerror... " >&6; }
4262 if ${ac_cv_search_strerror+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 ac_func_search_save_LIBS=$LIBS
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4269 /* Override any GCC internal prototype to avoid an error.
4270 Use char because int might match the return type of a GCC
4271 builtin and then its argument prototype would still apply. */
4272 #ifdef __cplusplus
4273 extern "C"
4274 #endif
4275 char strerror ();
4277 main ()
4279 return strerror ();
4281 return 0;
4283 _ACEOF
4284 for ac_lib in '' cposix; do
4285 if test -z "$ac_lib"; then
4286 ac_res="none required"
4287 else
4288 ac_res=-l$ac_lib
4289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4291 if ac_fn_c_try_link "$LINENO"; then :
4292 ac_cv_search_strerror=$ac_res
4294 rm -f core conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext
4296 if ${ac_cv_search_strerror+:} false; then :
4297 break
4299 done
4300 if ${ac_cv_search_strerror+:} false; then :
4302 else
4303 ac_cv_search_strerror=no
4305 rm conftest.$ac_ext
4306 LIBS=$ac_func_search_save_LIBS
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4309 $as_echo "$ac_cv_search_strerror" >&6; }
4310 ac_res=$ac_cv_search_strerror
4311 if test "$ac_res" != no; then :
4312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4316 if test "x$U" != "x"; then
4317 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_RANLIB+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$RANLIB"; then
4329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4344 IFS=$as_save_IFS
4348 RANLIB=$ac_cv_prog_RANLIB
4349 if test -n "$RANLIB"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4351 $as_echo "$RANLIB" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4359 if test -z "$ac_cv_prog_RANLIB"; then
4360 ac_ct_RANLIB=$RANLIB
4361 # Extract the first word of "ranlib", so it can be a program name with args.
4362 set dummy ranlib; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -n "$ac_ct_RANLIB"; then
4369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_ac_ct_RANLIB="ranlib"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4382 done
4383 done
4384 IFS=$as_save_IFS
4388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4389 if test -n "$ac_ct_RANLIB"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4391 $as_echo "$ac_ct_RANLIB" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4397 if test "x$ac_ct_RANLIB" = x; then
4398 RANLIB=":"
4399 else
4400 case $cross_compiling:$ac_tool_warned in
4401 yes:)
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4404 ac_tool_warned=yes ;;
4405 esac
4406 RANLIB=$ac_ct_RANLIB
4408 else
4409 RANLIB="$ac_cv_prog_RANLIB"
4413 for ac_prog in gm4 gnum4 m4
4415 # Extract the first word of "$ac_prog", so it can be a program name with args.
4416 set dummy $ac_prog; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if ${ac_cv_path_M4+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 case $M4 in
4423 [\\/]* | ?:[\\/]*)
4424 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4440 IFS=$as_save_IFS
4443 esac
4445 M4=$ac_cv_path_M4
4446 if test -n "$M4"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4448 $as_echo "$M4" >&6; }
4449 else
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4455 test -n "$M4" && break
4456 done
4459 case "$target_os" in
4460 *cygwin*)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4464 $as_echo_n "checking for sin in -lm... " >&6; }
4465 if ${ac_cv_lib_m_sin+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 ac_check_lib_save_LIBS=$LIBS
4469 LIBS="-lm $LIBS"
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4473 /* Override any GCC internal prototype to avoid an error.
4474 Use char because int might match the return type of a GCC
4475 builtin and then its argument prototype would still apply. */
4476 #ifdef __cplusplus
4477 extern "C"
4478 #endif
4479 char sin ();
4481 main ()
4483 return sin ();
4485 return 0;
4487 _ACEOF
4488 if ac_fn_c_try_link "$LINENO"; then :
4489 ac_cv_lib_m_sin=yes
4490 else
4491 ac_cv_lib_m_sin=no
4493 rm -f core conftest.err conftest.$ac_objext \
4494 conftest$ac_exeext conftest.$ac_ext
4495 LIBS=$ac_check_lib_save_LIBS
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4498 $as_echo "$ac_cv_lib_m_sin" >&6; }
4499 if test "x$ac_cv_lib_m_sin" = xyes; then :
4500 cat >>confdefs.h <<_ACEOF
4501 #define HAVE_LIBM 1
4502 _ACEOF
4504 LIBS="-lm $LIBS"
4509 esac
4511 ac_ext=c
4512 ac_cpp='$CPP $CPPFLAGS'
4513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4517 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4518 # On Suns, sometimes $CPP names a directory.
4519 if test -n "$CPP" && test -d "$CPP"; then
4520 CPP=
4522 if test -z "$CPP"; then
4523 if ${ac_cv_prog_CPP+:} false; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 # Double quotes because CPP needs to be expanded
4527 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4529 ac_preproc_ok=false
4530 for ac_c_preproc_warn_flag in '' yes
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 #ifdef __STDC__
4541 # include <limits.h>
4542 #else
4543 # include <assert.h>
4544 #endif
4545 Syntax error
4546 _ACEOF
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4549 else
4550 # Broken: fails on valid input.
4551 continue
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <ac_nonexistent.h>
4560 _ACEOF
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562 # Broken: success on invalid input.
4563 continue
4564 else
4565 # Passes both tests.
4566 ac_preproc_ok=:
4567 break
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4571 done
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then :
4575 break
4578 done
4579 ac_cv_prog_CPP=$CPP
4582 CPP=$ac_cv_prog_CPP
4583 else
4584 ac_cv_prog_CPP=$CPP
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4587 $as_echo "$CPP" >&6; }
4588 ac_preproc_ok=false
4589 for ac_c_preproc_warn_flag in '' yes
4591 # Use a header file that comes with gcc, so configuring glibc
4592 # with a fresh cross-compiler works.
4593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4594 # <limits.h> exists even on freestanding compilers.
4595 # On the NeXT, cc -E runs the code through the compiler's parser,
4596 # not just through cpp. "Syntax error" is here to catch this case.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #ifdef __STDC__
4600 # include <limits.h>
4601 #else
4602 # include <assert.h>
4603 #endif
4604 Syntax error
4605 _ACEOF
4606 if ac_fn_c_try_cpp "$LINENO"; then :
4608 else
4609 # Broken: fails on valid input.
4610 continue
4612 rm -f conftest.err conftest.i conftest.$ac_ext
4614 # OK, works on sane cases. Now check whether nonexistent headers
4615 # can be detected and how.
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #include <ac_nonexistent.h>
4619 _ACEOF
4620 if ac_fn_c_try_cpp "$LINENO"; then :
4621 # Broken: success on invalid input.
4622 continue
4623 else
4624 # Passes both tests.
4625 ac_preproc_ok=:
4626 break
4628 rm -f conftest.err conftest.i conftest.$ac_ext
4630 done
4631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4632 rm -f conftest.i conftest.err conftest.$ac_ext
4633 if $ac_preproc_ok; then :
4635 else
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4639 See \`config.log' for more details" "$LINENO" 5; }
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4650 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4651 if ${ac_cv_path_GREP+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -z "$GREP"; then
4655 ac_path_GREP_found=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_prog in grep ggrep; do
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4665 as_fn_executable_p "$ac_path_GREP" || continue
4666 # Check for GNU ac_path_GREP and select it if it is found.
4667 # Check for GNU $ac_path_GREP
4668 case `"$ac_path_GREP" --version 2>&1` in
4669 *GNU*)
4670 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4672 ac_count=0
4673 $as_echo_n 0123456789 >"conftest.in"
4674 while :
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo 'GREP' >> "conftest.nl"
4680 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682 as_fn_arith $ac_count + 1 && ac_count=$as_val
4683 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_GREP="$ac_path_GREP"
4686 ac_path_GREP_max=$ac_count
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4690 done
4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 esac
4694 $ac_path_GREP_found && break 3
4695 done
4696 done
4697 done
4698 IFS=$as_save_IFS
4699 if test -z "$ac_cv_path_GREP"; then
4700 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4702 else
4703 ac_cv_path_GREP=$GREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4708 $as_echo "$ac_cv_path_GREP" >&6; }
4709 GREP="$ac_cv_path_GREP"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4713 $as_echo_n "checking for egrep... " >&6; }
4714 if ${ac_cv_path_EGREP+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716 else
4717 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4718 then ac_cv_path_EGREP="$GREP -E"
4719 else
4720 if test -z "$EGREP"; then
4721 ac_path_EGREP_found=false
4722 # Loop through the user's path and test for each of PROGNAME-LIST
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_prog in egrep; do
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4731 as_fn_executable_p "$ac_path_EGREP" || continue
4732 # Check for GNU ac_path_EGREP and select it if it is found.
4733 # Check for GNU $ac_path_EGREP
4734 case `"$ac_path_EGREP" --version 2>&1` in
4735 *GNU*)
4736 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4738 ac_count=0
4739 $as_echo_n 0123456789 >"conftest.in"
4740 while :
4742 cat "conftest.in" "conftest.in" >"conftest.tmp"
4743 mv "conftest.tmp" "conftest.in"
4744 cp "conftest.in" "conftest.nl"
4745 $as_echo 'EGREP' >> "conftest.nl"
4746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748 as_fn_arith $ac_count + 1 && ac_count=$as_val
4749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4750 # Best one so far, save it but keep looking for a better one
4751 ac_cv_path_EGREP="$ac_path_EGREP"
4752 ac_path_EGREP_max=$ac_count
4754 # 10*(2^10) chars as input seems more than enough
4755 test $ac_count -gt 10 && break
4756 done
4757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4758 esac
4760 $ac_path_EGREP_found && break 3
4761 done
4762 done
4763 done
4764 IFS=$as_save_IFS
4765 if test -z "$ac_cv_path_EGREP"; then
4766 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768 else
4769 ac_cv_path_EGREP=$EGREP
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4775 $as_echo "$ac_cv_path_EGREP" >&6; }
4776 EGREP="$ac_cv_path_EGREP"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4780 $as_echo_n "checking for ANSI C header files... " >&6; }
4781 if ${ac_cv_header_stdc+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #include <stdlib.h>
4787 #include <stdarg.h>
4788 #include <string.h>
4789 #include <float.h>
4792 main ()
4796 return 0;
4798 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_header_stdc=yes
4801 else
4802 ac_cv_header_stdc=no
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 if test $ac_cv_header_stdc = yes; then
4807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 #include <string.h>
4812 _ACEOF
4813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 $EGREP "memchr" >/dev/null 2>&1; then :
4816 else
4817 ac_cv_header_stdc=no
4819 rm -f conftest*
4823 if test $ac_cv_header_stdc = yes; then
4824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4827 #include <stdlib.h>
4829 _ACEOF
4830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831 $EGREP "free" >/dev/null 2>&1; then :
4833 else
4834 ac_cv_header_stdc=no
4836 rm -f conftest*
4840 if test $ac_cv_header_stdc = yes; then
4841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4842 if test "$cross_compiling" = yes; then :
4844 else
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847 #include <ctype.h>
4848 #include <stdlib.h>
4849 #if ((' ' & 0x0FF) == 0x020)
4850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4852 #else
4853 # define ISLOWER(c) \
4854 (('a' <= (c) && (c) <= 'i') \
4855 || ('j' <= (c) && (c) <= 'r') \
4856 || ('s' <= (c) && (c) <= 'z'))
4857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4858 #endif
4860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4862 main ()
4864 int i;
4865 for (i = 0; i < 256; i++)
4866 if (XOR (islower (i), ISLOWER (i))
4867 || toupper (i) != TOUPPER (i))
4868 return 2;
4869 return 0;
4871 _ACEOF
4872 if ac_fn_c_try_run "$LINENO"; then :
4874 else
4875 ac_cv_header_stdc=no
4877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4878 conftest.$ac_objext conftest.beam conftest.$ac_ext
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4884 $as_echo "$ac_cv_header_stdc" >&6; }
4885 if test $ac_cv_header_stdc = yes; then
4887 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4891 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4893 inttypes.h stdint.h unistd.h
4894 do :
4895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4899 cat >>confdefs.h <<_ACEOF
4900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4901 _ACEOF
4905 done
4908 # The cast to long int works around a bug in the HP C Compiler
4909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4911 # This bug is HP SR number 8606223364.
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4913 $as_echo_n "checking size of void *... " >&6; }
4914 if ${ac_cv_sizeof_void_p+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4919 else
4920 if test "$ac_cv_type_void_p" = yes; then
4921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4923 as_fn_error 77 "cannot compute sizeof (void *)
4924 See \`config.log' for more details" "$LINENO" 5; }
4925 else
4926 ac_cv_sizeof_void_p=0
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4932 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4936 cat >>confdefs.h <<_ACEOF
4937 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4938 _ACEOF
4941 # The cast to long int works around a bug in the HP C Compiler
4942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4944 # This bug is HP SR number 8606223364.
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4946 $as_echo_n "checking size of unsigned int... " >&6; }
4947 if ${ac_cv_sizeof_unsigned_int+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4952 else
4953 if test "$ac_cv_type_unsigned_int" = yes; then
4954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4956 as_fn_error 77 "cannot compute sizeof (unsigned int)
4957 See \`config.log' for more details" "$LINENO" 5; }
4958 else
4959 ac_cv_sizeof_unsigned_int=0
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4965 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4969 cat >>confdefs.h <<_ACEOF
4970 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4971 _ACEOF
4974 # The cast to long int works around a bug in the HP C Compiler
4975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4977 # This bug is HP SR number 8606223364.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4979 $as_echo_n "checking size of unsigned long... " >&6; }
4980 if ${ac_cv_sizeof_unsigned_long+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4985 else
4986 if test "$ac_cv_type_unsigned_long" = yes; then
4987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4989 as_fn_error 77 "cannot compute sizeof (unsigned long)
4990 See \`config.log' for more details" "$LINENO" 5; }
4991 else
4992 ac_cv_sizeof_unsigned_long=0
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4998 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
5002 cat >>confdefs.h <<_ACEOF
5003 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5004 _ACEOF
5007 # The cast to long int works around a bug in the HP C Compiler
5008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5010 # This bug is HP SR number 8606223364.
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5012 $as_echo_n "checking size of unsigned long long... " >&6; }
5013 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
5018 else
5019 if test "$ac_cv_type_unsigned_long_long" = yes; then
5020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5022 as_fn_error 77 "cannot compute sizeof (unsigned long long)
5023 See \`config.log' for more details" "$LINENO" 5; }
5024 else
5025 ac_cv_sizeof_unsigned_long_long=0
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5031 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
5035 cat >>confdefs.h <<_ACEOF
5036 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
5037 _ACEOF
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5042 $as_echo_n "checking for X... " >&6; }
5045 # Check whether --with-x was given.
5046 if test "${with_x+set}" = set; then :
5047 withval=$with_x;
5050 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5051 if test "x$with_x" = xno; then
5052 # The user explicitly disabled X.
5053 have_x=disabled
5054 else
5055 case $x_includes,$x_libraries in #(
5056 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5057 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 # One or both of the vars are not set, and there is no cached value.
5061 ac_x_includes=no ac_x_libraries=no
5062 rm -f -r conftest.dir
5063 if mkdir conftest.dir; then
5064 cd conftest.dir
5065 cat >Imakefile <<'_ACEOF'
5066 incroot:
5067 @echo incroot='${INCROOT}'
5068 usrlibdir:
5069 @echo usrlibdir='${USRLIBDIR}'
5070 libdir:
5071 @echo libdir='${LIBDIR}'
5072 _ACEOF
5073 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5074 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5075 for ac_var in incroot usrlibdir libdir; do
5076 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5077 done
5078 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5079 for ac_extension in a so sl dylib la dll; do
5080 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5081 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5082 ac_im_usrlibdir=$ac_im_libdir; break
5084 done
5085 # Screen out bogus values from the imake configuration. They are
5086 # bogus both because they are the default anyway, and because
5087 # using them would break gcc on systems where it needs fixed includes.
5088 case $ac_im_incroot in
5089 /usr/include) ac_x_includes= ;;
5090 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5091 esac
5092 case $ac_im_usrlibdir in
5093 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5094 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5095 esac
5097 cd ..
5098 rm -f -r conftest.dir
5101 # Standard set of common directories for X headers.
5102 # Check X11 before X11Rn because it is often a symlink to the current release.
5103 ac_x_header_dirs='
5104 /usr/X11/include
5105 /usr/X11R7/include
5106 /usr/X11R6/include
5107 /usr/X11R5/include
5108 /usr/X11R4/include
5110 /usr/include/X11
5111 /usr/include/X11R7
5112 /usr/include/X11R6
5113 /usr/include/X11R5
5114 /usr/include/X11R4
5116 /usr/local/X11/include
5117 /usr/local/X11R7/include
5118 /usr/local/X11R6/include
5119 /usr/local/X11R5/include
5120 /usr/local/X11R4/include
5122 /usr/local/include/X11
5123 /usr/local/include/X11R7
5124 /usr/local/include/X11R6
5125 /usr/local/include/X11R5
5126 /usr/local/include/X11R4
5128 /usr/X386/include
5129 /usr/x386/include
5130 /usr/XFree86/include/X11
5132 /usr/include
5133 /usr/local/include
5134 /usr/unsupported/include
5135 /usr/athena/include
5136 /usr/local/x11r5/include
5137 /usr/lpp/Xamples/include
5139 /usr/openwin/include
5140 /usr/openwin/share/include'
5142 if test "$ac_x_includes" = no; then
5143 # Guess where to find include files, by looking for Xlib.h.
5144 # First, try using that file with no special directory specified.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <X11/Xlib.h>
5148 _ACEOF
5149 if ac_fn_c_try_cpp "$LINENO"; then :
5150 # We can compile using X headers with no special include directory.
5151 ac_x_includes=
5152 else
5153 for ac_dir in $ac_x_header_dirs; do
5154 if test -r "$ac_dir/X11/Xlib.h"; then
5155 ac_x_includes=$ac_dir
5156 break
5158 done
5160 rm -f conftest.err conftest.i conftest.$ac_ext
5161 fi # $ac_x_includes = no
5163 if test "$ac_x_libraries" = no; then
5164 # Check for the libraries.
5165 # See if we find them without any special options.
5166 # Don't add to $LIBS permanently.
5167 ac_save_LIBS=$LIBS
5168 LIBS="-lX11 $LIBS"
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 #include <X11/Xlib.h>
5173 main ()
5175 XrmInitialize ()
5177 return 0;
5179 _ACEOF
5180 if ac_fn_c_try_link "$LINENO"; then :
5181 LIBS=$ac_save_LIBS
5182 # We can link X programs with no special library path.
5183 ac_x_libraries=
5184 else
5185 LIBS=$ac_save_LIBS
5186 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5188 # Don't even attempt the hair of trying to link an X program!
5189 for ac_extension in a so sl dylib la dll; do
5190 if test -r "$ac_dir/libX11.$ac_extension"; then
5191 ac_x_libraries=$ac_dir
5192 break 2
5194 done
5195 done
5197 rm -f core conftest.err conftest.$ac_objext \
5198 conftest$ac_exeext conftest.$ac_ext
5199 fi # $ac_x_libraries = no
5201 case $ac_x_includes,$ac_x_libraries in #(
5202 no,* | *,no | *\'*)
5203 # Didn't find X, or a directory has "'" in its name.
5204 ac_cv_have_x="have_x=no";; #(
5206 # Record where we found X for the cache.
5207 ac_cv_have_x="have_x=yes\
5208 ac_x_includes='$ac_x_includes'\
5209 ac_x_libraries='$ac_x_libraries'"
5210 esac
5212 ;; #(
5213 *) have_x=yes;;
5214 esac
5215 eval "$ac_cv_have_x"
5216 fi # $with_x != no
5218 if test "$have_x" != yes; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5220 $as_echo "$have_x" >&6; }
5221 no_x=yes
5222 else
5223 # If each of the values was on the command line, it overrides each guess.
5224 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5225 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5226 # Update the cache value to reflect the command line values.
5227 ac_cv_have_x="have_x=yes\
5228 ac_x_includes='$x_includes'\
5229 ac_x_libraries='$x_libraries'"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5231 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5234 if test "$no_x" = yes; then
5235 # Not all programs may use this symbol, but it does not hurt to define it.
5237 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5239 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5240 else
5241 if test -n "$x_includes"; then
5242 X_CFLAGS="$X_CFLAGS -I$x_includes"
5245 # It would also be nice to do this for all -L options, not just this one.
5246 if test -n "$x_libraries"; then
5247 X_LIBS="$X_LIBS -L$x_libraries"
5248 # For Solaris; some versions of Sun CC require a space after -R and
5249 # others require no space. Words are not sufficient . . . .
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5251 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5252 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5253 ac_xsave_c_werror_flag=$ac_c_werror_flag
5254 ac_c_werror_flag=yes
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5259 main ()
5263 return 0;
5265 _ACEOF
5266 if ac_fn_c_try_link "$LINENO"; then :
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 X_LIBS="$X_LIBS -R$x_libraries"
5270 else
5271 LIBS="$ac_xsave_LIBS -R $x_libraries"
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5276 main ()
5280 return 0;
5282 _ACEOF
5283 if ac_fn_c_try_link "$LINENO"; then :
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5285 $as_echo "yes" >&6; }
5286 X_LIBS="$X_LIBS -R $x_libraries"
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5289 $as_echo "neither works" >&6; }
5291 rm -f core conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
5294 rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5296 ac_c_werror_flag=$ac_xsave_c_werror_flag
5297 LIBS=$ac_xsave_LIBS
5300 # Check for system-dependent libraries X programs must link with.
5301 # Do this before checking for the system-independent R6 libraries
5302 # (-lICE), since we may need -lsocket or whatever for X linking.
5304 if test "$ISC" = yes; then
5305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5306 else
5307 # Martyn Johnson says this is needed for Ultrix, if the X
5308 # libraries were built with DECnet support. And Karl Berry says
5309 # the Alpha needs dnet_stub (dnet does not exist).
5310 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5314 /* Override any GCC internal prototype to avoid an error.
5315 Use char because int might match the return type of a GCC
5316 builtin and then its argument prototype would still apply. */
5317 #ifdef __cplusplus
5318 extern "C"
5319 #endif
5320 char XOpenDisplay ();
5322 main ()
5324 return XOpenDisplay ();
5326 return 0;
5328 _ACEOF
5329 if ac_fn_c_try_link "$LINENO"; then :
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5333 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5334 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 ac_check_lib_save_LIBS=$LIBS
5338 LIBS="-ldnet $LIBS"
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5342 /* Override any GCC internal prototype to avoid an error.
5343 Use char because int might match the return type of a GCC
5344 builtin and then its argument prototype would still apply. */
5345 #ifdef __cplusplus
5346 extern "C"
5347 #endif
5348 char dnet_ntoa ();
5350 main ()
5352 return dnet_ntoa ();
5354 return 0;
5356 _ACEOF
5357 if ac_fn_c_try_link "$LINENO"; then :
5358 ac_cv_lib_dnet_dnet_ntoa=yes
5359 else
5360 ac_cv_lib_dnet_dnet_ntoa=no
5362 rm -f core conftest.err conftest.$ac_objext \
5363 conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5367 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5368 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5369 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5372 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5374 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5375 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 ac_check_lib_save_LIBS=$LIBS
5379 LIBS="-ldnet_stub $LIBS"
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5383 /* Override any GCC internal prototype to avoid an error.
5384 Use char because int might match the return type of a GCC
5385 builtin and then its argument prototype would still apply. */
5386 #ifdef __cplusplus
5387 extern "C"
5388 #endif
5389 char dnet_ntoa ();
5391 main ()
5393 return dnet_ntoa ();
5395 return 0;
5397 _ACEOF
5398 if ac_fn_c_try_link "$LINENO"; then :
5399 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5400 else
5401 ac_cv_lib_dnet_stub_dnet_ntoa=no
5403 rm -f core conftest.err conftest.$ac_objext \
5404 conftest$ac_exeext conftest.$ac_ext
5405 LIBS=$ac_check_lib_save_LIBS
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5408 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5409 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5410 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5415 rm -f core conftest.err conftest.$ac_objext \
5416 conftest$ac_exeext conftest.$ac_ext
5417 LIBS="$ac_xsave_LIBS"
5419 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5420 # to get the SysV transport functions.
5421 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5422 # needs -lnsl.
5423 # The nsl library prevents programs from opening the X display
5424 # on Irix 5.2, according to T.E. Dickey.
5425 # The functions gethostbyname, getservbyname, and inet_addr are
5426 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5427 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5428 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5432 if test $ac_cv_func_gethostbyname = no; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5434 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5435 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 ac_check_lib_save_LIBS=$LIBS
5439 LIBS="-lnsl $LIBS"
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5443 /* Override any GCC internal prototype to avoid an error.
5444 Use char because int might match the return type of a GCC
5445 builtin and then its argument prototype would still apply. */
5446 #ifdef __cplusplus
5447 extern "C"
5448 #endif
5449 char gethostbyname ();
5451 main ()
5453 return gethostbyname ();
5455 return 0;
5457 _ACEOF
5458 if ac_fn_c_try_link "$LINENO"; then :
5459 ac_cv_lib_nsl_gethostbyname=yes
5460 else
5461 ac_cv_lib_nsl_gethostbyname=no
5463 rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS=$ac_check_lib_save_LIBS
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5468 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5469 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5473 if test $ac_cv_lib_nsl_gethostbyname = no; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5475 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5476 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 ac_check_lib_save_LIBS=$LIBS
5480 LIBS="-lbsd $LIBS"
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5484 /* Override any GCC internal prototype to avoid an error.
5485 Use char because int might match the return type of a GCC
5486 builtin and then its argument prototype would still apply. */
5487 #ifdef __cplusplus
5488 extern "C"
5489 #endif
5490 char gethostbyname ();
5492 main ()
5494 return gethostbyname ();
5496 return 0;
5498 _ACEOF
5499 if ac_fn_c_try_link "$LINENO"; then :
5500 ac_cv_lib_bsd_gethostbyname=yes
5501 else
5502 ac_cv_lib_bsd_gethostbyname=no
5504 rm -f core conftest.err conftest.$ac_objext \
5505 conftest$ac_exeext conftest.$ac_ext
5506 LIBS=$ac_check_lib_save_LIBS
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5509 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5510 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5511 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5517 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5518 # socket/setsockopt and other routines are undefined under SCO ODT
5519 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5520 # on later versions), says Simon Leinen: it contains gethostby*
5521 # variants that don't use the name server (or something). -lsocket
5522 # must be given before -lnsl if both are needed. We assume that
5523 # if connect needs -lnsl, so does gethostbyname.
5524 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5525 if test "x$ac_cv_func_connect" = xyes; then :
5529 if test $ac_cv_func_connect = no; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5531 $as_echo_n "checking for connect in -lsocket... " >&6; }
5532 if ${ac_cv_lib_socket_connect+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 ac_check_lib_save_LIBS=$LIBS
5536 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5540 /* Override any GCC internal prototype to avoid an error.
5541 Use char because int might match the return type of a GCC
5542 builtin and then its argument prototype would still apply. */
5543 #ifdef __cplusplus
5544 extern "C"
5545 #endif
5546 char connect ();
5548 main ()
5550 return connect ();
5552 return 0;
5554 _ACEOF
5555 if ac_fn_c_try_link "$LINENO"; then :
5556 ac_cv_lib_socket_connect=yes
5557 else
5558 ac_cv_lib_socket_connect=no
5560 rm -f core conftest.err conftest.$ac_objext \
5561 conftest$ac_exeext conftest.$ac_ext
5562 LIBS=$ac_check_lib_save_LIBS
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5565 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5566 if test "x$ac_cv_lib_socket_connect" = xyes; then :
5567 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5572 # Guillermo Gomez says -lposix is necessary on A/UX.
5573 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5574 if test "x$ac_cv_func_remove" = xyes; then :
5578 if test $ac_cv_func_remove = no; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5580 $as_echo_n "checking for remove in -lposix... " >&6; }
5581 if ${ac_cv_lib_posix_remove+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 ac_check_lib_save_LIBS=$LIBS
5585 LIBS="-lposix $LIBS"
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5589 /* Override any GCC internal prototype to avoid an error.
5590 Use char because int might match the return type of a GCC
5591 builtin and then its argument prototype would still apply. */
5592 #ifdef __cplusplus
5593 extern "C"
5594 #endif
5595 char remove ();
5597 main ()
5599 return remove ();
5601 return 0;
5603 _ACEOF
5604 if ac_fn_c_try_link "$LINENO"; then :
5605 ac_cv_lib_posix_remove=yes
5606 else
5607 ac_cv_lib_posix_remove=no
5609 rm -f core conftest.err conftest.$ac_objext \
5610 conftest$ac_exeext conftest.$ac_ext
5611 LIBS=$ac_check_lib_save_LIBS
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5614 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5615 if test "x$ac_cv_lib_posix_remove" = xyes; then :
5616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5621 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5622 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5623 if test "x$ac_cv_func_shmat" = xyes; then :
5627 if test $ac_cv_func_shmat = no; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5629 $as_echo_n "checking for shmat in -lipc... " >&6; }
5630 if ${ac_cv_lib_ipc_shmat+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 ac_check_lib_save_LIBS=$LIBS
5634 LIBS="-lipc $LIBS"
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5638 /* Override any GCC internal prototype to avoid an error.
5639 Use char because int might match the return type of a GCC
5640 builtin and then its argument prototype would still apply. */
5641 #ifdef __cplusplus
5642 extern "C"
5643 #endif
5644 char shmat ();
5646 main ()
5648 return shmat ();
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_link "$LINENO"; then :
5654 ac_cv_lib_ipc_shmat=yes
5655 else
5656 ac_cv_lib_ipc_shmat=no
5658 rm -f core conftest.err conftest.$ac_objext \
5659 conftest$ac_exeext conftest.$ac_ext
5660 LIBS=$ac_check_lib_save_LIBS
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5663 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5664 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5671 # Check for libraries that X11R6 Xt/Xaw programs need.
5672 ac_save_LDFLAGS=$LDFLAGS
5673 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5674 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5675 # check for ICE first), but we must link in the order -lSM -lICE or
5676 # we get undefined symbols. So assume we have SM if we have ICE.
5677 # These have to be linked with before -lX11, unlike the other
5678 # libraries we check for below, so use a different variable.
5679 # John Interrante, Karl Berry
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5681 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5682 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 ac_check_lib_save_LIBS=$LIBS
5686 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5690 /* Override any GCC internal prototype to avoid an error.
5691 Use char because int might match the return type of a GCC
5692 builtin and then its argument prototype would still apply. */
5693 #ifdef __cplusplus
5694 extern "C"
5695 #endif
5696 char IceConnectionNumber ();
5698 main ()
5700 return IceConnectionNumber ();
5702 return 0;
5704 _ACEOF
5705 if ac_fn_c_try_link "$LINENO"; then :
5706 ac_cv_lib_ICE_IceConnectionNumber=yes
5707 else
5708 ac_cv_lib_ICE_IceConnectionNumber=no
5710 rm -f core conftest.err conftest.$ac_objext \
5711 conftest$ac_exeext conftest.$ac_ext
5712 LIBS=$ac_check_lib_save_LIBS
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5715 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5716 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5717 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5720 LDFLAGS=$ac_save_LDFLAGS
5724 CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
5725 LDFLAGS="${LDFLAGS} ${X_LIBS}"
5726 LIBS="${X_PRE_LIBS} ${LIBS} -lX11"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtToolkitInitialize in -lXt" >&5
5728 $as_echo_n "checking for XtToolkitInitialize in -lXt... " >&6; }
5729 if ${ac_cv_lib_Xt_XtToolkitInitialize+:} false; then :
5730 $as_echo_n "(cached) " >&6
5731 else
5732 ac_check_lib_save_LIBS=$LIBS
5733 LIBS="-lXt $LIBS"
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5737 /* Override any GCC internal prototype to avoid an error.
5738 Use char because int might match the return type of a GCC
5739 builtin and then its argument prototype would still apply. */
5740 #ifdef __cplusplus
5741 extern "C"
5742 #endif
5743 char XtToolkitInitialize ();
5745 main ()
5747 return XtToolkitInitialize ();
5749 return 0;
5751 _ACEOF
5752 if ac_fn_c_try_link "$LINENO"; then :
5753 ac_cv_lib_Xt_XtToolkitInitialize=yes
5754 else
5755 ac_cv_lib_Xt_XtToolkitInitialize=no
5757 rm -f core conftest.err conftest.$ac_objext \
5758 conftest$ac_exeext conftest.$ac_ext
5759 LIBS=$ac_check_lib_save_LIBS
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtToolkitInitialize" >&5
5762 $as_echo "$ac_cv_lib_Xt_XtToolkitInitialize" >&6; }
5763 if test "x$ac_cv_lib_Xt_XtToolkitInitialize" = xyes; then :
5764 cat >>confdefs.h <<_ACEOF
5765 #define HAVE_LIBXT 1
5766 _ACEOF
5768 LIBS="-lXt $LIBS"
5770 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtDisplayInitialize in -lXt" >&5
5773 $as_echo_n "checking for XtDisplayInitialize in -lXt... " >&6; }
5774 if ${ac_cv_lib_Xt_XtDisplayInitialize+:} false; then :
5775 $as_echo_n "(cached) " >&6
5776 else
5777 ac_check_lib_save_LIBS=$LIBS
5778 LIBS="-lXt -lSM -lICE -lXpm -lX11 $LIBS"
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5782 /* Override any GCC internal prototype to avoid an error.
5783 Use char because int might match the return type of a GCC
5784 builtin and then its argument prototype would still apply. */
5785 #ifdef __cplusplus
5786 extern "C"
5787 #endif
5788 char XtDisplayInitialize ();
5790 main ()
5792 return XtDisplayInitialize ();
5794 return 0;
5796 _ACEOF
5797 if ac_fn_c_try_link "$LINENO"; then :
5798 ac_cv_lib_Xt_XtDisplayInitialize=yes
5799 else
5800 ac_cv_lib_Xt_XtDisplayInitialize=no
5802 rm -f core conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
5804 LIBS=$ac_check_lib_save_LIBS
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtDisplayInitialize" >&5
5807 $as_echo "$ac_cv_lib_Xt_XtDisplayInitialize" >&6; }
5808 if test "x$ac_cv_lib_Xt_XtDisplayInitialize" = xyes; then :
5809 cat >>confdefs.h <<_ACEOF
5810 #define HAVE_LIBXT 1
5811 _ACEOF
5813 LIBS="-lXt $LIBS"
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5821 $as_echo_n "checking for ANSI C header files... " >&6; }
5822 if ${ac_cv_header_stdc+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 #include <stdlib.h>
5828 #include <stdarg.h>
5829 #include <string.h>
5830 #include <float.h>
5833 main ()
5837 return 0;
5839 _ACEOF
5840 if ac_fn_c_try_compile "$LINENO"; then :
5841 ac_cv_header_stdc=yes
5842 else
5843 ac_cv_header_stdc=no
5845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 if test $ac_cv_header_stdc = yes; then
5848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 #include <string.h>
5853 _ACEOF
5854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5855 $EGREP "memchr" >/dev/null 2>&1; then :
5857 else
5858 ac_cv_header_stdc=no
5860 rm -f conftest*
5864 if test $ac_cv_header_stdc = yes; then
5865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 #include <stdlib.h>
5870 _ACEOF
5871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872 $EGREP "free" >/dev/null 2>&1; then :
5874 else
5875 ac_cv_header_stdc=no
5877 rm -f conftest*
5881 if test $ac_cv_header_stdc = yes; then
5882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5883 if test "$cross_compiling" = yes; then :
5885 else
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 #include <ctype.h>
5889 #include <stdlib.h>
5890 #if ((' ' & 0x0FF) == 0x020)
5891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5893 #else
5894 # define ISLOWER(c) \
5895 (('a' <= (c) && (c) <= 'i') \
5896 || ('j' <= (c) && (c) <= 'r') \
5897 || ('s' <= (c) && (c) <= 'z'))
5898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5899 #endif
5901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5903 main ()
5905 int i;
5906 for (i = 0; i < 256; i++)
5907 if (XOR (islower (i), ISLOWER (i))
5908 || toupper (i) != TOUPPER (i))
5909 return 2;
5910 return 0;
5912 _ACEOF
5913 if ac_fn_c_try_run "$LINENO"; then :
5915 else
5916 ac_cv_header_stdc=no
5918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5919 conftest.$ac_objext conftest.beam conftest.$ac_ext
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5925 $as_echo "$ac_cv_header_stdc" >&6; }
5926 if test $ac_cv_header_stdc = yes; then
5928 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5933 for ac_func in setenv putenv
5934 do :
5935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5937 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5938 cat >>confdefs.h <<_ACEOF
5939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5940 _ACEOF
5943 done
5946 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
5947 if test "x$ac_cv_func_vfork" = xyes; then :
5952 for ac_header in dirent.h
5953 do :
5954 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5955 if test "x$ac_cv_header_dirent_h" = xyes; then :
5956 cat >>confdefs.h <<_ACEOF
5957 #define HAVE_DIRENT_H 1
5958 _ACEOF
5962 done
5965 case $target in
5966 x86_64-*)
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11 libraries" >&5
5968 $as_echo_n "checking for 64-bit X11 libraries... " >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/X11R6/lib64" >&5
5970 $as_echo_n "checking for /usr/X11R6/lib64... " >&6; }
5971 if ${ac_cv_file__usr_X11R6_lib64+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 test "$cross_compiling" = yes &&
5975 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5976 if test -r "/usr/X11R6/lib64"; then
5977 ac_cv_file__usr_X11R6_lib64=yes
5978 else
5979 ac_cv_file__usr_X11R6_lib64=no
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_X11R6_lib64" >&5
5983 $as_echo "$ac_cv_file__usr_X11R6_lib64" >&6; }
5984 if test "x$ac_cv_file__usr_X11R6_lib64" = xyes; then :
5986 LDFLAGS="-L/usr/X11R6/lib64 ${LDFLAGS}"
5991 esac
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-pointer-sign accepted in CFLAGS" >&5
5994 $as_echo_n "checking if -Wno-pointer-sign accepted in CFLAGS... " >&6; }
5995 ac_save_CFLAGS="$CFLAGS"
5996 CFLAGS="$CFLAGS -Wno-pointer-sign"
5997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6001 main ()
6004 int foo;
6005 foo = 0
6007 return 0;
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"; then :
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6013 $as_echo "yes" >&6; }
6014 else
6016 CFLAGS="$ac_save_CFLAGS"
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
6023 $as_echo_n "checking for deflate in -lz... " >&6; }
6024 if ${ac_cv_lib_z_deflate+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 ac_check_lib_save_LIBS=$LIBS
6028 LIBS="-lz -lz $LIBS"
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6032 /* Override any GCC internal prototype to avoid an error.
6033 Use char because int might match the return type of a GCC
6034 builtin and then its argument prototype would still apply. */
6035 #ifdef __cplusplus
6036 extern "C"
6037 #endif
6038 char deflate ();
6040 main ()
6042 return deflate ();
6044 return 0;
6046 _ACEOF
6047 if ac_fn_c_try_link "$LINENO"; then :
6048 ac_cv_lib_z_deflate=yes
6049 else
6050 ac_cv_lib_z_deflate=no
6052 rm -f core conftest.err conftest.$ac_objext \
6053 conftest$ac_exeext conftest.$ac_ext
6054 LIBS=$ac_check_lib_save_LIBS
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
6057 $as_echo "$ac_cv_lib_z_deflate" >&6; }
6058 if test "x$ac_cv_lib_z_deflate" = xyes; then :
6059 cat >>confdefs.h <<_ACEOF
6060 #define HAVE_LIBZ 1
6061 _ACEOF
6063 LIBS="-lz $LIBS"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6069 $as_echo_n "checking for va_copy... " >&6; }
6070 if ${ac_cv_c_va_copy+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <stdarg.h>
6077 main ()
6079 va_list ap1, ap2;
6080 va_copy(ap1,ap2);
6083 return 0;
6085 _ACEOF
6086 if ac_fn_c_try_link "$LINENO"; then :
6087 ac_cv_c_va_copy="yes"
6088 else
6089 ac_cv_c_va_copy="no"
6091 rm -f core conftest.err conftest.$ac_objext \
6092 conftest$ac_exeext conftest.$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
6096 $as_echo "$ac_cv_c_va_copy" >&6; }
6097 if test "$ac_cv_c_va_copy" = "yes"
6098 then
6100 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6104 $as_echo_n "checking for __va_copy... " >&6; }
6105 if ${ac_cv_c___va_copy+:} false; then :
6106 $as_echo_n "(cached) " >&6
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <stdarg.h>
6112 main ()
6114 va_list ap1, ap2;
6115 __va_copy(ap1,ap2);
6118 return 0;
6120 _ACEOF
6121 if ac_fn_c_try_link "$LINENO"; then :
6122 ac_cv_c___va_copy="yes"
6123 else
6124 ac_cv_c___va_copy="no"
6126 rm -f core conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
6131 $as_echo "$ac_cv_c___va_copy" >&6; }
6132 if test "$ac_cv_c___va_copy" = "yes"
6133 then
6135 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if u_char defined" >&5
6140 $as_echo_n "checking if u_char defined... " >&6; }
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <sys/types.h>
6145 main ()
6148 u_char foo;
6149 foo = 0
6151 return 0;
6153 _ACEOF
6154 if ac_fn_c_try_compile "$LINENO"; then :
6156 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6159 $as_echo "yes" >&6; }
6160 else
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 # Check whether --enable-optimize was given.
6167 if test "${enable_optimize+set}" = set; then :
6168 enableval=$enable_optimize;
6169 else
6171 CFLAGS=`echo $CFLAGS | sed -e "s/ -O2//"`
6177 # Check whether --with-xpm was given.
6178 if test "${with_xpm+set}" = set; then :
6179 withval=$with_xpm;
6180 if test "$withval" != "no" -a "$withval" != "yes"; then
6181 CPPFLAGS="${CPPFLAGS} -I$withval/include"
6182 LDFLAGS="${LDFLAGS} -L$withval/lib"
6188 for ac_header in X11/xpm.h
6189 do :
6190 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
6191 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
6192 cat >>confdefs.h <<_ACEOF
6193 #define HAVE_X11_XPM_H 1
6194 _ACEOF
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreateImageFromData in -lXpm" >&5
6196 $as_echo_n "checking for XpmCreateImageFromData in -lXpm... " >&6; }
6197 if ${ac_cv_lib_Xpm_XpmCreateImageFromData+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 ac_check_lib_save_LIBS=$LIBS
6201 LIBS="-lXpm -lX11 $LIBS"
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6205 /* Override any GCC internal prototype to avoid an error.
6206 Use char because int might match the return type of a GCC
6207 builtin and then its argument prototype would still apply. */
6208 #ifdef __cplusplus
6209 extern "C"
6210 #endif
6211 char XpmCreateImageFromData ();
6213 main ()
6215 return XpmCreateImageFromData ();
6217 return 0;
6219 _ACEOF
6220 if ac_fn_c_try_link "$LINENO"; then :
6221 ac_cv_lib_Xpm_XpmCreateImageFromData=yes
6222 else
6223 ac_cv_lib_Xpm_XpmCreateImageFromData=no
6225 rm -f core conftest.err conftest.$ac_objext \
6226 conftest$ac_exeext conftest.$ac_ext
6227 LIBS=$ac_check_lib_save_LIBS
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreateImageFromData" >&5
6230 $as_echo "$ac_cv_lib_Xpm_XpmCreateImageFromData" >&6; }
6231 if test "x$ac_cv_lib_Xpm_XpmCreateImageFromData" = xyes; then :
6233 LIBS="${LIBS} -lXpm"
6234 $as_echo "#define HAVE_XPM 1" >>confdefs.h
6236 else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xpm library not found" >&5
6239 $as_echo "$as_me: WARNING: Xpm library not found" >&2;}
6242 else
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xpm header not found" >&5
6244 $as_echo "$as_me: WARNING: Xpm header not found" >&2;}
6247 done
6252 #------------------------------------------------------------
6253 # AC_PROG_LD - find the path to the GNU or non-GNU linker
6254 # (This stuff ripped from libtool)
6255 #------------------------------------------------------------
6261 # Check whether --with-gnu-ld was given.
6262 if test "${with_gnu_ld+set}" = set; then :
6263 withval=$with_gnu_ld; test "$withval" = no || xc_with_gnu_ld=yes
6264 else
6265 xc_with_gnu_ld=no
6268 ac_prog=ld
6269 if test "$GCC" = yes; then
6270 # Check if gcc -print-prog-name=ld gives a path.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6272 $as_echo_n "checking for ld used by GCC... " >&6; }
6273 case $host in
6274 *-*-mingw*)
6275 # gcc leaves a trailing carriage return which upsets mingw
6276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6279 esac
6280 case "$ac_prog" in
6281 # Accept absolute paths.
6282 [\\/]* | [A-Za-z]:[\\/]*)
6283 re_direlt='/[^/][^/]*/\.\./'
6284 # Canonicalize the path of ld
6285 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6286 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6287 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6288 done
6289 test -z "$LD" && LD="$ac_prog"
6292 # If it fails, then pretend we aren't using GCC.
6293 ac_prog=ld
6296 # If it is relative, then search for the first ld in PATH.
6297 xc_with_gnu_ld=unknown
6299 esac
6300 elif test "$xc_with_gnu_ld" = yes; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6302 $as_echo_n "checking for GNU ld... " >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6305 $as_echo_n "checking for non-GNU ld... " >&6; }
6307 if ${ac_cv_path_LD+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -z "$LD"; then
6311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6312 for ac_dir in $PATH; do
6313 test -z "$ac_dir" && ac_dir=.
6314 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6315 ac_cv_path_LD="$ac_dir/$ac_prog"
6316 # Check to see if the program is GNU ld. I'd rather use --version,
6317 # but apparently some GNU ld's only accept -v.
6318 # Break only if it was the GNU/non-GNU ld that we prefer.
6319 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6320 test "$xc_with_gnu_ld" != no && break
6321 else
6322 test "$xc_with_gnu_ld" != yes && break
6325 done
6326 IFS="$ac_save_ifs"
6327 else
6328 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6332 LD="$ac_cv_path_LD"
6333 if test -n "$LD"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6335 $as_echo "$LD" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6340 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6342 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6343 if ${ac_cv_prog_gnu_ld+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6347 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6348 ac_cv_prog_gnu_ld=yes
6349 else
6350 ac_cv_prog_gnu_ld=no
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6354 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6355 xc_with_gnu_ld=$ac_cv_prog_gnu_ld
6360 xc_with_tcl="yes"
6361 xc_with_tk="yes"
6362 xc_with_tcl_includes=""
6363 xc_with_tk_includes=""
6364 xc_with_tcl_libraries=""
6365 xc_with_tk_libraries=""
6366 xc_with_cairo="yes"
6370 # Check whether --with-cairo was given.
6371 if test "${with_cairo+set}" = set; then :
6372 withval=$with_cairo;
6373 xc_with_cairo=$withval
6374 if test "$withval" == "no" -o "$withval" == "NO"; then
6375 xc_with_cairo=""
6381 if test "x$xc_with_cairo" != "x" ; then
6382 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
6391 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 case $PKG_CONFIG in
6401 [\\/]* | ?:[\\/]*)
6402 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6418 IFS=$as_save_IFS
6421 esac
6423 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6424 if test -n "$PKG_CONFIG"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6426 $as_echo "$PKG_CONFIG" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6434 if test -z "$ac_cv_path_PKG_CONFIG"; then
6435 ac_pt_PKG_CONFIG=$PKG_CONFIG
6436 # Extract the first word of "pkg-config", so it can be a program name with args.
6437 set dummy pkg-config; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 case $ac_pt_PKG_CONFIG in
6444 [\\/]* | ?:[\\/]*)
6445 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6459 done
6460 done
6461 IFS=$as_save_IFS
6464 esac
6466 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6467 if test -n "$ac_pt_PKG_CONFIG"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6469 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_pt_PKG_CONFIG" = x; then
6476 PKG_CONFIG=""
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484 PKG_CONFIG=$ac_pt_PKG_CONFIG
6486 else
6487 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6491 if test -n "$PKG_CONFIG"; then
6492 _pkg_min_version=0.9.0
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6494 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6495 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6497 $as_echo "yes" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 PKG_CONFIG=""
6505 pkg_failed=no
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
6507 $as_echo_n "checking for cairo... " >&6; }
6509 if test -n "$cairo_CFLAGS"; then
6510 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
6511 elif test -n "$PKG_CONFIG"; then
6512 if test -n "$PKG_CONFIG" && \
6513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6514 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6515 ac_status=$?
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; }; then
6518 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
6519 test "x$?" != "x0" && pkg_failed=yes
6520 else
6521 pkg_failed=yes
6523 else
6524 pkg_failed=untried
6526 if test -n "$cairo_LIBS"; then
6527 pkg_cv_cairo_LIBS="$cairo_LIBS"
6528 elif test -n "$PKG_CONFIG"; then
6529 if test -n "$PKG_CONFIG" && \
6530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6531 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
6535 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
6536 test "x$?" != "x0" && pkg_failed=yes
6537 else
6538 pkg_failed=yes
6540 else
6541 pkg_failed=untried
6546 if test $pkg_failed = yes; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6551 _pkg_short_errors_supported=yes
6552 else
6553 _pkg_short_errors_supported=no
6555 if test $_pkg_short_errors_supported = yes; then
6556 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
6557 else
6558 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
6560 # Put the nasty error message in config.log where it belongs
6561 echo "$cairo_PKG_ERRORS" >&5
6563 as_fn_error $? "Package requirements (cairo) were not met:
6565 $cairo_PKG_ERRORS
6567 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6568 installed software in a non-standard prefix.
6570 Alternatively, you may set the environment variables cairo_CFLAGS
6571 and cairo_LIBS to avoid the need to call pkg-config.
6572 See the pkg-config man page for more details." "$LINENO" 5
6573 elif test $pkg_failed = untried; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6578 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6579 is in your PATH or set the PKG_CONFIG environment variable to the full
6580 path to pkg-config.
6582 Alternatively, you may set the environment variables cairo_CFLAGS
6583 and cairo_LIBS to avoid the need to call pkg-config.
6584 See the pkg-config man page for more details.
6586 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6587 See \`config.log' for more details" "$LINENO" 5; }
6588 else
6589 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
6590 cairo_LIBS=$pkg_cv_cairo_LIBS
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6592 $as_echo "yes" >&6; }
6596 pkg_failed=no
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig" >&5
6598 $as_echo_n "checking for fontconfig... " >&6; }
6600 if test -n "$fontconfig_CFLAGS"; then
6601 pkg_cv_fontconfig_CFLAGS="$fontconfig_CFLAGS"
6602 elif test -n "$PKG_CONFIG"; then
6603 if test -n "$PKG_CONFIG" && \
6604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6605 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }; then
6609 pkg_cv_fontconfig_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
6610 test "x$?" != "x0" && pkg_failed=yes
6611 else
6612 pkg_failed=yes
6614 else
6615 pkg_failed=untried
6617 if test -n "$fontconfig_LIBS"; then
6618 pkg_cv_fontconfig_LIBS="$fontconfig_LIBS"
6619 elif test -n "$PKG_CONFIG"; then
6620 if test -n "$PKG_CONFIG" && \
6621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6622 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6623 ac_status=$?
6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }; then
6626 pkg_cv_fontconfig_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
6627 test "x$?" != "x0" && pkg_failed=yes
6628 else
6629 pkg_failed=yes
6631 else
6632 pkg_failed=untried
6637 if test $pkg_failed = yes; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6641 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6642 _pkg_short_errors_supported=yes
6643 else
6644 _pkg_short_errors_supported=no
6646 if test $_pkg_short_errors_supported = yes; then
6647 fontconfig_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
6648 else
6649 fontconfig_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
6651 # Put the nasty error message in config.log where it belongs
6652 echo "$fontconfig_PKG_ERRORS" >&5
6654 as_fn_error $? "Package requirements (fontconfig) were not met:
6656 $fontconfig_PKG_ERRORS
6658 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6659 installed software in a non-standard prefix.
6661 Alternatively, you may set the environment variables fontconfig_CFLAGS
6662 and fontconfig_LIBS to avoid the need to call pkg-config.
6663 See the pkg-config man page for more details." "$LINENO" 5
6664 elif test $pkg_failed = untried; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6669 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6670 is in your PATH or set the PKG_CONFIG environment variable to the full
6671 path to pkg-config.
6673 Alternatively, you may set the environment variables fontconfig_CFLAGS
6674 and fontconfig_LIBS to avoid the need to call pkg-config.
6675 See the pkg-config man page for more details.
6677 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6678 See \`config.log' for more details" "$LINENO" 5; }
6679 else
6680 fontconfig_CFLAGS=$pkg_cv_fontconfig_CFLAGS
6681 fontconfig_LIBS=$pkg_cv_fontconfig_LIBS
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6683 $as_echo "yes" >&6; }
6686 for ac_header in ghostscript/gdevdsp.h
6687 do :
6688 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/gdevdsp.h" "ac_cv_header_ghostscript_gdevdsp_h" "$ac_includes_default"
6689 if test "x$ac_cv_header_ghostscript_gdevdsp_h" = xyes; then :
6690 cat >>confdefs.h <<_ACEOF
6691 #define HAVE_GHOSTSCRIPT_GDEVDSP_H 1
6692 _ACEOF
6694 GS_LIBS=-lgs
6695 $as_echo "#define HAVE_GS 1" >>confdefs.h
6698 else
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building xcircuit without ghostscript rendering" >&5
6701 $as_echo "$as_me: WARNING: Building xcircuit without ghostscript rendering" >&2;}
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Install the ghostscript-devel package to solve this" >&5
6703 $as_echo "$as_me: WARNING: Install the ghostscript-devel package to solve this" >&2;}
6708 done
6714 # Check whether --with-tcl was given.
6715 if test "${with_tcl+set}" = set; then :
6716 withval=$with_tcl;
6717 xc_with_tcl=$withval
6718 if test "$withval" == "no" -o "$withval" == "NO"; then
6719 xc_with_tcl=""
6727 # Check whether --with-tk was given.
6728 if test "${with_tk+set}" = set; then :
6729 withval=$with_tk; xc_with_tk=$withval
6733 # Check whether --with-tclincls was given.
6734 if test "${with_tclincls+set}" = set; then :
6735 withval=$with_tclincls; xc_with_tcl_includes=$withval
6739 # Check whether --with-tkincls was given.
6740 if test "${with_tkincls+set}" = set; then :
6741 withval=$with_tkincls; xc_with_tk_includes=$withval
6745 # Check whether --with-tcllibs was given.
6746 if test "${with_tcllibs+set}" = set; then :
6747 withval=$with_tcllibs; xc_with_tcl_libraries=$withval
6751 # Check whether --with-tklibs was given.
6752 if test "${with_tklibs+set}" = set; then :
6753 withval=$with_tklibs; xc_with_tk_libraries=$withval
6757 # -----------------------------------------------------------------------
6759 # Find the Tcl build configuration file "tclConfig.sh"
6761 # -----------------------------------------------------------------------
6763 if test "x$xc_with_tcl" != "x" ; then
6765 TCL_INC_DIR="."
6766 TK_INC_DIR="."
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
6769 $as_echo_n "checking for tclConfig.sh... " >&6; }
6770 tcl_config_sh=""
6772 if test "$xc_with_tcl" = "no" ; then
6773 xc_with_tcl=""
6774 elif test "$xc_with_tcl" != "yes" ; then
6776 # Verify that a tclConfig.sh file exists in the directory specified
6777 # by --with-tcl.
6779 for dir in \
6780 $xc_with_tcl
6782 if test -r "$dir/tclConfig.sh" ; then
6783 tcl_config_sh="$dir/tclConfig.sh"
6784 break
6785 elif test -r "$dir/lib/tclConfig.sh" ; then
6786 tcl_config_sh="$dir/lib/tclConfig.sh"
6787 break
6789 done
6790 else
6792 # Otherwise, search for Tcl configuration file.
6795 # 1. Search previously named locations.
6797 for dir in \
6798 $prefix \
6799 $exec_prefix
6801 if test -r "$dir/tclConfig.sh" ; then
6802 tcl_config_sh="$dir/tclConfig.sh"
6803 break
6804 elif test -r "$dir/lib/tclConfig.sh" ; then
6805 tcl_config_sh="$dir/lib/tclConfig.sh"
6806 break
6808 done
6810 # 2. Search standard locations.
6812 if test "x$tcl_config_sh" = "x" ; then
6813 for dir in \
6814 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6815 /usr/local/tcl \
6816 /usr/local/lib \
6817 /usr/local \
6818 `ls -dr /usr/share/tcltk/tcl[7-9].[0-9]* 2>/dev/null` \
6819 /sw/lib \
6820 /usr/lib \
6821 /usr/lib64 \
6822 /usr
6824 if test -r "$dir/tclConfig.sh" ; then
6825 tcl_config_sh="$dir/tclConfig.sh"
6826 break
6827 elif test -r "$dir/lib/tclConfig.sh" ; then
6828 tcl_config_sh="$dir/lib/tclConfig.sh"
6829 break
6831 done
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
6836 $as_echo "${tcl_config_sh}" >&6; }
6838 if test "x$tcl_config_sh" = "x" ; then
6839 echo "can't find Tcl configuration script \"tclConfig.sh\""
6840 echo "Reverting to non-Tcl compilation"
6841 xc_with_tcl=""
6845 # -----------------------------------------------------------------------
6847 # Find the Tk build configuration file "tkConfig.sh"
6849 # -----------------------------------------------------------------------
6851 if test "x$xc_with_tcl" != "x" ; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
6853 $as_echo_n "checking for tkConfig.sh... " >&6; }
6854 tk_config_sh=""
6855 if test "$xc_with_tk" != "yes"; then
6857 # Verify that a tkConfig.sh file exists in the directory specified
6858 # by --with-tcl or --with-tk.
6860 for dir in \
6861 $xc_with_tk \
6862 $xc_with_tcl
6864 if test -r "$dir/tkConfig.sh" ; then
6865 tk_config_sh="$dir/tkConfig.sh"
6866 break
6867 elif test -r "$dir/lib/tkConfig.sh" ; then
6868 tk_config_sh="$dir/lib/tkConfig.sh"
6869 break
6871 done
6872 else
6874 # Search for Tk configuration file.
6878 # 1. Search previously named locations.
6880 for dir in \
6881 $prefix \
6882 $exec_prefix
6884 if test -r "$dir/tkConfig.sh" ; then
6885 tk_config_sh="$dir/tkConfig.sh"
6886 break
6887 elif test -r "$dir/lib/tkConfig.sh" ; then
6888 tk_config_sh="$dir/lib/tkConfig.sh"
6889 break
6891 done
6893 # 2. Search standard locations.
6895 if test "x$tk_config_sh" = "x" ; then
6896 for dir in \
6897 /usr/local \
6898 /usr \
6899 `ls -dr /usr/local/lib/tk[7-9].[0-9]* 2>/dev/null` \
6900 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \
6901 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \
6902 `ls -dr /usr/local/tk[7-9].[0-9]* 2>/dev/null` \
6903 /usr/local/tk \
6904 `ls -dr /usr/local/lib/tcl[7-9].[0-9]* 2>/dev/null` \
6905 `ls -dr /usr/lib/tcl/tk[7-9].[0-9]* 2>/dev/null` \
6906 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6907 `ls -dr /usr/share/tcltk/tk[7-9].[0-9]* 2>/dev/null` \
6908 /sw/lib \
6909 /usr/lib \
6910 /usr/lib64 \
6911 ${x_libraries}
6913 if test -r "$dir/tkConfig.sh" ; then
6914 tk_config_sh="$dir/tkConfig.sh"
6915 break
6916 elif test -r "$dir/lib/tkConfig.sh" ; then
6917 tk_config_sh="$dir/lib/tkConfig.sh"
6918 break
6920 done
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5
6924 $as_echo "${tk_config_sh}" >&6; }
6926 if test "x$tk_config_sh" = "x" ; then
6927 echo "can't find Tk configuration script \"tkConfig.sh\""
6928 echo "Reverting to non-Tcl compilation"
6929 xc_with_tcl=""
6933 # -----------------------------------------------------------------------
6935 # Source in the Tcl/Tk configuration scripts.
6937 # This didn't work so well in the pre-8.5 days, but
6938 # seems to be okay now.
6940 # -----------------------------------------------------------------------
6942 if test "x$xc_with_tcl" != "x" ; then
6943 . $tcl_config_sh
6944 . $tk_config_sh
6946 # Should probably trust the config file contents, but this configure
6947 # file checks the Tcl and Tk include and lib directories. Since
6948 # the config file doesn't separate out the libraries from the strings
6949 # passed to the compiler/linker, do it manually here.
6951 # Extract TCL_LIB_DIR from TCL_LIB_SPEC
6952 # Extract TK_LIB_DIR from TK_LIB_SPEC
6953 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC
6954 # Extract TK_INC_DIR from TK_INCLUDE_SPEC
6956 # These will be the defaults unless overridden by configure command line
6958 tmpstr=${TCL_LIB_SPEC#*-L}
6959 TCL_LIB_DIR=${tmpstr% -l*}
6960 tmpstr=${TK_LIB_SPEC#*-L}
6961 TK_LIB_DIR=${tmpstr% -l*}
6962 TCL_INC_DIR=${TCL_INCLUDE_SPEC#*-I}
6963 TK_INC_DIR=${TK_INCLUDE_SPEC#*-I}
6965 LIBS="${TCL_LIBS} ${LIBS}"
6967 if test "$TCL_VERSION" = "$TK_VERSION" ; then
6969 else
6970 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)"
6971 echo "Reverting to non-Tcl compilation"
6972 xc_with_tcl=""
6976 # -----------------------------------------------------------------------
6977 # Rely on TCL_INCLUDE_SPEC from tclConfig.sh unless "--with-tclincls"
6978 # overrides. With TCL_INCLUDE_SPEC, pull out TCL_INC_DIR
6979 # -----------------------------------------------------------------------
6981 if test "x$xc_with_tcl" != "x" ; then
6982 if test "x${xc_with_tcl_includes}" != "x" ; then
6983 if test -r "${xc_with_tcl_includes}/tcl.h" ; then
6984 TCL_INC_DIR=${xc_with_tcl_includes}
6985 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
6986 echo "Can't find tcl.h in \"${xc_with_tcl_includes}\""
6987 echo "Reverting to non-Tcl compilation"
6988 xc_with_tcl=""
6990 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
6991 for dir in \
6992 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
6993 ${TCL_PREFIX}/include \
6994 ${TCL_SRC_DIR}/generic \
6995 ${TCL_INC_DIR}
6997 if test -r "$dir/tcl.h" ; then
6998 TCL_INC_DIR=$dir
6999 TCL_INCLUDE_SPEC="-I${TCL_INC_DIR}"
7000 break
7002 done
7003 if test "x${TCL_INC_DIR}" = "x" ; then
7004 echo "Can't find tcl.h header file"
7005 echo "Reverting to non-Tcl compilation"
7006 xc_with_tcl=""
7008 else
7009 TCL_INC_DIR=`echo ${TCL_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7013 # -----------------------------------------------------------------------
7014 # Rely on TK_INCLUDE_SPEC from tkConfig.sh unless "--with-tkincls"
7015 # overrides. With TK_INCLUDE_SPEC, pull out TK_INC_DIR
7016 # -----------------------------------------------------------------------
7018 if test "x$xc_with_tcl" != "x" ; then
7019 if test "x${xc_with_tk_includes}" != "x" ; then
7020 if test -r "${xc_with_tk_includes}/tk.h" ; then
7021 TK_INC_DIR=${xc_with_tk_includes}
7022 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7023 echo "Can't find tk.h in \"${xc_with_tk_includes}\""
7024 echo "Reverting to non-Tcl compilation"
7025 xc_with_tcl=""
7027 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7028 for dir in \
7029 ${TK_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7030 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
7031 ${TK_PREFIX}/include \
7032 ${TK_SRC_DIR}/generic \
7033 ${TK_INC_DIR}
7035 if test -r "$dir/tk.h" ; then
7036 TK_INC_DIR=$dir
7037 TK_INCLUDE_SPEC="-I${TK_INC_DIR}"
7038 break
7040 done
7041 if test "x${TK_INC_DIR}" = "x" ; then
7042 echo "Can't find tk.h header file"
7043 echo "Reverting to non-Tcl compilation"
7044 xc_with_tcl=""
7046 else
7047 TK_INC_DIR=`echo ${TK_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7051 # --------------------------------------------------------------
7052 # Rely on TCL_LIB_SPEC from tclConfig.sh unless "--with-tcllibs"
7053 # overrides. With TCL_LIB_SPEC, pull out TCL_LIB_DIR
7054 # --------------------------------------------------------------
7056 if test "x$xc_with_tcl" != "x" ; then
7057 if test "x${xc_with_tcl_libraries}" != "x" ; then
7058 TCL_LIB_SPEC=""
7059 for libname in \
7060 "${xc_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7062 if test -r "$libname" ; then
7063 TCL_LIB_DIR="${xc_with_tcl_libraries}"
7064 break
7066 done
7067 if test "x${TCL_LIB_DIR}" == "x" ; then
7068 echo "Can't find tcl library in \"${xc_with_tcl_libraries}\""
7069 echo "Reverting to non-Tcl compile"
7070 xc_with_tcl=""
7072 elif test "x${TCL_LIB_SPEC}" == "x" ; then
7073 for libpfix in "lib64" "lib"
7075 libname="${TCL_EXEC_PREFIX}/${libpfix}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7076 if test -r "$libname" ; then
7077 TCL_LIB_DIR="${TCL_EXEC_PREFIX}/${libpfix}"
7078 break
7080 done
7081 if test "x${TCL_LIB_DIR}" = "x" ; then
7082 echo "Can't find tcl library"
7083 echo "Reverting to non-Tcl compile"
7084 xc_with_tcl=""
7086 else
7087 TCL_LIB_DIR=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7091 # --------------------------------------------------------------
7092 # Rely on TK_LIB_SPEC from tkConfig.sh unless "--with-tklibs"
7093 # overrides. With TK_LIB_SPEC, pull out TK_LIB_DIR
7094 # --------------------------------------------------------------
7096 if test "x$xc_with_tcl" != "x" ; then
7097 if test "x${xc_with_tk_libraries}" != "x" ; then
7098 TK_LIB_SPEC=""
7099 for libname in \
7100 "${xc_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7102 if test -r "$libname" ; then
7103 TK_LIB_DIR="${xc_with_tk_libraries}"
7104 break
7106 done
7107 if test "x${TK_LIB_DIR}" == "x" ; then
7108 echo "Can't find tk library in \"${xc_with_tk_libraries}\""
7109 echo "Reverting to non-Tcl compile"
7110 xc_with_tcl=""
7112 elif test "x${TK_LIB_SPEC}" == "x" ; then
7113 for libpfix in "lib64" "lib"
7115 libname="${TK_EXEC_PREFIX}/${libpfix}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7116 if test -r "$libname" ; then
7117 TK_LIB_DIR="${TK_EXEC_PREFIX}/${libpfix}"
7118 break
7120 done
7121 if test "x${TK_LIB_DIR}" = "x" ; then
7122 echo "Can't find tk library"
7123 echo "Reverting to non-Tcl compile"
7124 xc_with_tcl=""
7126 else
7127 TK_LIB_DIR=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7131 #--------------------------------------------------------------------
7132 # If TCL_LIB_SPEC and/or TK_LIB_SPEC do not exist, construct them
7133 #--------------------------------------------------------------------
7135 if test "x$xc_with_tcl" != "x" ; then
7136 if test "x${TCL_LIB_SPEC}" == "x" ; then
7137 case $target in
7138 *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*)
7139 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
7142 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
7144 esac
7145 TCL_LIB_SPEC="-L${TCL_LIB_DIR} -l${TCL_LIB_NAME}"
7148 if test "x${TK_LIB_SPEC}" == "x" ; then
7149 case $target in
7150 *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*)
7151 TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
7154 TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
7156 esac
7157 TK_LIB_SPEC="-L${TK_LIB_DIR} -l${TK_LIB_NAME}"
7160 # Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
7161 # We really ought to run "ldd" to confirm that the linked libraries match.
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish executable" >&5
7164 $as_echo_n "checking for wish executable... " >&6; }
7165 for dir in \
7166 ${TK_EXEC_PREFIX}/bin \
7167 ${TK_EXEC_PREFIX}
7169 for wishexe in \
7170 wish \
7171 wish${TK_VERSION} \
7172 wish.exe \
7173 wish${TK_VERSION}.exe
7175 if test -r "$dir/$wishexe" ; then
7176 WISH_EXE=$dir/$wishexe
7177 break
7179 done
7180 if test "x${WISH_EXE}" != "x" ; then
7181 break
7183 done
7184 if test "x${WISH_EXE}" = "x" ; then
7185 echo "Warning: Can't find executable for \"wish\". You may have to"
7186 echo "manually set the value for WISH_EXE in the xcircuit startup script."
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_EXE}" >&5
7191 $as_echo "${WISH_EXE}" >&6; }
7194 # Have to define SHDLIB_EXT here even though we have to do it below, too.
7195 case $target in
7196 *-hpux*)
7197 SHDLIB_EXT=".sl"
7199 *cygwin*)
7200 SHDLIB_EXT=".dll.a"
7202 *-darwin*)
7203 SHDLIB_EXT=".dylib"
7205 *-openbsd*)
7206 SHDLIB_EXT=".so.${TCL_LIB_FILE##*.so.}"
7209 SHDLIB_EXT=".so"
7211 esac
7215 # -----------------------------------------------------------------------
7217 # Tk libraries and header files
7219 # -----------------------------------------------------------------------
7221 if test "x$xc_with_tcl" != "x" ; then
7222 INC_SPECS="${INC_SPECS} ${TCL_INCLUDE_SPEC} ${TK_INCLUDE_SPEC}"
7223 LIB_SPECS="${LIB_SPECS} ${TCL_LIB_SPEC} ${TK_LIB_SPEC}"
7225 if test "x${loader_run_path}" = "x" ; then
7226 loader_run_path="${TCL_LIB_DIR}"
7227 else
7228 loader_run_path="${TCL_LIB_DIR}:${loader_run_path}"
7231 #--------------------------------------------------------------------
7233 # Check if we can generate shared libraries on this system. Set flags
7234 # to generate shared libraries for systems that we know about. Start
7235 # with the values found in tclConfig.sh, make changes as we know about
7236 # the different systems.
7238 #--------------------------------------------------------------------
7240 # Initialize shared library build variables
7242 if test "x${TCL_SHLIB_SUFFIX}" == "x" ; then
7243 SHDLIB_EXT=".so"
7244 else
7245 SHDLIB_EXT="${TCL_SHLIB_SUFFIX}"
7248 if test "x${TCL_SHLIB_LD}" == "x" ; then
7250 # Construct shared library build arguments the painful way
7251 # This is not expected to be necessary, so the number of
7252 # supported systems has been pared down to a minimum.
7254 LDDL_FLAGS="-shared"
7255 LD_RUN_PATH=""
7256 SHLIB_LD="${CC}"
7257 EXTRA_LIB_SPECS=""
7259 case $target in
7260 *-darwin*)
7261 SHDLIB_EXT=".dylib"
7262 SHLIB_LIB_SPECS="${LIB_SPECS}"
7263 if test "${xc_with_gnu_ld}" = "yes" ; then
7264 LDDL_FLAGS="-dynamiclib -bind_at_load"
7265 else
7266 LDDL_FLAGS="-single_module -dynamiclib -flat_namespace"
7267 LDDL_FLAGS="${LDDL_FLAGS} -undefined suppress -noprebind"
7268 SHLIB_CFLAGS="-I/sw/include -fno-common"
7272 *cygwin*)
7273 $as_echo "#define CYGWIN 1" >>confdefs.h
7275 SHDLIB_EXT=".dll.a"
7276 LDDL_FLAGS="-shared -Wl,--enable-auto-image-base -Wl,-rpath,${loader_run_path}"
7277 SHLIB_LIB_SPECS="${LIB_SPECS}"
7280 *-linux*)
7281 SHLIB_CFLAGS="-fPIC"
7282 LDDL_FLAGS='-shared -Wl,-soname,$@'
7283 LD_RUN_PATH="-Wl,-rpath,${loader_run_path}"
7285 EXTRA_LIB_SPECS="-ldl"
7287 case $target in
7288 x86_64-*)
7289 # AMD 64-bit archictecture
7290 # Add -fPIC to standard compile switch
7291 CFLAGS="${CFLAGS} -fPIC"
7293 esac
7296 *-netbsd*|*-freebsd*|*-openbsd*)
7297 # Not available on all versions: check for include file.
7298 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7299 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7300 test_ok=yes
7301 else
7302 test_ok=no
7306 if test "$test_ok" = yes; then
7307 SHLIB_CFLAGS="-fpic"
7308 SHLIB_LD="ld"
7309 LDDL_FLAGS="-shared"
7312 esac
7314 if test "$GCC" = "yes" ; then
7315 CFLAGS="-fPIC ${CFLAGS}"
7318 else
7320 # Rely on shared lib arguments in tclConfig.sh
7322 SHLIB_LD="${TCL_SHLIB_LD}"
7323 EXTRA_LIB_FLAGS=""
7324 LDDL_FLAGS="${TCL_LD_FLAGS}"
7325 LD_RUN_PATH=""
7327 case $target in
7328 *-linux*)
7329 LD_RUN_PATH="-Wl,-rpath,${loader_run_path}"
7331 esac
7334 # If we're running gcc, then set SHLIB_CFLAGS flags for compiling
7335 # shared libraries for gcc, instead of those of the vendor's
7336 # compiler.
7338 if test "$GCC" = "yes" ; then
7339 if test "x${TCL_SHLIB_CFLAGS}" = "x" ; then
7340 SHLIB_CFLAGS="-fPIC ${SHLIB_CFLAGS}"
7341 else
7342 SHLIB_CFLAGS="${TCL_SHLIB_CFLAGS} ${SHLIB_CFLAGS}"
7345 CFLAGS="${CFLAGS} ${SHLIB_CFLAGS}"
7347 if test "${xc_with_gnu_ld}" = "yes" ; then
7348 LDDL_FLAGS="${LDDL_FLAGS} -Wl,--version-script=symbol.map"
7365 # Check whether --enable-asg was given.
7366 if test "${enable_asg+set}" = set; then :
7367 enableval=$enable_asg;
7368 $as_echo "#define ASG 1" >>confdefs.h
7370 $as_echo "#define CONFIGURED 1" >>confdefs.h
7372 SUBDIRS="asg spiceparser"
7373 SUBLIB="asg/libasg.a spiceparser/libspiceparser.a"
7378 # Check whether --enable-lgf was given.
7379 if test "${enable_lgf+set}" = set; then :
7380 enableval=$enable_lgf;
7381 else
7383 HAVE_LGF=LGF
7384 $as_echo "#define LGF 1" >>confdefs.h
7390 # Check whether --enable-focus-fix was given.
7391 if test "${enable_focus_fix+set}" = set; then :
7392 enableval=$enable_focus_fix;
7393 else
7395 $as_echo "#define INPUT_FOCUS 1" >>confdefs.h
7402 # Check whether --with-gs was given.
7403 if test "${with_gs+set}" = set; then :
7404 withval=$with_gs;
7405 if test -f "$withval"; then
7406 GS_EXEC=$withval
7407 else
7408 GS_EXEC=gs
7411 else
7413 # Extract the first word of "gs", so it can be a program name with args.
7414 set dummy gs; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_GS_EXEC+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$GS_EXEC"; then
7421 ac_cv_prog_GS_EXEC="$GS_EXEC" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_GS_EXEC=""
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7434 done
7435 done
7436 IFS=$as_save_IFS
7438 test -z "$ac_cv_prog_GS_EXEC" && ac_cv_prog_GS_EXEC="gs"
7441 GS_EXEC=$ac_cv_prog_GS_EXEC
7442 if test -n "$GS_EXEC"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_EXEC" >&5
7444 $as_echo "$GS_EXEC" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7453 cat >>confdefs.h <<_ACEOF
7454 #define GS_EXEC "$GS_EXEC"
7455 _ACEOF
7459 # Check whether --with-ngspice was given.
7460 if test "${with_ngspice+set}" = set; then :
7461 withval=$with_ngspice;
7462 if test -f "$withval"; then
7463 SPICE_EXEC=$withval
7464 else
7465 SPICE_EXEC=ngspice
7468 else
7470 # Extract the first word of "ngspice", so it can be a program name with args.
7471 set dummy ngspice; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_SPICE_EXEC+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 if test -n "$SPICE_EXEC"; then
7478 ac_cv_prog_SPICE_EXEC="$SPICE_EXEC" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_SPICE_EXEC=""
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7491 done
7492 done
7493 IFS=$as_save_IFS
7495 test -z "$ac_cv_prog_SPICE_EXEC" && ac_cv_prog_SPICE_EXEC="ngspice"
7498 SPICE_EXEC=$ac_cv_prog_SPICE_EXEC
7499 if test -n "$SPICE_EXEC"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPICE_EXEC" >&5
7501 $as_echo "$SPICE_EXEC" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7510 cat >>confdefs.h <<_ACEOF
7511 #define SPICE_EXEC "$SPICE_EXEC"
7512 _ACEOF
7516 xc_with_python=""
7517 PYTHON=
7520 # Check whether --with-python was given.
7521 if test "${with_python+set}" = set; then :
7522 withval=$with_python; xc_with_python=$withval
7526 if test "x$xc_with_tcl" != "x" ; then
7527 xc_with_python=""
7528 elif test "$xc_with_python" = "no" ; then
7529 xc_with_python=""
7530 elif test "$xc_with_python" = "yes" ; then
7531 # Extract the first word of "python", so it can be a program name with args.
7532 set dummy python; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_path_PYTHON+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 case $PYTHON in
7539 [\\/]* | ?:[\\/]*)
7540 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7554 done
7555 done
7556 IFS=$as_save_IFS
7559 esac
7561 PYTHON=$ac_cv_path_PYTHON
7562 if test -n "$PYTHON"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7564 $as_echo "$PYTHON" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7571 elif test "x$xc_with_python" != x; then
7572 test -f "$xc_with_python" && PYTHON=$xc_with_python
7575 if test "x$PYTHON" != x; then
7576 _py_version=`$PYTHON -c 'import sys; print sys.version[0:3]'`
7577 _py_prefix=`$PYTHON -c 'import sys; print sys.prefix'`
7578 _py_exec_prefix=`$PYTHON -c 'import sys; print sys.exec_prefix'`
7580 _py_include="$_py_prefix/include/python$_py_version"
7581 _py_lib="$_py_exec_prefix/lib/python$_py_version/config"
7582 _py_makefile="$_py_lib/Makefile"
7584 if test $_py_version = 1.5; then
7585 echo
7586 echo "*** WARNING:"
7587 echo "*** Python version 1.5 detected: This version of Python has a known fatal"
7588 echo "*** bug. Disabling Python interface. If you want the embedded Python"
7589 echo "*** interface, you will need to get an updated version of Python."
7590 echo
7591 PYTHON=""
7595 if test "x$PYTHON" != x; then
7596 if test -f $_py_makefile; then
7597 _py_libs=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $_py_makefile`
7598 _py_libm=`sed -n -e 's/^LIBM=\(.*\)/\1/p' $_py_makefile`
7599 else
7600 _py_libs='-lpthread -ldl -lutil -ldb'
7601 _py_libm='-lm'
7604 # Now that we think we know where the python include and
7605 # library files are, make sure we can build a small
7606 # program against them.
7607 _save_CPPFLAGS=${CPPFLAGS}
7608 _save_LDFLAGS=${LDFLAGS}
7609 _save_LIBS=${LIBS}
7611 CPPFLAGS="$CPPFLAGS -I$_py_include"
7612 LDFLAGS="$LDFLAGS -L$_py_lib"
7614 case "$target_os" in
7615 *cygwin*)
7616 PYLIB="-lpython$_py_version"
7617 LIBS="$PYLIB.dll $LIBS $X_PRE_LIBS $_py_libs"
7620 LIBS="$LIBS -lpython$_py_version $_py_libs $_py_libm"
7622 esac
7625 HAVE_PYTHON=0
7626 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
7627 if test "x$ac_cv_header_Python_h" = xyes; then :
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Py_Initialize in -lpython$_py_version" >&5
7630 $as_echo_n "checking for Py_Initialize in -lpython$_py_version... " >&6; }
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7633 #include "Python.h"
7635 main ()
7637 Py_Initialize();
7639 return 0;
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7644 HAVE_PYTHON=1
7645 INTERPRETER=PYTHON
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7647 $as_echo "yes" >&6; }
7648 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7654 rm -f core conftest.err conftest.$ac_objext \
7655 conftest$ac_exeext conftest.$ac_ext
7660 if test "x$HAVE_PYTHON" = x0; then
7661 CPPFLAGS=$_save_CPPFLAGS
7662 LDFLAGS=$_save_LDFLAGS
7663 LIBS=$_save_LIBS
7664 PYTHON=""
7668 if test "x$PYTHON" != x; then
7669 STARTUP_FILE="xcstartup.py"
7670 INTERP_PATH="python"
7671 WRAPPER_SCRIPT=""
7672 SUBDIRS="${SUBDIRS} Xw"
7673 SUBLIB="${SUBLIB} Xw/libxcXw.a"
7674 XCIRCUIT_TARGET="xcircuit"
7675 elif test "x$xc_with_tcl" != "x" ; then
7676 INTERPRETER=TCL
7677 STARTUP_FILE="xcstartup.tcl"
7678 INTERP_PATH="tcl"
7679 WRAPPER_SCRIPT="wrapper.tcl"
7680 $as_echo "#define TCL_WRAPPER 1" >>confdefs.h
7682 XCIRCUIT_TARGET="tcl"
7683 ALL_TARGET="all-recursive"
7684 INSTALL_TARGET="install-recursive"
7685 else
7686 STARTUP_FILE="startup.script"
7687 INTERP_PATH="."
7688 WRAPPER_SCRIPT=""
7689 SUBDIRS="${SUBDIRS} Xw"
7690 SUBLIB="${SUBLIB} Xw/libxcXw.a"
7691 XCIRCUIT_TARGET="xcircuit"
7694 # Add -lm last to LDFLAGS, or Tcl/Tk's addition of -lieee can cause
7695 # an error.
7696 EXTRA_LIB_SPECS="$EXTRA_LIB_SPECS -lm"
7699 # Check whether --enable-memdebug was given.
7700 if test "${enable_memdebug+set}" = set; then :
7701 enableval=$enable_memdebug;
7702 if test "x$xc_with_tcl" = "x" ; then
7703 LIBS="${LIBS} -lefence"
7704 else
7705 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7735 ac_config_files="$ac_config_files Makefile Xw/Makefile asg/Makefile spiceparser/Makefile"
7737 cat >confcache <<\_ACEOF
7738 # This file is a shell script that caches the results of configure
7739 # tests run on this system so they can be shared between configure
7740 # scripts and configure runs, see configure's option --config-cache.
7741 # It is not useful on other systems. If it contains results you don't
7742 # want to keep, you may remove or edit it.
7744 # config.status only pays attention to the cache file if you give it
7745 # the --recheck option to rerun configure.
7747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7749 # following values.
7751 _ACEOF
7753 # The following way of writing the cache mishandles newlines in values,
7754 # but we know of no workaround that is simple, portable, and efficient.
7755 # So, we kill variables containing newlines.
7756 # Ultrix sh set writes to stderr and can't be redirected directly,
7757 # and sets the high bit in the cache file unless we assign to the vars.
7759 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7760 eval ac_val=\$$ac_var
7761 case $ac_val in #(
7762 *${as_nl}*)
7763 case $ac_var in #(
7764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7766 esac
7767 case $ac_var in #(
7768 _ | IFS | as_nl) ;; #(
7769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7770 *) { eval $ac_var=; unset $ac_var;} ;;
7771 esac ;;
7772 esac
7773 done
7775 (set) 2>&1 |
7776 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7777 *${as_nl}ac_space=\ *)
7778 # `set' does not quote correctly, so add quotes: double-quote
7779 # substitution turns \\\\ into \\, and sed turns \\ into \.
7780 sed -n \
7781 "s/'/'\\\\''/g;
7782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7783 ;; #(
7785 # `set' quotes correctly as required by POSIX, so do not add quotes.
7786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7788 esac |
7789 sort
7791 sed '
7792 /^ac_cv_env_/b end
7793 t clear
7794 :clear
7795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7796 t end
7797 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7798 :end' >>confcache
7799 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7800 if test -w "$cache_file"; then
7801 if test "x$cache_file" != "x/dev/null"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7803 $as_echo "$as_me: updating cache $cache_file" >&6;}
7804 if test ! -f "$cache_file" || test -h "$cache_file"; then
7805 cat confcache >"$cache_file"
7806 else
7807 case $cache_file in #(
7808 */* | ?:*)
7809 mv -f confcache "$cache_file"$$ &&
7810 mv -f "$cache_file"$$ "$cache_file" ;; #(
7812 mv -f confcache "$cache_file" ;;
7813 esac
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7818 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7821 rm -f confcache
7823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7824 # Let make expand exec_prefix.
7825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7827 # Transform confdefs.h into DEFS.
7828 # Protect against shell expansion while executing Makefile rules.
7829 # Protect against Makefile macro expansion.
7831 # If the first sed substitution is executed (which looks for macros that
7832 # take arguments), then branch to the quote section. Otherwise,
7833 # look for a macro that doesn't take arguments.
7834 ac_script='
7835 :mline
7836 /\\$/{
7838 s,\\\n,,
7839 b mline
7841 t clear
7842 :clear
7843 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7844 t quote
7845 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7846 t quote
7847 b any
7848 :quote
7849 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7850 s/\[/\\&/g
7851 s/\]/\\&/g
7852 s/\$/$$/g
7854 :any
7857 s/^\n//
7858 s/\n/ /g
7862 DEFS=`sed -n "$ac_script" confdefs.h`
7865 ac_libobjs=
7866 ac_ltlibobjs=
7868 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7869 # 1. Remove the extension, and $U if already installed.
7870 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7871 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7873 # will be set to the directory where LIBOBJS objects are built.
7874 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7875 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7876 done
7877 LIBOBJS=$ac_libobjs
7879 LTLIBOBJS=$ac_ltlibobjs
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7883 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7884 if test -n "$am_sleep_pid"; then
7885 # Hide warnings about reused PIDs.
7886 wait $am_sleep_pid 2>/dev/null
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7889 $as_echo "done" >&6; }
7890 if test -n "$EXEEXT"; then
7891 am__EXEEXT_TRUE=
7892 am__EXEEXT_FALSE='#'
7893 else
7894 am__EXEEXT_TRUE='#'
7895 am__EXEEXT_FALSE=
7898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7899 as_fn_error $? "conditional \"AMDEP\" was never defined.
7900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7902 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7903 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7907 : "${CONFIG_STATUS=./config.status}"
7908 ac_write_fail=0
7909 ac_clean_files_save=$ac_clean_files
7910 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7912 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7913 as_write_fail=0
7914 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7915 #! $SHELL
7916 # Generated by $as_me.
7917 # Run this file to recreate the current configuration.
7918 # Compiler output produced by configure, useful for debugging
7919 # configure, is in config.log if it exists.
7921 debug=false
7922 ac_cs_recheck=false
7923 ac_cs_silent=false
7925 SHELL=\${CONFIG_SHELL-$SHELL}
7926 export SHELL
7927 _ASEOF
7928 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7929 ## -------------------- ##
7930 ## M4sh Initialization. ##
7931 ## -------------------- ##
7933 # Be more Bourne compatible
7934 DUALCASE=1; export DUALCASE # for MKS sh
7935 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7936 emulate sh
7937 NULLCMD=:
7938 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7939 # is contrary to our usage. Disable this feature.
7940 alias -g '${1+"$@"}'='"$@"'
7941 setopt NO_GLOB_SUBST
7942 else
7943 case `(set -o) 2>/dev/null` in #(
7944 *posix*) :
7945 set -o posix ;; #(
7946 *) :
7948 esac
7952 as_nl='
7954 export as_nl
7955 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7956 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7959 # Prefer a ksh shell builtin over an external printf program on Solaris,
7960 # but without wasting forks for bash or zsh.
7961 if test -z "$BASH_VERSION$ZSH_VERSION" \
7962 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7963 as_echo='print -r --'
7964 as_echo_n='print -rn --'
7965 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7966 as_echo='printf %s\n'
7967 as_echo_n='printf %s'
7968 else
7969 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7970 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7971 as_echo_n='/usr/ucb/echo -n'
7972 else
7973 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7974 as_echo_n_body='eval
7975 arg=$1;
7976 case $arg in #(
7977 *"$as_nl"*)
7978 expr "X$arg" : "X\\(.*\\)$as_nl";
7979 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7980 esac;
7981 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7983 export as_echo_n_body
7984 as_echo_n='sh -c $as_echo_n_body as_echo'
7986 export as_echo_body
7987 as_echo='sh -c $as_echo_body as_echo'
7990 # The user is always right.
7991 if test "${PATH_SEPARATOR+set}" != set; then
7992 PATH_SEPARATOR=:
7993 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7994 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7995 PATH_SEPARATOR=';'
8000 # IFS
8001 # We need space, tab and new line, in precisely that order. Quoting is
8002 # there to prevent editors from complaining about space-tab.
8003 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8004 # splitting by setting IFS to empty value.)
8005 IFS=" "" $as_nl"
8007 # Find who we are. Look in the path if we contain no directory separator.
8008 as_myself=
8009 case $0 in #((
8010 *[\\/]* ) as_myself=$0 ;;
8011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8017 done
8018 IFS=$as_save_IFS
8021 esac
8022 # We did not find ourselves, most probably we were run as `sh COMMAND'
8023 # in which case we are not to be found in the path.
8024 if test "x$as_myself" = x; then
8025 as_myself=$0
8027 if test ! -f "$as_myself"; then
8028 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8029 exit 1
8032 # Unset variables that we do not need and which cause bugs (e.g. in
8033 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8034 # suppresses any "Segmentation fault" message there. '((' could
8035 # trigger a bug in pdksh 5.2.14.
8036 for as_var in BASH_ENV ENV MAIL MAILPATH
8037 do eval test x\${$as_var+set} = xset \
8038 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8039 done
8040 PS1='$ '
8041 PS2='> '
8042 PS4='+ '
8044 # NLS nuisances.
8045 LC_ALL=C
8046 export LC_ALL
8047 LANGUAGE=C
8048 export LANGUAGE
8050 # CDPATH.
8051 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8054 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8055 # ----------------------------------------
8056 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8057 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8058 # script with STATUS, using 1 if that was 0.
8059 as_fn_error ()
8061 as_status=$1; test $as_status -eq 0 && as_status=1
8062 if test "$4"; then
8063 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8064 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8066 $as_echo "$as_me: error: $2" >&2
8067 as_fn_exit $as_status
8068 } # as_fn_error
8071 # as_fn_set_status STATUS
8072 # -----------------------
8073 # Set $? to STATUS, without forking.
8074 as_fn_set_status ()
8076 return $1
8077 } # as_fn_set_status
8079 # as_fn_exit STATUS
8080 # -----------------
8081 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8082 as_fn_exit ()
8084 set +e
8085 as_fn_set_status $1
8086 exit $1
8087 } # as_fn_exit
8089 # as_fn_unset VAR
8090 # ---------------
8091 # Portably unset VAR.
8092 as_fn_unset ()
8094 { eval $1=; unset $1;}
8096 as_unset=as_fn_unset
8097 # as_fn_append VAR VALUE
8098 # ----------------------
8099 # Append the text in VALUE to the end of the definition contained in VAR. Take
8100 # advantage of any shell optimizations that allow amortized linear growth over
8101 # repeated appends, instead of the typical quadratic growth present in naive
8102 # implementations.
8103 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8104 eval 'as_fn_append ()
8106 eval $1+=\$2
8108 else
8109 as_fn_append ()
8111 eval $1=\$$1\$2
8113 fi # as_fn_append
8115 # as_fn_arith ARG...
8116 # ------------------
8117 # Perform arithmetic evaluation on the ARGs, and store the result in the
8118 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8119 # must be portable across $(()) and expr.
8120 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8121 eval 'as_fn_arith ()
8123 as_val=$(( $* ))
8125 else
8126 as_fn_arith ()
8128 as_val=`expr "$@" || test $? -eq 1`
8130 fi # as_fn_arith
8133 if expr a : '\(a\)' >/dev/null 2>&1 &&
8134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8135 as_expr=expr
8136 else
8137 as_expr=false
8140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8141 as_basename=basename
8142 else
8143 as_basename=false
8146 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8147 as_dirname=dirname
8148 else
8149 as_dirname=false
8152 as_me=`$as_basename -- "$0" ||
8153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8154 X"$0" : 'X\(//\)$' \| \
8155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8156 $as_echo X/"$0" |
8157 sed '/^.*\/\([^/][^/]*\)\/*$/{
8158 s//\1/
8161 /^X\/\(\/\/\)$/{
8162 s//\1/
8165 /^X\/\(\/\).*/{
8166 s//\1/
8169 s/.*/./; q'`
8171 # Avoid depending upon Character Ranges.
8172 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8173 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8174 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8175 as_cr_digits='0123456789'
8176 as_cr_alnum=$as_cr_Letters$as_cr_digits
8178 ECHO_C= ECHO_N= ECHO_T=
8179 case `echo -n x` in #(((((
8180 -n*)
8181 case `echo 'xy\c'` in
8182 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8183 xy) ECHO_C='\c';;
8184 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8185 ECHO_T=' ';;
8186 esac;;
8188 ECHO_N='-n';;
8189 esac
8191 rm -f conf$$ conf$$.exe conf$$.file
8192 if test -d conf$$.dir; then
8193 rm -f conf$$.dir/conf$$.file
8194 else
8195 rm -f conf$$.dir
8196 mkdir conf$$.dir 2>/dev/null
8198 if (echo >conf$$.file) 2>/dev/null; then
8199 if ln -s conf$$.file conf$$ 2>/dev/null; then
8200 as_ln_s='ln -s'
8201 # ... but there are two gotchas:
8202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8204 # In both cases, we have to default to `cp -pR'.
8205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8206 as_ln_s='cp -pR'
8207 elif ln conf$$.file conf$$ 2>/dev/null; then
8208 as_ln_s=ln
8209 else
8210 as_ln_s='cp -pR'
8212 else
8213 as_ln_s='cp -pR'
8215 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8216 rmdir conf$$.dir 2>/dev/null
8219 # as_fn_mkdir_p
8220 # -------------
8221 # Create "$as_dir" as a directory, including parents if necessary.
8222 as_fn_mkdir_p ()
8225 case $as_dir in #(
8226 -*) as_dir=./$as_dir;;
8227 esac
8228 test -d "$as_dir" || eval $as_mkdir_p || {
8229 as_dirs=
8230 while :; do
8231 case $as_dir in #(
8232 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8233 *) as_qdir=$as_dir;;
8234 esac
8235 as_dirs="'$as_qdir' $as_dirs"
8236 as_dir=`$as_dirname -- "$as_dir" ||
8237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8238 X"$as_dir" : 'X\(//\)[^/]' \| \
8239 X"$as_dir" : 'X\(//\)$' \| \
8240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8241 $as_echo X"$as_dir" |
8242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8243 s//\1/
8246 /^X\(\/\/\)[^/].*/{
8247 s//\1/
8250 /^X\(\/\/\)$/{
8251 s//\1/
8254 /^X\(\/\).*/{
8255 s//\1/
8258 s/.*/./; q'`
8259 test -d "$as_dir" && break
8260 done
8261 test -z "$as_dirs" || eval "mkdir $as_dirs"
8262 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8265 } # as_fn_mkdir_p
8266 if mkdir -p . 2>/dev/null; then
8267 as_mkdir_p='mkdir -p "$as_dir"'
8268 else
8269 test -d ./-p && rmdir ./-p
8270 as_mkdir_p=false
8274 # as_fn_executable_p FILE
8275 # -----------------------
8276 # Test if FILE is an executable regular file.
8277 as_fn_executable_p ()
8279 test -f "$1" && test -x "$1"
8280 } # as_fn_executable_p
8281 as_test_x='test -x'
8282 as_executable_p=as_fn_executable_p
8284 # Sed expression to map a string onto a valid CPP name.
8285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8287 # Sed expression to map a string onto a valid variable name.
8288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8291 exec 6>&1
8292 ## ----------------------------------- ##
8293 ## Main body of $CONFIG_STATUS script. ##
8294 ## ----------------------------------- ##
8295 _ASEOF
8296 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8299 # Save the log message, to keep $0 and so on meaningful, and to
8300 # report actual input values of CONFIG_FILES etc. instead of their
8301 # values after options handling.
8302 ac_log="
8303 This file was extended by $as_me, which was
8304 generated by GNU Autoconf 2.69. Invocation command line was
8306 CONFIG_FILES = $CONFIG_FILES
8307 CONFIG_HEADERS = $CONFIG_HEADERS
8308 CONFIG_LINKS = $CONFIG_LINKS
8309 CONFIG_COMMANDS = $CONFIG_COMMANDS
8310 $ $0 $@
8312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8315 _ACEOF
8317 case $ac_config_files in *"
8318 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8319 esac
8323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8324 # Files that config.status was made for.
8325 config_files="$ac_config_files"
8326 config_commands="$ac_config_commands"
8328 _ACEOF
8330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8331 ac_cs_usage="\
8332 \`$as_me' instantiates files and other configuration actions
8333 from templates according to the current configuration. Unless the files
8334 and actions are specified as TAGs, all are instantiated by default.
8336 Usage: $0 [OPTION]... [TAG]...
8338 -h, --help print this help, then exit
8339 -V, --version print version number and configuration settings, then exit
8340 --config print configuration, then exit
8341 -q, --quiet, --silent
8342 do not print progress messages
8343 -d, --debug don't remove temporary files
8344 --recheck update $as_me by reconfiguring in the same conditions
8345 --file=FILE[:TEMPLATE]
8346 instantiate the configuration file FILE
8348 Configuration files:
8349 $config_files
8351 Configuration commands:
8352 $config_commands
8354 Report bugs to the package provider."
8356 _ACEOF
8357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8358 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8359 ac_cs_version="\\
8360 config.status
8361 configured by $0, generated by GNU Autoconf 2.69,
8362 with options \\"\$ac_cs_config\\"
8364 Copyright (C) 2012 Free Software Foundation, Inc.
8365 This config.status script is free software; the Free Software Foundation
8366 gives unlimited permission to copy, distribute and modify it."
8368 ac_pwd='$ac_pwd'
8369 srcdir='$srcdir'
8370 INSTALL='$INSTALL'
8371 MKDIR_P='$MKDIR_P'
8372 AWK='$AWK'
8373 test -n "\$AWK" || AWK=awk
8374 _ACEOF
8376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8377 # The default lists apply if the user does not specify any file.
8378 ac_need_defaults=:
8379 while test $# != 0
8381 case $1 in
8382 --*=?*)
8383 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8384 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8385 ac_shift=:
8387 --*=)
8388 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8389 ac_optarg=
8390 ac_shift=:
8393 ac_option=$1
8394 ac_optarg=$2
8395 ac_shift=shift
8397 esac
8399 case $ac_option in
8400 # Handling of the options.
8401 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8402 ac_cs_recheck=: ;;
8403 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8404 $as_echo "$ac_cs_version"; exit ;;
8405 --config | --confi | --conf | --con | --co | --c )
8406 $as_echo "$ac_cs_config"; exit ;;
8407 --debug | --debu | --deb | --de | --d | -d )
8408 debug=: ;;
8409 --file | --fil | --fi | --f )
8410 $ac_shift
8411 case $ac_optarg in
8412 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8413 '') as_fn_error $? "missing file argument" ;;
8414 esac
8415 as_fn_append CONFIG_FILES " '$ac_optarg'"
8416 ac_need_defaults=false;;
8417 --he | --h | --help | --hel | -h )
8418 $as_echo "$ac_cs_usage"; exit ;;
8419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8420 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8421 ac_cs_silent=: ;;
8423 # This is an error.
8424 -*) as_fn_error $? "unrecognized option: \`$1'
8425 Try \`$0 --help' for more information." ;;
8427 *) as_fn_append ac_config_targets " $1"
8428 ac_need_defaults=false ;;
8430 esac
8431 shift
8432 done
8434 ac_configure_extra_args=
8436 if $ac_cs_silent; then
8437 exec 6>/dev/null
8438 ac_configure_extra_args="$ac_configure_extra_args --silent"
8441 _ACEOF
8442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8443 if \$ac_cs_recheck; then
8444 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8445 shift
8446 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8447 CONFIG_SHELL='$SHELL'
8448 export CONFIG_SHELL
8449 exec "\$@"
8452 _ACEOF
8453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8454 exec 5>>config.log
8456 echo
8457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8458 ## Running $as_me. ##
8459 _ASBOX
8460 $as_echo "$ac_log"
8461 } >&5
8463 _ACEOF
8464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8466 # INIT-COMMANDS
8468 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8470 _ACEOF
8472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8474 # Handling of arguments.
8475 for ac_config_target in $ac_config_targets
8477 case $ac_config_target in
8478 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8479 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8480 "Xw/Makefile") CONFIG_FILES="$CONFIG_FILES Xw/Makefile" ;;
8481 "asg/Makefile") CONFIG_FILES="$CONFIG_FILES asg/Makefile" ;;
8482 "spiceparser/Makefile") CONFIG_FILES="$CONFIG_FILES spiceparser/Makefile" ;;
8484 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8485 esac
8486 done
8489 # If the user did not use the arguments to specify the items to instantiate,
8490 # then the envvar interface is used. Set only those that are not.
8491 # We use the long form for the default assignment because of an extremely
8492 # bizarre bug on SunOS 4.1.3.
8493 if $ac_need_defaults; then
8494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8495 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8498 # Have a temporary directory for convenience. Make it in the build tree
8499 # simply because there is no reason against having it here, and in addition,
8500 # creating and moving files from /tmp can sometimes cause problems.
8501 # Hook for its removal unless debugging.
8502 # Note that there is a small window in which the directory will not be cleaned:
8503 # after its creation but before its name has been assigned to `$tmp'.
8504 $debug ||
8506 tmp= ac_tmp=
8507 trap 'exit_status=$?
8508 : "${ac_tmp:=$tmp}"
8509 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8511 trap 'as_fn_exit 1' 1 2 13 15
8513 # Create a (secure) tmp directory for tmp files.
8516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8517 test -d "$tmp"
8518 } ||
8520 tmp=./conf$$-$RANDOM
8521 (umask 077 && mkdir "$tmp")
8522 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8523 ac_tmp=$tmp
8525 # Set up the scripts for CONFIG_FILES section.
8526 # No need to generate them if there are no CONFIG_FILES.
8527 # This happens for instance with `./config.status config.h'.
8528 if test -n "$CONFIG_FILES"; then
8531 ac_cr=`echo X | tr X '\015'`
8532 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8533 # But we know of no other shell where ac_cr would be empty at this
8534 # point, so we can use a bashism as a fallback.
8535 if test "x$ac_cr" = x; then
8536 eval ac_cr=\$\'\\r\'
8538 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8539 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8540 ac_cs_awk_cr='\\r'
8541 else
8542 ac_cs_awk_cr=$ac_cr
8545 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8546 _ACEOF
8550 echo "cat >conf$$subs.awk <<_ACEOF" &&
8551 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8552 echo "_ACEOF"
8553 } >conf$$subs.sh ||
8554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8555 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8556 ac_delim='%!_!# '
8557 for ac_last_try in false false false false false :; do
8558 . ./conf$$subs.sh ||
8559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8561 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8562 if test $ac_delim_n = $ac_delim_num; then
8563 break
8564 elif $ac_last_try; then
8565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8566 else
8567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8569 done
8570 rm -f conf$$subs.sh
8572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8573 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8574 _ACEOF
8575 sed -n '
8577 s/^/S["/; s/!.*/"]=/
8580 s/^[^!]*!//
8581 :repl
8582 t repl
8583 s/'"$ac_delim"'$//
8584 t delim
8587 s/\(.\{148\}\)..*/\1/
8588 t more1
8589 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8592 b repl
8593 :more1
8594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8597 s/.\{148\}//
8598 t nl
8599 :delim
8601 s/\(.\{148\}\)..*/\1/
8602 t more2
8603 s/["\\]/\\&/g; s/^/"/; s/$/"/
8606 :more2
8607 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8610 s/.\{148\}//
8611 t delim
8612 ' <conf$$subs.awk | sed '
8613 /^[^""]/{
8615 s/\n//
8617 ' >>$CONFIG_STATUS || ac_write_fail=1
8618 rm -f conf$$subs.awk
8619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8620 _ACAWK
8621 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8622 for (key in S) S_is_set[key] = 1
8623 FS = "\a"
8627 line = $ 0
8628 nfields = split(line, field, "@")
8629 substed = 0
8630 len = length(field[1])
8631 for (i = 2; i < nfields; i++) {
8632 key = field[i]
8633 keylen = length(key)
8634 if (S_is_set[key]) {
8635 value = S[key]
8636 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8637 len += length(value) + length(field[++i])
8638 substed = 1
8639 } else
8640 len += 1 + keylen
8643 print line
8646 _ACAWK
8647 _ACEOF
8648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8649 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8650 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8651 else
8653 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8654 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8655 _ACEOF
8657 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8658 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8659 # trailing colons and then remove the whole line if VPATH becomes empty
8660 # (actually we leave an empty line to preserve line numbers).
8661 if test "x$srcdir" = x.; then
8662 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8664 s///
8665 s/^/:/
8666 s/[ ]*$/:/
8667 s/:\$(srcdir):/:/g
8668 s/:\${srcdir}:/:/g
8669 s/:@srcdir@:/:/g
8670 s/^:*//
8671 s/:*$//
8673 s/\(=[ ]*\).*/\1/
8675 s/\n//
8676 s/^[^=]*=[ ]*$//
8680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8681 fi # test -n "$CONFIG_FILES"
8684 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
8685 shift
8686 for ac_tag
8688 case $ac_tag in
8689 :[FHLC]) ac_mode=$ac_tag; continue;;
8690 esac
8691 case $ac_mode$ac_tag in
8692 :[FHL]*:*);;
8693 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8694 :[FH]-) ac_tag=-:-;;
8695 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8696 esac
8697 ac_save_IFS=$IFS
8698 IFS=:
8699 set x $ac_tag
8700 IFS=$ac_save_IFS
8701 shift
8702 ac_file=$1
8703 shift
8705 case $ac_mode in
8706 :L) ac_source=$1;;
8707 :[FH])
8708 ac_file_inputs=
8709 for ac_f
8711 case $ac_f in
8712 -) ac_f="$ac_tmp/stdin";;
8713 *) # Look for the file first in the build tree, then in the source tree
8714 # (if the path is not absolute). The absolute path cannot be DOS-style,
8715 # because $ac_f cannot contain `:'.
8716 test -f "$ac_f" ||
8717 case $ac_f in
8718 [\\/$]*) false;;
8719 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8720 esac ||
8721 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8722 esac
8723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8724 as_fn_append ac_file_inputs " '$ac_f'"
8725 done
8727 # Let's still pretend it is `configure' which instantiates (i.e., don't
8728 # use $as_me), people would be surprised to read:
8729 # /* config.h. Generated by config.status. */
8730 configure_input='Generated from '`
8731 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8732 `' by configure.'
8733 if test x"$ac_file" != x-; then
8734 configure_input="$ac_file. $configure_input"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8736 $as_echo "$as_me: creating $ac_file" >&6;}
8738 # Neutralize special characters interpreted by sed in replacement strings.
8739 case $configure_input in #(
8740 *\&* | *\|* | *\\* )
8741 ac_sed_conf_input=`$as_echo "$configure_input" |
8742 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8743 *) ac_sed_conf_input=$configure_input;;
8744 esac
8746 case $ac_tag in
8747 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8748 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8749 esac
8751 esac
8753 ac_dir=`$as_dirname -- "$ac_file" ||
8754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8755 X"$ac_file" : 'X\(//\)[^/]' \| \
8756 X"$ac_file" : 'X\(//\)$' \| \
8757 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8758 $as_echo X"$ac_file" |
8759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8760 s//\1/
8763 /^X\(\/\/\)[^/].*/{
8764 s//\1/
8767 /^X\(\/\/\)$/{
8768 s//\1/
8771 /^X\(\/\).*/{
8772 s//\1/
8775 s/.*/./; q'`
8776 as_dir="$ac_dir"; as_fn_mkdir_p
8777 ac_builddir=.
8779 case "$ac_dir" in
8780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8783 # A ".." for each directory in $ac_dir_suffix.
8784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8785 case $ac_top_builddir_sub in
8786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8788 esac ;;
8789 esac
8790 ac_abs_top_builddir=$ac_pwd
8791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8792 # for backward compatibility:
8793 ac_top_builddir=$ac_top_build_prefix
8795 case $srcdir in
8796 .) # We are building in place.
8797 ac_srcdir=.
8798 ac_top_srcdir=$ac_top_builddir_sub
8799 ac_abs_top_srcdir=$ac_pwd ;;
8800 [\\/]* | ?:[\\/]* ) # Absolute name.
8801 ac_srcdir=$srcdir$ac_dir_suffix;
8802 ac_top_srcdir=$srcdir
8803 ac_abs_top_srcdir=$srcdir ;;
8804 *) # Relative name.
8805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8806 ac_top_srcdir=$ac_top_build_prefix$srcdir
8807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8808 esac
8809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8812 case $ac_mode in
8815 # CONFIG_FILE
8818 case $INSTALL in
8819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8821 esac
8822 ac_MKDIR_P=$MKDIR_P
8823 case $MKDIR_P in
8824 [\\/$]* | ?:[\\/]* ) ;;
8825 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8826 esac
8827 _ACEOF
8829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8830 # If the template does not know about datarootdir, expand it.
8831 # FIXME: This hack should be removed a few years after 2.60.
8832 ac_datarootdir_hack=; ac_datarootdir_seen=
8833 ac_sed_dataroot='
8834 /datarootdir/ {
8838 /@datadir@/p
8839 /@docdir@/p
8840 /@infodir@/p
8841 /@localedir@/p
8842 /@mandir@/p'
8843 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8844 *datarootdir*) ac_datarootdir_seen=yes;;
8845 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8847 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8848 _ACEOF
8849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8850 ac_datarootdir_hack='
8851 s&@datadir@&$datadir&g
8852 s&@docdir@&$docdir&g
8853 s&@infodir@&$infodir&g
8854 s&@localedir@&$localedir&g
8855 s&@mandir@&$mandir&g
8856 s&\\\${datarootdir}&$datarootdir&g' ;;
8857 esac
8858 _ACEOF
8860 # Neutralize VPATH when `$srcdir' = `.'.
8861 # Shell code in configure.ac might set extrasub.
8862 # FIXME: do we really want to maintain this feature?
8863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8864 ac_sed_extra="$ac_vpsub
8865 $extrasub
8866 _ACEOF
8867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8870 s|@configure_input@|$ac_sed_conf_input|;t t
8871 s&@top_builddir@&$ac_top_builddir_sub&;t t
8872 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8873 s&@srcdir@&$ac_srcdir&;t t
8874 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8875 s&@top_srcdir@&$ac_top_srcdir&;t t
8876 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8877 s&@builddir@&$ac_builddir&;t t
8878 s&@abs_builddir@&$ac_abs_builddir&;t t
8879 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8880 s&@INSTALL@&$ac_INSTALL&;t t
8881 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8882 $ac_datarootdir_hack
8884 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8885 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8888 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8890 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8892 which seems to be undefined. Please make sure it is defined" >&5
8893 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8894 which seems to be undefined. Please make sure it is defined" >&2;}
8896 rm -f "$ac_tmp/stdin"
8897 case $ac_file in
8898 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8899 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8900 esac \
8901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8905 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8906 $as_echo "$as_me: executing $ac_file commands" >&6;}
8908 esac
8911 case $ac_file$ac_mode in
8912 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8913 # Older Autoconf quotes --file arguments for eval, but not when files
8914 # are listed without --file. Let's play safe and only enable the eval
8915 # if we detect the quoting.
8916 case $CONFIG_FILES in
8917 *\'*) eval set x "$CONFIG_FILES" ;;
8918 *) set x $CONFIG_FILES ;;
8919 esac
8920 shift
8921 for mf
8923 # Strip MF so we end up with the name of the file.
8924 mf=`echo "$mf" | sed -e 's/:.*$//'`
8925 # Check whether this is an Automake generated Makefile or not.
8926 # We used to match only the files named 'Makefile.in', but
8927 # some people rename them; so instead we look at the file content.
8928 # Grep'ing the first line is not enough: some people post-process
8929 # each Makefile.in and add a new line on top of each file to say so.
8930 # Grep'ing the whole file is not good either: AIX grep has a line
8931 # limit of 2048, but all sed's we know have understand at least 4000.
8932 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8933 dirpart=`$as_dirname -- "$mf" ||
8934 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8935 X"$mf" : 'X\(//\)[^/]' \| \
8936 X"$mf" : 'X\(//\)$' \| \
8937 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8938 $as_echo X"$mf" |
8939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8940 s//\1/
8943 /^X\(\/\/\)[^/].*/{
8944 s//\1/
8947 /^X\(\/\/\)$/{
8948 s//\1/
8951 /^X\(\/\).*/{
8952 s//\1/
8955 s/.*/./; q'`
8956 else
8957 continue
8959 # Extract the definition of DEPDIR, am__include, and am__quote
8960 # from the Makefile without running 'make'.
8961 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8962 test -z "$DEPDIR" && continue
8963 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8964 test -z "$am__include" && continue
8965 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8966 # Find all dependency output files, they are included files with
8967 # $(DEPDIR) in their names. We invoke sed twice because it is the
8968 # simplest approach to changing $(DEPDIR) to its actual value in the
8969 # expansion.
8970 for file in `sed -n "
8971 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8972 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8973 # Make sure the directory exists.
8974 test -f "$dirpart/$file" && continue
8975 fdir=`$as_dirname -- "$file" ||
8976 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8977 X"$file" : 'X\(//\)[^/]' \| \
8978 X"$file" : 'X\(//\)$' \| \
8979 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8980 $as_echo X"$file" |
8981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8982 s//\1/
8985 /^X\(\/\/\)[^/].*/{
8986 s//\1/
8989 /^X\(\/\/\)$/{
8990 s//\1/
8993 /^X\(\/\).*/{
8994 s//\1/
8997 s/.*/./; q'`
8998 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8999 # echo "creating $dirpart/$file"
9000 echo '# dummy' > "$dirpart/$file"
9001 done
9002 done
9006 esac
9007 done # for ac_tag
9010 as_fn_exit 0
9011 _ACEOF
9012 ac_clean_files=$ac_clean_files_save
9014 test $ac_write_fail = 0 ||
9015 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9018 # configure is writing to config.log, and then calls config.status.
9019 # config.status does its own redirection, appending to config.log.
9020 # Unfortunately, on DOS this fails, as config.log is still kept open
9021 # by configure, so config.status won't be able to write to it; its
9022 # output is simply discarded. So we exec the FD to /dev/null,
9023 # effectively closing config.log, so it can be properly (re)opened and
9024 # appended to by config.status. When coming back to configure, we
9025 # need to make the FD available again.
9026 if test "$no_create" != yes; then
9027 ac_cs_success=:
9028 ac_config_status_args=
9029 test "$silent" = yes &&
9030 ac_config_status_args="$ac_config_status_args --quiet"
9031 exec 5>/dev/null
9032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9033 exec 5>>config.log
9034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9035 # would make configure fail if this is the last instruction.
9036 $ac_cs_success || as_fn_exit 1
9038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9044 echo ""
9045 echo "Configuration results:"
9046 echo "----------------------------------------------------"
9047 echo ""
9049 if test "x$xc_with_tcl" == "x" ; then
9050 if test "x$PYTHON" != x; then
9051 echo "Using Python interface (not recommended)"
9052 else
9053 echo "No Tcl/Tk, using standard Xlib/Xt interface."
9054 echo "If that is not what you wanted, then make sure"
9055 echo "you have Tcl/Tk development packages installed?"
9057 else
9058 echo "Using Tcl/Tk interface"
9060 echo ""
9062 if test "x$xc_with_cairo" == "x" ; then
9063 echo "No Cairo graphics."
9064 echo "If that is not what you wanted, then make sure"
9065 echo "you have libcairo and fontconfig installed."
9066 echo "Try installing package cairo-devel."
9067 else
9068 echo "Using Cairo graphics"
9070 echo ""
9071 echo "CFLAGS=${CFLAGS}"