Applied patch by Kevin Zheng to avoids a crash condition if the
[xcircuit.git] / configure
blob953161a9f14d5eb719f34c65f9e1ddb50199a9ea
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="xcircuit.c"
586 ac_unique_file="xcircuit.c"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
589 #include <stdio.h>
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
592 #endif
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
595 #endif
596 #ifdef STDC_HEADERS
597 # include <stdlib.h>
598 # include <stddef.h>
599 #else
600 # ifdef HAVE_STDLIB_H
601 # include <stdlib.h>
602 # endif
603 #endif
604 #ifdef HAVE_STRING_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 # include <memory.h>
607 # endif
608 # include <string.h>
609 #endif
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
612 #endif
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
615 #endif
616 #ifdef HAVE_STDINT_H
617 # include <stdint.h>
618 #endif
619 #ifdef HAVE_UNISTD_H
620 # include <unistd.h>
621 #endif"
623 ac_subst_vars='am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 LIBOBJS
627 INSTALL_TARGET
628 ALL_TARGET
629 HAVE_LGF
630 INTERPRETER
632 XCIRCUIT_TARGET
633 WRAPPER_SCRIPT
634 INTERP_PATH
635 STARTUP_FILE
636 GS_LIBS
637 STDLIBS
638 SUBLIB
639 SUBDIRS
640 PYTHON
641 SPICE_EXEC
642 GS_EXEC
643 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__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
688 REVISION
689 AM_BACKSLASH
690 AM_DEFAULT_VERBOSITY
691 AM_DEFAULT_V
692 AM_V
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_os
717 target_vendor
718 target_cpu
719 target
720 host_os
721 host_vendor
722 host_cpu
723 host
724 build_os
725 build_vendor
726 build_cpu
727 build
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
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 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 enable_silent_rules
770 enable_dependency_tracking
771 with_x
772 enable_optimize
773 with_xpm
774 with_gnu_ld
775 with_cairo
776 with_distdir
777 with_tcl
778 with_tk
779 with_tclincls
780 with_tkincls
781 with_tcllibs
782 with_tklibs
783 enable_asg
784 enable_lgf
785 enable_focus_fix
786 with_gs
787 with_ngspice
788 with_python
789 enable_memdebug
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
800 XMKMF
801 PKG_CONFIG
802 PKG_CONFIG_PATH
803 PKG_CONFIG_LIBDIR
804 cairo_CFLAGS
805 cairo_LIBS
806 fontconfig_CFLAGS
807 fontconfig_LIBS'
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 includedir='${prefix}/include'
847 oldincludedir='/usr/include'
848 docdir='${datarootdir}/doc/${PACKAGE}'
849 infodir='${datarootdir}/info'
850 htmldir='${docdir}'
851 dvidir='${docdir}'
852 pdfdir='${docdir}'
853 psdir='${docdir}'
854 libdir='${exec_prefix}/lib'
855 localedir='${datarootdir}/locale'
856 mandir='${datarootdir}/man'
858 ac_prev=
859 ac_dashdash=
860 for ac_option
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
869 case $ac_option in
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
873 esac
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
879 ac_dashdash=yes ;;
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
898 --config-cache | -C)
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 esac
1216 done
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271 test "$silent" = yes && exec 6>/dev/null
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1300 /^X\(\/\/\)$/{
1301 s//\1/
1304 /^X\(\/\).*/{
1305 s//\1/
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1313 else
1314 ac_srcdir_defaulted=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures this package to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1403 cat <<\_ACEOF
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410 X features:
1411 --x-includes=DIR X include files are in DIR
1412 --x-libraries=DIR X library files are in DIR
1414 System types:
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1418 _ACEOF
1421 if test -n "$ac_init_help"; then
1423 cat <<\_ACEOF
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-silent-rules less verbose build output (undo: "make V=1")
1430 --disable-silent-rules verbose build output (undo: "make V=0")
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --enable-optimize enable compile-time optimizer flag -O2
1436 --enable-asg enable support for Automatic Schematic Generation
1437 --disable-lgf disable support for reading Caltech tools
1438 analog simulator .lgf files
1439 --disable-focus-fix disable focus fix for some window managers
1440 --enable-memdebug enable memory debugging
1442 Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-x use the X Window System
1446 --with-xpm=DIR use Xpm include/library files in DIR
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448 --with-cairo Use cairo graphics library [default=yes]
1449 --with-distdir=DIR install into location DIR for distribution
1450 --with-tcl=DIR Find tclConfig.sh in DIR
1451 --with-tk=DIR Find tkConfig.sh in DIR
1452 --with-tclincls=DIR Find tcl.h in DIR
1453 --with-tkincls=DIR Find tk.h in DIR
1454 --with-tcllibs=DIR Find Tcl library in DIR
1455 --with-tklibs=DIR Find Tk library in DIR
1456 --with-gs=DIR path to ghostscript
1457 --with-ngspice=DIR path to ngspice
1458 --with-python=DIR path to python interpreter
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CPP C preprocessor
1469 XMKMF Path to xmkmf, Makefile generator for X Window System
1470 PKG_CONFIG path to pkg-config utility
1471 PKG_CONFIG_PATH
1472 directories to add to pkg-config's search path
1473 PKG_CONFIG_LIBDIR
1474 path overriding pkg-config's built-in search path
1475 cairo_CFLAGS
1476 C compiler flags for cairo, overriding pkg-config
1477 cairo_LIBS linker flags for cairo, overriding pkg-config
1478 fontconfig_CFLAGS
1479 C compiler flags for fontconfig, overriding pkg-config
1480 fontconfig_LIBS
1481 linker flags for fontconfig, overriding pkg-config
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1486 Report bugs to the package provider.
1487 _ACEOF
1488 ac_status=$?
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1539 else
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1543 done
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1548 cat <<\_ACEOF
1549 configure
1550 generated by GNU Autoconf 2.69
1552 Copyright (C) 2012 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1555 _ACEOF
1556 exit
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571 case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574 esac
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590 else
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.$ac_ext >&5
1594 ac_retval=1
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status $ac_retval
1599 } # ac_fn_c_try_compile
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_link ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 test -x conftest$ac_exeext
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_retval=1
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_link
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1662 ac_status=$?
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1672 ac_status=$?
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=$ac_status
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1687 } # ac_fn_c_try_run
1689 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1690 # --------------------------------------------
1691 # Tries to find the compile-time value of EXPR in a program that includes
1692 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1693 # computed
1694 ac_fn_c_compute_int ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if test "$cross_compiling" = yes; then
1698 # Depending upon the size, compute the lo and hi bounds.
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1703 main ()
1705 static int test_array [1 - 2 * !(($2) >= 0)];
1706 test_array [0] = 0;
1707 return test_array [0];
1710 return 0;
1712 _ACEOF
1713 if ac_fn_c_try_compile "$LINENO"; then :
1714 ac_lo=0 ac_mid=0
1715 while :; do
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1720 main ()
1722 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1723 test_array [0] = 0;
1724 return test_array [0];
1727 return 0;
1729 _ACEOF
1730 if ac_fn_c_try_compile "$LINENO"; then :
1731 ac_hi=$ac_mid; break
1732 else
1733 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1734 if test $ac_lo -le $ac_mid; then
1735 ac_lo= ac_hi=
1736 break
1738 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741 done
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1747 main ()
1749 static int test_array [1 - 2 * !(($2) < 0)];
1750 test_array [0] = 0;
1751 return test_array [0];
1754 return 0;
1756 _ACEOF
1757 if ac_fn_c_try_compile "$LINENO"; then :
1758 ac_hi=-1 ac_mid=-1
1759 while :; do
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1764 main ()
1766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1767 test_array [0] = 0;
1768 return test_array [0];
1771 return 0;
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 ac_lo=$ac_mid; break
1776 else
1777 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1778 if test $ac_mid -le $ac_hi; then
1779 ac_lo= ac_hi=
1780 break
1782 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 done
1786 else
1787 ac_lo= ac_hi=
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 # Binary search between lo and hi bounds.
1793 while test "x$ac_lo" != "x$ac_hi"; do
1794 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1799 main ()
1801 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1802 test_array [0] = 0;
1803 return test_array [0];
1806 return 0;
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 ac_hi=$ac_mid
1811 else
1812 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 done
1816 case $ac_lo in #((
1817 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1818 '') ac_retval=1 ;;
1819 esac
1820 else
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1824 static long int longval () { return $2; }
1825 static unsigned long int ulongval () { return $2; }
1826 #include <stdio.h>
1827 #include <stdlib.h>
1829 main ()
1832 FILE *f = fopen ("conftest.val", "w");
1833 if (! f)
1834 return 1;
1835 if (($2) < 0)
1837 long int i = longval ();
1838 if (i != ($2))
1839 return 1;
1840 fprintf (f, "%ld", i);
1842 else
1844 unsigned long int i = ulongval ();
1845 if (i != ($2))
1846 return 1;
1847 fprintf (f, "%lu", i);
1849 /* Do not output a trailing newline, as this causes \r\n confusion
1850 on some platforms. */
1851 return ferror (f) || fclose (f) != 0;
1854 return 0;
1856 _ACEOF
1857 if ac_fn_c_try_run "$LINENO"; then :
1858 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1859 else
1860 ac_retval=1
1862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1863 conftest.$ac_objext conftest.beam conftest.$ac_ext
1864 rm -f conftest.val
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_compute_int
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_cpp ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=1
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_cpp
1909 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists and can be compiled using the include files in
1912 # INCLUDES, setting the cache variable VAR accordingly.
1913 ac_fn_c_check_header_compile ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1920 else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_header_compile
1940 # ac_fn_c_check_func LINENO FUNC VAR
1941 # ----------------------------------
1942 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1943 ac_fn_c_check_func ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1955 #define $2 innocuous_$2
1957 /* System header to define __stub macros and hopefully few prototypes,
1958 which can conflict with char $2 (); below.
1959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1960 <limits.h> exists even on freestanding compilers. */
1962 #ifdef __STDC__
1963 # include <limits.h>
1964 #else
1965 # include <assert.h>
1966 #endif
1968 #undef $2
1970 /* Override any GCC internal prototype to avoid an error.
1971 Use char because int might match the return type of a GCC
1972 builtin and then its argument prototype would still apply. */
1973 #ifdef __cplusplus
1974 extern "C"
1975 #endif
1976 char $2 ();
1977 /* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980 #if defined __stub_$2 || defined __stub___$2
1981 choke me
1982 #endif
1985 main ()
1987 return $2 ();
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_link "$LINENO"; then :
1993 eval "$3=yes"
1994 else
1995 eval "$3=no"
1997 rm -f core conftest.err conftest.$ac_objext \
1998 conftest$ac_exeext conftest.$ac_ext
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_func
2007 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2010 # the include files in INCLUDES and setting the cache variable VAR
2011 # accordingly.
2012 ac_fn_c_check_header_mongrel ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if eval \${$3+:} false; then :
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 else
2025 # Is the header compilable?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2027 $as_echo_n "checking $2 usability... " >&6; }
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 ac_header_compiler=yes
2035 else
2036 ac_header_compiler=no
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2040 $as_echo "$ac_header_compiler" >&6; }
2042 # Is the header present?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2044 $as_echo_n "checking $2 presence... " >&6; }
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 #include <$2>
2048 _ACEOF
2049 if ac_fn_c_try_cpp "$LINENO"; then :
2050 ac_header_preproc=yes
2051 else
2052 ac_header_preproc=no
2054 rm -f conftest.err conftest.i conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2056 $as_echo "$ac_header_preproc" >&6; }
2058 # So? What about this header?
2059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2060 yes:no: )
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2062 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2064 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2066 no:yes:* )
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2068 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2070 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2072 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2074 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2076 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 } # ac_fn_c_check_header_mongrel
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2097 It was created by $as_me, which was
2098 generated by GNU Autoconf 2.69. Invocation command line was
2100 $ $0 $@
2102 _ACEOF
2103 exec 5>>config.log
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127 _ASUNAME
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2138 } >&5
2140 cat >&5 <<_ACEOF
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2147 _ACEOF
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2161 for ac_arg
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2190 as_fn_append ac_configure_args " '$ac_arg'"
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2206 echo
2208 $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2211 echo
2212 # The following way of writing the cache mishandles newlines in values,
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229 (set) 2>&1 |
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2232 sed -n \
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235 ;; #(
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 esac |
2240 sort
2242 echo
2244 $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2247 echo
2248 for ac_var in $ac_subst_vars
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2258 if test -n "$ac_subst_files"; then
2259 $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2262 echo
2263 for ac_var in $ac_subst_files
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2274 if test -s confdefs.h; then
2275 $as_echo "## ----------- ##
2276 ## confdefs.h. ##
2277 ## ----------- ##"
2278 echo
2279 cat confdefs.h
2280 echo
2282 test "$ac_signal" != 0 &&
2283 $as_echo "$as_me: caught signal $ac_signal"
2284 $as_echo "$as_me: exit $exit_status"
2285 } >&5
2286 rm -f core *.core core.conftest.* &&
2287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2288 exit $exit_status
2290 for ac_signal in 1 2 13 15; do
2291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 done
2293 ac_signal=0
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest* confdefs.h
2298 $as_echo "/* confdefs.h */" > confdefs.h
2300 # Predefined preprocessor variables.
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2304 _ACEOF
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2308 _ACEOF
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2312 _ACEOF
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2324 _ACEOF
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 ac_site_file1=NONE
2330 ac_site_file2=NONE
2331 if test -n "$CONFIG_SITE"; then
2332 # We do not want a PATH search for config.site.
2333 case $CONFIG_SITE in #((
2334 -*) ac_site_file1=./$CONFIG_SITE;;
2335 */*) ac_site_file1=$CONFIG_SITE;;
2336 *) ac_site_file1=./$CONFIG_SITE;;
2337 esac
2338 elif test "x$prefix" != xNONE; then
2339 ac_site_file1=$prefix/share/config.site
2340 ac_site_file2=$prefix/etc/config.site
2341 else
2342 ac_site_file1=$ac_default_prefix/share/config.site
2343 ac_site_file2=$ac_default_prefix/etc/config.site
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347 test "x$ac_site_file" = xNONE && continue
2348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file" \
2353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $? "failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2358 done
2360 if test -r "$cache_file"; then
2361 # Some versions of bash will fail to source /dev/null (special files
2362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2366 case $cache_file in
2367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2368 *) . "./$cache_file";;
2369 esac
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 >$cache_file
2377 # Check that the precious variables saved in the cache have kept the same
2378 # value.
2379 ac_cache_corrupted=false
2380 for ac_var in $ac_precious_vars; do
2381 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2382 eval ac_new_set=\$ac_env_${ac_var}_set
2383 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2384 eval ac_new_val=\$ac_env_${ac_var}_value
2385 case $ac_old_set,$ac_new_set in
2386 set,)
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2389 ac_cache_corrupted=: ;;
2390 ,set)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2393 ac_cache_corrupted=: ;;
2394 ,);;
2396 if test "x$ac_old_val" != "x$ac_new_val"; then
2397 # differences in whitespace do not lead to failure.
2398 ac_old_val_w=`echo x $ac_old_val`
2399 ac_new_val_w=`echo x $ac_new_val`
2400 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2402 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2403 ac_cache_corrupted=:
2404 else
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2406 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2407 eval $ac_var=\$ac_old_val
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2410 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2412 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2413 fi;;
2414 esac
2415 # Pass precious variables to config.status.
2416 if test "$ac_new_set" = set; then
2417 case $ac_new_val in
2418 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2419 *) ac_arg=$ac_var=$ac_new_val ;;
2420 esac
2421 case " $ac_configure_args " in
2422 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2423 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2424 esac
2426 done
2427 if $ac_cache_corrupted; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2431 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2432 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2434 ## -------------------- ##
2435 ## Main body of script. ##
2436 ## -------------------- ##
2438 ac_ext=c
2439 ac_cpp='$CPP $CPPFLAGS'
2440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 ac_aux_dir=
2449 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2450 if test -f "$ac_dir/install-sh"; then
2451 ac_aux_dir=$ac_dir
2452 ac_install_sh="$ac_aux_dir/install-sh -c"
2453 break
2454 elif test -f "$ac_dir/install.sh"; then
2455 ac_aux_dir=$ac_dir
2456 ac_install_sh="$ac_aux_dir/install.sh -c"
2457 break
2458 elif test -f "$ac_dir/shtool"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/shtool install -c"
2461 break
2463 done
2464 if test -z "$ac_aux_dir"; then
2465 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2468 # These three variables are undocumented and unsupported,
2469 # and are intended to be withdrawn in a future Autoconf release.
2470 # They can cause serious problems if a builder's source tree is in a directory
2471 # whose full name contains unusual characters.
2472 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2473 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2474 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2477 # Make sure we can run config.sub.
2478 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2479 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2482 $as_echo_n "checking build system type... " >&6; }
2483 if ${ac_cv_build+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 ac_build_alias=$build_alias
2487 test "x$ac_build_alias" = x &&
2488 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2489 test "x$ac_build_alias" = x &&
2490 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2491 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2492 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2496 $as_echo "$ac_cv_build" >&6; }
2497 case $ac_cv_build in
2498 *-*-*) ;;
2499 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2500 esac
2501 build=$ac_cv_build
2502 ac_save_IFS=$IFS; IFS='-'
2503 set x $ac_cv_build
2504 shift
2505 build_cpu=$1
2506 build_vendor=$2
2507 shift; shift
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2510 build_os=$*
2511 IFS=$ac_save_IFS
2512 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2516 $as_echo_n "checking host system type... " >&6; }
2517 if ${ac_cv_host+:} false; then :
2518 $as_echo_n "(cached) " >&6
2519 else
2520 if test "x$host_alias" = x; then
2521 ac_cv_host=$ac_cv_build
2522 else
2523 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2524 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2529 $as_echo "$ac_cv_host" >&6; }
2530 case $ac_cv_host in
2531 *-*-*) ;;
2532 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2533 esac
2534 host=$ac_cv_host
2535 ac_save_IFS=$IFS; IFS='-'
2536 set x $ac_cv_host
2537 shift
2538 host_cpu=$1
2539 host_vendor=$2
2540 shift; shift
2541 # Remember, the first character of IFS is used to create $*,
2542 # except with old shells:
2543 host_os=$*
2544 IFS=$ac_save_IFS
2545 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2549 $as_echo_n "checking target system type... " >&6; }
2550 if ${ac_cv_target+:} false; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test "x$target_alias" = x; then
2554 ac_cv_target=$ac_cv_host
2555 else
2556 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2557 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2562 $as_echo "$ac_cv_target" >&6; }
2563 case $ac_cv_target in
2564 *-*-*) ;;
2565 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2566 esac
2567 target=$ac_cv_target
2568 ac_save_IFS=$IFS; IFS='-'
2569 set x $ac_cv_target
2570 shift
2571 target_cpu=$1
2572 target_vendor=$2
2573 shift; shift
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2576 target_os=$*
2577 IFS=$ac_save_IFS
2578 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2581 # The aliases save the names the user supplied, while $host etc.
2582 # will get canonicalized.
2583 test -n "$target_alias" &&
2584 test "$program_prefix$program_suffix$program_transform_name" = \
2585 NONENONEs,x,x, &&
2586 program_prefix=${target_alias}-
2589 PACKAGE=xcircuit
2591 VERSION=`cat ./VERSION | cut -d. -f1-2`
2592 am__api_version='1.14'
2594 # Find a good install program. We prefer a C program (faster),
2595 # so one script is as good as another. But avoid the broken or
2596 # incompatible versions:
2597 # SysV /etc/install, /usr/sbin/install
2598 # SunOS /usr/etc/install
2599 # IRIX /sbin/install
2600 # AIX /bin/install
2601 # AmigaOS /C/install, which installs bootblocks on floppy discs
2602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2605 # OS/2's system install, which has a completely different semantic
2606 # ./install, which can be erroneously created by make from ./install.sh.
2607 # Reject install programs that cannot install multiple files.
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2609 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2610 if test -z "$INSTALL"; then
2611 if ${ac_cv_path_install+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 # Account for people who put trailing slashes in PATH elements.
2620 case $as_dir/ in #((
2621 ./ | .// | /[cC]/* | \
2622 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2623 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2624 /usr/ucb/* ) ;;
2626 # OSF1 and SCO ODT 3.0 have their own names for install.
2627 # Don't use installbsd from OSF since it installs stuff as root
2628 # by default.
2629 for ac_prog in ginstall scoinst install; do
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2632 if test $ac_prog = install &&
2633 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # AIX install. It has an incompatible calling convention.
2636 elif test $ac_prog = install &&
2637 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2638 # program-specific install script used by HP pwplus--don't use.
2640 else
2641 rm -rf conftest.one conftest.two conftest.dir
2642 echo one > conftest.one
2643 echo two > conftest.two
2644 mkdir conftest.dir
2645 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2646 test -s conftest.one && test -s conftest.two &&
2647 test -s conftest.dir/conftest.one &&
2648 test -s conftest.dir/conftest.two
2649 then
2650 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2651 break 3
2655 done
2656 done
2658 esac
2660 done
2661 IFS=$as_save_IFS
2663 rm -rf conftest.one conftest.two conftest.dir
2666 if test "${ac_cv_path_install+set}" = set; then
2667 INSTALL=$ac_cv_path_install
2668 else
2669 # As a last resort, use the slow shell script. Don't cache a
2670 # value for INSTALL within a source directory, because that will
2671 # break other packages using the cache if that directory is
2672 # removed, or if the value is a relative name.
2673 INSTALL=$ac_install_sh
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2677 $as_echo "$INSTALL" >&6; }
2679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2680 # It thinks the first close brace ends the variable substitution.
2681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2685 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2688 $as_echo_n "checking whether build environment is sane... " >&6; }
2689 # Reject unsafe characters in $srcdir or the absolute working directory
2690 # name. Accept space and tab only in the latter.
2691 am_lf='
2693 case `pwd` in
2694 *[\\\"\#\$\&\'\`$am_lf]*)
2695 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2696 esac
2697 case $srcdir in
2698 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2699 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2700 esac
2702 # Do 'set' in a subshell so we don't clobber the current shell's
2703 # arguments. Must try -L first in case configure is actually a
2704 # symlink; some systems play weird games with the mod time of symlinks
2705 # (eg FreeBSD returns the mod time of the symlink's containing
2706 # directory).
2707 if (
2708 am_has_slept=no
2709 for am_try in 1 2; do
2710 echo "timestamp, slept: $am_has_slept" > conftest.file
2711 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2712 if test "$*" = "X"; then
2713 # -L didn't work.
2714 set X `ls -t "$srcdir/configure" conftest.file`
2716 if test "$*" != "X $srcdir/configure conftest.file" \
2717 && test "$*" != "X conftest.file $srcdir/configure"; then
2719 # If neither matched, then we have a broken ls. This can happen
2720 # if, for instance, CONFIG_SHELL is bash and it inherits a
2721 # broken ls alias from the environment. This has actually
2722 # happened. Such a system could not be considered "sane".
2723 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2724 alias in your environment" "$LINENO" 5
2726 if test "$2" = conftest.file || test $am_try -eq 2; then
2727 break
2729 # Just in case.
2730 sleep 1
2731 am_has_slept=yes
2732 done
2733 test "$2" = conftest.file
2735 then
2736 # Ok.
2738 else
2739 as_fn_error $? "newly created file is older than distributed files!
2740 Check your system clock" "$LINENO" 5
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743 $as_echo "yes" >&6; }
2744 # If we didn't sleep, we still need to ensure time stamps of config.status and
2745 # generated files are strictly newer.
2746 am_sleep_pid=
2747 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2748 ( sleep 1 ) &
2749 am_sleep_pid=$!
2752 rm -f conftest.file
2754 test "$program_prefix" != NONE &&
2755 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2756 # Use a double $ so make ignores it.
2757 test "$program_suffix" != NONE &&
2758 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2759 # Double any \ or $.
2760 # By default was `s,x,x', remove it if useless.
2761 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2762 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2764 # expand $ac_aux_dir to an absolute path
2765 am_aux_dir=`cd $ac_aux_dir && pwd`
2767 if test x"${MISSING+set}" != xset; then
2768 case $am_aux_dir in
2769 *\ * | *\ *)
2770 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2772 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2773 esac
2775 # Use eval to expand $SHELL
2776 if eval "$MISSING --is-lightweight"; then
2777 am_missing_run="$MISSING "
2778 else
2779 am_missing_run=
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2781 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2784 if test x"${install_sh}" != xset; then
2785 case $am_aux_dir in
2786 *\ * | *\ *)
2787 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2789 install_sh="\${SHELL} $am_aux_dir/install-sh"
2790 esac
2793 # Installed binaries are usually stripped using 'strip' when the user
2794 # run "make install-strip". However 'strip' might not be the right
2795 # tool to use in cross-compilation environments, therefore Automake
2796 # will honor the 'STRIP' environment variable to overrule this program.
2797 if test "$cross_compiling" != no; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}strip; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_STRIP+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$STRIP"; then
2807 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2822 IFS=$as_save_IFS
2826 STRIP=$ac_cv_prog_STRIP
2827 if test -n "$STRIP"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2829 $as_echo "$STRIP" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2837 if test -z "$ac_cv_prog_STRIP"; then
2838 ac_ct_STRIP=$STRIP
2839 # Extract the first word of "strip", so it can be a program name with args.
2840 set dummy strip; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test -n "$ac_ct_STRIP"; then
2847 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_STRIP="strip"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2860 done
2861 done
2862 IFS=$as_save_IFS
2866 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2867 if test -n "$ac_ct_STRIP"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2869 $as_echo "$ac_ct_STRIP" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2875 if test "x$ac_ct_STRIP" = x; then
2876 STRIP=":"
2877 else
2878 case $cross_compiling:$ac_tool_warned in
2879 yes:)
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882 ac_tool_warned=yes ;;
2883 esac
2884 STRIP=$ac_ct_STRIP
2886 else
2887 STRIP="$ac_cv_prog_STRIP"
2891 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2894 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2895 if test -z "$MKDIR_P"; then
2896 if ${ac_cv_path_mkdir+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_prog in mkdir gmkdir; do
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2907 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2908 'mkdir (GNU coreutils) '* | \
2909 'mkdir (coreutils) '* | \
2910 'mkdir (fileutils) '4.1*)
2911 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2912 break 3;;
2913 esac
2914 done
2915 done
2916 done
2917 IFS=$as_save_IFS
2921 test -d ./--version && rmdir ./--version
2922 if test "${ac_cv_path_mkdir+set}" = set; then
2923 MKDIR_P="$ac_cv_path_mkdir -p"
2924 else
2925 # As a last resort, use the slow shell script. Don't cache a
2926 # value for MKDIR_P within a source directory, because that will
2927 # break other packages using the cache if that directory is
2928 # removed, or if the value is a relative name.
2929 MKDIR_P="$ac_install_sh -d"
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2933 $as_echo "$MKDIR_P" >&6; }
2935 for ac_prog in gawk mawk nawk awk
2937 # Extract the first word of "$ac_prog", so it can be a program name with args.
2938 set dummy $ac_prog; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_AWK+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$AWK"; then
2945 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_AWK="$ac_prog"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2958 done
2959 done
2960 IFS=$as_save_IFS
2964 AWK=$ac_cv_prog_AWK
2965 if test -n "$AWK"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2967 $as_echo "$AWK" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2974 test -n "$AWK" && break
2975 done
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2979 set x ${MAKE-make}
2980 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2981 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 cat >conftest.make <<\_ACEOF
2985 SHELL = /bin/sh
2986 all:
2987 @echo '@@@%%%=$(MAKE)=@@@%%%'
2988 _ACEOF
2989 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2991 *@@@%%%=?*=@@@%%%*)
2992 eval ac_cv_prog_make_${ac_make}_set=yes;;
2994 eval ac_cv_prog_make_${ac_make}_set=no;;
2995 esac
2996 rm -f conftest.make
2998 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3000 $as_echo "yes" >&6; }
3001 SET_MAKE=
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 SET_MAKE="MAKE=${MAKE-make}"
3008 rm -rf .tst 2>/dev/null
3009 mkdir .tst 2>/dev/null
3010 if test -d .tst; then
3011 am__leading_dot=.
3012 else
3013 am__leading_dot=_
3015 rmdir .tst 2>/dev/null
3017 # Check whether --enable-silent-rules was given.
3018 if test "${enable_silent_rules+set}" = set; then :
3019 enableval=$enable_silent_rules;
3022 case $enable_silent_rules in # (((
3023 yes) AM_DEFAULT_VERBOSITY=0;;
3024 no) AM_DEFAULT_VERBOSITY=1;;
3025 *) AM_DEFAULT_VERBOSITY=1;;
3026 esac
3027 am_make=${MAKE-make}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3029 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3030 if ${am_cv_make_support_nested_variables+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if $as_echo 'TRUE=$(BAR$(V))
3034 BAR0=false
3035 BAR1=true
3037 am__doit:
3038 @$(TRUE)
3039 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3040 am_cv_make_support_nested_variables=yes
3041 else
3042 am_cv_make_support_nested_variables=no
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3046 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3047 if test $am_cv_make_support_nested_variables = yes; then
3048 AM_V='$(V)'
3049 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3050 else
3051 AM_V=$AM_DEFAULT_VERBOSITY
3052 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3054 AM_BACKSLASH='\'
3056 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3057 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3058 # is not polluted with repeated "-I."
3059 am__isrc=' -I$(srcdir)'
3060 # test to see if srcdir already configured
3061 if test -f $srcdir/config.status; then
3062 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3066 # test whether we have cygpath
3067 if test -z "$CYGPATH_W"; then
3068 if (cygpath --version) >/dev/null 2>/dev/null; then
3069 CYGPATH_W='cygpath -w'
3070 else
3071 CYGPATH_W=echo
3076 # Define the identity of the package.
3078 PACKAGE=${PACKAGE}
3079 VERSION=${VERSION}
3082 cat >>confdefs.h <<_ACEOF
3083 #define PACKAGE "$PACKAGE"
3084 _ACEOF
3087 cat >>confdefs.h <<_ACEOF
3088 #define VERSION "$VERSION"
3089 _ACEOF
3091 # Some tools Automake needs.
3093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3107 # For better backward compatibility. To be removed once Automake 1.9.x
3108 # dies out for good. For more background, see:
3109 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3110 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3111 mkdir_p='$(MKDIR_P)'
3113 # We need awk for the "check" target. The system "awk" is bad on
3114 # some platforms.
3115 # Always define AMTAR for backward compatibility. Yes, it's still used
3116 # in the wild :-( We should find a proper way to deprecate it ...
3117 AMTAR='$${TAR-tar}'
3120 # We'll loop over all known methods to create a tar archive until one works.
3121 _am_tools='gnutar pax cpio none'
3123 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3130 # POSIX will say in a future version that running "rm -f" with no argument
3131 # is OK; and we want to be able to make that assumption in our Makefile
3132 # recipes. So use an aggressive probe to check that the usage we want is
3133 # actually supported "in the wild" to an acceptable degree.
3134 # See automake bug#10828.
3135 # To make any issue more visible, cause the running configure to be aborted
3136 # by default if the 'rm' program in use doesn't match our expectations; the
3137 # user can still override this though.
3138 if rm -f && rm -fr && rm -rf; then : OK; else
3139 cat >&2 <<'END'
3140 Oops!
3142 Your 'rm' program seems unable to run without file operands specified
3143 on the command line, even when the '-f' option is present. This is contrary
3144 to the behaviour of most rm programs out there, and not conforming with
3145 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3147 Please tell bug-automake@gnu.org about your system, including the value
3148 of your $PATH and any error possibly output before this message. This
3149 can help us improve future automake versions.
3152 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3153 echo 'Configuration will proceed anyway, since you have set the' >&2
3154 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3155 echo >&2
3156 else
3157 cat >&2 <<'END'
3158 Aborting the configuration process, to ensure you take notice of the issue.
3160 You can download and install GNU coreutils to get an 'rm' implementation
3161 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3163 If you want to complete the configuration process using your problematic
3164 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3165 to "yes", and re-run configure.
3168 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3172 SUBDIRS=
3173 SUBLIB=
3174 STDLIBS=
3175 XCIRCUIT_TARGET=
3176 ALL_TARGET="undefined-target"
3177 INSTALL_TARGET="undefined-install-target"
3178 REVISION=`cat ./VERSION | cut -d. -f3`
3179 INTERPRETER=NOINTERP
3180 HAVE_LGF=NOFORMATS
3182 LIB_SPECS=""
3183 WISH_EXE=""
3184 SHLIB_CFLAGS=""
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3192 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3193 set x ${MAKE-make}
3194 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3195 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 cat >conftest.make <<\_ACEOF
3199 SHELL = /bin/sh
3200 all:
3201 @echo '@@@%%%=$(MAKE)=@@@%%%'
3202 _ACEOF
3203 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3204 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3205 *@@@%%%=?*=@@@%%%*)
3206 eval ac_cv_prog_make_${ac_make}_set=yes;;
3208 eval ac_cv_prog_make_${ac_make}_set=no;;
3209 esac
3210 rm -f conftest.make
3212 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3215 SET_MAKE=
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 SET_MAKE="MAKE=${MAKE-make}"
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 if test -n "$ac_tool_prefix"; then
3229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_CC+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC="$CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3250 done
3251 done
3252 IFS=$as_save_IFS
3256 CC=$ac_cv_prog_CC
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3267 if test -z "$ac_cv_prog_CC"; then
3268 ac_ct_CC=$CC
3269 # Extract the first word of "gcc", so it can be a program name with args.
3270 set dummy gcc; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_ac_ct_CC="gcc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3290 done
3291 done
3292 IFS=$as_save_IFS
3296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297 if test -n "$ac_ct_CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299 $as_echo "$ac_ct_CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3305 if test "x$ac_ct_CC" = x; then
3306 CC=""
3307 else
3308 case $cross_compiling:$ac_tool_warned in
3309 yes:)
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3312 ac_tool_warned=yes ;;
3313 esac
3314 CC=$ac_ct_CC
3316 else
3317 CC="$ac_cv_prog_CC"
3320 if test -z "$CC"; then
3321 if test -n "$ac_tool_prefix"; then
3322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3323 set dummy ${ac_tool_prefix}cc; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_CC+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if test -n "$CC"; then
3330 ac_cv_prog_CC="$CC" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_CC="${ac_tool_prefix}cc"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3343 done
3344 done
3345 IFS=$as_save_IFS
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 $as_echo "$CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3361 if test -z "$CC"; then
3362 # Extract the first word of "cc", so it can be a program name with args.
3363 set dummy cc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 ac_prog_rejected=no
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3381 ac_prog_rejected=yes
3382 continue
3384 ac_cv_prog_CC="cc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 break 2
3388 done
3389 done
3390 IFS=$as_save_IFS
3392 if test $ac_prog_rejected = yes; then
3393 # We found a bogon in the path, so make sure we never use it.
3394 set dummy $ac_cv_prog_CC
3395 shift
3396 if test $# != 0; then
3397 # We chose a different compiler from the bogus one.
3398 # However, it has the same basename, so the bogon will be chosen
3399 # first if we set CC to just the basename; use the full file name.
3400 shift
3401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3406 CC=$ac_cv_prog_CC
3407 if test -n "$CC"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409 $as_echo "$CC" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3417 if test -z "$CC"; then
3418 if test -n "$ac_tool_prefix"; then
3419 for ac_prog in cl.exe
3421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if ${ac_cv_prog_CC+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3458 test -n "$CC" && break
3459 done
3461 if test -z "$CC"; then
3462 ac_ct_CC=$CC
3463 for ac_prog in cl.exe
3465 # Extract the first word of "$ac_prog", so it can be a program name with args.
3466 set dummy $ac_prog; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 if test -n "$ac_ct_CC"; then
3473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3474 else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_ac_ct_CC="$ac_prog"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3486 done
3487 done
3488 IFS=$as_save_IFS
3492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3493 if test -n "$ac_ct_CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3495 $as_echo "$ac_ct_CC" >&6; }
3496 else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3502 test -n "$ac_ct_CC" && break
3503 done
3505 if test "x$ac_ct_CC" = x; then
3506 CC=""
3507 else
3508 case $cross_compiling:$ac_tool_warned in
3509 yes:)
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512 ac_tool_warned=yes ;;
3513 esac
3514 CC=$ac_ct_CC
3521 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "no acceptable C compiler found in \$PATH
3524 See \`config.log' for more details" "$LINENO" 5; }
3526 # Provide some information about the compiler.
3527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3528 set X $ac_compile
3529 ac_compiler=$2
3530 for ac_option in --version -v -V -qversion; do
3531 { { ac_try="$ac_compiler $ac_option >&5"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3539 ac_status=$?
3540 if test -s conftest.err; then
3541 sed '10a\
3542 ... rest of stderr output deleted ...
3543 10q' conftest.err >conftest.er1
3544 cat conftest.er1 >&5
3546 rm -f conftest.er1 conftest.err
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }
3549 done
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3555 main ()
3559 return 0;
3561 _ACEOF
3562 ac_clean_files_save=$ac_clean_files
3563 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3564 # Try to create an executable without -o first, disregard a.out.
3565 # It will help us diagnose broken compilers, and finding out an intuition
3566 # of exeext.
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3568 $as_echo_n "checking whether the C compiler works... " >&6; }
3569 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3571 # The possible output files:
3572 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3574 ac_rmfiles=
3575 for ac_file in $ac_files
3577 case $ac_file in
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3579 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3580 esac
3581 done
3582 rm -f $ac_rmfiles
3584 if { { ac_try="$ac_link_default"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_link_default") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3596 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3597 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3598 # so that the user can short-circuit this test for compilers unknown to
3599 # Autoconf.
3600 for ac_file in $ac_files ''
3602 test -f "$ac_file" || continue
3603 case $ac_file in
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3606 [ab].out )
3607 # We found the default executable, but exeext='' is most
3608 # certainly right.
3609 break;;
3610 *.* )
3611 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3612 then :; else
3613 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3615 # We set ac_cv_exeext here because the later test for it is not
3616 # safe: cross compilers may not add the suffix if given an `-o'
3617 # argument, so we may need to know it at that point already.
3618 # Even if this section looks crufty: it has the advantage of
3619 # actually working.
3620 break;;
3622 break;;
3623 esac
3624 done
3625 test "$ac_cv_exeext" = no && ac_cv_exeext=
3627 else
3628 ac_file=''
3630 if test -z "$ac_file"; then :
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error 77 "C compiler cannot create executables
3639 See \`config.log' for more details" "$LINENO" 5; }
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3645 $as_echo_n "checking for C compiler default output file name... " >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3647 $as_echo "$ac_file" >&6; }
3648 ac_exeext=$ac_cv_exeext
3650 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3651 ac_clean_files=$ac_clean_files_save
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3653 $as_echo_n "checking for suffix of executables... " >&6; }
3654 if { { ac_try="$ac_link"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3666 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3667 # work properly (i.e., refer to `conftest.exe'), while it won't with
3668 # `rm'.
3669 for ac_file in conftest.exe conftest conftest.*; do
3670 test -f "$ac_file" || continue
3671 case $ac_file in
3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3673 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3674 break;;
3675 * ) break;;
3676 esac
3677 done
3678 else
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3682 See \`config.log' for more details" "$LINENO" 5; }
3684 rm -f conftest conftest$ac_cv_exeext
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3686 $as_echo "$ac_cv_exeext" >&6; }
3688 rm -f conftest.$ac_ext
3689 EXEEXT=$ac_cv_exeext
3690 ac_exeext=$EXEEXT
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693 #include <stdio.h>
3695 main ()
3697 FILE *f = fopen ("conftest.out", "w");
3698 return ferror (f) || fclose (f) != 0;
3701 return 0;
3703 _ACEOF
3704 ac_clean_files="$ac_clean_files conftest.out"
3705 # Check that the compiler produces executables we can run. If not, either
3706 # the compiler is broken, or we cross compile.
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3708 $as_echo_n "checking whether we are cross compiling... " >&6; }
3709 if test "$cross_compiling" != yes; then
3710 { { ac_try="$ac_link"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_link") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }
3721 if { ac_try='./conftest$ac_cv_exeext'
3722 { { case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_try") 2>&5
3729 ac_status=$?
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }; }; then
3732 cross_compiling=no
3733 else
3734 if test "$cross_compiling" = maybe; then
3735 cross_compiling=yes
3736 else
3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739 as_fn_error $? "cannot run C compiled programs.
3740 If you meant to cross compile, use \`--host'.
3741 See \`config.log' for more details" "$LINENO" 5; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3746 $as_echo "$cross_compiling" >&6; }
3748 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3749 ac_clean_files=$ac_clean_files_save
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3751 $as_echo_n "checking for suffix of object files... " >&6; }
3752 if ${ac_cv_objext+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3759 main ()
3763 return 0;
3765 _ACEOF
3766 rm -f conftest.o conftest.obj
3767 if { { ac_try="$ac_compile"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 $as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_compile") 2>&5
3775 ac_status=$?
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; then :
3778 for ac_file in conftest.o conftest.obj conftest.*; do
3779 test -f "$ac_file" || continue;
3780 case $ac_file in
3781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3782 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3783 break;;
3784 esac
3785 done
3786 else
3787 $as_echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error $? "cannot compute suffix of object files: cannot compile
3793 See \`config.log' for more details" "$LINENO" 5; }
3795 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3798 $as_echo "$ac_cv_objext" >&6; }
3799 OBJEXT=$ac_cv_objext
3800 ac_objext=$OBJEXT
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3802 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3803 if ${ac_cv_c_compiler_gnu+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3810 main ()
3812 #ifndef __GNUC__
3813 choke me
3814 #endif
3817 return 0;
3819 _ACEOF
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_compiler_gnu=yes
3822 else
3823 ac_compiler_gnu=no
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3830 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3831 if test $ac_compiler_gnu = yes; then
3832 GCC=yes
3833 else
3834 GCC=
3836 ac_test_CFLAGS=${CFLAGS+set}
3837 ac_save_CFLAGS=$CFLAGS
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3839 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3840 if ${ac_cv_prog_cc_g+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 ac_save_c_werror_flag=$ac_c_werror_flag
3844 ac_c_werror_flag=yes
3845 ac_cv_prog_cc_g=no
3846 CFLAGS="-g"
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3851 main ()
3855 return 0;
3857 _ACEOF
3858 if ac_fn_c_try_compile "$LINENO"; then :
3859 ac_cv_prog_cc_g=yes
3860 else
3861 CFLAGS=""
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3866 main ()
3870 return 0;
3872 _ACEOF
3873 if ac_fn_c_try_compile "$LINENO"; then :
3875 else
3876 ac_c_werror_flag=$ac_save_c_werror_flag
3877 CFLAGS="-g"
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3882 main ()
3886 return 0;
3888 _ACEOF
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_g=yes
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 ac_c_werror_flag=$ac_save_c_werror_flag
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3900 $as_echo "$ac_cv_prog_cc_g" >&6; }
3901 if test "$ac_test_CFLAGS" = set; then
3902 CFLAGS=$ac_save_CFLAGS
3903 elif test $ac_cv_prog_cc_g = yes; then
3904 if test "$GCC" = yes; then
3905 CFLAGS="-g -O2"
3906 else
3907 CFLAGS="-g"
3909 else
3910 if test "$GCC" = yes; then
3911 CFLAGS="-O2"
3912 else
3913 CFLAGS=
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3917 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3918 if ${ac_cv_prog_cc_c89+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 ac_cv_prog_cc_c89=no
3922 ac_save_CC=$CC
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3925 #include <stdarg.h>
3926 #include <stdio.h>
3927 struct stat;
3928 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3929 struct buf { int x; };
3930 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3931 static char *e (p, i)
3932 char **p;
3933 int i;
3935 return p[i];
3937 static char *f (char * (*g) (char **, int), char **p, ...)
3939 char *s;
3940 va_list v;
3941 va_start (v,p);
3942 s = g (p, va_arg (v,int));
3943 va_end (v);
3944 return s;
3947 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3948 function prototypes and stuff, but not '\xHH' hex character constants.
3949 These don't provoke an error unfortunately, instead are silently treated
3950 as 'x'. The following induces an error, until -std is added to get
3951 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3952 array size at least. It's necessary to write '\x00'==0 to get something
3953 that's true only with -std. */
3954 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3956 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3957 inside strings and character constants. */
3958 #define FOO(x) 'x'
3959 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3961 int test (int i, double x);
3962 struct s1 {int (*f) (int a);};
3963 struct s2 {int (*f) (double a);};
3964 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3965 int argc;
3966 char **argv;
3968 main ()
3970 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3972 return 0;
3974 _ACEOF
3975 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3976 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978 CC="$ac_save_CC $ac_arg"
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_cv_prog_cc_c89=$ac_arg
3982 rm -f core conftest.err conftest.$ac_objext
3983 test "x$ac_cv_prog_cc_c89" != "xno" && break
3984 done
3985 rm -f conftest.$ac_ext
3986 CC=$ac_save_CC
3989 # AC_CACHE_VAL
3990 case "x$ac_cv_prog_cc_c89" in
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993 $as_echo "none needed" >&6; } ;;
3994 xno)
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 $as_echo "unsupported" >&6; } ;;
3998 CC="$CC $ac_cv_prog_cc_c89"
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4000 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4001 esac
4002 if test "x$ac_cv_prog_cc_c89" != xno; then :
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 ac_ext=c
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4018 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4019 if ${am_cv_prog_cc_c_o+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 main ()
4030 return 0;
4032 _ACEOF
4033 # Make sure it works both with $CC and with simple cc.
4034 # Following AC_PROG_CC_C_O, we do the test twice because some
4035 # compilers refuse to overwrite an existing .o file with -o,
4036 # though they will create one.
4037 am_cv_prog_cc_c_o=yes
4038 for am_i in 1 2; do
4039 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4040 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4041 ac_status=$?
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } \
4044 && test -f conftest2.$ac_objext; then
4045 : OK
4046 else
4047 am_cv_prog_cc_c_o=no
4048 break
4050 done
4051 rm -f core conftest*
4052 unset am_i
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4055 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4056 if test "$am_cv_prog_cc_c_o" != yes; then
4057 # Losing compiler, so override with the script.
4058 # FIXME: It is wrong to rewrite CC.
4059 # But if we don't then we get into trouble of one sort or another.
4060 # A longer-term fix would be to have automake use am__CC in this case,
4061 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4062 CC="$am_aux_dir/compile $CC"
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 DEPDIR="${am__leading_dot}deps"
4072 ac_config_commands="$ac_config_commands depfiles"
4075 am_make=${MAKE-make}
4076 cat > confinc << 'END'
4077 am__doit:
4078 @echo this is the am__doit target
4079 .PHONY: am__doit
4081 # If we don't find an include directive, just comment out the code.
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4083 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4084 am__include="#"
4085 am__quote=
4086 _am_result=none
4087 # First try GNU make style include.
4088 echo "include confinc" > confmf
4089 # Ignore all kinds of additional output from 'make'.
4090 case `$am_make -s -f confmf 2> /dev/null` in #(
4091 *the\ am__doit\ target*)
4092 am__include=include
4093 am__quote=
4094 _am_result=GNU
4096 esac
4097 # Now try BSD make style include.
4098 if test "$am__include" = "#"; then
4099 echo '.include "confinc"' > confmf
4100 case `$am_make -s -f confmf 2> /dev/null` in #(
4101 *the\ am__doit\ target*)
4102 am__include=.include
4103 am__quote="\""
4104 _am_result=BSD
4106 esac
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4111 $as_echo "$_am_result" >&6; }
4112 rm -f confinc confmf
4114 # Check whether --enable-dependency-tracking was given.
4115 if test "${enable_dependency_tracking+set}" = set; then :
4116 enableval=$enable_dependency_tracking;
4119 if test "x$enable_dependency_tracking" != xno; then
4120 am_depcomp="$ac_aux_dir/depcomp"
4121 AMDEPBACKSLASH='\'
4122 am__nodep='_no'
4124 if test "x$enable_dependency_tracking" != xno; then
4125 AMDEP_TRUE=
4126 AMDEP_FALSE='#'
4127 else
4128 AMDEP_TRUE='#'
4129 AMDEP_FALSE=
4134 depcc="$CC" am_compiler_list=
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4137 $as_echo_n "checking dependency style of $depcc... " >&6; }
4138 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4139 $as_echo_n "(cached) " >&6
4140 else
4141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4142 # We make a subdir and do the tests there. Otherwise we can end up
4143 # making bogus files that we don't know about and never remove. For
4144 # instance it was reported that on HP-UX the gcc test will end up
4145 # making a dummy file named 'D' -- because '-MD' means "put the output
4146 # in D".
4147 rm -rf conftest.dir
4148 mkdir conftest.dir
4149 # Copy depcomp to subdir because otherwise we won't find it if we're
4150 # using a relative directory.
4151 cp "$am_depcomp" conftest.dir
4152 cd conftest.dir
4153 # We will build objects and dependencies in a subdirectory because
4154 # it helps to detect inapplicable dependency modes. For instance
4155 # both Tru64's cc and ICC support -MD to output dependencies as a
4156 # side effect of compilation, but ICC will put the dependencies in
4157 # the current directory while Tru64 will put them in the object
4158 # directory.
4159 mkdir sub
4161 am_cv_CC_dependencies_compiler_type=none
4162 if test "$am_compiler_list" = ""; then
4163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4165 am__universal=false
4166 case " $depcc " in #(
4167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4168 esac
4170 for depmode in $am_compiler_list; do
4171 # Setup a source with many dependencies, because some compilers
4172 # like to wrap large dependency lists on column 80 (with \), and
4173 # we should not choose a depcomp mode which is confused by this.
4175 # We need to recreate these files for each test, as the compiler may
4176 # overwrite some of them when testing with obscure command lines.
4177 # This happens at least with the AIX C compiler.
4178 : > sub/conftest.c
4179 for i in 1 2 3 4 5 6; do
4180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4181 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4182 # Solaris 10 /bin/sh.
4183 echo '/* dummy */' > sub/conftst$i.h
4184 done
4185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4188 # mode. It turns out that the SunPro C++ compiler does not properly
4189 # handle '-M -o', and we need to detect this. Also, some Intel
4190 # versions had trouble with output in subdirs.
4191 am__obj=sub/conftest.${OBJEXT-o}
4192 am__minus_obj="-o $am__obj"
4193 case $depmode in
4194 gcc)
4195 # This depmode causes a compiler race in universal mode.
4196 test "$am__universal" = false || continue
4198 nosideeffect)
4199 # After this tag, mechanisms are not by side-effect, so they'll
4200 # only be used when explicitly requested.
4201 if test "x$enable_dependency_tracking" = xyes; then
4202 continue
4203 else
4204 break
4207 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4208 # This compiler won't grok '-c -o', but also, the minuso test has
4209 # not run yet. These depmodes are late enough in the game, and
4210 # so weak that their functioning should not be impacted.
4211 am__obj=conftest.${OBJEXT-o}
4212 am__minus_obj=
4214 none) break ;;
4215 esac
4216 if depmode=$depmode \
4217 source=sub/conftest.c object=$am__obj \
4218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4220 >/dev/null 2>conftest.err &&
4221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4225 # icc doesn't choke on unknown options, it will just issue warnings
4226 # or remarks (even with -Werror). So we grep stderr for any message
4227 # that says an option was ignored or not supported.
4228 # When given -MP, icc 7.0 and 7.1 complain thusly:
4229 # icc: Command line warning: ignoring option '-M'; no argument required
4230 # The diagnosis changed in icc 8.0:
4231 # icc: Command line remark: option '-MP' not supported
4232 if (grep 'ignoring option' conftest.err ||
4233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4234 am_cv_CC_dependencies_compiler_type=$depmode
4235 break
4238 done
4240 cd ..
4241 rm -rf conftest.dir
4242 else
4243 am_cv_CC_dependencies_compiler_type=none
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4248 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4252 test "x$enable_dependency_tracking" != xno \
4253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4254 am__fastdepCC_TRUE=
4255 am__fastdepCC_FALSE='#'
4256 else
4257 am__fastdepCC_TRUE='#'
4258 am__fastdepCC_FALSE=
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4264 $as_echo_n "checking for library containing strerror... " >&6; }
4265 if ${ac_cv_search_strerror+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 ac_func_search_save_LIBS=$LIBS
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4272 /* Override any GCC internal prototype to avoid an error.
4273 Use char because int might match the return type of a GCC
4274 builtin and then its argument prototype would still apply. */
4275 #ifdef __cplusplus
4276 extern "C"
4277 #endif
4278 char strerror ();
4280 main ()
4282 return strerror ();
4284 return 0;
4286 _ACEOF
4287 for ac_lib in '' cposix; do
4288 if test -z "$ac_lib"; then
4289 ac_res="none required"
4290 else
4291 ac_res=-l$ac_lib
4292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4294 if ac_fn_c_try_link "$LINENO"; then :
4295 ac_cv_search_strerror=$ac_res
4297 rm -f core conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext
4299 if ${ac_cv_search_strerror+:} false; then :
4300 break
4302 done
4303 if ${ac_cv_search_strerror+:} false; then :
4305 else
4306 ac_cv_search_strerror=no
4308 rm conftest.$ac_ext
4309 LIBS=$ac_func_search_save_LIBS
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4312 $as_echo "$ac_cv_search_strerror" >&6; }
4313 ac_res=$ac_cv_search_strerror
4314 if test "$ac_res" != no; then :
4315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4319 if test "x$U" != "x"; then
4320 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
4323 if test -n "$ac_tool_prefix"; then
4324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if ${ac_cv_prog_RANLIB+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -n "$RANLIB"; then
4332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4351 RANLIB=$ac_cv_prog_RANLIB
4352 if test -n "$RANLIB"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4354 $as_echo "$RANLIB" >&6; }
4355 else
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4362 if test -z "$ac_cv_prog_RANLIB"; then
4363 ac_ct_RANLIB=$RANLIB
4364 # Extract the first word of "ranlib", so it can be a program name with args.
4365 set dummy ranlib; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -n "$ac_ct_RANLIB"; then
4372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_ac_ct_RANLIB="ranlib"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4385 done
4386 done
4387 IFS=$as_save_IFS
4391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4392 if test -n "$ac_ct_RANLIB"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4394 $as_echo "$ac_ct_RANLIB" >&6; }
4395 else
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4400 if test "x$ac_ct_RANLIB" = x; then
4401 RANLIB=":"
4402 else
4403 case $cross_compiling:$ac_tool_warned in
4404 yes:)
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4407 ac_tool_warned=yes ;;
4408 esac
4409 RANLIB=$ac_ct_RANLIB
4411 else
4412 RANLIB="$ac_cv_prog_RANLIB"
4416 for ac_prog in gm4 gnum4 m4
4418 # Extract the first word of "$ac_prog", so it can be a program name with args.
4419 set dummy $ac_prog; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_path_M4+:} false; then :
4423 $as_echo_n "(cached) " >&6
4424 else
4425 case $M4 in
4426 [\\/]* | ?:[\\/]*)
4427 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4433 IFS=$as_save_IFS
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439 break 2
4441 done
4442 done
4443 IFS=$as_save_IFS
4446 esac
4448 M4=$ac_cv_path_M4
4449 if test -n "$M4"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4451 $as_echo "$M4" >&6; }
4452 else
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$M4" && break
4459 done
4462 case "$target_os" in
4463 *cygwin*)
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4467 $as_echo_n "checking for sin in -lm... " >&6; }
4468 if ${ac_cv_lib_m_sin+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 ac_check_lib_save_LIBS=$LIBS
4472 LIBS="-lm $LIBS"
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4476 /* Override any GCC internal prototype to avoid an error.
4477 Use char because int might match the return type of a GCC
4478 builtin and then its argument prototype would still apply. */
4479 #ifdef __cplusplus
4480 extern "C"
4481 #endif
4482 char sin ();
4484 main ()
4486 return sin ();
4488 return 0;
4490 _ACEOF
4491 if ac_fn_c_try_link "$LINENO"; then :
4492 ac_cv_lib_m_sin=yes
4493 else
4494 ac_cv_lib_m_sin=no
4496 rm -f core conftest.err conftest.$ac_objext \
4497 conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4501 $as_echo "$ac_cv_lib_m_sin" >&6; }
4502 if test "x$ac_cv_lib_m_sin" = xyes; then :
4503 cat >>confdefs.h <<_ACEOF
4504 #define HAVE_LIBM 1
4505 _ACEOF
4507 LIBS="-lm $LIBS"
4512 esac
4514 ac_ext=c
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4521 # On Suns, sometimes $CPP names a directory.
4522 if test -n "$CPP" && test -d "$CPP"; then
4523 CPP=
4525 if test -z "$CPP"; then
4526 if ${ac_cv_prog_CPP+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 # Double quotes because CPP needs to be expanded
4530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4532 ac_preproc_ok=false
4533 for ac_c_preproc_warn_flag in '' yes
4535 # Use a header file that comes with gcc, so configuring glibc
4536 # with a fresh cross-compiler works.
4537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4538 # <limits.h> exists even on freestanding compilers.
4539 # On the NeXT, cc -E runs the code through the compiler's parser,
4540 # not just through cpp. "Syntax error" is here to catch this case.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #ifdef __STDC__
4544 # include <limits.h>
4545 #else
4546 # include <assert.h>
4547 #endif
4548 Syntax error
4549 _ACEOF
4550 if ac_fn_c_try_cpp "$LINENO"; then :
4552 else
4553 # Broken: fails on valid input.
4554 continue
4556 rm -f conftest.err conftest.i conftest.$ac_ext
4558 # OK, works on sane cases. Now check whether nonexistent headers
4559 # can be detected and how.
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 #include <ac_nonexistent.h>
4563 _ACEOF
4564 if ac_fn_c_try_cpp "$LINENO"; then :
4565 # Broken: success on invalid input.
4566 continue
4567 else
4568 # Passes both tests.
4569 ac_preproc_ok=:
4570 break
4572 rm -f conftest.err conftest.i conftest.$ac_ext
4574 done
4575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4576 rm -f conftest.i conftest.err conftest.$ac_ext
4577 if $ac_preproc_ok; then :
4578 break
4581 done
4582 ac_cv_prog_CPP=$CPP
4585 CPP=$ac_cv_prog_CPP
4586 else
4587 ac_cv_prog_CPP=$CPP
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4590 $as_echo "$CPP" >&6; }
4591 ac_preproc_ok=false
4592 for ac_c_preproc_warn_flag in '' yes
4594 # Use a header file that comes with gcc, so configuring glibc
4595 # with a fresh cross-compiler works.
4596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 # <limits.h> exists even on freestanding compilers.
4598 # On the NeXT, cc -E runs the code through the compiler's parser,
4599 # not just through cpp. "Syntax error" is here to catch this case.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #ifdef __STDC__
4603 # include <limits.h>
4604 #else
4605 # include <assert.h>
4606 #endif
4607 Syntax error
4608 _ACEOF
4609 if ac_fn_c_try_cpp "$LINENO"; then :
4611 else
4612 # Broken: fails on valid input.
4613 continue
4615 rm -f conftest.err conftest.i conftest.$ac_ext
4617 # OK, works on sane cases. Now check whether nonexistent headers
4618 # can be detected and how.
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <ac_nonexistent.h>
4622 _ACEOF
4623 if ac_fn_c_try_cpp "$LINENO"; then :
4624 # Broken: success on invalid input.
4625 continue
4626 else
4627 # Passes both tests.
4628 ac_preproc_ok=:
4629 break
4631 rm -f conftest.err conftest.i conftest.$ac_ext
4633 done
4634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4635 rm -f conftest.i conftest.err conftest.$ac_ext
4636 if $ac_preproc_ok; then :
4638 else
4639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4642 See \`config.log' for more details" "$LINENO" 5; }
4645 ac_ext=c
4646 ac_cpp='$CPP $CPPFLAGS'
4647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4653 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4654 if ${ac_cv_path_GREP+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656 else
4657 if test -z "$GREP"; then
4658 ac_path_GREP_found=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_prog in grep ggrep; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4668 as_fn_executable_p "$ac_path_GREP" || continue
4669 # Check for GNU ac_path_GREP and select it if it is found.
4670 # Check for GNU $ac_path_GREP
4671 case `"$ac_path_GREP" --version 2>&1` in
4672 *GNU*)
4673 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4675 ac_count=0
4676 $as_echo_n 0123456789 >"conftest.in"
4677 while :
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'GREP' >> "conftest.nl"
4683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_GREP="$ac_path_GREP"
4689 ac_path_GREP_max=$ac_count
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4693 done
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4697 $ac_path_GREP_found && break 3
4698 done
4699 done
4700 done
4701 IFS=$as_save_IFS
4702 if test -z "$ac_cv_path_GREP"; then
4703 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705 else
4706 ac_cv_path_GREP=$GREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4711 $as_echo "$ac_cv_path_GREP" >&6; }
4712 GREP="$ac_cv_path_GREP"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4716 $as_echo_n "checking for egrep... " >&6; }
4717 if ${ac_cv_path_EGREP+:} false; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4721 then ac_cv_path_EGREP="$GREP -E"
4722 else
4723 if test -z "$EGREP"; then
4724 ac_path_EGREP_found=false
4725 # Loop through the user's path and test for each of PROGNAME-LIST
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_prog in egrep; do
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4734 as_fn_executable_p "$ac_path_EGREP" || continue
4735 # Check for GNU ac_path_EGREP and select it if it is found.
4736 # Check for GNU $ac_path_EGREP
4737 case `"$ac_path_EGREP" --version 2>&1` in
4738 *GNU*)
4739 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4741 ac_count=0
4742 $as_echo_n 0123456789 >"conftest.in"
4743 while :
4745 cat "conftest.in" "conftest.in" >"conftest.tmp"
4746 mv "conftest.tmp" "conftest.in"
4747 cp "conftest.in" "conftest.nl"
4748 $as_echo 'EGREP' >> "conftest.nl"
4749 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4750 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4751 as_fn_arith $ac_count + 1 && ac_count=$as_val
4752 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4753 # Best one so far, save it but keep looking for a better one
4754 ac_cv_path_EGREP="$ac_path_EGREP"
4755 ac_path_EGREP_max=$ac_count
4757 # 10*(2^10) chars as input seems more than enough
4758 test $ac_count -gt 10 && break
4759 done
4760 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4761 esac
4763 $ac_path_EGREP_found && break 3
4764 done
4765 done
4766 done
4767 IFS=$as_save_IFS
4768 if test -z "$ac_cv_path_EGREP"; then
4769 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4771 else
4772 ac_cv_path_EGREP=$EGREP
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4778 $as_echo "$ac_cv_path_EGREP" >&6; }
4779 EGREP="$ac_cv_path_EGREP"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4783 $as_echo_n "checking for ANSI C header files... " >&6; }
4784 if ${ac_cv_header_stdc+:} false; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4789 #include <stdlib.h>
4790 #include <stdarg.h>
4791 #include <string.h>
4792 #include <float.h>
4795 main ()
4799 return 0;
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_header_stdc=yes
4804 else
4805 ac_cv_header_stdc=no
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 if test $ac_cv_header_stdc = yes; then
4810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 #include <string.h>
4815 _ACEOF
4816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4817 $EGREP "memchr" >/dev/null 2>&1; then :
4819 else
4820 ac_cv_header_stdc=no
4822 rm -f conftest*
4826 if test $ac_cv_header_stdc = yes; then
4827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 #include <stdlib.h>
4832 _ACEOF
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834 $EGREP "free" >/dev/null 2>&1; then :
4836 else
4837 ac_cv_header_stdc=no
4839 rm -f conftest*
4843 if test $ac_cv_header_stdc = yes; then
4844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4845 if test "$cross_compiling" = yes; then :
4847 else
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <ctype.h>
4851 #include <stdlib.h>
4852 #if ((' ' & 0x0FF) == 0x020)
4853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4855 #else
4856 # define ISLOWER(c) \
4857 (('a' <= (c) && (c) <= 'i') \
4858 || ('j' <= (c) && (c) <= 'r') \
4859 || ('s' <= (c) && (c) <= 'z'))
4860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4861 #endif
4863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4865 main ()
4867 int i;
4868 for (i = 0; i < 256; i++)
4869 if (XOR (islower (i), ISLOWER (i))
4870 || toupper (i) != TOUPPER (i))
4871 return 2;
4872 return 0;
4874 _ACEOF
4875 if ac_fn_c_try_run "$LINENO"; then :
4877 else
4878 ac_cv_header_stdc=no
4880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4881 conftest.$ac_objext conftest.beam conftest.$ac_ext
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4887 $as_echo "$ac_cv_header_stdc" >&6; }
4888 if test $ac_cv_header_stdc = yes; then
4890 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4895 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4896 inttypes.h stdint.h unistd.h
4897 do :
4898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4899 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4901 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4902 cat >>confdefs.h <<_ACEOF
4903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4904 _ACEOF
4908 done
4911 # The cast to long int works around a bug in the HP C Compiler
4912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4914 # This bug is HP SR number 8606223364.
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4916 $as_echo_n "checking size of void *... " >&6; }
4917 if ${ac_cv_sizeof_void_p+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4922 else
4923 if test "$ac_cv_type_void_p" = yes; then
4924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error 77 "cannot compute sizeof (void *)
4927 See \`config.log' for more details" "$LINENO" 5; }
4928 else
4929 ac_cv_sizeof_void_p=0
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4935 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4939 cat >>confdefs.h <<_ACEOF
4940 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4941 _ACEOF
4944 # The cast to long int works around a bug in the HP C Compiler
4945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4947 # This bug is HP SR number 8606223364.
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4949 $as_echo_n "checking size of unsigned int... " >&6; }
4950 if ${ac_cv_sizeof_unsigned_int+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4955 else
4956 if test "$ac_cv_type_unsigned_int" = yes; then
4957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4959 as_fn_error 77 "cannot compute sizeof (unsigned int)
4960 See \`config.log' for more details" "$LINENO" 5; }
4961 else
4962 ac_cv_sizeof_unsigned_int=0
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4968 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4972 cat >>confdefs.h <<_ACEOF
4973 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4974 _ACEOF
4977 # The cast to long int works around a bug in the HP C Compiler
4978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4980 # This bug is HP SR number 8606223364.
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4982 $as_echo_n "checking size of unsigned long... " >&6; }
4983 if ${ac_cv_sizeof_unsigned_long+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4988 else
4989 if test "$ac_cv_type_unsigned_long" = yes; then
4990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4992 as_fn_error 77 "cannot compute sizeof (unsigned long)
4993 See \`config.log' for more details" "$LINENO" 5; }
4994 else
4995 ac_cv_sizeof_unsigned_long=0
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5001 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
5005 cat >>confdefs.h <<_ACEOF
5006 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5007 _ACEOF
5010 # The cast to long int works around a bug in the HP C Compiler
5011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5013 # This bug is HP SR number 8606223364.
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5015 $as_echo_n "checking size of unsigned long long... " >&6; }
5016 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
5021 else
5022 if test "$ac_cv_type_unsigned_long_long" = yes; then
5023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5025 as_fn_error 77 "cannot compute sizeof (unsigned long long)
5026 See \`config.log' for more details" "$LINENO" 5; }
5027 else
5028 ac_cv_sizeof_unsigned_long_long=0
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5034 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
5038 cat >>confdefs.h <<_ACEOF
5039 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
5040 _ACEOF
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5045 $as_echo_n "checking for X... " >&6; }
5048 # Check whether --with-x was given.
5049 if test "${with_x+set}" = set; then :
5050 withval=$with_x;
5053 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5054 if test "x$with_x" = xno; then
5055 # The user explicitly disabled X.
5056 have_x=disabled
5057 else
5058 case $x_includes,$x_libraries in #(
5059 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5060 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 # One or both of the vars are not set, and there is no cached value.
5064 ac_x_includes=no ac_x_libraries=no
5065 rm -f -r conftest.dir
5066 if mkdir conftest.dir; then
5067 cd conftest.dir
5068 cat >Imakefile <<'_ACEOF'
5069 incroot:
5070 @echo incroot='${INCROOT}'
5071 usrlibdir:
5072 @echo usrlibdir='${USRLIBDIR}'
5073 libdir:
5074 @echo libdir='${LIBDIR}'
5075 _ACEOF
5076 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5077 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5078 for ac_var in incroot usrlibdir libdir; do
5079 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5080 done
5081 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5082 for ac_extension in a so sl dylib la dll; do
5083 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5084 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5085 ac_im_usrlibdir=$ac_im_libdir; break
5087 done
5088 # Screen out bogus values from the imake configuration. They are
5089 # bogus both because they are the default anyway, and because
5090 # using them would break gcc on systems where it needs fixed includes.
5091 case $ac_im_incroot in
5092 /usr/include) ac_x_includes= ;;
5093 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5094 esac
5095 case $ac_im_usrlibdir in
5096 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5097 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5098 esac
5100 cd ..
5101 rm -f -r conftest.dir
5104 # Standard set of common directories for X headers.
5105 # Check X11 before X11Rn because it is often a symlink to the current release.
5106 ac_x_header_dirs='
5107 /usr/X11/include
5108 /usr/X11R7/include
5109 /usr/X11R6/include
5110 /usr/X11R5/include
5111 /usr/X11R4/include
5113 /usr/include/X11
5114 /usr/include/X11R7
5115 /usr/include/X11R6
5116 /usr/include/X11R5
5117 /usr/include/X11R4
5119 /usr/local/X11/include
5120 /usr/local/X11R7/include
5121 /usr/local/X11R6/include
5122 /usr/local/X11R5/include
5123 /usr/local/X11R4/include
5125 /usr/local/include/X11
5126 /usr/local/include/X11R7
5127 /usr/local/include/X11R6
5128 /usr/local/include/X11R5
5129 /usr/local/include/X11R4
5131 /usr/X386/include
5132 /usr/x386/include
5133 /usr/XFree86/include/X11
5135 /usr/include
5136 /usr/local/include
5137 /usr/unsupported/include
5138 /usr/athena/include
5139 /usr/local/x11r5/include
5140 /usr/lpp/Xamples/include
5142 /usr/openwin/include
5143 /usr/openwin/share/include'
5145 if test "$ac_x_includes" = no; then
5146 # Guess where to find include files, by looking for Xlib.h.
5147 # First, try using that file with no special directory specified.
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 #include <X11/Xlib.h>
5151 _ACEOF
5152 if ac_fn_c_try_cpp "$LINENO"; then :
5153 # We can compile using X headers with no special include directory.
5154 ac_x_includes=
5155 else
5156 for ac_dir in $ac_x_header_dirs; do
5157 if test -r "$ac_dir/X11/Xlib.h"; then
5158 ac_x_includes=$ac_dir
5159 break
5161 done
5163 rm -f conftest.err conftest.i conftest.$ac_ext
5164 fi # $ac_x_includes = no
5166 if test "$ac_x_libraries" = no; then
5167 # Check for the libraries.
5168 # See if we find them without any special options.
5169 # Don't add to $LIBS permanently.
5170 ac_save_LIBS=$LIBS
5171 LIBS="-lX11 $LIBS"
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #include <X11/Xlib.h>
5176 main ()
5178 XrmInitialize ()
5180 return 0;
5182 _ACEOF
5183 if ac_fn_c_try_link "$LINENO"; then :
5184 LIBS=$ac_save_LIBS
5185 # We can link X programs with no special library path.
5186 ac_x_libraries=
5187 else
5188 LIBS=$ac_save_LIBS
5189 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5191 # Don't even attempt the hair of trying to link an X program!
5192 for ac_extension in a so sl dylib la dll; do
5193 if test -r "$ac_dir/libX11.$ac_extension"; then
5194 ac_x_libraries=$ac_dir
5195 break 2
5197 done
5198 done
5200 rm -f core conftest.err conftest.$ac_objext \
5201 conftest$ac_exeext conftest.$ac_ext
5202 fi # $ac_x_libraries = no
5204 case $ac_x_includes,$ac_x_libraries in #(
5205 no,* | *,no | *\'*)
5206 # Didn't find X, or a directory has "'" in its name.
5207 ac_cv_have_x="have_x=no";; #(
5209 # Record where we found X for the cache.
5210 ac_cv_have_x="have_x=yes\
5211 ac_x_includes='$ac_x_includes'\
5212 ac_x_libraries='$ac_x_libraries'"
5213 esac
5215 ;; #(
5216 *) have_x=yes;;
5217 esac
5218 eval "$ac_cv_have_x"
5219 fi # $with_x != no
5221 if test "$have_x" != yes; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5223 $as_echo "$have_x" >&6; }
5224 no_x=yes
5225 else
5226 # If each of the values was on the command line, it overrides each guess.
5227 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5228 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5229 # Update the cache value to reflect the command line values.
5230 ac_cv_have_x="have_x=yes\
5231 ac_x_includes='$x_includes'\
5232 ac_x_libraries='$x_libraries'"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5234 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5237 if test "$no_x" = yes; then
5238 # Not all programs may use this symbol, but it does not hurt to define it.
5240 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5242 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5243 else
5244 if test -n "$x_includes"; then
5245 X_CFLAGS="$X_CFLAGS -I$x_includes"
5248 # It would also be nice to do this for all -L options, not just this one.
5249 if test -n "$x_libraries"; then
5250 X_LIBS="$X_LIBS -L$x_libraries"
5251 # For Solaris; some versions of Sun CC require a space after -R and
5252 # others require no space. Words are not sufficient . . . .
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5254 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5255 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5256 ac_xsave_c_werror_flag=$ac_c_werror_flag
5257 ac_c_werror_flag=yes
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5262 main ()
5266 return 0;
5268 _ACEOF
5269 if ac_fn_c_try_link "$LINENO"; then :
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 X_LIBS="$X_LIBS -R$x_libraries"
5273 else
5274 LIBS="$ac_xsave_LIBS -R $x_libraries"
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5279 main ()
5283 return 0;
5285 _ACEOF
5286 if ac_fn_c_try_link "$LINENO"; then :
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5288 $as_echo "yes" >&6; }
5289 X_LIBS="$X_LIBS -R $x_libraries"
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5292 $as_echo "neither works" >&6; }
5294 rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5297 rm -f core conftest.err conftest.$ac_objext \
5298 conftest$ac_exeext conftest.$ac_ext
5299 ac_c_werror_flag=$ac_xsave_c_werror_flag
5300 LIBS=$ac_xsave_LIBS
5303 # Check for system-dependent libraries X programs must link with.
5304 # Do this before checking for the system-independent R6 libraries
5305 # (-lICE), since we may need -lsocket or whatever for X linking.
5307 if test "$ISC" = yes; then
5308 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5309 else
5310 # Martyn Johnson says this is needed for Ultrix, if the X
5311 # libraries were built with DECnet support. And Karl Berry says
5312 # the Alpha needs dnet_stub (dnet does not exist).
5313 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5317 /* Override any GCC internal prototype to avoid an error.
5318 Use char because int might match the return type of a GCC
5319 builtin and then its argument prototype would still apply. */
5320 #ifdef __cplusplus
5321 extern "C"
5322 #endif
5323 char XOpenDisplay ();
5325 main ()
5327 return XOpenDisplay ();
5329 return 0;
5331 _ACEOF
5332 if ac_fn_c_try_link "$LINENO"; then :
5334 else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5336 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5337 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 ac_check_lib_save_LIBS=$LIBS
5341 LIBS="-ldnet $LIBS"
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5345 /* Override any GCC internal prototype to avoid an error.
5346 Use char because int might match the return type of a GCC
5347 builtin and then its argument prototype would still apply. */
5348 #ifdef __cplusplus
5349 extern "C"
5350 #endif
5351 char dnet_ntoa ();
5353 main ()
5355 return dnet_ntoa ();
5357 return 0;
5359 _ACEOF
5360 if ac_fn_c_try_link "$LINENO"; then :
5361 ac_cv_lib_dnet_dnet_ntoa=yes
5362 else
5363 ac_cv_lib_dnet_dnet_ntoa=no
5365 rm -f core conftest.err conftest.$ac_objext \
5366 conftest$ac_exeext conftest.$ac_ext
5367 LIBS=$ac_check_lib_save_LIBS
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5370 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5371 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5372 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5375 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5377 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5378 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 ac_check_lib_save_LIBS=$LIBS
5382 LIBS="-ldnet_stub $LIBS"
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5386 /* Override any GCC internal prototype to avoid an error.
5387 Use char because int might match the return type of a GCC
5388 builtin and then its argument prototype would still apply. */
5389 #ifdef __cplusplus
5390 extern "C"
5391 #endif
5392 char dnet_ntoa ();
5394 main ()
5396 return dnet_ntoa ();
5398 return 0;
5400 _ACEOF
5401 if ac_fn_c_try_link "$LINENO"; then :
5402 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5403 else
5404 ac_cv_lib_dnet_stub_dnet_ntoa=no
5406 rm -f core conftest.err conftest.$ac_objext \
5407 conftest$ac_exeext conftest.$ac_ext
5408 LIBS=$ac_check_lib_save_LIBS
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5411 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5412 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5418 rm -f core conftest.err conftest.$ac_objext \
5419 conftest$ac_exeext conftest.$ac_ext
5420 LIBS="$ac_xsave_LIBS"
5422 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5423 # to get the SysV transport functions.
5424 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5425 # needs -lnsl.
5426 # The nsl library prevents programs from opening the X display
5427 # on Irix 5.2, according to T.E. Dickey.
5428 # The functions gethostbyname, getservbyname, and inet_addr are
5429 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5430 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5431 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5435 if test $ac_cv_func_gethostbyname = no; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5437 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5438 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 ac_check_lib_save_LIBS=$LIBS
5442 LIBS="-lnsl $LIBS"
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5446 /* Override any GCC internal prototype to avoid an error.
5447 Use char because int might match the return type of a GCC
5448 builtin and then its argument prototype would still apply. */
5449 #ifdef __cplusplus
5450 extern "C"
5451 #endif
5452 char gethostbyname ();
5454 main ()
5456 return gethostbyname ();
5458 return 0;
5460 _ACEOF
5461 if ac_fn_c_try_link "$LINENO"; then :
5462 ac_cv_lib_nsl_gethostbyname=yes
5463 else
5464 ac_cv_lib_nsl_gethostbyname=no
5466 rm -f core conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5471 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5472 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5473 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5476 if test $ac_cv_lib_nsl_gethostbyname = no; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5478 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5479 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 ac_check_lib_save_LIBS=$LIBS
5483 LIBS="-lbsd $LIBS"
5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5487 /* Override any GCC internal prototype to avoid an error.
5488 Use char because int might match the return type of a GCC
5489 builtin and then its argument prototype would still apply. */
5490 #ifdef __cplusplus
5491 extern "C"
5492 #endif
5493 char gethostbyname ();
5495 main ()
5497 return gethostbyname ();
5499 return 0;
5501 _ACEOF
5502 if ac_fn_c_try_link "$LINENO"; then :
5503 ac_cv_lib_bsd_gethostbyname=yes
5504 else
5505 ac_cv_lib_bsd_gethostbyname=no
5507 rm -f core conftest.err conftest.$ac_objext \
5508 conftest$ac_exeext conftest.$ac_ext
5509 LIBS=$ac_check_lib_save_LIBS
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5512 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5513 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5514 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5520 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5521 # socket/setsockopt and other routines are undefined under SCO ODT
5522 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5523 # on later versions), says Simon Leinen: it contains gethostby*
5524 # variants that don't use the name server (or something). -lsocket
5525 # must be given before -lnsl if both are needed. We assume that
5526 # if connect needs -lnsl, so does gethostbyname.
5527 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5528 if test "x$ac_cv_func_connect" = xyes; then :
5532 if test $ac_cv_func_connect = no; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5534 $as_echo_n "checking for connect in -lsocket... " >&6; }
5535 if ${ac_cv_lib_socket_connect+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 ac_check_lib_save_LIBS=$LIBS
5539 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5543 /* Override any GCC internal prototype to avoid an error.
5544 Use char because int might match the return type of a GCC
5545 builtin and then its argument prototype would still apply. */
5546 #ifdef __cplusplus
5547 extern "C"
5548 #endif
5549 char connect ();
5551 main ()
5553 return connect ();
5555 return 0;
5557 _ACEOF
5558 if ac_fn_c_try_link "$LINENO"; then :
5559 ac_cv_lib_socket_connect=yes
5560 else
5561 ac_cv_lib_socket_connect=no
5563 rm -f core conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext conftest.$ac_ext
5565 LIBS=$ac_check_lib_save_LIBS
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5568 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5569 if test "x$ac_cv_lib_socket_connect" = xyes; then :
5570 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5575 # Guillermo Gomez says -lposix is necessary on A/UX.
5576 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5577 if test "x$ac_cv_func_remove" = xyes; then :
5581 if test $ac_cv_func_remove = no; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5583 $as_echo_n "checking for remove in -lposix... " >&6; }
5584 if ${ac_cv_lib_posix_remove+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 ac_check_lib_save_LIBS=$LIBS
5588 LIBS="-lposix $LIBS"
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5592 /* Override any GCC internal prototype to avoid an error.
5593 Use char because int might match the return type of a GCC
5594 builtin and then its argument prototype would still apply. */
5595 #ifdef __cplusplus
5596 extern "C"
5597 #endif
5598 char remove ();
5600 main ()
5602 return remove ();
5604 return 0;
5606 _ACEOF
5607 if ac_fn_c_try_link "$LINENO"; then :
5608 ac_cv_lib_posix_remove=yes
5609 else
5610 ac_cv_lib_posix_remove=no
5612 rm -f core conftest.err conftest.$ac_objext \
5613 conftest$ac_exeext conftest.$ac_ext
5614 LIBS=$ac_check_lib_save_LIBS
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5617 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5618 if test "x$ac_cv_lib_posix_remove" = xyes; then :
5619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5624 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5625 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5626 if test "x$ac_cv_func_shmat" = xyes; then :
5630 if test $ac_cv_func_shmat = no; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5632 $as_echo_n "checking for shmat in -lipc... " >&6; }
5633 if ${ac_cv_lib_ipc_shmat+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 ac_check_lib_save_LIBS=$LIBS
5637 LIBS="-lipc $LIBS"
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5641 /* Override any GCC internal prototype to avoid an error.
5642 Use char because int might match the return type of a GCC
5643 builtin and then its argument prototype would still apply. */
5644 #ifdef __cplusplus
5645 extern "C"
5646 #endif
5647 char shmat ();
5649 main ()
5651 return shmat ();
5653 return 0;
5655 _ACEOF
5656 if ac_fn_c_try_link "$LINENO"; then :
5657 ac_cv_lib_ipc_shmat=yes
5658 else
5659 ac_cv_lib_ipc_shmat=no
5661 rm -f core conftest.err conftest.$ac_objext \
5662 conftest$ac_exeext conftest.$ac_ext
5663 LIBS=$ac_check_lib_save_LIBS
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5666 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5667 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5668 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5674 # Check for libraries that X11R6 Xt/Xaw programs need.
5675 ac_save_LDFLAGS=$LDFLAGS
5676 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5677 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5678 # check for ICE first), but we must link in the order -lSM -lICE or
5679 # we get undefined symbols. So assume we have SM if we have ICE.
5680 # These have to be linked with before -lX11, unlike the other
5681 # libraries we check for below, so use a different variable.
5682 # John Interrante, Karl Berry
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5684 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5685 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 ac_check_lib_save_LIBS=$LIBS
5689 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5693 /* Override any GCC internal prototype to avoid an error.
5694 Use char because int might match the return type of a GCC
5695 builtin and then its argument prototype would still apply. */
5696 #ifdef __cplusplus
5697 extern "C"
5698 #endif
5699 char IceConnectionNumber ();
5701 main ()
5703 return IceConnectionNumber ();
5705 return 0;
5707 _ACEOF
5708 if ac_fn_c_try_link "$LINENO"; then :
5709 ac_cv_lib_ICE_IceConnectionNumber=yes
5710 else
5711 ac_cv_lib_ICE_IceConnectionNumber=no
5713 rm -f core conftest.err conftest.$ac_objext \
5714 conftest$ac_exeext conftest.$ac_ext
5715 LIBS=$ac_check_lib_save_LIBS
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5718 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5719 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5720 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5723 LDFLAGS=$ac_save_LDFLAGS
5727 CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
5728 LDFLAGS="${LDFLAGS} ${X_LIBS}"
5729 LIBS="${X_PRE_LIBS} ${LIBS} -lX11"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtToolkitInitialize in -lXt" >&5
5731 $as_echo_n "checking for XtToolkitInitialize in -lXt... " >&6; }
5732 if ${ac_cv_lib_Xt_XtToolkitInitialize+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 ac_check_lib_save_LIBS=$LIBS
5736 LIBS="-lXt $LIBS"
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5740 /* Override any GCC internal prototype to avoid an error.
5741 Use char because int might match the return type of a GCC
5742 builtin and then its argument prototype would still apply. */
5743 #ifdef __cplusplus
5744 extern "C"
5745 #endif
5746 char XtToolkitInitialize ();
5748 main ()
5750 return XtToolkitInitialize ();
5752 return 0;
5754 _ACEOF
5755 if ac_fn_c_try_link "$LINENO"; then :
5756 ac_cv_lib_Xt_XtToolkitInitialize=yes
5757 else
5758 ac_cv_lib_Xt_XtToolkitInitialize=no
5760 rm -f core conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
5762 LIBS=$ac_check_lib_save_LIBS
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtToolkitInitialize" >&5
5765 $as_echo "$ac_cv_lib_Xt_XtToolkitInitialize" >&6; }
5766 if test "x$ac_cv_lib_Xt_XtToolkitInitialize" = xyes; then :
5767 cat >>confdefs.h <<_ACEOF
5768 #define HAVE_LIBXT 1
5769 _ACEOF
5771 LIBS="-lXt $LIBS"
5773 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtDisplayInitialize in -lXt" >&5
5776 $as_echo_n "checking for XtDisplayInitialize in -lXt... " >&6; }
5777 if ${ac_cv_lib_Xt_XtDisplayInitialize+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lXt -lSM -lICE -lXpm -lX11 $LIBS"
5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5785 /* Override any GCC internal prototype to avoid an error.
5786 Use char because int might match the return type of a GCC
5787 builtin and then its argument prototype would still apply. */
5788 #ifdef __cplusplus
5789 extern "C"
5790 #endif
5791 char XtDisplayInitialize ();
5793 main ()
5795 return XtDisplayInitialize ();
5797 return 0;
5799 _ACEOF
5800 if ac_fn_c_try_link "$LINENO"; then :
5801 ac_cv_lib_Xt_XtDisplayInitialize=yes
5802 else
5803 ac_cv_lib_Xt_XtDisplayInitialize=no
5805 rm -f core conftest.err conftest.$ac_objext \
5806 conftest$ac_exeext conftest.$ac_ext
5807 LIBS=$ac_check_lib_save_LIBS
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtDisplayInitialize" >&5
5810 $as_echo "$ac_cv_lib_Xt_XtDisplayInitialize" >&6; }
5811 if test "x$ac_cv_lib_Xt_XtDisplayInitialize" = xyes; then :
5812 cat >>confdefs.h <<_ACEOF
5813 #define HAVE_LIBXT 1
5814 _ACEOF
5816 LIBS="-lXt $LIBS"
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5824 $as_echo_n "checking for ANSI C header files... " >&6; }
5825 if ${ac_cv_header_stdc+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <stdlib.h>
5831 #include <stdarg.h>
5832 #include <string.h>
5833 #include <float.h>
5836 main ()
5840 return 0;
5842 _ACEOF
5843 if ac_fn_c_try_compile "$LINENO"; then :
5844 ac_cv_header_stdc=yes
5845 else
5846 ac_cv_header_stdc=no
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 if test $ac_cv_header_stdc = yes; then
5851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5854 #include <string.h>
5856 _ACEOF
5857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5858 $EGREP "memchr" >/dev/null 2>&1; then :
5860 else
5861 ac_cv_header_stdc=no
5863 rm -f conftest*
5867 if test $ac_cv_header_stdc = yes; then
5868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 #include <stdlib.h>
5873 _ACEOF
5874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875 $EGREP "free" >/dev/null 2>&1; then :
5877 else
5878 ac_cv_header_stdc=no
5880 rm -f conftest*
5884 if test $ac_cv_header_stdc = yes; then
5885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5886 if test "$cross_compiling" = yes; then :
5888 else
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5891 #include <ctype.h>
5892 #include <stdlib.h>
5893 #if ((' ' & 0x0FF) == 0x020)
5894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5896 #else
5897 # define ISLOWER(c) \
5898 (('a' <= (c) && (c) <= 'i') \
5899 || ('j' <= (c) && (c) <= 'r') \
5900 || ('s' <= (c) && (c) <= 'z'))
5901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5902 #endif
5904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5906 main ()
5908 int i;
5909 for (i = 0; i < 256; i++)
5910 if (XOR (islower (i), ISLOWER (i))
5911 || toupper (i) != TOUPPER (i))
5912 return 2;
5913 return 0;
5915 _ACEOF
5916 if ac_fn_c_try_run "$LINENO"; then :
5918 else
5919 ac_cv_header_stdc=no
5921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5922 conftest.$ac_objext conftest.beam conftest.$ac_ext
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5928 $as_echo "$ac_cv_header_stdc" >&6; }
5929 if test $ac_cv_header_stdc = yes; then
5931 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5936 for ac_func in setenv putenv
5937 do :
5938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5940 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5941 cat >>confdefs.h <<_ACEOF
5942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5943 _ACEOF
5946 done
5949 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
5950 if test "x$ac_cv_func_vfork" = xyes; then :
5955 for ac_header in dirent.h
5956 do :
5957 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5958 if test "x$ac_cv_header_dirent_h" = xyes; then :
5959 cat >>confdefs.h <<_ACEOF
5960 #define HAVE_DIRENT_H 1
5961 _ACEOF
5965 done
5968 case $target in
5969 x86_64-*)
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11 libraries" >&5
5971 $as_echo_n "checking for 64-bit X11 libraries... " >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/X11R6/lib64" >&5
5973 $as_echo_n "checking for /usr/X11R6/lib64... " >&6; }
5974 if ${ac_cv_file__usr_X11R6_lib64+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 test "$cross_compiling" = yes &&
5978 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5979 if test -r "/usr/X11R6/lib64"; then
5980 ac_cv_file__usr_X11R6_lib64=yes
5981 else
5982 ac_cv_file__usr_X11R6_lib64=no
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_X11R6_lib64" >&5
5986 $as_echo "$ac_cv_file__usr_X11R6_lib64" >&6; }
5987 if test "x$ac_cv_file__usr_X11R6_lib64" = xyes; then :
5989 LDFLAGS="-L/usr/X11R6/lib64 ${LDFLAGS}"
5994 esac
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-pointer-sign accepted in CFLAGS" >&5
5997 $as_echo_n "checking if -Wno-pointer-sign accepted in CFLAGS... " >&6; }
5998 ac_save_CFLAGS="$CFLAGS"
5999 CFLAGS="$CFLAGS -Wno-pointer-sign"
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6004 main ()
6007 int foo;
6008 foo = 0
6010 return 0;
6012 _ACEOF
6013 if ac_fn_c_try_compile "$LINENO"; then :
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6016 $as_echo "yes" >&6; }
6017 else
6019 CFLAGS="$ac_save_CFLAGS"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
6026 $as_echo_n "checking for deflate in -lz... " >&6; }
6027 if ${ac_cv_lib_z_deflate+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 ac_check_lib_save_LIBS=$LIBS
6031 LIBS="-lz -lz $LIBS"
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6035 /* Override any GCC internal prototype to avoid an error.
6036 Use char because int might match the return type of a GCC
6037 builtin and then its argument prototype would still apply. */
6038 #ifdef __cplusplus
6039 extern "C"
6040 #endif
6041 char deflate ();
6043 main ()
6045 return deflate ();
6047 return 0;
6049 _ACEOF
6050 if ac_fn_c_try_link "$LINENO"; then :
6051 ac_cv_lib_z_deflate=yes
6052 else
6053 ac_cv_lib_z_deflate=no
6055 rm -f core conftest.err conftest.$ac_objext \
6056 conftest$ac_exeext conftest.$ac_ext
6057 LIBS=$ac_check_lib_save_LIBS
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
6060 $as_echo "$ac_cv_lib_z_deflate" >&6; }
6061 if test "x$ac_cv_lib_z_deflate" = xyes; then :
6062 cat >>confdefs.h <<_ACEOF
6063 #define HAVE_LIBZ 1
6064 _ACEOF
6066 LIBS="-lz $LIBS"
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6072 $as_echo_n "checking for va_copy... " >&6; }
6073 if ${ac_cv_c_va_copy+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 #include <stdarg.h>
6080 main ()
6082 va_list ap1, ap2;
6083 va_copy(ap1,ap2);
6086 return 0;
6088 _ACEOF
6089 if ac_fn_c_try_link "$LINENO"; then :
6090 ac_cv_c_va_copy="yes"
6091 else
6092 ac_cv_c_va_copy="no"
6094 rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
6099 $as_echo "$ac_cv_c_va_copy" >&6; }
6100 if test "$ac_cv_c_va_copy" = "yes"
6101 then
6103 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6107 $as_echo_n "checking for __va_copy... " >&6; }
6108 if ${ac_cv_c___va_copy+:} false; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <stdarg.h>
6115 main ()
6117 va_list ap1, ap2;
6118 __va_copy(ap1,ap2);
6121 return 0;
6123 _ACEOF
6124 if ac_fn_c_try_link "$LINENO"; then :
6125 ac_cv_c___va_copy="yes"
6126 else
6127 ac_cv_c___va_copy="no"
6129 rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
6134 $as_echo "$ac_cv_c___va_copy" >&6; }
6135 if test "$ac_cv_c___va_copy" = "yes"
6136 then
6138 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if u_char defined" >&5
6143 $as_echo_n "checking if u_char defined... " >&6; }
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 #include <sys/types.h>
6148 main ()
6151 u_char foo;
6152 foo = 0
6154 return 0;
6156 _ACEOF
6157 if ac_fn_c_try_compile "$LINENO"; then :
6159 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6162 $as_echo "yes" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 # Check whether --enable-optimize was given.
6170 if test "${enable_optimize+set}" = set; then :
6171 enableval=$enable_optimize;
6172 else
6174 CFLAGS=`echo $CFLAGS | sed -e "s/ -O2//"`
6180 # Check whether --with-xpm was given.
6181 if test "${with_xpm+set}" = set; then :
6182 withval=$with_xpm;
6183 if test "$withval" != "no" -a "$withval" != "yes"; then
6184 CPPFLAGS="${CPPFLAGS} -I$withval/include"
6185 LDFLAGS="${LDFLAGS} -L$withval/lib"
6191 for ac_header in X11/xpm.h
6192 do :
6193 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
6194 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
6195 cat >>confdefs.h <<_ACEOF
6196 #define HAVE_X11_XPM_H 1
6197 _ACEOF
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreateImageFromData in -lXpm" >&5
6199 $as_echo_n "checking for XpmCreateImageFromData in -lXpm... " >&6; }
6200 if ${ac_cv_lib_Xpm_XpmCreateImageFromData+:} false; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 ac_check_lib_save_LIBS=$LIBS
6204 LIBS="-lXpm -lX11 $LIBS"
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6208 /* Override any GCC internal prototype to avoid an error.
6209 Use char because int might match the return type of a GCC
6210 builtin and then its argument prototype would still apply. */
6211 #ifdef __cplusplus
6212 extern "C"
6213 #endif
6214 char XpmCreateImageFromData ();
6216 main ()
6218 return XpmCreateImageFromData ();
6220 return 0;
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 ac_cv_lib_Xpm_XpmCreateImageFromData=yes
6225 else
6226 ac_cv_lib_Xpm_XpmCreateImageFromData=no
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreateImageFromData" >&5
6233 $as_echo "$ac_cv_lib_Xpm_XpmCreateImageFromData" >&6; }
6234 if test "x$ac_cv_lib_Xpm_XpmCreateImageFromData" = xyes; then :
6236 LIBS="${LIBS} -lXpm"
6237 $as_echo "#define HAVE_XPM 1" >>confdefs.h
6239 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xpm library not found" >&5
6242 $as_echo "$as_me: WARNING: Xpm library not found" >&2;}
6245 else
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xpm header not found" >&5
6247 $as_echo "$as_me: WARNING: Xpm header not found" >&2;}
6250 done
6255 #------------------------------------------------------------
6256 # AC_PROG_LD - find the path to the GNU or non-GNU linker
6257 # (This stuff ripped from libtool)
6258 #------------------------------------------------------------
6264 # Check whether --with-gnu-ld was given.
6265 if test "${with_gnu_ld+set}" = set; then :
6266 withval=$with_gnu_ld; test "$withval" = no || xc_with_gnu_ld=yes
6267 else
6268 xc_with_gnu_ld=no
6271 ac_prog=ld
6272 if test "$GCC" = yes; then
6273 # Check if gcc -print-prog-name=ld gives a path.
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6275 $as_echo_n "checking for ld used by GCC... " >&6; }
6276 case $host in
6277 *-*-mingw*)
6278 # gcc leaves a trailing carriage return which upsets mingw
6279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6282 esac
6283 case "$ac_prog" in
6284 # Accept absolute paths.
6285 [\\/]* | [A-Za-z]:[\\/]*)
6286 re_direlt='/[^/][^/]*/\.\./'
6287 # Canonicalize the path of ld
6288 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6289 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6290 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6291 done
6292 test -z "$LD" && LD="$ac_prog"
6295 # If it fails, then pretend we aren't using GCC.
6296 ac_prog=ld
6299 # If it is relative, then search for the first ld in PATH.
6300 xc_with_gnu_ld=unknown
6302 esac
6303 elif test "$xc_with_gnu_ld" = yes; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6305 $as_echo_n "checking for GNU ld... " >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6308 $as_echo_n "checking for non-GNU ld... " >&6; }
6310 if ${ac_cv_path_LD+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 if test -z "$LD"; then
6314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6315 for ac_dir in $PATH; do
6316 test -z "$ac_dir" && ac_dir=.
6317 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6318 ac_cv_path_LD="$ac_dir/$ac_prog"
6319 # Check to see if the program is GNU ld. I'd rather use --version,
6320 # but apparently some GNU ld's only accept -v.
6321 # Break only if it was the GNU/non-GNU ld that we prefer.
6322 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6323 test "$xc_with_gnu_ld" != no && break
6324 else
6325 test "$xc_with_gnu_ld" != yes && break
6328 done
6329 IFS="$ac_save_ifs"
6330 else
6331 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6335 LD="$ac_cv_path_LD"
6336 if test -n "$LD"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6338 $as_echo "$LD" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6343 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6346 if ${ac_cv_prog_gnu_ld+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6350 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6351 ac_cv_prog_gnu_ld=yes
6352 else
6353 ac_cv_prog_gnu_ld=no
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6357 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6358 xc_with_gnu_ld=$ac_cv_prog_gnu_ld
6363 xc_with_tcl="yes"
6364 xc_with_tk="yes"
6365 xc_with_tcl_includes=""
6366 xc_with_tk_includes=""
6367 xc_with_tcl_libraries=""
6368 xc_with_tk_libraries=""
6369 xc_with_cairo="yes"
6373 # Check whether --with-cairo was given.
6374 if test "${with_cairo+set}" = set; then :
6375 withval=$with_cairo;
6376 xc_with_cairo=$withval
6377 if test "$withval" == "no" -o "$withval" == "NO"; then
6378 xc_with_cairo=""
6384 if test "x$xc_with_cairo" != "x" ; then
6385 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
6394 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6397 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 case $PKG_CONFIG in
6404 [\\/]* | ?:[\\/]*)
6405 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6419 done
6420 done
6421 IFS=$as_save_IFS
6424 esac
6426 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6427 if test -n "$PKG_CONFIG"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6429 $as_echo "$PKG_CONFIG" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_path_PKG_CONFIG"; then
6438 ac_pt_PKG_CONFIG=$PKG_CONFIG
6439 # Extract the first word of "pkg-config", so it can be a program name with args.
6440 set dummy pkg-config; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 case $ac_pt_PKG_CONFIG in
6447 [\\/]* | ?:[\\/]*)
6448 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6462 done
6463 done
6464 IFS=$as_save_IFS
6467 esac
6469 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6470 if test -n "$ac_pt_PKG_CONFIG"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6472 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6478 if test "x$ac_pt_PKG_CONFIG" = x; then
6479 PKG_CONFIG=""
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6486 esac
6487 PKG_CONFIG=$ac_pt_PKG_CONFIG
6489 else
6490 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6494 if test -n "$PKG_CONFIG"; then
6495 _pkg_min_version=0.9.0
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6497 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6498 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6500 $as_echo "yes" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 PKG_CONFIG=""
6508 pkg_failed=no
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
6510 $as_echo_n "checking for cairo... " >&6; }
6512 if test -n "$cairo_CFLAGS"; then
6513 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
6514 elif test -n "$PKG_CONFIG"; then
6515 if test -n "$PKG_CONFIG" && \
6516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6517 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
6522 test "x$?" != "x0" && pkg_failed=yes
6523 else
6524 pkg_failed=yes
6526 else
6527 pkg_failed=untried
6529 if test -n "$cairo_LIBS"; then
6530 pkg_cv_cairo_LIBS="$cairo_LIBS"
6531 elif test -n "$PKG_CONFIG"; then
6532 if test -n "$PKG_CONFIG" && \
6533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6534 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6535 ac_status=$?
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; }; then
6538 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
6539 test "x$?" != "x0" && pkg_failed=yes
6540 else
6541 pkg_failed=yes
6543 else
6544 pkg_failed=untried
6549 if test $pkg_failed = yes; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6554 _pkg_short_errors_supported=yes
6555 else
6556 _pkg_short_errors_supported=no
6558 if test $_pkg_short_errors_supported = yes; then
6559 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
6560 else
6561 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
6563 # Put the nasty error message in config.log where it belongs
6564 echo "$cairo_PKG_ERRORS" >&5
6566 as_fn_error $? "Package requirements (cairo) were not met:
6568 $cairo_PKG_ERRORS
6570 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6571 installed software in a non-standard prefix.
6573 Alternatively, you may set the environment variables cairo_CFLAGS
6574 and cairo_LIBS to avoid the need to call pkg-config.
6575 See the pkg-config man page for more details." "$LINENO" 5
6576 elif test $pkg_failed = untried; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6581 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6582 is in your PATH or set the PKG_CONFIG environment variable to the full
6583 path to pkg-config.
6585 Alternatively, you may set the environment variables cairo_CFLAGS
6586 and cairo_LIBS to avoid the need to call pkg-config.
6587 See the pkg-config man page for more details.
6589 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6590 See \`config.log' for more details" "$LINENO" 5; }
6591 else
6592 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
6593 cairo_LIBS=$pkg_cv_cairo_LIBS
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6595 $as_echo "yes" >&6; }
6599 pkg_failed=no
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig" >&5
6601 $as_echo_n "checking for fontconfig... " >&6; }
6603 if test -n "$fontconfig_CFLAGS"; then
6604 pkg_cv_fontconfig_CFLAGS="$fontconfig_CFLAGS"
6605 elif test -n "$PKG_CONFIG"; then
6606 if test -n "$PKG_CONFIG" && \
6607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6608 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; then
6612 pkg_cv_fontconfig_CFLAGS=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
6613 test "x$?" != "x0" && pkg_failed=yes
6614 else
6615 pkg_failed=yes
6617 else
6618 pkg_failed=untried
6620 if test -n "$fontconfig_LIBS"; then
6621 pkg_cv_fontconfig_LIBS="$fontconfig_LIBS"
6622 elif test -n "$PKG_CONFIG"; then
6623 if test -n "$PKG_CONFIG" && \
6624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6625 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 pkg_cv_fontconfig_LIBS=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
6630 test "x$?" != "x0" && pkg_failed=yes
6631 else
6632 pkg_failed=yes
6634 else
6635 pkg_failed=untried
6640 if test $pkg_failed = yes; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6644 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6645 _pkg_short_errors_supported=yes
6646 else
6647 _pkg_short_errors_supported=no
6649 if test $_pkg_short_errors_supported = yes; then
6650 fontconfig_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
6651 else
6652 fontconfig_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
6654 # Put the nasty error message in config.log where it belongs
6655 echo "$fontconfig_PKG_ERRORS" >&5
6657 as_fn_error $? "Package requirements (fontconfig) were not met:
6659 $fontconfig_PKG_ERRORS
6661 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6662 installed software in a non-standard prefix.
6664 Alternatively, you may set the environment variables fontconfig_CFLAGS
6665 and fontconfig_LIBS to avoid the need to call pkg-config.
6666 See the pkg-config man page for more details." "$LINENO" 5
6667 elif test $pkg_failed = untried; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6672 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6673 is in your PATH or set the PKG_CONFIG environment variable to the full
6674 path to pkg-config.
6676 Alternatively, you may set the environment variables fontconfig_CFLAGS
6677 and fontconfig_LIBS to avoid the need to call pkg-config.
6678 See the pkg-config man page for more details.
6680 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6681 See \`config.log' for more details" "$LINENO" 5; }
6682 else
6683 fontconfig_CFLAGS=$pkg_cv_fontconfig_CFLAGS
6684 fontconfig_LIBS=$pkg_cv_fontconfig_LIBS
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6686 $as_echo "yes" >&6; }
6689 for ac_header in ghostscript/gdevdsp.h
6690 do :
6691 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/gdevdsp.h" "ac_cv_header_ghostscript_gdevdsp_h" "$ac_includes_default"
6692 if test "x$ac_cv_header_ghostscript_gdevdsp_h" = xyes; then :
6693 cat >>confdefs.h <<_ACEOF
6694 #define HAVE_GHOSTSCRIPT_GDEVDSP_H 1
6695 _ACEOF
6697 GS_LIBS=-lgs
6698 $as_echo "#define HAVE_GS 1" >>confdefs.h
6701 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building xcircuit without ghostscript rendering" >&5
6704 $as_echo "$as_me: WARNING: Building xcircuit without ghostscript rendering" >&2;}
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Install the ghostscript-devel package to solve this" >&5
6706 $as_echo "$as_me: WARNING: Install the ghostscript-devel package to solve this" >&2;}
6711 done
6715 # For distributed installs, where the run-time files are installed in a
6716 # place that is a temporary staging area, like DESTDIR, but unlike DESTDIR,
6717 # the prefix is replaced by the destination directory, rather than appended
6718 # to it.
6719 DIST_DIR="\${exec_prefix}"
6721 # Check whether --with-distdir was given.
6722 if test "${with_distdir+set}" = set; then :
6723 withval=$with_distdir;
6724 if test "$withval" = "no" -o "$withval" = "NO" ; then
6725 DIST_DIR="\${exec_prefix}"
6726 else
6727 DIST_DIR=${withval}
6735 # Check whether --with-tcl was given.
6736 if test "${with_tcl+set}" = set; then :
6737 withval=$with_tcl;
6738 xc_with_tcl=$withval
6739 if test "$withval" == "no" -o "$withval" == "NO"; then
6740 xc_with_tcl=""
6748 # Check whether --with-tk was given.
6749 if test "${with_tk+set}" = set; then :
6750 withval=$with_tk; xc_with_tk=$withval
6754 # Check whether --with-tclincls was given.
6755 if test "${with_tclincls+set}" = set; then :
6756 withval=$with_tclincls; xc_with_tcl_includes=$withval
6760 # Check whether --with-tkincls was given.
6761 if test "${with_tkincls+set}" = set; then :
6762 withval=$with_tkincls; xc_with_tk_includes=$withval
6766 # Check whether --with-tcllibs was given.
6767 if test "${with_tcllibs+set}" = set; then :
6768 withval=$with_tcllibs; xc_with_tcl_libraries=$withval
6772 # Check whether --with-tklibs was given.
6773 if test "${with_tklibs+set}" = set; then :
6774 withval=$with_tklibs; xc_with_tk_libraries=$withval
6778 # -----------------------------------------------------------------------
6780 # Find the Tcl build configuration file "tclConfig.sh"
6782 # -----------------------------------------------------------------------
6784 if test "x$xc_with_tcl" != "x" ; then
6786 TCL_INC_DIR="."
6787 TK_INC_DIR="."
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
6790 $as_echo_n "checking for tclConfig.sh... " >&6; }
6791 tcl_config_sh=""
6793 if test "$xc_with_tcl" = "no" ; then
6794 xc_with_tcl=""
6795 elif test "$xc_with_tcl" != "yes" ; then
6797 # Verify that a tclConfig.sh file exists in the directory specified
6798 # by --with-tcl.
6800 for dir in \
6801 $xc_with_tcl
6803 if test -r "$dir/tclConfig.sh" ; then
6804 tcl_config_sh="$dir/tclConfig.sh"
6805 break
6806 elif test -r "$dir/lib/tclConfig.sh" ; then
6807 tcl_config_sh="$dir/lib/tclConfig.sh"
6808 break
6810 done
6811 else
6813 # Otherwise, search for Tcl configuration file.
6816 # 1. Search previously named locations.
6818 for dir in \
6819 $prefix \
6820 $exec_prefix
6822 if test -r "$dir/tclConfig.sh" ; then
6823 tcl_config_sh="$dir/tclConfig.sh"
6824 break
6825 elif test -r "$dir/lib/tclConfig.sh" ; then
6826 tcl_config_sh="$dir/lib/tclConfig.sh"
6827 break
6829 done
6831 # 2. Search standard locations.
6833 if test "x$tcl_config_sh" = "x" ; then
6834 for dir in \
6835 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6836 /usr/local/tcl \
6837 /usr/local/lib \
6838 /usr/local \
6839 `ls -dr /usr/share/tcltk/tcl[7-9].[0-9]* 2>/dev/null` \
6840 /sw/lib \
6841 /usr/lib \
6842 /usr/lib64 \
6843 /usr
6845 if test -r "$dir/tclConfig.sh" ; then
6846 tcl_config_sh="$dir/tclConfig.sh"
6847 break
6848 elif test -r "$dir/lib/tclConfig.sh" ; then
6849 tcl_config_sh="$dir/lib/tclConfig.sh"
6850 break
6852 done
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
6857 $as_echo "${tcl_config_sh}" >&6; }
6859 if test "x$tcl_config_sh" = "x" ; then
6860 echo "can't find Tcl configuration script \"tclConfig.sh\""
6861 echo "Reverting to non-Tcl compilation"
6862 xc_with_tcl=""
6866 # -----------------------------------------------------------------------
6868 # Find the Tk build configuration file "tkConfig.sh"
6870 # -----------------------------------------------------------------------
6872 if test "x$xc_with_tcl" != "x" ; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
6874 $as_echo_n "checking for tkConfig.sh... " >&6; }
6875 tk_config_sh=""
6876 if test "$xc_with_tk" != "yes"; then
6878 # Verify that a tkConfig.sh file exists in the directory specified
6879 # by --with-tcl or --with-tk.
6881 for dir in \
6882 $xc_with_tk \
6883 $xc_with_tcl
6885 if test -r "$dir/tkConfig.sh" ; then
6886 tk_config_sh="$dir/tkConfig.sh"
6887 break
6888 elif test -r "$dir/lib/tkConfig.sh" ; then
6889 tk_config_sh="$dir/lib/tkConfig.sh"
6890 break
6892 done
6893 else
6895 # Search for Tk configuration file.
6899 # 1. Search previously named locations.
6901 for dir in \
6902 $prefix \
6903 $exec_prefix
6905 if test -r "$dir/tkConfig.sh" ; then
6906 tk_config_sh="$dir/tkConfig.sh"
6907 break
6908 elif test -r "$dir/lib/tkConfig.sh" ; then
6909 tk_config_sh="$dir/lib/tkConfig.sh"
6910 break
6912 done
6914 # 2. Search standard locations.
6916 if test "x$tk_config_sh" = "x" ; then
6917 for dir in \
6918 /usr/local \
6919 /usr \
6920 `ls -dr /usr/local/lib/tk[7-9].[0-9]* 2>/dev/null` \
6921 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \
6922 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \
6923 `ls -dr /usr/local/tk[7-9].[0-9]* 2>/dev/null` \
6924 /usr/local/tk \
6925 `ls -dr /usr/local/lib/tcl[7-9].[0-9]* 2>/dev/null` \
6926 `ls -dr /usr/lib/tcl/tk[7-9].[0-9]* 2>/dev/null` \
6927 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6928 `ls -dr /usr/share/tcltk/tk[7-9].[0-9]* 2>/dev/null` \
6929 /sw/lib \
6930 /usr/lib \
6931 /usr/lib64 \
6932 ${x_libraries}
6934 if test -r "$dir/tkConfig.sh" ; then
6935 tk_config_sh="$dir/tkConfig.sh"
6936 break
6937 elif test -r "$dir/lib/tkConfig.sh" ; then
6938 tk_config_sh="$dir/lib/tkConfig.sh"
6939 break
6941 done
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5
6945 $as_echo "${tk_config_sh}" >&6; }
6947 if test "x$tk_config_sh" = "x" ; then
6948 echo "can't find Tk configuration script \"tkConfig.sh\""
6949 echo "Reverting to non-Tcl compilation"
6950 xc_with_tcl=""
6954 # -----------------------------------------------------------------------
6956 # Source in the Tcl/Tk configuration scripts.
6958 # This didn't work so well in the pre-8.5 days, but
6959 # seems to be okay now.
6961 # -----------------------------------------------------------------------
6963 if test "x$xc_with_tcl" != "x" ; then
6964 . $tcl_config_sh
6965 . $tk_config_sh
6967 # Should probably trust the config file contents, but this configure
6968 # file checks the Tcl and Tk include and lib directories. Since
6969 # the config file doesn't separate out the libraries from the strings
6970 # passed to the compiler/linker, do it manually here.
6972 # Extract TCL_LIB_DIR from TCL_LIB_SPEC
6973 # Extract TK_LIB_DIR from TK_LIB_SPEC
6974 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC
6975 # Extract TK_INC_DIR from TK_INCLUDE_SPEC
6977 # These will be the defaults unless overridden by configure command line
6979 tmpstr=${TCL_LIB_SPEC#*-L}
6980 TCL_LIB_DIR=${tmpstr% -l*}
6981 tmpstr=${TK_LIB_SPEC#*-L}
6982 TK_LIB_DIR=${tmpstr% -l*}
6983 TCL_INC_DIR=${TCL_INCLUDE_SPEC#*-I}
6984 TK_INC_DIR=${TK_INCLUDE_SPEC#*-I}
6986 LIBS="${TCL_LIBS} ${LIBS}"
6988 if test "$TCL_VERSION" = "$TK_VERSION" ; then
6990 else
6991 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)"
6992 echo "Reverting to non-Tcl compilation"
6993 xc_with_tcl=""
6997 # -----------------------------------------------------------------------
6998 # Rely on TCL_INCLUDE_SPEC from tclConfig.sh unless "--with-tclincls"
6999 # overrides. With TCL_INCLUDE_SPEC, pull out TCL_INC_DIR
7000 # -----------------------------------------------------------------------
7002 if test "x$xc_with_tcl" != "x" ; then
7003 if test "x${xc_with_tcl_includes}" != "x" ; then
7004 if test -r "${xc_with_tcl_includes}/tcl.h" ; then
7005 TCL_INC_DIR=${xc_with_tcl_includes}
7006 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
7007 echo "Can't find tcl.h in \"${xc_with_tcl_includes}\""
7008 echo "Reverting to non-Tcl compilation"
7009 xc_with_tcl=""
7011 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
7012 for dir in \
7013 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7014 ${TCL_PREFIX}/include \
7015 ${TCL_SRC_DIR}/generic \
7016 ${TCL_INC_DIR}
7018 if test -r "$dir/tcl.h" ; then
7019 TCL_INC_DIR=$dir
7020 TCL_INCLUDE_SPEC="-I${TCL_INC_DIR}"
7021 break
7023 done
7024 if test "x${TCL_INC_DIR}" = "x" ; then
7025 echo "Can't find tcl.h header file"
7026 echo "Reverting to non-Tcl compilation"
7027 xc_with_tcl=""
7029 else
7030 TCL_INC_DIR=`echo ${TCL_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7034 # -----------------------------------------------------------------------
7035 # Rely on TK_INCLUDE_SPEC from tkConfig.sh unless "--with-tkincls"
7036 # overrides. With TK_INCLUDE_SPEC, pull out TK_INC_DIR
7037 # -----------------------------------------------------------------------
7039 if test "x$xc_with_tcl" != "x" ; then
7040 if test "x${xc_with_tk_includes}" != "x" ; then
7041 if test -r "${xc_with_tk_includes}/tk.h" ; then
7042 TK_INC_DIR=${xc_with_tk_includes}
7043 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7044 echo "Can't find tk.h in \"${xc_with_tk_includes}\""
7045 echo "Reverting to non-Tcl compilation"
7046 xc_with_tcl=""
7048 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7049 for dir in \
7050 ${TK_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7051 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
7052 ${TK_PREFIX}/include \
7053 ${TK_SRC_DIR}/generic \
7054 ${TK_INC_DIR}
7056 if test -r "$dir/tk.h" ; then
7057 TK_INC_DIR=$dir
7058 TK_INCLUDE_SPEC="-I${TK_INC_DIR}"
7059 break
7061 done
7062 if test "x${TK_INC_DIR}" = "x" ; then
7063 echo "Can't find tk.h header file"
7064 echo "Reverting to non-Tcl compilation"
7065 xc_with_tcl=""
7067 else
7068 TK_INC_DIR=`echo ${TK_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7072 # --------------------------------------------------------------
7073 # Rely on TCL_LIB_SPEC from tclConfig.sh unless "--with-tcllibs"
7074 # overrides. With TCL_LIB_SPEC, pull out TCL_LIB_DIR
7075 # --------------------------------------------------------------
7077 if test "x$xc_with_tcl" != "x" ; then
7078 if test "x${xc_with_tcl_libraries}" != "x" ; then
7079 TCL_LIB_SPEC=""
7080 for libname in \
7081 "${xc_with_tcl_libraries}/${TCL_LIB_FILE}" \
7082 "${xc_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7084 if test -r "$libname" ; then
7085 TCL_LIB_DIR="${xc_with_tcl_libraries}"
7086 break
7088 done
7089 if test "x${TCL_LIB_DIR}" == "x" ; then
7090 echo "Can't find tcl library in \"${xc_with_tcl_libraries}\""
7091 echo "Reverting to non-Tcl compile"
7092 xc_with_tcl=""
7094 elif test "x${TCL_LIB_SPEC}" == "x" ; then
7095 for libpfix in "lib64" "lib"
7097 libname="${TCL_EXEC_PREFIX}/${libpfix}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7098 if test -r "$libname" ; then
7099 TCL_LIB_DIR="${TCL_EXEC_PREFIX}/${libpfix}"
7100 break
7102 done
7103 if test "x${TCL_LIB_DIR}" = "x" ; then
7104 echo "Can't find tcl library"
7105 echo "Reverting to non-Tcl compile"
7106 xc_with_tcl=""
7108 else
7109 TCL_LIB_DIR=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7113 # --------------------------------------------------------------
7114 # Rely on TK_LIB_SPEC from tkConfig.sh unless "--with-tklibs"
7115 # overrides. With TK_LIB_SPEC, pull out TK_LIB_DIR
7116 # --------------------------------------------------------------
7118 if test "x$xc_with_tcl" != "x" ; then
7119 if test "x${xc_with_tk_libraries}" != "x" ; then
7120 TK_LIB_SPEC=""
7121 for libname in \
7122 "${xc_with_tk_libraries}/${TK_LIB_FILE}" \
7123 "${xc_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7125 if test -r "$libname" ; then
7126 TK_LIB_DIR="${xc_with_tk_libraries}"
7127 break
7129 done
7130 if test "x${TK_LIB_DIR}" == "x" ; then
7131 echo "Can't find tk library in \"${xc_with_tk_libraries}\""
7132 echo "Reverting to non-Tcl compile"
7133 xc_with_tcl=""
7135 elif test "x${TK_LIB_SPEC}" == "x" ; then
7136 for libpfix in "lib64" "lib"
7138 libname="${TK_EXEC_PREFIX}/${libpfix}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7139 if test -r "$libname" ; then
7140 TK_LIB_DIR="${TK_EXEC_PREFIX}/${libpfix}"
7141 break
7143 done
7144 if test "x${TK_LIB_DIR}" = "x" ; then
7145 echo "Can't find tk library"
7146 echo "Reverting to non-Tcl compile"
7147 xc_with_tcl=""
7149 else
7150 TK_LIB_DIR=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7154 #--------------------------------------------------------------------
7155 # If TCL_LIB_SPEC and/or TK_LIB_SPEC do not exist, construct them
7156 #--------------------------------------------------------------------
7158 if test "x$xc_with_tcl" != "x" ; then
7159 if test "x${TCL_LIB_SPEC}" == "x" ; then
7160 case $target in
7161 *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*)
7162 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
7165 TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
7167 esac
7168 TCL_LIB_SPEC="-L${TCL_LIB_DIR} -l${TCL_LIB_NAME}"
7171 if test "x${TK_LIB_SPEC}" == "x" ; then
7172 case $target in
7173 *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|*-*-openbsd*|OpenBSD-*)
7174 TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
7177 TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
7179 esac
7180 TK_LIB_SPEC="-L${TK_LIB_DIR} -l${TK_LIB_NAME}"
7183 # Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
7184 # We really ought to run "ldd" to confirm that the linked libraries match.
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish executable" >&5
7187 $as_echo_n "checking for wish executable... " >&6; }
7188 for dir in \
7189 ${TK_EXEC_PREFIX}/bin \
7190 ${TK_EXEC_PREFIX}
7192 for wishexe in \
7193 wish \
7194 wish${TK_VERSION} \
7195 wish.exe \
7196 wish${TK_VERSION}.exe
7198 if test -r "$dir/$wishexe" ; then
7199 WISH_EXE=$dir/$wishexe
7200 break
7202 done
7203 if test "x${WISH_EXE}" != "x" ; then
7204 break
7206 done
7207 if test "x${WISH_EXE}" = "x" ; then
7208 echo "Warning: Can't find executable for \"wish\". You may have to"
7209 echo "manually set the value for WISH_EXE in the xcircuit startup script."
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 else
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_EXE}" >&5
7214 $as_echo "${WISH_EXE}" >&6; }
7217 # Have to define SHDLIB_EXT here even though we have to do it below, too.
7218 case $target in
7219 *-hpux*)
7220 SHDLIB_EXT=".sl"
7222 *cygwin*)
7223 SHDLIB_EXT=".dll.a"
7225 *-darwin*)
7226 SHDLIB_EXT=".dylib"
7228 *-openbsd*)
7229 SHDLIB_EXT=".so.${TCL_LIB_FILE##*.so.}"
7232 SHDLIB_EXT=".so"
7234 esac
7238 # -----------------------------------------------------------------------
7240 # Tk libraries and header files
7242 # -----------------------------------------------------------------------
7244 if test "x$xc_with_tcl" != "x" ; then
7245 INC_SPECS="${INC_SPECS} ${TCL_INCLUDE_SPEC} ${TK_INCLUDE_SPEC}"
7246 LIB_SPECS="${LIB_SPECS} ${TCL_LIB_SPEC} ${TK_LIB_SPEC}"
7248 if test "x${loader_run_path}" = "x" ; then
7249 loader_run_path="${TCL_LIB_DIR}"
7250 else
7251 loader_run_path="${TCL_LIB_DIR}:${loader_run_path}"
7254 #--------------------------------------------------------------------
7256 # Check if we can generate shared libraries on this system. Set flags
7257 # to generate shared libraries for systems that we know about. Start
7258 # with the values found in tclConfig.sh, make changes as we know about
7259 # the different systems.
7261 #--------------------------------------------------------------------
7263 # Initialize shared library build variables
7265 if test "x${TCL_SHLIB_SUFFIX}" == "x" ; then
7266 SHDLIB_EXT=".so"
7267 else
7268 SHDLIB_EXT="${TCL_SHLIB_SUFFIX}"
7271 if test "x${TCL_SHLIB_LD}" == "x" ; then
7273 # Construct shared library build arguments the painful way
7274 # This is not expected to be necessary, so the number of
7275 # supported systems has been pared down to a minimum.
7277 LDDL_FLAGS="-shared"
7278 LD_RUN_PATH=""
7279 SHLIB_LD="${CC}"
7280 EXTRA_LIB_SPECS=""
7282 case $target in
7283 *-darwin*)
7284 SHDLIB_EXT=".dylib"
7285 SHLIB_LIB_SPECS="${LIB_SPECS}"
7286 if test "${xc_with_gnu_ld}" = "yes" ; then
7287 LDDL_FLAGS="-dynamiclib -bind_at_load"
7288 else
7289 LDDL_FLAGS="-single_module -dynamiclib -flat_namespace"
7290 LDDL_FLAGS="${LDDL_FLAGS} -undefined suppress -noprebind"
7291 SHLIB_CFLAGS="-I/sw/include -fno-common"
7295 *cygwin*)
7296 $as_echo "#define CYGWIN 1" >>confdefs.h
7298 SHDLIB_EXT=".dll.a"
7299 LDDL_FLAGS="-shared -Wl,--enable-auto-image-base -Wl,-rpath,${loader_run_path}"
7300 SHLIB_LIB_SPECS="${LIB_SPECS}"
7303 *-linux*)
7304 SHLIB_CFLAGS="-fPIC"
7305 LDDL_FLAGS='-shared -Wl,-soname,$@'
7306 LD_RUN_PATH="-Wl,-rpath,${loader_run_path}"
7308 EXTRA_LIB_SPECS="-ldl"
7310 case $target in
7311 x86_64-*)
7312 # AMD 64-bit archictecture
7313 # Add -fPIC to standard compile switch
7314 CFLAGS="${CFLAGS} -fPIC"
7316 esac
7319 *-netbsd*|*-freebsd*|*-openbsd*)
7320 # Not available on all versions: check for include file.
7321 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7322 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7323 test_ok=yes
7324 else
7325 test_ok=no
7329 if test "$test_ok" = yes; then
7330 SHLIB_CFLAGS="-fpic"
7331 SHLIB_LD="ld"
7332 LDDL_FLAGS="-shared"
7335 esac
7337 if test "$GCC" = "yes" ; then
7338 CFLAGS="-fPIC ${CFLAGS}"
7341 else
7343 # Rely on shared lib arguments in tclConfig.sh
7345 SHLIB_LD="${TCL_SHLIB_LD}"
7346 EXTRA_LIB_FLAGS=""
7347 LDDL_FLAGS="${TCL_LD_FLAGS}"
7348 LD_RUN_PATH=""
7350 case $target in
7351 *-linux*)
7352 LD_RUN_PATH="-Wl,-rpath,${loader_run_path}"
7354 esac
7357 # If we're running gcc, then set SHLIB_CFLAGS flags for compiling
7358 # shared libraries for gcc, instead of those of the vendor's
7359 # compiler.
7361 if test "$GCC" = "yes" ; then
7362 if test "x${TCL_SHLIB_CFLAGS}" = "x" ; then
7363 SHLIB_CFLAGS="-fPIC ${SHLIB_CFLAGS}"
7364 else
7365 SHLIB_CFLAGS="${TCL_SHLIB_CFLAGS} ${SHLIB_CFLAGS}"
7368 CFLAGS="${CFLAGS} ${SHLIB_CFLAGS}"
7370 if test "${xc_with_gnu_ld}" = "yes" ; then
7371 LDDL_FLAGS="${LDDL_FLAGS} -Wl,--version-script=symbol.map"
7389 # Check whether --enable-asg was given.
7390 if test "${enable_asg+set}" = set; then :
7391 enableval=$enable_asg;
7392 $as_echo "#define ASG 1" >>confdefs.h
7394 $as_echo "#define CONFIGURED 1" >>confdefs.h
7396 SUBDIRS="asg spiceparser"
7397 SUBLIB="asg/libasg.a spiceparser/libspiceparser.a"
7402 # Check whether --enable-lgf was given.
7403 if test "${enable_lgf+set}" = set; then :
7404 enableval=$enable_lgf;
7405 else
7407 HAVE_LGF=LGF
7408 $as_echo "#define LGF 1" >>confdefs.h
7414 # Check whether --enable-focus-fix was given.
7415 if test "${enable_focus_fix+set}" = set; then :
7416 enableval=$enable_focus_fix;
7417 else
7419 $as_echo "#define INPUT_FOCUS 1" >>confdefs.h
7426 # Check whether --with-gs was given.
7427 if test "${with_gs+set}" = set; then :
7428 withval=$with_gs;
7429 if test -f "$withval"; then
7430 GS_EXEC=$withval
7431 else
7432 GS_EXEC=gs
7435 else
7437 # Extract the first word of "gs", so it can be a program name with args.
7438 set dummy gs; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_GS_EXEC+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 if test -n "$GS_EXEC"; then
7445 ac_cv_prog_GS_EXEC="$GS_EXEC" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_GS_EXEC=""
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7458 done
7459 done
7460 IFS=$as_save_IFS
7462 test -z "$ac_cv_prog_GS_EXEC" && ac_cv_prog_GS_EXEC="gs"
7465 GS_EXEC=$ac_cv_prog_GS_EXEC
7466 if test -n "$GS_EXEC"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_EXEC" >&5
7468 $as_echo "$GS_EXEC" >&6; }
7469 else
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7477 cat >>confdefs.h <<_ACEOF
7478 #define GS_EXEC "$GS_EXEC"
7479 _ACEOF
7483 # Check whether --with-ngspice was given.
7484 if test "${with_ngspice+set}" = set; then :
7485 withval=$with_ngspice;
7486 if test -f "$withval"; then
7487 SPICE_EXEC=$withval
7488 else
7489 SPICE_EXEC=ngspice
7492 else
7494 # Extract the first word of "ngspice", so it can be a program name with args.
7495 set dummy ngspice; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_SPICE_EXEC+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$SPICE_EXEC"; then
7502 ac_cv_prog_SPICE_EXEC="$SPICE_EXEC" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_SPICE_EXEC=""
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7515 done
7516 done
7517 IFS=$as_save_IFS
7519 test -z "$ac_cv_prog_SPICE_EXEC" && ac_cv_prog_SPICE_EXEC="ngspice"
7522 SPICE_EXEC=$ac_cv_prog_SPICE_EXEC
7523 if test -n "$SPICE_EXEC"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPICE_EXEC" >&5
7525 $as_echo "$SPICE_EXEC" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7534 cat >>confdefs.h <<_ACEOF
7535 #define SPICE_EXEC "$SPICE_EXEC"
7536 _ACEOF
7540 xc_with_python=""
7541 PYTHON=
7544 # Check whether --with-python was given.
7545 if test "${with_python+set}" = set; then :
7546 withval=$with_python; xc_with_python=$withval
7550 if test "x$xc_with_tcl" != "x" ; then
7551 xc_with_python=""
7552 elif test "$xc_with_python" = "no" ; then
7553 xc_with_python=""
7554 elif test "$xc_with_python" = "yes" ; then
7555 # Extract the first word of "python", so it can be a program name with args.
7556 set dummy python; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if ${ac_cv_path_PYTHON+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 case $PYTHON in
7563 [\\/]* | ?:[\\/]*)
7564 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7578 done
7579 done
7580 IFS=$as_save_IFS
7583 esac
7585 PYTHON=$ac_cv_path_PYTHON
7586 if test -n "$PYTHON"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7588 $as_echo "$PYTHON" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7595 elif test "x$xc_with_python" != x; then
7596 test -f "$xc_with_python" && PYTHON=$xc_with_python
7599 if test "x$PYTHON" != x; then
7600 _py_version=`$PYTHON -c 'import sys; print sys.version[0:3]'`
7601 _py_prefix=`$PYTHON -c 'import sys; print sys.prefix'`
7602 _py_exec_prefix=`$PYTHON -c 'import sys; print sys.exec_prefix'`
7604 _py_include="$_py_prefix/include/python$_py_version"
7605 _py_lib="$_py_exec_prefix/lib/python$_py_version/config"
7606 _py_makefile="$_py_lib/Makefile"
7608 if test $_py_version = 1.5; then
7609 echo
7610 echo "*** WARNING:"
7611 echo "*** Python version 1.5 detected: This version of Python has a known fatal"
7612 echo "*** bug. Disabling Python interface. If you want the embedded Python"
7613 echo "*** interface, you will need to get an updated version of Python."
7614 echo
7615 PYTHON=""
7619 if test "x$PYTHON" != x; then
7620 if test -f $_py_makefile; then
7621 _py_libs=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $_py_makefile`
7622 _py_libm=`sed -n -e 's/^LIBM=\(.*\)/\1/p' $_py_makefile`
7623 else
7624 _py_libs='-lpthread -ldl -lutil -ldb'
7625 _py_libm='-lm'
7628 # Now that we think we know where the python include and
7629 # library files are, make sure we can build a small
7630 # program against them.
7631 _save_CPPFLAGS=${CPPFLAGS}
7632 _save_LDFLAGS=${LDFLAGS}
7633 _save_LIBS=${LIBS}
7635 CPPFLAGS="$CPPFLAGS -I$_py_include"
7636 LDFLAGS="$LDFLAGS -L$_py_lib"
7638 case "$target_os" in
7639 *cygwin*)
7640 PYLIB="-lpython$_py_version"
7641 LIBS="$PYLIB.dll $LIBS $X_PRE_LIBS $_py_libs"
7644 LIBS="$LIBS -lpython$_py_version $_py_libs $_py_libm"
7646 esac
7649 HAVE_PYTHON=0
7650 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
7651 if test "x$ac_cv_header_Python_h" = xyes; then :
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Py_Initialize in -lpython$_py_version" >&5
7654 $as_echo_n "checking for Py_Initialize in -lpython$_py_version... " >&6; }
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include "Python.h"
7659 main ()
7661 Py_Initialize();
7663 return 0;
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"; then :
7668 HAVE_PYTHON=1
7669 INTERPRETER=PYTHON
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7671 $as_echo "yes" >&6; }
7672 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7678 rm -f core conftest.err conftest.$ac_objext \
7679 conftest$ac_exeext conftest.$ac_ext
7684 if test "x$HAVE_PYTHON" = x0; then
7685 CPPFLAGS=$_save_CPPFLAGS
7686 LDFLAGS=$_save_LDFLAGS
7687 LIBS=$_save_LIBS
7688 PYTHON=""
7692 if test "x$PYTHON" != x; then
7693 STARTUP_FILE="xcstartup.py"
7694 INTERP_PATH="python"
7695 WRAPPER_SCRIPT=""
7696 SUBDIRS="${SUBDIRS} Xw"
7697 SUBLIB="${SUBLIB} Xw/libxcXw.a"
7698 XCIRCUIT_TARGET="xcircuit"
7699 elif test "x$xc_with_tcl" != "x" ; then
7700 INTERPRETER=TCL
7701 STARTUP_FILE="xcstartup.tcl"
7702 INTERP_PATH="tcl"
7703 WRAPPER_SCRIPT="wrapper.tcl"
7704 $as_echo "#define TCL_WRAPPER 1" >>confdefs.h
7706 XCIRCUIT_TARGET="tcl"
7707 ALL_TARGET="all-recursive"
7708 INSTALL_TARGET="install-recursive"
7709 else
7710 STARTUP_FILE="startup.script"
7711 INTERP_PATH="."
7712 WRAPPER_SCRIPT=""
7713 SUBDIRS="${SUBDIRS} Xw"
7714 SUBLIB="${SUBLIB} Xw/libxcXw.a"
7715 XCIRCUIT_TARGET="xcircuit"
7718 # Add -lm last to LDFLAGS, or Tcl/Tk's addition of -lieee can cause
7719 # an error.
7720 EXTRA_LIB_SPECS="$EXTRA_LIB_SPECS -lm"
7723 # Check whether --enable-memdebug was given.
7724 if test "${enable_memdebug+set}" = set; then :
7725 enableval=$enable_memdebug;
7726 if test "x$xc_with_tcl" = "x" ; then
7727 LIBS="${LIBS} -lefence"
7728 else
7729 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7759 ac_config_files="$ac_config_files Makefile Xw/Makefile asg/Makefile spiceparser/Makefile"
7761 cat >confcache <<\_ACEOF
7762 # This file is a shell script that caches the results of configure
7763 # tests run on this system so they can be shared between configure
7764 # scripts and configure runs, see configure's option --config-cache.
7765 # It is not useful on other systems. If it contains results you don't
7766 # want to keep, you may remove or edit it.
7768 # config.status only pays attention to the cache file if you give it
7769 # the --recheck option to rerun configure.
7771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7773 # following values.
7775 _ACEOF
7777 # The following way of writing the cache mishandles newlines in values,
7778 # but we know of no workaround that is simple, portable, and efficient.
7779 # So, we kill variables containing newlines.
7780 # Ultrix sh set writes to stderr and can't be redirected directly,
7781 # and sets the high bit in the cache file unless we assign to the vars.
7783 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7784 eval ac_val=\$$ac_var
7785 case $ac_val in #(
7786 *${as_nl}*)
7787 case $ac_var in #(
7788 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7790 esac
7791 case $ac_var in #(
7792 _ | IFS | as_nl) ;; #(
7793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7794 *) { eval $ac_var=; unset $ac_var;} ;;
7795 esac ;;
7796 esac
7797 done
7799 (set) 2>&1 |
7800 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7801 *${as_nl}ac_space=\ *)
7802 # `set' does not quote correctly, so add quotes: double-quote
7803 # substitution turns \\\\ into \\, and sed turns \\ into \.
7804 sed -n \
7805 "s/'/'\\\\''/g;
7806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7807 ;; #(
7809 # `set' quotes correctly as required by POSIX, so do not add quotes.
7810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7812 esac |
7813 sort
7815 sed '
7816 /^ac_cv_env_/b end
7817 t clear
7818 :clear
7819 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7820 t end
7821 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7822 :end' >>confcache
7823 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7824 if test -w "$cache_file"; then
7825 if test "x$cache_file" != "x/dev/null"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7827 $as_echo "$as_me: updating cache $cache_file" >&6;}
7828 if test ! -f "$cache_file" || test -h "$cache_file"; then
7829 cat confcache >"$cache_file"
7830 else
7831 case $cache_file in #(
7832 */* | ?:*)
7833 mv -f confcache "$cache_file"$$ &&
7834 mv -f "$cache_file"$$ "$cache_file" ;; #(
7836 mv -f confcache "$cache_file" ;;
7837 esac
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7842 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7845 rm -f confcache
7847 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7848 # Let make expand exec_prefix.
7849 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7851 # Transform confdefs.h into DEFS.
7852 # Protect against shell expansion while executing Makefile rules.
7853 # Protect against Makefile macro expansion.
7855 # If the first sed substitution is executed (which looks for macros that
7856 # take arguments), then branch to the quote section. Otherwise,
7857 # look for a macro that doesn't take arguments.
7858 ac_script='
7859 :mline
7860 /\\$/{
7862 s,\\\n,,
7863 b mline
7865 t clear
7866 :clear
7867 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7868 t quote
7869 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7870 t quote
7871 b any
7872 :quote
7873 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7874 s/\[/\\&/g
7875 s/\]/\\&/g
7876 s/\$/$$/g
7878 :any
7881 s/^\n//
7882 s/\n/ /g
7886 DEFS=`sed -n "$ac_script" confdefs.h`
7889 ac_libobjs=
7890 ac_ltlibobjs=
7892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7893 # 1. Remove the extension, and $U if already installed.
7894 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7895 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7896 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7897 # will be set to the directory where LIBOBJS objects are built.
7898 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7899 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7900 done
7901 LIBOBJS=$ac_libobjs
7903 LTLIBOBJS=$ac_ltlibobjs
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7907 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7908 if test -n "$am_sleep_pid"; then
7909 # Hide warnings about reused PIDs.
7910 wait $am_sleep_pid 2>/dev/null
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7913 $as_echo "done" >&6; }
7914 if test -n "$EXEEXT"; then
7915 am__EXEEXT_TRUE=
7916 am__EXEEXT_FALSE='#'
7917 else
7918 am__EXEEXT_TRUE='#'
7919 am__EXEEXT_FALSE=
7922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7923 as_fn_error $? "conditional \"AMDEP\" was never defined.
7924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7927 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7931 : "${CONFIG_STATUS=./config.status}"
7932 ac_write_fail=0
7933 ac_clean_files_save=$ac_clean_files
7934 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7936 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7937 as_write_fail=0
7938 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7939 #! $SHELL
7940 # Generated by $as_me.
7941 # Run this file to recreate the current configuration.
7942 # Compiler output produced by configure, useful for debugging
7943 # configure, is in config.log if it exists.
7945 debug=false
7946 ac_cs_recheck=false
7947 ac_cs_silent=false
7949 SHELL=\${CONFIG_SHELL-$SHELL}
7950 export SHELL
7951 _ASEOF
7952 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7953 ## -------------------- ##
7954 ## M4sh Initialization. ##
7955 ## -------------------- ##
7957 # Be more Bourne compatible
7958 DUALCASE=1; export DUALCASE # for MKS sh
7959 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7960 emulate sh
7961 NULLCMD=:
7962 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7963 # is contrary to our usage. Disable this feature.
7964 alias -g '${1+"$@"}'='"$@"'
7965 setopt NO_GLOB_SUBST
7966 else
7967 case `(set -o) 2>/dev/null` in #(
7968 *posix*) :
7969 set -o posix ;; #(
7970 *) :
7972 esac
7976 as_nl='
7978 export as_nl
7979 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7980 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7981 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7982 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7983 # Prefer a ksh shell builtin over an external printf program on Solaris,
7984 # but without wasting forks for bash or zsh.
7985 if test -z "$BASH_VERSION$ZSH_VERSION" \
7986 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7987 as_echo='print -r --'
7988 as_echo_n='print -rn --'
7989 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7990 as_echo='printf %s\n'
7991 as_echo_n='printf %s'
7992 else
7993 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7994 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7995 as_echo_n='/usr/ucb/echo -n'
7996 else
7997 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7998 as_echo_n_body='eval
7999 arg=$1;
8000 case $arg in #(
8001 *"$as_nl"*)
8002 expr "X$arg" : "X\\(.*\\)$as_nl";
8003 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8004 esac;
8005 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8007 export as_echo_n_body
8008 as_echo_n='sh -c $as_echo_n_body as_echo'
8010 export as_echo_body
8011 as_echo='sh -c $as_echo_body as_echo'
8014 # The user is always right.
8015 if test "${PATH_SEPARATOR+set}" != set; then
8016 PATH_SEPARATOR=:
8017 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8018 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8019 PATH_SEPARATOR=';'
8024 # IFS
8025 # We need space, tab and new line, in precisely that order. Quoting is
8026 # there to prevent editors from complaining about space-tab.
8027 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8028 # splitting by setting IFS to empty value.)
8029 IFS=" "" $as_nl"
8031 # Find who we are. Look in the path if we contain no directory separator.
8032 as_myself=
8033 case $0 in #((
8034 *[\\/]* ) as_myself=$0 ;;
8035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 for as_dir in $PATH
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
8040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8041 done
8042 IFS=$as_save_IFS
8045 esac
8046 # We did not find ourselves, most probably we were run as `sh COMMAND'
8047 # in which case we are not to be found in the path.
8048 if test "x$as_myself" = x; then
8049 as_myself=$0
8051 if test ! -f "$as_myself"; then
8052 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8053 exit 1
8056 # Unset variables that we do not need and which cause bugs (e.g. in
8057 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8058 # suppresses any "Segmentation fault" message there. '((' could
8059 # trigger a bug in pdksh 5.2.14.
8060 for as_var in BASH_ENV ENV MAIL MAILPATH
8061 do eval test x\${$as_var+set} = xset \
8062 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8063 done
8064 PS1='$ '
8065 PS2='> '
8066 PS4='+ '
8068 # NLS nuisances.
8069 LC_ALL=C
8070 export LC_ALL
8071 LANGUAGE=C
8072 export LANGUAGE
8074 # CDPATH.
8075 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8078 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8079 # ----------------------------------------
8080 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8081 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8082 # script with STATUS, using 1 if that was 0.
8083 as_fn_error ()
8085 as_status=$1; test $as_status -eq 0 && as_status=1
8086 if test "$4"; then
8087 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8088 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8090 $as_echo "$as_me: error: $2" >&2
8091 as_fn_exit $as_status
8092 } # as_fn_error
8095 # as_fn_set_status STATUS
8096 # -----------------------
8097 # Set $? to STATUS, without forking.
8098 as_fn_set_status ()
8100 return $1
8101 } # as_fn_set_status
8103 # as_fn_exit STATUS
8104 # -----------------
8105 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8106 as_fn_exit ()
8108 set +e
8109 as_fn_set_status $1
8110 exit $1
8111 } # as_fn_exit
8113 # as_fn_unset VAR
8114 # ---------------
8115 # Portably unset VAR.
8116 as_fn_unset ()
8118 { eval $1=; unset $1;}
8120 as_unset=as_fn_unset
8121 # as_fn_append VAR VALUE
8122 # ----------------------
8123 # Append the text in VALUE to the end of the definition contained in VAR. Take
8124 # advantage of any shell optimizations that allow amortized linear growth over
8125 # repeated appends, instead of the typical quadratic growth present in naive
8126 # implementations.
8127 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8128 eval 'as_fn_append ()
8130 eval $1+=\$2
8132 else
8133 as_fn_append ()
8135 eval $1=\$$1\$2
8137 fi # as_fn_append
8139 # as_fn_arith ARG...
8140 # ------------------
8141 # Perform arithmetic evaluation on the ARGs, and store the result in the
8142 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8143 # must be portable across $(()) and expr.
8144 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8145 eval 'as_fn_arith ()
8147 as_val=$(( $* ))
8149 else
8150 as_fn_arith ()
8152 as_val=`expr "$@" || test $? -eq 1`
8154 fi # as_fn_arith
8157 if expr a : '\(a\)' >/dev/null 2>&1 &&
8158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8159 as_expr=expr
8160 else
8161 as_expr=false
8164 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8165 as_basename=basename
8166 else
8167 as_basename=false
8170 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8171 as_dirname=dirname
8172 else
8173 as_dirname=false
8176 as_me=`$as_basename -- "$0" ||
8177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8178 X"$0" : 'X\(//\)$' \| \
8179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8180 $as_echo X/"$0" |
8181 sed '/^.*\/\([^/][^/]*\)\/*$/{
8182 s//\1/
8185 /^X\/\(\/\/\)$/{
8186 s//\1/
8189 /^X\/\(\/\).*/{
8190 s//\1/
8193 s/.*/./; q'`
8195 # Avoid depending upon Character Ranges.
8196 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8199 as_cr_digits='0123456789'
8200 as_cr_alnum=$as_cr_Letters$as_cr_digits
8202 ECHO_C= ECHO_N= ECHO_T=
8203 case `echo -n x` in #(((((
8204 -n*)
8205 case `echo 'xy\c'` in
8206 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8207 xy) ECHO_C='\c';;
8208 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8209 ECHO_T=' ';;
8210 esac;;
8212 ECHO_N='-n';;
8213 esac
8215 rm -f conf$$ conf$$.exe conf$$.file
8216 if test -d conf$$.dir; then
8217 rm -f conf$$.dir/conf$$.file
8218 else
8219 rm -f conf$$.dir
8220 mkdir conf$$.dir 2>/dev/null
8222 if (echo >conf$$.file) 2>/dev/null; then
8223 if ln -s conf$$.file conf$$ 2>/dev/null; then
8224 as_ln_s='ln -s'
8225 # ... but there are two gotchas:
8226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8228 # In both cases, we have to default to `cp -pR'.
8229 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8230 as_ln_s='cp -pR'
8231 elif ln conf$$.file conf$$ 2>/dev/null; then
8232 as_ln_s=ln
8233 else
8234 as_ln_s='cp -pR'
8236 else
8237 as_ln_s='cp -pR'
8239 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8240 rmdir conf$$.dir 2>/dev/null
8243 # as_fn_mkdir_p
8244 # -------------
8245 # Create "$as_dir" as a directory, including parents if necessary.
8246 as_fn_mkdir_p ()
8249 case $as_dir in #(
8250 -*) as_dir=./$as_dir;;
8251 esac
8252 test -d "$as_dir" || eval $as_mkdir_p || {
8253 as_dirs=
8254 while :; do
8255 case $as_dir in #(
8256 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8257 *) as_qdir=$as_dir;;
8258 esac
8259 as_dirs="'$as_qdir' $as_dirs"
8260 as_dir=`$as_dirname -- "$as_dir" ||
8261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8262 X"$as_dir" : 'X\(//\)[^/]' \| \
8263 X"$as_dir" : 'X\(//\)$' \| \
8264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8265 $as_echo X"$as_dir" |
8266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8267 s//\1/
8270 /^X\(\/\/\)[^/].*/{
8271 s//\1/
8274 /^X\(\/\/\)$/{
8275 s//\1/
8278 /^X\(\/\).*/{
8279 s//\1/
8282 s/.*/./; q'`
8283 test -d "$as_dir" && break
8284 done
8285 test -z "$as_dirs" || eval "mkdir $as_dirs"
8286 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8289 } # as_fn_mkdir_p
8290 if mkdir -p . 2>/dev/null; then
8291 as_mkdir_p='mkdir -p "$as_dir"'
8292 else
8293 test -d ./-p && rmdir ./-p
8294 as_mkdir_p=false
8298 # as_fn_executable_p FILE
8299 # -----------------------
8300 # Test if FILE is an executable regular file.
8301 as_fn_executable_p ()
8303 test -f "$1" && test -x "$1"
8304 } # as_fn_executable_p
8305 as_test_x='test -x'
8306 as_executable_p=as_fn_executable_p
8308 # Sed expression to map a string onto a valid CPP name.
8309 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8311 # Sed expression to map a string onto a valid variable name.
8312 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8315 exec 6>&1
8316 ## ----------------------------------- ##
8317 ## Main body of $CONFIG_STATUS script. ##
8318 ## ----------------------------------- ##
8319 _ASEOF
8320 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8323 # Save the log message, to keep $0 and so on meaningful, and to
8324 # report actual input values of CONFIG_FILES etc. instead of their
8325 # values after options handling.
8326 ac_log="
8327 This file was extended by $as_me, which was
8328 generated by GNU Autoconf 2.69. Invocation command line was
8330 CONFIG_FILES = $CONFIG_FILES
8331 CONFIG_HEADERS = $CONFIG_HEADERS
8332 CONFIG_LINKS = $CONFIG_LINKS
8333 CONFIG_COMMANDS = $CONFIG_COMMANDS
8334 $ $0 $@
8336 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8339 _ACEOF
8341 case $ac_config_files in *"
8342 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8343 esac
8347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8348 # Files that config.status was made for.
8349 config_files="$ac_config_files"
8350 config_commands="$ac_config_commands"
8352 _ACEOF
8354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8355 ac_cs_usage="\
8356 \`$as_me' instantiates files and other configuration actions
8357 from templates according to the current configuration. Unless the files
8358 and actions are specified as TAGs, all are instantiated by default.
8360 Usage: $0 [OPTION]... [TAG]...
8362 -h, --help print this help, then exit
8363 -V, --version print version number and configuration settings, then exit
8364 --config print configuration, then exit
8365 -q, --quiet, --silent
8366 do not print progress messages
8367 -d, --debug don't remove temporary files
8368 --recheck update $as_me by reconfiguring in the same conditions
8369 --file=FILE[:TEMPLATE]
8370 instantiate the configuration file FILE
8372 Configuration files:
8373 $config_files
8375 Configuration commands:
8376 $config_commands
8378 Report bugs to the package provider."
8380 _ACEOF
8381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8382 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8383 ac_cs_version="\\
8384 config.status
8385 configured by $0, generated by GNU Autoconf 2.69,
8386 with options \\"\$ac_cs_config\\"
8388 Copyright (C) 2012 Free Software Foundation, Inc.
8389 This config.status script is free software; the Free Software Foundation
8390 gives unlimited permission to copy, distribute and modify it."
8392 ac_pwd='$ac_pwd'
8393 srcdir='$srcdir'
8394 INSTALL='$INSTALL'
8395 MKDIR_P='$MKDIR_P'
8396 AWK='$AWK'
8397 test -n "\$AWK" || AWK=awk
8398 _ACEOF
8400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8401 # The default lists apply if the user does not specify any file.
8402 ac_need_defaults=:
8403 while test $# != 0
8405 case $1 in
8406 --*=?*)
8407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8409 ac_shift=:
8411 --*=)
8412 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8413 ac_optarg=
8414 ac_shift=:
8417 ac_option=$1
8418 ac_optarg=$2
8419 ac_shift=shift
8421 esac
8423 case $ac_option in
8424 # Handling of the options.
8425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8426 ac_cs_recheck=: ;;
8427 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8428 $as_echo "$ac_cs_version"; exit ;;
8429 --config | --confi | --conf | --con | --co | --c )
8430 $as_echo "$ac_cs_config"; exit ;;
8431 --debug | --debu | --deb | --de | --d | -d )
8432 debug=: ;;
8433 --file | --fil | --fi | --f )
8434 $ac_shift
8435 case $ac_optarg in
8436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8437 '') as_fn_error $? "missing file argument" ;;
8438 esac
8439 as_fn_append CONFIG_FILES " '$ac_optarg'"
8440 ac_need_defaults=false;;
8441 --he | --h | --help | --hel | -h )
8442 $as_echo "$ac_cs_usage"; exit ;;
8443 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8444 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8445 ac_cs_silent=: ;;
8447 # This is an error.
8448 -*) as_fn_error $? "unrecognized option: \`$1'
8449 Try \`$0 --help' for more information." ;;
8451 *) as_fn_append ac_config_targets " $1"
8452 ac_need_defaults=false ;;
8454 esac
8455 shift
8456 done
8458 ac_configure_extra_args=
8460 if $ac_cs_silent; then
8461 exec 6>/dev/null
8462 ac_configure_extra_args="$ac_configure_extra_args --silent"
8465 _ACEOF
8466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8467 if \$ac_cs_recheck; then
8468 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8469 shift
8470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8471 CONFIG_SHELL='$SHELL'
8472 export CONFIG_SHELL
8473 exec "\$@"
8476 _ACEOF
8477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8478 exec 5>>config.log
8480 echo
8481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8482 ## Running $as_me. ##
8483 _ASBOX
8484 $as_echo "$ac_log"
8485 } >&5
8487 _ACEOF
8488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8490 # INIT-COMMANDS
8492 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8494 _ACEOF
8496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8498 # Handling of arguments.
8499 for ac_config_target in $ac_config_targets
8501 case $ac_config_target in
8502 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8504 "Xw/Makefile") CONFIG_FILES="$CONFIG_FILES Xw/Makefile" ;;
8505 "asg/Makefile") CONFIG_FILES="$CONFIG_FILES asg/Makefile" ;;
8506 "spiceparser/Makefile") CONFIG_FILES="$CONFIG_FILES spiceparser/Makefile" ;;
8508 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8509 esac
8510 done
8513 # If the user did not use the arguments to specify the items to instantiate,
8514 # then the envvar interface is used. Set only those that are not.
8515 # We use the long form for the default assignment because of an extremely
8516 # bizarre bug on SunOS 4.1.3.
8517 if $ac_need_defaults; then
8518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8522 # Have a temporary directory for convenience. Make it in the build tree
8523 # simply because there is no reason against having it here, and in addition,
8524 # creating and moving files from /tmp can sometimes cause problems.
8525 # Hook for its removal unless debugging.
8526 # Note that there is a small window in which the directory will not be cleaned:
8527 # after its creation but before its name has been assigned to `$tmp'.
8528 $debug ||
8530 tmp= ac_tmp=
8531 trap 'exit_status=$?
8532 : "${ac_tmp:=$tmp}"
8533 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8535 trap 'as_fn_exit 1' 1 2 13 15
8537 # Create a (secure) tmp directory for tmp files.
8540 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8541 test -d "$tmp"
8542 } ||
8544 tmp=./conf$$-$RANDOM
8545 (umask 077 && mkdir "$tmp")
8546 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8547 ac_tmp=$tmp
8549 # Set up the scripts for CONFIG_FILES section.
8550 # No need to generate them if there are no CONFIG_FILES.
8551 # This happens for instance with `./config.status config.h'.
8552 if test -n "$CONFIG_FILES"; then
8555 ac_cr=`echo X | tr X '\015'`
8556 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8557 # But we know of no other shell where ac_cr would be empty at this
8558 # point, so we can use a bashism as a fallback.
8559 if test "x$ac_cr" = x; then
8560 eval ac_cr=\$\'\\r\'
8562 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8563 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8564 ac_cs_awk_cr='\\r'
8565 else
8566 ac_cs_awk_cr=$ac_cr
8569 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8570 _ACEOF
8574 echo "cat >conf$$subs.awk <<_ACEOF" &&
8575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8576 echo "_ACEOF"
8577 } >conf$$subs.sh ||
8578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8579 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8580 ac_delim='%!_!# '
8581 for ac_last_try in false false false false false :; do
8582 . ./conf$$subs.sh ||
8583 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8585 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8586 if test $ac_delim_n = $ac_delim_num; then
8587 break
8588 elif $ac_last_try; then
8589 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8590 else
8591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8593 done
8594 rm -f conf$$subs.sh
8596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8597 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8598 _ACEOF
8599 sed -n '
8601 s/^/S["/; s/!.*/"]=/
8604 s/^[^!]*!//
8605 :repl
8606 t repl
8607 s/'"$ac_delim"'$//
8608 t delim
8611 s/\(.\{148\}\)..*/\1/
8612 t more1
8613 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8616 b repl
8617 :more1
8618 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8621 s/.\{148\}//
8622 t nl
8623 :delim
8625 s/\(.\{148\}\)..*/\1/
8626 t more2
8627 s/["\\]/\\&/g; s/^/"/; s/$/"/
8630 :more2
8631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8634 s/.\{148\}//
8635 t delim
8636 ' <conf$$subs.awk | sed '
8637 /^[^""]/{
8639 s/\n//
8641 ' >>$CONFIG_STATUS || ac_write_fail=1
8642 rm -f conf$$subs.awk
8643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8644 _ACAWK
8645 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8646 for (key in S) S_is_set[key] = 1
8647 FS = "\a"
8651 line = $ 0
8652 nfields = split(line, field, "@")
8653 substed = 0
8654 len = length(field[1])
8655 for (i = 2; i < nfields; i++) {
8656 key = field[i]
8657 keylen = length(key)
8658 if (S_is_set[key]) {
8659 value = S[key]
8660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8661 len += length(value) + length(field[++i])
8662 substed = 1
8663 } else
8664 len += 1 + keylen
8667 print line
8670 _ACAWK
8671 _ACEOF
8672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8673 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8674 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8675 else
8677 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8678 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8679 _ACEOF
8681 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8682 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8683 # trailing colons and then remove the whole line if VPATH becomes empty
8684 # (actually we leave an empty line to preserve line numbers).
8685 if test "x$srcdir" = x.; then
8686 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8688 s///
8689 s/^/:/
8690 s/[ ]*$/:/
8691 s/:\$(srcdir):/:/g
8692 s/:\${srcdir}:/:/g
8693 s/:@srcdir@:/:/g
8694 s/^:*//
8695 s/:*$//
8697 s/\(=[ ]*\).*/\1/
8699 s/\n//
8700 s/^[^=]*=[ ]*$//
8704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8705 fi # test -n "$CONFIG_FILES"
8708 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
8709 shift
8710 for ac_tag
8712 case $ac_tag in
8713 :[FHLC]) ac_mode=$ac_tag; continue;;
8714 esac
8715 case $ac_mode$ac_tag in
8716 :[FHL]*:*);;
8717 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8718 :[FH]-) ac_tag=-:-;;
8719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8720 esac
8721 ac_save_IFS=$IFS
8722 IFS=:
8723 set x $ac_tag
8724 IFS=$ac_save_IFS
8725 shift
8726 ac_file=$1
8727 shift
8729 case $ac_mode in
8730 :L) ac_source=$1;;
8731 :[FH])
8732 ac_file_inputs=
8733 for ac_f
8735 case $ac_f in
8736 -) ac_f="$ac_tmp/stdin";;
8737 *) # Look for the file first in the build tree, then in the source tree
8738 # (if the path is not absolute). The absolute path cannot be DOS-style,
8739 # because $ac_f cannot contain `:'.
8740 test -f "$ac_f" ||
8741 case $ac_f in
8742 [\\/$]*) false;;
8743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8744 esac ||
8745 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8746 esac
8747 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8748 as_fn_append ac_file_inputs " '$ac_f'"
8749 done
8751 # Let's still pretend it is `configure' which instantiates (i.e., don't
8752 # use $as_me), people would be surprised to read:
8753 # /* config.h. Generated by config.status. */
8754 configure_input='Generated from '`
8755 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8756 `' by configure.'
8757 if test x"$ac_file" != x-; then
8758 configure_input="$ac_file. $configure_input"
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8760 $as_echo "$as_me: creating $ac_file" >&6;}
8762 # Neutralize special characters interpreted by sed in replacement strings.
8763 case $configure_input in #(
8764 *\&* | *\|* | *\\* )
8765 ac_sed_conf_input=`$as_echo "$configure_input" |
8766 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8767 *) ac_sed_conf_input=$configure_input;;
8768 esac
8770 case $ac_tag in
8771 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8773 esac
8775 esac
8777 ac_dir=`$as_dirname -- "$ac_file" ||
8778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8779 X"$ac_file" : 'X\(//\)[^/]' \| \
8780 X"$ac_file" : 'X\(//\)$' \| \
8781 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8782 $as_echo X"$ac_file" |
8783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8784 s//\1/
8787 /^X\(\/\/\)[^/].*/{
8788 s//\1/
8791 /^X\(\/\/\)$/{
8792 s//\1/
8795 /^X\(\/\).*/{
8796 s//\1/
8799 s/.*/./; q'`
8800 as_dir="$ac_dir"; as_fn_mkdir_p
8801 ac_builddir=.
8803 case "$ac_dir" in
8804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8807 # A ".." for each directory in $ac_dir_suffix.
8808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8809 case $ac_top_builddir_sub in
8810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8812 esac ;;
8813 esac
8814 ac_abs_top_builddir=$ac_pwd
8815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8816 # for backward compatibility:
8817 ac_top_builddir=$ac_top_build_prefix
8819 case $srcdir in
8820 .) # We are building in place.
8821 ac_srcdir=.
8822 ac_top_srcdir=$ac_top_builddir_sub
8823 ac_abs_top_srcdir=$ac_pwd ;;
8824 [\\/]* | ?:[\\/]* ) # Absolute name.
8825 ac_srcdir=$srcdir$ac_dir_suffix;
8826 ac_top_srcdir=$srcdir
8827 ac_abs_top_srcdir=$srcdir ;;
8828 *) # Relative name.
8829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8830 ac_top_srcdir=$ac_top_build_prefix$srcdir
8831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8832 esac
8833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8836 case $ac_mode in
8839 # CONFIG_FILE
8842 case $INSTALL in
8843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8845 esac
8846 ac_MKDIR_P=$MKDIR_P
8847 case $MKDIR_P in
8848 [\\/$]* | ?:[\\/]* ) ;;
8849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8850 esac
8851 _ACEOF
8853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8854 # If the template does not know about datarootdir, expand it.
8855 # FIXME: This hack should be removed a few years after 2.60.
8856 ac_datarootdir_hack=; ac_datarootdir_seen=
8857 ac_sed_dataroot='
8858 /datarootdir/ {
8862 /@datadir@/p
8863 /@docdir@/p
8864 /@infodir@/p
8865 /@localedir@/p
8866 /@mandir@/p'
8867 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8868 *datarootdir*) ac_datarootdir_seen=yes;;
8869 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8871 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8872 _ACEOF
8873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8874 ac_datarootdir_hack='
8875 s&@datadir@&$datadir&g
8876 s&@docdir@&$docdir&g
8877 s&@infodir@&$infodir&g
8878 s&@localedir@&$localedir&g
8879 s&@mandir@&$mandir&g
8880 s&\\\${datarootdir}&$datarootdir&g' ;;
8881 esac
8882 _ACEOF
8884 # Neutralize VPATH when `$srcdir' = `.'.
8885 # Shell code in configure.ac might set extrasub.
8886 # FIXME: do we really want to maintain this feature?
8887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8888 ac_sed_extra="$ac_vpsub
8889 $extrasub
8890 _ACEOF
8891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8893 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8894 s|@configure_input@|$ac_sed_conf_input|;t t
8895 s&@top_builddir@&$ac_top_builddir_sub&;t t
8896 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8897 s&@srcdir@&$ac_srcdir&;t t
8898 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8899 s&@top_srcdir@&$ac_top_srcdir&;t t
8900 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8901 s&@builddir@&$ac_builddir&;t t
8902 s&@abs_builddir@&$ac_abs_builddir&;t t
8903 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8904 s&@INSTALL@&$ac_INSTALL&;t t
8905 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8906 $ac_datarootdir_hack
8908 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8909 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8912 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8914 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8916 which seems to be undefined. Please make sure it is defined" >&5
8917 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8918 which seems to be undefined. Please make sure it is defined" >&2;}
8920 rm -f "$ac_tmp/stdin"
8921 case $ac_file in
8922 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8923 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8924 esac \
8925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8930 $as_echo "$as_me: executing $ac_file commands" >&6;}
8932 esac
8935 case $ac_file$ac_mode in
8936 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8937 # Older Autoconf quotes --file arguments for eval, but not when files
8938 # are listed without --file. Let's play safe and only enable the eval
8939 # if we detect the quoting.
8940 case $CONFIG_FILES in
8941 *\'*) eval set x "$CONFIG_FILES" ;;
8942 *) set x $CONFIG_FILES ;;
8943 esac
8944 shift
8945 for mf
8947 # Strip MF so we end up with the name of the file.
8948 mf=`echo "$mf" | sed -e 's/:.*$//'`
8949 # Check whether this is an Automake generated Makefile or not.
8950 # We used to match only the files named 'Makefile.in', but
8951 # some people rename them; so instead we look at the file content.
8952 # Grep'ing the first line is not enough: some people post-process
8953 # each Makefile.in and add a new line on top of each file to say so.
8954 # Grep'ing the whole file is not good either: AIX grep has a line
8955 # limit of 2048, but all sed's we know have understand at least 4000.
8956 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8957 dirpart=`$as_dirname -- "$mf" ||
8958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8959 X"$mf" : 'X\(//\)[^/]' \| \
8960 X"$mf" : 'X\(//\)$' \| \
8961 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8962 $as_echo X"$mf" |
8963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8964 s//\1/
8967 /^X\(\/\/\)[^/].*/{
8968 s//\1/
8971 /^X\(\/\/\)$/{
8972 s//\1/
8975 /^X\(\/\).*/{
8976 s//\1/
8979 s/.*/./; q'`
8980 else
8981 continue
8983 # Extract the definition of DEPDIR, am__include, and am__quote
8984 # from the Makefile without running 'make'.
8985 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8986 test -z "$DEPDIR" && continue
8987 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8988 test -z "$am__include" && continue
8989 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8990 # Find all dependency output files, they are included files with
8991 # $(DEPDIR) in their names. We invoke sed twice because it is the
8992 # simplest approach to changing $(DEPDIR) to its actual value in the
8993 # expansion.
8994 for file in `sed -n "
8995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8997 # Make sure the directory exists.
8998 test -f "$dirpart/$file" && continue
8999 fdir=`$as_dirname -- "$file" ||
9000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9001 X"$file" : 'X\(//\)[^/]' \| \
9002 X"$file" : 'X\(//\)$' \| \
9003 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9004 $as_echo X"$file" |
9005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9006 s//\1/
9009 /^X\(\/\/\)[^/].*/{
9010 s//\1/
9013 /^X\(\/\/\)$/{
9014 s//\1/
9017 /^X\(\/\).*/{
9018 s//\1/
9021 s/.*/./; q'`
9022 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9023 # echo "creating $dirpart/$file"
9024 echo '# dummy' > "$dirpart/$file"
9025 done
9026 done
9030 esac
9031 done # for ac_tag
9034 as_fn_exit 0
9035 _ACEOF
9036 ac_clean_files=$ac_clean_files_save
9038 test $ac_write_fail = 0 ||
9039 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9042 # configure is writing to config.log, and then calls config.status.
9043 # config.status does its own redirection, appending to config.log.
9044 # Unfortunately, on DOS this fails, as config.log is still kept open
9045 # by configure, so config.status won't be able to write to it; its
9046 # output is simply discarded. So we exec the FD to /dev/null,
9047 # effectively closing config.log, so it can be properly (re)opened and
9048 # appended to by config.status. When coming back to configure, we
9049 # need to make the FD available again.
9050 if test "$no_create" != yes; then
9051 ac_cs_success=:
9052 ac_config_status_args=
9053 test "$silent" = yes &&
9054 ac_config_status_args="$ac_config_status_args --quiet"
9055 exec 5>/dev/null
9056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9057 exec 5>>config.log
9058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9059 # would make configure fail if this is the last instruction.
9060 $ac_cs_success || as_fn_exit 1
9062 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9064 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9068 echo ""
9069 echo "Configuration results:"
9070 echo "----------------------------------------------------"
9071 echo ""
9073 if test "x$xc_with_tcl" == "x" ; then
9074 if test "x$PYTHON" != x; then
9075 echo "Using Python interface (not recommended)"
9076 else
9077 echo "No Tcl/Tk, using standard Xlib/Xt interface."
9078 echo "If that is not what you wanted, then make sure"
9079 echo "you have Tcl/Tk development packages installed?"
9081 else
9082 echo "Using Tcl/Tk interface"
9084 echo ""
9086 if test "x$xc_with_cairo" == "x" ; then
9087 echo "No Cairo graphics."
9088 echo "If that is not what you wanted, then make sure"
9089 echo "you have libcairo and fontconfig installed."
9090 echo "Try installing package cairo-devel."
9091 else
9092 echo "Using Cairo graphics"
9094 echo ""
9095 echo "CFLAGS=${CFLAGS}"