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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || 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 :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
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 :
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
238 if test "x$CONFIG_SHELL" != x
; then :
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.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
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."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
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 :
398 as_val
=`expr "$@" || test $? -eq 1`
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.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
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
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 ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
543 test -d .
/-p && rmdir .
/-p
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
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`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="xcircuit.c"
586 ac_unique_file
="xcircuit.c"
587 # Factoring default headers for most tests.
588 ac_includes_default
="\
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
600 # ifdef HAVE_STDLIB_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
623 ac_subst_vars
='am__EXEEXT_FALSE
700 INSTALL_STRIP_PROGRAM
754 program_transform_name
767 enable_option_checking
769 enable_dependency_tracking
789 ac_precious_vars
='build_alias
808 # Initialize some variables set by options.
810 ac_init_version
=false
811 ac_unrecognized_opts
=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
822 program_transform_name
=s
,x
,x
,
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir
='${exec_prefix}/bin'
837 sbindir
='${exec_prefix}/sbin'
838 libexecdir
='${exec_prefix}/libexec'
839 datarootdir
='${prefix}/share'
840 datadir
='${datarootdir}'
841 sysconfdir
='${prefix}/etc'
842 sharedstatedir
='${prefix}/com'
843 localstatedir
='${prefix}/var'
844 includedir
='${prefix}/include'
845 oldincludedir
='/usr/include'
846 docdir
='${datarootdir}/doc/${PACKAGE}'
847 infodir
='${datarootdir}/info'
852 libdir
='${exec_prefix}/lib'
853 localedir
='${datarootdir}/locale'
854 mandir
='${datarootdir}/man'
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\
$ac_option
868 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
879 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
881 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
884 -build |
--build |
--buil |
--bui |
--bu)
885 ac_prev
=build_alias
;;
886 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
887 build_alias
=$ac_optarg ;;
889 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
890 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
891 ac_prev
=cache_file
;;
892 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
893 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
894 cache_file
=$ac_optarg ;;
897 cache_file
=config.cache
;;
899 -datadir |
--datadir |
--datadi |
--datad)
901 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
902 datadir
=$ac_optarg ;;
904 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
905 |
--dataroo |
--dataro |
--datar)
906 ac_prev
=datarootdir
;;
907 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
908 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
909 datarootdir
=$ac_optarg ;;
911 -disable-* |
--disable-*)
912 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
915 as_fn_error $?
"invalid feature name: $ac_useropt"
916 ac_useropt_orig
=$ac_useropt
917 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep
=', ';;
925 eval enable_
$ac_useropt=no
;;
927 -docdir |
--docdir |
--docdi |
--doc |
--do)
929 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
932 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
934 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
937 -enable-* |
--enable-*)
938 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
941 as_fn_error $?
"invalid feature name: $ac_useropt"
942 ac_useropt_orig
=$ac_useropt
943 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep
=', ';;
951 eval enable_
$ac_useropt=\
$ac_optarg ;;
953 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
954 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
955 |
--exec |
--exe |
--ex)
956 ac_prev
=exec_prefix
;;
957 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
958 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
959 |
--exec=* |
--exe=* |
--ex=*)
960 exec_prefix
=$ac_optarg ;;
962 -gas |
--gas |
--ga |
--g)
963 # Obsolete; use --with-gas.
966 -help |
--help |
--hel |
--he |
-h)
968 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
969 ac_init_help
=recursive
;;
970 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
971 ac_init_help
=short
;;
973 -host |
--host |
--hos |
--ho)
974 ac_prev
=host_alias
;;
975 -host=* |
--host=* |
--hos=* |
--ho=*)
976 host_alias
=$ac_optarg ;;
978 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
980 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
982 htmldir
=$ac_optarg ;;
984 -includedir |
--includedir |
--includedi |
--included |
--include \
985 |
--includ |
--inclu |
--incl |
--inc)
986 ac_prev
=includedir
;;
987 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
988 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
989 includedir
=$ac_optarg ;;
991 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
993 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
994 infodir
=$ac_optarg ;;
996 -libdir |
--libdir |
--libdi |
--libd)
998 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1001 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1002 |
--libexe |
--libex |
--libe)
1003 ac_prev
=libexecdir
;;
1004 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1005 |
--libexe=* |
--libex=* |
--libe=*)
1006 libexecdir
=$ac_optarg ;;
1008 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1009 ac_prev
=localedir
;;
1010 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1011 localedir
=$ac_optarg ;;
1013 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1014 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1015 ac_prev
=localstatedir
;;
1016 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1017 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1018 localstatedir
=$ac_optarg ;;
1020 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1022 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1023 mandir
=$ac_optarg ;;
1025 -nfp |
--nfp |
--nf)
1026 # Obsolete; use --without-fp.
1029 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1030 |
--no-cr |
--no-c |
-n)
1033 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1034 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1037 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1038 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1039 |
--oldin |
--oldi |
--old |
--ol |
--o)
1040 ac_prev
=oldincludedir
;;
1041 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1042 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1043 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1044 oldincludedir
=$ac_optarg ;;
1046 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1048 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1049 prefix
=$ac_optarg ;;
1051 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1052 |
--program-pre |
--program-pr |
--program-p)
1053 ac_prev
=program_prefix
;;
1054 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1055 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1056 program_prefix
=$ac_optarg ;;
1058 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1059 |
--program-suf |
--program-su |
--program-s)
1060 ac_prev
=program_suffix
;;
1061 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1062 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1063 program_suffix
=$ac_optarg ;;
1065 -program-transform-name |
--program-transform-name \
1066 |
--program-transform-nam |
--program-transform-na \
1067 |
--program-transform-n |
--program-transform- \
1068 |
--program-transform |
--program-transfor \
1069 |
--program-transfo |
--program-transf \
1070 |
--program-trans |
--program-tran \
1071 |
--progr-tra |
--program-tr |
--program-t)
1072 ac_prev
=program_transform_name
;;
1073 -program-transform-name=* |
--program-transform-name=* \
1074 |
--program-transform-nam=* |
--program-transform-na=* \
1075 |
--program-transform-n=* |
--program-transform-=* \
1076 |
--program-transform=* |
--program-transfor=* \
1077 |
--program-transfo=* |
--program-transf=* \
1078 |
--program-trans=* |
--program-tran=* \
1079 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1080 program_transform_name
=$ac_optarg ;;
1082 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1084 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1085 pdfdir
=$ac_optarg ;;
1087 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1089 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1092 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1093 |
-silent |
--silent |
--silen |
--sile |
--sil)
1096 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1098 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1100 sbindir
=$ac_optarg ;;
1102 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1103 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1104 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1106 ac_prev
=sharedstatedir
;;
1107 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1108 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1109 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1111 sharedstatedir
=$ac_optarg ;;
1113 -site |
--site |
--sit)
1115 -site=* |
--site=* |
--sit=*)
1118 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1120 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1121 srcdir
=$ac_optarg ;;
1123 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1124 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1125 ac_prev
=sysconfdir
;;
1126 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1127 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1128 sysconfdir
=$ac_optarg ;;
1130 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1131 ac_prev
=target_alias
;;
1132 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1133 target_alias
=$ac_optarg ;;
1135 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1138 -version |
--version |
--versio |
--versi |
--vers |
-V)
1139 ac_init_version
=: ;;
1142 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1145 as_fn_error $?
"invalid package name: $ac_useropt"
1146 ac_useropt_orig
=$ac_useropt
1147 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep
=', ';;
1155 eval with_
$ac_useropt=\
$ac_optarg ;;
1157 -without-* |
--without-*)
1158 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1161 as_fn_error $?
"invalid package name: $ac_useropt"
1162 ac_useropt_orig
=$ac_useropt
1163 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1168 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep
=', ';;
1171 eval with_
$ac_useropt=no
;;
1174 # Obsolete; use --with-x.
1177 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1178 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1179 ac_prev
=x_includes
;;
1180 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1181 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1182 x_includes
=$ac_optarg ;;
1184 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1185 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1186 ac_prev
=x_libraries
;;
1187 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1188 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1189 x_libraries
=$ac_optarg ;;
1191 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1196 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1200 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1202 eval $ac_envvar=\
$ac_optarg
1203 export $ac_envvar ;;
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 if test -n "$ac_prev"; then
1217 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $?
"missing argument to $ac_option"
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1224 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 # Check all directory arguments for consistency.
1230 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1235 eval ac_val
=\$
$ac_var
1236 # Remove trailing slashes.
1239 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\
$ac_val;;
1242 # Be sure to have absolute directory names.
1244 [\\/$
]* | ?
:[\\/]* ) continue;;
1245 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1247 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1255 target
=$target_alias
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x
; then
1259 if test "x$build_alias" = x
; then
1260 cross_compiling
=maybe
1261 elif test "x$build_alias" != "x$host_alias"; then
1267 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1269 test "$silent" = yes && exec 6>/dev
/null
1272 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di
=`ls -di .` &&
1274 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $?
"working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $?
"pwd does not report name of working directory"
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted
=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir
=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1312 ac_srcdir_defaulted
=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1316 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1318 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1330 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 for ac_var
in $ac_precious_vars; do
1333 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1335 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1340 # Report the --help message.
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1346 \`configure' configures this package to adapt to many kinds of systems.
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1353 Defaults for the options are specified in brackets.
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1377 For better control, use the options below.
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1409 --x-includes=DIR X include files are
in DIR
1410 --x-libraries=DIR X library files are
in DIR
1413 --build=BUILD configure
for building on BUILD
[guessed
]
1414 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1415 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1419 if test -n "$ac_init_help"; then
1424 --disable-option-checking ignore unrecognized
--enable/--with options
1425 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1426 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1427 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1428 --disable-silent-rules verbose build output
(undo
: "make V=0")
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --enable-optimize enable compile-time optimizer flag
-O2
1434 --enable-asg enable support
for Automatic Schematic Generation
1435 --disable-lgf disable support
for reading Caltech tools
1436 analog simulator .lgf files
1437 --disable-focus-fix disable focus fix
for some window managers
1438 --enable-memdebug enable memory debugging
1441 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1442 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1443 --with-x use the X Window System
1444 --with-xpm=DIR use Xpm include
/library files
in DIR
1445 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1446 --with-cairo Use cairo graphics library
[default
=yes]
1447 --with-tcl=DIR Find tclConfig.sh
in DIR
1448 --with-tk=DIR Find tkConfig.sh
in DIR
1449 --with-tclincls=DIR Find tcl.h
in DIR
1450 --with-tkincls=DIR Find tk.h
in DIR
1451 --with-tcllibs=DIR Find Tcl library
in DIR
1452 --with-tklibs=DIR Find Tk library
in DIR
1453 --with-gs=DIR path to ghostscript
1454 --with-ngspice=DIR path to ngspice
1455 --with-python=DIR path to python interpreter
1457 Some influential environment variables
:
1458 CC C compiler
command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1461 nonstandard directory
<lib dir
>
1462 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1463 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1464 you have headers
in a nonstandard directory
<include dir
>
1466 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1467 PKG_CONFIG path to pkg-config utility
1469 directories to add to pkg-config
's search path
1471 path overriding pkg-config's built-in search path
1473 C compiler flags
for cairo
, overriding pkg-config
1474 cairo_LIBS linker flags
for cairo
, overriding pkg-config
1476 C compiler flags
for fontconfig
, overriding pkg-config
1478 linker flags
for fontconfig
, overriding pkg-config
1480 Use these variables to override the choices made by
`configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to the package provider.
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1513 .) # We are building in place.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1547 generated by GNU Autoconf 2.69
1549 Copyright (C) 2012 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1570 *) ac_try_echo
=$ac_try;;
1572 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1576 if test -s conftest.err
; then
1577 grep -v '^ *+' conftest.err
>conftest.er1
1578 cat conftest.er1
>&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.
$ac_objext; then :
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.
$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status
$ac_retval
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1603 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1604 rm -f conftest.
$ac_objext conftest
$ac_exeext
1605 if { { ac_try
="$ac_link"
1607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 test -x conftest$ac_exeext
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_try_run LINENO
1645 # ----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1647 # that executables *can* be run.
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_link"
1653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1654 *) ac_try_echo
=$ac_try;;
1656 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>&5
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1662 { { case "(($ac_try" in
1663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_try") 2>&5
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; }; }; then :
1674 $as_echo "$as_me: program exited with status $ac_status" >&5
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1678 ac_retval=$ac_status
1680 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1686 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1687 # --------------------------------------------
1688 # Tries to find the compile-time value of EXPR in a program that includes
1689 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1691 ac_fn_c_compute_int ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if test "$cross_compiling" = yes; then
1695 # Depending upon the size, compute the lo and hi bounds.
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1702 static int test_array [1 - 2 * !(($2) >= 0)];
1704 return test_array [0];
1710 if ac_fn_c_try_compile "$LINENO"; then :
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1719 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1721 return test_array [0];
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_hi=$ac_mid; break
1730 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1731 if test $ac_lo -le $ac_mid; then
1735 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1746 static int test_array [1 - 2 * !(($2) < 0)];
1748 return test_array [0];
1754 if ac_fn_c_try_compile "$LINENO"; then :
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1763 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1765 return test_array [0];
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 ac_lo=$ac_mid; break
1774 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1775 if test $ac_mid -le $ac_hi; then
1779 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 # Binary search between lo and hi bounds.
1790 while test "x$ac_lo" != "x$ac_hi"; do
1791 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1798 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1800 return test_array [0];
1806 if ac_fn_c_try_compile "$LINENO"; then :
1809 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1821 static long int longval () { return $2; }
1822 static unsigned long int ulongval () { return $2; }
1829 FILE *f = fopen ("conftest.val", "w");
1834 long int i = longval ();
1837 fprintf (f, "%ld", i);
1841 unsigned long int i = ulongval ();
1844 fprintf (f, "%lu", i);
1846 /* Do not output a trailing newline, as this causes \r\n confusion
1847 on some platforms. */
1848 return ferror (f) || fclose (f) != 0;
1854 if ac_fn_c_try_run "$LINENO"; then :
1855 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1860 conftest.$ac_objext conftest.beam conftest.$ac_ext
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_c_compute_int
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1878 *) ac_try_echo
=$ac_try;;
1880 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 if test -s conftest.err
; then
1885 grep -v '^ *+' conftest.err
>conftest.er1
1886 cat conftest.er1
>&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } > conftest.i
&& {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.
$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status
$ac_retval
1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists and can be compiled using the include files in
1909 # INCLUDES, setting the cache variable VAR accordingly.
1910 ac_fn_c_check_header_compile
()
1912 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \
${$3+:} false
; then :
1916 $as_echo_n "(cached) " >&6
1918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1923 if ac_fn_c_try_compile
"$LINENO"; then :
1928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_header_compile
1937 # ac_fn_c_check_func LINENO FUNC VAR
1938 # ----------------------------------
1939 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1940 ac_fn_c_check_func
()
1942 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \
${$3+:} false
; then :
1946 $as_echo_n "(cached) " >&6
1948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1952 #define $2 innocuous_$2
1954 /* System header to define __stub macros and hopefully few prototypes,
1955 which can conflict with char $2 (); below.
1956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1957 <limits.h> exists even on freestanding compilers. */
1960 # include <limits.h>
1962 # include <assert.h>
1967 /* Override any GCC internal prototype to avoid an error.
1968 Use char because int might match the return type of a GCC
1969 builtin and then its argument prototype would still apply. */
1974 /* The GNU C library defines this for functions which it implements
1975 to always fail with ENOSYS. Some functions are actually named
1976 something starting with __ and the normal name is an alias. */
1977 #if defined __stub_$2 || defined __stub___$2
1989 if ac_fn_c_try_link
"$LINENO"; then :
1994 rm -f core conftest.err conftest.
$ac_objext \
1995 conftest
$ac_exeext conftest.
$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_func
2004 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007 # the include files in INCLUDES and setting the cache variable VAR
2009 ac_fn_c_check_header_mongrel
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 if eval \
${$3+:} false
; then :
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \
${$3+:} false
; then :
2016 $as_echo_n "(cached) " >&6
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 # Is the header compilable?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024 $as_echo_n "checking $2 usability... " >&6; }
2025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2031 ac_header_compiler
=yes
2033 ac_header_compiler
=no
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037 $as_echo "$ac_header_compiler" >&6; }
2039 # Is the header present?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041 $as_echo_n "checking $2 presence... " >&6; }
2042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 if ac_fn_c_try_cpp
"$LINENO"; then :
2047 ac_header_preproc
=yes
2049 ac_header_preproc
=no
2051 rm -f conftest.err conftest.i conftest.
$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053 $as_echo "$ac_header_preproc" >&6; }
2055 # So? What about this header?
2056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2067 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2071 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if eval \
${$3+:} false
; then :
2079 $as_echo_n "(cached) " >&6
2081 eval "$3=\$ac_header_compiler"
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 } # ac_fn_c_check_header_mongrel
2090 cat >config.log
<<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2094 It was created by $as_me, which was
2095 generated by GNU Autoconf 2.69. Invocation command line was
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir
=.
2131 $as_echo "PATH: $as_dir"
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_must_keep_next
=false
2161 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2162 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2163 |
-silent |
--silent |
--silen |
--sile |
--sil)
2166 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2171 as_fn_append ac_configure_args1
" '$ac_arg'"
2172 if test $ac_must_keep_next = true
; then
2173 ac_must_keep_next
=false
# Got value, back to normal.
2176 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2177 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2178 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2179 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 -* ) ac_must_keep_next
=true
;;
2187 as_fn_append ac_configure_args
" '$ac_arg'"
2192 { ac_configure_args0
=; unset ac_configure_args0
;}
2193 { ac_configure_args1
=; unset ac_configure_args1
;}
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2205 $as_echo "## ---------------- ##
2206 ## Cache variables. ##
2207 ## ---------------- ##"
2209 # The following way of writing the cache mishandles newlines in values,
2211 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2212 eval ac_val=\$$ac_var
2216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 _ | IFS | as_nl) ;; #(
2221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2222 *) { eval $ac_var=; unset $ac_var;} ;;
2227 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2228 *${as_nl}ac_space=\ *)
2230 "s/'\''/'\''\\\\'\'''\''/g;
2231 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2241 $as_echo "## ----------------- ##
2242 ## Output variables. ##
2243 ## ----------------- ##"
2245 for ac_var in $ac_subst_vars
2247 eval ac_val=\$$ac_var
2249 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 $as_echo "$ac_var='\''$ac_val'\''"
2255 if test -n "$ac_subst_files"; then
2256 $as_echo "## ------------------- ##
2257 ## File substitutions. ##
2258 ## ------------------- ##"
2260 for ac_var
in $ac_subst_files
2262 eval ac_val
=\$
$ac_var
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 $as_echo "$ac_var='\''$ac_val'\''"
2271 if test -s confdefs.h; then
2272 $as_echo "## ----------- ##
2279 test "$ac_signal" != 0 &&
2280 $as_echo "$as_me: caught signal $ac_signal"
2281 $as_echo "$as_me: exit $exit_status"
2283 rm -f core *.core core.conftest.* &&
2284 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287 for ac_signal
in 1 2 13 15; do
2288 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2293 rm -f -r conftest
* confdefs.h
2295 $as_echo "/* confdefs.h */" > confdefs.h
2297 # Predefined preprocessor variables.
2299 cat >>confdefs.h
<<_ACEOF
2300 #define PACKAGE_NAME "$PACKAGE_NAME"
2303 cat >>confdefs.h
<<_ACEOF
2304 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307 cat >>confdefs.h
<<_ACEOF
2308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2311 cat >>confdefs.h
<<_ACEOF
2312 #define PACKAGE_STRING "$PACKAGE_STRING"
2315 cat >>confdefs.h
<<_ACEOF
2316 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319 cat >>confdefs.h
<<_ACEOF
2320 #define PACKAGE_URL "$PACKAGE_URL"
2324 # Let the site file select an alternate cache file if it wants to.
2325 # Prefer an explicitly selected file to automatically selected ones.
2328 if test -n "$CONFIG_SITE"; then
2329 # We do not want a PATH search for config.site.
2330 case $CONFIG_SITE in #((
2331 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2332 */*) ac_site_file1
=$CONFIG_SITE;;
2333 *) ac_site_file1
=.
/$CONFIG_SITE;;
2335 elif test "x$prefix" != xNONE
; then
2336 ac_site_file1
=$prefix/share
/config.site
2337 ac_site_file2
=$prefix/etc
/config.site
2339 ac_site_file1
=$ac_default_prefix/share
/config.site
2340 ac_site_file2
=$ac_default_prefix/etc
/config.site
2342 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2344 test "x$ac_site_file" = xNONE
&& continue
2345 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2350 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $?
"failed to load site script $ac_site_file
2353 See \`config.log' for more details" "$LINENO" 5; }
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2365 *) .
"./$cache_file";;
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 # Check that the precious variables saved in the cache have kept the same
2376 ac_cache_corrupted
=false
2377 for ac_var
in $ac_precious_vars; do
2378 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2379 eval ac_new_set
=\
$ac_env_${ac_var}_set
2380 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2381 eval ac_new_val
=\
$ac_env_${ac_var}_value
2382 case $ac_old_set,$ac_new_set in
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386 ac_cache_corrupted
=: ;;
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390 ac_cache_corrupted
=: ;;
2393 if test "x$ac_old_val" != "x$ac_new_val"; then
2394 # differences in whitespace do not lead to failure.
2395 ac_old_val_w
=`echo x $ac_old_val`
2396 ac_new_val_w
=`echo x $ac_new_val`
2397 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 ac_cache_corrupted
=:
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404 eval $ac_var=\
$ac_old_val
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2407 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2409 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2412 # Pass precious variables to config.status.
2413 if test "$ac_new_set" = set; then
2415 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 *) ac_arg
=$ac_var=$ac_new_val ;;
2418 case " $ac_configure_args " in
2419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2420 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2424 if $ac_cache_corrupted; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2431 ## -------------------- ##
2432 ## Main body of script. ##
2433 ## -------------------- ##
2436 ac_cpp
='$CPP $CPPFLAGS'
2437 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2446 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2447 if test -f "$ac_dir/install-sh"; then
2449 ac_install_sh
="$ac_aux_dir/install-sh -c"
2451 elif test -f "$ac_dir/install.sh"; then
2453 ac_install_sh
="$ac_aux_dir/install.sh -c"
2455 elif test -f "$ac_dir/shtool"; then
2457 ac_install_sh
="$ac_aux_dir/shtool install -c"
2461 if test -z "$ac_aux_dir"; then
2462 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2465 # These three variables are undocumented and unsupported,
2466 # and are intended to be withdrawn in a future Autoconf release.
2467 # They can cause serious problems if a builder's source tree is in a directory
2468 # whose full name contains unusual characters.
2469 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2470 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2471 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2474 # Make sure we can run config.sub.
2475 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2476 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2479 $as_echo_n "checking build system type... " >&6; }
2480 if ${ac_cv_build+:} false
; then :
2481 $as_echo_n "(cached) " >&6
2483 ac_build_alias
=$build_alias
2484 test "x$ac_build_alias" = x
&&
2485 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2486 test "x$ac_build_alias" = x
&&
2487 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2488 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2489 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2493 $as_echo "$ac_cv_build" >&6; }
2494 case $ac_cv_build in
2496 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2499 ac_save_IFS
=$IFS; IFS
='-'
2505 # Remember, the first character of IFS is used to create $*,
2506 # except with old shells:
2509 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2513 $as_echo_n "checking host system type... " >&6; }
2514 if ${ac_cv_host+:} false
; then :
2515 $as_echo_n "(cached) " >&6
2517 if test "x$host_alias" = x
; then
2518 ac_cv_host
=$ac_cv_build
2520 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2521 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2526 $as_echo "$ac_cv_host" >&6; }
2529 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2532 ac_save_IFS
=$IFS; IFS
='-'
2538 # Remember, the first character of IFS is used to create $*,
2539 # except with old shells:
2542 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2546 $as_echo_n "checking target system type... " >&6; }
2547 if ${ac_cv_target+:} false
; then :
2548 $as_echo_n "(cached) " >&6
2550 if test "x$target_alias" = x
; then
2551 ac_cv_target
=$ac_cv_host
2553 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2554 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2559 $as_echo "$ac_cv_target" >&6; }
2560 case $ac_cv_target in
2562 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2564 target
=$ac_cv_target
2565 ac_save_IFS
=$IFS; IFS
='-'
2571 # Remember, the first character of IFS is used to create $*,
2572 # except with old shells:
2575 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2578 # The aliases save the names the user supplied, while $host etc.
2579 # will get canonicalized.
2580 test -n "$target_alias" &&
2581 test "$program_prefix$program_suffix$program_transform_name" = \
2583 program_prefix
=${target_alias}-
2588 VERSION
=`cat ./VERSION | cut -d. -f1-2`
2589 am__api_version
='1.14'
2591 # Find a good install program. We prefer a C program (faster),
2592 # so one script is as good as another. But avoid the broken or
2593 # incompatible versions:
2594 # SysV /etc/install, /usr/sbin/install
2595 # SunOS /usr/etc/install
2596 # IRIX /sbin/install
2598 # AmigaOS /C/install, which installs bootblocks on floppy discs
2599 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2600 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2601 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2602 # OS/2's system install, which has a completely different semantic
2603 # ./install, which can be erroneously created by make from ./install.sh.
2604 # Reject install programs that cannot install multiple files.
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2606 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2607 if test -z "$INSTALL"; then
2608 if ${ac_cv_path_install+:} false
; then :
2609 $as_echo_n "(cached) " >&6
2611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir
=.
2616 # Account for people who put trailing slashes in PATH elements.
2617 case $as_dir/ in #((
2618 .
/ | .
// |
/[cC
]/* | \
2619 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2620 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2623 # OSF1 and SCO ODT 3.0 have their own names for install.
2624 # Don't use installbsd from OSF since it installs stuff as root
2626 for ac_prog
in ginstall scoinst
install; do
2627 for ac_exec_ext
in '' $ac_executable_extensions; do
2628 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2629 if test $ac_prog = install &&
2630 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2631 # AIX install. It has an incompatible calling convention.
2633 elif test $ac_prog = install &&
2634 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2635 # program-specific install script used by HP pwplus--don't use.
2638 rm -rf conftest.one conftest.two conftest.dir
2639 echo one
> conftest.one
2640 echo two
> conftest.two
2642 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2643 test -s conftest.one
&& test -s conftest.two
&&
2644 test -s conftest.dir
/conftest.one
&&
2645 test -s conftest.dir
/conftest.two
2647 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2660 rm -rf conftest.one conftest.two conftest.dir
2663 if test "${ac_cv_path_install+set}" = set; then
2664 INSTALL
=$ac_cv_path_install
2666 # As a last resort, use the slow shell script. Don't cache a
2667 # value for INSTALL within a source directory, because that will
2668 # break other packages using the cache if that directory is
2669 # removed, or if the value is a relative name.
2670 INSTALL
=$ac_install_sh
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2674 $as_echo "$INSTALL" >&6; }
2676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2677 # It thinks the first close brace ends the variable substitution.
2678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2680 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2682 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2685 $as_echo_n "checking whether build environment is sane... " >&6; }
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name. Accept space and tab only in the latter.
2691 *[\\\"\
#\$\&\'\`$am_lf]*)
2692 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2695 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2696 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2699 # Do 'set' in a subshell so we don't clobber the current shell's
2700 # arguments. Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2706 for am_try
in 1 2; do
2707 echo "timestamp, slept: $am_has_slept" > conftest.
file
2708 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2709 if test "$*" = "X"; then
2711 set X
`ls -t "$srcdir/configure" conftest.file`
2713 if test "$*" != "X $srcdir/configure conftest.file" \
2714 && test "$*" != "X conftest.file $srcdir/configure"; then
2716 # If neither matched, then we have a broken ls. This can happen
2717 # if, for instance, CONFIG_SHELL is bash and it inherits a
2718 # broken ls alias from the environment. This has actually
2719 # happened. Such a system could not be considered "sane".
2720 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2721 alias in your environment" "$LINENO" 5
2723 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2730 test "$2" = conftest.
file
2736 as_fn_error $?
"newly created file is older than distributed files!
2737 Check your system clock" "$LINENO" 5
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2740 $as_echo "yes" >&6; }
2741 # If we didn't sleep, we still need to ensure time stamps of config.status and
2742 # generated files are strictly newer.
2744 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2751 test "$program_prefix" != NONE
&&
2752 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2753 # Use a double $ so make ignores it.
2754 test "$program_suffix" != NONE
&&
2755 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2756 # Double any \ or $.
2757 # By default was `s,x,x', remove it if useless.
2758 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2759 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2761 # expand $ac_aux_dir to an absolute path
2762 am_aux_dir
=`cd $ac_aux_dir && pwd`
2764 if test x
"${MISSING+set}" != xset
; then
2767 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2769 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2772 # Use eval to expand $SHELL
2773 if eval "$MISSING --is-lightweight"; then
2774 am_missing_run
="$MISSING "
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2778 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2781 if test x
"${install_sh}" != xset
; then
2784 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2786 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2790 # Installed binaries are usually stripped using 'strip' when the user
2791 # run "make install-strip". However 'strip' might not be the right
2792 # tool to use in cross-compilation environments, therefore Automake
2793 # will honor the 'STRIP' environment variable to overrule this program.
2794 if test "$cross_compiling" != no
; then
2795 if test -n "$ac_tool_prefix"; then
2796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2797 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_STRIP+:} false
; then :
2801 $as_echo_n "(cached) " >&6
2803 if test -n "$STRIP"; then
2804 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir
=.
2811 for ac_exec_ext
in '' $ac_executable_extensions; do
2812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2813 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 STRIP
=$ac_cv_prog_STRIP
2824 if test -n "$STRIP"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2826 $as_echo "$STRIP" >&6; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2834 if test -z "$ac_cv_prog_STRIP"; then
2836 # Extract the first word of "strip", so it can be a program name with args.
2837 set dummy strip
; ac_word
=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2841 $as_echo_n "(cached) " >&6
2843 if test -n "$ac_ct_STRIP"; then
2844 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir
=.
2851 for ac_exec_ext
in '' $ac_executable_extensions; do
2852 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_ac_ct_STRIP
="strip"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2864 if test -n "$ac_ct_STRIP"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2866 $as_echo "$ac_ct_STRIP" >&6; }
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2872 if test "x$ac_ct_STRIP" = x
; then
2875 case $cross_compiling:$ac_tool_warned in
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned
=yes ;;
2884 STRIP
="$ac_cv_prog_STRIP"
2888 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2891 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2892 if test -z "$MKDIR_P"; then
2893 if ${ac_cv_path_mkdir+:} false
; then :
2894 $as_echo_n "(cached) " >&6
2896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2897 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2900 test -z "$as_dir" && as_dir
=.
2901 for ac_prog
in mkdir gmkdir
; do
2902 for ac_exec_ext
in '' $ac_executable_extensions; do
2903 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2904 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2905 'mkdir (GNU coreutils) '* | \
2906 'mkdir (coreutils) '* | \
2907 'mkdir (fileutils) '4.1*)
2908 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2918 test -d .
/--version && rmdir .
/--version
2919 if test "${ac_cv_path_mkdir+set}" = set; then
2920 MKDIR_P
="$ac_cv_path_mkdir -p"
2922 # As a last resort, use the slow shell script. Don't cache a
2923 # value for MKDIR_P within a source directory, because that will
2924 # break other packages using the cache if that directory is
2925 # removed, or if the value is a relative name.
2926 MKDIR_P
="$ac_install_sh -d"
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2930 $as_echo "$MKDIR_P" >&6; }
2932 for ac_prog
in gawk mawk nawk
awk
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy
$ac_prog; ac_word
=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_AWK+:} false
; then :
2939 $as_echo_n "(cached) " >&6
2941 if test -n "$AWK"; then
2942 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir
=.
2949 for ac_exec_ext
in '' $ac_executable_extensions; do
2950 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_AWK
="$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 if test -n "$AWK"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2964 $as_echo "$AWK" >&6; }
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2971 test -n "$AWK" && break
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2977 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2978 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2979 $as_echo_n "(cached) " >&6
2981 cat >conftest.
make <<\_ACEOF
2984 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2986 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2989 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2991 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2995 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2997 $as_echo "yes" >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 SET_MAKE
="MAKE=${MAKE-make}"
3005 rm -rf .tst
2>/dev
/null
3006 mkdir .tst
2>/dev
/null
3007 if test -d .tst
; then
3012 rmdir .tst
2>/dev
/null
3014 # Check whether --enable-silent-rules was given.
3015 if test "${enable_silent_rules+set}" = set; then :
3016 enableval
=$enable_silent_rules;
3019 case $enable_silent_rules in # (((
3020 yes) AM_DEFAULT_VERBOSITY
=0;;
3021 no
) AM_DEFAULT_VERBOSITY
=1;;
3022 *) AM_DEFAULT_VERBOSITY
=1;;
3024 am_make
=${MAKE-make}
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3026 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3027 if ${am_cv_make_support_nested_variables+:} false
; then :
3028 $as_echo_n "(cached) " >&6
3030 if $as_echo 'TRUE=$(BAR$(V))
3036 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3037 am_cv_make_support_nested_variables
=yes
3039 am_cv_make_support_nested_variables
=no
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3043 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3044 if test $am_cv_make_support_nested_variables = yes; then
3046 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3048 AM_V
=$AM_DEFAULT_VERBOSITY
3049 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3053 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3054 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3055 # is not polluted with repeated "-I."
3056 am__isrc
=' -I$(srcdir)'
3057 # test to see if srcdir already configured
3058 if test -f $srcdir/config.status
; then
3059 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3063 # test whether we have cygpath
3064 if test -z "$CYGPATH_W"; then
3065 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3066 CYGPATH_W
='cygpath -w'
3073 # Define the identity of the package.
3079 cat >>confdefs.h
<<_ACEOF
3080 #define PACKAGE "$PACKAGE"
3084 cat >>confdefs.h
<<_ACEOF
3085 #define VERSION "$VERSION"
3088 # Some tools Automake needs.
3090 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3093 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3096 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3099 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3102 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3104 # For better backward compatibility. To be removed once Automake 1.9.x
3105 # dies out for good. For more background, see:
3106 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3107 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3108 mkdir_p
='$(MKDIR_P)'
3110 # We need awk for the "check" target. The system "awk" is bad on
3112 # Always define AMTAR for backward compatibility. Yes, it's still used
3113 # in the wild :-( We should find a proper way to deprecate it ...
3117 # We'll loop over all known methods to create a tar archive until one works.
3118 _am_tools
='gnutar pax cpio none'
3120 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3127 # POSIX will say in a future version that running "rm -f" with no argument
3128 # is OK; and we want to be able to make that assumption in our Makefile
3129 # recipes. So use an aggressive probe to check that the usage we want is
3130 # actually supported "in the wild" to an acceptable degree.
3131 # See automake bug#10828.
3132 # To make any issue more visible, cause the running configure to be aborted
3133 # by default if the 'rm' program in use doesn't match our expectations; the
3134 # user can still override this though.
3135 if rm -f && rm -fr && rm -rf; then : OK
; else
3139 Your 'rm' program seems unable to run without file operands specified
3140 on the command line, even when the '-f' option is present. This is contrary
3141 to the behaviour of most rm programs out there, and not conforming with
3142 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3144 Please tell bug-automake@gnu.org about your system, including the value
3145 of your $PATH and any error possibly output before this message. This
3146 can help us improve future automake versions.
3149 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3150 echo 'Configuration will proceed anyway, since you have set the' >&2
3151 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3155 Aborting the configuration process, to ensure you take notice of the issue.
3157 You can download and install GNU coreutils to get an 'rm' implementation
3158 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3160 If you want to complete the configuration process using your problematic
3161 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3162 to "yes", and re-run configure.
3165 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3173 ALL_TARGET
="undefined-target"
3174 INSTALL_TARGET
="undefined-install-target"
3175 REVISION
=`cat ./VERSION | cut -d. -f3`
3176 INTERPRETER
=NOINTERP
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3189 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3191 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3192 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3193 $as_echo_n "(cached) " >&6
3195 cat >conftest.
make <<\_ACEOF
3198 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3203 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3205 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3209 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3211 $as_echo "yes" >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 SET_MAKE
="MAKE=${MAKE-make}"
3221 ac_cpp
='$CPP $CPPFLAGS'
3222 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false
; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC
="$CC" # Let the user override the test.
3236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir
=.
3241 for ac_exec_ext
in '' $ac_executable_extensions; do
3242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3264 if test -z "$ac_cv_prog_CC"; then
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267 set dummy gcc
; ac_word
=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir
=.
3281 for ac_exec_ext
in '' $ac_executable_extensions; do
3282 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_ac_ct_CC
="gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296 $as_echo "$ac_ct_CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3302 if test "x$ac_ct_CC" = x
; then
3305 case $cross_compiling:$ac_tool_warned in
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned
=yes ;;
3317 if test -z "$CC"; then
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if ${ac_cv_prog_CC+:} false
; then :
3324 $as_echo_n "(cached) " >&6
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC
="$CC" # Let the user override the test.
3329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3333 test -z "$as_dir" && as_dir
=.
3334 for ac_exec_ext
in '' $ac_executable_extensions; do
3335 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3358 if test -z "$CC"; then
3359 # Extract the first word of "cc", so it can be a program name with args.
3360 set dummy cc
; ac_word
=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_CC+:} false
; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC
="$CC" # Let the user override the test.
3370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir
=.
3375 for ac_exec_ext
in '' $ac_executable_extensions; do
3376 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378 ac_prog_rejected
=yes
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy
$ac_cv_prog_CC
3393 if test $# != 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3398 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$CC"; then
3415 if test -n "$ac_tool_prefix"; then
3416 for ac_prog
in cl.exe
3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false
; then :
3423 $as_echo_n "(cached) " >&6
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC
="$CC" # Let the user override the test.
3428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir
=.
3433 for ac_exec_ext
in '' $ac_executable_extensions; do
3434 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3455 test -n "$CC" && break
3458 if test -z "$CC"; then
3460 for ac_prog
in cl.exe
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463 set dummy
$ac_prog; ac_word
=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir
=.
3477 for ac_exec_ext
in '' $ac_executable_extensions; do
3478 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_ac_ct_CC
="$ac_prog"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3499 test -n "$ac_ct_CC" && break
3502 if test "x$ac_ct_CC" = x
; then
3505 case $cross_compiling:$ac_tool_warned in
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned
=yes ;;
3518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error $?
"no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details" "$LINENO" 5; }
3523 # Provide some information about the compiler.
3524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3527 for ac_option
in --version -v -V -qversion; do
3528 { { ac_try
="$ac_compiler $ac_option >&5"
3530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537 if test -s conftest.err; then
3539 ... rest of stderr output deleted ...
3540 10q' conftest.err >conftest.er1
3541 cat conftest.er1 >&5
3543 rm -f conftest.er1 conftest.err
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 ac_clean_files_save=$ac_clean_files
3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3561 # Try to create an executable without -o first, disregard a.out.
3562 # It will help us diagnose broken compilers, and finding out an intuition
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3565 $as_echo_n "checking whether the C compiler works... " >&6; }
3566 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3568 # The possible output files:
3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3572 for ac_file in $ac_files
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3581 if { { ac_try="$ac_link_default"
3583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3584 *) ac_try_echo
=$ac_try;;
3586 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link_default") 2>&5
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595 # so that the user can short-circuit this test for compilers unknown to
3597 for ac_file
in $ac_files ''
3599 test -f "$ac_file" ||
continue
3601 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3604 # We found the default executable, but exeext='' is most
3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3610 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3622 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3627 if test -z "$ac_file"; then :
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.
$ac_ext >&5
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 as_fn_error
77 "C compiler cannot create executables
3636 See \`config.log' for more details" "$LINENO" 5; }
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639 $as_echo "yes" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3642 $as_echo_n "checking for C compiler default output file name... " >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3644 $as_echo "$ac_file" >&6; }
3645 ac_exeext
=$ac_cv_exeext
3647 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3648 ac_clean_files
=$ac_clean_files_save
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650 $as_echo_n "checking for suffix of executables... " >&6; }
3651 if { { ac_try
="$ac_link"
3653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; then :
3662 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3663 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3664 # work properly (i.e., refer to `conftest.exe'), while it won't with
3666 for ac_file
in conftest.exe conftest conftest.
*; do
3667 test -f "$ac_file" ||
continue
3669 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3670 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3679 See \`config.log' for more details" "$LINENO" 5; }
3681 rm -f conftest conftest
$ac_cv_exeext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683 $as_echo "$ac_cv_exeext" >&6; }
3685 rm -f conftest.
$ac_ext
3686 EXEEXT
=$ac_cv_exeext
3688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3694 FILE *f = fopen ("conftest.out", "w");
3695 return ferror (f) || fclose (f) != 0;
3701 ac_clean_files
="$ac_clean_files conftest.out"
3702 # Check that the compiler produces executables we can run. If not, either
3703 # the compiler is broken, or we cross compile.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3705 $as_echo_n "checking whether we are cross compiling... " >&6; }
3706 if test "$cross_compiling" != yes; then
3707 { { ac_try
="$ac_link"
3709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_link") 2>&5
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3718 if { ac_try='./conftest$ac_cv_exeext'
3719 { { case "(($ac_try" in
3720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3721 *) ac_try_echo
=$ac_try;;
3723 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_try") 2>&5
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; }; then
3731 if test "$cross_compiling" = maybe
; then
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $?
"cannot run C compiled programs.
3737 If you meant to cross compile, use \`--host'.
3738 See \`config.log' for more details" "$LINENO" 5; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3743 $as_echo "$cross_compiling" >&6; }
3745 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3746 ac_clean_files
=$ac_clean_files_save
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3748 $as_echo_n "checking for suffix of object files... " >&6; }
3749 if ${ac_cv_objext+:} false
; then :
3750 $as_echo_n "(cached) " >&6
3752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 rm -f conftest.o conftest.obj
3764 if { { ac_try
="$ac_compile"
3766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 $as_echo "$ac_try_echo"; } >&5
3771 (eval "$ac_compile") 2>&5
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }; then :
3775 for ac_file in conftest.o conftest.obj conftest.*; do
3776 test -f "$ac_file" || continue;
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3790 See \
`config.log' for more details" "$LINENO" 5; }
3792 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3795 $as_echo "$ac_cv_objext" >&6; }
3796 OBJEXT=$ac_cv_objext
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3799 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3800 if ${ac_cv_c_compiler_gnu+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3817 if ac_fn_c_try_compile "$LINENO"; then :
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3827 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3828 if test $ac_compiler_gnu = yes; then
3833 ac_test_CFLAGS=${CFLAGS+set}
3834 ac_save_CFLAGS=$CFLAGS
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3836 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3837 if ${ac_cv_prog_cc_g+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 ac_save_c_werror_flag=$ac_c_werror_flag
3841 ac_c_werror_flag=yes
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3855 if ac_fn_c_try_compile "$LINENO"; then :
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3870 if ac_fn_c_try_compile "$LINENO"; then :
3873 ac_c_werror_flag=$ac_save_c_werror_flag
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 if ac_fn_c_try_compile "$LINENO"; then :
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_c_werror_flag=$ac_save_c_werror_flag
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3897 $as_echo "$ac_cv_prog_cc_g" >&6; }
3898 if test "$ac_test_CFLAGS" = set; then
3899 CFLAGS=$ac_save_CFLAGS
3900 elif test $ac_cv_prog_cc_g = yes; then
3901 if test "$GCC" = yes; then
3907 if test "$GCC" = yes; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3914 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3915 if ${ac_cv_prog_cc_c89+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 ac_cv_prog_cc_c89=no
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3926 struct buf { int x; };
3927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3928 static char *e (p, i)
3934 static char *f (char * (*g) (char **, int), char **p, ...)
3939 s = g (p, va_arg (v,int));
3944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3945 function prototypes and stuff, but not '\xHH' hex character constants.
3946 These don't provoke an error unfortunately, instead are silently treated
3947 as 'x'. The following induces an error, until -std is added to get
3948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3949 array size at least. It's necessary to write '\x00'==0 to get something
3950 that's true only with -std. */
3951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3954 inside strings and character constants. */
3956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958 int test (int i, double x);
3959 struct s1 {int (*f) (int a);};
3960 struct s2 {int (*f) (double a);};
3961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975 CC="$ac_save_CC $ac_arg"
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_prog_cc_c89=$ac_arg
3979 rm -f core conftest.err conftest.$ac_objext
3980 test "x$ac_cv_prog_cc_c89" != "xno" && break
3982 rm -f conftest.$ac_ext
3987 case "x$ac_cv_prog_cc_c89" in
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3990 $as_echo "none needed" >&6; } ;;
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3993 $as_echo "unsupported" >&6; } ;;
3995 CC="$CC $ac_cv_prog_cc_c89"
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999 if test "x$ac_cv_prog_cc_c89" != xno; then :
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4015 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4016 if ${am_cv_prog_cc_c_o+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4030 # Make sure it works both with $CC and with simple cc.
4031 # Following AC_PROG_CC_C_O, we do the test twice because some
4032 # compilers refuse to overwrite an existing .o file with -o,
4033 # though they will create one.
4034 am_cv_prog_cc_c_o=yes
4036 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4037 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } \
4041 && test -f conftest2.$ac_objext; then
4044 am_cv_prog_cc_c_o=no
4048 rm -f core conftest*
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4052 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4053 if test "$am_cv_prog_cc_c_o" != yes; then
4054 # Losing compiler, so override with the script.
4055 # FIXME: It is wrong to rewrite CC.
4056 # But if we don't then we get into trouble of one sort or another.
4057 # A longer-term fix would be to have automake use am__CC in this case,
4058 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4059 CC="$am_aux_dir/compile $CC"
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067 DEPDIR="${am__leading_dot}deps"
4069 ac_config_commands="$ac_config_commands depfiles"
4072 am_make=${MAKE-make}
4073 cat > confinc << 'END'
4075 @echo this is the am__doit target
4078 # If we don't find an include directive, just comment out the code.
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4080 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4084 # First try GNU make style include.
4085 echo "include confinc" > confmf
4086 # Ignore all kinds of additional output from 'make'.
4087 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4088 *the\ am__doit\ target*)
4094 # Now try BSD make style include.
4095 if test "$am__include" = "#"; then
4096 echo '.include "confinc"' > confmf
4097 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4098 *the\ am__doit\ target*)
4099 am__include=.include
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4108 $as_echo "$_am_result" >&6; }
4109 rm -f confinc confmf
4111 # Check whether --enable-dependency-tracking was given.
4112 if test "${enable_dependency_tracking+set}" = set; then :
4113 enableval=$enable_dependency_tracking;
4116 if test "x$enable_dependency_tracking" != xno; then
4117 am_depcomp="$ac_aux_dir/depcomp"
4121 if test "x$enable_dependency_tracking" != xno; then
4131 depcc="$CC" am_compiler_list=
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4134 $as_echo_n "checking dependency style of $depcc... " >&6; }
4135 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4139 # We make a subdir and do the tests there. Otherwise we can end up
4140 # making bogus files that we don't know about and never remove. For
4141 # instance it was reported that on HP-UX the gcc test will end up
4142 # making a dummy file named 'D' -- because '-MD' means "put the output
4146 # Copy depcomp to subdir because otherwise we won't find it if we're
4147 # using a relative directory.
4148 cp "$am_depcomp" conftest.dir
4150 # We will build objects and dependencies in a subdirectory because
4151 # it helps to detect inapplicable dependency modes. For instance
4152 # both Tru64's cc and ICC support -MD to output dependencies as a
4153 # side effect of compilation, but ICC will put the dependencies in
4154 # the current directory while Tru64 will put them in the object
4158 am_cv_CC_dependencies_compiler_type=none
4159 if test "$am_compiler_list" = ""; then
4160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4163 case " $depcc " in #(
4164 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4167 for depmode in $am_compiler_list; do
4168 # Setup a source with many dependencies, because some compilers
4169 # like to wrap large dependency lists on column 80 (with \), and
4170 # we should not choose a depcomp mode which is confused by this.
4172 # We need to recreate these files for each test, as the compiler may
4173 # overwrite some of them when testing with obscure command lines.
4174 # This happens at least with the AIX C compiler.
4176 for i in 1 2 3 4 5 6; do
4177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4178 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4179 # Solaris 10 /bin/sh.
4180 echo '/* dummy */' > sub/conftst$i.h
4182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4184 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4185 # mode. It turns out that the SunPro C++ compiler does not properly
4186 # handle '-M -o', and we need to detect this. Also, some Intel
4187 # versions had trouble with output in subdirs.
4188 am__obj=sub/conftest.${OBJEXT-o}
4189 am__minus_obj="-o $am__obj"
4192 # This depmode causes a compiler race in universal mode.
4193 test "$am__universal" = false || continue
4196 # After this tag, mechanisms are not by side-effect, so they'll
4197 # only be used when explicitly requested.
4198 if test "x$enable_dependency_tracking" = xyes; then
4204 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4205 # This compiler won't grok '-c -o', but also, the minuso test has
4206 # not run yet. These depmodes are late enough in the game, and
4207 # so weak that their functioning should not be impacted.
4208 am__obj=conftest.${OBJEXT-o}
4213 if depmode=$depmode \
4214 source=sub/conftest.c object=$am__obj \
4215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4216 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4217 >/dev/null 2>conftest.err &&
4218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4220 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4222 # icc doesn't choke on unknown options, it will just issue warnings
4223 # or remarks (even with -Werror). So we grep stderr for any message
4224 # that says an option was ignored or not supported.
4225 # When given -MP, icc 7.0 and 7.1 complain thusly:
4226 # icc: Command line warning: ignoring option '-M'; no argument required
4227 # The diagnosis changed in icc 8.0:
4228 # icc: Command line remark: option '-MP' not supported
4229 if (grep 'ignoring option' conftest.err ||
4230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4231 am_cv_CC_dependencies_compiler_type=$depmode
4240 am_cv_CC_dependencies_compiler_type=none
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4249 test "x$enable_dependency_tracking" != xno \
4250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4252 am__fastdepCC_FALSE='#'
4254 am__fastdepCC_TRUE='#'
4255 am__fastdepCC_FALSE=
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4261 $as_echo_n "checking for library containing strerror... " >&6; }
4262 if ${ac_cv_search_strerror+:} false; then :
4263 $as_echo_n "(cached) " >&6
4265 ac_func_search_save_LIBS=$LIBS
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4269 /* Override any GCC internal prototype to avoid an error.
4270 Use char because int might match the return type of a GCC
4271 builtin and then its argument prototype would still apply. */
4284 for ac_lib in '' cposix; do
4285 if test -z "$ac_lib"; then
4286 ac_res="none required"
4289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4291 if ac_fn_c_try_link "$LINENO"; then :
4292 ac_cv_search_strerror=$ac_res
4294 rm -f core conftest.err conftest.$ac_objext \
4296 if ${ac_cv_search_strerror+:} false; then :
4300 if ${ac_cv_search_strerror+:} false; then :
4303 ac_cv_search_strerror=no
4306 LIBS=$ac_func_search_save_LIBS
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4309 $as_echo "$ac_cv_search_strerror" >&6; }
4310 ac_res=$ac_cv_search_strerror
4311 if test "$ac_res" != no; then :
4312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4316 if test "x$U" != "x"; then
4317 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_RANLIB+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$RANLIB"; then
4329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 RANLIB=$ac_cv_prog_RANLIB
4349 if test -n "$RANLIB"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4351 $as_echo "$RANLIB" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4359 if test -z "$ac_cv_prog_RANLIB"; then
4360 ac_ct_RANLIB=$RANLIB
4361 # Extract the first word of "ranlib", so it can be a program name with args.
4362 set dummy ranlib; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 if test -n "$ac_ct_RANLIB"; then
4369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_ac_ct_RANLIB="ranlib"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4389 if test -n "$ac_ct_RANLIB"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4391 $as_echo "$ac_ct_RANLIB" >&6; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4397 if test "x$ac_ct_RANLIB" = x; then
4400 case $cross_compiling:$ac_tool_warned in
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4404 ac_tool_warned=yes ;;
4406 RANLIB=$ac_ct_RANLIB
4409 RANLIB="$ac_cv_prog_RANLIB"
4413 for ac_prog in gm4 gnum4 m4
4415 # Extract the first word of "$ac_prog", so it can be a program name with args.
4416 set dummy $ac_prog; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if ${ac_cv_path_M4+:} false; then :
4420 $as_echo_n "(cached) " >&6
4424 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 if test -n "$M4"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4448 $as_echo "$M4" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451 $as_echo "no" >&6; }
4455 test -n "$M4" && break
4459 case "$target_os" in
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4464 $as_echo_n "checking for sin in -lm... " >&6; }
4465 if ${ac_cv_lib_m_sin+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 ac_check_lib_save_LIBS=$LIBS
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4473 /* Override any GCC internal prototype to avoid an error.
4474 Use char because int might match the return type of a GCC
4475 builtin and then its argument prototype would still apply. */
4488 if ac_fn_c_try_link "$LINENO"; then :
4493 rm -f core conftest.err conftest.$ac_objext \
4494 conftest$ac_exeext conftest.$ac_ext
4495 LIBS=$ac_check_lib_save_LIBS
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4498 $as_echo "$ac_cv_lib_m_sin" >&6; }
4499 if test "x$ac_cv_lib_m_sin" = xyes; then :
4500 cat >>confdefs.h <<_ACEOF
4512 ac_cpp='$CPP $CPPFLAGS'
4513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4517 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4518 # On Suns, sometimes $CPP names a directory.
4519 if test -n "$CPP" && test -d "$CPP"; then
4522 if test -z "$CPP"; then
4523 if ${ac_cv_prog_CPP+:} false; then :
4524 $as_echo_n "(cached) " >&6
4526 # Double quotes because CPP needs to be expanded
4527 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4530 for ac_c_preproc_warn_flag in '' yes
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4541 # include <limits.h>
4543 # include <assert.h>
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4550 # Broken: fails on valid input.
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <ac_nonexistent.h>
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562 # Broken: success on invalid input.
4565 # Passes both tests.
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.
$ac_ext
4574 if $ac_preproc_ok; then :
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4587 $as_echo "$CPP" >&6; }
4589 for ac_c_preproc_warn_flag
in '' yes
4591 # Use a header file that comes with gcc, so configuring glibc
4592 # with a fresh cross-compiler works.
4593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4594 # <limits.h> exists even on freestanding compilers.
4595 # On the NeXT, cc -E runs the code through the compiler's parser,
4596 # not just through cpp. "Syntax error" is here to catch this case.
4597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4600 # include <limits.h>
4602 # include <assert.h>
4606 if ac_fn_c_try_cpp
"$LINENO"; then :
4609 # Broken: fails on valid input.
4612 rm -f conftest.err conftest.i conftest.
$ac_ext
4614 # OK, works on sane cases. Now check whether nonexistent headers
4615 # can be detected and how.
4616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #include <ac_nonexistent.h>
4620 if ac_fn_c_try_cpp
"$LINENO"; then :
4621 # Broken: success on invalid input.
4624 # Passes both tests.
4628 rm -f conftest.err conftest.i conftest.
$ac_ext
4631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4632 rm -f conftest.i conftest.err conftest.
$ac_ext
4633 if $ac_preproc_ok; then :
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4639 See \`config.log' for more details" "$LINENO" 5; }
4643 ac_cpp
='$CPP $CPPFLAGS'
4644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4650 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4651 if ${ac_cv_path_GREP+:} false
; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -z "$GREP"; then
4655 ac_path_GREP_found
=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4658 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4661 test -z "$as_dir" && as_dir
=.
4662 for ac_prog
in grep ggrep
; do
4663 for ac_exec_ext
in '' $ac_executable_extensions; do
4664 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4665 as_fn_executable_p
"$ac_path_GREP" ||
continue
4666 # Check for GNU ac_path_GREP and select it if it is found.
4667 # Check for GNU $ac_path_GREP
4668 case `"$ac_path_GREP" --version 2>&1` in
4670 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4673 $as_echo_n 0123456789 >"conftest.in"
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo 'GREP' >> "conftest.nl"
4680 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4681 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4682 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4683 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_GREP
="$ac_path_GREP"
4686 ac_path_GREP_max
=$ac_count
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4691 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4694 $ac_path_GREP_found && break 3
4699 if test -z "$ac_cv_path_GREP"; then
4700 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703 ac_cv_path_GREP
=$GREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4708 $as_echo "$ac_cv_path_GREP" >&6; }
4709 GREP
="$ac_cv_path_GREP"
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4713 $as_echo_n "checking for egrep... " >&6; }
4714 if ${ac_cv_path_EGREP+:} false
; then :
4715 $as_echo_n "(cached) " >&6
4717 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4718 then ac_cv_path_EGREP
="$GREP -E"
4720 if test -z "$EGREP"; then
4721 ac_path_EGREP_found
=false
4722 # Loop through the user's path and test for each of PROGNAME-LIST
4723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4724 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4727 test -z "$as_dir" && as_dir
=.
4728 for ac_prog
in egrep; do
4729 for ac_exec_ext
in '' $ac_executable_extensions; do
4730 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4731 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4732 # Check for GNU ac_path_EGREP and select it if it is found.
4733 # Check for GNU $ac_path_EGREP
4734 case `"$ac_path_EGREP" --version 2>&1` in
4736 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4739 $as_echo_n 0123456789 >"conftest.in"
4742 cat "conftest.in" "conftest.in" >"conftest.tmp"
4743 mv "conftest.tmp" "conftest.in"
4744 cp "conftest.in" "conftest.nl"
4745 $as_echo 'EGREP' >> "conftest.nl"
4746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4747 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4748 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4750 # Best one so far, save it but keep looking for a better one
4751 ac_cv_path_EGREP
="$ac_path_EGREP"
4752 ac_path_EGREP_max
=$ac_count
4754 # 10*(2^10) chars as input seems more than enough
4755 test $ac_count -gt 10 && break
4757 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4760 $ac_path_EGREP_found && break 3
4765 if test -z "$ac_cv_path_EGREP"; then
4766 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4769 ac_cv_path_EGREP
=$EGREP
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4775 $as_echo "$ac_cv_path_EGREP" >&6; }
4776 EGREP
="$ac_cv_path_EGREP"
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4780 $as_echo_n "checking for ANSI C header files... " >&6; }
4781 if ${ac_cv_header_stdc+:} false
; then :
4782 $as_echo_n "(cached) " >&6
4784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4799 if ac_fn_c_try_compile
"$LINENO"; then :
4800 ac_cv_header_stdc
=yes
4802 ac_cv_header_stdc
=no
4804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4806 if test $ac_cv_header_stdc = yes; then
4807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4814 $EGREP "memchr" >/dev
/null
2>&1; then :
4817 ac_cv_header_stdc
=no
4823 if test $ac_cv_header_stdc = yes; then
4824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4831 $EGREP "free" >/dev
/null
2>&1; then :
4834 ac_cv_header_stdc
=no
4840 if test $ac_cv_header_stdc = yes; then
4841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4842 if test "$cross_compiling" = yes; then :
4845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4849 #if ((' ' & 0x0FF) == 0x020)
4850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4853 # define ISLOWER(c) \
4854 (('a' <= (c) && (c) <= 'i') \
4855 || ('j' <= (c) && (c) <= 'r') \
4856 || ('s' <= (c) && (c) <= 'z'))
4857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4865 for (i = 0; i < 256; i++)
4866 if (XOR (islower (i), ISLOWER (i))
4867 || toupper (i) != TOUPPER (i))
4872 if ac_fn_c_try_run
"$LINENO"; then :
4875 ac_cv_header_stdc
=no
4877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4878 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4884 $as_echo "$ac_cv_header_stdc" >&6; }
4885 if test $ac_cv_header_stdc = yes; then
4887 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4891 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4892 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4893 inttypes.h stdint.h unistd.h
4895 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4896 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4898 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4899 cat >>confdefs.h
<<_ACEOF
4900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4908 # The cast to long int works around a bug in the HP C Compiler
4909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4911 # This bug is HP SR number 8606223364.
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4913 $as_echo_n "checking size of void *... " >&6; }
4914 if ${ac_cv_sizeof_void_p+:} false
; then :
4915 $as_echo_n "(cached) " >&6
4917 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4920 if test "$ac_cv_type_void_p" = yes; then
4921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4923 as_fn_error
77 "cannot compute sizeof (void *)
4924 See \`config.log' for more details" "$LINENO" 5; }
4926 ac_cv_sizeof_void_p
=0
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4932 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4936 cat >>confdefs.h
<<_ACEOF
4937 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4941 # The cast to long int works around a bug in the HP C Compiler
4942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4944 # This bug is HP SR number 8606223364.
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4946 $as_echo_n "checking size of unsigned int... " >&6; }
4947 if ${ac_cv_sizeof_unsigned_int+:} false
; then :
4948 $as_echo_n "(cached) " >&6
4950 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4953 if test "$ac_cv_type_unsigned_int" = yes; then
4954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4956 as_fn_error
77 "cannot compute sizeof (unsigned int)
4957 See \`config.log' for more details" "$LINENO" 5; }
4959 ac_cv_sizeof_unsigned_int
=0
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4965 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4969 cat >>confdefs.h
<<_ACEOF
4970 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4974 # The cast to long int works around a bug in the HP C Compiler
4975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4977 # This bug is HP SR number 8606223364.
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4979 $as_echo_n "checking size of unsigned long... " >&6; }
4980 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
4981 $as_echo_n "(cached) " >&6
4983 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4986 if test "$ac_cv_type_unsigned_long" = yes; then
4987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4989 as_fn_error
77 "cannot compute sizeof (unsigned long)
4990 See \`config.log' for more details" "$LINENO" 5; }
4992 ac_cv_sizeof_unsigned_long
=0
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
4998 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
5002 cat >>confdefs.h
<<_ACEOF
5003 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5007 # The cast to long int works around a bug in the HP C Compiler
5008 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5009 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5010 # This bug is HP SR number 8606223364.
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5012 $as_echo_n "checking size of unsigned long long... " >&6; }
5013 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
5014 $as_echo_n "(cached) " >&6
5016 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
5019 if test "$ac_cv_type_unsigned_long_long" = yes; then
5020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5022 as_fn_error
77 "cannot compute sizeof (unsigned long long)
5023 See \`config.log' for more details" "$LINENO" 5; }
5025 ac_cv_sizeof_unsigned_long_long
=0
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5031 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
5035 cat >>confdefs.h
<<_ACEOF
5036 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5042 $as_echo_n "checking for X... " >&6; }
5045 # Check whether --with-x was given.
5046 if test "${with_x+set}" = set; then :
5050 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5051 if test "x$with_x" = xno
; then
5052 # The user explicitly disabled X.
5055 case $x_includes,$x_libraries in #(
5056 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
5057 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
5058 $as_echo_n "(cached) " >&6
5060 # One or both of the vars are not set, and there is no cached value.
5061 ac_x_includes
=no ac_x_libraries
=no
5062 rm -f -r conftest.dir
5063 if mkdir conftest.dir
; then
5065 cat >Imakefile
<<'_ACEOF'
5067 @echo incroot='${INCROOT}'
5069 @echo usrlibdir='${USRLIBDIR}'
5071 @echo libdir='${LIBDIR}'
5073 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5074 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5075 for ac_var
in incroot usrlibdir libdir
; do
5076 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5078 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5079 for ac_extension
in a so sl dylib la dll
; do
5080 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5081 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5082 ac_im_usrlibdir
=$ac_im_libdir; break
5085 # Screen out bogus values from the imake configuration. They are
5086 # bogus both because they are the default anyway, and because
5087 # using them would break gcc on systems where it needs fixed includes.
5088 case $ac_im_incroot in
5089 /usr
/include
) ac_x_includes
= ;;
5090 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5092 case $ac_im_usrlibdir in
5093 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
5094 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5098 rm -f -r conftest.dir
5101 # Standard set of common directories for X headers.
5102 # Check X11 before X11Rn because it is often a symlink to the current release.
5116 /usr/local/X11/include
5117 /usr/local/X11R7/include
5118 /usr/local/X11R6/include
5119 /usr/local/X11R5/include
5120 /usr/local/X11R4/include
5122 /usr/local/include/X11
5123 /usr/local/include/X11R7
5124 /usr/local/include/X11R6
5125 /usr/local/include/X11R5
5126 /usr/local/include/X11R4
5130 /usr/XFree86/include/X11
5134 /usr/unsupported/include
5136 /usr/local/x11r5/include
5137 /usr/lpp/Xamples/include
5139 /usr/openwin/include
5140 /usr/openwin/share/include'
5142 if test "$ac_x_includes" = no
; then
5143 # Guess where to find include files, by looking for Xlib.h.
5144 # First, try using that file with no special directory specified.
5145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <X11/Xlib.h>
5149 if ac_fn_c_try_cpp
"$LINENO"; then :
5150 # We can compile using X headers with no special include directory.
5153 for ac_dir
in $ac_x_header_dirs; do
5154 if test -r "$ac_dir/X11/Xlib.h"; then
5155 ac_x_includes
=$ac_dir
5160 rm -f conftest.err conftest.i conftest.
$ac_ext
5161 fi # $ac_x_includes = no
5163 if test "$ac_x_libraries" = no
; then
5164 # Check for the libraries.
5165 # See if we find them without any special options.
5166 # Don't add to $LIBS permanently.
5169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5171 #include <X11/Xlib.h>
5180 if ac_fn_c_try_link
"$LINENO"; then :
5182 # We can link X programs with no special library path.
5186 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5188 # Don't even attempt the hair of trying to link an X program!
5189 for ac_extension
in a so sl dylib la dll
; do
5190 if test -r "$ac_dir/libX11.$ac_extension"; then
5191 ac_x_libraries
=$ac_dir
5197 rm -f core conftest.err conftest.
$ac_objext \
5198 conftest
$ac_exeext conftest.
$ac_ext
5199 fi # $ac_x_libraries = no
5201 case $ac_x_includes,$ac_x_libraries in #(
5203 # Didn't find X, or a directory has "'" in its name.
5204 ac_cv_have_x
="have_x=no";; #(
5206 # Record where we found X for the cache.
5207 ac_cv_have_x
="have_x=yes\
5208 ac_x_includes='$ac_x_includes'\
5209 ac_x_libraries='$ac_x_libraries'"
5215 eval "$ac_cv_have_x"
5218 if test "$have_x" != yes; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5220 $as_echo "$have_x" >&6; }
5223 # If each of the values was on the command line, it overrides each guess.
5224 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5225 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5226 # Update the cache value to reflect the command line values.
5227 ac_cv_have_x
="have_x=yes\
5228 ac_x_includes='$x_includes'\
5229 ac_x_libraries='$x_libraries'"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5231 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5234 if test "$no_x" = yes; then
5235 # Not all programs may use this symbol, but it does not hurt to define it.
5237 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5239 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
5241 if test -n "$x_includes"; then
5242 X_CFLAGS
="$X_CFLAGS -I$x_includes"
5245 # It would also be nice to do this for all -L options, not just this one.
5246 if test -n "$x_libraries"; then
5247 X_LIBS
="$X_LIBS -L$x_libraries"
5248 # For Solaris; some versions of Sun CC require a space after -R and
5249 # others require no space. Words are not sufficient . . . .
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5251 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5252 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
5253 ac_xsave_c_werror_flag
=$ac_c_werror_flag
5254 ac_c_werror_flag
=yes
5255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5266 if ac_fn_c_try_link
"$LINENO"; then :
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 X_LIBS
="$X_LIBS -R$x_libraries"
5271 LIBS
="$ac_xsave_LIBS -R $x_libraries"
5272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5283 if ac_fn_c_try_link
"$LINENO"; then :
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5285 $as_echo "yes" >&6; }
5286 X_LIBS
="$X_LIBS -R $x_libraries"
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5289 $as_echo "neither works" >&6; }
5291 rm -f core conftest.err conftest.
$ac_objext \
5292 conftest
$ac_exeext conftest.
$ac_ext
5294 rm -f core conftest.err conftest.
$ac_objext \
5295 conftest
$ac_exeext conftest.
$ac_ext
5296 ac_c_werror_flag
=$ac_xsave_c_werror_flag
5300 # Check for system-dependent libraries X programs must link with.
5301 # Do this before checking for the system-independent R6 libraries
5302 # (-lICE), since we may need -lsocket or whatever for X linking.
5304 if test "$ISC" = yes; then
5305 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
5307 # Martyn Johnson says this is needed for Ultrix, if the X
5308 # libraries were built with DECnet support. And Karl Berry says
5309 # the Alpha needs dnet_stub (dnet does not exist).
5310 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
5311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5314 /* Override any GCC internal prototype to avoid an error.
5315 Use char because int might match the return type of a GCC
5316 builtin and then its argument prototype would still apply. */
5320 char XOpenDisplay ();
5324 return XOpenDisplay ();
5329 if ac_fn_c_try_link
"$LINENO"; then :
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5333 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5334 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
5335 $as_echo_n "(cached) " >&6
5337 ac_check_lib_save_LIBS
=$LIBS
5339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5342 /* Override any GCC internal prototype to avoid an error.
5343 Use char because int might match the return type of a GCC
5344 builtin and then its argument prototype would still apply. */
5352 return dnet_ntoa ();
5357 if ac_fn_c_try_link
"$LINENO"; then :
5358 ac_cv_lib_dnet_dnet_ntoa
=yes
5360 ac_cv_lib_dnet_dnet_ntoa
=no
5362 rm -f core conftest.err conftest.
$ac_objext \
5363 conftest
$ac_exeext conftest.
$ac_ext
5364 LIBS
=$ac_check_lib_save_LIBS
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5367 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5368 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
5369 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
5372 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5374 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5375 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
5376 $as_echo_n "(cached) " >&6
5378 ac_check_lib_save_LIBS
=$LIBS
5379 LIBS
="-ldnet_stub $LIBS"
5380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5383 /* Override any GCC internal prototype to avoid an error.
5384 Use char because int might match the return type of a GCC
5385 builtin and then its argument prototype would still apply. */
5393 return dnet_ntoa ();
5398 if ac_fn_c_try_link
"$LINENO"; then :
5399 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
5401 ac_cv_lib_dnet_stub_dnet_ntoa
=no
5403 rm -f core conftest.err conftest.
$ac_objext \
5404 conftest
$ac_exeext conftest.
$ac_ext
5405 LIBS
=$ac_check_lib_save_LIBS
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5408 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5409 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
5410 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
5415 rm -f core conftest.err conftest.
$ac_objext \
5416 conftest
$ac_exeext conftest.
$ac_ext
5417 LIBS
="$ac_xsave_LIBS"
5419 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5420 # to get the SysV transport functions.
5421 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5423 # The nsl library prevents programs from opening the X display
5424 # on Irix 5.2, according to T.E. Dickey.
5425 # The functions gethostbyname, getservbyname, and inet_addr are
5426 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5427 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5428 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
5432 if test $ac_cv_func_gethostbyname = no
; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5434 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5435 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
5436 $as_echo_n "(cached) " >&6
5438 ac_check_lib_save_LIBS
=$LIBS
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5443 /* Override any GCC internal prototype to avoid an error.
5444 Use char because int might match the return type of a GCC
5445 builtin and then its argument prototype would still apply. */
5449 char gethostbyname ();
5453 return gethostbyname ();
5458 if ac_fn_c_try_link
"$LINENO"; then :
5459 ac_cv_lib_nsl_gethostbyname
=yes
5461 ac_cv_lib_nsl_gethostbyname
=no
5463 rm -f core conftest.err conftest.
$ac_objext \
5464 conftest
$ac_exeext conftest.
$ac_ext
5465 LIBS
=$ac_check_lib_save_LIBS
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5468 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5469 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
5470 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
5473 if test $ac_cv_lib_nsl_gethostbyname = no
; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5475 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5476 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
5477 $as_echo_n "(cached) " >&6
5479 ac_check_lib_save_LIBS
=$LIBS
5481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5484 /* Override any GCC internal prototype to avoid an error.
5485 Use char because int might match the return type of a GCC
5486 builtin and then its argument prototype would still apply. */
5490 char gethostbyname ();
5494 return gethostbyname ();
5499 if ac_fn_c_try_link
"$LINENO"; then :
5500 ac_cv_lib_bsd_gethostbyname
=yes
5502 ac_cv_lib_bsd_gethostbyname
=no
5504 rm -f core conftest.err conftest.
$ac_objext \
5505 conftest
$ac_exeext conftest.
$ac_ext
5506 LIBS
=$ac_check_lib_save_LIBS
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5509 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5510 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
5511 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
5517 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5518 # socket/setsockopt and other routines are undefined under SCO ODT
5519 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5520 # on later versions), says Simon Leinen: it contains gethostby*
5521 # variants that don't use the name server (or something). -lsocket
5522 # must be given before -lnsl if both are needed. We assume that
5523 # if connect needs -lnsl, so does gethostbyname.
5524 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
5525 if test "x$ac_cv_func_connect" = xyes
; then :
5529 if test $ac_cv_func_connect = no
; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5531 $as_echo_n "checking for connect in -lsocket... " >&6; }
5532 if ${ac_cv_lib_socket_connect+:} false
; then :
5533 $as_echo_n "(cached) " >&6
5535 ac_check_lib_save_LIBS
=$LIBS
5536 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
5537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5540 /* Override any GCC internal prototype to avoid an error.
5541 Use char because int might match the return type of a GCC
5542 builtin and then its argument prototype would still apply. */
5555 if ac_fn_c_try_link
"$LINENO"; then :
5556 ac_cv_lib_socket_connect
=yes
5558 ac_cv_lib_socket_connect
=no
5560 rm -f core conftest.err conftest.
$ac_objext \
5561 conftest
$ac_exeext conftest.
$ac_ext
5562 LIBS
=$ac_check_lib_save_LIBS
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5565 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5566 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
5567 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
5572 # Guillermo Gomez says -lposix is necessary on A/UX.
5573 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
5574 if test "x$ac_cv_func_remove" = xyes
; then :
5578 if test $ac_cv_func_remove = no
; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5580 $as_echo_n "checking for remove in -lposix... " >&6; }
5581 if ${ac_cv_lib_posix_remove+:} false
; then :
5582 $as_echo_n "(cached) " >&6
5584 ac_check_lib_save_LIBS
=$LIBS
5585 LIBS
="-lposix $LIBS"
5586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5589 /* Override any GCC internal prototype to avoid an error.
5590 Use char because int might match the return type of a GCC
5591 builtin and then its argument prototype would still apply. */
5604 if ac_fn_c_try_link
"$LINENO"; then :
5605 ac_cv_lib_posix_remove
=yes
5607 ac_cv_lib_posix_remove
=no
5609 rm -f core conftest.err conftest.
$ac_objext \
5610 conftest
$ac_exeext conftest.
$ac_ext
5611 LIBS
=$ac_check_lib_save_LIBS
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5614 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5615 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
5616 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
5621 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5622 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
5623 if test "x$ac_cv_func_shmat" = xyes
; then :
5627 if test $ac_cv_func_shmat = no
; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5629 $as_echo_n "checking for shmat in -lipc... " >&6; }
5630 if ${ac_cv_lib_ipc_shmat+:} false
; then :
5631 $as_echo_n "(cached) " >&6
5633 ac_check_lib_save_LIBS
=$LIBS
5635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5638 /* Override any GCC internal prototype to avoid an error.
5639 Use char because int might match the return type of a GCC
5640 builtin and then its argument prototype would still apply. */
5653 if ac_fn_c_try_link
"$LINENO"; then :
5654 ac_cv_lib_ipc_shmat
=yes
5656 ac_cv_lib_ipc_shmat
=no
5658 rm -f core conftest.err conftest.
$ac_objext \
5659 conftest
$ac_exeext conftest.
$ac_ext
5660 LIBS
=$ac_check_lib_save_LIBS
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5663 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5664 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
5665 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
5671 # Check for libraries that X11R6 Xt/Xaw programs need.
5672 ac_save_LDFLAGS
=$LDFLAGS
5673 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
5674 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5675 # check for ICE first), but we must link in the order -lSM -lICE or
5676 # we get undefined symbols. So assume we have SM if we have ICE.
5677 # These have to be linked with before -lX11, unlike the other
5678 # libraries we check for below, so use a different variable.
5679 # John Interrante, Karl Berry
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5681 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5682 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
5683 $as_echo_n "(cached) " >&6
5685 ac_check_lib_save_LIBS
=$LIBS
5686 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
5687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5690 /* Override any GCC internal prototype to avoid an error.
5691 Use char because int might match the return type of a GCC
5692 builtin and then its argument prototype would still apply. */
5696 char IceConnectionNumber ();
5700 return IceConnectionNumber ();
5705 if ac_fn_c_try_link
"$LINENO"; then :
5706 ac_cv_lib_ICE_IceConnectionNumber
=yes
5708 ac_cv_lib_ICE_IceConnectionNumber
=no
5710 rm -f core conftest.err conftest.
$ac_objext \
5711 conftest
$ac_exeext conftest.
$ac_ext
5712 LIBS
=$ac_check_lib_save_LIBS
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5715 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5716 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
5717 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5720 LDFLAGS
=$ac_save_LDFLAGS
5724 CPPFLAGS
="${CPPFLAGS} ${X_CFLAGS}"
5725 LDFLAGS
="${LDFLAGS} ${X_LIBS}"
5726 LIBS
="${X_PRE_LIBS} ${LIBS} -lX11"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtToolkitInitialize in -lXt" >&5
5728 $as_echo_n "checking for XtToolkitInitialize in -lXt... " >&6; }
5729 if ${ac_cv_lib_Xt_XtToolkitInitialize+:} false
; then :
5730 $as_echo_n "(cached) " >&6
5732 ac_check_lib_save_LIBS
=$LIBS
5734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5737 /* Override any GCC internal prototype to avoid an error.
5738 Use char because int might match the return type of a GCC
5739 builtin and then its argument prototype would still apply. */
5743 char XtToolkitInitialize ();
5747 return XtToolkitInitialize ();
5752 if ac_fn_c_try_link
"$LINENO"; then :
5753 ac_cv_lib_Xt_XtToolkitInitialize
=yes
5755 ac_cv_lib_Xt_XtToolkitInitialize
=no
5757 rm -f core conftest.err conftest.
$ac_objext \
5758 conftest
$ac_exeext conftest.
$ac_ext
5759 LIBS
=$ac_check_lib_save_LIBS
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtToolkitInitialize" >&5
5762 $as_echo "$ac_cv_lib_Xt_XtToolkitInitialize" >&6; }
5763 if test "x$ac_cv_lib_Xt_XtToolkitInitialize" = xyes
; then :
5764 cat >>confdefs.h
<<_ACEOF
5765 #define HAVE_LIBXT 1
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtDisplayInitialize in -lXt" >&5
5773 $as_echo_n "checking for XtDisplayInitialize in -lXt... " >&6; }
5774 if ${ac_cv_lib_Xt_XtDisplayInitialize+:} false
; then :
5775 $as_echo_n "(cached) " >&6
5777 ac_check_lib_save_LIBS
=$LIBS
5778 LIBS
="-lXt -lSM -lICE -lXpm -lX11 $LIBS"
5779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5782 /* Override any GCC internal prototype to avoid an error.
5783 Use char because int might match the return type of a GCC
5784 builtin and then its argument prototype would still apply. */
5788 char XtDisplayInitialize ();
5792 return XtDisplayInitialize ();
5797 if ac_fn_c_try_link
"$LINENO"; then :
5798 ac_cv_lib_Xt_XtDisplayInitialize
=yes
5800 ac_cv_lib_Xt_XtDisplayInitialize
=no
5802 rm -f core conftest.err conftest.
$ac_objext \
5803 conftest
$ac_exeext conftest.
$ac_ext
5804 LIBS
=$ac_check_lib_save_LIBS
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtDisplayInitialize" >&5
5807 $as_echo "$ac_cv_lib_Xt_XtDisplayInitialize" >&6; }
5808 if test "x$ac_cv_lib_Xt_XtDisplayInitialize" = xyes
; then :
5809 cat >>confdefs.h
<<_ACEOF
5810 #define HAVE_LIBXT 1
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5821 $as_echo_n "checking for ANSI C header files... " >&6; }
5822 if ${ac_cv_header_stdc+:} false
; then :
5823 $as_echo_n "(cached) " >&6
5825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5840 if ac_fn_c_try_compile
"$LINENO"; then :
5841 ac_cv_header_stdc
=yes
5843 ac_cv_header_stdc
=no
5845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5847 if test $ac_cv_header_stdc = yes; then
5848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5855 $EGREP "memchr" >/dev
/null
2>&1; then :
5858 ac_cv_header_stdc
=no
5864 if test $ac_cv_header_stdc = yes; then
5865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872 $EGREP "free" >/dev
/null
2>&1; then :
5875 ac_cv_header_stdc
=no
5881 if test $ac_cv_header_stdc = yes; then
5882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5883 if test "$cross_compiling" = yes; then :
5886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5890 #if ((' ' & 0x0FF) == 0x020)
5891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5894 # define ISLOWER(c) \
5895 (('a' <= (c) && (c) <= 'i') \
5896 || ('j' <= (c) && (c) <= 'r') \
5897 || ('s' <= (c) && (c) <= 'z'))
5898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5906 for (i = 0; i < 256; i++)
5907 if (XOR (islower (i), ISLOWER (i))
5908 || toupper (i) != TOUPPER (i))
5913 if ac_fn_c_try_run
"$LINENO"; then :
5916 ac_cv_header_stdc
=no
5918 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5919 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5925 $as_echo "$ac_cv_header_stdc" >&6; }
5926 if test $ac_cv_header_stdc = yes; then
5928 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5933 for ac_func
in setenv putenv
5935 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5937 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5938 cat >>confdefs.h
<<_ACEOF
5939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5946 ac_fn_c_check_func
"$LINENO" "vfork" "ac_cv_func_vfork"
5947 if test "x$ac_cv_func_vfork" = xyes
; then :
5952 for ac_header
in dirent.h
5954 ac_fn_c_check_header_mongrel
"$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5955 if test "x$ac_cv_header_dirent_h" = xyes
; then :
5956 cat >>confdefs.h
<<_ACEOF
5957 #define HAVE_DIRENT_H 1
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11 libraries" >&5
5968 $as_echo_n "checking for 64-bit X11 libraries... " >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/X11R6/lib64" >&5
5970 $as_echo_n "checking for /usr/X11R6/lib64... " >&6; }
5971 if ${ac_cv_file__usr_X11R6_lib64+:} false
; then :
5972 $as_echo_n "(cached) " >&6
5974 test "$cross_compiling" = yes &&
5975 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
5976 if test -r "/usr/X11R6/lib64"; then
5977 ac_cv_file__usr_X11R6_lib64
=yes
5979 ac_cv_file__usr_X11R6_lib64
=no
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_X11R6_lib64" >&5
5983 $as_echo "$ac_cv_file__usr_X11R6_lib64" >&6; }
5984 if test "x$ac_cv_file__usr_X11R6_lib64" = xyes
; then :
5986 LDFLAGS
="-L/usr/X11R6/lib64 ${LDFLAGS}"
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-pointer-sign accepted in CFLAGS" >&5
5994 $as_echo_n "checking if -Wno-pointer-sign accepted in CFLAGS... " >&6; }
5995 ac_save_CFLAGS
="$CFLAGS"
5996 CFLAGS
="$CFLAGS -Wno-pointer-sign"
5997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6010 if ac_fn_c_try_compile
"$LINENO"; then :
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6013 $as_echo "yes" >&6; }
6016 CFLAGS
="$ac_save_CFLAGS"
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6018 $as_echo "no" >&6; }
6020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
6023 $as_echo_n "checking for deflate in -lz... " >&6; }
6024 if ${ac_cv_lib_z_deflate+:} false
; then :
6025 $as_echo_n "(cached) " >&6
6027 ac_check_lib_save_LIBS
=$LIBS
6028 LIBS
="-lz -lz $LIBS"
6029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6032 /* Override any GCC internal prototype to avoid an error.
6033 Use char because int might match the return type of a GCC
6034 builtin and then its argument prototype would still apply. */
6047 if ac_fn_c_try_link
"$LINENO"; then :
6048 ac_cv_lib_z_deflate
=yes
6050 ac_cv_lib_z_deflate
=no
6052 rm -f core conftest.err conftest.
$ac_objext \
6053 conftest
$ac_exeext conftest.
$ac_ext
6054 LIBS
=$ac_check_lib_save_LIBS
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
6057 $as_echo "$ac_cv_lib_z_deflate" >&6; }
6058 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
6059 cat >>confdefs.h
<<_ACEOF
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6069 $as_echo_n "checking for va_copy... " >&6; }
6070 if ${ac_cv_c_va_copy+:} false
; then :
6071 $as_echo_n "(cached) " >&6
6073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6086 if ac_fn_c_try_link
"$LINENO"; then :
6087 ac_cv_c_va_copy
="yes"
6089 ac_cv_c_va_copy
="no"
6091 rm -f core conftest.err conftest.
$ac_objext \
6092 conftest
$ac_exeext conftest.
$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
6096 $as_echo "$ac_cv_c_va_copy" >&6; }
6097 if test "$ac_cv_c_va_copy" = "yes"
6100 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6104 $as_echo_n "checking for __va_copy... " >&6; }
6105 if ${ac_cv_c___va_copy+:} false
; then :
6106 $as_echo_n "(cached) " >&6
6108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6121 if ac_fn_c_try_link
"$LINENO"; then :
6122 ac_cv_c___va_copy
="yes"
6124 ac_cv_c___va_copy
="no"
6126 rm -f core conftest.err conftest.
$ac_objext \
6127 conftest
$ac_exeext conftest.
$ac_ext
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
6131 $as_echo "$ac_cv_c___va_copy" >&6; }
6132 if test "$ac_cv_c___va_copy" = "yes"
6135 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if u_char defined" >&5
6140 $as_echo_n "checking if u_char defined... " >&6; }
6141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6143 #include <sys/types.h>
6154 if ac_fn_c_try_compile
"$LINENO"; then :
6156 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6159 $as_echo "yes" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6166 # Check whether --enable-optimize was given.
6167 if test "${enable_optimize+set}" = set; then :
6168 enableval
=$enable_optimize;
6171 CFLAGS
=`echo $CFLAGS | sed -e "s/ -O2//"`
6177 # Check whether --with-xpm was given.
6178 if test "${with_xpm+set}" = set; then :
6180 if test "$withval" != "no" -a "$withval" != "yes"; then
6181 CPPFLAGS
="${CPPFLAGS} -I$withval/include"
6182 LDFLAGS
="${LDFLAGS} -L$withval/lib"
6188 for ac_header
in X11
/xpm.h
6190 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
6191 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
6192 cat >>confdefs.h
<<_ACEOF
6193 #define HAVE_X11_XPM_H 1
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreateImageFromData in -lXpm" >&5
6196 $as_echo_n "checking for XpmCreateImageFromData in -lXpm... " >&6; }
6197 if ${ac_cv_lib_Xpm_XpmCreateImageFromData+:} false
; then :
6198 $as_echo_n "(cached) " >&6
6200 ac_check_lib_save_LIBS
=$LIBS
6201 LIBS
="-lXpm -lX11 $LIBS"
6202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6205 /* Override any GCC internal prototype to avoid an error.
6206 Use char because int might match the return type of a GCC
6207 builtin and then its argument prototype would still apply. */
6211 char XpmCreateImageFromData ();
6215 return XpmCreateImageFromData ();
6220 if ac_fn_c_try_link
"$LINENO"; then :
6221 ac_cv_lib_Xpm_XpmCreateImageFromData
=yes
6223 ac_cv_lib_Xpm_XpmCreateImageFromData
=no
6225 rm -f core conftest.err conftest.
$ac_objext \
6226 conftest
$ac_exeext conftest.
$ac_ext
6227 LIBS
=$ac_check_lib_save_LIBS
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreateImageFromData" >&5
6230 $as_echo "$ac_cv_lib_Xpm_XpmCreateImageFromData" >&6; }
6231 if test "x$ac_cv_lib_Xpm_XpmCreateImageFromData" = xyes
; then :
6233 LIBS
="${LIBS} -lXpm"
6234 $as_echo "#define HAVE_XPM 1" >>confdefs.h
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xpm library not found" >&5
6239 $as_echo "$as_me: WARNING: Xpm library not found" >&2;}
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xpm header not found" >&5
6244 $as_echo "$as_me: WARNING: Xpm header not found" >&2;}
6252 #------------------------------------------------------------
6253 # AC_PROG_LD - find the path to the GNU or non-GNU linker
6254 # (This stuff ripped from libtool)
6255 #------------------------------------------------------------
6261 # Check whether --with-gnu-ld was given.
6262 if test "${with_gnu_ld+set}" = set; then :
6263 withval
=$with_gnu_ld; test "$withval" = no || xc_with_gnu_ld
=yes
6269 if test "$GCC" = yes; then
6270 # Check if gcc -print-prog-name=ld gives a path.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6272 $as_echo_n "checking for ld used by GCC... " >&6; }
6275 # gcc leaves a trailing carriage return which upsets mingw
6276 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6278 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6281 # Accept absolute paths.
6282 [\\/]* |
[A-Za-z
]:[\\/]*)
6283 re_direlt
='/[^/][^/]*/\.\./'
6284 # Canonicalize the path of ld
6285 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6286 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6287 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6289 test -z "$LD" && LD
="$ac_prog"
6292 # If it fails, then pretend we aren't using GCC.
6296 # If it is relative, then search for the first ld in PATH.
6297 xc_with_gnu_ld
=unknown
6300 elif test "$xc_with_gnu_ld" = yes; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6302 $as_echo_n "checking for GNU ld... " >&6; }
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6305 $as_echo_n "checking for non-GNU ld... " >&6; }
6307 if ${ac_cv_path_LD+:} false
; then :
6308 $as_echo_n "(cached) " >&6
6310 if test -z "$LD"; then
6311 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6312 for ac_dir
in $PATH; do
6313 test -z "$ac_dir" && ac_dir
=.
6314 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6315 ac_cv_path_LD
="$ac_dir/$ac_prog"
6316 # Check to see if the program is GNU ld. I'd rather use --version,
6317 # but apparently some GNU ld's only accept -v.
6318 # Break only if it was the GNU/non-GNU ld that we prefer.
6319 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6320 test "$xc_with_gnu_ld" != no
&& break
6322 test "$xc_with_gnu_ld" != yes && break
6328 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
6333 if test -n "$LD"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6335 $as_echo "$LD" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6340 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6342 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6343 if ${ac_cv_prog_gnu_ld+:} false
; then :
6344 $as_echo_n "(cached) " >&6
6346 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6347 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6348 ac_cv_prog_gnu_ld
=yes
6350 ac_cv_prog_gnu_ld
=no
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6354 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6355 xc_with_gnu_ld
=$ac_cv_prog_gnu_ld
6362 xc_with_tcl_includes
=""
6363 xc_with_tk_includes
=""
6364 xc_with_tcl_libraries
=""
6365 xc_with_tk_libraries
=""
6370 # Check whether --with-cairo was given.
6371 if test "${with_cairo+set}" = set; then :
6372 withval
=$with_cairo;
6373 xc_with_cairo
=$withval
6374 if test "$withval" == "no" -o "$withval" == "NO"; then
6381 if test "x$xc_with_cairo" != "x" ; then
6382 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
6391 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6394 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6398 $as_echo_n "(cached) " >&6
6402 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir
=.
6410 for ac_exec_ext
in '' $ac_executable_extensions; do
6411 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6424 if test -n "$PKG_CONFIG"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6426 $as_echo "$PKG_CONFIG" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6434 if test -z "$ac_cv_path_PKG_CONFIG"; then
6435 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6436 # Extract the first word of "pkg-config", so it can be a program name with args.
6437 set dummy pkg-config
; ac_word
=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6441 $as_echo_n "(cached) " >&6
6443 case $ac_pt_PKG_CONFIG in
6445 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir
=.
6453 for ac_exec_ext
in '' $ac_executable_extensions; do
6454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6467 if test -n "$ac_pt_PKG_CONFIG"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6469 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_pt_PKG_CONFIG" = x
; then
6478 case $cross_compiling:$ac_tool_warned in
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned
=yes ;;
6484 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6487 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6491 if test -n "$PKG_CONFIG"; then
6492 _pkg_min_version
=0.9.0
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6494 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6495 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6497 $as_echo "yes" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
6507 $as_echo_n "checking for cairo... " >&6; }
6509 if test -n "$cairo_CFLAGS"; then
6510 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
6511 elif test -n "$PKG_CONFIG"; then
6512 if test -n "$PKG_CONFIG" && \
6513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6514 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; }; then
6518 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
6519 test "x$?" != "x0" && pkg_failed
=yes
6526 if test -n "$cairo_LIBS"; then
6527 pkg_cv_cairo_LIBS
="$cairo_LIBS"
6528 elif test -n "$PKG_CONFIG"; then
6529 if test -n "$PKG_CONFIG" && \
6530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6531 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
6535 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
6536 test "x$?" != "x0" && pkg_failed
=yes
6546 if test $pkg_failed = yes; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6551 _pkg_short_errors_supported
=yes
6553 _pkg_short_errors_supported
=no
6555 if test $_pkg_short_errors_supported = yes; then
6556 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
6558 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
6560 # Put the nasty error message in config.log where it belongs
6561 echo "$cairo_PKG_ERRORS" >&5
6563 as_fn_error $?
"Package requirements (cairo) were not met:
6567 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6568 installed software in a non-standard prefix.
6570 Alternatively, you may set the environment variables cairo_CFLAGS
6571 and cairo_LIBS to avoid the need to call pkg-config.
6572 See the pkg-config man page for more details." "$LINENO" 5
6573 elif test $pkg_failed = untried
; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6578 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6579 is in your PATH or set the PKG_CONFIG environment variable to the full
6582 Alternatively, you may set the environment variables cairo_CFLAGS
6583 and cairo_LIBS to avoid the need to call pkg-config.
6584 See the pkg-config man page for more details.
6586 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6587 See \`config.log' for more details" "$LINENO" 5; }
6589 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
6590 cairo_LIBS
=$pkg_cv_cairo_LIBS
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6592 $as_echo "yes" >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig" >&5
6598 $as_echo_n "checking for fontconfig... " >&6; }
6600 if test -n "$fontconfig_CFLAGS"; then
6601 pkg_cv_fontconfig_CFLAGS
="$fontconfig_CFLAGS"
6602 elif test -n "$PKG_CONFIG"; then
6603 if test -n "$PKG_CONFIG" && \
6604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6605 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }; then
6609 pkg_cv_fontconfig_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
6610 test "x$?" != "x0" && pkg_failed
=yes
6617 if test -n "$fontconfig_LIBS"; then
6618 pkg_cv_fontconfig_LIBS
="$fontconfig_LIBS"
6619 elif test -n "$PKG_CONFIG"; then
6620 if test -n "$PKG_CONFIG" && \
6621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6622 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625 test $ac_status = 0; }; then
6626 pkg_cv_fontconfig_LIBS
=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
6627 test "x$?" != "x0" && pkg_failed
=yes
6637 if test $pkg_failed = yes; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6641 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6642 _pkg_short_errors_supported
=yes
6644 _pkg_short_errors_supported
=no
6646 if test $_pkg_short_errors_supported = yes; then
6647 fontconfig_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
6649 fontconfig_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
6651 # Put the nasty error message in config.log where it belongs
6652 echo "$fontconfig_PKG_ERRORS" >&5
6654 as_fn_error $?
"Package requirements (fontconfig) were not met:
6656 $fontconfig_PKG_ERRORS
6658 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6659 installed software in a non-standard prefix.
6661 Alternatively, you may set the environment variables fontconfig_CFLAGS
6662 and fontconfig_LIBS to avoid the need to call pkg-config.
6663 See the pkg-config man page for more details." "$LINENO" 5
6664 elif test $pkg_failed = untried
; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6669 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6670 is in your PATH or set the PKG_CONFIG environment variable to the full
6673 Alternatively, you may set the environment variables fontconfig_CFLAGS
6674 and fontconfig_LIBS to avoid the need to call pkg-config.
6675 See the pkg-config man page for more details.
6677 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6678 See \`config.log' for more details" "$LINENO" 5; }
6680 fontconfig_CFLAGS
=$pkg_cv_fontconfig_CFLAGS
6681 fontconfig_LIBS
=$pkg_cv_fontconfig_LIBS
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6683 $as_echo "yes" >&6; }
6686 for ac_header
in ghostscript
/gdevdsp.h
6688 ac_fn_c_check_header_mongrel
"$LINENO" "ghostscript/gdevdsp.h" "ac_cv_header_ghostscript_gdevdsp_h" "$ac_includes_default"
6689 if test "x$ac_cv_header_ghostscript_gdevdsp_h" = xyes
; then :
6690 cat >>confdefs.h
<<_ACEOF
6691 #define HAVE_GHOSTSCRIPT_GDEVDSP_H 1
6695 $as_echo "#define HAVE_GS 1" >>confdefs.h
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building xcircuit without ghostscript rendering" >&5
6701 $as_echo "$as_me: WARNING: Building xcircuit without ghostscript rendering" >&2;}
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Install the ghostscript-devel package to solve this" >&5
6703 $as_echo "$as_me: WARNING: Install the ghostscript-devel package to solve this" >&2;}
6714 # Check whether --with-tcl was given.
6715 if test "${with_tcl+set}" = set; then :
6717 xc_with_tcl
=$withval
6718 if test "$withval" == "no" -o "$withval" == "NO"; then
6727 # Check whether --with-tk was given.
6728 if test "${with_tk+set}" = set; then :
6729 withval
=$with_tk; xc_with_tk
=$withval
6733 # Check whether --with-tclincls was given.
6734 if test "${with_tclincls+set}" = set; then :
6735 withval
=$with_tclincls; xc_with_tcl_includes
=$withval
6739 # Check whether --with-tkincls was given.
6740 if test "${with_tkincls+set}" = set; then :
6741 withval
=$with_tkincls; xc_with_tk_includes
=$withval
6745 # Check whether --with-tcllibs was given.
6746 if test "${with_tcllibs+set}" = set; then :
6747 withval
=$with_tcllibs; xc_with_tcl_libraries
=$withval
6751 # Check whether --with-tklibs was given.
6752 if test "${with_tklibs+set}" = set; then :
6753 withval
=$with_tklibs; xc_with_tk_libraries
=$withval
6757 # -----------------------------------------------------------------------
6759 # Find the Tcl build configuration file "tclConfig.sh"
6761 # -----------------------------------------------------------------------
6763 if test "x$xc_with_tcl" != "x" ; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
6769 $as_echo_n "checking for tclConfig.sh... " >&6; }
6772 if test "$xc_with_tcl" = "no" ; then
6774 elif test "$xc_with_tcl" != "yes" ; then
6776 # Verify that a tclConfig.sh file exists in the directory specified
6782 if test -r "$dir/tclConfig.sh" ; then
6783 tcl_config_sh
="$dir/tclConfig.sh"
6785 elif test -r "$dir/lib/tclConfig.sh" ; then
6786 tcl_config_sh
="$dir/lib/tclConfig.sh"
6792 # Otherwise, search for Tcl configuration file.
6795 # 1. Search previously named locations.
6801 if test -r "$dir/tclConfig.sh" ; then
6802 tcl_config_sh
="$dir/tclConfig.sh"
6804 elif test -r "$dir/lib/tclConfig.sh" ; then
6805 tcl_config_sh
="$dir/lib/tclConfig.sh"
6810 # 2. Search standard locations.
6812 if test "x$tcl_config_sh" = "x" ; then
6814 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6818 `ls -dr /usr/share/tcltk/tcl[7-9].[0-9]* 2>/dev/null` \
6824 if test -r "$dir/tclConfig.sh" ; then
6825 tcl_config_sh
="$dir/tclConfig.sh"
6827 elif test -r "$dir/lib/tclConfig.sh" ; then
6828 tcl_config_sh
="$dir/lib/tclConfig.sh"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
6836 $as_echo "${tcl_config_sh}" >&6; }
6838 if test "x$tcl_config_sh" = "x" ; then
6839 echo "can't find Tcl configuration script \"tclConfig.sh\""
6840 echo "Reverting to non-Tcl compilation"
6845 # -----------------------------------------------------------------------
6847 # Find the Tk build configuration file "tkConfig.sh"
6849 # -----------------------------------------------------------------------
6851 if test "x$xc_with_tcl" != "x" ; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
6853 $as_echo_n "checking for tkConfig.sh... " >&6; }
6855 if test "$xc_with_tk" != "yes"; then
6857 # Verify that a tkConfig.sh file exists in the directory specified
6858 # by --with-tcl or --with-tk.
6864 if test -r "$dir/tkConfig.sh" ; then
6865 tk_config_sh
="$dir/tkConfig.sh"
6867 elif test -r "$dir/lib/tkConfig.sh" ; then
6868 tk_config_sh
="$dir/lib/tkConfig.sh"
6874 # Search for Tk configuration file.
6878 # 1. Search previously named locations.
6884 if test -r "$dir/tkConfig.sh" ; then
6885 tk_config_sh
="$dir/tkConfig.sh"
6887 elif test -r "$dir/lib/tkConfig.sh" ; then
6888 tk_config_sh
="$dir/lib/tkConfig.sh"
6893 # 2. Search standard locations.
6895 if test "x$tk_config_sh" = "x" ; then
6899 `ls -dr /usr/local/lib/tk[7-9].[0-9]* 2>/dev/null` \
6900 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \
6901 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \
6902 `ls -dr /usr/local/tk[7-9].[0-9]* 2>/dev/null` \
6904 `ls -dr /usr/local/lib/tcl[7-9].[0-9]* 2>/dev/null` \
6905 `ls -dr /usr/lib/tcl/tk[7-9].[0-9]* 2>/dev/null` \
6906 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6907 `ls -dr /usr/share/tcltk/tk[7-9].[0-9]* 2>/dev/null` \
6913 if test -r "$dir/tkConfig.sh" ; then
6914 tk_config_sh
="$dir/tkConfig.sh"
6916 elif test -r "$dir/lib/tkConfig.sh" ; then
6917 tk_config_sh
="$dir/lib/tkConfig.sh"
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5
6924 $as_echo "${tk_config_sh}" >&6; }
6926 if test "x$tk_config_sh" = "x" ; then
6927 echo "can't find Tk configuration script \"tkConfig.sh\""
6928 echo "Reverting to non-Tcl compilation"
6933 # -----------------------------------------------------------------------
6935 # Source in the Tcl/Tk configuration scripts.
6937 # This didn't work so well in the pre-8.5 days, but
6938 # seems to be okay now.
6940 # -----------------------------------------------------------------------
6942 if test "x$xc_with_tcl" != "x" ; then
6946 # Should probably trust the config file contents, but this configure
6947 # file checks the Tcl and Tk include and lib directories. Since
6948 # the config file doesn't separate out the libraries from the strings
6949 # passed to the compiler/linker, do it manually here.
6951 # Extract TCL_LIB_DIR from TCL_LIB_SPEC
6952 # Extract TK_LIB_DIR from TK_LIB_SPEC
6953 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC
6954 # Extract TK_INC_DIR from TK_INCLUDE_SPEC
6956 # These will be the defaults unless overridden by configure command line
6958 tmpstr
=${TCL_LIB_SPEC#*-L}
6959 TCL_LIB_DIR
=${tmpstr% -l*}
6960 tmpstr
=${TK_LIB_SPEC#*-L}
6961 TK_LIB_DIR
=${tmpstr% -l*}
6962 TCL_INC_DIR
=${TCL_INCLUDE_SPEC#*-I}
6963 TK_INC_DIR
=${TK_INCLUDE_SPEC#*-I}
6965 LIBS
="${TCL_LIBS} ${LIBS}"
6967 if test "$TCL_VERSION" = "$TK_VERSION" ; then
6970 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)"
6971 echo "Reverting to non-Tcl compilation"
6976 # -----------------------------------------------------------------------
6977 # Rely on TCL_INCLUDE_SPEC from tclConfig.sh unless "--with-tclincls"
6978 # overrides. With TCL_INCLUDE_SPEC, pull out TCL_INC_DIR
6979 # -----------------------------------------------------------------------
6981 if test "x$xc_with_tcl" != "x" ; then
6982 if test "x${xc_with_tcl_includes}" != "x" ; then
6983 if test -r "${xc_with_tcl_includes}/tcl.h" ; then
6984 TCL_INC_DIR
=${xc_with_tcl_includes}
6985 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
6986 echo "Can't find tcl.h in \"${xc_with_tcl_includes}\""
6987 echo "Reverting to non-Tcl compilation"
6990 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
6992 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
6993 ${TCL_PREFIX}/include \
6994 ${TCL_SRC_DIR}/generic \
6997 if test -r "$dir/tcl.h" ; then
6999 TCL_INCLUDE_SPEC
="-I${TCL_INC_DIR}"
7003 if test "x${TCL_INC_DIR}" = "x" ; then
7004 echo "Can't find tcl.h header file"
7005 echo "Reverting to non-Tcl compilation"
7009 TCL_INC_DIR
=`echo ${TCL_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7013 # -----------------------------------------------------------------------
7014 # Rely on TK_INCLUDE_SPEC from tkConfig.sh unless "--with-tkincls"
7015 # overrides. With TK_INCLUDE_SPEC, pull out TK_INC_DIR
7016 # -----------------------------------------------------------------------
7018 if test "x$xc_with_tcl" != "x" ; then
7019 if test "x${xc_with_tk_includes}" != "x" ; then
7020 if test -r "${xc_with_tk_includes}/tk.h" ; then
7021 TK_INC_DIR
=${xc_with_tk_includes}
7022 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7023 echo "Can't find tk.h in \"${xc_with_tk_includes}\""
7024 echo "Reverting to non-Tcl compilation"
7027 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7029 ${TK_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7030 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
7031 ${TK_PREFIX}/include \
7032 ${TK_SRC_DIR}/generic \
7035 if test -r "$dir/tk.h" ; then
7037 TK_INCLUDE_SPEC
="-I${TK_INC_DIR}"
7041 if test "x${TK_INC_DIR}" = "x" ; then
7042 echo "Can't find tk.h header file"
7043 echo "Reverting to non-Tcl compilation"
7047 TK_INC_DIR
=`echo ${TK_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7051 # --------------------------------------------------------------
7052 # Rely on TCL_LIB_SPEC from tclConfig.sh unless "--with-tcllibs"
7053 # overrides. With TCL_LIB_SPEC, pull out TCL_LIB_DIR
7054 # --------------------------------------------------------------
7056 if test "x$xc_with_tcl" != "x" ; then
7057 if test "x${xc_with_tcl_libraries}" != "x" ; then
7060 "${xc_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7062 if test -r "$libname" ; then
7063 TCL_LIB_DIR
="${xc_with_tcl_libraries}"
7067 if test "x${TCL_LIB_DIR}" == "x" ; then
7068 echo "Can't find tcl library in \"${xc_with_tcl_libraries}\""
7069 echo "Reverting to non-Tcl compile"
7072 elif test "x${TCL_LIB_SPEC}" == "x" ; then
7073 for libpfix
in "lib64" "lib"
7075 libname
="${TCL_EXEC_PREFIX}/${libpfix}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7076 if test -r "$libname" ; then
7077 TCL_LIB_DIR
="${TCL_EXEC_PREFIX}/${libpfix}"
7081 if test "x${TCL_LIB_DIR}" = "x" ; then
7082 echo "Can't find tcl library"
7083 echo "Reverting to non-Tcl compile"
7087 TCL_LIB_DIR
=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7091 # --------------------------------------------------------------
7092 # Rely on TK_LIB_SPEC from tkConfig.sh unless "--with-tklibs"
7093 # overrides. With TK_LIB_SPEC, pull out TK_LIB_DIR
7094 # --------------------------------------------------------------
7096 if test "x$xc_with_tcl" != "x" ; then
7097 if test "x${xc_with_tk_libraries}" != "x" ; then
7100 "${xc_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7102 if test -r "$libname" ; then
7103 TK_LIB_DIR
="${xc_with_tk_libraries}"
7107 if test "x${TK_LIB_DIR}" == "x" ; then
7108 echo "Can't find tk library in \"${xc_with_tk_libraries}\""
7109 echo "Reverting to non-Tcl compile"
7112 elif test "x${TK_LIB_SPEC}" == "x" ; then
7113 for libpfix
in "lib64" "lib"
7115 libname
="${TK_EXEC_PREFIX}/${libpfix}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7116 if test -r "$libname" ; then
7117 TK_LIB_DIR
="${TK_EXEC_PREFIX}/${libpfix}"
7121 if test "x${TK_LIB_DIR}" = "x" ; then
7122 echo "Can't find tk library"
7123 echo "Reverting to non-Tcl compile"
7127 TK_LIB_DIR
=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7131 #--------------------------------------------------------------------
7132 # If TCL_LIB_SPEC and/or TK_LIB_SPEC do not exist, construct them
7133 #--------------------------------------------------------------------
7135 if test "x$xc_with_tcl" != "x" ; then
7136 if test "x${TCL_LIB_SPEC}" == "x" ; then
7138 *-sunos4*|
*-*-netbsd|NetBSD-
*|FreeBSD-
*|
*-*-openbsd*|OpenBSD-
*)
7139 TCL_LIB_NAME
="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
7142 TCL_LIB_NAME
="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
7145 TCL_LIB_SPEC
="-L${TCL_LIB_DIR} -l${TCL_LIB_NAME}"
7148 if test "x${TK_LIB_SPEC}" == "x" ; then
7150 *-sunos4*|
*-*-netbsd|NetBSD-
*|FreeBSD-
*|
*-*-openbsd*|OpenBSD-
*)
7151 TK_LIB_NAME
="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
7154 TK_LIB_NAME
="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
7157 TK_LIB_SPEC
="-L${TK_LIB_DIR} -l${TK_LIB_NAME}"
7160 # Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
7161 # We really ought to run "ldd" to confirm that the linked libraries match.
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish executable" >&5
7164 $as_echo_n "checking for wish executable... " >&6; }
7166 ${TK_EXEC_PREFIX}/bin \
7173 wish
${TK_VERSION}.exe
7175 if test -r "$dir/$wishexe" ; then
7176 WISH_EXE
=$dir/$wishexe
7180 if test "x${WISH_EXE}" != "x" ; then
7184 if test "x${WISH_EXE}" = "x" ; then
7185 echo "Warning: Can't find executable for \"wish\". You may have to"
7186 echo "manually set the value for WISH_EXE in the xcircuit startup script."
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_EXE}" >&5
7191 $as_echo "${WISH_EXE}" >&6; }
7194 # Have to define SHDLIB_EXT here even though we have to do it below, too.
7206 SHDLIB_EXT
=".so.${TCL_LIB_FILE##*.so.}"
7215 # -----------------------------------------------------------------------
7217 # Tk libraries and header files
7219 # -----------------------------------------------------------------------
7221 if test "x$xc_with_tcl" != "x" ; then
7222 INC_SPECS
="${INC_SPECS} ${TCL_INCLUDE_SPEC} ${TK_INCLUDE_SPEC}"
7223 LIB_SPECS
="${LIB_SPECS} ${TCL_LIB_SPEC} ${TK_LIB_SPEC}"
7225 if test "x${loader_run_path}" = "x" ; then
7226 loader_run_path
="${TCL_LIB_DIR}"
7228 loader_run_path
="${TCL_LIB_DIR}:${loader_run_path}"
7231 #--------------------------------------------------------------------
7233 # Check if we can generate shared libraries on this system. Set flags
7234 # to generate shared libraries for systems that we know about. Start
7235 # with the values found in tclConfig.sh, make changes as we know about
7236 # the different systems.
7238 #--------------------------------------------------------------------
7240 # Initialize shared library build variables
7242 if test "x${TCL_SHLIB_SUFFIX}" == "x" ; then
7245 SHDLIB_EXT
="${TCL_SHLIB_SUFFIX}"
7248 if test "x${TCL_SHLIB_LD}" == "x" ; then
7250 # Construct shared library build arguments the painful way
7251 # This is not expected to be necessary, so the number of
7252 # supported systems has been pared down to a minimum.
7254 LDDL_FLAGS
="-shared"
7262 SHLIB_LIB_SPECS
="${LIB_SPECS}"
7263 if test "${xc_with_gnu_ld}" = "yes" ; then
7264 LDDL_FLAGS
="-dynamiclib -bind_at_load"
7266 LDDL_FLAGS
="-single_module -dynamiclib -flat_namespace"
7267 LDDL_FLAGS
="${LDDL_FLAGS} -undefined suppress -noprebind"
7268 SHLIB_CFLAGS
="-I/sw/include -fno-common"
7273 $as_echo "#define CYGWIN 1" >>confdefs.h
7276 LDDL_FLAGS
="-shared -Wl,--enable-auto-image-base -Wl,-rpath,${loader_run_path}"
7277 SHLIB_LIB_SPECS
="${LIB_SPECS}"
7281 SHLIB_CFLAGS
="-fPIC"
7282 LDDL_FLAGS
='-shared -Wl,-soname,$@'
7283 LD_RUN_PATH
="-Wl,-rpath,${loader_run_path}"
7285 EXTRA_LIB_SPECS
="-ldl"
7289 # AMD 64-bit archictecture
7290 # Add -fPIC to standard compile switch
7291 CFLAGS
="${CFLAGS} -fPIC"
7296 *-netbsd*|
*-freebsd*|
*-openbsd*)
7297 # Not available on all versions: check for include file.
7298 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7299 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7306 if test "$test_ok" = yes; then
7307 SHLIB_CFLAGS
="-fpic"
7309 LDDL_FLAGS
="-shared"
7314 if test "$GCC" = "yes" ; then
7315 CFLAGS
="-fPIC ${CFLAGS}"
7320 # Rely on shared lib arguments in tclConfig.sh
7322 SHLIB_LD
="${TCL_SHLIB_LD}"
7324 LDDL_FLAGS
="${TCL_LD_FLAGS}"
7329 LD_RUN_PATH
="-Wl,-rpath,${loader_run_path}"
7334 # If we're running gcc, then set SHLIB_CFLAGS flags for compiling
7335 # shared libraries for gcc, instead of those of the vendor's
7338 if test "$GCC" = "yes" ; then
7339 if test "x${TCL_SHLIB_CFLAGS}" = "x" ; then
7340 SHLIB_CFLAGS
="-fPIC ${SHLIB_CFLAGS}"
7342 SHLIB_CFLAGS
="${TCL_SHLIB_CFLAGS} ${SHLIB_CFLAGS}"
7345 CFLAGS
="${CFLAGS} ${SHLIB_CFLAGS}"
7347 if test "${xc_with_gnu_ld}" = "yes" ; then
7348 LDDL_FLAGS
="${LDDL_FLAGS} -Wl,--version-script=symbol.map"
7365 # Check whether --enable-asg was given.
7366 if test "${enable_asg+set}" = set; then :
7367 enableval
=$enable_asg;
7368 $as_echo "#define ASG 1" >>confdefs.h
7370 $as_echo "#define CONFIGURED 1" >>confdefs.h
7372 SUBDIRS
="asg spiceparser"
7373 SUBLIB
="asg/libasg.a spiceparser/libspiceparser.a"
7378 # Check whether --enable-lgf was given.
7379 if test "${enable_lgf+set}" = set; then :
7380 enableval
=$enable_lgf;
7384 $as_echo "#define LGF 1" >>confdefs.h
7390 # Check whether --enable-focus-fix was given.
7391 if test "${enable_focus_fix+set}" = set; then :
7392 enableval
=$enable_focus_fix;
7395 $as_echo "#define INPUT_FOCUS 1" >>confdefs.h
7402 # Check whether --with-gs was given.
7403 if test "${with_gs+set}" = set; then :
7405 if test -f "$withval"; then
7413 # Extract the first word of "gs", so it can be a program name with args.
7414 set dummy gs
; ac_word
=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_GS_EXEC+:} false
; then :
7418 $as_echo_n "(cached) " >&6
7420 if test -n "$GS_EXEC"; then
7421 ac_cv_prog_GS_EXEC
="$GS_EXEC" # Let the user override the test.
7423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7427 test -z "$as_dir" && as_dir
=.
7428 for ac_exec_ext
in '' $ac_executable_extensions; do
7429 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_GS_EXEC
=""
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 test -z "$ac_cv_prog_GS_EXEC" && ac_cv_prog_GS_EXEC
="gs"
7441 GS_EXEC
=$ac_cv_prog_GS_EXEC
7442 if test -n "$GS_EXEC"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_EXEC" >&5
7444 $as_echo "$GS_EXEC" >&6; }
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7453 cat >>confdefs.h
<<_ACEOF
7454 #define GS_EXEC "$GS_EXEC"
7459 # Check whether --with-ngspice was given.
7460 if test "${with_ngspice+set}" = set; then :
7461 withval
=$with_ngspice;
7462 if test -f "$withval"; then
7470 # Extract the first word of "ngspice", so it can be a program name with args.
7471 set dummy ngspice
; ac_word
=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if ${ac_cv_prog_SPICE_EXEC+:} false
; then :
7475 $as_echo_n "(cached) " >&6
7477 if test -n "$SPICE_EXEC"; then
7478 ac_cv_prog_SPICE_EXEC
="$SPICE_EXEC" # Let the user override the test.
7480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir
=.
7485 for ac_exec_ext
in '' $ac_executable_extensions; do
7486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_SPICE_EXEC
=""
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 test -z "$ac_cv_prog_SPICE_EXEC" && ac_cv_prog_SPICE_EXEC
="ngspice"
7498 SPICE_EXEC
=$ac_cv_prog_SPICE_EXEC
7499 if test -n "$SPICE_EXEC"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPICE_EXEC" >&5
7501 $as_echo "$SPICE_EXEC" >&6; }
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7510 cat >>confdefs.h
<<_ACEOF
7511 #define SPICE_EXEC "$SPICE_EXEC"
7520 # Check whether --with-python was given.
7521 if test "${with_python+set}" = set; then :
7522 withval
=$with_python; xc_with_python
=$withval
7526 if test "x$xc_with_tcl" != "x" ; then
7528 elif test "$xc_with_python" = "no" ; then
7530 elif test "$xc_with_python" = "yes" ; then
7531 # Extract the first word of "python", so it can be a program name with args.
7532 set dummy python
; ac_word
=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_path_PYTHON+:} false
; then :
7536 $as_echo_n "(cached) " >&6
7540 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
7543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir
=.
7548 for ac_exec_ext
in '' $ac_executable_extensions; do
7549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 PYTHON
=$ac_cv_path_PYTHON
7562 if test -n "$PYTHON"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7564 $as_echo "$PYTHON" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7571 elif test "x$xc_with_python" != x
; then
7572 test -f "$xc_with_python" && PYTHON
=$xc_with_python
7575 if test "x$PYTHON" != x
; then
7576 _py_version
=`$PYTHON -c 'import sys; print sys.version[0:3]'`
7577 _py_prefix
=`$PYTHON -c 'import sys; print sys.prefix'`
7578 _py_exec_prefix
=`$PYTHON -c 'import sys; print sys.exec_prefix'`
7580 _py_include
="$_py_prefix/include/python$_py_version"
7581 _py_lib
="$_py_exec_prefix/lib/python$_py_version/config"
7582 _py_makefile
="$_py_lib/Makefile"
7584 if test $_py_version = 1.5; then
7587 echo "*** Python version 1.5 detected: This version of Python has a known fatal"
7588 echo "*** bug. Disabling Python interface. If you want the embedded Python"
7589 echo "*** interface, you will need to get an updated version of Python."
7595 if test "x$PYTHON" != x
; then
7596 if test -f $_py_makefile; then
7597 _py_libs
=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $_py_makefile`
7598 _py_libm
=`sed -n -e 's/^LIBM=\(.*\)/\1/p' $_py_makefile`
7600 _py_libs
='-lpthread -ldl -lutil -ldb'
7604 # Now that we think we know where the python include and
7605 # library files are, make sure we can build a small
7606 # program against them.
7607 _save_CPPFLAGS
=${CPPFLAGS}
7608 _save_LDFLAGS
=${LDFLAGS}
7611 CPPFLAGS
="$CPPFLAGS -I$_py_include"
7612 LDFLAGS
="$LDFLAGS -L$_py_lib"
7614 case "$target_os" in
7616 PYLIB
="-lpython$_py_version"
7617 LIBS
="$PYLIB.dll $LIBS $X_PRE_LIBS $_py_libs"
7620 LIBS
="$LIBS -lpython$_py_version $_py_libs $_py_libm"
7626 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
7627 if test "x$ac_cv_header_Python_h" = xyes
; then :
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Py_Initialize in -lpython$_py_version" >&5
7630 $as_echo_n "checking for Py_Initialize in -lpython$_py_version... " >&6; }
7631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7642 if ac_fn_c_try_link
"$LINENO"; then :
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7647 $as_echo "yes" >&6; }
7648 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7654 rm -f core conftest.err conftest.
$ac_objext \
7655 conftest
$ac_exeext conftest.
$ac_ext
7660 if test "x$HAVE_PYTHON" = x0
; then
7661 CPPFLAGS
=$_save_CPPFLAGS
7662 LDFLAGS
=$_save_LDFLAGS
7668 if test "x$PYTHON" != x
; then
7669 STARTUP_FILE
="xcstartup.py"
7670 INTERP_PATH
="python"
7672 SUBDIRS
="${SUBDIRS} Xw"
7673 SUBLIB
="${SUBLIB} Xw/libxcXw.a"
7674 XCIRCUIT_TARGET
="xcircuit"
7675 elif test "x$xc_with_tcl" != "x" ; then
7677 STARTUP_FILE
="xcstartup.tcl"
7679 WRAPPER_SCRIPT
="wrapper.tcl"
7680 $as_echo "#define TCL_WRAPPER 1" >>confdefs.h
7682 XCIRCUIT_TARGET
="tcl"
7683 ALL_TARGET
="all-recursive"
7684 INSTALL_TARGET
="install-recursive"
7686 STARTUP_FILE
="startup.script"
7689 SUBDIRS
="${SUBDIRS} Xw"
7690 SUBLIB
="${SUBLIB} Xw/libxcXw.a"
7691 XCIRCUIT_TARGET
="xcircuit"
7694 # Add -lm last to LDFLAGS, or Tcl/Tk's addition of -lieee can cause
7696 EXTRA_LIB_SPECS
="$EXTRA_LIB_SPECS -lm"
7699 # Check whether --enable-memdebug was given.
7700 if test "${enable_memdebug+set}" = set; then :
7701 enableval
=$enable_memdebug;
7702 if test "x$xc_with_tcl" = "x" ; then
7703 LIBS
="${LIBS} -lefence"
7705 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7735 ac_config_files
="$ac_config_files Makefile Xw/Makefile asg/Makefile spiceparser/Makefile"
7737 cat >confcache
<<\_ACEOF
7738 # This file is a shell script that caches the results of configure
7739 # tests run on this system so they can be shared between configure
7740 # scripts and configure runs, see configure's option --config-cache.
7741 # It is not useful on other systems. If it contains results you don't
7742 # want to keep, you may remove or edit it.
7744 # config.status only pays attention to the cache file if you give it
7745 # the --recheck option to rerun configure.
7747 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7748 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7753 # The following way of writing the cache mishandles newlines in values,
7754 # but we know of no workaround that is simple, portable, and efficient.
7755 # So, we kill variables containing newlines.
7756 # Ultrix sh set writes to stderr and can't be redirected directly,
7757 # and sets the high bit in the cache file unless we assign to the vars.
7759 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7760 eval ac_val
=\$
$ac_var
7764 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7768 _ | IFS | as_nl
) ;; #(
7769 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7770 *) { eval $ac_var=; unset $ac_var;} ;;
7776 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7777 *${as_nl}ac_space
=\
*)
7778 # `set' does not quote correctly, so add quotes: double-quote
7779 # substitution turns \\\\ into \\, and sed turns \\ into \.
7782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7785 # `set' quotes correctly as required by POSIX, so do not add quotes.
7786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7797 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7799 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7800 if test -w "$cache_file"; then
7801 if test "x$cache_file" != "x/dev/null"; then
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7803 $as_echo "$as_me: updating cache $cache_file" >&6;}
7804 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7805 cat confcache
>"$cache_file"
7807 case $cache_file in #(
7809 mv -f confcache
"$cache_file"$$
&&
7810 mv -f "$cache_file"$$
"$cache_file" ;; #(
7812 mv -f confcache
"$cache_file" ;;
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7818 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7823 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7824 # Let make expand exec_prefix.
7825 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7827 # Transform confdefs.h into DEFS.
7828 # Protect against shell expansion while executing Makefile rules.
7829 # Protect against Makefile macro expansion.
7831 # If the first sed substitution is executed (which looks for macros that
7832 # take arguments), then branch to the quote section. Otherwise,
7833 # look for a macro that doesn't take arguments.
7843 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7845 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7849 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7862 DEFS
=`sed -n "$ac_script" confdefs.h`
7868 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7869 # 1. Remove the extension, and $U if already installed.
7870 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7871 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7873 # will be set to the directory where LIBOBJS objects are built.
7874 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7875 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7879 LTLIBOBJS
=$ac_ltlibobjs
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7883 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7884 if test -n "$am_sleep_pid"; then
7885 # Hide warnings about reused PIDs.
7886 wait $am_sleep_pid 2>/dev
/null
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7889 $as_echo "done" >&6; }
7890 if test -n "$EXEEXT"; then
7892 am__EXEEXT_FALSE
='#'
7898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7899 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7902 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7903 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7907 : "${CONFIG_STATUS=./config.status}"
7909 ac_clean_files_save
=$ac_clean_files
7910 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7912 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7914 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7916 # Generated by $as_me.
7917 # Run this file to recreate the current configuration.
7918 # Compiler output produced by configure, useful for debugging
7919 # configure, is in config.log if it exists.
7925 SHELL=\${CONFIG_SHELL-$SHELL}
7928 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7929 ## -------------------- ##
7930 ## M4sh Initialization. ##
7931 ## -------------------- ##
7933 # Be more Bourne compatible
7934 DUALCASE
=1; export DUALCASE
# for MKS sh
7935 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7938 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7939 # is contrary to our usage. Disable this feature.
7940 alias -g '${1+"$@"}'='"$@"'
7941 setopt NO_GLOB_SUBST
7943 case `(set -o) 2>/dev/null` in #(
7955 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7956 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7957 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7959 # Prefer a ksh shell builtin over an external printf program on Solaris,
7960 # but without wasting forks for bash or zsh.
7961 if test -z "$BASH_VERSION$ZSH_VERSION" \
7962 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7963 as_echo='print
-r --'
7964 as_echo_n='print
-rn --'
7965 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7966 as_echo='printf %s
\n'
7967 as_echo_n='printf %s
'
7969 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7970 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7971 as_echo_n='/usr
/ucb
/echo -n'
7973 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7974 as_echo_n_body='eval
7978 expr "X$arg" : "X\\(.*\\)$as_nl";
7979 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7981 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7983 export as_echo_n_body
7984 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7987 as_echo='sh
-c $as_echo_body as_echo
'
7990 # The user is always right.
7991 if test "${PATH_SEPARATOR+set}" != set; then
7993 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7994 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8001 # We need space, tab and new line, in precisely that order. Quoting is
8002 # there to prevent editors from complaining about space-tab.
8003 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8004 # splitting by setting IFS to empty value.)
8007 # Find who we are. Look in the path if we contain no directory separator.
8010 *[\\/]* ) as_myself=$0 ;;
8011 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8022 # We did not find ourselves, most probably we were run as `sh COMMAND'
8023 # in which case we are not to be found in the path.
8024 if test "x$as_myself" = x
; then
8027 if test ! -f "$as_myself"; then
8028 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8032 # Unset variables that we do not need and which cause bugs (e.g. in
8033 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8034 # suppresses any "Segmentation fault" message there. '((' could
8035 # trigger a bug in pdksh 5.2.14.
8036 for as_var
in BASH_ENV ENV MAIL MAILPATH
8037 do eval test x\
${$as_var+set} = xset \
8038 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8051 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8054 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8055 # ----------------------------------------
8056 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8057 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8058 # script with STATUS, using 1 if that was 0.
8061 as_status
=$1; test $as_status -eq 0 && as_status
=1
8063 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8064 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8066 $as_echo "$as_me: error: $2" >&2
8067 as_fn_exit
$as_status
8071 # as_fn_set_status STATUS
8072 # -----------------------
8073 # Set $? to STATUS, without forking.
8077 } # as_fn_set_status
8081 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8091 # Portably unset VAR.
8094 { eval $1=; unset $1;}
8096 as_unset
=as_fn_unset
8097 # as_fn_append VAR VALUE
8098 # ----------------------
8099 # Append the text in VALUE to the end of the definition contained in VAR. Take
8100 # advantage of any shell optimizations that allow amortized linear growth over
8101 # repeated appends, instead of the typical quadratic growth present in naive
8103 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8104 eval 'as_fn_append ()
8115 # as_fn_arith ARG...
8116 # ------------------
8117 # Perform arithmetic evaluation on the ARGs, and store the result in the
8118 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8119 # must be portable across $(()) and expr.
8120 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8121 eval 'as_fn_arith ()
8128 as_val
=`expr "$@" || test $? -eq 1`
8133 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8134 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8140 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8141 as_basename
=basename
8146 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8152 as_me
=`$as_basename -- "$0" ||
8153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8154 X"$0" : 'X\(//\)$' \| \
8155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8157 sed '/^.*\/\([^/][^/]*\)\/*$/{
8171 # Avoid depending upon Character Ranges.
8172 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8173 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8174 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8175 as_cr_digits
='0123456789'
8176 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8178 ECHO_C
= ECHO_N
= ECHO_T
=
8179 case `echo -n x` in #(((((
8181 case `echo 'xy\c'` in
8182 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8184 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8191 rm -f conf$$ conf$$.exe conf$$.
file
8192 if test -d conf$$.dir
; then
8193 rm -f conf$$.dir
/conf$$.
file
8196 mkdir conf$$.dir
2>/dev
/null
8198 if (echo >conf$$.
file) 2>/dev
/null
; then
8199 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8201 # ... but there are two gotchas:
8202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8204 # In both cases, we have to default to `cp -pR'.
8205 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8207 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8215 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8216 rmdir conf$$.dir
2>/dev
/null
8221 # Create "$as_dir" as a directory, including parents if necessary.
8226 -*) as_dir
=.
/$as_dir;;
8228 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8232 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8233 *) as_qdir
=$as_dir;;
8235 as_dirs
="'$as_qdir' $as_dirs"
8236 as_dir
=`$as_dirname -- "$as_dir" ||
8237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8238 X"$as_dir" : 'X\(//\)[^/]' \| \
8239 X"$as_dir" : 'X\(//\)$' \| \
8240 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8241 $as_echo X"$as_dir" |
8242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8259 test -d "$as_dir" && break
8261 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8262 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8266 if mkdir
-p .
2>/dev
/null
; then
8267 as_mkdir_p
='mkdir -p "$as_dir"'
8269 test -d .
/-p && rmdir .
/-p
8274 # as_fn_executable_p FILE
8275 # -----------------------
8276 # Test if FILE is an executable regular file.
8277 as_fn_executable_p
()
8279 test -f "$1" && test -x "$1"
8280 } # as_fn_executable_p
8282 as_executable_p
=as_fn_executable_p
8284 # Sed expression to map a string onto a valid CPP name.
8285 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8287 # Sed expression to map a string onto a valid variable name.
8288 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8292 ## ----------------------------------- ##
8293 ## Main body of $CONFIG_STATUS script. ##
8294 ## ----------------------------------- ##
8296 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8299 # Save the log message, to keep $0 and so on meaningful, and to
8300 # report actual input values of CONFIG_FILES etc. instead of their
8301 # values after options handling.
8303 This file was extended by $as_me, which was
8304 generated by GNU Autoconf 2.69. Invocation command line was
8306 CONFIG_FILES = $CONFIG_FILES
8307 CONFIG_HEADERS = $CONFIG_HEADERS
8308 CONFIG_LINKS = $CONFIG_LINKS
8309 CONFIG_COMMANDS = $CONFIG_COMMANDS
8312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8317 case $ac_config_files in *"
8318 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8324 # Files that config.status was made for.
8325 config_files="$ac_config_files"
8326 config_commands="$ac_config_commands"
8330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8332 \`$as_me' instantiates files and other configuration actions
8333 from templates according to the current configuration. Unless the files
8334 and actions are specified as TAGs, all are instantiated by default.
8336 Usage: $0 [OPTION]... [TAG]...
8338 -h, --help print this help, then exit
8339 -V, --version print version number and configuration settings, then exit
8340 --config print configuration, then exit
8341 -q, --quiet, --silent
8342 do not print progress messages
8343 -d, --debug don't remove temporary files
8344 --recheck update $as_me by reconfiguring in the same conditions
8345 --file=FILE[:TEMPLATE]
8346 instantiate the configuration file FILE
8348 Configuration files:
8351 Configuration commands:
8354 Report bugs to the package provider."
8357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8358 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8361 configured by $0, generated by GNU Autoconf 2.69,
8362 with options \\"\$ac_cs_config\\"
8364 Copyright (C) 2012 Free Software Foundation, Inc.
8365 This config.status script is free software; the Free Software Foundation
8366 gives unlimited permission to copy, distribute and modify it."
8373 test -n "\$AWK" || AWK=awk
8376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8377 # The default lists apply if the user does not specify any file.
8383 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8384 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8388 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8400 # Handling of the options.
8401 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8403 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8404 $as_echo "$ac_cs_version"; exit ;;
8405 --config |
--confi |
--conf |
--con |
--co |
--c )
8406 $as_echo "$ac_cs_config"; exit ;;
8407 --debug |
--debu |
--deb |
--de |
--d |
-d )
8409 --file |
--fil |
--fi |
--f )
8412 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8413 '') as_fn_error $?
"missing file argument" ;;
8415 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8416 ac_need_defaults
=false
;;
8417 --he |
--h |
--help |
--hel |
-h )
8418 $as_echo "$ac_cs_usage"; exit ;;
8419 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8420 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8424 -*) as_fn_error $?
"unrecognized option: \`$1'
8425 Try \`$0 --help' for more information." ;;
8427 *) as_fn_append ac_config_targets
" $1"
8428 ac_need_defaults
=false
;;
8434 ac_configure_extra_args
=
8436 if $ac_cs_silent; then
8438 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8443 if \$ac_cs_recheck; then
8444 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8446 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8447 CONFIG_SHELL='$SHELL'
8453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8458 ## Running $as_me. ##
8464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8468 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8474 # Handling of arguments.
8475 for ac_config_target
in $ac_config_targets
8477 case $ac_config_target in
8478 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8479 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8480 "Xw/Makefile") CONFIG_FILES
="$CONFIG_FILES Xw/Makefile" ;;
8481 "asg/Makefile") CONFIG_FILES
="$CONFIG_FILES asg/Makefile" ;;
8482 "spiceparser/Makefile") CONFIG_FILES
="$CONFIG_FILES spiceparser/Makefile" ;;
8484 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8489 # If the user did not use the arguments to specify the items to instantiate,
8490 # then the envvar interface is used. Set only those that are not.
8491 # We use the long form for the default assignment because of an extremely
8492 # bizarre bug on SunOS 4.1.3.
8493 if $ac_need_defaults; then
8494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8495 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8498 # Have a temporary directory for convenience. Make it in the build tree
8499 # simply because there is no reason against having it here, and in addition,
8500 # creating and moving files from /tmp can sometimes cause problems.
8501 # Hook for its removal unless debugging.
8502 # Note that there is a small window in which the directory will not be cleaned:
8503 # after its creation but before its name has been assigned to `$tmp'.
8507 trap 'exit_status=$?
8509 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8511 trap 'as_fn_exit 1' 1 2 13 15
8513 # Create a (secure) tmp directory for tmp files.
8516 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8520 tmp
=.
/conf$$
-$RANDOM
8521 (umask 077 && mkdir
"$tmp")
8522 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8525 # Set up the scripts for CONFIG_FILES section.
8526 # No need to generate them if there are no CONFIG_FILES.
8527 # This happens for instance with `./config.status config.h'.
8528 if test -n "$CONFIG_FILES"; then
8531 ac_cr
=`echo X | tr X '\015'`
8532 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8533 # But we know of no other shell where ac_cr would be empty at this
8534 # point, so we can use a bashism as a fallback.
8535 if test "x$ac_cr" = x
; then
8536 eval ac_cr
=\$
\'\\r
\'
8538 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8539 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8545 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8550 echo "cat >conf$$subs.awk <<_ACEOF" &&
8551 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8554 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8555 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8557 for ac_last_try in false false false false false :; do
8558 . ./conf$$subs.sh ||
8559 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8561 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8562 if test $ac_delim_n = $ac_delim_num; then
8564 elif $ac_last_try; then
8565 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8567 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8573 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8577 s/^/S["/; s
/!.
*/"]=/
8587 s/\(.\{148\}\)..*/\1/
8589 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8594 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8601 s/\(.\{148\}\)..*/\1/
8603 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8607 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8612 ' <conf$$subs.awk | sed '
8617 ' >>$CONFIG_STATUS || ac_write_fail=1
8618 rm -f conf$$subs.awk
8619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8621 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8622 for (key in S) S_is_set[key] = 1
8628 nfields = split(line, field, "@
")
8630 len = length(field[1])
8631 for (i = 2; i < nfields; i++) {
8633 keylen = length(key)
8634 if (S_is_set[key]) {
8636 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8637 len += length(value) + length(field[++i])
8648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8649 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8650 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8653 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8654 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8657 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8658 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8659 # trailing colons and then remove the whole line if VPATH becomes empty
8660 # (actually we leave an empty line to preserve line numbers).
8661 if test "x
$srcdir" = x.; then
8662 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8681 fi # test -n "$CONFIG_FILES"
8684 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
8689 :[FHLC]) ac_mode=$ac_tag; continue;;
8691 case $ac_mode$ac_tag in
8693 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
8694 :[FH]-) ac_tag=-:-;;
8695 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8712 -) ac_f="$ac_tmp/stdin";;
8713 *) # Look for the file first in the build tree, then in the source tree
8714 # (if the path is not absolute). The absolute path cannot be DOS-style,
8715 # because $ac_f cannot contain `:'.
8719 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8721 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
8724 as_fn_append ac_file_inputs " '$ac_f'"
8727 # Let's still pretend it is `configure' which instantiates (i.e., don't
8728 # use $as_me), people would be surprised to read:
8729 # /* config.h. Generated by config.status. */
8730 configure_input='Generated from '`
8731 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8733 if test x"$ac_file" != x-; then
8734 configure_input="$ac_file.
$configure_input"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
8736 $as_echo "$as_me: creating
$ac_file" >&6;}
8738 # Neutralize special characters interpreted by sed in replacement strings.
8739 case $configure_input in #(
8740 *\&* | *\|* | *\\* )
8741 ac_sed_conf_input=`$as_echo "$configure_input" |
8742 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8743 *) ac_sed_conf_input=$configure_input;;
8747 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
8748 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
8753 ac_dir=`$as_dirname -- "$ac_file" ||
8754 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8755 X"$ac_file" : 'X\(//\)[^/]' \| \
8756 X"$ac_file" : 'X\(//\)$' \| \
8757 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8758 $as_echo X"$ac_file" |
8759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8776 as_dir="$ac_dir"; as_fn_mkdir_p
8780 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8783 # A "..
" for each directory in $ac_dir_suffix.
8784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8785 case $ac_top_builddir_sub in
8786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8790 ac_abs_top_builddir=$ac_pwd
8791 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8792 # for backward compatibility:
8793 ac_top_builddir=$ac_top_build_prefix
8796 .) # We are building in place.
8798 ac_top_srcdir=$ac_top_builddir_sub
8799 ac_abs_top_srcdir=$ac_pwd ;;
8800 [\\/]* | ?:[\\/]* ) # Absolute name.
8801 ac_srcdir=$srcdir$ac_dir_suffix;
8802 ac_top_srcdir=$srcdir
8803 ac_abs_top_srcdir=$srcdir ;;
8805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8806 ac_top_srcdir=$ac_top_build_prefix$srcdir
8807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8809 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8824 [\\/$]* | ?:[\\/]* ) ;;
8825 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8830 # If the template does not know about datarootdir, expand it.
8831 # FIXME: This hack should be removed a few years after 2.60.
8832 ac_datarootdir_hack=; ac_datarootdir_seen=
8843 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
8844 *datarootdir*) ac_datarootdir_seen=yes;;
8845 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
8847 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
8849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8850 ac_datarootdir_hack='
8851 s&@datadir@&$datadir&g
8852 s&@docdir@&$docdir&g
8853 s&@infodir@&$infodir&g
8854 s&@localedir@&$localedir&g
8855 s&@mandir@&$mandir&g
8856 s&\\\${datarootdir}&$datarootdir&g' ;;
8860 # Neutralize VPATH when `$srcdir' = `.'.
8861 # Shell code in configure.ac might set extrasub.
8862 # FIXME: do we really want to maintain this feature?
8863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8864 ac_sed_extra="$ac_vpsub
8867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8869 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8870 s|@configure_input@|
$ac_sed_conf_input|
;t t
8871 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8872 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8873 s
&@srcdir@
&$ac_srcdir&;t t
8874 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8875 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8876 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8877 s
&@builddir@
&$ac_builddir&;t t
8878 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8879 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8880 s
&@INSTALL@
&$ac_INSTALL&;t t
8881 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8882 $ac_datarootdir_hack
8884 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8885 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8888 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8890 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8892 which seems to be undefined. Please make sure it is defined" >&5
8893 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8894 which seems to be undefined. Please make sure it is defined" >&2;}
8896 rm -f "$ac_tmp/stdin"
8898 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8899 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8905 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8906 $as_echo "$as_me: executing $ac_file commands" >&6;}
8911 case $ac_file$ac_mode in
8912 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8913 # Older Autoconf quotes --file arguments for eval, but not when files
8914 # are listed without --file. Let's play safe and only
enable the
eval
8915 # if we detect the quoting.
8916 case $CONFIG_FILES in
8917 *\'*) eval set x
"$CONFIG_FILES" ;;
8918 *) set x
$CONFIG_FILES ;;
8923 # Strip MF so we end up with the name of the file.
8924 mf
=`echo "$mf" | sed -e 's/:.*$//'`
8925 # Check whether this is an Automake generated Makefile or not.
8926 # We used to match only the files named 'Makefile.in', but
8927 # some people rename them; so instead we look at the file content.
8928 # Grep'ing the first line is not enough: some people post-process
8929 # each Makefile.in and add a new line on top of each file to say so.
8930 # Grep'ing the whole file is not good either: AIX grep has a line
8931 # limit of 2048, but all sed's we know have understand at least 4000.
8932 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
8933 dirpart
=`$as_dirname -- "$mf" ||
8934 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8935 X"$mf" : 'X\(//\)[^/]' \| \
8936 X"$mf" : 'X\(//\)$' \| \
8937 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8959 # Extract the definition of DEPDIR, am__include, and am__quote
8960 # from the Makefile without running 'make'.
8961 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
8962 test -z "$DEPDIR" && continue
8963 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
8964 test -z "$am__include" && continue
8965 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
8966 # Find all dependency output files, they are included files with
8967 # $(DEPDIR) in their names. We invoke sed twice because it is the
8968 # simplest approach to changing $(DEPDIR) to its actual value in the
8970 for file in `sed -n "
8971 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8972 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8973 # Make sure the directory exists.
8974 test -f "$dirpart/$file" && continue
8975 fdir
=`$as_dirname -- "$file" ||
8976 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8977 X"$file" : 'X\(//\)[^/]' \| \
8978 X"$file" : 'X\(//\)$' \| \
8979 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8998 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
8999 # echo "creating $dirpart/$file"
9000 echo '# dummy' > "$dirpart/$file"
9012 ac_clean_files
=$ac_clean_files_save
9014 test $ac_write_fail = 0 ||
9015 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
9018 # configure is writing to config.log, and then calls config.status.
9019 # config.status does its own redirection, appending to config.log.
9020 # Unfortunately, on DOS this fails, as config.log is still kept open
9021 # by configure, so config.status won't be able to write to it; its
9022 # output is simply discarded. So we exec the FD to /dev/null,
9023 # effectively closing config.log, so it can be properly (re)opened and
9024 # appended to by config.status. When coming back to configure, we
9025 # need to make the FD available again.
9026 if test "$no_create" != yes; then
9028 ac_config_status_args
=
9029 test "$silent" = yes &&
9030 ac_config_status_args
="$ac_config_status_args --quiet"
9032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9035 # would make configure fail if this is the last instruction.
9036 $ac_cs_success || as_fn_exit
1
9038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9045 echo "Configuration results:"
9046 echo "----------------------------------------------------"
9049 if test "x$xc_with_tcl" == "x" ; then
9050 if test "x$PYTHON" != x
; then
9051 echo "Using Python interface (not recommended)"
9053 echo "No Tcl/Tk, using standard Xlib/Xt interface."
9054 echo "If that is not what you wanted, then make sure"
9055 echo "you have Tcl/Tk development packages installed?"
9058 echo "Using Tcl/Tk interface"
9062 if test "x$xc_with_cairo" == "x" ; then
9063 echo "No Cairo graphics."
9064 echo "If that is not what you wanted, then make sure"
9065 echo "you have libcairo and fontconfig installed."
9066 echo "Try installing package cairo-devel."
9068 echo "Using Cairo graphics"
9071 echo "CFLAGS=${CFLAGS}"