Modifed some files to make the scrollbar widths scale with the
[xcircuit.git] / configure.lineno
blob0a169fc47b35b57e88e8cbf020f7f16e059306e3
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_suggested195;as_suggested=$as_suggested" as_lineno_1a=\195
196 as_lineno_2=";as_suggested=$as_suggested196;as_suggested=$as_suggested" as_lineno_2a=\196
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-413}: 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=465 as_lineno_1a=465
466 as_lineno_2=466 as_lineno_2a=466
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 DIST_DIR
644 WISH_EXE
645 TCL_LIB_DIR
646 LIB_SPECS
647 INC_SPECS
648 LD_RUN_PATH
649 EXTRA_LIB_SPECS
650 SHLIB_LIB_SPECS
651 LDDL_FLAGS
652 SHLIB_LD
653 SHDLIB_EXT
654 fontconfig_LIBS
655 fontconfig_CFLAGS
656 cairo_LIBS
657 cairo_CFLAGS
658 PKG_CONFIG_LIBDIR
659 PKG_CONFIG_PATH
660 PKG_CONFIG
661 X_EXTRA_LIBS
662 X_LIBS
663 X_PRE_LIBS
664 X_CFLAGS
665 XMKMF
666 EGREP
667 GREP
670 RANLIB
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
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 runstatedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL
766 am__quote'
767 ac_subst_files=''
768 ac_user_opts='
769 enable_option_checking
770 enable_silent_rules
771 enable_dependency_tracking
772 with_x
773 enable_optimize
774 with_xpm
775 with_gnu_ld
776 with_cairo
777 with_distdir
778 with_tcl
779 with_tk
780 with_tclincls
781 with_tkincls
782 with_tcllibs
783 with_tklibs
784 enable_asg
785 enable_lgf
786 enable_focus_fix
787 with_gs
788 with_ngspice
789 with_python
790 enable_memdebug
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
801 XMKMF
802 PKG_CONFIG
803 PKG_CONFIG_PATH
804 PKG_CONFIG_LIBDIR
805 cairo_CFLAGS
806 cairo_LIBS
807 fontconfig_CFLAGS
808 fontconfig_LIBS'
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 runstatedir='${localstatedir}/run'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
860 ac_prev=
861 ac_dashdash=
862 for ac_option
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
881 ac_dashdash=yes ;;
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
900 --config-cache | -C)
901 cache_file=config.cache ;;
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: $ac_useropt"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1100 -runstatedir | --runstatedir | --runstatedi | --runstated \
1101 | --runstate | --runstat | --runsta | --runst | --runs \
1102 | --run | --ru | --r)
1103 ac_prev=runstatedir ;;
1104 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1105 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1106 | --run=* | --ru=* | --r=*)
1107 runstatedir=$ac_optarg ;;
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 esac
1227 done
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir runstatedir
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1311 /^X\(\/\/\)$/{
1312 s//\1/
1315 /^X\(\/\).*/{
1316 s//\1/
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1324 else
1325 ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures this package to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1415 cat <<\_ACEOF
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 X features:
1423 --x-includes=DIR X include files are in DIR
1424 --x-libraries=DIR X library files are in DIR
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 --target=TARGET configure for building compilers for TARGET [HOST]
1430 _ACEOF
1433 if test -n "$ac_init_help"; then
1435 cat <<\_ACEOF
1437 Optional Features:
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-silent-rules less verbose build output (undo: "make V=1")
1442 --disable-silent-rules verbose build output (undo: "make V=0")
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-optimize enable compile-time optimizer flag -O2
1448 --enable-asg enable support for Automatic Schematic Generation
1449 --disable-lgf disable support for reading Caltech tools
1450 analog simulator .lgf files
1451 --disable-focus-fix disable focus fix for some window managers
1452 --enable-memdebug enable memory debugging
1454 Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-x use the X Window System
1458 --with-xpm=DIR use Xpm include/library files in DIR
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1460 --with-cairo Use cairo graphics library [default=yes]
1461 --with-distdir=DIR install into location DIR for distribution
1462 --with-tcl=DIR Find tclConfig.sh in DIR
1463 --with-tk=DIR Find tkConfig.sh in DIR
1464 --with-tclincls=DIR Find tcl.h in DIR
1465 --with-tkincls=DIR Find tk.h in DIR
1466 --with-tcllibs=DIR Find Tcl library in DIR
1467 --with-tklibs=DIR Find Tk library in DIR
1468 --with-gs=DIR path to ghostscript
1469 --with-ngspice=DIR path to ngspice
1470 --with-python=DIR path to python interpreter
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CPP C preprocessor
1481 XMKMF Path to xmkmf, Makefile generator for X Window System
1482 PKG_CONFIG path to pkg-config utility
1483 PKG_CONFIG_PATH
1484 directories to add to pkg-config's search path
1485 PKG_CONFIG_LIBDIR
1486 path overriding pkg-config's built-in search path
1487 cairo_CFLAGS
1488 C compiler flags for cairo, overriding pkg-config
1489 cairo_LIBS linker flags for cairo, overriding pkg-config
1490 fontconfig_CFLAGS
1491 C compiler flags for fontconfig, overriding pkg-config
1492 fontconfig_LIBS
1493 linker flags for fontconfig, overriding pkg-config
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1498 Report bugs to the package provider.
1499 _ACEOF
1500 ac_status=$?
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 continue
1509 ac_builddir=.
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1527 case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560 cat <<\_ACEOF
1561 configure
1562 generated by GNU Autoconf 2.69
1564 Copyright (C) 2012 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-1587}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-1596}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1611 } # ac_fn_c_try_compile
1613 # ac_fn_c_try_link LINENO
1614 # -----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_link ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest$ac_exeext
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-1625}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-1634}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest$ac_exeext && {
1639 test "$cross_compiling" = yes ||
1640 test -x conftest$ac_exeext
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 # interfere with the next link command; also delete a directory that is
1652 # left behind by Apple's compiler. We do this before executing the actions.
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_link
1659 # ac_fn_c_try_run LINENO
1660 # ----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662 # that executables *can* be run.
1663 ac_fn_c_try_run ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-1671}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1674 ac_status=$?
1675 $as_echo "$as_me:${as_lineno-1675}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-1681}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1684 ac_status=$?
1685 $as_echo "$as_me:${as_lineno-1685}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=$ac_status
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1699 } # ac_fn_c_try_run
1701 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1702 # --------------------------------------------
1703 # Tries to find the compile-time value of EXPR in a program that includes
1704 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1705 # computed
1706 ac_fn_c_compute_int ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if test "$cross_compiling" = yes; then
1710 # Depending upon the size, compute the lo and hi bounds.
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1715 main ()
1717 static int test_array [1 - 2 * !(($2) >= 0)];
1718 test_array [0] = 0;
1719 return test_array [0];
1722 return 0;
1724 _ACEOF
1725 if ac_fn_c_try_compile "1725"; then :
1726 ac_lo=0 ac_mid=0
1727 while :; do
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1732 main ()
1734 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1735 test_array [0] = 0;
1736 return test_array [0];
1739 return 0;
1741 _ACEOF
1742 if ac_fn_c_try_compile "1742"; then :
1743 ac_hi=$ac_mid; break
1744 else
1745 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1746 if test $ac_lo -le $ac_mid; then
1747 ac_lo= ac_hi=
1748 break
1750 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 done
1754 else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1759 main ()
1761 static int test_array [1 - 2 * !(($2) < 0)];
1762 test_array [0] = 0;
1763 return test_array [0];
1766 return 0;
1768 _ACEOF
1769 if ac_fn_c_try_compile "1769"; then :
1770 ac_hi=-1 ac_mid=-1
1771 while :; do
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1776 main ()
1778 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1779 test_array [0] = 0;
1780 return test_array [0];
1783 return 0;
1785 _ACEOF
1786 if ac_fn_c_try_compile "1786"; then :
1787 ac_lo=$ac_mid; break
1788 else
1789 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1790 if test $ac_mid -le $ac_hi; then
1791 ac_lo= ac_hi=
1792 break
1794 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 done
1798 else
1799 ac_lo= ac_hi=
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 # Binary search between lo and hi bounds.
1805 while test "x$ac_lo" != "x$ac_hi"; do
1806 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1811 main ()
1813 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1814 test_array [0] = 0;
1815 return test_array [0];
1818 return 0;
1820 _ACEOF
1821 if ac_fn_c_try_compile "1821"; then :
1822 ac_hi=$ac_mid
1823 else
1824 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 done
1828 case $ac_lo in #((
1829 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1830 '') ac_retval=1 ;;
1831 esac
1832 else
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1836 static long int longval () { return $2; }
1837 static unsigned long int ulongval () { return $2; }
1838 #include <stdio.h>
1839 #include <stdlib.h>
1841 main ()
1844 FILE *f = fopen ("conftest.val", "w");
1845 if (! f)
1846 return 1;
1847 if (($2) < 0)
1849 long int i = longval ();
1850 if (i != ($2))
1851 return 1;
1852 fprintf (f, "%ld", i);
1854 else
1856 unsigned long int i = ulongval ();
1857 if (i != ($2))
1858 return 1;
1859 fprintf (f, "%lu", i);
1861 /* Do not output a trailing newline, as this causes \r\n confusion
1862 on some platforms. */
1863 return ferror (f) || fclose (f) != 0;
1866 return 0;
1868 _ACEOF
1869 if ac_fn_c_try_run "1869"; then :
1870 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1871 else
1872 ac_retval=1
1874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1875 conftest.$ac_objext conftest.beam conftest.$ac_ext
1876 rm -f conftest.val
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_c_compute_int
1884 # ac_fn_c_try_cpp LINENO
1885 # ----------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_cpp ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_cpp conftest.$ac_ext"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-1895}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-1904}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } > conftest.i && {
1906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_cpp
1921 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists and can be compiled using the include files in
1924 # INCLUDES, setting the cache variable VAR accordingly.
1925 ac_fn_c_check_header_compile ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-1928}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "1938"; then :
1939 eval "$3=yes"
1940 else
1941 eval "$3=no"
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-1946}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 } # ac_fn_c_check_header_compile
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-1958}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967 #define $2 innocuous_$2
1969 /* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1974 #ifdef __STDC__
1975 # include <limits.h>
1976 #else
1977 # include <assert.h>
1978 #endif
1980 #undef $2
1982 /* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1985 #ifdef __cplusplus
1986 extern "C"
1987 #endif
1988 char $2 ();
1989 /* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992 #if defined __stub_$2 || defined __stub___$2
1993 choke me
1994 #endif
1997 main ()
1999 return $2 ();
2001 return 0;
2003 _ACEOF
2004 if ac_fn_c_try_link "2004"; then :
2005 eval "$3=yes"
2006 else
2007 eval "$3=no"
2009 rm -f core conftest.err conftest.$ac_objext \
2010 conftest$ac_exeext conftest.$ac_ext
2012 eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-2013}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_check_func
2019 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2020 # -------------------------------------------------------
2021 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2022 # the include files in INCLUDES and setting the cache variable VAR
2023 # accordingly.
2024 ac_fn_c_check_header_mongrel ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if eval \${$3+:} false; then :
2028 { $as_echo "$as_me:${as_lineno-2028}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if eval \${$3+:} false; then :
2031 $as_echo_n "(cached) " >&6
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-2034}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 else
2037 # Is the header compilable?
2038 { $as_echo "$as_me:${as_lineno-2038}: checking $2 usability" >&5
2039 $as_echo_n "checking $2 usability... " >&6; }
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_compile "2045"; then :
2046 ac_header_compiler=yes
2047 else
2048 ac_header_compiler=no
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-2051}: result: $ac_header_compiler" >&5
2052 $as_echo "$ac_header_compiler" >&6; }
2054 # Is the header present?
2055 { $as_echo "$as_me:${as_lineno-2055}: checking $2 presence" >&5
2056 $as_echo_n "checking $2 presence... " >&6; }
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_cpp "2061"; then :
2062 ac_header_preproc=yes
2063 else
2064 ac_header_preproc=no
2066 rm -f conftest.err conftest.i conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-2067}: result: $ac_header_preproc" >&5
2068 $as_echo "$ac_header_preproc" >&6; }
2070 # So? What about this header?
2071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2072 yes:no: )
2073 { $as_echo "$as_me:${as_lineno-2073}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2074 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2075 { $as_echo "$as_me:${as_lineno-2075}: WARNING: $2: proceeding with the compiler's result" >&5
2076 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2078 no:yes:* )
2079 { $as_echo "$as_me:${as_lineno-2079}: WARNING: $2: present but cannot be compiled" >&5
2080 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2081 { $as_echo "$as_me:${as_lineno-2081}: WARNING: $2: check for missing prerequisite headers?" >&5
2082 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2083 { $as_echo "$as_me:${as_lineno-2083}: WARNING: $2: see the Autoconf documentation" >&5
2084 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2085 { $as_echo "$as_me:${as_lineno-2085}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2086 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2087 { $as_echo "$as_me:${as_lineno-2087}: WARNING: $2: proceeding with the compiler's result" >&5
2088 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2090 esac
2091 { $as_echo "$as_me:${as_lineno-2091}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2095 else
2096 eval "$3=\$ac_header_compiler"
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-2099}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_header_mongrel
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2109 It was created by $as_me, which was
2110 generated by GNU Autoconf 2.69. Invocation command line was
2112 $ $0 $@
2114 _ACEOF
2115 exec 5>>config.log
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2131 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2139 _ASUNAME
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
2146 $as_echo "PATH: $as_dir"
2147 done
2148 IFS=$as_save_IFS
2150 } >&5
2152 cat >&5 <<_ACEOF
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2159 _ACEOF
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2173 for ac_arg
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
2180 *\'*)
2181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182 esac
2183 case $ac_pass in
2184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186 as_fn_append ac_configure_args1 " '$ac_arg'"
2187 if test $ac_must_keep_next = true; then
2188 ac_must_keep_next=false # Got value, back to normal.
2189 else
2190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2199 -* ) ac_must_keep_next=true ;;
2200 esac
2202 as_fn_append ac_configure_args " '$ac_arg'"
2204 esac
2205 done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
2218 echo
2220 $as_echo "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
2231 *_cv_*) { $as_echo "$as_me:${as_lineno-2231}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2238 esac ;;
2239 esac
2240 done
2241 (set) 2>&1 |
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2244 sed -n \
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251 esac |
2252 sort
2254 echo
2256 $as_echo "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259 echo
2260 for ac_var in $ac_subst_vars
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
2270 if test -n "$ac_subst_files"; then
2271 $as_echo "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274 echo
2275 for ac_var in $ac_subst_files
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 $as_echo "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2286 if test -s confdefs.h; then
2287 $as_echo "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290 echo
2291 cat confdefs.h
2292 echo
2294 test "$ac_signal" != 0 &&
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2310 $as_echo "/* confdefs.h */" > confdefs.h
2312 # Predefined preprocessor variables.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2336 _ACEOF
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2341 ac_site_file1=NONE
2342 ac_site_file2=NONE
2343 if test -n "$CONFIG_SITE"; then
2344 # We do not want a PATH search for config.site.
2345 case $CONFIG_SITE in #((
2346 -*) ac_site_file1=./$CONFIG_SITE;;
2347 */*) ac_site_file1=$CONFIG_SITE;;
2348 *) ac_site_file1=./$CONFIG_SITE;;
2349 esac
2350 elif test "x$prefix" != xNONE; then
2351 ac_site_file1=$prefix/share/config.site
2352 ac_site_file2=$prefix/etc/config.site
2353 else
2354 ac_site_file1=$ac_default_prefix/share/config.site
2355 ac_site_file2=$ac_default_prefix/etc/config.site
2357 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359 test "x$ac_site_file" = xNONE && continue
2360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2361 { $as_echo "$as_me:${as_lineno-2361}: loading site script $ac_site_file" >&5
2362 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2363 sed 's/^/| /' "$ac_site_file" >&5
2364 . "$ac_site_file" \
2365 || { { $as_echo "$as_me:${as_lineno-2365}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 as_fn_error $? "failed to load site script $ac_site_file
2368 See \`config.log' for more details" "2368" 5; }
2370 done
2372 if test -r "$cache_file"; then
2373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2376 { $as_echo "$as_me:${as_lineno-2376}: loading cache $cache_file" >&5
2377 $as_echo "$as_me: loading cache $cache_file" >&6;}
2378 case $cache_file in
2379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380 *) . "./$cache_file";;
2381 esac
2383 else
2384 { $as_echo "$as_me:${as_lineno-2384}: creating cache $cache_file" >&5
2385 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386 >$cache_file
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-2399}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-2403}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-2413}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-2417}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2421 { $as_echo "$as_me:${as_lineno-2421}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-2423}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-2440}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-2442}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "2444" 5
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460 ac_aux_dir=
2461 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2462 if test -f "$ac_dir/install-sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install-sh -c"
2465 break
2466 elif test -f "$ac_dir/install.sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install.sh -c"
2469 break
2470 elif test -f "$ac_dir/shtool"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/shtool install -c"
2473 break
2475 done
2476 if test -z "$ac_aux_dir"; then
2477 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "2477" 5
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2489 # Make sure we can run config.sub.
2490 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2491 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "2491" 5
2493 { $as_echo "$as_me:${as_lineno-2493}: checking build system type" >&5
2494 $as_echo_n "checking build system type... " >&6; }
2495 if ${ac_cv_build+:} false; then :
2496 $as_echo_n "(cached) " >&6
2497 else
2498 ac_build_alias=$build_alias
2499 test "x$ac_build_alias" = x &&
2500 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2501 test "x$ac_build_alias" = x &&
2502 as_fn_error $? "cannot guess build type; you must specify one" "2502" 5
2503 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2504 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "2504" 5
2507 { $as_echo "$as_me:${as_lineno-2507}: result: $ac_cv_build" >&5
2508 $as_echo "$ac_cv_build" >&6; }
2509 case $ac_cv_build in
2510 *-*-*) ;;
2511 *) as_fn_error $? "invalid value of canonical build" "2511" 5;;
2512 esac
2513 build=$ac_cv_build
2514 ac_save_IFS=$IFS; IFS='-'
2515 set x $ac_cv_build
2516 shift
2517 build_cpu=$1
2518 build_vendor=$2
2519 shift; shift
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2522 build_os=$*
2523 IFS=$ac_save_IFS
2524 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2527 { $as_echo "$as_me:${as_lineno-2527}: checking host system type" >&5
2528 $as_echo_n "checking host system type... " >&6; }
2529 if ${ac_cv_host+:} false; then :
2530 $as_echo_n "(cached) " >&6
2531 else
2532 if test "x$host_alias" = x; then
2533 ac_cv_host=$ac_cv_build
2534 else
2535 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2536 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "2536" 5
2540 { $as_echo "$as_me:${as_lineno-2540}: result: $ac_cv_host" >&5
2541 $as_echo "$ac_cv_host" >&6; }
2542 case $ac_cv_host in
2543 *-*-*) ;;
2544 *) as_fn_error $? "invalid value of canonical host" "2544" 5;;
2545 esac
2546 host=$ac_cv_host
2547 ac_save_IFS=$IFS; IFS='-'
2548 set x $ac_cv_host
2549 shift
2550 host_cpu=$1
2551 host_vendor=$2
2552 shift; shift
2553 # Remember, the first character of IFS is used to create $*,
2554 # except with old shells:
2555 host_os=$*
2556 IFS=$ac_save_IFS
2557 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2560 { $as_echo "$as_me:${as_lineno-2560}: checking target system type" >&5
2561 $as_echo_n "checking target system type... " >&6; }
2562 if ${ac_cv_target+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 if test "x$target_alias" = x; then
2566 ac_cv_target=$ac_cv_host
2567 else
2568 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "2569" 5
2573 { $as_echo "$as_me:${as_lineno-2573}: result: $ac_cv_target" >&5
2574 $as_echo "$ac_cv_target" >&6; }
2575 case $ac_cv_target in
2576 *-*-*) ;;
2577 *) as_fn_error $? "invalid value of canonical target" "2577" 5;;
2578 esac
2579 target=$ac_cv_target
2580 ac_save_IFS=$IFS; IFS='-'
2581 set x $ac_cv_target
2582 shift
2583 target_cpu=$1
2584 target_vendor=$2
2585 shift; shift
2586 # Remember, the first character of IFS is used to create $*,
2587 # except with old shells:
2588 target_os=$*
2589 IFS=$ac_save_IFS
2590 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2593 # The aliases save the names the user supplied, while $host etc.
2594 # will get canonicalized.
2595 test -n "$target_alias" &&
2596 test "$program_prefix$program_suffix$program_transform_name" = \
2597 NONENONEs,x,x, &&
2598 program_prefix=${target_alias}-
2601 PACKAGE=xcircuit
2603 VERSION=`cat ./VERSION | cut -d. -f1-2`
2604 am__api_version='1.16'
2606 # Find a good install program. We prefer a C program (faster),
2607 # so one script is as good as another. But avoid the broken or
2608 # incompatible versions:
2609 # SysV /etc/install, /usr/sbin/install
2610 # SunOS /usr/etc/install
2611 # IRIX /sbin/install
2612 # AIX /bin/install
2613 # AmigaOS /C/install, which installs bootblocks on floppy discs
2614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2617 # OS/2's system install, which has a completely different semantic
2618 # ./install, which can be erroneously created by make from ./install.sh.
2619 # Reject install programs that cannot install multiple files.
2620 { $as_echo "$as_me:${as_lineno-2620}: checking for a BSD-compatible install" >&5
2621 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2622 if test -z "$INSTALL"; then
2623 if ${ac_cv_path_install+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 # Account for people who put trailing slashes in PATH elements.
2632 case $as_dir/ in #((
2633 ./ | .// | /[cC]/* | \
2634 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2635 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2636 /usr/ucb/* ) ;;
2638 # OSF1 and SCO ODT 3.0 have their own names for install.
2639 # Don't use installbsd from OSF since it installs stuff as root
2640 # by default.
2641 for ac_prog in ginstall scoinst install; do
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2644 if test $ac_prog = install &&
2645 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2646 # AIX install. It has an incompatible calling convention.
2648 elif test $ac_prog = install &&
2649 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650 # program-specific install script used by HP pwplus--don't use.
2652 else
2653 rm -rf conftest.one conftest.two conftest.dir
2654 echo one > conftest.one
2655 echo two > conftest.two
2656 mkdir conftest.dir
2657 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2658 test -s conftest.one && test -s conftest.two &&
2659 test -s conftest.dir/conftest.one &&
2660 test -s conftest.dir/conftest.two
2661 then
2662 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2663 break 3
2667 done
2668 done
2670 esac
2672 done
2673 IFS=$as_save_IFS
2675 rm -rf conftest.one conftest.two conftest.dir
2678 if test "${ac_cv_path_install+set}" = set; then
2679 INSTALL=$ac_cv_path_install
2680 else
2681 # As a last resort, use the slow shell script. Don't cache a
2682 # value for INSTALL within a source directory, because that will
2683 # break other packages using the cache if that directory is
2684 # removed, or if the value is a relative name.
2685 INSTALL=$ac_install_sh
2688 { $as_echo "$as_me:${as_lineno-2688}: result: $INSTALL" >&5
2689 $as_echo "$INSTALL" >&6; }
2691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2692 # It thinks the first close brace ends the variable substitution.
2693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2697 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2699 { $as_echo "$as_me:${as_lineno-2699}: checking whether build environment is sane" >&5
2700 $as_echo_n "checking whether build environment is sane... " >&6; }
2701 # Reject unsafe characters in $srcdir or the absolute working directory
2702 # name. Accept space and tab only in the latter.
2703 am_lf='
2705 case `pwd` in
2706 *[\\\"\#\$\&\'\`$am_lf]*)
2707 as_fn_error $? "unsafe absolute working directory name" "2707" 5;;
2708 esac
2709 case $srcdir in
2710 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2711 as_fn_error $? "unsafe srcdir value: '$srcdir'" "2711" 5;;
2712 esac
2714 # Do 'set' in a subshell so we don't clobber the current shell's
2715 # arguments. Must try -L first in case configure is actually a
2716 # symlink; some systems play weird games with the mod time of symlinks
2717 # (eg FreeBSD returns the mod time of the symlink's containing
2718 # directory).
2719 if (
2720 am_has_slept=no
2721 for am_try in 1 2; do
2722 echo "timestamp, slept: $am_has_slept" > conftest.file
2723 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2724 if test "$*" = "X"; then
2725 # -L didn't work.
2726 set X `ls -t "$srcdir/configure" conftest.file`
2728 if test "$*" != "X $srcdir/configure conftest.file" \
2729 && test "$*" != "X conftest.file $srcdir/configure"; then
2731 # If neither matched, then we have a broken ls. This can happen
2732 # if, for instance, CONFIG_SHELL is bash and it inherits a
2733 # broken ls alias from the environment. This has actually
2734 # happened. Such a system could not be considered "sane".
2735 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2736 alias in your environment" "2736" 5
2738 if test "$2" = conftest.file || test $am_try -eq 2; then
2739 break
2741 # Just in case.
2742 sleep 1
2743 am_has_slept=yes
2744 done
2745 test "$2" = conftest.file
2747 then
2748 # Ok.
2750 else
2751 as_fn_error $? "newly created file is older than distributed files!
2752 Check your system clock" "2752" 5
2754 { $as_echo "$as_me:${as_lineno-2754}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 # If we didn't sleep, we still need to ensure time stamps of config.status and
2757 # generated files are strictly newer.
2758 am_sleep_pid=
2759 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2760 ( sleep 1 ) &
2761 am_sleep_pid=$!
2764 rm -f conftest.file
2766 test "$program_prefix" != NONE &&
2767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2768 # Use a double $ so make ignores it.
2769 test "$program_suffix" != NONE &&
2770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2771 # Double any \ or $.
2772 # By default was `s,x,x', remove it if useless.
2773 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2774 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2776 # Expand $ac_aux_dir to an absolute path.
2777 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2779 if test x"${MISSING+set}" != xset; then
2780 case $am_aux_dir in
2781 *\ * | *\ *)
2782 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2784 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2785 esac
2787 # Use eval to expand $SHELL
2788 if eval "$MISSING --is-lightweight"; then
2789 am_missing_run="$MISSING "
2790 else
2791 am_missing_run=
2792 { $as_echo "$as_me:${as_lineno-2792}: WARNING: 'missing' script is too old or missing" >&5
2793 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2796 if test x"${install_sh+set}" != xset; then
2797 case $am_aux_dir in
2798 *\ * | *\ *)
2799 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2801 install_sh="\${SHELL} $am_aux_dir/install-sh"
2802 esac
2805 # Installed binaries are usually stripped using 'strip' when the user
2806 # run "make install-strip". However 'strip' might not be the right
2807 # tool to use in cross-compilation environments, therefore Automake
2808 # will honor the 'STRIP' environment variable to overrule this program.
2809 if test "$cross_compiling" != no; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}strip; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-2813}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_STRIP+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$STRIP"; then
2819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2829 $as_echo "$as_me:${as_lineno-2829}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2832 done
2833 done
2834 IFS=$as_save_IFS
2838 STRIP=$ac_cv_prog_STRIP
2839 if test -n "$STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-2840}: result: $STRIP" >&5
2841 $as_echo "$STRIP" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-2843}: result: no" >&5
2844 $as_echo "no" >&6; }
2849 if test -z "$ac_cv_prog_STRIP"; then
2850 ac_ct_STRIP=$STRIP
2851 # Extract the first word of "strip", so it can be a program name with args.
2852 set dummy strip; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-2853}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 if test -n "$ac_ct_STRIP"; then
2859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_ac_ct_STRIP="strip"
2869 $as_echo "$as_me:${as_lineno-2869}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2874 IFS=$as_save_IFS
2878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2879 if test -n "$ac_ct_STRIP"; then
2880 { $as_echo "$as_me:${as_lineno-2880}: result: $ac_ct_STRIP" >&5
2881 $as_echo "$ac_ct_STRIP" >&6; }
2882 else
2883 { $as_echo "$as_me:${as_lineno-2883}: result: no" >&5
2884 $as_echo "no" >&6; }
2887 if test "x$ac_ct_STRIP" = x; then
2888 STRIP=":"
2889 else
2890 case $cross_compiling:$ac_tool_warned in
2891 yes:)
2892 { $as_echo "$as_me:${as_lineno-2892}: WARNING: using cross tools not prefixed with host triplet" >&5
2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894 ac_tool_warned=yes ;;
2895 esac
2896 STRIP=$ac_ct_STRIP
2898 else
2899 STRIP="$ac_cv_prog_STRIP"
2903 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2905 { $as_echo "$as_me:${as_lineno-2905}: checking for a thread-safe mkdir -p" >&5
2906 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2907 if test -z "$MKDIR_P"; then
2908 if ${ac_cv_path_mkdir+:} false; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_prog in mkdir gmkdir; do
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2919 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2920 'mkdir (GNU coreutils) '* | \
2921 'mkdir (coreutils) '* | \
2922 'mkdir (fileutils) '4.1*)
2923 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2924 break 3;;
2925 esac
2926 done
2927 done
2928 done
2929 IFS=$as_save_IFS
2933 test -d ./--version && rmdir ./--version
2934 if test "${ac_cv_path_mkdir+set}" = set; then
2935 MKDIR_P="$ac_cv_path_mkdir -p"
2936 else
2937 # As a last resort, use the slow shell script. Don't cache a
2938 # value for MKDIR_P within a source directory, because that will
2939 # break other packages using the cache if that directory is
2940 # removed, or if the value is a relative name.
2941 MKDIR_P="$ac_install_sh -d"
2944 { $as_echo "$as_me:${as_lineno-2944}: result: $MKDIR_P" >&5
2945 $as_echo "$MKDIR_P" >&6; }
2947 for ac_prog in gawk mawk nawk awk
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-2951}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_AWK+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$AWK"; then
2957 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_AWK="$ac_prog"
2967 $as_echo "$as_me:${as_lineno-2967}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2976 AWK=$ac_cv_prog_AWK
2977 if test -n "$AWK"; then
2978 { $as_echo "$as_me:${as_lineno-2978}: result: $AWK" >&5
2979 $as_echo "$AWK" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-2981}: result: no" >&5
2982 $as_echo "no" >&6; }
2986 test -n "$AWK" && break
2987 done
2989 { $as_echo "$as_me:${as_lineno-2989}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2990 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2991 set x ${MAKE-make}
2992 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2993 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 cat >conftest.make <<\_ACEOF
2997 SHELL = /bin/sh
2998 all:
2999 @echo '@@@%%%=$(MAKE)=@@@%%%'
3000 _ACEOF
3001 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3002 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3003 *@@@%%%=?*=@@@%%%*)
3004 eval ac_cv_prog_make_${ac_make}_set=yes;;
3006 eval ac_cv_prog_make_${ac_make}_set=no;;
3007 esac
3008 rm -f conftest.make
3010 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3011 { $as_echo "$as_me:${as_lineno-3011}: result: yes" >&5
3012 $as_echo "yes" >&6; }
3013 SET_MAKE=
3014 else
3015 { $as_echo "$as_me:${as_lineno-3015}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 SET_MAKE="MAKE=${MAKE-make}"
3020 rm -rf .tst 2>/dev/null
3021 mkdir .tst 2>/dev/null
3022 if test -d .tst; then
3023 am__leading_dot=.
3024 else
3025 am__leading_dot=_
3027 rmdir .tst 2>/dev/null
3029 # Check whether --enable-silent-rules was given.
3030 if test "${enable_silent_rules+set}" = set; then :
3031 enableval=$enable_silent_rules;
3034 case $enable_silent_rules in # (((
3035 yes) AM_DEFAULT_VERBOSITY=0;;
3036 no) AM_DEFAULT_VERBOSITY=1;;
3037 *) AM_DEFAULT_VERBOSITY=1;;
3038 esac
3039 am_make=${MAKE-make}
3040 { $as_echo "$as_me:${as_lineno-3040}: checking whether $am_make supports nested variables" >&5
3041 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3042 if ${am_cv_make_support_nested_variables+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if $as_echo 'TRUE=$(BAR$(V))
3046 BAR0=false
3047 BAR1=true
3049 am__doit:
3050 @$(TRUE)
3051 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3052 am_cv_make_support_nested_variables=yes
3053 else
3054 am_cv_make_support_nested_variables=no
3057 { $as_echo "$as_me:${as_lineno-3057}: result: $am_cv_make_support_nested_variables" >&5
3058 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3059 if test $am_cv_make_support_nested_variables = yes; then
3060 AM_V='$(V)'
3061 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3062 else
3063 AM_V=$AM_DEFAULT_VERBOSITY
3064 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3066 AM_BACKSLASH='\'
3068 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3069 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3070 # is not polluted with repeated "-I."
3071 am__isrc=' -I$(srcdir)'
3072 # test to see if srcdir already configured
3073 if test -f $srcdir/config.status; then
3074 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "3074" 5
3078 # test whether we have cygpath
3079 if test -z "$CYGPATH_W"; then
3080 if (cygpath --version) >/dev/null 2>/dev/null; then
3081 CYGPATH_W='cygpath -w'
3082 else
3083 CYGPATH_W=echo
3088 # Define the identity of the package.
3090 PACKAGE=${PACKAGE}
3091 VERSION=${VERSION}
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE "$PACKAGE"
3096 _ACEOF
3099 cat >>confdefs.h <<_ACEOF
3100 #define VERSION "$VERSION"
3101 _ACEOF
3103 # Some tools Automake needs.
3105 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3108 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3111 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3114 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3117 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3119 # For better backward compatibility. To be removed once Automake 1.9.x
3120 # dies out for good. For more background, see:
3121 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3122 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3123 mkdir_p='$(MKDIR_P)'
3125 # We need awk for the "check" target (and possibly the TAP driver). The
3126 # system "awk" is bad on some platforms.
3127 # Always define AMTAR for backward compatibility. Yes, it's still used
3128 # in the wild :-( We should find a proper way to deprecate it ...
3129 AMTAR='$${TAR-tar}'
3132 # We'll loop over all known methods to create a tar archive until one works.
3133 _am_tools='gnutar pax cpio none'
3135 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3142 # POSIX will say in a future version that running "rm -f" with no argument
3143 # is OK; and we want to be able to make that assumption in our Makefile
3144 # recipes. So use an aggressive probe to check that the usage we want is
3145 # actually supported "in the wild" to an acceptable degree.
3146 # See automake bug#10828.
3147 # To make any issue more visible, cause the running configure to be aborted
3148 # by default if the 'rm' program in use doesn't match our expectations; the
3149 # user can still override this though.
3150 if rm -f && rm -fr && rm -rf; then : OK; else
3151 cat >&2 <<'END'
3152 Oops!
3154 Your 'rm' program seems unable to run without file operands specified
3155 on the command line, even when the '-f' option is present. This is contrary
3156 to the behaviour of most rm programs out there, and not conforming with
3157 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3159 Please tell bug-automake@gnu.org about your system, including the value
3160 of your $PATH and any error possibly output before this message. This
3161 can help us improve future automake versions.
3164 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3165 echo 'Configuration will proceed anyway, since you have set the' >&2
3166 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3167 echo >&2
3168 else
3169 cat >&2 <<'END'
3170 Aborting the configuration process, to ensure you take notice of the issue.
3172 You can download and install GNU coreutils to get an 'rm' implementation
3173 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3175 If you want to complete the configuration process using your problematic
3176 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3177 to "yes", and re-run configure.
3180 as_fn_error $? "Your 'rm' program is bad, sorry." "3180" 5
3185 SUBDIRS=
3186 SUBLIB=
3187 STDLIBS=
3188 XCIRCUIT_TARGET=
3189 ALL_TARGET="undefined-target"
3190 INSTALL_TARGET="undefined-install-target"
3191 REVISION=`cat ./VERSION | cut -d. -f3`
3192 INTERPRETER=NOINTERP
3193 HAVE_LGF=NOFORMATS
3195 LIB_SPECS=""
3196 WISH_EXE=""
3197 SHLIB_CFLAGS=""
3204 { $as_echo "$as_me:${as_lineno-3204}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3206 set x ${MAKE-make}
3207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3208 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 cat >conftest.make <<\_ACEOF
3212 SHELL = /bin/sh
3213 all:
3214 @echo '@@@%%%=$(MAKE)=@@@%%%'
3215 _ACEOF
3216 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3218 *@@@%%%=?*=@@@%%%*)
3219 eval ac_cv_prog_make_${ac_make}_set=yes;;
3221 eval ac_cv_prog_make_${ac_make}_set=no;;
3222 esac
3223 rm -f conftest.make
3225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3226 { $as_echo "$as_me:${as_lineno-3226}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3228 SET_MAKE=
3229 else
3230 { $as_echo "$as_me:${as_lineno-3230}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 SET_MAKE="MAKE=${MAKE-make}"
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-3244}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3260 $as_echo "$as_me:${as_lineno-3260}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 break 2
3263 done
3264 done
3265 IFS=$as_save_IFS
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-3271}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-3274}: result: no" >&5
3275 $as_echo "no" >&6; }
3280 if test -z "$ac_cv_prog_CC"; then
3281 ac_ct_CC=$CC
3282 # Extract the first word of "gcc", so it can be a program name with args.
3283 set dummy gcc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-3284}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_ac_ct_CC="gcc"
3300 $as_echo "$as_me:${as_lineno-3300}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3303 done
3304 done
3305 IFS=$as_save_IFS
3309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { $as_echo "$as_me:${as_lineno-3311}: result: $ac_ct_CC" >&5
3312 $as_echo "$ac_ct_CC" >&6; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-3314}: result: no" >&5
3315 $as_echo "no" >&6; }
3318 if test "x$ac_ct_CC" = x; then
3319 CC=""
3320 else
3321 case $cross_compiling:$ac_tool_warned in
3322 yes:)
3323 { $as_echo "$as_me:${as_lineno-3323}: WARNING: using cross tools not prefixed with host triplet" >&5
3324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325 ac_tool_warned=yes ;;
3326 esac
3327 CC=$ac_ct_CC
3329 else
3330 CC="$ac_cv_prog_CC"
3333 if test -z "$CC"; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}cc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-3337}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_CC+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_CC="${ac_tool_prefix}cc"
3353 $as_echo "$as_me:${as_lineno-3353}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3356 done
3357 done
3358 IFS=$as_save_IFS
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:${as_lineno-3364}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-3367}: result: no" >&5
3368 $as_echo "no" >&6; }
3374 if test -z "$CC"; then
3375 # Extract the first word of "cc", so it can be a program name with args.
3376 set dummy cc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-3377}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 ac_prog_rejected=no
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3394 ac_prog_rejected=yes
3395 continue
3397 ac_cv_prog_CC="cc"
3398 $as_echo "$as_me:${as_lineno-3398}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3403 IFS=$as_save_IFS
3405 if test $ac_prog_rejected = yes; then
3406 # We found a bogon in the path, so make sure we never use it.
3407 set dummy $ac_cv_prog_CC
3408 shift
3409 if test $# != 0; then
3410 # We chose a different compiler from the bogus one.
3411 # However, it has the same basename, so the bogon will be chosen
3412 # first if we set CC to just the basename; use the full file name.
3413 shift
3414 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-3421}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-3424}: result: no" >&5
3425 $as_echo "no" >&6; }
3430 if test -z "$CC"; then
3431 if test -n "$ac_tool_prefix"; then
3432 for ac_prog in cl.exe
3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-3436}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3452 $as_echo "$as_me:${as_lineno-3452}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3461 CC=$ac_cv_prog_CC
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-3463}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-3466}: result: no" >&5
3467 $as_echo "no" >&6; }
3471 test -n "$CC" && break
3472 done
3474 if test -z "$CC"; then
3475 ac_ct_CC=$CC
3476 for ac_prog in cl.exe
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy $ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-3480}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$ac_ct_CC"; then
3486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_ac_ct_CC="$ac_prog"
3496 $as_echo "$as_me:${as_lineno-3496}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3499 done
3500 done
3501 IFS=$as_save_IFS
3505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3506 if test -n "$ac_ct_CC"; then
3507 { $as_echo "$as_me:${as_lineno-3507}: result: $ac_ct_CC" >&5
3508 $as_echo "$ac_ct_CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-3510}: result: no" >&5
3511 $as_echo "no" >&6; }
3515 test -n "$ac_ct_CC" && break
3516 done
3518 if test "x$ac_ct_CC" = x; then
3519 CC=""
3520 else
3521 case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { $as_echo "$as_me:${as_lineno-3523}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3526 esac
3527 CC=$ac_ct_CC
3534 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-3534}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $? "no acceptable C compiler found in \$PATH
3537 See \`config.log' for more details" "3537" 5; }
3539 # Provide some information about the compiler.
3540 $as_echo "$as_me:${as_lineno-3540}: checking for C compiler version" >&5
3541 set X $ac_compile
3542 ac_compiler=$2
3543 for ac_option in --version -v -V -qversion; do
3544 { { ac_try="$ac_compiler $ac_option >&5"
3545 case "(($ac_try" in
3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3548 esac
3549 eval ac_try_echo="\"\$as_me:${as_lineno-3549}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3552 ac_status=$?
3553 if test -s conftest.err; then
3554 sed '10a\
3555 ... rest of stderr output deleted ...
3556 10q' conftest.err >conftest.er1
3557 cat conftest.er1 >&5
3559 rm -f conftest.er1 conftest.err
3560 $as_echo "$as_me:${as_lineno-3560}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3562 done
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3568 main ()
3572 return 0;
3574 _ACEOF
3575 ac_clean_files_save=$ac_clean_files
3576 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3577 # Try to create an executable without -o first, disregard a.out.
3578 # It will help us diagnose broken compilers, and finding out an intuition
3579 # of exeext.
3580 { $as_echo "$as_me:${as_lineno-3580}: checking whether the C compiler works" >&5
3581 $as_echo_n "checking whether the C compiler works... " >&6; }
3582 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3584 # The possible output files:
3585 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3587 ac_rmfiles=
3588 for ac_file in $ac_files
3590 case $ac_file in
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3592 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3593 esac
3594 done
3595 rm -f $ac_rmfiles
3597 if { { ac_try="$ac_link_default"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-3602}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link_default") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-3606}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3609 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3610 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3611 # so that the user can short-circuit this test for compilers unknown to
3612 # Autoconf.
3613 for ac_file in $ac_files ''
3615 test -f "$ac_file" || continue
3616 case $ac_file in
3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3619 [ab].out )
3620 # We found the default executable, but exeext='' is most
3621 # certainly right.
3622 break;;
3623 *.* )
3624 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3625 then :; else
3626 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628 # We set ac_cv_exeext here because the later test for it is not
3629 # safe: cross compilers may not add the suffix if given an `-o'
3630 # argument, so we may need to know it at that point already.
3631 # Even if this section looks crufty: it has the advantage of
3632 # actually working.
3633 break;;
3635 break;;
3636 esac
3637 done
3638 test "$ac_cv_exeext" = no && ac_cv_exeext=
3640 else
3641 ac_file=''
3643 if test -z "$ac_file"; then :
3644 { $as_echo "$as_me:${as_lineno-3644}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 { { $as_echo "$as_me:${as_lineno-3649}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error 77 "C compiler cannot create executables
3652 See \`config.log' for more details" "3652" 5; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-3654}: result: yes" >&5
3655 $as_echo "yes" >&6; }
3657 { $as_echo "$as_me:${as_lineno-3657}: checking for C compiler default output file name" >&5
3658 $as_echo_n "checking for C compiler default output file name... " >&6; }
3659 { $as_echo "$as_me:${as_lineno-3659}: result: $ac_file" >&5
3660 $as_echo "$ac_file" >&6; }
3661 ac_exeext=$ac_cv_exeext
3663 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3664 ac_clean_files=$ac_clean_files_save
3665 { $as_echo "$as_me:${as_lineno-3665}: checking for suffix of executables" >&5
3666 $as_echo_n "checking for suffix of executables... " >&6; }
3667 if { { ac_try="$ac_link"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval ac_try_echo="\"\$as_me:${as_lineno-3672}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_link") 2>&5
3675 ac_status=$?
3676 $as_echo "$as_me:${as_lineno-3676}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; then :
3678 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3679 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3680 # work properly (i.e., refer to `conftest.exe'), while it won't with
3681 # `rm'.
3682 for ac_file in conftest.exe conftest conftest.*; do
3683 test -f "$ac_file" || continue
3684 case $ac_file in
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3687 break;;
3688 * ) break;;
3689 esac
3690 done
3691 else
3692 { { $as_echo "$as_me:${as_lineno-3692}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3695 See \`config.log' for more details" "3695" 5; }
3697 rm -f conftest conftest$ac_cv_exeext
3698 { $as_echo "$as_me:${as_lineno-3698}: result: $ac_cv_exeext" >&5
3699 $as_echo "$ac_cv_exeext" >&6; }
3701 rm -f conftest.$ac_ext
3702 EXEEXT=$ac_cv_exeext
3703 ac_exeext=$EXEEXT
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 #include <stdio.h>
3708 main ()
3710 FILE *f = fopen ("conftest.out", "w");
3711 return ferror (f) || fclose (f) != 0;
3714 return 0;
3716 _ACEOF
3717 ac_clean_files="$ac_clean_files conftest.out"
3718 # Check that the compiler produces executables we can run. If not, either
3719 # the compiler is broken, or we cross compile.
3720 { $as_echo "$as_me:${as_lineno-3720}: checking whether we are cross compiling" >&5
3721 $as_echo_n "checking whether we are cross compiling... " >&6; }
3722 if test "$cross_compiling" != yes; then
3723 { { ac_try="$ac_link"
3724 case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-3728}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_link") 2>&5
3731 ac_status=$?
3732 $as_echo "$as_me:${as_lineno-3732}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }
3734 if { ac_try='./conftest$ac_cv_exeext'
3735 { { case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-3739}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_try") 2>&5
3742 ac_status=$?
3743 $as_echo "$as_me:${as_lineno-3743}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; }; then
3745 cross_compiling=no
3746 else
3747 if test "$cross_compiling" = maybe; then
3748 cross_compiling=yes
3749 else
3750 { { $as_echo "$as_me:${as_lineno-3750}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error $? "cannot run C compiled programs.
3753 If you meant to cross compile, use \`--host'.
3754 See \`config.log' for more details" "3754" 5; }
3758 { $as_echo "$as_me:${as_lineno-3758}: result: $cross_compiling" >&5
3759 $as_echo "$cross_compiling" >&6; }
3761 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3762 ac_clean_files=$ac_clean_files_save
3763 { $as_echo "$as_me:${as_lineno-3763}: checking for suffix of object files" >&5
3764 $as_echo_n "checking for suffix of object files... " >&6; }
3765 if ${ac_cv_objext+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3772 main ()
3776 return 0;
3778 _ACEOF
3779 rm -f conftest.o conftest.obj
3780 if { { ac_try="$ac_compile"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-3785}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_compile") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-3789}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }; then :
3791 for ac_file in conftest.o conftest.obj conftest.*; do
3792 test -f "$ac_file" || continue;
3793 case $ac_file in
3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3796 break;;
3797 esac
3798 done
3799 else
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 { { $as_echo "$as_me:${as_lineno-3803}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error $? "cannot compute suffix of object files: cannot compile
3806 See \`config.log' for more details" "3806" 5; }
3808 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3810 { $as_echo "$as_me:${as_lineno-3810}: result: $ac_cv_objext" >&5
3811 $as_echo "$ac_cv_objext" >&6; }
3812 OBJEXT=$ac_cv_objext
3813 ac_objext=$OBJEXT
3814 { $as_echo "$as_me:${as_lineno-3814}: checking whether we are using the GNU C compiler" >&5
3815 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3816 if ${ac_cv_c_compiler_gnu+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3825 #ifndef __GNUC__
3826 choke me
3827 #endif
3830 return 0;
3832 _ACEOF
3833 if ac_fn_c_try_compile "3833"; then :
3834 ac_compiler_gnu=yes
3835 else
3836 ac_compiler_gnu=no
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3842 { $as_echo "$as_me:${as_lineno-3842}: result: $ac_cv_c_compiler_gnu" >&5
3843 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3844 if test $ac_compiler_gnu = yes; then
3845 GCC=yes
3846 else
3847 GCC=
3849 ac_test_CFLAGS=${CFLAGS+set}
3850 ac_save_CFLAGS=$CFLAGS
3851 { $as_echo "$as_me:${as_lineno-3851}: checking whether $CC accepts -g" >&5
3852 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3853 if ${ac_cv_prog_cc_g+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 ac_save_c_werror_flag=$ac_c_werror_flag
3857 ac_c_werror_flag=yes
3858 ac_cv_prog_cc_g=no
3859 CFLAGS="-g"
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3864 main ()
3868 return 0;
3870 _ACEOF
3871 if ac_fn_c_try_compile "3871"; then :
3872 ac_cv_prog_cc_g=yes
3873 else
3874 CFLAGS=""
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 "3886"; then :
3888 else
3889 ac_c_werror_flag=$ac_save_c_werror_flag
3890 CFLAGS="-g"
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3895 main ()
3899 return 0;
3901 _ACEOF
3902 if ac_fn_c_try_compile "3902"; then :
3903 ac_cv_prog_cc_g=yes
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3912 { $as_echo "$as_me:${as_lineno-3912}: result: $ac_cv_prog_cc_g" >&5
3913 $as_echo "$ac_cv_prog_cc_g" >&6; }
3914 if test "$ac_test_CFLAGS" = set; then
3915 CFLAGS=$ac_save_CFLAGS
3916 elif test $ac_cv_prog_cc_g = yes; then
3917 if test "$GCC" = yes; then
3918 CFLAGS="-g -O2"
3919 else
3920 CFLAGS="-g"
3922 else
3923 if test "$GCC" = yes; then
3924 CFLAGS="-O2"
3925 else
3926 CFLAGS=
3929 { $as_echo "$as_me:${as_lineno-3929}: checking for $CC option to accept ISO C89" >&5
3930 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3931 if ${ac_cv_prog_cc_c89+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 ac_cv_prog_cc_c89=no
3935 ac_save_CC=$CC
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3938 #include <stdarg.h>
3939 #include <stdio.h>
3940 struct stat;
3941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3942 struct buf { int x; };
3943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3944 static char *e (p, i)
3945 char **p;
3946 int i;
3948 return p[i];
3950 static char *f (char * (*g) (char **, int), char **p, ...)
3952 char *s;
3953 va_list v;
3954 va_start (v,p);
3955 s = g (p, va_arg (v,int));
3956 va_end (v);
3957 return s;
3960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3961 function prototypes and stuff, but not '\xHH' hex character constants.
3962 These don't provoke an error unfortunately, instead are silently treated
3963 as 'x'. The following induces an error, until -std is added to get
3964 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3965 array size at least. It's necessary to write '\x00'==0 to get something
3966 that's true only with -std. */
3967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3969 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3970 inside strings and character constants. */
3971 #define FOO(x) 'x'
3972 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3974 int test (int i, double x);
3975 struct s1 {int (*f) (int a);};
3976 struct s2 {int (*f) (double a);};
3977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3978 int argc;
3979 char **argv;
3981 main ()
3983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3985 return 0;
3987 _ACEOF
3988 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3989 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3991 CC="$ac_save_CC $ac_arg"
3992 if ac_fn_c_try_compile "3992"; then :
3993 ac_cv_prog_cc_c89=$ac_arg
3995 rm -f core conftest.err conftest.$ac_objext
3996 test "x$ac_cv_prog_cc_c89" != "xno" && break
3997 done
3998 rm -f conftest.$ac_ext
3999 CC=$ac_save_CC
4002 # AC_CACHE_VAL
4003 case "x$ac_cv_prog_cc_c89" in
4005 { $as_echo "$as_me:${as_lineno-4005}: result: none needed" >&5
4006 $as_echo "none needed" >&6; } ;;
4007 xno)
4008 { $as_echo "$as_me:${as_lineno-4008}: result: unsupported" >&5
4009 $as_echo "unsupported" >&6; } ;;
4011 CC="$CC $ac_cv_prog_cc_c89"
4012 { $as_echo "$as_me:${as_lineno-4012}: result: $ac_cv_prog_cc_c89" >&5
4013 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4014 esac
4015 if test "x$ac_cv_prog_cc_c89" != xno; then :
4019 ac_ext=c
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 ac_ext=c
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 { $as_echo "$as_me:${as_lineno-4030}: checking whether $CC understands -c and -o together" >&5
4031 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4032 if ${am_cv_prog_cc_c_o+:} false; then :
4033 $as_echo_n "(cached) " >&6
4034 else
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4039 main ()
4043 return 0;
4045 _ACEOF
4046 # Make sure it works both with $CC and with simple cc.
4047 # Following AC_PROG_CC_C_O, we do the test twice because some
4048 # compilers refuse to overwrite an existing .o file with -o,
4049 # though they will create one.
4050 am_cv_prog_cc_c_o=yes
4051 for am_i in 1 2; do
4052 if { echo "$as_me:4052: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4053 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4054 ac_status=$?
4055 echo "$as_me:4055: \$? = $ac_status" >&5
4056 (exit $ac_status); } \
4057 && test -f conftest2.$ac_objext; then
4058 : OK
4059 else
4060 am_cv_prog_cc_c_o=no
4061 break
4063 done
4064 rm -f core conftest*
4065 unset am_i
4067 { $as_echo "$as_me:${as_lineno-4067}: result: $am_cv_prog_cc_c_o" >&5
4068 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4069 if test "$am_cv_prog_cc_c_o" != yes; then
4070 # Losing compiler, so override with the script.
4071 # FIXME: It is wrong to rewrite CC.
4072 # But if we don't then we get into trouble of one sort or another.
4073 # A longer-term fix would be to have automake use am__CC in this case,
4074 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4075 CC="$am_aux_dir/compile $CC"
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 DEPDIR="${am__leading_dot}deps"
4085 ac_config_commands="$ac_config_commands depfiles"
4087 { $as_echo "$as_me:${as_lineno-4087}: checking whether ${MAKE-make} supports the include directive" >&5
4088 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4089 cat > confinc.mk << 'END'
4090 am__doit:
4091 @echo this is the am__doit target >confinc.out
4092 .PHONY: am__doit
4094 am__include="#"
4095 am__quote=
4096 # BSD make does it like this.
4097 echo '.include "confinc.mk" # ignored' > confmf.BSD
4098 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4099 echo 'include confinc.mk # ignored' > confmf.GNU
4100 _am_result=no
4101 for s in GNU BSD; do
4102 { echo "$as_me:4102: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4103 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4104 ac_status=$?
4105 echo "$as_me:4105: \$? = $ac_status" >&5
4106 (exit $ac_status); }
4107 case $?:`cat confinc.out 2>/dev/null` in #(
4108 '0:this is the am__doit target') :
4109 case $s in #(
4110 BSD) :
4111 am__include='.include' am__quote='"' ;; #(
4112 *) :
4113 am__include='include' am__quote='' ;;
4114 esac ;; #(
4115 *) :
4117 esac
4118 if test "$am__include" != "#"; then
4119 _am_result="yes ($s style)"
4120 break
4122 done
4123 rm -f confinc.* confmf.*
4124 { $as_echo "$as_me:${as_lineno-4124}: result: ${_am_result}" >&5
4125 $as_echo "${_am_result}" >&6; }
4127 # Check whether --enable-dependency-tracking was given.
4128 if test "${enable_dependency_tracking+set}" = set; then :
4129 enableval=$enable_dependency_tracking;
4132 if test "x$enable_dependency_tracking" != xno; then
4133 am_depcomp="$ac_aux_dir/depcomp"
4134 AMDEPBACKSLASH='\'
4135 am__nodep='_no'
4137 if test "x$enable_dependency_tracking" != xno; then
4138 AMDEP_TRUE=
4139 AMDEP_FALSE='#'
4140 else
4141 AMDEP_TRUE='#'
4142 AMDEP_FALSE=
4147 depcc="$CC" am_compiler_list=
4149 { $as_echo "$as_me:${as_lineno-4149}: checking dependency style of $depcc" >&5
4150 $as_echo_n "checking dependency style of $depcc... " >&6; }
4151 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4155 # We make a subdir and do the tests there. Otherwise we can end up
4156 # making bogus files that we don't know about and never remove. For
4157 # instance it was reported that on HP-UX the gcc test will end up
4158 # making a dummy file named 'D' -- because '-MD' means "put the output
4159 # in D".
4160 rm -rf conftest.dir
4161 mkdir conftest.dir
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4165 cd conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4171 # directory.
4172 mkdir sub
4174 am_cv_CC_dependencies_compiler_type=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4178 am__universal=false
4179 case " $depcc " in #(
4180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4181 esac
4183 for depmode in $am_compiler_list; do
4184 # Setup a source with many dependencies, because some compilers
4185 # like to wrap large dependency lists on column 80 (with \), and
4186 # we should not choose a depcomp mode which is confused by this.
4188 # We need to recreate these files for each test, as the compiler may
4189 # overwrite some of them when testing with obscure command lines.
4190 # This happens at least with the AIX C compiler.
4191 : > sub/conftest.c
4192 for i in 1 2 3 4 5 6; do
4193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4194 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4195 # Solaris 10 /bin/sh.
4196 echo '/* dummy */' > sub/conftst$i.h
4197 done
4198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4201 # mode. It turns out that the SunPro C++ compiler does not properly
4202 # handle '-M -o', and we need to detect this. Also, some Intel
4203 # versions had trouble with output in subdirs.
4204 am__obj=sub/conftest.${OBJEXT-o}
4205 am__minus_obj="-o $am__obj"
4206 case $depmode in
4207 gcc)
4208 # This depmode causes a compiler race in universal mode.
4209 test "$am__universal" = false || continue
4211 nosideeffect)
4212 # After this tag, mechanisms are not by side-effect, so they'll
4213 # only be used when explicitly requested.
4214 if test "x$enable_dependency_tracking" = xyes; then
4215 continue
4216 else
4217 break
4220 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4221 # This compiler won't grok '-c -o', but also, the minuso test has
4222 # not run yet. These depmodes are late enough in the game, and
4223 # so weak that their functioning should not be impacted.
4224 am__obj=conftest.${OBJEXT-o}
4225 am__minus_obj=
4227 none) break ;;
4228 esac
4229 if depmode=$depmode \
4230 source=sub/conftest.c object=$am__obj \
4231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4233 >/dev/null 2>conftest.err &&
4234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4238 # icc doesn't choke on unknown options, it will just issue warnings
4239 # or remarks (even with -Werror). So we grep stderr for any message
4240 # that says an option was ignored or not supported.
4241 # When given -MP, icc 7.0 and 7.1 complain thusly:
4242 # icc: Command line warning: ignoring option '-M'; no argument required
4243 # The diagnosis changed in icc 8.0:
4244 # icc: Command line remark: option '-MP' not supported
4245 if (grep 'ignoring option' conftest.err ||
4246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4247 am_cv_CC_dependencies_compiler_type=$depmode
4248 break
4251 done
4253 cd ..
4254 rm -rf conftest.dir
4255 else
4256 am_cv_CC_dependencies_compiler_type=none
4260 { $as_echo "$as_me:${as_lineno-4260}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4265 test "x$enable_dependency_tracking" != xno \
4266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4267 am__fastdepCC_TRUE=
4268 am__fastdepCC_FALSE='#'
4269 else
4270 am__fastdepCC_TRUE='#'
4271 am__fastdepCC_FALSE=
4276 { $as_echo "$as_me:${as_lineno-4276}: checking for library containing strerror" >&5
4277 $as_echo_n "checking for library containing strerror... " >&6; }
4278 if ${ac_cv_search_strerror+:} false; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 ac_func_search_save_LIBS=$LIBS
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4285 /* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4288 #ifdef __cplusplus
4289 extern "C"
4290 #endif
4291 char strerror ();
4293 main ()
4295 return strerror ();
4297 return 0;
4299 _ACEOF
4300 for ac_lib in '' cposix; do
4301 if test -z "$ac_lib"; then
4302 ac_res="none required"
4303 else
4304 ac_res=-l$ac_lib
4305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4307 if ac_fn_c_try_link "4307"; then :
4308 ac_cv_search_strerror=$ac_res
4310 rm -f core conftest.err conftest.$ac_objext \
4311 conftest$ac_exeext
4312 if ${ac_cv_search_strerror+:} false; then :
4313 break
4315 done
4316 if ${ac_cv_search_strerror+:} false; then :
4318 else
4319 ac_cv_search_strerror=no
4321 rm conftest.$ac_ext
4322 LIBS=$ac_func_search_save_LIBS
4324 { $as_echo "$as_me:${as_lineno-4324}: result: $ac_cv_search_strerror" >&5
4325 $as_echo "$ac_cv_search_strerror" >&6; }
4326 ac_res=$ac_cv_search_strerror
4327 if test "$ac_res" != no; then :
4328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4332 if test "x$U" != "x"; then
4333 as_fn_error $? "Compiler not ANSI compliant" "4333" 5
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-4339}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_RANLIB+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -n "$RANLIB"; then
4345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4355 $as_echo "$as_me:${as_lineno-4355}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4358 done
4359 done
4360 IFS=$as_save_IFS
4364 RANLIB=$ac_cv_prog_RANLIB
4365 if test -n "$RANLIB"; then
4366 { $as_echo "$as_me:${as_lineno-4366}: result: $RANLIB" >&5
4367 $as_echo "$RANLIB" >&6; }
4368 else
4369 { $as_echo "$as_me:${as_lineno-4369}: result: no" >&5
4370 $as_echo "no" >&6; }
4375 if test -z "$ac_cv_prog_RANLIB"; then
4376 ac_ct_RANLIB=$RANLIB
4377 # Extract the first word of "ranlib", so it can be a program name with args.
4378 set dummy ranlib; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-4379}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if test -n "$ac_ct_RANLIB"; then
4385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_RANLIB="ranlib"
4395 $as_echo "$as_me:${as_lineno-4395}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4405 if test -n "$ac_ct_RANLIB"; then
4406 { $as_echo "$as_me:${as_lineno-4406}: result: $ac_ct_RANLIB" >&5
4407 $as_echo "$ac_ct_RANLIB" >&6; }
4408 else
4409 { $as_echo "$as_me:${as_lineno-4409}: result: no" >&5
4410 $as_echo "no" >&6; }
4413 if test "x$ac_ct_RANLIB" = x; then
4414 RANLIB=":"
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417 yes:)
4418 { $as_echo "$as_me:${as_lineno-4418}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4421 esac
4422 RANLIB=$ac_ct_RANLIB
4424 else
4425 RANLIB="$ac_cv_prog_RANLIB"
4429 for ac_prog in gm4 gnum4 m4
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-4433}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_path_M4+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 case $M4 in
4439 [\\/]* | ?:[\\/]*)
4440 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4451 $as_echo "$as_me:${as_lineno-4451}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4459 esac
4461 M4=$ac_cv_path_M4
4462 if test -n "$M4"; then
4463 { $as_echo "$as_me:${as_lineno-4463}: result: $M4" >&5
4464 $as_echo "$M4" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-4466}: result: no" >&5
4467 $as_echo "no" >&6; }
4471 test -n "$M4" && break
4472 done
4475 case "$target_os" in
4476 *cygwin*)
4479 { $as_echo "$as_me:${as_lineno-4479}: checking for sin in -lm" >&5
4480 $as_echo_n "checking for sin in -lm... " >&6; }
4481 if ${ac_cv_lib_m_sin+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 ac_check_lib_save_LIBS=$LIBS
4485 LIBS="-lm $LIBS"
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4489 /* Override any GCC internal prototype to avoid an error.
4490 Use char because int might match the return type of a GCC
4491 builtin and then its argument prototype would still apply. */
4492 #ifdef __cplusplus
4493 extern "C"
4494 #endif
4495 char sin ();
4497 main ()
4499 return sin ();
4501 return 0;
4503 _ACEOF
4504 if ac_fn_c_try_link "4504"; then :
4505 ac_cv_lib_m_sin=yes
4506 else
4507 ac_cv_lib_m_sin=no
4509 rm -f core conftest.err conftest.$ac_objext \
4510 conftest$ac_exeext conftest.$ac_ext
4511 LIBS=$ac_check_lib_save_LIBS
4513 { $as_echo "$as_me:${as_lineno-4513}: result: $ac_cv_lib_m_sin" >&5
4514 $as_echo "$ac_cv_lib_m_sin" >&6; }
4515 if test "x$ac_cv_lib_m_sin" = xyes; then :
4516 cat >>confdefs.h <<_ACEOF
4517 #define HAVE_LIBM 1
4518 _ACEOF
4520 LIBS="-lm $LIBS"
4525 esac
4527 ac_ext=c
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532 { $as_echo "$as_me:${as_lineno-4532}: checking how to run the C preprocessor" >&5
4533 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4534 # On Suns, sometimes $CPP names a directory.
4535 if test -n "$CPP" && test -d "$CPP"; then
4536 CPP=
4538 if test -z "$CPP"; then
4539 if ${ac_cv_prog_CPP+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 # Double quotes because CPP needs to be expanded
4543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4545 ac_preproc_ok=false
4546 for ac_c_preproc_warn_flag in '' yes
4548 # Use a header file that comes with gcc, so configuring glibc
4549 # with a fresh cross-compiler works.
4550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551 # <limits.h> exists even on freestanding compilers.
4552 # On the NeXT, cc -E runs the code through the compiler's parser,
4553 # not just through cpp. "Syntax error" is here to catch this case.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #ifdef __STDC__
4557 # include <limits.h>
4558 #else
4559 # include <assert.h>
4560 #endif
4561 Syntax error
4562 _ACEOF
4563 if ac_fn_c_try_cpp "4563"; then :
4565 else
4566 # Broken: fails on valid input.
4567 continue
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <ac_nonexistent.h>
4576 _ACEOF
4577 if ac_fn_c_try_cpp "4577"; then :
4578 # Broken: success on invalid input.
4579 continue
4580 else
4581 # Passes both tests.
4582 ac_preproc_ok=:
4583 break
4585 rm -f conftest.err conftest.i conftest.$ac_ext
4587 done
4588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4589 rm -f conftest.i conftest.err conftest.$ac_ext
4590 if $ac_preproc_ok; then :
4591 break
4594 done
4595 ac_cv_prog_CPP=$CPP
4598 CPP=$ac_cv_prog_CPP
4599 else
4600 ac_cv_prog_CPP=$CPP
4602 { $as_echo "$as_me:${as_lineno-4602}: result: $CPP" >&5
4603 $as_echo "$CPP" >&6; }
4604 ac_preproc_ok=false
4605 for ac_c_preproc_warn_flag in '' yes
4607 # Use a header file that comes with gcc, so configuring glibc
4608 # with a fresh cross-compiler works.
4609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4610 # <limits.h> exists even on freestanding compilers.
4611 # On the NeXT, cc -E runs the code through the compiler's parser,
4612 # not just through cpp. "Syntax error" is here to catch this case.
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615 #ifdef __STDC__
4616 # include <limits.h>
4617 #else
4618 # include <assert.h>
4619 #endif
4620 Syntax error
4621 _ACEOF
4622 if ac_fn_c_try_cpp "4622"; then :
4624 else
4625 # Broken: fails on valid input.
4626 continue
4628 rm -f conftest.err conftest.i conftest.$ac_ext
4630 # OK, works on sane cases. Now check whether nonexistent headers
4631 # can be detected and how.
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <ac_nonexistent.h>
4635 _ACEOF
4636 if ac_fn_c_try_cpp "4636"; then :
4637 # Broken: success on invalid input.
4638 continue
4639 else
4640 # Passes both tests.
4641 ac_preproc_ok=:
4642 break
4644 rm -f conftest.err conftest.i conftest.$ac_ext
4646 done
4647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4648 rm -f conftest.i conftest.err conftest.$ac_ext
4649 if $ac_preproc_ok; then :
4651 else
4652 { { $as_echo "$as_me:${as_lineno-4652}: error: in \`$ac_pwd':" >&5
4653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4654 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4655 See \`config.log' for more details" "4655" 5; }
4658 ac_ext=c
4659 ac_cpp='$CPP $CPPFLAGS'
4660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665 { $as_echo "$as_me:${as_lineno-4665}: checking for grep that handles long lines and -e" >&5
4666 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4667 if ${ac_cv_path_GREP+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -z "$GREP"; then
4671 ac_path_GREP_found=false
4672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_prog in grep ggrep; do
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4681 as_fn_executable_p "$ac_path_GREP" || continue
4682 # Check for GNU ac_path_GREP and select it if it is found.
4683 # Check for GNU $ac_path_GREP
4684 case `"$ac_path_GREP" --version 2>&1` in
4685 *GNU*)
4686 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4688 ac_count=0
4689 $as_echo_n 0123456789 >"conftest.in"
4690 while :
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 $as_echo 'GREP' >> "conftest.nl"
4696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 as_fn_arith $ac_count + 1 && ac_count=$as_val
4699 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_GREP="$ac_path_GREP"
4702 ac_path_GREP_max=$ac_count
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
4707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708 esac
4710 $ac_path_GREP_found && break 3
4711 done
4712 done
4713 done
4714 IFS=$as_save_IFS
4715 if test -z "$ac_cv_path_GREP"; then
4716 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "4716" 5
4718 else
4719 ac_cv_path_GREP=$GREP
4723 { $as_echo "$as_me:${as_lineno-4723}: result: $ac_cv_path_GREP" >&5
4724 $as_echo "$ac_cv_path_GREP" >&6; }
4725 GREP="$ac_cv_path_GREP"
4728 { $as_echo "$as_me:${as_lineno-4728}: checking for egrep" >&5
4729 $as_echo_n "checking for egrep... " >&6; }
4730 if ${ac_cv_path_EGREP+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4734 then ac_cv_path_EGREP="$GREP -E"
4735 else
4736 if test -z "$EGREP"; then
4737 ac_path_EGREP_found=false
4738 # Loop through the user's path and test for each of PROGNAME-LIST
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_prog in egrep; do
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4747 as_fn_executable_p "$ac_path_EGREP" || continue
4748 # Check for GNU ac_path_EGREP and select it if it is found.
4749 # Check for GNU $ac_path_EGREP
4750 case `"$ac_path_EGREP" --version 2>&1` in
4751 *GNU*)
4752 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4754 ac_count=0
4755 $as_echo_n 0123456789 >"conftest.in"
4756 while :
4758 cat "conftest.in" "conftest.in" >"conftest.tmp"
4759 mv "conftest.tmp" "conftest.in"
4760 cp "conftest.in" "conftest.nl"
4761 $as_echo 'EGREP' >> "conftest.nl"
4762 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4763 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4764 as_fn_arith $ac_count + 1 && ac_count=$as_val
4765 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4766 # Best one so far, save it but keep looking for a better one
4767 ac_cv_path_EGREP="$ac_path_EGREP"
4768 ac_path_EGREP_max=$ac_count
4770 # 10*(2^10) chars as input seems more than enough
4771 test $ac_count -gt 10 && break
4772 done
4773 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4774 esac
4776 $ac_path_EGREP_found && break 3
4777 done
4778 done
4779 done
4780 IFS=$as_save_IFS
4781 if test -z "$ac_cv_path_EGREP"; then
4782 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "4782" 5
4784 else
4785 ac_cv_path_EGREP=$EGREP
4790 { $as_echo "$as_me:${as_lineno-4790}: result: $ac_cv_path_EGREP" >&5
4791 $as_echo "$ac_cv_path_EGREP" >&6; }
4792 EGREP="$ac_cv_path_EGREP"
4795 { $as_echo "$as_me:${as_lineno-4795}: checking for ANSI C header files" >&5
4796 $as_echo_n "checking for ANSI C header files... " >&6; }
4797 if ${ac_cv_header_stdc+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 #include <stdlib.h>
4803 #include <stdarg.h>
4804 #include <string.h>
4805 #include <float.h>
4808 main ()
4812 return 0;
4814 _ACEOF
4815 if ac_fn_c_try_compile "4815"; then :
4816 ac_cv_header_stdc=yes
4817 else
4818 ac_cv_header_stdc=no
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 if test $ac_cv_header_stdc = yes; then
4823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 #include <string.h>
4828 _ACEOF
4829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4830 $EGREP "memchr" >/dev/null 2>&1; then :
4832 else
4833 ac_cv_header_stdc=no
4835 rm -f conftest*
4839 if test $ac_cv_header_stdc = yes; then
4840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 #include <stdlib.h>
4845 _ACEOF
4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4847 $EGREP "free" >/dev/null 2>&1; then :
4849 else
4850 ac_cv_header_stdc=no
4852 rm -f conftest*
4856 if test $ac_cv_header_stdc = yes; then
4857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4858 if test "$cross_compiling" = yes; then :
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 #include <ctype.h>
4864 #include <stdlib.h>
4865 #if ((' ' & 0x0FF) == 0x020)
4866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4868 #else
4869 # define ISLOWER(c) \
4870 (('a' <= (c) && (c) <= 'i') \
4871 || ('j' <= (c) && (c) <= 'r') \
4872 || ('s' <= (c) && (c) <= 'z'))
4873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4874 #endif
4876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4878 main ()
4880 int i;
4881 for (i = 0; i < 256; i++)
4882 if (XOR (islower (i), ISLOWER (i))
4883 || toupper (i) != TOUPPER (i))
4884 return 2;
4885 return 0;
4887 _ACEOF
4888 if ac_fn_c_try_run "4888"; then :
4890 else
4891 ac_cv_header_stdc=no
4893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4894 conftest.$ac_objext conftest.beam conftest.$ac_ext
4899 { $as_echo "$as_me:${as_lineno-4899}: result: $ac_cv_header_stdc" >&5
4900 $as_echo "$ac_cv_header_stdc" >&6; }
4901 if test $ac_cv_header_stdc = yes; then
4903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4907 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4908 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4909 inttypes.h stdint.h unistd.h
4910 do :
4911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4912 ac_fn_c_check_header_compile "4912" "$ac_header" "$as_ac_Header" "$ac_includes_default
4914 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4915 cat >>confdefs.h <<_ACEOF
4916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4917 _ACEOF
4921 done
4924 # The cast to long int works around a bug in the HP C Compiler
4925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4927 # This bug is HP SR number 8606223364.
4928 { $as_echo "$as_me:${as_lineno-4928}: checking size of void *" >&5
4929 $as_echo_n "checking size of void *... " >&6; }
4930 if ${ac_cv_sizeof_void_p+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if ac_fn_c_compute_int "4933" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4935 else
4936 if test "$ac_cv_type_void_p" = yes; then
4937 { { $as_echo "$as_me:${as_lineno-4937}: error: in \`$ac_pwd':" >&5
4938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4939 as_fn_error 77 "cannot compute sizeof (void *)
4940 See \`config.log' for more details" "4940" 5; }
4941 else
4942 ac_cv_sizeof_void_p=0
4947 { $as_echo "$as_me:${as_lineno-4947}: result: $ac_cv_sizeof_void_p" >&5
4948 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4952 cat >>confdefs.h <<_ACEOF
4953 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4954 _ACEOF
4957 # The cast to long int works around a bug in the HP C Compiler
4958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4960 # This bug is HP SR number 8606223364.
4961 { $as_echo "$as_me:${as_lineno-4961}: checking size of unsigned int" >&5
4962 $as_echo_n "checking size of unsigned int... " >&6; }
4963 if ${ac_cv_sizeof_unsigned_int+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if ac_fn_c_compute_int "4966" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4968 else
4969 if test "$ac_cv_type_unsigned_int" = yes; then
4970 { { $as_echo "$as_me:${as_lineno-4970}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error 77 "cannot compute sizeof (unsigned int)
4973 See \`config.log' for more details" "4973" 5; }
4974 else
4975 ac_cv_sizeof_unsigned_int=0
4980 { $as_echo "$as_me:${as_lineno-4980}: result: $ac_cv_sizeof_unsigned_int" >&5
4981 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4985 cat >>confdefs.h <<_ACEOF
4986 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4987 _ACEOF
4990 # The cast to long int works around a bug in the HP C Compiler
4991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4993 # This bug is HP SR number 8606223364.
4994 { $as_echo "$as_me:${as_lineno-4994}: checking size of unsigned long" >&5
4995 $as_echo_n "checking size of unsigned long... " >&6; }
4996 if ${ac_cv_sizeof_unsigned_long+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if ac_fn_c_compute_int "4999" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
5001 else
5002 if test "$ac_cv_type_unsigned_long" = yes; then
5003 { { $as_echo "$as_me:${as_lineno-5003}: error: in \`$ac_pwd':" >&5
5004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5005 as_fn_error 77 "cannot compute sizeof (unsigned long)
5006 See \`config.log' for more details" "5006" 5; }
5007 else
5008 ac_cv_sizeof_unsigned_long=0
5013 { $as_echo "$as_me:${as_lineno-5013}: result: $ac_cv_sizeof_unsigned_long" >&5
5014 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
5018 cat >>confdefs.h <<_ACEOF
5019 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5020 _ACEOF
5023 # The cast to long int works around a bug in the HP C Compiler
5024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5026 # This bug is HP SR number 8606223364.
5027 { $as_echo "$as_me:${as_lineno-5027}: checking size of unsigned long long" >&5
5028 $as_echo_n "checking size of unsigned long long... " >&6; }
5029 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 if ac_fn_c_compute_int "5032" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
5034 else
5035 if test "$ac_cv_type_unsigned_long_long" = yes; then
5036 { { $as_echo "$as_me:${as_lineno-5036}: error: in \`$ac_pwd':" >&5
5037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5038 as_fn_error 77 "cannot compute sizeof (unsigned long long)
5039 See \`config.log' for more details" "5039" 5; }
5040 else
5041 ac_cv_sizeof_unsigned_long_long=0
5046 { $as_echo "$as_me:${as_lineno-5046}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5047 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
5051 cat >>confdefs.h <<_ACEOF
5052 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
5053 _ACEOF
5057 { $as_echo "$as_me:${as_lineno-5057}: checking for X" >&5
5058 $as_echo_n "checking for X... " >&6; }
5061 # Check whether --with-x was given.
5062 if test "${with_x+set}" = set; then :
5063 withval=$with_x;
5066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5067 if test "x$with_x" = xno; then
5068 # The user explicitly disabled X.
5069 have_x=disabled
5070 else
5071 case $x_includes,$x_libraries in #(
5072 *\'*) as_fn_error $? "cannot use X directory names containing '" "5072" 5;; #(
5073 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 # One or both of the vars are not set, and there is no cached value.
5077 ac_x_includes=no ac_x_libraries=no
5078 rm -f -r conftest.dir
5079 if mkdir conftest.dir; then
5080 cd conftest.dir
5081 cat >Imakefile <<'_ACEOF'
5082 incroot:
5083 @echo incroot='${INCROOT}'
5084 usrlibdir:
5085 @echo usrlibdir='${USRLIBDIR}'
5086 libdir:
5087 @echo libdir='${LIBDIR}'
5088 _ACEOF
5089 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5090 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5091 for ac_var in incroot usrlibdir libdir; do
5092 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5093 done
5094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5095 for ac_extension in a so sl dylib la dll; do
5096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5098 ac_im_usrlibdir=$ac_im_libdir; break
5100 done
5101 # Screen out bogus values from the imake configuration. They are
5102 # bogus both because they are the default anyway, and because
5103 # using them would break gcc on systems where it needs fixed includes.
5104 case $ac_im_incroot in
5105 /usr/include) ac_x_includes= ;;
5106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5107 esac
5108 case $ac_im_usrlibdir in
5109 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5111 esac
5113 cd ..
5114 rm -f -r conftest.dir
5117 # Standard set of common directories for X headers.
5118 # Check X11 before X11Rn because it is often a symlink to the current release.
5119 ac_x_header_dirs='
5120 /usr/X11/include
5121 /usr/X11R7/include
5122 /usr/X11R6/include
5123 /usr/X11R5/include
5124 /usr/X11R4/include
5126 /usr/include/X11
5127 /usr/include/X11R7
5128 /usr/include/X11R6
5129 /usr/include/X11R5
5130 /usr/include/X11R4
5132 /usr/local/X11/include
5133 /usr/local/X11R7/include
5134 /usr/local/X11R6/include
5135 /usr/local/X11R5/include
5136 /usr/local/X11R4/include
5138 /usr/local/include/X11
5139 /usr/local/include/X11R7
5140 /usr/local/include/X11R6
5141 /usr/local/include/X11R5
5142 /usr/local/include/X11R4
5144 /usr/X386/include
5145 /usr/x386/include
5146 /usr/XFree86/include/X11
5148 /usr/include
5149 /usr/local/include
5150 /usr/unsupported/include
5151 /usr/athena/include
5152 /usr/local/x11r5/include
5153 /usr/lpp/Xamples/include
5155 /usr/openwin/include
5156 /usr/openwin/share/include'
5158 if test "$ac_x_includes" = no; then
5159 # Guess where to find include files, by looking for Xlib.h.
5160 # First, try using that file with no special directory specified.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <X11/Xlib.h>
5164 _ACEOF
5165 if ac_fn_c_try_cpp "5165"; then :
5166 # We can compile using X headers with no special include directory.
5167 ac_x_includes=
5168 else
5169 for ac_dir in $ac_x_header_dirs; do
5170 if test -r "$ac_dir/X11/Xlib.h"; then
5171 ac_x_includes=$ac_dir
5172 break
5174 done
5176 rm -f conftest.err conftest.i conftest.$ac_ext
5177 fi # $ac_x_includes = no
5179 if test "$ac_x_libraries" = no; then
5180 # Check for the libraries.
5181 # See if we find them without any special options.
5182 # Don't add to $LIBS permanently.
5183 ac_save_LIBS=$LIBS
5184 LIBS="-lX11 $LIBS"
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 #include <X11/Xlib.h>
5189 main ()
5191 XrmInitialize ()
5193 return 0;
5195 _ACEOF
5196 if ac_fn_c_try_link "5196"; then :
5197 LIBS=$ac_save_LIBS
5198 # We can link X programs with no special library path.
5199 ac_x_libraries=
5200 else
5201 LIBS=$ac_save_LIBS
5202 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5204 # Don't even attempt the hair of trying to link an X program!
5205 for ac_extension in a so sl dylib la dll; do
5206 if test -r "$ac_dir/libX11.$ac_extension"; then
5207 ac_x_libraries=$ac_dir
5208 break 2
5210 done
5211 done
5213 rm -f core conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 fi # $ac_x_libraries = no
5217 case $ac_x_includes,$ac_x_libraries in #(
5218 no,* | *,no | *\'*)
5219 # Didn't find X, or a directory has "'" in its name.
5220 ac_cv_have_x="have_x=no";; #(
5222 # Record where we found X for the cache.
5223 ac_cv_have_x="have_x=yes\
5224 ac_x_includes='$ac_x_includes'\
5225 ac_x_libraries='$ac_x_libraries'"
5226 esac
5228 ;; #(
5229 *) have_x=yes;;
5230 esac
5231 eval "$ac_cv_have_x"
5232 fi # $with_x != no
5234 if test "$have_x" != yes; then
5235 { $as_echo "$as_me:${as_lineno-5235}: result: $have_x" >&5
5236 $as_echo "$have_x" >&6; }
5237 no_x=yes
5238 else
5239 # If each of the values was on the command line, it overrides each guess.
5240 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5241 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5242 # Update the cache value to reflect the command line values.
5243 ac_cv_have_x="have_x=yes\
5244 ac_x_includes='$x_includes'\
5245 ac_x_libraries='$x_libraries'"
5246 { $as_echo "$as_me:${as_lineno-5246}: result: libraries $x_libraries, headers $x_includes" >&5
5247 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5250 if test "$no_x" = yes; then
5251 # Not all programs may use this symbol, but it does not hurt to define it.
5253 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5255 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5256 else
5257 if test -n "$x_includes"; then
5258 X_CFLAGS="$X_CFLAGS -I$x_includes"
5261 # It would also be nice to do this for all -L options, not just this one.
5262 if test -n "$x_libraries"; then
5263 X_LIBS="$X_LIBS -L$x_libraries"
5264 # For Solaris; some versions of Sun CC require a space after -R and
5265 # others require no space. Words are not sufficient . . . .
5266 { $as_echo "$as_me:${as_lineno-5266}: checking whether -R must be followed by a space" >&5
5267 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5268 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5269 ac_xsave_c_werror_flag=$ac_c_werror_flag
5270 ac_c_werror_flag=yes
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5275 main ()
5279 return 0;
5281 _ACEOF
5282 if ac_fn_c_try_link "5282"; then :
5283 { $as_echo "$as_me:${as_lineno-5283}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 X_LIBS="$X_LIBS -R$x_libraries"
5286 else
5287 LIBS="$ac_xsave_LIBS -R $x_libraries"
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5292 main ()
5296 return 0;
5298 _ACEOF
5299 if ac_fn_c_try_link "5299"; then :
5300 { $as_echo "$as_me:${as_lineno-5300}: result: yes" >&5
5301 $as_echo "yes" >&6; }
5302 X_LIBS="$X_LIBS -R $x_libraries"
5303 else
5304 { $as_echo "$as_me:${as_lineno-5304}: result: neither works" >&5
5305 $as_echo "neither works" >&6; }
5307 rm -f core conftest.err conftest.$ac_objext \
5308 conftest$ac_exeext conftest.$ac_ext
5310 rm -f core conftest.err conftest.$ac_objext \
5311 conftest$ac_exeext conftest.$ac_ext
5312 ac_c_werror_flag=$ac_xsave_c_werror_flag
5313 LIBS=$ac_xsave_LIBS
5316 # Check for system-dependent libraries X programs must link with.
5317 # Do this before checking for the system-independent R6 libraries
5318 # (-lICE), since we may need -lsocket or whatever for X linking.
5320 if test "$ISC" = yes; then
5321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5322 else
5323 # Martyn Johnson says this is needed for Ultrix, if the X
5324 # libraries were built with DECnet support. And Karl Berry says
5325 # the Alpha needs dnet_stub (dnet does not exist).
5326 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5330 /* Override any GCC internal prototype to avoid an error.
5331 Use char because int might match the return type of a GCC
5332 builtin and then its argument prototype would still apply. */
5333 #ifdef __cplusplus
5334 extern "C"
5335 #endif
5336 char XOpenDisplay ();
5338 main ()
5340 return XOpenDisplay ();
5342 return 0;
5344 _ACEOF
5345 if ac_fn_c_try_link "5345"; then :
5347 else
5348 { $as_echo "$as_me:${as_lineno-5348}: checking for dnet_ntoa in -ldnet" >&5
5349 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5350 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 ac_check_lib_save_LIBS=$LIBS
5354 LIBS="-ldnet $LIBS"
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5361 #ifdef __cplusplus
5362 extern "C"
5363 #endif
5364 char dnet_ntoa ();
5366 main ()
5368 return dnet_ntoa ();
5370 return 0;
5372 _ACEOF
5373 if ac_fn_c_try_link "5373"; then :
5374 ac_cv_lib_dnet_dnet_ntoa=yes
5375 else
5376 ac_cv_lib_dnet_dnet_ntoa=no
5378 rm -f core conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5380 LIBS=$ac_check_lib_save_LIBS
5382 { $as_echo "$as_me:${as_lineno-5382}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5383 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5384 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5385 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5388 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5389 { $as_echo "$as_me:${as_lineno-5389}: checking for dnet_ntoa in -ldnet_stub" >&5
5390 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5391 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 ac_check_lib_save_LIBS=$LIBS
5395 LIBS="-ldnet_stub $LIBS"
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5399 /* Override any GCC internal prototype to avoid an error.
5400 Use char because int might match the return type of a GCC
5401 builtin and then its argument prototype would still apply. */
5402 #ifdef __cplusplus
5403 extern "C"
5404 #endif
5405 char dnet_ntoa ();
5407 main ()
5409 return dnet_ntoa ();
5411 return 0;
5413 _ACEOF
5414 if ac_fn_c_try_link "5414"; then :
5415 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5416 else
5417 ac_cv_lib_dnet_stub_dnet_ntoa=no
5419 rm -f core conftest.err conftest.$ac_objext \
5420 conftest$ac_exeext conftest.$ac_ext
5421 LIBS=$ac_check_lib_save_LIBS
5423 { $as_echo "$as_me:${as_lineno-5423}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5424 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5425 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5426 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5431 rm -f core conftest.err conftest.$ac_objext \
5432 conftest$ac_exeext conftest.$ac_ext
5433 LIBS="$ac_xsave_LIBS"
5435 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5436 # to get the SysV transport functions.
5437 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5438 # needs -lnsl.
5439 # The nsl library prevents programs from opening the X display
5440 # on Irix 5.2, according to T.E. Dickey.
5441 # The functions gethostbyname, getservbyname, and inet_addr are
5442 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5443 ac_fn_c_check_func "5443" "gethostbyname" "ac_cv_func_gethostbyname"
5444 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5448 if test $ac_cv_func_gethostbyname = no; then
5449 { $as_echo "$as_me:${as_lineno-5449}: checking for gethostbyname in -lnsl" >&5
5450 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5451 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 ac_check_lib_save_LIBS=$LIBS
5455 LIBS="-lnsl $LIBS"
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5459 /* Override any GCC internal prototype to avoid an error.
5460 Use char because int might match the return type of a GCC
5461 builtin and then its argument prototype would still apply. */
5462 #ifdef __cplusplus
5463 extern "C"
5464 #endif
5465 char gethostbyname ();
5467 main ()
5469 return gethostbyname ();
5471 return 0;
5473 _ACEOF
5474 if ac_fn_c_try_link "5474"; then :
5475 ac_cv_lib_nsl_gethostbyname=yes
5476 else
5477 ac_cv_lib_nsl_gethostbyname=no
5479 rm -f core conftest.err conftest.$ac_objext \
5480 conftest$ac_exeext conftest.$ac_ext
5481 LIBS=$ac_check_lib_save_LIBS
5483 { $as_echo "$as_me:${as_lineno-5483}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5484 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5485 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5489 if test $ac_cv_lib_nsl_gethostbyname = no; then
5490 { $as_echo "$as_me:${as_lineno-5490}: checking for gethostbyname in -lbsd" >&5
5491 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5492 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 ac_check_lib_save_LIBS=$LIBS
5496 LIBS="-lbsd $LIBS"
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5500 /* Override any GCC internal prototype to avoid an error.
5501 Use char because int might match the return type of a GCC
5502 builtin and then its argument prototype would still apply. */
5503 #ifdef __cplusplus
5504 extern "C"
5505 #endif
5506 char gethostbyname ();
5508 main ()
5510 return gethostbyname ();
5512 return 0;
5514 _ACEOF
5515 if ac_fn_c_try_link "5515"; then :
5516 ac_cv_lib_bsd_gethostbyname=yes
5517 else
5518 ac_cv_lib_bsd_gethostbyname=no
5520 rm -f core conftest.err conftest.$ac_objext \
5521 conftest$ac_exeext conftest.$ac_ext
5522 LIBS=$ac_check_lib_save_LIBS
5524 { $as_echo "$as_me:${as_lineno-5524}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5525 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5526 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5533 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5534 # socket/setsockopt and other routines are undefined under SCO ODT
5535 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5536 # on later versions), says Simon Leinen: it contains gethostby*
5537 # variants that don't use the name server (or something). -lsocket
5538 # must be given before -lnsl if both are needed. We assume that
5539 # if connect needs -lnsl, so does gethostbyname.
5540 ac_fn_c_check_func "5540" "connect" "ac_cv_func_connect"
5541 if test "x$ac_cv_func_connect" = xyes; then :
5545 if test $ac_cv_func_connect = no; then
5546 { $as_echo "$as_me:${as_lineno-5546}: checking for connect in -lsocket" >&5
5547 $as_echo_n "checking for connect in -lsocket... " >&6; }
5548 if ${ac_cv_lib_socket_connect+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 ac_check_lib_save_LIBS=$LIBS
5552 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5556 /* Override any GCC internal prototype to avoid an error.
5557 Use char because int might match the return type of a GCC
5558 builtin and then its argument prototype would still apply. */
5559 #ifdef __cplusplus
5560 extern "C"
5561 #endif
5562 char connect ();
5564 main ()
5566 return connect ();
5568 return 0;
5570 _ACEOF
5571 if ac_fn_c_try_link "5571"; then :
5572 ac_cv_lib_socket_connect=yes
5573 else
5574 ac_cv_lib_socket_connect=no
5576 rm -f core conftest.err conftest.$ac_objext \
5577 conftest$ac_exeext conftest.$ac_ext
5578 LIBS=$ac_check_lib_save_LIBS
5580 { $as_echo "$as_me:${as_lineno-5580}: result: $ac_cv_lib_socket_connect" >&5
5581 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5582 if test "x$ac_cv_lib_socket_connect" = xyes; then :
5583 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5588 # Guillermo Gomez says -lposix is necessary on A/UX.
5589 ac_fn_c_check_func "5589" "remove" "ac_cv_func_remove"
5590 if test "x$ac_cv_func_remove" = xyes; then :
5594 if test $ac_cv_func_remove = no; then
5595 { $as_echo "$as_me:${as_lineno-5595}: checking for remove in -lposix" >&5
5596 $as_echo_n "checking for remove in -lposix... " >&6; }
5597 if ${ac_cv_lib_posix_remove+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 ac_check_lib_save_LIBS=$LIBS
5601 LIBS="-lposix $LIBS"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5605 /* Override any GCC internal prototype to avoid an error.
5606 Use char because int might match the return type of a GCC
5607 builtin and then its argument prototype would still apply. */
5608 #ifdef __cplusplus
5609 extern "C"
5610 #endif
5611 char remove ();
5613 main ()
5615 return remove ();
5617 return 0;
5619 _ACEOF
5620 if ac_fn_c_try_link "5620"; then :
5621 ac_cv_lib_posix_remove=yes
5622 else
5623 ac_cv_lib_posix_remove=no
5625 rm -f core conftest.err conftest.$ac_objext \
5626 conftest$ac_exeext conftest.$ac_ext
5627 LIBS=$ac_check_lib_save_LIBS
5629 { $as_echo "$as_me:${as_lineno-5629}: result: $ac_cv_lib_posix_remove" >&5
5630 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5631 if test "x$ac_cv_lib_posix_remove" = xyes; then :
5632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5637 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5638 ac_fn_c_check_func "5638" "shmat" "ac_cv_func_shmat"
5639 if test "x$ac_cv_func_shmat" = xyes; then :
5643 if test $ac_cv_func_shmat = no; then
5644 { $as_echo "$as_me:${as_lineno-5644}: checking for shmat in -lipc" >&5
5645 $as_echo_n "checking for shmat in -lipc... " >&6; }
5646 if ${ac_cv_lib_ipc_shmat+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 ac_check_lib_save_LIBS=$LIBS
5650 LIBS="-lipc $LIBS"
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5654 /* Override any GCC internal prototype to avoid an error.
5655 Use char because int might match the return type of a GCC
5656 builtin and then its argument prototype would still apply. */
5657 #ifdef __cplusplus
5658 extern "C"
5659 #endif
5660 char shmat ();
5662 main ()
5664 return shmat ();
5666 return 0;
5668 _ACEOF
5669 if ac_fn_c_try_link "5669"; then :
5670 ac_cv_lib_ipc_shmat=yes
5671 else
5672 ac_cv_lib_ipc_shmat=no
5674 rm -f core conftest.err conftest.$ac_objext \
5675 conftest$ac_exeext conftest.$ac_ext
5676 LIBS=$ac_check_lib_save_LIBS
5678 { $as_echo "$as_me:${as_lineno-5678}: result: $ac_cv_lib_ipc_shmat" >&5
5679 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5680 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5687 # Check for libraries that X11R6 Xt/Xaw programs need.
5688 ac_save_LDFLAGS=$LDFLAGS
5689 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5690 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5691 # check for ICE first), but we must link in the order -lSM -lICE or
5692 # we get undefined symbols. So assume we have SM if we have ICE.
5693 # These have to be linked with before -lX11, unlike the other
5694 # libraries we check for below, so use a different variable.
5695 # John Interrante, Karl Berry
5696 { $as_echo "$as_me:${as_lineno-5696}: checking for IceConnectionNumber in -lICE" >&5
5697 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5698 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 ac_check_lib_save_LIBS=$LIBS
5702 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5706 /* Override any GCC internal prototype to avoid an error.
5707 Use char because int might match the return type of a GCC
5708 builtin and then its argument prototype would still apply. */
5709 #ifdef __cplusplus
5710 extern "C"
5711 #endif
5712 char IceConnectionNumber ();
5714 main ()
5716 return IceConnectionNumber ();
5718 return 0;
5720 _ACEOF
5721 if ac_fn_c_try_link "5721"; then :
5722 ac_cv_lib_ICE_IceConnectionNumber=yes
5723 else
5724 ac_cv_lib_ICE_IceConnectionNumber=no
5726 rm -f core conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
5728 LIBS=$ac_check_lib_save_LIBS
5730 { $as_echo "$as_me:${as_lineno-5730}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5731 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5732 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5733 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5736 LDFLAGS=$ac_save_LDFLAGS
5740 CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
5741 LDFLAGS="${LDFLAGS} ${X_LIBS}"
5742 LIBS="${X_PRE_LIBS} ${LIBS} -lX11"
5743 { $as_echo "$as_me:${as_lineno-5743}: checking for XtToolkitInitialize in -lXt" >&5
5744 $as_echo_n "checking for XtToolkitInitialize in -lXt... " >&6; }
5745 if ${ac_cv_lib_Xt_XtToolkitInitialize+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 ac_check_lib_save_LIBS=$LIBS
5749 LIBS="-lXt $LIBS"
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5753 /* Override any GCC internal prototype to avoid an error.
5754 Use char because int might match the return type of a GCC
5755 builtin and then its argument prototype would still apply. */
5756 #ifdef __cplusplus
5757 extern "C"
5758 #endif
5759 char XtToolkitInitialize ();
5761 main ()
5763 return XtToolkitInitialize ();
5765 return 0;
5767 _ACEOF
5768 if ac_fn_c_try_link "5768"; then :
5769 ac_cv_lib_Xt_XtToolkitInitialize=yes
5770 else
5771 ac_cv_lib_Xt_XtToolkitInitialize=no
5773 rm -f core conftest.err conftest.$ac_objext \
5774 conftest$ac_exeext conftest.$ac_ext
5775 LIBS=$ac_check_lib_save_LIBS
5777 { $as_echo "$as_me:${as_lineno-5777}: result: $ac_cv_lib_Xt_XtToolkitInitialize" >&5
5778 $as_echo "$ac_cv_lib_Xt_XtToolkitInitialize" >&6; }
5779 if test "x$ac_cv_lib_Xt_XtToolkitInitialize" = xyes; then :
5780 cat >>confdefs.h <<_ACEOF
5781 #define HAVE_LIBXT 1
5782 _ACEOF
5784 LIBS="-lXt $LIBS"
5786 else
5788 { $as_echo "$as_me:${as_lineno-5788}: checking for XtDisplayInitialize in -lXt" >&5
5789 $as_echo_n "checking for XtDisplayInitialize in -lXt... " >&6; }
5790 if ${ac_cv_lib_Xt_XtDisplayInitialize+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 ac_check_lib_save_LIBS=$LIBS
5794 LIBS="-lXt -lSM -lICE -lXpm -lX11 $LIBS"
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5798 /* Override any GCC internal prototype to avoid an error.
5799 Use char because int might match the return type of a GCC
5800 builtin and then its argument prototype would still apply. */
5801 #ifdef __cplusplus
5802 extern "C"
5803 #endif
5804 char XtDisplayInitialize ();
5806 main ()
5808 return XtDisplayInitialize ();
5810 return 0;
5812 _ACEOF
5813 if ac_fn_c_try_link "5813"; then :
5814 ac_cv_lib_Xt_XtDisplayInitialize=yes
5815 else
5816 ac_cv_lib_Xt_XtDisplayInitialize=no
5818 rm -f core conftest.err conftest.$ac_objext \
5819 conftest$ac_exeext conftest.$ac_ext
5820 LIBS=$ac_check_lib_save_LIBS
5822 { $as_echo "$as_me:${as_lineno-5822}: result: $ac_cv_lib_Xt_XtDisplayInitialize" >&5
5823 $as_echo "$ac_cv_lib_Xt_XtDisplayInitialize" >&6; }
5824 if test "x$ac_cv_lib_Xt_XtDisplayInitialize" = xyes; then :
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_LIBXT 1
5827 _ACEOF
5829 LIBS="-lXt $LIBS"
5836 { $as_echo "$as_me:${as_lineno-5836}: checking for ANSI C header files" >&5
5837 $as_echo_n "checking for ANSI C header files... " >&6; }
5838 if ${ac_cv_header_stdc+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 #include <stdlib.h>
5844 #include <stdarg.h>
5845 #include <string.h>
5846 #include <float.h>
5849 main ()
5853 return 0;
5855 _ACEOF
5856 if ac_fn_c_try_compile "5856"; then :
5857 ac_cv_header_stdc=yes
5858 else
5859 ac_cv_header_stdc=no
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863 if test $ac_cv_header_stdc = yes; then
5864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 #include <string.h>
5869 _ACEOF
5870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5871 $EGREP "memchr" >/dev/null 2>&1; then :
5873 else
5874 ac_cv_header_stdc=no
5876 rm -f conftest*
5880 if test $ac_cv_header_stdc = yes; then
5881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 #include <stdlib.h>
5886 _ACEOF
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "free" >/dev/null 2>&1; then :
5890 else
5891 ac_cv_header_stdc=no
5893 rm -f conftest*
5897 if test $ac_cv_header_stdc = yes; then
5898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5899 if test "$cross_compiling" = yes; then :
5901 else
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5904 #include <ctype.h>
5905 #include <stdlib.h>
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 #else
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #endif
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5919 main ()
5921 int i;
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5925 return 2;
5926 return 0;
5928 _ACEOF
5929 if ac_fn_c_try_run "5929"; then :
5931 else
5932 ac_cv_header_stdc=no
5934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5935 conftest.$ac_objext conftest.beam conftest.$ac_ext
5940 { $as_echo "$as_me:${as_lineno-5940}: result: $ac_cv_header_stdc" >&5
5941 $as_echo "$ac_cv_header_stdc" >&6; }
5942 if test $ac_cv_header_stdc = yes; then
5944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5949 for ac_func in setenv putenv
5950 do :
5951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5952 ac_fn_c_check_func "5952" "$ac_func" "$as_ac_var"
5953 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5954 cat >>confdefs.h <<_ACEOF
5955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5956 _ACEOF
5959 done
5962 ac_fn_c_check_func "5962" "vfork" "ac_cv_func_vfork"
5963 if test "x$ac_cv_func_vfork" = xyes; then :
5968 for ac_header in dirent.h
5969 do :
5970 ac_fn_c_check_header_mongrel "5970" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5971 if test "x$ac_cv_header_dirent_h" = xyes; then :
5972 cat >>confdefs.h <<_ACEOF
5973 #define HAVE_DIRENT_H 1
5974 _ACEOF
5978 done
5981 case $target in
5982 x86_64-*)
5983 { $as_echo "$as_me:${as_lineno-5983}: checking for 64-bit X11 libraries" >&5
5984 $as_echo_n "checking for 64-bit X11 libraries... " >&6; }
5985 { $as_echo "$as_me:${as_lineno-5985}: checking for /usr/X11R6/lib64" >&5
5986 $as_echo_n "checking for /usr/X11R6/lib64... " >&6; }
5987 if ${ac_cv_file__usr_X11R6_lib64+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 test "$cross_compiling" = yes &&
5991 as_fn_error $? "cannot check for file existence when cross compiling" "5991" 5
5992 if test -r "/usr/X11R6/lib64"; then
5993 ac_cv_file__usr_X11R6_lib64=yes
5994 else
5995 ac_cv_file__usr_X11R6_lib64=no
5998 { $as_echo "$as_me:${as_lineno-5998}: result: $ac_cv_file__usr_X11R6_lib64" >&5
5999 $as_echo "$ac_cv_file__usr_X11R6_lib64" >&6; }
6000 if test "x$ac_cv_file__usr_X11R6_lib64" = xyes; then :
6002 LDFLAGS="-L/usr/X11R6/lib64 ${LDFLAGS}"
6007 esac
6009 { $as_echo "$as_me:${as_lineno-6009}: checking if -Wno-pointer-sign accepted in CFLAGS" >&5
6010 $as_echo_n "checking if -Wno-pointer-sign accepted in CFLAGS... " >&6; }
6011 ac_save_CFLAGS="$CFLAGS"
6012 CFLAGS="$CFLAGS -Wno-pointer-sign"
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6017 main ()
6020 int foo;
6021 foo = 0
6023 return 0;
6025 _ACEOF
6026 if ac_fn_c_try_compile "6026"; then :
6028 { $as_echo "$as_me:${as_lineno-6028}: result: yes" >&5
6029 $as_echo "yes" >&6; }
6030 else
6032 CFLAGS="$ac_save_CFLAGS"
6033 { $as_echo "$as_me:${as_lineno-6033}: result: no" >&5
6034 $as_echo "no" >&6; }
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 { $as_echo "$as_me:${as_lineno-6038}: checking for deflate in -lz" >&5
6039 $as_echo_n "checking for deflate in -lz... " >&6; }
6040 if ${ac_cv_lib_z_deflate+:} false; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 ac_check_lib_save_LIBS=$LIBS
6044 LIBS="-lz -lz $LIBS"
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6048 /* Override any GCC internal prototype to avoid an error.
6049 Use char because int might match the return type of a GCC
6050 builtin and then its argument prototype would still apply. */
6051 #ifdef __cplusplus
6052 extern "C"
6053 #endif
6054 char deflate ();
6056 main ()
6058 return deflate ();
6060 return 0;
6062 _ACEOF
6063 if ac_fn_c_try_link "6063"; then :
6064 ac_cv_lib_z_deflate=yes
6065 else
6066 ac_cv_lib_z_deflate=no
6068 rm -f core conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6070 LIBS=$ac_check_lib_save_LIBS
6072 { $as_echo "$as_me:${as_lineno-6072}: result: $ac_cv_lib_z_deflate" >&5
6073 $as_echo "$ac_cv_lib_z_deflate" >&6; }
6074 if test "x$ac_cv_lib_z_deflate" = xyes; then :
6075 cat >>confdefs.h <<_ACEOF
6076 #define HAVE_LIBZ 1
6077 _ACEOF
6079 LIBS="-lz $LIBS"
6084 { $as_echo "$as_me:${as_lineno-6084}: checking for va_copy" >&5
6085 $as_echo_n "checking for va_copy... " >&6; }
6086 if ${ac_cv_c_va_copy+:} false; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #include <stdarg.h>
6093 main ()
6095 va_list ap1, ap2;
6096 va_copy(ap1,ap2);
6099 return 0;
6101 _ACEOF
6102 if ac_fn_c_try_link "6102"; then :
6103 ac_cv_c_va_copy="yes"
6104 else
6105 ac_cv_c_va_copy="no"
6107 rm -f core conftest.err conftest.$ac_objext \
6108 conftest$ac_exeext conftest.$ac_ext
6111 { $as_echo "$as_me:${as_lineno-6111}: result: $ac_cv_c_va_copy" >&5
6112 $as_echo "$ac_cv_c_va_copy" >&6; }
6113 if test "$ac_cv_c_va_copy" = "yes"
6114 then
6116 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6119 { $as_echo "$as_me:${as_lineno-6119}: checking for __va_copy" >&5
6120 $as_echo_n "checking for __va_copy... " >&6; }
6121 if ${ac_cv_c___va_copy+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6126 #include <stdarg.h>
6128 main ()
6130 va_list ap1, ap2;
6131 __va_copy(ap1,ap2);
6134 return 0;
6136 _ACEOF
6137 if ac_fn_c_try_link "6137"; then :
6138 ac_cv_c___va_copy="yes"
6139 else
6140 ac_cv_c___va_copy="no"
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6146 { $as_echo "$as_me:${as_lineno-6146}: result: $ac_cv_c___va_copy" >&5
6147 $as_echo "$ac_cv_c___va_copy" >&6; }
6148 if test "$ac_cv_c___va_copy" = "yes"
6149 then
6151 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6155 { $as_echo "$as_me:${as_lineno-6155}: checking if u_char defined" >&5
6156 $as_echo_n "checking if u_char defined... " >&6; }
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 #include <sys/types.h>
6161 main ()
6164 u_char foo;
6165 foo = 0
6167 return 0;
6169 _ACEOF
6170 if ac_fn_c_try_compile "6170"; then :
6172 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
6174 { $as_echo "$as_me:${as_lineno-6174}: result: yes" >&5
6175 $as_echo "yes" >&6; }
6176 else
6177 { $as_echo "$as_me:${as_lineno-6177}: result: no" >&5
6178 $as_echo "no" >&6; }
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 # Check whether --enable-optimize was given.
6183 if test "${enable_optimize+set}" = set; then :
6184 enableval=$enable_optimize;
6185 else
6187 CFLAGS=`echo $CFLAGS | sed -e "s/ -O2//"`
6193 # Check whether --with-xpm was given.
6194 if test "${with_xpm+set}" = set; then :
6195 withval=$with_xpm;
6196 if test "$withval" != "no" -a "$withval" != "yes"; then
6197 CPPFLAGS="${CPPFLAGS} -I$withval/include"
6198 LDFLAGS="${LDFLAGS} -L$withval/lib"
6204 for ac_header in X11/xpm.h
6205 do :
6206 ac_fn_c_check_header_mongrel "6206" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
6207 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_X11_XPM_H 1
6210 _ACEOF
6211 { $as_echo "$as_me:${as_lineno-6211}: checking for XpmCreateImageFromData in -lXpm" >&5
6212 $as_echo_n "checking for XpmCreateImageFromData in -lXpm... " >&6; }
6213 if ${ac_cv_lib_Xpm_XpmCreateImageFromData+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 ac_check_lib_save_LIBS=$LIBS
6217 LIBS="-lXpm -lX11 $LIBS"
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6221 /* Override any GCC internal prototype to avoid an error.
6222 Use char because int might match the return type of a GCC
6223 builtin and then its argument prototype would still apply. */
6224 #ifdef __cplusplus
6225 extern "C"
6226 #endif
6227 char XpmCreateImageFromData ();
6229 main ()
6231 return XpmCreateImageFromData ();
6233 return 0;
6235 _ACEOF
6236 if ac_fn_c_try_link "6236"; then :
6237 ac_cv_lib_Xpm_XpmCreateImageFromData=yes
6238 else
6239 ac_cv_lib_Xpm_XpmCreateImageFromData=no
6241 rm -f core conftest.err conftest.$ac_objext \
6242 conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6245 { $as_echo "$as_me:${as_lineno-6245}: result: $ac_cv_lib_Xpm_XpmCreateImageFromData" >&5
6246 $as_echo "$ac_cv_lib_Xpm_XpmCreateImageFromData" >&6; }
6247 if test "x$ac_cv_lib_Xpm_XpmCreateImageFromData" = xyes; then :
6249 LIBS="${LIBS} -lXpm"
6250 $as_echo "#define HAVE_XPM 1" >>confdefs.h
6252 else
6254 { $as_echo "$as_me:${as_lineno-6254}: WARNING: Xpm library not found" >&5
6255 $as_echo "$as_me: WARNING: Xpm library not found" >&2;}
6258 else
6259 { $as_echo "$as_me:${as_lineno-6259}: WARNING: Xpm header not found" >&5
6260 $as_echo "$as_me: WARNING: Xpm header not found" >&2;}
6263 done
6268 #------------------------------------------------------------
6269 # AC_PROG_LD - find the path to the GNU or non-GNU linker
6270 # (This stuff ripped from libtool)
6271 #------------------------------------------------------------
6277 # Check whether --with-gnu-ld was given.
6278 if test "${with_gnu_ld+set}" = set; then :
6279 withval=$with_gnu_ld; test "$withval" = no || xc_with_gnu_ld=yes
6280 else
6281 xc_with_gnu_ld=no
6284 ac_prog=ld
6285 if test "$GCC" = yes; then
6286 # Check if gcc -print-prog-name=ld gives a path.
6287 { $as_echo "$as_me:${as_lineno-6287}: checking for ld used by GCC" >&5
6288 $as_echo_n "checking for ld used by GCC... " >&6; }
6289 case $host in
6290 *-*-mingw*)
6291 # gcc leaves a trailing carriage return which upsets mingw
6292 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6294 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6295 esac
6296 case "$ac_prog" in
6297 # Accept absolute paths.
6298 [\\/]* | [A-Za-z]:[\\/]*)
6299 re_direlt='/[^/][^/]*/\.\./'
6300 # Canonicalize the path of ld
6301 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6302 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6303 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6304 done
6305 test -z "$LD" && LD="$ac_prog"
6308 # If it fails, then pretend we aren't using GCC.
6309 ac_prog=ld
6312 # If it is relative, then search for the first ld in PATH.
6313 xc_with_gnu_ld=unknown
6315 esac
6316 elif test "$xc_with_gnu_ld" = yes; then
6317 { $as_echo "$as_me:${as_lineno-6317}: checking for GNU ld" >&5
6318 $as_echo_n "checking for GNU ld... " >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-6320}: checking for non-GNU ld" >&5
6321 $as_echo_n "checking for non-GNU ld... " >&6; }
6323 if ${ac_cv_path_LD+:} false; then :
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -z "$LD"; then
6327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6328 for ac_dir in $PATH; do
6329 test -z "$ac_dir" && ac_dir=.
6330 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331 ac_cv_path_LD="$ac_dir/$ac_prog"
6332 # Check to see if the program is GNU ld. I'd rather use --version,
6333 # but apparently some GNU ld's only accept -v.
6334 # Break only if it was the GNU/non-GNU ld that we prefer.
6335 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6336 test "$xc_with_gnu_ld" != no && break
6337 else
6338 test "$xc_with_gnu_ld" != yes && break
6341 done
6342 IFS="$ac_save_ifs"
6343 else
6344 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6348 LD="$ac_cv_path_LD"
6349 if test -n "$LD"; then
6350 { $as_echo "$as_me:${as_lineno-6350}: result: $LD" >&5
6351 $as_echo "$LD" >&6; }
6352 else
6353 { $as_echo "$as_me:${as_lineno-6353}: result: no" >&5
6354 $as_echo "no" >&6; }
6356 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "6356" 5
6357 { $as_echo "$as_me:${as_lineno-6357}: checking if the linker ($LD) is GNU ld" >&5
6358 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6359 if ${ac_cv_prog_gnu_ld+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6363 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6364 ac_cv_prog_gnu_ld=yes
6365 else
6366 ac_cv_prog_gnu_ld=no
6369 { $as_echo "$as_me:${as_lineno-6369}: result: $ac_cv_prog_gnu_ld" >&5
6370 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6371 xc_with_gnu_ld=$ac_cv_prog_gnu_ld
6376 xc_with_tcl="yes"
6377 xc_with_tk="yes"
6378 xc_with_tcl_includes=""
6379 xc_with_tk_includes=""
6380 xc_with_tcl_libraries=""
6381 xc_with_tk_libraries=""
6382 xc_with_cairo="yes"
6386 # Check whether --with-cairo was given.
6387 if test "${with_cairo+set}" = set; then :
6388 withval=$with_cairo;
6389 xc_with_cairo=$withval
6390 if test "$withval" == "no" -o "$withval" == "NO"; then
6391 xc_with_cairo=""
6397 if test "x$xc_with_cairo" != "x" ; then
6398 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
6407 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6408 if test -n "$ac_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6410 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-6411}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 case $PKG_CONFIG in
6417 [\\/]* | ?:[\\/]*)
6418 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6429 $as_echo "$as_me:${as_lineno-6429}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6432 done
6433 done
6434 IFS=$as_save_IFS
6437 esac
6439 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6440 if test -n "$PKG_CONFIG"; then
6441 { $as_echo "$as_me:${as_lineno-6441}: result: $PKG_CONFIG" >&5
6442 $as_echo "$PKG_CONFIG" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-6444}: result: no" >&5
6445 $as_echo "no" >&6; }
6450 if test -z "$ac_cv_path_PKG_CONFIG"; then
6451 ac_pt_PKG_CONFIG=$PKG_CONFIG
6452 # Extract the first word of "pkg-config", so it can be a program name with args.
6453 set dummy pkg-config; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-6454}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 case $ac_pt_PKG_CONFIG in
6460 [\\/]* | ?:[\\/]*)
6461 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6472 $as_echo "$as_me:${as_lineno-6472}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6475 done
6476 done
6477 IFS=$as_save_IFS
6480 esac
6482 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6483 if test -n "$ac_pt_PKG_CONFIG"; then
6484 { $as_echo "$as_me:${as_lineno-6484}: result: $ac_pt_PKG_CONFIG" >&5
6485 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6486 else
6487 { $as_echo "$as_me:${as_lineno-6487}: result: no" >&5
6488 $as_echo "no" >&6; }
6491 if test "x$ac_pt_PKG_CONFIG" = x; then
6492 PKG_CONFIG=""
6493 else
6494 case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:${as_lineno-6496}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500 PKG_CONFIG=$ac_pt_PKG_CONFIG
6502 else
6503 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6507 if test -n "$PKG_CONFIG"; then
6508 _pkg_min_version=0.9.0
6509 { $as_echo "$as_me:${as_lineno-6509}: checking pkg-config is at least version $_pkg_min_version" >&5
6510 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6511 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6512 { $as_echo "$as_me:${as_lineno-6512}: result: yes" >&5
6513 $as_echo "yes" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-6515}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 PKG_CONFIG=""
6521 pkg_failed=no
6522 { $as_echo "$as_me:${as_lineno-6522}: checking for cairo" >&5
6523 $as_echo_n "checking for cairo... " >&6; }
6525 if test -n "$cairo_CFLAGS"; then
6526 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
6527 elif test -n "$PKG_CONFIG"; then
6528 if test -n "$PKG_CONFIG" && \
6529 { { $as_echo "$as_me:${as_lineno-6529}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6530 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6531 ac_status=$?
6532 $as_echo "$as_me:${as_lineno-6532}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
6535 test "x$?" != "x0" && pkg_failed=yes
6536 else
6537 pkg_failed=yes
6539 else
6540 pkg_failed=untried
6542 if test -n "$cairo_LIBS"; then
6543 pkg_cv_cairo_LIBS="$cairo_LIBS"
6544 elif test -n "$PKG_CONFIG"; then
6545 if test -n "$PKG_CONFIG" && \
6546 { { $as_echo "$as_me:${as_lineno-6546}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6547 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6548 ac_status=$?
6549 $as_echo "$as_me:${as_lineno-6549}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }; then
6551 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
6552 test "x$?" != "x0" && pkg_failed=yes
6553 else
6554 pkg_failed=yes
6556 else
6557 pkg_failed=untried
6562 if test $pkg_failed = yes; then
6563 { $as_echo "$as_me:${as_lineno-6563}: result: no" >&5
6564 $as_echo "no" >&6; }
6566 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6567 _pkg_short_errors_supported=yes
6568 else
6569 _pkg_short_errors_supported=no
6571 if test $_pkg_short_errors_supported = yes; then
6572 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
6573 else
6574 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
6576 # Put the nasty error message in config.log where it belongs
6577 echo "$cairo_PKG_ERRORS" >&5
6579 as_fn_error $? "Package requirements (cairo) were not met:
6581 $cairo_PKG_ERRORS
6583 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6584 installed software in a non-standard prefix.
6586 Alternatively, you may set the environment variables cairo_CFLAGS
6587 and cairo_LIBS to avoid the need to call pkg-config.
6588 See the pkg-config man page for more details." "6588" 5
6589 elif test $pkg_failed = untried; then
6590 { $as_echo "$as_me:${as_lineno-6590}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 { { $as_echo "$as_me:${as_lineno-6592}: error: in \`$ac_pwd':" >&5
6593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6594 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6595 is in your PATH or set the PKG_CONFIG environment variable to the full
6596 path to pkg-config.
6598 Alternatively, you may set the environment variables cairo_CFLAGS
6599 and cairo_LIBS to avoid the need to call pkg-config.
6600 See the pkg-config man page for more details.
6602 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6603 See \`config.log' for more details" "6603" 5; }
6604 else
6605 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
6606 cairo_LIBS=$pkg_cv_cairo_LIBS
6607 { $as_echo "$as_me:${as_lineno-6607}: result: yes" >&5
6608 $as_echo "yes" >&6; }
6612 pkg_failed=no
6613 { $as_echo "$as_me:${as_lineno-6613}: checking for fontconfig" >&5
6614 $as_echo_n "checking for fontconfig... " >&6; }
6616 if test -n "$fontconfig_CFLAGS"; then
6617 pkg_cv_fontconfig_CFLAGS="$fontconfig_CFLAGS"
6618 elif test -n "$PKG_CONFIG"; then
6619 if test -n "$PKG_CONFIG" && \
6620 { { $as_echo "$as_me:${as_lineno-6620}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6621 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-6623}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 pkg_cv_fontconfig_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
6626 test "x$?" != "x0" && pkg_failed=yes
6627 else
6628 pkg_failed=yes
6630 else
6631 pkg_failed=untried
6633 if test -n "$fontconfig_LIBS"; then
6634 pkg_cv_fontconfig_LIBS="$fontconfig_LIBS"
6635 elif test -n "$PKG_CONFIG"; then
6636 if test -n "$PKG_CONFIG" && \
6637 { { $as_echo "$as_me:${as_lineno-6637}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6638 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6639 ac_status=$?
6640 $as_echo "$as_me:${as_lineno-6640}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }; then
6642 pkg_cv_fontconfig_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
6643 test "x$?" != "x0" && pkg_failed=yes
6644 else
6645 pkg_failed=yes
6647 else
6648 pkg_failed=untried
6653 if test $pkg_failed = yes; then
6654 { $as_echo "$as_me:${as_lineno-6654}: result: no" >&5
6655 $as_echo "no" >&6; }
6657 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6658 _pkg_short_errors_supported=yes
6659 else
6660 _pkg_short_errors_supported=no
6662 if test $_pkg_short_errors_supported = yes; then
6663 fontconfig_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
6664 else
6665 fontconfig_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
6667 # Put the nasty error message in config.log where it belongs
6668 echo "$fontconfig_PKG_ERRORS" >&5
6670 as_fn_error $? "Package requirements (fontconfig) were not met:
6672 $fontconfig_PKG_ERRORS
6674 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6675 installed software in a non-standard prefix.
6677 Alternatively, you may set the environment variables fontconfig_CFLAGS
6678 and fontconfig_LIBS to avoid the need to call pkg-config.
6679 See the pkg-config man page for more details." "6679" 5
6680 elif test $pkg_failed = untried; then
6681 { $as_echo "$as_me:${as_lineno-6681}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 { { $as_echo "$as_me:${as_lineno-6683}: error: in \`$ac_pwd':" >&5
6684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6685 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6686 is in your PATH or set the PKG_CONFIG environment variable to the full
6687 path to pkg-config.
6689 Alternatively, you may set the environment variables fontconfig_CFLAGS
6690 and fontconfig_LIBS to avoid the need to call pkg-config.
6691 See the pkg-config man page for more details.
6693 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6694 See \`config.log' for more details" "6694" 5; }
6695 else
6696 fontconfig_CFLAGS=$pkg_cv_fontconfig_CFLAGS
6697 fontconfig_LIBS=$pkg_cv_fontconfig_LIBS
6698 { $as_echo "$as_me:${as_lineno-6698}: result: yes" >&5
6699 $as_echo "yes" >&6; }
6702 for ac_header in ghostscript/gdevdsp.h
6703 do :
6704 ac_fn_c_check_header_mongrel "6704" "ghostscript/gdevdsp.h" "ac_cv_header_ghostscript_gdevdsp_h" "$ac_includes_default"
6705 if test "x$ac_cv_header_ghostscript_gdevdsp_h" = xyes; then :
6706 cat >>confdefs.h <<_ACEOF
6707 #define HAVE_GHOSTSCRIPT_GDEVDSP_H 1
6708 _ACEOF
6710 GS_LIBS=-lgs
6711 $as_echo "#define HAVE_GS 1" >>confdefs.h
6714 else
6716 { $as_echo "$as_me:${as_lineno-6716}: WARNING: Building xcircuit without ghostscript rendering" >&5
6717 $as_echo "$as_me: WARNING: Building xcircuit without ghostscript rendering" >&2;}
6718 { $as_echo "$as_me:${as_lineno-6718}: WARNING: Install the ghostscript-devel package to solve this" >&5
6719 $as_echo "$as_me: WARNING: Install the ghostscript-devel package to solve this" >&2;}
6724 done
6728 # For distributed installs, where the run-time files are installed in a
6729 # place that is a temporary staging area, like DESTDIR, but unlike DESTDIR,
6730 # the prefix is replaced by the destination directory, rather than appended
6731 # to it.
6732 DIST_DIR="\${exec_prefix}"
6734 # Check whether --with-distdir was given.
6735 if test "${with_distdir+set}" = set; then :
6736 withval=$with_distdir;
6737 if test "$withval" = "no" -o "$withval" = "NO" ; then
6738 DIST_DIR="\${exec_prefix}"
6739 else
6740 DIST_DIR=${withval}
6748 # Check whether --with-tcl was given.
6749 if test "${with_tcl+set}" = set; then :
6750 withval=$with_tcl;
6751 xc_with_tcl=$withval
6752 if test "$withval" == "no" -o "$withval" == "NO"; then
6753 xc_with_tcl=""
6761 # Check whether --with-tk was given.
6762 if test "${with_tk+set}" = set; then :
6763 withval=$with_tk; xc_with_tk=$withval
6767 # Check whether --with-tclincls was given.
6768 if test "${with_tclincls+set}" = set; then :
6769 withval=$with_tclincls; xc_with_tcl_includes=$withval
6773 # Check whether --with-tkincls was given.
6774 if test "${with_tkincls+set}" = set; then :
6775 withval=$with_tkincls; xc_with_tk_includes=$withval
6779 # Check whether --with-tcllibs was given.
6780 if test "${with_tcllibs+set}" = set; then :
6781 withval=$with_tcllibs; xc_with_tcl_libraries=$withval
6785 # Check whether --with-tklibs was given.
6786 if test "${with_tklibs+set}" = set; then :
6787 withval=$with_tklibs; xc_with_tk_libraries=$withval
6791 # -----------------------------------------------------------------------
6793 # Find the Tcl build configuration file "tclConfig.sh"
6795 # -----------------------------------------------------------------------
6797 if test "x$xc_with_tcl" != "x" ; then
6799 TCL_INC_DIR="."
6800 TK_INC_DIR="."
6802 { $as_echo "$as_me:${as_lineno-6802}: checking for tclConfig.sh" >&5
6803 $as_echo_n "checking for tclConfig.sh... " >&6; }
6804 tcl_config_sh=""
6806 if test "$xc_with_tcl" = "no" ; then
6807 xc_with_tcl=""
6808 elif test "$xc_with_tcl" != "yes" ; then
6810 # Verify that a tclConfig.sh file exists in the directory specified
6811 # by --with-tcl.
6813 for dir in \
6814 $xc_with_tcl
6816 if test -r "$dir/tclConfig.sh" ; then
6817 tcl_config_sh="$dir/tclConfig.sh"
6818 break
6819 elif test -r "$dir/lib/tclConfig.sh" ; then
6820 tcl_config_sh="$dir/lib/tclConfig.sh"
6821 break
6823 done
6824 else
6826 # Otherwise, search for Tcl configuration file.
6829 # 1. Search previously named locations.
6831 for dir in \
6832 $prefix \
6833 $exec_prefix
6835 if test -r "$dir/tclConfig.sh" ; then
6836 tcl_config_sh="$dir/tclConfig.sh"
6837 break
6838 elif test -r "$dir/lib/tclConfig.sh" ; then
6839 tcl_config_sh="$dir/lib/tclConfig.sh"
6840 break
6842 done
6844 # 2. Search standard locations.
6846 if test "x$tcl_config_sh" = "x" ; then
6847 for dir in \
6848 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6849 /usr/local/tcl \
6850 /usr/local/lib \
6851 /usr/local \
6852 `ls -dr /usr/share/tcltk/tcl[7-9].[0-9]* 2>/dev/null` \
6853 /sw/lib \
6854 /usr/lib \
6855 /usr/lib64 \
6856 /usr
6858 if test -r "$dir/tclConfig.sh" ; then
6859 tcl_config_sh="$dir/tclConfig.sh"
6860 break
6861 elif test -r "$dir/lib/tclConfig.sh" ; then
6862 tcl_config_sh="$dir/lib/tclConfig.sh"
6863 break
6865 done
6869 { $as_echo "$as_me:${as_lineno-6869}: result: ${tcl_config_sh}" >&5
6870 $as_echo "${tcl_config_sh}" >&6; }
6872 if test "x$tcl_config_sh" = "x" ; then
6873 echo "can't find Tcl configuration script \"tclConfig.sh\""
6874 echo "Reverting to non-Tcl compilation"
6875 xc_with_tcl=""
6879 # -----------------------------------------------------------------------
6881 # Find the Tk build configuration file "tkConfig.sh"
6883 # -----------------------------------------------------------------------
6885 if test "x$xc_with_tcl" != "x" ; then
6886 { $as_echo "$as_me:${as_lineno-6886}: checking for tkConfig.sh" >&5
6887 $as_echo_n "checking for tkConfig.sh... " >&6; }
6888 tk_config_sh=""
6889 if test "$xc_with_tk" != "yes"; then
6891 # Verify that a tkConfig.sh file exists in the directory specified
6892 # by --with-tcl or --with-tk.
6894 for dir in \
6895 $xc_with_tk \
6896 $xc_with_tcl
6898 if test -r "$dir/tkConfig.sh" ; then
6899 tk_config_sh="$dir/tkConfig.sh"
6900 break
6901 elif test -r "$dir/lib/tkConfig.sh" ; then
6902 tk_config_sh="$dir/lib/tkConfig.sh"
6903 break
6905 done
6906 else
6908 # Search for Tk configuration file.
6912 # 1. Search previously named locations.
6914 for dir in \
6915 $prefix \
6916 $exec_prefix
6918 if test -r "$dir/tkConfig.sh" ; then
6919 tk_config_sh="$dir/tkConfig.sh"
6920 break
6921 elif test -r "$dir/lib/tkConfig.sh" ; then
6922 tk_config_sh="$dir/lib/tkConfig.sh"
6923 break
6925 done
6927 # 2. Search standard locations.
6929 if test "x$tk_config_sh" = "x" ; then
6930 for dir in \
6931 /usr/local \
6932 /usr \
6933 `ls -dr /usr/local/lib/tk[7-9].[0-9]* 2>/dev/null` \
6934 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \
6935 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \
6936 `ls -dr /usr/local/tk[7-9].[0-9]* 2>/dev/null` \
6937 /usr/local/tk \
6938 `ls -dr /usr/local/lib/tcl[7-9].[0-9]* 2>/dev/null` \
6939 `ls -dr /usr/lib/tcl/tk[7-9].[0-9]* 2>/dev/null` \
6940 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6941 `ls -dr /usr/share/tcltk/tk[7-9].[0-9]* 2>/dev/null` \
6942 /sw/lib \
6943 /usr/lib \
6944 /usr/lib64 \
6945 ${x_libraries}
6947 if test -r "$dir/tkConfig.sh" ; then
6948 tk_config_sh="$dir/tkConfig.sh"
6949 break
6950 elif test -r "$dir/lib/tkConfig.sh" ; then
6951 tk_config_sh="$dir/lib/tkConfig.sh"
6952 break
6954 done
6957 { $as_echo "$as_me:${as_lineno-6957}: result: ${tk_config_sh}" >&5
6958 $as_echo "${tk_config_sh}" >&6; }
6960 if test "x$tk_config_sh" = "x" ; then
6961 echo "can't find Tk configuration script \"tkConfig.sh\""
6962 echo "Reverting to non-Tcl compilation"
6963 xc_with_tcl=""
6967 # -----------------------------------------------------------------------
6969 # Source in the Tcl/Tk configuration scripts.
6971 # This didn't work so well in the pre-8.5 days, but
6972 # seems to be okay now.
6974 # -----------------------------------------------------------------------
6976 if test "x$xc_with_tcl" != "x" ; then
6977 . $tcl_config_sh
6978 . $tk_config_sh
6980 # Should probably trust the config file contents, but this configure
6981 # file checks the Tcl and Tk include and lib directories. Since
6982 # the config file doesn't separate out the libraries from the strings
6983 # passed to the compiler/linker, do it manually here.
6985 # Extract TCL_LIB_DIR from TCL_LIB_SPEC
6986 # Extract TK_LIB_DIR from TK_LIB_SPEC
6987 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC
6988 # Extract TK_INC_DIR from TK_INCLUDE_SPEC
6990 # These will be the defaults unless overridden by configure command line
6992 tmpstr=${TCL_LIB_SPEC#*-L}
6993 TCL_LIB_DIR=${tmpstr% -l*}
6994 tmpstr=${TK_LIB_SPEC#*-L}
6995 TK_LIB_DIR=${tmpstr% -l*}
6996 TCL_INC_DIR=${TCL_INCLUDE_SPEC#*-I}
6997 TK_INC_DIR=${TK_INCLUDE_SPEC#*-I}
6999 LIBS="${TCL_LIBS} ${LIBS}"
7001 if test "$TCL_VERSION" = "$TK_VERSION" ; then
7003 else
7004 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)"
7005 echo "Reverting to non-Tcl compilation"
7006 xc_with_tcl=""
7010 # -----------------------------------------------------------------------
7011 # Rely on TCL_INCLUDE_SPEC from tclConfig.sh unless "--with-tclincls"
7012 # overrides. With TCL_INCLUDE_SPEC, pull out TCL_INC_DIR
7013 # -----------------------------------------------------------------------
7015 if test "x$xc_with_tcl" != "x" ; then
7016 if test "x${xc_with_tcl_includes}" != "x" ; then
7017 if test -r "${xc_with_tcl_includes}/tcl.h" ; then
7018 TCL_INC_DIR=${xc_with_tcl_includes}
7019 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
7020 echo "Can't find tcl.h in \"${xc_with_tcl_includes}\""
7021 echo "Reverting to non-Tcl compilation"
7022 xc_with_tcl=""
7024 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
7025 for dir in \
7026 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7027 ${TCL_PREFIX}/include \
7028 ${TCL_SRC_DIR}/generic \
7029 ${TCL_INC_DIR}
7031 if test -r "$dir/tcl.h" ; then
7032 TCL_INC_DIR=$dir
7033 TCL_INCLUDE_SPEC="-I${TCL_INC_DIR}"
7034 break
7036 done
7037 if test "x${TCL_INC_DIR}" = "x" ; then
7038 echo "Can't find tcl.h header file"
7039 echo "Reverting to non-Tcl compilation"
7040 xc_with_tcl=""
7042 else
7043 TCL_INC_DIR=`echo ${TCL_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7047 # -----------------------------------------------------------------------
7048 # Rely on TK_INCLUDE_SPEC from tkConfig.sh unless "--with-tkincls"
7049 # overrides. With TK_INCLUDE_SPEC, pull out TK_INC_DIR
7050 # -----------------------------------------------------------------------
7052 if test "x$xc_with_tcl" != "x" ; then
7053 if test "x${xc_with_tk_includes}" != "x" ; then
7054 if test -r "${xc_with_tk_includes}/tk.h" ; then
7055 TK_INC_DIR=${xc_with_tk_includes}
7056 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7057 echo "Can't find tk.h in \"${xc_with_tk_includes}\""
7058 echo "Reverting to non-Tcl compilation"
7059 xc_with_tcl=""
7061 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7062 for dir in \
7063 ${TK_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7064 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
7065 ${TK_PREFIX}/include \
7066 ${TK_SRC_DIR}/generic \
7067 ${TK_INC_DIR}
7069 if test -r "$dir/tk.h" ; then
7070 TK_INC_DIR=$dir
7071 TK_INCLUDE_SPEC="-I${TK_INC_DIR}"
7072 break
7074 done
7075 if test "x${TK_INC_DIR}" = "x" ; then
7076 echo "Can't find tk.h header file"
7077 echo "Reverting to non-Tcl compilation"
7078 xc_with_tcl=""
7080 else
7081 TK_INC_DIR=`echo ${TK_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7085 # --------------------------------------------------------------
7086 # Rely on TCL_LIB_SPEC from tclConfig.sh unless "--with-tcllibs"
7087 # overrides. With TCL_LIB_SPEC, pull out TCL_LIB_DIR
7088 # --------------------------------------------------------------
7090 if test "x$xc_with_tcl" != "x" ; then
7091 if test "x${xc_with_tcl_libraries}" != "x" ; then
7092 TCL_LIB_SPEC=""
7093 for libname in \
7094 "${xc_with_tcl_libraries}/${TCL_LIB_FILE}" \
7095 "${xc_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7097 if test -r "$libname" ; then
7098 TCL_LIB_DIR="${xc_with_tcl_libraries}"
7099 break
7101 done
7102 if test "x${TCL_LIB_DIR}" == "x" ; then
7103 echo "Can't find tcl library in \"${xc_with_tcl_libraries}\""
7104 echo "Reverting to non-Tcl compile"
7105 xc_with_tcl=""
7107 elif test "x${TCL_LIB_SPEC}" == "x" ; then
7108 for libpfix in "lib64" "lib"
7110 libname="${TCL_EXEC_PREFIX}/${libpfix}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7111 if test -r "$libname" ; then
7112 TCL_LIB_DIR="${TCL_EXEC_PREFIX}/${libpfix}"
7113 break
7115 done
7116 if test "x${TCL_LIB_DIR}" = "x" ; then
7117 echo "Can't find tcl library"
7118 echo "Reverting to non-Tcl compile"
7119 xc_with_tcl=""
7121 else
7122 TCL_LIB_DIR=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7126 # --------------------------------------------------------------
7127 # Rely on TK_LIB_SPEC from tkConfig.sh unless "--with-tklibs"
7128 # overrides. With TK_LIB_SPEC, pull out TK_LIB_DIR
7129 # --------------------------------------------------------------
7131 if test "x$xc_with_tcl" != "x" ; then
7132 if test "x${xc_with_tk_libraries}" != "x" ; then
7133 TK_LIB_SPEC=""
7134 for libname in \
7135 "${xc_with_tk_libraries}/${TK_LIB_FILE}" \
7136 "${xc_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7138 if test -r "$libname" ; then
7139 TK_LIB_DIR="${xc_with_tk_libraries}"
7140 break
7142 done
7143 if test "x${TK_LIB_DIR}" == "x" ; then
7144 echo "Can't find tk library in \"${xc_with_tk_libraries}\""
7145 echo "Reverting to non-Tcl compile"
7146 xc_with_tcl=""
7148 elif test "x${TK_LIB_SPEC}" == "x" ; then
7149 for libpfix in "lib64" "lib"
7151 libname="${TK_EXEC_PREFIX}/${libpfix}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7152 if test -r "$libname" ; then
7153 TK_LIB_DIR="${TK_EXEC_PREFIX}/${libpfix}"
7154 break
7156 done
7157 if test "x${TK_LIB_DIR}" = "x" ; then
7158 echo "Can't find tk library"
7159 echo "Reverting to non-Tcl compile"
7160 xc_with_tcl=""
7162 else
7163 TK_LIB_DIR=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7167 #--------------------------------------------------------------------
7168 # If TCL_LIB_SPEC and/or TK_LIB_SPEC do not exist, construct them
7169 #--------------------------------------------------------------------
7171 if test "x$xc_with_tcl" != "x" ; then
7172 if test "x${TCL_LIB_SPEC}" == "x" ; then
7173 case $target in
7174 *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*)
7175 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
7178 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
7180 esac
7181 TCL_LIB_SPEC="-L${TCL_LIB_DIR} -l${TCL_LIB_NAME}"
7184 if test "x${TK_LIB_SPEC}" == "x" ; then
7185 case $target in
7186 *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*)
7187 TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
7190 TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
7192 esac
7193 TK_LIB_SPEC="-L${TK_LIB_DIR} -l${TK_LIB_NAME}"
7196 # Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
7197 # We really ought to run "ldd" to confirm that the linked libraries match.
7199 { $as_echo "$as_me:${as_lineno-7199}: checking for wish executable" >&5
7200 $as_echo_n "checking for wish executable... " >&6; }
7201 for dir in \
7202 ${TK_EXEC_PREFIX}/bin \
7203 ${TK_EXEC_PREFIX}
7205 for wishexe in \
7206 wish \
7207 wish${TK_VERSION} \
7208 wish.exe \
7209 wish${TK_VERSION}.exe
7211 if test -r "$dir/$wishexe" ; then
7212 WISH_EXE=$dir/$wishexe
7213 break
7215 done
7216 if test "x${WISH_EXE}" != "x" ; then
7217 break
7219 done
7220 if test "x${WISH_EXE}" = "x" ; then
7221 echo "Warning: Can't find executable for \"wish\". You may have to"
7222 echo "manually set the value for WISH_EXE in the xcircuit startup script."
7223 { $as_echo "$as_me:${as_lineno-7223}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-7226}: result: ${WISH_EXE}" >&5
7227 $as_echo "${WISH_EXE}" >&6; }
7230 # Have to define SHDLIB_EXT here even though we have to do it below, too.
7231 case $target in
7232 *-hpux*)
7233 SHDLIB_EXT=".sl"
7235 *cygwin*)
7236 SHDLIB_EXT=".dll.a"
7238 *-darwin*)
7239 SHDLIB_EXT=".dylib"
7241 *-openbsd*)
7242 SHDLIB_EXT=".so.${TCL_LIB_FILE##*.so.}"
7245 SHDLIB_EXT=".so"
7247 esac
7251 # -----------------------------------------------------------------------
7253 # Tk libraries and header files
7255 # -----------------------------------------------------------------------
7257 if test "x$xc_with_tcl" != "x" ; then
7258 INC_SPECS="${INC_SPECS} ${TCL_INCLUDE_SPEC} ${TK_INCLUDE_SPEC}"
7259 LIB_SPECS="${LIB_SPECS} ${TCL_LIB_SPEC} ${TK_LIB_SPEC}"
7261 if test "x${loader_run_path}" = "x" ; then
7262 loader_run_path="${TCL_LIB_DIR}"
7263 else
7264 loader_run_path="${TCL_LIB_DIR}:${loader_run_path}"
7267 #--------------------------------------------------------------------
7269 # Check if we can generate shared libraries on this system. Set flags
7270 # to generate shared libraries for systems that we know about. Start
7271 # with the values found in tclConfig.sh, make changes as we know about
7272 # the different systems.
7274 #--------------------------------------------------------------------
7276 # Initialize shared library build variables
7278 if test "x${TCL_SHLIB_SUFFIX}" == "x" ; then
7279 SHDLIB_EXT=".so"
7280 else
7281 SHDLIB_EXT="${TCL_SHLIB_SUFFIX}"
7284 if test "x${TCL_SHLIB_LD}" == "x" ; then
7286 # Construct shared library build arguments the painful way
7287 # This is not expected to be necessary, so the number of
7288 # supported systems has been pared down to a minimum.
7290 LDDL_FLAGS="-shared"
7291 LD_RUN_PATH=""
7292 SHLIB_LD="${CC}"
7293 EXTRA_LIB_SPECS=""
7295 case $target in
7296 *-darwin*)
7297 SHDLIB_EXT=".dylib"
7298 SHLIB_LIB_SPECS="${LIB_SPECS}"
7299 if test "${xc_with_gnu_ld}" = "yes" ; then
7300 LDDL_FLAGS="-dynamiclib -bind_at_load"
7301 else
7302 LDDL_FLAGS="-single_module -dynamiclib -flat_namespace"
7303 LDDL_FLAGS="${LDDL_FLAGS} -undefined suppress -noprebind"
7304 SHLIB_CFLAGS="-I/sw/include -fno-common"
7308 *cygwin*)
7309 $as_echo "#define CYGWIN 1" >>confdefs.h
7311 SHDLIB_EXT=".dll.a"
7312 LDDL_FLAGS="-shared -Wl,--enable-auto-image-base -Wl,-rpath,${loader_run_path}"
7313 SHLIB_LIB_SPECS="${LIB_SPECS}"
7316 *-linux*)
7317 SHLIB_CFLAGS="-fPIC"
7318 LDDL_FLAGS='-shared -Wl,-soname,$@'
7319 LD_RUN_PATH="-Wl,-rpath,${loader_run_path}"
7321 EXTRA_LIB_SPECS="-ldl"
7323 case $target in
7324 x86_64-*)
7325 # AMD 64-bit archictecture
7326 # Add -fPIC to standard compile switch
7327 CFLAGS="${CFLAGS} -fPIC"
7329 esac
7332 *-netbsd*|*-freebsd*|*-openbsd*)
7333 # Not available on all versions: check for include file.
7334 ac_fn_c_check_header_mongrel "7334" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7335 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7336 test_ok=yes
7337 else
7338 test_ok=no
7342 if test "$test_ok" = yes; then
7343 SHLIB_CFLAGS="-fpic"
7344 SHLIB_LD="ld"
7345 LDDL_FLAGS="-shared"
7348 esac
7350 if test "$GCC" = "yes" ; then
7351 CFLAGS="-fPIC ${CFLAGS}"
7354 else
7356 # Rely on shared lib arguments in tclConfig.sh
7358 SHLIB_LD="${TCL_SHLIB_LD}"
7359 EXTRA_LIB_FLAGS=""
7360 LDDL_FLAGS="${TCL_LD_FLAGS}"
7361 LD_RUN_PATH=""
7363 case $target in
7364 *-linux*)
7365 LD_RUN_PATH="-Wl,-rpath,${loader_run_path}"
7367 esac
7370 # If we're running gcc, then set SHLIB_CFLAGS flags for compiling
7371 # shared libraries for gcc, instead of those of the vendor's
7372 # compiler.
7374 if test "$GCC" = "yes" ; then
7375 if test "x${TCL_SHLIB_CFLAGS}" = "x" ; then
7376 SHLIB_CFLAGS="-fPIC ${SHLIB_CFLAGS}"
7377 else
7378 SHLIB_CFLAGS="${TCL_SHLIB_CFLAGS} ${SHLIB_CFLAGS}"
7381 CFLAGS="${CFLAGS} ${SHLIB_CFLAGS}"
7383 if test "${xc_with_gnu_ld}" = "yes" ; then
7384 LDDL_FLAGS="${LDDL_FLAGS} -Wl,--version-script=symbol.map"
7402 # Check whether --enable-asg was given.
7403 if test "${enable_asg+set}" = set; then :
7404 enableval=$enable_asg;
7405 $as_echo "#define ASG 1" >>confdefs.h
7407 $as_echo "#define CONFIGURED 1" >>confdefs.h
7409 SUBDIRS="asg spiceparser"
7410 SUBLIB="asg/libasg.a spiceparser/libspiceparser.a"
7415 # Check whether --enable-lgf was given.
7416 if test "${enable_lgf+set}" = set; then :
7417 enableval=$enable_lgf;
7418 else
7420 HAVE_LGF=LGF
7421 $as_echo "#define LGF 1" >>confdefs.h
7427 # Check whether --enable-focus-fix was given.
7428 if test "${enable_focus_fix+set}" = set; then :
7429 enableval=$enable_focus_fix;
7430 else
7432 $as_echo "#define INPUT_FOCUS 1" >>confdefs.h
7439 # Check whether --with-gs was given.
7440 if test "${with_gs+set}" = set; then :
7441 withval=$with_gs;
7442 if test -f "$withval"; then
7443 GS_EXEC=$withval
7444 else
7445 GS_EXEC=gs
7448 else
7450 # Extract the first word of "gs", so it can be a program name with args.
7451 set dummy gs; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-7452}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_GS_EXEC+:} false; then :
7455 $as_echo_n "(cached) " >&6
7456 else
7457 if test -n "$GS_EXEC"; then
7458 ac_cv_prog_GS_EXEC="$GS_EXEC" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7463 IFS=$as_save_IFS
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_GS_EXEC=""
7468 $as_echo "$as_me:${as_lineno-7468}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 break 2
7471 done
7472 done
7473 IFS=$as_save_IFS
7475 test -z "$ac_cv_prog_GS_EXEC" && ac_cv_prog_GS_EXEC="gs"
7478 GS_EXEC=$ac_cv_prog_GS_EXEC
7479 if test -n "$GS_EXEC"; then
7480 { $as_echo "$as_me:${as_lineno-7480}: result: $GS_EXEC" >&5
7481 $as_echo "$GS_EXEC" >&6; }
7482 else
7483 { $as_echo "$as_me:${as_lineno-7483}: result: no" >&5
7484 $as_echo "no" >&6; }
7490 cat >>confdefs.h <<_ACEOF
7491 #define GS_EXEC "$GS_EXEC"
7492 _ACEOF
7496 # Check whether --with-ngspice was given.
7497 if test "${with_ngspice+set}" = set; then :
7498 withval=$with_ngspice;
7499 if test -f "$withval"; then
7500 SPICE_EXEC=$withval
7501 else
7502 SPICE_EXEC=ngspice
7505 else
7507 # Extract the first word of "ngspice", so it can be a program name with args.
7508 set dummy ngspice; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-7509}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_SPICE_EXEC+:} false; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 if test -n "$SPICE_EXEC"; then
7515 ac_cv_prog_SPICE_EXEC="$SPICE_EXEC" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_SPICE_EXEC=""
7525 $as_echo "$as_me:${as_lineno-7525}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7528 done
7529 done
7530 IFS=$as_save_IFS
7532 test -z "$ac_cv_prog_SPICE_EXEC" && ac_cv_prog_SPICE_EXEC="ngspice"
7535 SPICE_EXEC=$ac_cv_prog_SPICE_EXEC
7536 if test -n "$SPICE_EXEC"; then
7537 { $as_echo "$as_me:${as_lineno-7537}: result: $SPICE_EXEC" >&5
7538 $as_echo "$SPICE_EXEC" >&6; }
7539 else
7540 { $as_echo "$as_me:${as_lineno-7540}: result: no" >&5
7541 $as_echo "no" >&6; }
7547 cat >>confdefs.h <<_ACEOF
7548 #define SPICE_EXEC "$SPICE_EXEC"
7549 _ACEOF
7553 xc_with_python=""
7554 PYTHON=
7557 # Check whether --with-python was given.
7558 if test "${with_python+set}" = set; then :
7559 withval=$with_python; xc_with_python=$withval
7563 if test "x$xc_with_tcl" != "x" ; then
7564 xc_with_python=""
7565 elif test "$xc_with_python" = "no" ; then
7566 xc_with_python=""
7567 elif test "$xc_with_python" = "yes" ; then
7568 # Extract the first word of "python", so it can be a program name with args.
7569 set dummy python; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-7570}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_path_PYTHON+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 case $PYTHON in
7576 [\\/]* | ?:[\\/]*)
7577 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7588 $as_echo "$as_me:${as_lineno-7588}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7591 done
7592 done
7593 IFS=$as_save_IFS
7596 esac
7598 PYTHON=$ac_cv_path_PYTHON
7599 if test -n "$PYTHON"; then
7600 { $as_echo "$as_me:${as_lineno-7600}: result: $PYTHON" >&5
7601 $as_echo "$PYTHON" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-7603}: result: no" >&5
7604 $as_echo "no" >&6; }
7608 elif test "x$xc_with_python" != x; then
7609 test -f "$xc_with_python" && PYTHON=$xc_with_python
7612 if test "x$PYTHON" != x; then
7613 _py_version=`$PYTHON -c 'import sys; print sys.version[0:3]'`
7614 _py_prefix=`$PYTHON -c 'import sys; print sys.prefix'`
7615 _py_exec_prefix=`$PYTHON -c 'import sys; print sys.exec_prefix'`
7617 _py_include="$_py_prefix/include/python$_py_version"
7618 _py_lib="$_py_exec_prefix/lib/python$_py_version/config"
7619 _py_makefile="$_py_lib/Makefile"
7621 if test $_py_version = 1.5; then
7622 echo
7623 echo "*** WARNING:"
7624 echo "*** Python version 1.5 detected: This version of Python has a known fatal"
7625 echo "*** bug. Disabling Python interface. If you want the embedded Python"
7626 echo "*** interface, you will need to get an updated version of Python."
7627 echo
7628 PYTHON=""
7632 if test "x$PYTHON" != x; then
7633 if test -f $_py_makefile; then
7634 _py_libs=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $_py_makefile`
7635 _py_libm=`sed -n -e 's/^LIBM=\(.*\)/\1/p' $_py_makefile`
7636 else
7637 _py_libs='-lpthread -ldl -lutil -ldb'
7638 _py_libm='-lm'
7641 # Now that we think we know where the python include and
7642 # library files are, make sure we can build a small
7643 # program against them.
7644 _save_CPPFLAGS=${CPPFLAGS}
7645 _save_LDFLAGS=${LDFLAGS}
7646 _save_LIBS=${LIBS}
7648 CPPFLAGS="$CPPFLAGS -I$_py_include"
7649 LDFLAGS="$LDFLAGS -L$_py_lib"
7651 case "$target_os" in
7652 *cygwin*)
7653 PYLIB="-lpython$_py_version"
7654 LIBS="$PYLIB.dll $LIBS $X_PRE_LIBS $_py_libs"
7657 LIBS="$LIBS -lpython$_py_version $_py_libs $_py_libm"
7659 esac
7662 HAVE_PYTHON=0
7663 ac_fn_c_check_header_mongrel "7663" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
7664 if test "x$ac_cv_header_Python_h" = xyes; then :
7666 { $as_echo "$as_me:${as_lineno-7666}: checking for Py_Initialize in -lpython$_py_version" >&5
7667 $as_echo_n "checking for Py_Initialize in -lpython$_py_version... " >&6; }
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7670 #include "Python.h"
7672 main ()
7674 Py_Initialize();
7676 return 0;
7678 _ACEOF
7679 if ac_fn_c_try_link "7679"; then :
7681 HAVE_PYTHON=1
7682 INTERPRETER=PYTHON
7683 { $as_echo "$as_me:${as_lineno-7683}: result: yes" >&5
7684 $as_echo "yes" >&6; }
7685 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
7687 else
7688 { $as_echo "$as_me:${as_lineno-7688}: result: no" >&5
7689 $as_echo "no" >&6; }
7691 rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
7697 if test "x$HAVE_PYTHON" = x0; then
7698 CPPFLAGS=$_save_CPPFLAGS
7699 LDFLAGS=$_save_LDFLAGS
7700 LIBS=$_save_LIBS
7701 PYTHON=""
7705 if test "x$PYTHON" != x; then
7706 STARTUP_FILE="xcstartup.py"
7707 INTERP_PATH="python"
7708 WRAPPER_SCRIPT=""
7709 SUBDIRS="${SUBDIRS} Xw"
7710 SUBLIB="${SUBLIB} Xw/libxcXw.a"
7711 XCIRCUIT_TARGET="xcircuit"
7712 elif test "x$xc_with_tcl" != "x" ; then
7713 INTERPRETER=TCL
7714 STARTUP_FILE="xcstartup.tcl"
7715 INTERP_PATH="tcl"
7716 WRAPPER_SCRIPT="wrapper.tcl"
7717 $as_echo "#define TCL_WRAPPER 1" >>confdefs.h
7719 XCIRCUIT_TARGET="tcl"
7720 ALL_TARGET="all-recursive"
7721 INSTALL_TARGET="install-recursive"
7722 else
7723 STARTUP_FILE="startup.script"
7724 INTERP_PATH="."
7725 WRAPPER_SCRIPT=""
7726 SUBDIRS="${SUBDIRS} Xw"
7727 SUBLIB="${SUBLIB} Xw/libxcXw.a"
7728 XCIRCUIT_TARGET="xcircuit"
7731 # Add -lm last to LDFLAGS, or Tcl/Tk's addition of -lieee can cause
7732 # an error.
7733 EXTRA_LIB_SPECS="$EXTRA_LIB_SPECS -lm"
7736 # Check whether --enable-memdebug was given.
7737 if test "${enable_memdebug+set}" = set; then :
7738 enableval=$enable_memdebug;
7739 if test "x$xc_with_tcl" = "x" ; then
7740 LIBS="${LIBS} -lefence"
7741 else
7742 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7772 ac_config_files="$ac_config_files Makefile Xw/Makefile asg/Makefile spiceparser/Makefile"
7774 cat >confcache <<\_ACEOF
7775 # This file is a shell script that caches the results of configure
7776 # tests run on this system so they can be shared between configure
7777 # scripts and configure runs, see configure's option --config-cache.
7778 # It is not useful on other systems. If it contains results you don't
7779 # want to keep, you may remove or edit it.
7781 # config.status only pays attention to the cache file if you give it
7782 # the --recheck option to rerun configure.
7784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7786 # following values.
7788 _ACEOF
7790 # The following way of writing the cache mishandles newlines in values,
7791 # but we know of no workaround that is simple, portable, and efficient.
7792 # So, we kill variables containing newlines.
7793 # Ultrix sh set writes to stderr and can't be redirected directly,
7794 # and sets the high bit in the cache file unless we assign to the vars.
7796 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7797 eval ac_val=\$$ac_var
7798 case $ac_val in #(
7799 *${as_nl}*)
7800 case $ac_var in #(
7801 *_cv_*) { $as_echo "$as_me:${as_lineno-7801}: WARNING: cache variable $ac_var contains a newline" >&5
7802 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7803 esac
7804 case $ac_var in #(
7805 _ | IFS | as_nl) ;; #(
7806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7807 *) { eval $ac_var=; unset $ac_var;} ;;
7808 esac ;;
7809 esac
7810 done
7812 (set) 2>&1 |
7813 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7814 *${as_nl}ac_space=\ *)
7815 # `set' does not quote correctly, so add quotes: double-quote
7816 # substitution turns \\\\ into \\, and sed turns \\ into \.
7817 sed -n \
7818 "s/'/'\\\\''/g;
7819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7820 ;; #(
7822 # `set' quotes correctly as required by POSIX, so do not add quotes.
7823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7825 esac |
7826 sort
7828 sed '
7829 /^ac_cv_env_/b end
7830 t clear
7831 :clear
7832 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7833 t end
7834 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7835 :end' >>confcache
7836 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7837 if test -w "$cache_file"; then
7838 if test "x$cache_file" != "x/dev/null"; then
7839 { $as_echo "$as_me:${as_lineno-7839}: updating cache $cache_file" >&5
7840 $as_echo "$as_me: updating cache $cache_file" >&6;}
7841 if test ! -f "$cache_file" || test -h "$cache_file"; then
7842 cat confcache >"$cache_file"
7843 else
7844 case $cache_file in #(
7845 */* | ?:*)
7846 mv -f confcache "$cache_file"$$ &&
7847 mv -f "$cache_file"$$ "$cache_file" ;; #(
7849 mv -f confcache "$cache_file" ;;
7850 esac
7853 else
7854 { $as_echo "$as_me:${as_lineno-7854}: not updating unwritable cache $cache_file" >&5
7855 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7858 rm -f confcache
7860 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7861 # Let make expand exec_prefix.
7862 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7864 # Transform confdefs.h into DEFS.
7865 # Protect against shell expansion while executing Makefile rules.
7866 # Protect against Makefile macro expansion.
7868 # If the first sed substitution is executed (which looks for macros that
7869 # take arguments), then branch to the quote section. Otherwise,
7870 # look for a macro that doesn't take arguments.
7871 ac_script='
7872 :mline
7873 /\\$/{
7875 s,\\\n,,
7876 b mline
7878 t clear
7879 :clear
7880 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7881 t quote
7882 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7883 t quote
7884 b any
7885 :quote
7886 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7887 s/\[/\\&/g
7888 s/\]/\\&/g
7889 s/\$/$$/g
7891 :any
7894 s/^\n//
7895 s/\n/ /g
7899 DEFS=`sed -n "$ac_script" confdefs.h`
7902 ac_libobjs=
7903 ac_ltlibobjs=
7905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7906 # 1. Remove the extension, and $U if already installed.
7907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7908 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7910 # will be set to the directory where LIBOBJS objects are built.
7911 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7912 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7913 done
7914 LIBOBJS=$ac_libobjs
7916 LTLIBOBJS=$ac_ltlibobjs
7919 { $as_echo "$as_me:${as_lineno-7919}: checking that generated files are newer than configure" >&5
7920 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7921 if test -n "$am_sleep_pid"; then
7922 # Hide warnings about reused PIDs.
7923 wait $am_sleep_pid 2>/dev/null
7925 { $as_echo "$as_me:${as_lineno-7925}: result: done" >&5
7926 $as_echo "done" >&6; }
7927 if test -n "$EXEEXT"; then
7928 am__EXEEXT_TRUE=
7929 am__EXEEXT_FALSE='#'
7930 else
7931 am__EXEEXT_TRUE='#'
7932 am__EXEEXT_FALSE=
7935 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7936 as_fn_error $? "conditional \"AMDEP\" was never defined.
7937 Usually this means the macro was only invoked conditionally." "7937" 5
7939 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7940 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7941 Usually this means the macro was only invoked conditionally." "7941" 5
7944 : "${CONFIG_STATUS=./config.status}"
7945 ac_write_fail=0
7946 ac_clean_files_save=$ac_clean_files
7947 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7948 { $as_echo "$as_me:${as_lineno-7948}: creating $CONFIG_STATUS" >&5
7949 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7950 as_write_fail=0
7951 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7952 #! $SHELL
7953 # Generated by $as_me.
7954 # Run this file to recreate the current configuration.
7955 # Compiler output produced by configure, useful for debugging
7956 # configure, is in config.log if it exists.
7958 debug=false
7959 ac_cs_recheck=false
7960 ac_cs_silent=false
7962 SHELL=\${CONFIG_SHELL-$SHELL}
7963 export SHELL
7964 _ASEOF
7965 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7966 ## -------------------- ##
7967 ## M4sh Initialization. ##
7968 ## -------------------- ##
7970 # Be more Bourne compatible
7971 DUALCASE=1; export DUALCASE # for MKS sh
7972 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7973 emulate sh
7974 NULLCMD=:
7975 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7976 # is contrary to our usage. Disable this feature.
7977 alias -g '${1+"$@"}'='"$@"'
7978 setopt NO_GLOB_SUBST
7979 else
7980 case `(set -o) 2>/dev/null` in #(
7981 *posix*) :
7982 set -o posix ;; #(
7983 *) :
7985 esac
7989 as_nl='
7991 export as_nl
7992 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7993 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7996 # Prefer a ksh shell builtin over an external printf program on Solaris,
7997 # but without wasting forks for bash or zsh.
7998 if test -z "$BASH_VERSION$ZSH_VERSION" \
7999 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8000 as_echo='print -r --'
8001 as_echo_n='print -rn --'
8002 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8003 as_echo='printf %s\n'
8004 as_echo_n='printf %s'
8005 else
8006 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8007 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8008 as_echo_n='/usr/ucb/echo -n'
8009 else
8010 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8011 as_echo_n_body='eval
8012 arg=$1;
8013 case $arg in #(
8014 *"$as_nl"*)
8015 expr "X$arg" : "X\\(.*\\)$as_nl";
8016 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8017 esac;
8018 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8020 export as_echo_n_body
8021 as_echo_n='sh -c $as_echo_n_body as_echo'
8023 export as_echo_body
8024 as_echo='sh -c $as_echo_body as_echo'
8027 # The user is always right.
8028 if test "${PATH_SEPARATOR+set}" != set; then
8029 PATH_SEPARATOR=:
8030 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8031 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8032 PATH_SEPARATOR=';'
8037 # IFS
8038 # We need space, tab and new line, in precisely that order. Quoting is
8039 # there to prevent editors from complaining about space-tab.
8040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8041 # splitting by setting IFS to empty value.)
8042 IFS=" "" $as_nl"
8044 # Find who we are. Look in the path if we contain no directory separator.
8045 as_myself=
8046 case $0 in #((
8047 *[\\/]* ) as_myself=$0 ;;
8048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8051 IFS=$as_save_IFS
8052 test -z "$as_dir" && as_dir=.
8053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8054 done
8055 IFS=$as_save_IFS
8058 esac
8059 # We did not find ourselves, most probably we were run as `sh COMMAND'
8060 # in which case we are not to be found in the path.
8061 if test "x$as_myself" = x; then
8062 as_myself=$0
8064 if test ! -f "$as_myself"; then
8065 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8066 exit 1
8069 # Unset variables that we do not need and which cause bugs (e.g. in
8070 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8071 # suppresses any "Segmentation fault" message there. '((' could
8072 # trigger a bug in pdksh 5.2.14.
8073 for as_var in BASH_ENV ENV MAIL MAILPATH
8074 do eval test x\${$as_var+set} = xset \
8075 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8076 done
8077 PS1='$ '
8078 PS2='> '
8079 PS4='+ '
8081 # NLS nuisances.
8082 LC_ALL=C
8083 export LC_ALL
8084 LANGUAGE=C
8085 export LANGUAGE
8087 # CDPATH.
8088 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8091 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8092 # ----------------------------------------
8093 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8094 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8095 # script with STATUS, using 1 if that was 0.
8096 as_fn_error ()
8098 as_status=$1; test $as_status -eq 0 && as_status=1
8099 if test "$4"; then
8100 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8101 $as_echo "$as_me:${as_lineno-8101}: error: $2" >&$4
8103 $as_echo "$as_me: error: $2" >&2
8104 as_fn_exit $as_status
8105 } # as_fn_error
8108 # as_fn_set_status STATUS
8109 # -----------------------
8110 # Set $? to STATUS, without forking.
8111 as_fn_set_status ()
8113 return $1
8114 } # as_fn_set_status
8116 # as_fn_exit STATUS
8117 # -----------------
8118 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8119 as_fn_exit ()
8121 set +e
8122 as_fn_set_status $1
8123 exit $1
8124 } # as_fn_exit
8126 # as_fn_unset VAR
8127 # ---------------
8128 # Portably unset VAR.
8129 as_fn_unset ()
8131 { eval $1=; unset $1;}
8133 as_unset=as_fn_unset
8134 # as_fn_append VAR VALUE
8135 # ----------------------
8136 # Append the text in VALUE to the end of the definition contained in VAR. Take
8137 # advantage of any shell optimizations that allow amortized linear growth over
8138 # repeated appends, instead of the typical quadratic growth present in naive
8139 # implementations.
8140 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8141 eval 'as_fn_append ()
8143 eval $1+=\$2
8145 else
8146 as_fn_append ()
8148 eval $1=\$$1\$2
8150 fi # as_fn_append
8152 # as_fn_arith ARG...
8153 # ------------------
8154 # Perform arithmetic evaluation on the ARGs, and store the result in the
8155 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8156 # must be portable across $(()) and expr.
8157 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8158 eval 'as_fn_arith ()
8160 as_val=$(( $* ))
8162 else
8163 as_fn_arith ()
8165 as_val=`expr "$@" || test $? -eq 1`
8167 fi # as_fn_arith
8170 if expr a : '\(a\)' >/dev/null 2>&1 &&
8171 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8172 as_expr=expr
8173 else
8174 as_expr=false
8177 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8178 as_basename=basename
8179 else
8180 as_basename=false
8183 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8184 as_dirname=dirname
8185 else
8186 as_dirname=false
8189 as_me=`$as_basename -- "$0" ||
8190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8191 X"$0" : 'X\(//\)$' \| \
8192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8193 $as_echo X/"$0" |
8194 sed '/^.*\/\([^/][^/]*\)\/*$/{
8195 s//\1/
8198 /^X\/\(\/\/\)$/{
8199 s//\1/
8202 /^X\/\(\/\).*/{
8203 s//\1/
8206 s/.*/./; q'`
8208 # Avoid depending upon Character Ranges.
8209 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8210 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8211 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8212 as_cr_digits='0123456789'
8213 as_cr_alnum=$as_cr_Letters$as_cr_digits
8215 ECHO_C= ECHO_N= ECHO_T=
8216 case `echo -n x` in #(((((
8217 -n*)
8218 case `echo 'xy\c'` in
8219 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8220 xy) ECHO_C='\c';;
8221 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8222 ECHO_T=' ';;
8223 esac;;
8225 ECHO_N='-n';;
8226 esac
8228 rm -f conf$$ conf$$.exe conf$$.file
8229 if test -d conf$$.dir; then
8230 rm -f conf$$.dir/conf$$.file
8231 else
8232 rm -f conf$$.dir
8233 mkdir conf$$.dir 2>/dev/null
8235 if (echo >conf$$.file) 2>/dev/null; then
8236 if ln -s conf$$.file conf$$ 2>/dev/null; then
8237 as_ln_s='ln -s'
8238 # ... but there are two gotchas:
8239 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8240 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8241 # In both cases, we have to default to `cp -pR'.
8242 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8243 as_ln_s='cp -pR'
8244 elif ln conf$$.file conf$$ 2>/dev/null; then
8245 as_ln_s=ln
8246 else
8247 as_ln_s='cp -pR'
8249 else
8250 as_ln_s='cp -pR'
8252 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8253 rmdir conf$$.dir 2>/dev/null
8256 # as_fn_mkdir_p
8257 # -------------
8258 # Create "$as_dir" as a directory, including parents if necessary.
8259 as_fn_mkdir_p ()
8262 case $as_dir in #(
8263 -*) as_dir=./$as_dir;;
8264 esac
8265 test -d "$as_dir" || eval $as_mkdir_p || {
8266 as_dirs=
8267 while :; do
8268 case $as_dir in #(
8269 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8270 *) as_qdir=$as_dir;;
8271 esac
8272 as_dirs="'$as_qdir' $as_dirs"
8273 as_dir=`$as_dirname -- "$as_dir" ||
8274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8275 X"$as_dir" : 'X\(//\)[^/]' \| \
8276 X"$as_dir" : 'X\(//\)$' \| \
8277 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8278 $as_echo X"$as_dir" |
8279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8280 s//\1/
8283 /^X\(\/\/\)[^/].*/{
8284 s//\1/
8287 /^X\(\/\/\)$/{
8288 s//\1/
8291 /^X\(\/\).*/{
8292 s//\1/
8295 s/.*/./; q'`
8296 test -d "$as_dir" && break
8297 done
8298 test -z "$as_dirs" || eval "mkdir $as_dirs"
8299 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8302 } # as_fn_mkdir_p
8303 if mkdir -p . 2>/dev/null; then
8304 as_mkdir_p='mkdir -p "$as_dir"'
8305 else
8306 test -d ./-p && rmdir ./-p
8307 as_mkdir_p=false
8311 # as_fn_executable_p FILE
8312 # -----------------------
8313 # Test if FILE is an executable regular file.
8314 as_fn_executable_p ()
8316 test -f "$1" && test -x "$1"
8317 } # as_fn_executable_p
8318 as_test_x='test -x'
8319 as_executable_p=as_fn_executable_p
8321 # Sed expression to map a string onto a valid CPP name.
8322 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8324 # Sed expression to map a string onto a valid variable name.
8325 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8328 exec 6>&1
8329 ## ----------------------------------- ##
8330 ## Main body of $CONFIG_STATUS script. ##
8331 ## ----------------------------------- ##
8332 _ASEOF
8333 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8336 # Save the log message, to keep $0 and so on meaningful, and to
8337 # report actual input values of CONFIG_FILES etc. instead of their
8338 # values after options handling.
8339 ac_log="
8340 This file was extended by $as_me, which was
8341 generated by GNU Autoconf 2.69. Invocation command line was
8343 CONFIG_FILES = $CONFIG_FILES
8344 CONFIG_HEADERS = $CONFIG_HEADERS
8345 CONFIG_LINKS = $CONFIG_LINKS
8346 CONFIG_COMMANDS = $CONFIG_COMMANDS
8347 $ $0 $@
8349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8352 _ACEOF
8354 case $ac_config_files in *"
8355 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8356 esac
8360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8361 # Files that config.status was made for.
8362 config_files="$ac_config_files"
8363 config_commands="$ac_config_commands"
8365 _ACEOF
8367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8368 ac_cs_usage="\
8369 \`$as_me' instantiates files and other configuration actions
8370 from templates according to the current configuration. Unless the files
8371 and actions are specified as TAGs, all are instantiated by default.
8373 Usage: $0 [OPTION]... [TAG]...
8375 -h, --help print this help, then exit
8376 -V, --version print version number and configuration settings, then exit
8377 --config print configuration, then exit
8378 -q, --quiet, --silent
8379 do not print progress messages
8380 -d, --debug don't remove temporary files
8381 --recheck update $as_me by reconfiguring in the same conditions
8382 --file=FILE[:TEMPLATE]
8383 instantiate the configuration file FILE
8385 Configuration files:
8386 $config_files
8388 Configuration commands:
8389 $config_commands
8391 Report bugs to the package provider."
8393 _ACEOF
8394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8395 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8396 ac_cs_version="\\
8397 config.status
8398 configured by $0, generated by GNU Autoconf 2.69,
8399 with options \\"\$ac_cs_config\\"
8401 Copyright (C) 2012 Free Software Foundation, Inc.
8402 This config.status script is free software; the Free Software Foundation
8403 gives unlimited permission to copy, distribute and modify it."
8405 ac_pwd='$ac_pwd'
8406 srcdir='$srcdir'
8407 INSTALL='$INSTALL'
8408 MKDIR_P='$MKDIR_P'
8409 AWK='$AWK'
8410 test -n "\$AWK" || AWK=awk
8411 _ACEOF
8413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8414 # The default lists apply if the user does not specify any file.
8415 ac_need_defaults=:
8416 while test $# != 0
8418 case $1 in
8419 --*=?*)
8420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8421 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8422 ac_shift=:
8424 --*=)
8425 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8426 ac_optarg=
8427 ac_shift=:
8430 ac_option=$1
8431 ac_optarg=$2
8432 ac_shift=shift
8434 esac
8436 case $ac_option in
8437 # Handling of the options.
8438 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8439 ac_cs_recheck=: ;;
8440 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8441 $as_echo "$ac_cs_version"; exit ;;
8442 --config | --confi | --conf | --con | --co | --c )
8443 $as_echo "$ac_cs_config"; exit ;;
8444 --debug | --debu | --deb | --de | --d | -d )
8445 debug=: ;;
8446 --file | --fil | --fi | --f )
8447 $ac_shift
8448 case $ac_optarg in
8449 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8450 '') as_fn_error $? "missing file argument" ;;
8451 esac
8452 as_fn_append CONFIG_FILES " '$ac_optarg'"
8453 ac_need_defaults=false;;
8454 --he | --h | --help | --hel | -h )
8455 $as_echo "$ac_cs_usage"; exit ;;
8456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8458 ac_cs_silent=: ;;
8460 # This is an error.
8461 -*) as_fn_error $? "unrecognized option: \`$1'
8462 Try \`$0 --help' for more information." ;;
8464 *) as_fn_append ac_config_targets " $1"
8465 ac_need_defaults=false ;;
8467 esac
8468 shift
8469 done
8471 ac_configure_extra_args=
8473 if $ac_cs_silent; then
8474 exec 6>/dev/null
8475 ac_configure_extra_args="$ac_configure_extra_args --silent"
8478 _ACEOF
8479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8480 if \$ac_cs_recheck; then
8481 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8482 shift
8483 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8484 CONFIG_SHELL='$SHELL'
8485 export CONFIG_SHELL
8486 exec "\$@"
8489 _ACEOF
8490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8491 exec 5>>config.log
8493 echo
8494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8495 ## Running $as_me. ##
8496 _ASBOX
8497 $as_echo "$ac_log"
8498 } >&5
8500 _ACEOF
8501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8503 # INIT-COMMANDS
8505 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8507 _ACEOF
8509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8511 # Handling of arguments.
8512 for ac_config_target in $ac_config_targets
8514 case $ac_config_target in
8515 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8516 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8517 "Xw/Makefile") CONFIG_FILES="$CONFIG_FILES Xw/Makefile" ;;
8518 "asg/Makefile") CONFIG_FILES="$CONFIG_FILES asg/Makefile" ;;
8519 "spiceparser/Makefile") CONFIG_FILES="$CONFIG_FILES spiceparser/Makefile" ;;
8521 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "8521" 5;;
8522 esac
8523 done
8526 # If the user did not use the arguments to specify the items to instantiate,
8527 # then the envvar interface is used. Set only those that are not.
8528 # We use the long form for the default assignment because of an extremely
8529 # bizarre bug on SunOS 4.1.3.
8530 if $ac_need_defaults; then
8531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8535 # Have a temporary directory for convenience. Make it in the build tree
8536 # simply because there is no reason against having it here, and in addition,
8537 # creating and moving files from /tmp can sometimes cause problems.
8538 # Hook for its removal unless debugging.
8539 # Note that there is a small window in which the directory will not be cleaned:
8540 # after its creation but before its name has been assigned to `$tmp'.
8541 $debug ||
8543 tmp= ac_tmp=
8544 trap 'exit_status=$?
8545 : "${ac_tmp:=$tmp}"
8546 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8548 trap 'as_fn_exit 1' 1 2 13 15
8550 # Create a (secure) tmp directory for tmp files.
8553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8554 test -d "$tmp"
8555 } ||
8557 tmp=./conf$$-$RANDOM
8558 (umask 077 && mkdir "$tmp")
8559 } || as_fn_error $? "cannot create a temporary directory in ." "8559" 5
8560 ac_tmp=$tmp
8562 # Set up the scripts for CONFIG_FILES section.
8563 # No need to generate them if there are no CONFIG_FILES.
8564 # This happens for instance with `./config.status config.h'.
8565 if test -n "$CONFIG_FILES"; then
8568 ac_cr=`echo X | tr X '\015'`
8569 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8570 # But we know of no other shell where ac_cr would be empty at this
8571 # point, so we can use a bashism as a fallback.
8572 if test "x$ac_cr" = x; then
8573 eval ac_cr=\$\'\\r\'
8575 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8576 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8577 ac_cs_awk_cr='\\r'
8578 else
8579 ac_cs_awk_cr=$ac_cr
8582 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8583 _ACEOF
8587 echo "cat >conf$$subs.awk <<_ACEOF" &&
8588 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8589 echo "_ACEOF"
8590 } >conf$$subs.sh ||
8591 as_fn_error $? "could not make $CONFIG_STATUS" "8591" 5
8592 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8593 ac_delim='%!_!# '
8594 for ac_last_try in false false false false false :; do
8595 . ./conf$$subs.sh ||
8596 as_fn_error $? "could not make $CONFIG_STATUS" "8596" 5
8598 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8599 if test $ac_delim_n = $ac_delim_num; then
8600 break
8601 elif $ac_last_try; then
8602 as_fn_error $? "could not make $CONFIG_STATUS" "8602" 5
8603 else
8604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8606 done
8607 rm -f conf$$subs.sh
8609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8610 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8611 _ACEOF
8612 sed -n '
8614 s/^/S["/; s/!.*/"]=/
8617 s/^[^!]*!//
8618 :repl
8619 t repl
8620 s/'"$ac_delim"'$//
8621 t delim
8624 s/\(.\{148\}\)..*/\1/
8625 t more1
8626 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8629 b repl
8630 :more1
8631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8634 s/.\{148\}//
8635 t nl
8636 :delim
8638 s/\(.\{148\}\)..*/\1/
8639 t more2
8640 s/["\\]/\\&/g; s/^/"/; s/$/"/
8643 :more2
8644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8647 s/.\{148\}//
8648 t delim
8649 ' <conf$$subs.awk | sed '
8650 /^[^""]/{
8652 s/\n//
8654 ' >>$CONFIG_STATUS || ac_write_fail=1
8655 rm -f conf$$subs.awk
8656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8657 _ACAWK
8658 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8659 for (key in S) S_is_set[key] = 1
8660 FS = "\a"
8664 line = $ 0
8665 nfields = split(line, field, "@")
8666 substed = 0
8667 len = length(field[1])
8668 for (i = 2; i < nfields; i++) {
8669 key = field[i]
8670 keylen = length(key)
8671 if (S_is_set[key]) {
8672 value = S[key]
8673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8674 len += length(value) + length(field[++i])
8675 substed = 1
8676 } else
8677 len += 1 + keylen
8680 print line
8683 _ACAWK
8684 _ACEOF
8685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8686 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8687 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8688 else
8690 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8691 || as_fn_error $? "could not setup config files machinery" "8691" 5
8692 _ACEOF
8694 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8695 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8696 # trailing colons and then remove the whole line if VPATH becomes empty
8697 # (actually we leave an empty line to preserve line numbers).
8698 if test "x$srcdir" = x.; then
8699 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8701 s///
8702 s/^/:/
8703 s/[ ]*$/:/
8704 s/:\$(srcdir):/:/g
8705 s/:\${srcdir}:/:/g
8706 s/:@srcdir@:/:/g
8707 s/^:*//
8708 s/:*$//
8710 s/\(=[ ]*\).*/\1/
8712 s/\n//
8713 s/^[^=]*=[ ]*$//
8717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8718 fi # test -n "$CONFIG_FILES"
8721 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
8722 shift
8723 for ac_tag
8725 case $ac_tag in
8726 :[FHLC]) ac_mode=$ac_tag; continue;;
8727 esac
8728 case $ac_mode$ac_tag in
8729 :[FHL]*:*);;
8730 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "8730" 5;;
8731 :[FH]-) ac_tag=-:-;;
8732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8733 esac
8734 ac_save_IFS=$IFS
8735 IFS=:
8736 set x $ac_tag
8737 IFS=$ac_save_IFS
8738 shift
8739 ac_file=$1
8740 shift
8742 case $ac_mode in
8743 :L) ac_source=$1;;
8744 :[FH])
8745 ac_file_inputs=
8746 for ac_f
8748 case $ac_f in
8749 -) ac_f="$ac_tmp/stdin";;
8750 *) # Look for the file first in the build tree, then in the source tree
8751 # (if the path is not absolute). The absolute path cannot be DOS-style,
8752 # because $ac_f cannot contain `:'.
8753 test -f "$ac_f" ||
8754 case $ac_f in
8755 [\\/$]*) false;;
8756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8757 esac ||
8758 as_fn_error 1 "cannot find input file: \`$ac_f'" "8758" 5;;
8759 esac
8760 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8761 as_fn_append ac_file_inputs " '$ac_f'"
8762 done
8764 # Let's still pretend it is `configure' which instantiates (i.e., don't
8765 # use $as_me), people would be surprised to read:
8766 # /* config.h. Generated by config.status. */
8767 configure_input='Generated from '`
8768 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8769 `' by configure.'
8770 if test x"$ac_file" != x-; then
8771 configure_input="$ac_file. $configure_input"
8772 { $as_echo "$as_me:${as_lineno-8772}: creating $ac_file" >&5
8773 $as_echo "$as_me: creating $ac_file" >&6;}
8775 # Neutralize special characters interpreted by sed in replacement strings.
8776 case $configure_input in #(
8777 *\&* | *\|* | *\\* )
8778 ac_sed_conf_input=`$as_echo "$configure_input" |
8779 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8780 *) ac_sed_conf_input=$configure_input;;
8781 esac
8783 case $ac_tag in
8784 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8785 || as_fn_error $? "could not create $ac_file" "8785" 5 ;;
8786 esac
8788 esac
8790 ac_dir=`$as_dirname -- "$ac_file" ||
8791 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8792 X"$ac_file" : 'X\(//\)[^/]' \| \
8793 X"$ac_file" : 'X\(//\)$' \| \
8794 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8795 $as_echo X"$ac_file" |
8796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8797 s//\1/
8800 /^X\(\/\/\)[^/].*/{
8801 s//\1/
8804 /^X\(\/\/\)$/{
8805 s//\1/
8808 /^X\(\/\).*/{
8809 s//\1/
8812 s/.*/./; q'`
8813 as_dir="$ac_dir"; as_fn_mkdir_p
8814 ac_builddir=.
8816 case "$ac_dir" in
8817 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8819 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8820 # A ".." for each directory in $ac_dir_suffix.
8821 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8822 case $ac_top_builddir_sub in
8823 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8824 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8825 esac ;;
8826 esac
8827 ac_abs_top_builddir=$ac_pwd
8828 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8829 # for backward compatibility:
8830 ac_top_builddir=$ac_top_build_prefix
8832 case $srcdir in
8833 .) # We are building in place.
8834 ac_srcdir=.
8835 ac_top_srcdir=$ac_top_builddir_sub
8836 ac_abs_top_srcdir=$ac_pwd ;;
8837 [\\/]* | ?:[\\/]* ) # Absolute name.
8838 ac_srcdir=$srcdir$ac_dir_suffix;
8839 ac_top_srcdir=$srcdir
8840 ac_abs_top_srcdir=$srcdir ;;
8841 *) # Relative name.
8842 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8843 ac_top_srcdir=$ac_top_build_prefix$srcdir
8844 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8845 esac
8846 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8849 case $ac_mode in
8852 # CONFIG_FILE
8855 case $INSTALL in
8856 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8857 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8858 esac
8859 ac_MKDIR_P=$MKDIR_P
8860 case $MKDIR_P in
8861 [\\/$]* | ?:[\\/]* ) ;;
8862 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8863 esac
8864 _ACEOF
8866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8867 # If the template does not know about datarootdir, expand it.
8868 # FIXME: This hack should be removed a few years after 2.60.
8869 ac_datarootdir_hack=; ac_datarootdir_seen=
8870 ac_sed_dataroot='
8871 /datarootdir/ {
8875 /@datadir@/p
8876 /@docdir@/p
8877 /@infodir@/p
8878 /@localedir@/p
8879 /@mandir@/p'
8880 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8881 *datarootdir*) ac_datarootdir_seen=yes;;
8882 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8883 { $as_echo "$as_me:${as_lineno-8883}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8884 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8885 _ACEOF
8886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8887 ac_datarootdir_hack='
8888 s&@datadir@&$datadir&g
8889 s&@docdir@&$docdir&g
8890 s&@infodir@&$infodir&g
8891 s&@localedir@&$localedir&g
8892 s&@mandir@&$mandir&g
8893 s&\\\${datarootdir}&$datarootdir&g' ;;
8894 esac
8895 _ACEOF
8897 # Neutralize VPATH when `$srcdir' = `.'.
8898 # Shell code in configure.ac might set extrasub.
8899 # FIXME: do we really want to maintain this feature?
8900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8901 ac_sed_extra="$ac_vpsub
8902 $extrasub
8903 _ACEOF
8904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8907 s|@configure_input@|$ac_sed_conf_input|;t t
8908 s&@top_builddir@&$ac_top_builddir_sub&;t t
8909 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8910 s&@srcdir@&$ac_srcdir&;t t
8911 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8912 s&@top_srcdir@&$ac_top_srcdir&;t t
8913 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8914 s&@builddir@&$ac_builddir&;t t
8915 s&@abs_builddir@&$ac_abs_builddir&;t t
8916 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8917 s&@INSTALL@&$ac_INSTALL&;t t
8918 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8919 $ac_datarootdir_hack
8921 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8922 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "8922" 5
8924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8925 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8927 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8928 { $as_echo "$as_me:${as_lineno-8928}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8929 which seems to be undefined. Please make sure it is defined" >&5
8930 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8931 which seems to be undefined. Please make sure it is defined" >&2;}
8933 rm -f "$ac_tmp/stdin"
8934 case $ac_file in
8935 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8936 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8937 esac \
8938 || as_fn_error $? "could not create $ac_file" "8938" 5
8942 :C) { $as_echo "$as_me:${as_lineno-8942}: executing $ac_file commands" >&5
8943 $as_echo "$as_me: executing $ac_file commands" >&6;}
8945 esac
8948 case $ac_file$ac_mode in
8949 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8950 # Older Autoconf quotes --file arguments for eval, but not when files
8951 # are listed without --file. Let's play safe and only enable the eval
8952 # if we detect the quoting.
8953 # TODO: see whether this extra hack can be removed once we start
8954 # requiring Autoconf 2.70 or later.
8955 case $CONFIG_FILES in #(
8956 *\'*) :
8957 eval set x "$CONFIG_FILES" ;; #(
8958 *) :
8959 set x $CONFIG_FILES ;; #(
8960 *) :
8962 esac
8963 shift
8964 # Used to flag and report bootstrapping failures.
8965 am_rc=0
8966 for am_mf
8968 # Strip MF so we end up with the name of the file.
8969 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
8970 # Check whether this is an Automake generated Makefile which includes
8971 # dependency-tracking related rules and includes.
8972 # Grep'ing the whole file directly is not great: AIX grep has a line
8973 # limit of 2048, but all sed's we know have understand at least 4000.
8974 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8975 || continue
8976 am_dirpart=`$as_dirname -- "$am_mf" ||
8977 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8978 X"$am_mf" : 'X\(//\)[^/]' \| \
8979 X"$am_mf" : 'X\(//\)$' \| \
8980 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8981 $as_echo X"$am_mf" |
8982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8983 s//\1/
8986 /^X\(\/\/\)[^/].*/{
8987 s//\1/
8990 /^X\(\/\/\)$/{
8991 s//\1/
8994 /^X\(\/\).*/{
8995 s//\1/
8998 s/.*/./; q'`
8999 am_filepart=`$as_basename -- "$am_mf" ||
9000 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9001 X"$am_mf" : 'X\(//\)$' \| \
9002 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9003 $as_echo X/"$am_mf" |
9004 sed '/^.*\/\([^/][^/]*\)\/*$/{
9005 s//\1/
9008 /^X\/\(\/\/\)$/{
9009 s//\1/
9012 /^X\/\(\/\).*/{
9013 s//\1/
9016 s/.*/./; q'`
9017 { echo "$as_me:9017: cd "$am_dirpart" \
9018 && sed -e '/# am--include-marker/d' "$am_filepart" \
9019 | $MAKE -f - am--depfiles" >&5
9020 (cd "$am_dirpart" \
9021 && sed -e '/# am--include-marker/d' "$am_filepart" \
9022 | $MAKE -f - am--depfiles) >&5 2>&5
9023 ac_status=$?
9024 echo "$as_me:9024: \$? = $ac_status" >&5
9025 (exit $ac_status); } || am_rc=$?
9026 done
9027 if test $am_rc -ne 0; then
9028 { { $as_echo "$as_me:${as_lineno-9028}: error: in \`$ac_pwd':" >&5
9029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9030 as_fn_error $? "Something went wrong bootstrapping makefile fragments
9031 for automatic dependency tracking. Try re-running configure with the
9032 '--disable-dependency-tracking' option to at least be able to build
9033 the package (albeit without support for automatic dependency tracking).
9034 See \`config.log' for more details" "9034" 5; }
9036 { am_dirpart=; unset am_dirpart;}
9037 { am_filepart=; unset am_filepart;}
9038 { am_mf=; unset am_mf;}
9039 { am_rc=; unset am_rc;}
9040 rm -f conftest-deps.mk
9044 esac
9045 done # for ac_tag
9048 as_fn_exit 0
9049 _ACEOF
9050 ac_clean_files=$ac_clean_files_save
9052 test $ac_write_fail = 0 ||
9053 as_fn_error $? "write failure creating $CONFIG_STATUS" "9053" 5
9056 # configure is writing to config.log, and then calls config.status.
9057 # config.status does its own redirection, appending to config.log.
9058 # Unfortunately, on DOS this fails, as config.log is still kept open
9059 # by configure, so config.status won't be able to write to it; its
9060 # output is simply discarded. So we exec the FD to /dev/null,
9061 # effectively closing config.log, so it can be properly (re)opened and
9062 # appended to by config.status. When coming back to configure, we
9063 # need to make the FD available again.
9064 if test "$no_create" != yes; then
9065 ac_cs_success=:
9066 ac_config_status_args=
9067 test "$silent" = yes &&
9068 ac_config_status_args="$ac_config_status_args --quiet"
9069 exec 5>/dev/null
9070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9071 exec 5>>config.log
9072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9073 # would make configure fail if this is the last instruction.
9074 $ac_cs_success || as_fn_exit 1
9076 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9077 { $as_echo "$as_me:${as_lineno-9077}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9078 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9082 echo ""
9083 echo "Configuration results:"
9084 echo "----------------------------------------------------"
9085 echo ""
9087 if test "x$xc_with_tcl" == "x" ; then
9088 if test "x$PYTHON" != x; then
9089 echo "Using Python interface (not recommended)"
9090 else
9091 echo "No Tcl/Tk, using standard Xlib/Xt interface."
9092 echo "If that is not what you wanted, then make sure"
9093 echo "you have Tcl/Tk development packages installed?"
9095 else
9096 echo "Using Tcl/Tk interface"
9098 echo ""
9100 if test "x$xc_with_cairo" == "x" ; then
9101 echo "No Cairo graphics."
9102 echo "If that is not what you wanted, then make sure"
9103 echo "you have libcairo and fontconfig installed."
9104 echo "Try installing package cairo-devel."
9105 else
9106 echo "Using Cairo graphics"
9108 echo ""
9109 echo "CFLAGS=${CFLAGS}"