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
701 INSTALL_STRIP_PROGRAM
755 program_transform_name
768 enable_option_checking
770 enable_dependency_tracking
791 ac_precious_vars
='build_alias
810 # Initialize some variables set by options.
812 ac_init_version
=false
813 ac_unrecognized_opts
=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
824 program_transform_name
=s
,x
,x
,
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir
='${exec_prefix}/bin'
839 sbindir
='${exec_prefix}/sbin'
840 libexecdir
='${exec_prefix}/libexec'
841 datarootdir
='${prefix}/share'
842 datadir
='${datarootdir}'
843 sysconfdir
='${prefix}/etc'
844 sharedstatedir
='${prefix}/com'
845 localstatedir
='${prefix}/var'
846 includedir
='${prefix}/include'
847 oldincludedir
='/usr/include'
848 docdir
='${datarootdir}/doc/${PACKAGE}'
849 infodir
='${datarootdir}/info'
854 libdir
='${exec_prefix}/lib'
855 localedir
='${datarootdir}/locale'
856 mandir
='${datarootdir}/man'
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\
$ac_option
870 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
881 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
883 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
886 -build |
--build |
--buil |
--bui |
--bu)
887 ac_prev
=build_alias
;;
888 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
889 build_alias
=$ac_optarg ;;
891 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
892 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
893 ac_prev
=cache_file
;;
894 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
895 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
896 cache_file
=$ac_optarg ;;
899 cache_file
=config.cache
;;
901 -datadir |
--datadir |
--datadi |
--datad)
903 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
904 datadir
=$ac_optarg ;;
906 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
907 |
--dataroo |
--dataro |
--datar)
908 ac_prev
=datarootdir
;;
909 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
910 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
911 datarootdir
=$ac_optarg ;;
913 -disable-* |
--disable-*)
914 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
917 as_fn_error $?
"invalid feature name: $ac_useropt"
918 ac_useropt_orig
=$ac_useropt
919 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
924 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep
=', ';;
927 eval enable_
$ac_useropt=no
;;
929 -docdir |
--docdir |
--docdi |
--doc |
--do)
931 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
934 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
936 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
939 -enable-* |
--enable-*)
940 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
943 as_fn_error $?
"invalid feature name: $ac_useropt"
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=\
$ac_optarg ;;
955 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
956 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
957 |
--exec |
--exe |
--ex)
958 ac_prev
=exec_prefix
;;
959 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
960 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
961 |
--exec=* |
--exe=* |
--ex=*)
962 exec_prefix
=$ac_optarg ;;
964 -gas |
--gas |
--ga |
--g)
965 # Obsolete; use --with-gas.
968 -help |
--help |
--hel |
--he |
-h)
970 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
971 ac_init_help
=recursive
;;
972 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
973 ac_init_help
=short
;;
975 -host |
--host |
--hos |
--ho)
976 ac_prev
=host_alias
;;
977 -host=* |
--host=* |
--hos=* |
--ho=*)
978 host_alias
=$ac_optarg ;;
980 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
982 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
984 htmldir
=$ac_optarg ;;
986 -includedir |
--includedir |
--includedi |
--included |
--include \
987 |
--includ |
--inclu |
--incl |
--inc)
988 ac_prev
=includedir
;;
989 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
990 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
991 includedir
=$ac_optarg ;;
993 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
995 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
996 infodir
=$ac_optarg ;;
998 -libdir |
--libdir |
--libdi |
--libd)
1000 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1001 libdir
=$ac_optarg ;;
1003 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1004 |
--libexe |
--libex |
--libe)
1005 ac_prev
=libexecdir
;;
1006 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1007 |
--libexe=* |
--libex=* |
--libe=*)
1008 libexecdir
=$ac_optarg ;;
1010 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1011 ac_prev
=localedir
;;
1012 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1013 localedir
=$ac_optarg ;;
1015 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1016 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1017 ac_prev
=localstatedir
;;
1018 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1019 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1020 localstatedir
=$ac_optarg ;;
1022 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1024 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1025 mandir
=$ac_optarg ;;
1027 -nfp |
--nfp |
--nf)
1028 # Obsolete; use --without-fp.
1031 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1032 |
--no-cr |
--no-c |
-n)
1035 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1036 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1039 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1040 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1041 |
--oldin |
--oldi |
--old |
--ol |
--o)
1042 ac_prev
=oldincludedir
;;
1043 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1044 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1045 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1046 oldincludedir
=$ac_optarg ;;
1048 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1050 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1051 prefix
=$ac_optarg ;;
1053 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1054 |
--program-pre |
--program-pr |
--program-p)
1055 ac_prev
=program_prefix
;;
1056 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1057 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1058 program_prefix
=$ac_optarg ;;
1060 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1061 |
--program-suf |
--program-su |
--program-s)
1062 ac_prev
=program_suffix
;;
1063 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1064 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1065 program_suffix
=$ac_optarg ;;
1067 -program-transform-name |
--program-transform-name \
1068 |
--program-transform-nam |
--program-transform-na \
1069 |
--program-transform-n |
--program-transform- \
1070 |
--program-transform |
--program-transfor \
1071 |
--program-transfo |
--program-transf \
1072 |
--program-trans |
--program-tran \
1073 |
--progr-tra |
--program-tr |
--program-t)
1074 ac_prev
=program_transform_name
;;
1075 -program-transform-name=* |
--program-transform-name=* \
1076 |
--program-transform-nam=* |
--program-transform-na=* \
1077 |
--program-transform-n=* |
--program-transform-=* \
1078 |
--program-transform=* |
--program-transfor=* \
1079 |
--program-transfo=* |
--program-transf=* \
1080 |
--program-trans=* |
--program-tran=* \
1081 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1082 program_transform_name
=$ac_optarg ;;
1084 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1086 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1087 pdfdir
=$ac_optarg ;;
1089 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1091 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1094 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1095 |
-silent |
--silent |
--silen |
--sile |
--sil)
1098 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1100 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1102 sbindir
=$ac_optarg ;;
1104 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1105 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1106 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1108 ac_prev
=sharedstatedir
;;
1109 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1110 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1111 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1113 sharedstatedir
=$ac_optarg ;;
1115 -site |
--site |
--sit)
1117 -site=* |
--site=* |
--sit=*)
1120 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1122 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1123 srcdir
=$ac_optarg ;;
1125 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1126 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1127 ac_prev
=sysconfdir
;;
1128 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1129 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1130 sysconfdir
=$ac_optarg ;;
1132 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1133 ac_prev
=target_alias
;;
1134 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1135 target_alias
=$ac_optarg ;;
1137 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1140 -version |
--version |
--versio |
--versi |
--vers |
-V)
1141 ac_init_version
=: ;;
1144 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1147 as_fn_error $?
"invalid package name: $ac_useropt"
1148 ac_useropt_orig
=$ac_useropt
1149 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep
=', ';;
1157 eval with_
$ac_useropt=\
$ac_optarg ;;
1159 -without-* |
--without-*)
1160 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1163 as_fn_error $?
"invalid package name: $ac_useropt"
1164 ac_useropt_orig
=$ac_useropt
1165 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep
=', ';;
1173 eval with_
$ac_useropt=no
;;
1176 # Obsolete; use --with-x.
1179 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1180 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1181 ac_prev
=x_includes
;;
1182 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1183 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1184 x_includes
=$ac_optarg ;;
1186 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1187 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1188 ac_prev
=x_libraries
;;
1189 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1190 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1191 x_libraries
=$ac_optarg ;;
1193 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1198 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1202 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1204 eval $ac_envvar=\
$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 if test -n "$ac_prev"; then
1219 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $?
"missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1226 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 # Check all directory arguments for consistency.
1232 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val
=\$
$ac_var
1238 # Remove trailing slashes.
1241 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\
$ac_val;;
1244 # Be sure to have absolute directory names.
1246 [\\/$
]* | ?
:[\\/]* ) continue;;
1247 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1249 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target
=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x
; then
1261 if test "x$build_alias" = x
; then
1262 cross_compiling
=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1269 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1271 test "$silent" = yes && exec 6>/dev
/null
1274 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di
=`ls -di .` &&
1276 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $?
"working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $?
"pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted
=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir
=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1314 ac_srcdir_defaulted
=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1318 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1332 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 for ac_var
in $ac_precious_vars; do
1335 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1337 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1348 \`configure' configures this package to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1411 --x-includes=DIR X include files are
in DIR
1412 --x-libraries=DIR X library files are
in DIR
1415 --build=BUILD configure
for building on BUILD
[guessed
]
1416 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1417 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1421 if test -n "$ac_init_help"; then
1426 --disable-option-checking ignore unrecognized
--enable/--with options
1427 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1428 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1429 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1430 --disable-silent-rules verbose build output
(undo
: "make V=0")
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --enable-optimize enable compile-time optimizer flag
-O2
1436 --enable-asg enable support
for Automatic Schematic Generation
1437 --disable-lgf disable support
for reading Caltech tools
1438 analog simulator .lgf files
1439 --disable-focus-fix disable focus fix
for some window managers
1440 --enable-memdebug enable memory debugging
1443 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1444 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1445 --with-x use the X Window System
1446 --with-xpm=DIR use Xpm include
/library files
in DIR
1447 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1448 --with-cairo Use cairo graphics library
[default
=yes]
1449 --with-distdir=DIR
install into location DIR
for distribution
1450 --with-tcl=DIR Find tclConfig.sh
in DIR
1451 --with-tk=DIR Find tkConfig.sh
in DIR
1452 --with-tclincls=DIR Find tcl.h
in DIR
1453 --with-tkincls=DIR Find tk.h
in DIR
1454 --with-tcllibs=DIR Find Tcl library
in DIR
1455 --with-tklibs=DIR Find Tk library
in DIR
1456 --with-gs=DIR path to ghostscript
1457 --with-ngspice=DIR path to ngspice
1458 --with-python=DIR path to python interpreter
1460 Some influential environment variables
:
1461 CC C compiler
command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1464 nonstandard directory
<lib dir
>
1465 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1466 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1467 you have headers
in a nonstandard directory
<include dir
>
1469 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1470 PKG_CONFIG path to pkg-config utility
1472 directories to add to pkg-config
's search path
1474 path overriding pkg-config's built-in search path
1476 C compiler flags
for cairo
, overriding pkg-config
1477 cairo_LIBS linker flags
for cairo
, overriding pkg-config
1479 C compiler flags
for fontconfig
, overriding pkg-config
1481 linker flags
for fontconfig
, overriding pkg-config
1483 Use these variables to override the choices made by
`configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1486 Report bugs to the package provider.
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1516 .) # We are building in place.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1538 $SHELL "$ac_srcdir/configure" --help=recursive
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1550 generated by GNU Autoconf 2.69
1552 Copyright (C) 2012 Free Software Foundation, Inc.
1553 This configure script is free software; the Free Software Foundation
1554 gives unlimited permission to copy, distribute and modify it.
1559 ## ------------------------ ##
1560 ## Autoconf initialization. ##
1561 ## ------------------------ ##
1563 # ac_fn_c_try_compile LINENO
1564 # --------------------------
1565 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1566 ac_fn_c_try_compile ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1573 *) ac_try_echo
=$ac_try;;
1575 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1579 if test -s conftest.err
; then
1580 grep -v '^ *+' conftest.err
>conftest.er1
1581 cat conftest.er1
>&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.
$ac_objext; then :
1591 $as_echo "$as_me: failed program was:" >&5
1592 sed 's/^/| /' conftest.
$ac_ext >&5
1596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 as_fn_set_status
$ac_retval
1599 } # ac_fn_c_try_compile
1601 # ac_fn_c_try_link LINENO
1602 # -----------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1606 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1607 rm -f conftest.
$ac_objext conftest
$ac_exeext
1608 if { { ac_try
="$ac_link"
1610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 test -x conftest$ac_exeext
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_link
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1657 *) ac_try_echo
=$ac_try;;
1659 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1681 ac_retval=$ac_status
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1689 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1690 # --------------------------------------------
1691 # Tries to find the compile-time value of EXPR in a program that includes
1692 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1694 ac_fn_c_compute_int ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if test "$cross_compiling" = yes; then
1698 # Depending upon the size, compute the lo and hi bounds.
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1705 static int test_array [1 - 2 * !(($2) >= 0)];
1707 return test_array [0];
1713 if ac_fn_c_try_compile "$LINENO"; then :
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1722 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1724 return test_array [0];
1730 if ac_fn_c_try_compile "$LINENO"; then :
1731 ac_hi=$ac_mid; break
1733 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1734 if test $ac_lo -le $ac_mid; then
1738 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1749 static int test_array [1 - 2 * !(($2) < 0)];
1751 return test_array [0];
1757 if ac_fn_c_try_compile "$LINENO"; then :
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1768 return test_array [0];
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 ac_lo=$ac_mid; break
1777 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1778 if test $ac_mid -le $ac_hi; then
1782 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 # Binary search between lo and hi bounds.
1793 while test "x$ac_lo" != "x$ac_hi"; do
1794 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1801 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1803 return test_array [0];
1809 if ac_fn_c_try_compile "$LINENO"; then :
1812 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1824 static long int longval () { return $2; }
1825 static unsigned long int ulongval () { return $2; }
1832 FILE *f = fopen ("conftest.val", "w");
1837 long int i = longval ();
1840 fprintf (f, "%ld", i);
1844 unsigned long int i = ulongval ();
1847 fprintf (f, "%lu", i);
1849 /* Do not output a trailing newline, as this causes \r\n confusion
1850 on some platforms. */
1851 return ferror (f) || fclose (f) != 0;
1857 if ac_fn_c_try_run "$LINENO"; then :
1858 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1863 conftest.$ac_objext conftest.beam conftest.$ac_ext
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_compute_int
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1881 *) ac_try_echo
=$ac_try;;
1883 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 if test -s conftest.err
; then
1888 grep -v '^ *+' conftest.err
>conftest.er1
1889 cat conftest.er1
>&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i
&& {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.
$ac_ext >&5
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status
$ac_retval
1909 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists and can be compiled using the include files in
1912 # INCLUDES, setting the cache variable VAR accordingly.
1913 ac_fn_c_check_header_compile
()
1915 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \
${$3+:} false
; then :
1919 $as_echo_n "(cached) " >&6
1921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1926 if ac_fn_c_try_compile
"$LINENO"; then :
1931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 } # ac_fn_c_check_header_compile
1940 # ac_fn_c_check_func LINENO FUNC VAR
1941 # ----------------------------------
1942 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1943 ac_fn_c_check_func
()
1945 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \
${$3+:} false
; then :
1949 $as_echo_n "(cached) " >&6
1951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1955 #define $2 innocuous_$2
1957 /* System header to define __stub macros and hopefully few prototypes,
1958 which can conflict with char $2 (); below.
1959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1960 <limits.h> exists even on freestanding compilers. */
1963 # include <limits.h>
1965 # include <assert.h>
1970 /* Override any GCC internal prototype to avoid an error.
1971 Use char because int might match the return type of a GCC
1972 builtin and then its argument prototype would still apply. */
1977 /* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980 #if defined __stub_$2 || defined __stub___$2
1992 if ac_fn_c_try_link
"$LINENO"; then :
1997 rm -f core conftest.err conftest.
$ac_objext \
1998 conftest
$ac_exeext conftest.
$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_func
2007 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2010 # the include files in INCLUDES and setting the cache variable VAR
2012 ac_fn_c_check_header_mongrel
()
2014 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2015 if eval \
${$3+:} false
; then :
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \
${$3+:} false
; then :
2019 $as_echo_n "(cached) " >&6
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 # Is the header compilable?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2027 $as_echo_n "checking $2 usability... " >&6; }
2028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile
"$LINENO"; then :
2034 ac_header_compiler
=yes
2036 ac_header_compiler
=no
2038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2040 $as_echo "$ac_header_compiler" >&6; }
2042 # Is the header present?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2044 $as_echo_n "checking $2 presence... " >&6; }
2045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2049 if ac_fn_c_try_cpp
"$LINENO"; then :
2050 ac_header_preproc
=yes
2052 ac_header_preproc
=no
2054 rm -f conftest.err conftest.i conftest.
$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2056 $as_echo "$ac_header_preproc" >&6; }
2058 # So? What about this header?
2059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2062 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2064 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2068 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2070 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2072 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2074 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2076 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \
${$3+:} false
; then :
2082 $as_echo_n "(cached) " >&6
2084 eval "$3=\$ac_header_compiler"
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 } # ac_fn_c_check_header_mongrel
2093 cat >config.log
<<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2097 It was created by $as_me, which was
2098 generated by GNU Autoconf 2.69. Invocation command line was
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2133 test -z "$as_dir" && as_dir
=.
2134 $as_echo "PATH: $as_dir"
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2158 ac_must_keep_next
=false
2164 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2165 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2166 |
-silent |
--silent |
--silen |
--sile |
--sil)
2169 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2174 as_fn_append ac_configure_args1
" '$ac_arg'"
2175 if test $ac_must_keep_next = true
; then
2176 ac_must_keep_next
=false
# Got value, back to normal.
2179 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2180 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2181 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2182 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187 -* ) ac_must_keep_next
=true
;;
2190 as_fn_append ac_configure_args
" '$ac_arg'"
2195 { ac_configure_args0
=; unset ac_configure_args0
;}
2196 { ac_configure_args1
=; unset ac_configure_args1
;}
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2208 $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2212 # The following way of writing the cache mishandles newlines in values,
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244 $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2248 for ac_var in $ac_subst_vars
2250 eval ac_val=\$$ac_var
2252 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 $as_echo "$ac_var='\''$ac_val'\''"
2258 if test -n "$ac_subst_files"; then
2259 $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2263 for ac_var
in $ac_subst_files
2265 eval ac_val
=\$
$ac_var
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 $as_echo "$ac_var='\''$ac_val'\''"
2274 if test -s confdefs.h; then
2275 $as_echo "## ----------- ##
2282 test "$ac_signal" != 0 &&
2283 $as_echo "$as_me: caught signal $ac_signal"
2284 $as_echo "$as_me: exit $exit_status"
2286 rm -f core *.core core.conftest.* &&
2287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2290 for ac_signal
in 1 2 13 15; do
2291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest
* confdefs.h
2298 $as_echo "/* confdefs.h */" > confdefs.h
2300 # Predefined preprocessor variables.
2302 cat >>confdefs.h
<<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2306 cat >>confdefs.h
<<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2310 cat >>confdefs.h
<<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2314 cat >>confdefs.h
<<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2318 cat >>confdefs.h
<<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2322 cat >>confdefs.h
<<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2331 if test -n "$CONFIG_SITE"; then
2332 # We do not want a PATH search for config.site.
2333 case $CONFIG_SITE in #((
2334 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2335 */*) ac_site_file1
=$CONFIG_SITE;;
2336 *) ac_site_file1
=.
/$CONFIG_SITE;;
2338 elif test "x$prefix" != xNONE
; then
2339 ac_site_file1
=$prefix/share
/config.site
2340 ac_site_file2
=$prefix/etc
/config.site
2342 ac_site_file1
=$ac_default_prefix/share
/config.site
2343 ac_site_file2
=$ac_default_prefix/etc
/config.site
2345 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2347 test "x$ac_site_file" = xNONE
&& continue
2348 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2353 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $?
"failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2360 if test -r "$cache_file"; then
2361 # Some versions of bash will fail to source /dev/null (special files
2362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2363 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2367 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2368 *) .
"./$cache_file";;
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2377 # Check that the precious variables saved in the cache have kept the same
2379 ac_cache_corrupted
=false
2380 for ac_var
in $ac_precious_vars; do
2381 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2382 eval ac_new_set
=\
$ac_env_${ac_var}_set
2383 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2384 eval ac_new_val
=\
$ac_env_${ac_var}_value
2385 case $ac_old_set,$ac_new_set in
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2389 ac_cache_corrupted
=: ;;
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2393 ac_cache_corrupted
=: ;;
2396 if test "x$ac_old_val" != "x$ac_new_val"; then
2397 # differences in whitespace do not lead to failure.
2398 ac_old_val_w
=`echo x $ac_old_val`
2399 ac_new_val_w
=`echo x $ac_new_val`
2400 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2402 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2403 ac_cache_corrupted
=:
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2406 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2407 eval $ac_var=\
$ac_old_val
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2410 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2412 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2415 # Pass precious variables to config.status.
2416 if test "$ac_new_set" = set; then
2418 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2419 *) ac_arg
=$ac_var=$ac_new_val ;;
2421 case " $ac_configure_args " in
2422 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2423 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2427 if $ac_cache_corrupted; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2431 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2432 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2434 ## -------------------- ##
2435 ## Main body of script. ##
2436 ## -------------------- ##
2439 ac_cpp
='$CPP $CPPFLAGS'
2440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2449 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2450 if test -f "$ac_dir/install-sh"; then
2452 ac_install_sh
="$ac_aux_dir/install-sh -c"
2454 elif test -f "$ac_dir/install.sh"; then
2456 ac_install_sh
="$ac_aux_dir/install.sh -c"
2458 elif test -f "$ac_dir/shtool"; then
2460 ac_install_sh
="$ac_aux_dir/shtool install -c"
2464 if test -z "$ac_aux_dir"; then
2465 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2468 # These three variables are undocumented and unsupported,
2469 # and are intended to be withdrawn in a future Autoconf release.
2470 # They can cause serious problems if a builder's source tree is in a directory
2471 # whose full name contains unusual characters.
2472 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2473 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2474 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2477 # Make sure we can run config.sub.
2478 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2479 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2482 $as_echo_n "checking build system type... " >&6; }
2483 if ${ac_cv_build+:} false
; then :
2484 $as_echo_n "(cached) " >&6
2486 ac_build_alias
=$build_alias
2487 test "x$ac_build_alias" = x
&&
2488 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2489 test "x$ac_build_alias" = x
&&
2490 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2491 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2492 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2496 $as_echo "$ac_cv_build" >&6; }
2497 case $ac_cv_build in
2499 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2502 ac_save_IFS
=$IFS; IFS
='-'
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2512 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2516 $as_echo_n "checking host system type... " >&6; }
2517 if ${ac_cv_host+:} false
; then :
2518 $as_echo_n "(cached) " >&6
2520 if test "x$host_alias" = x
; then
2521 ac_cv_host
=$ac_cv_build
2523 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2524 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2529 $as_echo "$ac_cv_host" >&6; }
2532 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2535 ac_save_IFS
=$IFS; IFS
='-'
2541 # Remember, the first character of IFS is used to create $*,
2542 # except with old shells:
2545 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2549 $as_echo_n "checking target system type... " >&6; }
2550 if ${ac_cv_target+:} false
; then :
2551 $as_echo_n "(cached) " >&6
2553 if test "x$target_alias" = x
; then
2554 ac_cv_target
=$ac_cv_host
2556 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2557 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2562 $as_echo "$ac_cv_target" >&6; }
2563 case $ac_cv_target in
2565 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2567 target
=$ac_cv_target
2568 ac_save_IFS
=$IFS; IFS
='-'
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2578 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2581 # The aliases save the names the user supplied, while $host etc.
2582 # will get canonicalized.
2583 test -n "$target_alias" &&
2584 test "$program_prefix$program_suffix$program_transform_name" = \
2586 program_prefix
=${target_alias}-
2591 VERSION
=`cat ./VERSION | cut -d. -f1-2`
2592 am__api_version
='1.14'
2594 # Find a good install program. We prefer a C program (faster),
2595 # so one script is as good as another. But avoid the broken or
2596 # incompatible versions:
2597 # SysV /etc/install, /usr/sbin/install
2598 # SunOS /usr/etc/install
2599 # IRIX /sbin/install
2601 # AmigaOS /C/install, which installs bootblocks on floppy discs
2602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2605 # OS/2's system install, which has a completely different semantic
2606 # ./install, which can be erroneously created by make from ./install.sh.
2607 # Reject install programs that cannot install multiple files.
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2609 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2610 if test -z "$INSTALL"; then
2611 if ${ac_cv_path_install+:} false
; then :
2612 $as_echo_n "(cached) " >&6
2614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2618 test -z "$as_dir" && as_dir
=.
2619 # Account for people who put trailing slashes in PATH elements.
2620 case $as_dir/ in #((
2621 .
/ | .
// |
/[cC
]/* | \
2622 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2623 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2626 # OSF1 and SCO ODT 3.0 have their own names for install.
2627 # Don't use installbsd from OSF since it installs stuff as root
2629 for ac_prog
in ginstall scoinst
install; do
2630 for ac_exec_ext
in '' $ac_executable_extensions; do
2631 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2632 if test $ac_prog = install &&
2633 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2634 # AIX install. It has an incompatible calling convention.
2636 elif test $ac_prog = install &&
2637 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2638 # program-specific install script used by HP pwplus--don't use.
2641 rm -rf conftest.one conftest.two conftest.dir
2642 echo one
> conftest.one
2643 echo two
> conftest.two
2645 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2646 test -s conftest.one
&& test -s conftest.two
&&
2647 test -s conftest.dir
/conftest.one
&&
2648 test -s conftest.dir
/conftest.two
2650 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2663 rm -rf conftest.one conftest.two conftest.dir
2666 if test "${ac_cv_path_install+set}" = set; then
2667 INSTALL
=$ac_cv_path_install
2669 # As a last resort, use the slow shell script. Don't cache a
2670 # value for INSTALL within a source directory, because that will
2671 # break other packages using the cache if that directory is
2672 # removed, or if the value is a relative name.
2673 INSTALL
=$ac_install_sh
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2677 $as_echo "$INSTALL" >&6; }
2679 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2680 # It thinks the first close brace ends the variable substitution.
2681 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2683 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2685 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2688 $as_echo_n "checking whether build environment is sane... " >&6; }
2689 # Reject unsafe characters in $srcdir or the absolute working directory
2690 # name. Accept space and tab only in the latter.
2694 *[\\\"\
#\$\&\'\`$am_lf]*)
2695 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2698 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2699 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2702 # Do 'set' in a subshell so we don't clobber the current shell's
2703 # arguments. Must try -L first in case configure is actually a
2704 # symlink; some systems play weird games with the mod time of symlinks
2705 # (eg FreeBSD returns the mod time of the symlink's containing
2709 for am_try
in 1 2; do
2710 echo "timestamp, slept: $am_has_slept" > conftest.
file
2711 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2712 if test "$*" = "X"; then
2714 set X
`ls -t "$srcdir/configure" conftest.file`
2716 if test "$*" != "X $srcdir/configure conftest.file" \
2717 && test "$*" != "X conftest.file $srcdir/configure"; then
2719 # If neither matched, then we have a broken ls. This can happen
2720 # if, for instance, CONFIG_SHELL is bash and it inherits a
2721 # broken ls alias from the environment. This has actually
2722 # happened. Such a system could not be considered "sane".
2723 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2724 alias in your environment" "$LINENO" 5
2726 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2733 test "$2" = conftest.
file
2739 as_fn_error $?
"newly created file is older than distributed files!
2740 Check your system clock" "$LINENO" 5
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743 $as_echo "yes" >&6; }
2744 # If we didn't sleep, we still need to ensure time stamps of config.status and
2745 # generated files are strictly newer.
2747 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2754 test "$program_prefix" != NONE
&&
2755 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2756 # Use a double $ so make ignores it.
2757 test "$program_suffix" != NONE
&&
2758 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2759 # Double any \ or $.
2760 # By default was `s,x,x', remove it if useless.
2761 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2762 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2764 # expand $ac_aux_dir to an absolute path
2765 am_aux_dir
=`cd $ac_aux_dir && pwd`
2767 if test x
"${MISSING+set}" != xset
; then
2770 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2772 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2775 # Use eval to expand $SHELL
2776 if eval "$MISSING --is-lightweight"; then
2777 am_missing_run
="$MISSING "
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2781 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2784 if test x
"${install_sh}" != xset
; then
2787 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2789 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2793 # Installed binaries are usually stripped using 'strip' when the user
2794 # run "make install-strip". However 'strip' might not be the right
2795 # tool to use in cross-compilation environments, therefore Automake
2796 # will honor the 'STRIP' environment variable to overrule this program.
2797 if test "$cross_compiling" != no
; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2800 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_STRIP+:} false
; then :
2804 $as_echo_n "(cached) " >&6
2806 if test -n "$STRIP"; then
2807 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir
=.
2814 for ac_exec_ext
in '' $ac_executable_extensions; do
2815 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 STRIP
=$ac_cv_prog_STRIP
2827 if test -n "$STRIP"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2829 $as_echo "$STRIP" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2837 if test -z "$ac_cv_prog_STRIP"; then
2839 # Extract the first word of "strip", so it can be a program name with args.
2840 set dummy strip
; ac_word
=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$ac_ct_STRIP"; then
2847 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2849 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir
=.
2854 for ac_exec_ext
in '' $ac_executable_extensions; do
2855 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_STRIP
="strip"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2867 if test -n "$ac_ct_STRIP"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2869 $as_echo "$ac_ct_STRIP" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2875 if test "x$ac_ct_STRIP" = x
; then
2878 case $cross_compiling:$ac_tool_warned in
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882 ac_tool_warned
=yes ;;
2887 STRIP
="$ac_cv_prog_STRIP"
2891 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2894 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2895 if test -z "$MKDIR_P"; then
2896 if ${ac_cv_path_mkdir+:} false
; then :
2897 $as_echo_n "(cached) " >&6
2899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2900 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2903 test -z "$as_dir" && as_dir
=.
2904 for ac_prog
in mkdir gmkdir
; do
2905 for ac_exec_ext
in '' $ac_executable_extensions; do
2906 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2907 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2908 'mkdir (GNU coreutils) '* | \
2909 'mkdir (coreutils) '* | \
2910 'mkdir (fileutils) '4.1*)
2911 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2921 test -d .
/--version && rmdir .
/--version
2922 if test "${ac_cv_path_mkdir+set}" = set; then
2923 MKDIR_P
="$ac_cv_path_mkdir -p"
2925 # As a last resort, use the slow shell script. Don't cache a
2926 # value for MKDIR_P within a source directory, because that will
2927 # break other packages using the cache if that directory is
2928 # removed, or if the value is a relative name.
2929 MKDIR_P
="$ac_install_sh -d"
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2933 $as_echo "$MKDIR_P" >&6; }
2935 for ac_prog
in gawk mawk nawk
awk
2937 # Extract the first word of "$ac_prog", so it can be a program name with args.
2938 set dummy
$ac_prog; ac_word
=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_AWK+:} false
; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$AWK"; then
2945 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir
=.
2952 for ac_exec_ext
in '' $ac_executable_extensions; do
2953 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_AWK
="$ac_prog"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 if test -n "$AWK"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2967 $as_echo "$AWK" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2974 test -n "$AWK" && break
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2978 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2980 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2981 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2982 $as_echo_n "(cached) " >&6
2984 cat >conftest.
make <<\_ACEOF
2987 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2989 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2990 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2992 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2994 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2998 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3000 $as_echo "yes" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 SET_MAKE
="MAKE=${MAKE-make}"
3008 rm -rf .tst
2>/dev
/null
3009 mkdir .tst
2>/dev
/null
3010 if test -d .tst
; then
3015 rmdir .tst
2>/dev
/null
3017 # Check whether --enable-silent-rules was given.
3018 if test "${enable_silent_rules+set}" = set; then :
3019 enableval
=$enable_silent_rules;
3022 case $enable_silent_rules in # (((
3023 yes) AM_DEFAULT_VERBOSITY
=0;;
3024 no
) AM_DEFAULT_VERBOSITY
=1;;
3025 *) AM_DEFAULT_VERBOSITY
=1;;
3027 am_make
=${MAKE-make}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3029 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3030 if ${am_cv_make_support_nested_variables+:} false
; then :
3031 $as_echo_n "(cached) " >&6
3033 if $as_echo 'TRUE=$(BAR$(V))
3039 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3040 am_cv_make_support_nested_variables
=yes
3042 am_cv_make_support_nested_variables
=no
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3046 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3047 if test $am_cv_make_support_nested_variables = yes; then
3049 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3051 AM_V
=$AM_DEFAULT_VERBOSITY
3052 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3056 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3057 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3058 # is not polluted with repeated "-I."
3059 am__isrc
=' -I$(srcdir)'
3060 # test to see if srcdir already configured
3061 if test -f $srcdir/config.status
; then
3062 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3066 # test whether we have cygpath
3067 if test -z "$CYGPATH_W"; then
3068 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3069 CYGPATH_W
='cygpath -w'
3076 # Define the identity of the package.
3082 cat >>confdefs.h
<<_ACEOF
3083 #define PACKAGE "$PACKAGE"
3087 cat >>confdefs.h
<<_ACEOF
3088 #define VERSION "$VERSION"
3091 # Some tools Automake needs.
3093 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3096 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3099 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3102 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3105 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3107 # For better backward compatibility. To be removed once Automake 1.9.x
3108 # dies out for good. For more background, see:
3109 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3110 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3111 mkdir_p
='$(MKDIR_P)'
3113 # We need awk for the "check" target. The system "awk" is bad on
3115 # Always define AMTAR for backward compatibility. Yes, it's still used
3116 # in the wild :-( We should find a proper way to deprecate it ...
3120 # We'll loop over all known methods to create a tar archive until one works.
3121 _am_tools
='gnutar pax cpio none'
3123 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3130 # POSIX will say in a future version that running "rm -f" with no argument
3131 # is OK; and we want to be able to make that assumption in our Makefile
3132 # recipes. So use an aggressive probe to check that the usage we want is
3133 # actually supported "in the wild" to an acceptable degree.
3134 # See automake bug#10828.
3135 # To make any issue more visible, cause the running configure to be aborted
3136 # by default if the 'rm' program in use doesn't match our expectations; the
3137 # user can still override this though.
3138 if rm -f && rm -fr && rm -rf; then : OK
; else
3142 Your 'rm' program seems unable to run without file operands specified
3143 on the command line, even when the '-f' option is present. This is contrary
3144 to the behaviour of most rm programs out there, and not conforming with
3145 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3147 Please tell bug-automake@gnu.org about your system, including the value
3148 of your $PATH and any error possibly output before this message. This
3149 can help us improve future automake versions.
3152 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3153 echo 'Configuration will proceed anyway, since you have set the' >&2
3154 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3158 Aborting the configuration process, to ensure you take notice of the issue.
3160 You can download and install GNU coreutils to get an 'rm' implementation
3161 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3163 If you want to complete the configuration process using your problematic
3164 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3165 to "yes", and re-run configure.
3168 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3176 ALL_TARGET
="undefined-target"
3177 INSTALL_TARGET
="undefined-install-target"
3178 REVISION
=`cat ./VERSION | cut -d. -f3`
3179 INTERPRETER
=NOINTERP
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3192 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3194 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3195 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3196 $as_echo_n "(cached) " >&6
3198 cat >conftest.
make <<\_ACEOF
3201 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3203 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3204 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3206 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3208 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3212 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214 $as_echo "yes" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 SET_MAKE
="MAKE=${MAKE-make}"
3224 ac_cpp
='$CPP $CPPFLAGS'
3225 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3228 if test -n "$ac_tool_prefix"; then
3229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3230 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_CC+:} false
; then :
3234 $as_echo_n "(cached) " >&6
3236 if test -n "$CC"; then
3237 ac_cv_prog_CC
="$CC" # Let the user override the test.
3239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3243 test -z "$as_dir" && as_dir
=.
3244 for ac_exec_ext
in '' $ac_executable_extensions; do
3245 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 if test -n "$CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259 $as_echo "$CC" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3267 if test -z "$ac_cv_prog_CC"; then
3269 # Extract the first word of "gcc", so it can be a program name with args.
3270 set dummy gcc
; ac_word
=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3274 $as_echo_n "(cached) " >&6
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir
=.
3284 for ac_exec_ext
in '' $ac_executable_extensions; do
3285 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_ac_ct_CC
="gcc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3297 if test -n "$ac_ct_CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299 $as_echo "$ac_ct_CC" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3305 if test "x$ac_ct_CC" = x
; then
3308 case $cross_compiling:$ac_tool_warned in
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3312 ac_tool_warned
=yes ;;
3320 if test -z "$CC"; then
3321 if test -n "$ac_tool_prefix"; then
3322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3323 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_CC+:} false
; then :
3327 $as_echo_n "(cached) " >&6
3329 if test -n "$CC"; then
3330 ac_cv_prog_CC
="$CC" # Let the user override the test.
3332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir
=.
3337 for ac_exec_ext
in '' $ac_executable_extensions; do
3338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 if test -n "$CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 $as_echo "$CC" >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3361 if test -z "$CC"; then
3362 # Extract the first word of "cc", so it can be a program name with args.
3363 set dummy cc
; ac_word
=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false
; then :
3367 $as_echo_n "(cached) " >&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC
="$CC" # Let the user override the test.
3373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir
=.
3378 for ac_exec_ext
in '' $ac_executable_extensions; do
3379 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3381 ac_prog_rejected
=yes
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test $ac_prog_rejected = yes; then
3393 # We found a bogon in the path, so make sure we never use it.
3394 set dummy
$ac_cv_prog_CC
3396 if test $# != 0; then
3397 # We chose a different compiler from the bogus one.
3398 # However, it has the same basename, so the bogon will be chosen
3399 # first if we set CC to just the basename; use the full file name.
3401 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3407 if test -n "$CC"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409 $as_echo "$CC" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3417 if test -z "$CC"; then
3418 if test -n "$ac_tool_prefix"; then
3419 for ac_prog
in cl.exe
3421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3422 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if ${ac_cv_prog_CC+:} false
; then :
3426 $as_echo_n "(cached) " >&6
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC
="$CC" # Let the user override the test.
3431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir
=.
3436 for ac_exec_ext
in '' $ac_executable_extensions; do
3437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3458 test -n "$CC" && break
3461 if test -z "$CC"; then
3463 for ac_prog
in cl.exe
3465 # Extract the first word of "$ac_prog", so it can be a program name with args.
3466 set dummy
$ac_prog; ac_word
=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3470 $as_echo_n "(cached) " >&6
3472 if test -n "$ac_ct_CC"; then
3473 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir
=.
3480 for ac_exec_ext
in '' $ac_executable_extensions; do
3481 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_ac_ct_CC
="$ac_prog"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3493 if test -n "$ac_ct_CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3495 $as_echo "$ac_ct_CC" >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3502 test -n "$ac_ct_CC" && break
3505 if test "x$ac_ct_CC" = x
; then
3508 case $cross_compiling:$ac_tool_warned in
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512 ac_tool_warned
=yes ;;
3521 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $?
"no acceptable C compiler found in \$PATH
3524 See \`config.log' for more details" "$LINENO" 5; }
3526 # Provide some information about the compiler.
3527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3530 for ac_option
in --version -v -V -qversion; do
3531 { { ac_try
="$ac_compiler $ac_option >&5"
3533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3540 if test -s conftest.err; then
3542 ... rest of stderr output deleted ...
3543 10q' conftest.err >conftest.er1
3544 cat conftest.er1 >&5
3546 rm -f conftest.er1 conftest.err
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3562 ac_clean_files_save=$ac_clean_files
3563 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3564 # Try to create an executable without -o first, disregard a.out.
3565 # It will help us diagnose broken compilers, and finding out an intuition
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3568 $as_echo_n "checking whether the C compiler works... " >&6; }
3569 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3571 # The possible output files:
3572 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3575 for ac_file in $ac_files
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3579 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3584 if { { ac_try="$ac_link_default"
3586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3587 *) ac_try_echo
=$ac_try;;
3589 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_link_default") 2>&5
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3596 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3597 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3598 # so that the user can short-circuit this test for compilers unknown to
3600 for ac_file
in $ac_files ''
3602 test -f "$ac_file" ||
continue
3604 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3607 # We found the default executable, but exeext='' is most
3611 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3613 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3615 # We set ac_cv_exeext here because the later test for it is not
3616 # safe: cross compilers may not add the suffix if given an `-o'
3617 # argument, so we may need to know it at that point already.
3618 # Even if this section looks crufty: it has the advantage of
3625 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3630 if test -z "$ac_file"; then :
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.
$ac_ext >&5
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error
77 "C compiler cannot create executables
3639 See \`config.log' for more details" "$LINENO" 5; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642 $as_echo "yes" >&6; }
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3645 $as_echo_n "checking for C compiler default output file name... " >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3647 $as_echo "$ac_file" >&6; }
3648 ac_exeext
=$ac_cv_exeext
3650 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3651 ac_clean_files
=$ac_clean_files_save
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3653 $as_echo_n "checking for suffix of executables... " >&6; }
3654 if { { ac_try
="$ac_link"
3656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link") 2>&5
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3666 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3667 # work properly (i.e., refer to `conftest.exe'), while it won't with
3669 for ac_file
in conftest.exe conftest conftest.
*; do
3670 test -f "$ac_file" ||
continue
3672 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3673 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3682 See \`config.log' for more details" "$LINENO" 5; }
3684 rm -f conftest conftest
$ac_cv_exeext
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3686 $as_echo "$ac_cv_exeext" >&6; }
3688 rm -f conftest.
$ac_ext
3689 EXEEXT
=$ac_cv_exeext
3691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3697 FILE *f = fopen ("conftest.out", "w");
3698 return ferror (f) || fclose (f) != 0;
3704 ac_clean_files
="$ac_clean_files conftest.out"
3705 # Check that the compiler produces executables we can run. If not, either
3706 # the compiler is broken, or we cross compile.
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3708 $as_echo_n "checking whether we are cross compiling... " >&6; }
3709 if test "$cross_compiling" != yes; then
3710 { { ac_try
="$ac_link"
3712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_link") 2>&5
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }
3721 if { ac_try='./conftest$ac_cv_exeext'
3722 { { case "(($ac_try" in
3723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3724 *) ac_try_echo
=$ac_try;;
3726 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_try") 2>&5
3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731 test $ac_status = 0; }; }; then
3734 if test "$cross_compiling" = maybe
; then
3737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739 as_fn_error $?
"cannot run C compiled programs.
3740 If you meant to cross compile, use \`--host'.
3741 See \`config.log' for more details" "$LINENO" 5; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3746 $as_echo "$cross_compiling" >&6; }
3748 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3749 ac_clean_files
=$ac_clean_files_save
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3751 $as_echo_n "checking for suffix of object files... " >&6; }
3752 if ${ac_cv_objext+:} false
; then :
3753 $as_echo_n "(cached) " >&6
3755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3766 rm -f conftest.o conftest.obj
3767 if { { ac_try
="$ac_compile"
3769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 $as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_compile") 2>&5
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; then :
3778 for ac_file in conftest.o conftest.obj conftest.*; do
3779 test -f "$ac_file" || continue;
3781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3782 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787 $as_echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3793 See \
`config.log' for more details" "$LINENO" 5; }
3795 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3798 $as_echo "$ac_cv_objext" >&6; }
3799 OBJEXT=$ac_cv_objext
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3802 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3803 if ${ac_cv_c_compiler_gnu+:} false; then :
3804 $as_echo_n "(cached) " >&6
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3820 if ac_fn_c_try_compile "$LINENO"; then :
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3830 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3831 if test $ac_compiler_gnu = yes; then
3836 ac_test_CFLAGS=${CFLAGS+set}
3837 ac_save_CFLAGS=$CFLAGS
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3839 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3840 if ${ac_cv_prog_cc_g+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 ac_save_c_werror_flag=$ac_c_werror_flag
3844 ac_c_werror_flag=yes
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3858 if ac_fn_c_try_compile "$LINENO"; then :
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3873 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_c_werror_flag=$ac_save_c_werror_flag
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3889 if ac_fn_c_try_compile "$LINENO"; then :
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 ac_c_werror_flag=$ac_save_c_werror_flag
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3900 $as_echo "$ac_cv_prog_cc_g" >&6; }
3901 if test "$ac_test_CFLAGS" = set; then
3902 CFLAGS=$ac_save_CFLAGS
3903 elif test $ac_cv_prog_cc_g = yes; then
3904 if test "$GCC" = yes; then
3910 if test "$GCC" = yes; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3917 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3918 if ${ac_cv_prog_cc_c89+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 ac_cv_prog_cc_c89=no
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3928 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3929 struct buf { int x; };
3930 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3931 static char *e (p, i)
3937 static char *f (char * (*g) (char **, int), char **p, ...)
3942 s = g (p, va_arg (v,int));
3947 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3948 function prototypes and stuff, but not '\xHH' hex character constants.
3949 These don't provoke an error unfortunately, instead are silently treated
3950 as 'x'. The following induces an error, until -std is added to get
3951 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3952 array size at least. It's necessary to write '\x00'==0 to get something
3953 that's true only with -std. */
3954 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3956 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3957 inside strings and character constants. */
3959 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3961 int test (int i, double x);
3962 struct s1 {int (*f) (int a);};
3963 struct s2 {int (*f) (double a);};
3964 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3970 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3975 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3976 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978 CC="$ac_save_CC $ac_arg"
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_cv_prog_cc_c89=$ac_arg
3982 rm -f core conftest.err conftest.$ac_objext
3983 test "x$ac_cv_prog_cc_c89" != "xno" && break
3985 rm -f conftest.$ac_ext
3990 case "x$ac_cv_prog_cc_c89" in
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993 $as_echo "none needed" >&6; } ;;
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996 $as_echo "unsupported" >&6; } ;;
3998 CC="$CC $ac_cv_prog_cc_c89"
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4000 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4002 if test "x$ac_cv_prog_cc_c89" != xno; then :
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4018 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4019 if ${am_cv_prog_cc_c_o+:} false; then :
4020 $as_echo_n "(cached) " >&6
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4033 # Make sure it works both with $CC and with simple cc.
4034 # Following AC_PROG_CC_C_O, we do the test twice because some
4035 # compilers refuse to overwrite an existing .o file with -o,
4036 # though they will create one.
4037 am_cv_prog_cc_c_o=yes
4039 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4040 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } \
4044 && test -f conftest2.$ac_objext; then
4047 am_cv_prog_cc_c_o=no
4051 rm -f core conftest*
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4055 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4056 if test "$am_cv_prog_cc_c_o" != yes; then
4057 # Losing compiler, so override with the script.
4058 # FIXME: It is wrong to rewrite CC.
4059 # But if we don't then we get into trouble of one sort or another.
4060 # A longer-term fix would be to have automake use am__CC in this case,
4061 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4062 CC="$am_aux_dir/compile $CC"
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 DEPDIR="${am__leading_dot}deps"
4072 ac_config_commands="$ac_config_commands depfiles"
4075 am_make=${MAKE-make}
4076 cat > confinc << 'END'
4078 @echo this is the am__doit target
4081 # If we don't find an include directive, just comment out the code.
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4083 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4087 # First try GNU make style include.
4088 echo "include confinc" > confmf
4089 # Ignore all kinds of additional output from 'make'.
4090 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4091 *the\ am__doit\ target*)
4097 # Now try BSD make style include.
4098 if test "$am__include" = "#"; then
4099 echo '.include "confinc"' > confmf
4100 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4101 *the\ am__doit\ target*)
4102 am__include=.include
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4111 $as_echo "$_am_result" >&6; }
4112 rm -f confinc confmf
4114 # Check whether --enable-dependency-tracking was given.
4115 if test "${enable_dependency_tracking+set}" = set; then :
4116 enableval=$enable_dependency_tracking;
4119 if test "x$enable_dependency_tracking" != xno; then
4120 am_depcomp="$ac_aux_dir/depcomp"
4124 if test "x$enable_dependency_tracking" != xno; then
4134 depcc="$CC" am_compiler_list=
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4137 $as_echo_n "checking dependency style of $depcc... " >&6; }
4138 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4142 # We make a subdir and do the tests there. Otherwise we can end up
4143 # making bogus files that we don't know about and never remove. For
4144 # instance it was reported that on HP-UX the gcc test will end up
4145 # making a dummy file named 'D' -- because '-MD' means "put the output
4149 # Copy depcomp to subdir because otherwise we won't find it if we're
4150 # using a relative directory.
4151 cp "$am_depcomp" conftest.dir
4153 # We will build objects and dependencies in a subdirectory because
4154 # it helps to detect inapplicable dependency modes. For instance
4155 # both Tru64's cc and ICC support -MD to output dependencies as a
4156 # side effect of compilation, but ICC will put the dependencies in
4157 # the current directory while Tru64 will put them in the object
4161 am_cv_CC_dependencies_compiler_type=none
4162 if test "$am_compiler_list" = ""; then
4163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4166 case " $depcc " in #(
4167 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4170 for depmode in $am_compiler_list; do
4171 # Setup a source with many dependencies, because some compilers
4172 # like to wrap large dependency lists on column 80 (with \), and
4173 # we should not choose a depcomp mode which is confused by this.
4175 # We need to recreate these files for each test, as the compiler may
4176 # overwrite some of them when testing with obscure command lines.
4177 # This happens at least with the AIX C compiler.
4179 for i in 1 2 3 4 5 6; do
4180 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4181 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4182 # Solaris 10 /bin/sh.
4183 echo '/* dummy */' > sub/conftst$i.h
4185 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4188 # mode. It turns out that the SunPro C++ compiler does not properly
4189 # handle '-M -o', and we need to detect this. Also, some Intel
4190 # versions had trouble with output in subdirs.
4191 am__obj=sub/conftest.${OBJEXT-o}
4192 am__minus_obj="-o $am__obj"
4195 # This depmode causes a compiler race in universal mode.
4196 test "$am__universal" = false || continue
4199 # After this tag, mechanisms are not by side-effect, so they'll
4200 # only be used when explicitly requested.
4201 if test "x$enable_dependency_tracking" = xyes; then
4207 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4208 # This compiler won't grok '-c -o', but also, the minuso test has
4209 # not run yet. These depmodes are late enough in the game, and
4210 # so weak that their functioning should not be impacted.
4211 am__obj=conftest.${OBJEXT-o}
4216 if depmode=$depmode \
4217 source=sub/conftest.c object=$am__obj \
4218 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4219 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4220 >/dev/null 2>conftest.err &&
4221 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4222 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4223 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4224 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4225 # icc doesn't choke on unknown options, it will just issue warnings
4226 # or remarks (even with -Werror). So we grep stderr for any message
4227 # that says an option was ignored or not supported.
4228 # When given -MP, icc 7.0 and 7.1 complain thusly:
4229 # icc: Command line warning: ignoring option '-M'; no argument required
4230 # The diagnosis changed in icc 8.0:
4231 # icc: Command line remark: option '-MP' not supported
4232 if (grep 'ignoring option' conftest.err ||
4233 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4234 am_cv_CC_dependencies_compiler_type=$depmode
4243 am_cv_CC_dependencies_compiler_type=none
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4248 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4249 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4252 test "x$enable_dependency_tracking" != xno \
4253 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4255 am__fastdepCC_FALSE='#'
4257 am__fastdepCC_TRUE='#'
4258 am__fastdepCC_FALSE=
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4264 $as_echo_n "checking for library containing strerror... " >&6; }
4265 if ${ac_cv_search_strerror+:} false; then :
4266 $as_echo_n "(cached) " >&6
4268 ac_func_search_save_LIBS=$LIBS
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4272 /* Override any GCC internal prototype to avoid an error.
4273 Use char because int might match the return type of a GCC
4274 builtin and then its argument prototype would still apply. */
4287 for ac_lib in '' cposix; do
4288 if test -z "$ac_lib"; then
4289 ac_res="none required"
4292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4294 if ac_fn_c_try_link "$LINENO"; then :
4295 ac_cv_search_strerror=$ac_res
4297 rm -f core conftest.err conftest.$ac_objext \
4299 if ${ac_cv_search_strerror+:} false; then :
4303 if ${ac_cv_search_strerror+:} false; then :
4306 ac_cv_search_strerror=no
4309 LIBS=$ac_func_search_save_LIBS
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4312 $as_echo "$ac_cv_search_strerror" >&6; }
4313 ac_res=$ac_cv_search_strerror
4314 if test "$ac_res" != no; then :
4315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4319 if test "x$U" != "x"; then
4320 as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
4323 if test -n "$ac_tool_prefix"; then
4324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327 $as_echo_n "checking for $ac_word... " >&6; }
4328 if ${ac_cv_prog_RANLIB+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 if test -n "$RANLIB"; then
4332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 RANLIB=$ac_cv_prog_RANLIB
4352 if test -n "$RANLIB"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4354 $as_echo "$RANLIB" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4362 if test -z "$ac_cv_prog_RANLIB"; then
4363 ac_ct_RANLIB=$RANLIB
4364 # Extract the first word of "ranlib", so it can be a program name with args.
4365 set dummy ranlib; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4369 $as_echo_n "(cached) " >&6
4371 if test -n "$ac_ct_RANLIB"; then
4372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_ac_ct_RANLIB="ranlib"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4392 if test -n "$ac_ct_RANLIB"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4394 $as_echo "$ac_ct_RANLIB" >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4400 if test "x$ac_ct_RANLIB" = x; then
4403 case $cross_compiling:$ac_tool_warned in
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4407 ac_tool_warned=yes ;;
4409 RANLIB=$ac_ct_RANLIB
4412 RANLIB="$ac_cv_prog_RANLIB"
4416 for ac_prog in gm4 gnum4 m4
4418 # Extract the first word of "$ac_prog", so it can be a program name with args.
4419 set dummy $ac_prog; ac_word=$2
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if ${ac_cv_path_M4+:} false; then :
4423 $as_echo_n "(cached) " >&6
4427 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir=.
4435 for ac_exec_ext in '' $ac_executable_extensions; do
4436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 if test -n "$M4"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
4451 $as_echo "$M4" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$M4" && break
4462 case "$target_os" in
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4467 $as_echo_n "checking for sin in -lm... " >&6; }
4468 if ${ac_cv_lib_m_sin+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 ac_check_lib_save_LIBS=$LIBS
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4476 /* Override any GCC internal prototype to avoid an error.
4477 Use char because int might match the return type of a GCC
4478 builtin and then its argument prototype would still apply. */
4491 if ac_fn_c_try_link "$LINENO"; then :
4496 rm -f core conftest.err conftest.$ac_objext \
4497 conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4501 $as_echo "$ac_cv_lib_m_sin" >&6; }
4502 if test "x$ac_cv_lib_m_sin" = xyes; then :
4503 cat >>confdefs.h <<_ACEOF
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4520 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4521 # On Suns, sometimes $CPP names a directory.
4522 if test -n "$CPP" && test -d "$CPP"; then
4525 if test -z "$CPP"; then
4526 if ${ac_cv_prog_CPP+:} false; then :
4527 $as_echo_n "(cached) " >&6
4529 # Double quotes because CPP needs to be expanded
4530 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4533 for ac_c_preproc_warn_flag in '' yes
4535 # Use a header file that comes with gcc, so configuring glibc
4536 # with a fresh cross-compiler works.
4537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4538 # <limits.h> exists even on freestanding compilers.
4539 # On the NeXT, cc -E runs the code through the compiler's parser,
4540 # not just through cpp. "Syntax error" is here to catch this case.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4544 # include <limits.h>
4546 # include <assert.h>
4550 if ac_fn_c_try_cpp "$LINENO"; then :
4553 # Broken: fails on valid input.
4556 rm -f conftest.err conftest.i conftest.$ac_ext
4558 # OK, works on sane cases. Now check whether nonexistent headers
4559 # can be detected and how.
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 #include <ac_nonexistent.h>
4564 if ac_fn_c_try_cpp "$LINENO"; then :
4565 # Broken: success on invalid input.
4568 # Passes both tests.
4572 rm -f conftest.err conftest.i conftest.$ac_ext
4575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4576 rm -f conftest.i conftest.err conftest.
$ac_ext
4577 if $ac_preproc_ok; then :
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4590 $as_echo "$CPP" >&6; }
4592 for ac_c_preproc_warn_flag
in '' yes
4594 # Use a header file that comes with gcc, so configuring glibc
4595 # with a fresh cross-compiler works.
4596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597 # <limits.h> exists even on freestanding compilers.
4598 # On the NeXT, cc -E runs the code through the compiler's parser,
4599 # not just through cpp. "Syntax error" is here to catch this case.
4600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4603 # include <limits.h>
4605 # include <assert.h>
4609 if ac_fn_c_try_cpp
"$LINENO"; then :
4612 # Broken: fails on valid input.
4615 rm -f conftest.err conftest.i conftest.
$ac_ext
4617 # OK, works on sane cases. Now check whether nonexistent headers
4618 # can be detected and how.
4619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <ac_nonexistent.h>
4623 if ac_fn_c_try_cpp
"$LINENO"; then :
4624 # Broken: success on invalid input.
4627 # Passes both tests.
4631 rm -f conftest.err conftest.i conftest.
$ac_ext
4634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4635 rm -f conftest.i conftest.err conftest.
$ac_ext
4636 if $ac_preproc_ok; then :
4639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4641 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4642 See \`config.log' for more details" "$LINENO" 5; }
4646 ac_cpp
='$CPP $CPPFLAGS'
4647 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4653 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4654 if ${ac_cv_path_GREP+:} false
; then :
4655 $as_echo_n "(cached) " >&6
4657 if test -z "$GREP"; then
4658 ac_path_GREP_found
=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4661 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4664 test -z "$as_dir" && as_dir
=.
4665 for ac_prog
in grep ggrep
; do
4666 for ac_exec_ext
in '' $ac_executable_extensions; do
4667 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4668 as_fn_executable_p
"$ac_path_GREP" ||
continue
4669 # Check for GNU ac_path_GREP and select it if it is found.
4670 # Check for GNU $ac_path_GREP
4671 case `"$ac_path_GREP" --version 2>&1` in
4673 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4676 $as_echo_n 0123456789 >"conftest.in"
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'GREP' >> "conftest.nl"
4683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4684 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4685 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_GREP
="$ac_path_GREP"
4689 ac_path_GREP_max
=$ac_count
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4694 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4697 $ac_path_GREP_found && break 3
4702 if test -z "$ac_cv_path_GREP"; then
4703 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706 ac_cv_path_GREP
=$GREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4711 $as_echo "$ac_cv_path_GREP" >&6; }
4712 GREP
="$ac_cv_path_GREP"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4716 $as_echo_n "checking for egrep... " >&6; }
4717 if ${ac_cv_path_EGREP+:} false
; then :
4718 $as_echo_n "(cached) " >&6
4720 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4721 then ac_cv_path_EGREP
="$GREP -E"
4723 if test -z "$EGREP"; then
4724 ac_path_EGREP_found
=false
4725 # Loop through the user's path and test for each of PROGNAME-LIST
4726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4727 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4730 test -z "$as_dir" && as_dir
=.
4731 for ac_prog
in egrep; do
4732 for ac_exec_ext
in '' $ac_executable_extensions; do
4733 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4734 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4735 # Check for GNU ac_path_EGREP and select it if it is found.
4736 # Check for GNU $ac_path_EGREP
4737 case `"$ac_path_EGREP" --version 2>&1` in
4739 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4742 $as_echo_n 0123456789 >"conftest.in"
4745 cat "conftest.in" "conftest.in" >"conftest.tmp"
4746 mv "conftest.tmp" "conftest.in"
4747 cp "conftest.in" "conftest.nl"
4748 $as_echo 'EGREP' >> "conftest.nl"
4749 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4750 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4751 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4752 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4753 # Best one so far, save it but keep looking for a better one
4754 ac_cv_path_EGREP
="$ac_path_EGREP"
4755 ac_path_EGREP_max
=$ac_count
4757 # 10*(2^10) chars as input seems more than enough
4758 test $ac_count -gt 10 && break
4760 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4763 $ac_path_EGREP_found && break 3
4768 if test -z "$ac_cv_path_EGREP"; then
4769 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4772 ac_cv_path_EGREP
=$EGREP
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4778 $as_echo "$ac_cv_path_EGREP" >&6; }
4779 EGREP
="$ac_cv_path_EGREP"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4783 $as_echo_n "checking for ANSI C header files... " >&6; }
4784 if ${ac_cv_header_stdc+:} false
; then :
4785 $as_echo_n "(cached) " >&6
4787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4802 if ac_fn_c_try_compile
"$LINENO"; then :
4803 ac_cv_header_stdc
=yes
4805 ac_cv_header_stdc
=no
4807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4809 if test $ac_cv_header_stdc = yes; then
4810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4817 $EGREP "memchr" >/dev
/null
2>&1; then :
4820 ac_cv_header_stdc
=no
4826 if test $ac_cv_header_stdc = yes; then
4827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834 $EGREP "free" >/dev
/null
2>&1; then :
4837 ac_cv_header_stdc
=no
4843 if test $ac_cv_header_stdc = yes; then
4844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4845 if test "$cross_compiling" = yes; then :
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4852 #if ((' ' & 0x0FF) == 0x020)
4853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4856 # define ISLOWER(c) \
4857 (('a' <= (c) && (c) <= 'i') \
4858 || ('j' <= (c) && (c) <= 'r') \
4859 || ('s' <= (c) && (c) <= 'z'))
4860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4868 for (i = 0; i < 256; i++)
4869 if (XOR (islower (i), ISLOWER (i))
4870 || toupper (i) != TOUPPER (i))
4875 if ac_fn_c_try_run
"$LINENO"; then :
4878 ac_cv_header_stdc
=no
4880 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4881 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4887 $as_echo "$ac_cv_header_stdc" >&6; }
4888 if test $ac_cv_header_stdc = yes; then
4890 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4895 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4896 inttypes.h stdint.h unistd.h
4898 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4899 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4901 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4902 cat >>confdefs.h
<<_ACEOF
4903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4911 # The cast to long int works around a bug in the HP C Compiler
4912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4914 # This bug is HP SR number 8606223364.
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4916 $as_echo_n "checking size of void *... " >&6; }
4917 if ${ac_cv_sizeof_void_p+:} false
; then :
4918 $as_echo_n "(cached) " >&6
4920 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4923 if test "$ac_cv_type_void_p" = yes; then
4924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error
77 "cannot compute sizeof (void *)
4927 See \`config.log' for more details" "$LINENO" 5; }
4929 ac_cv_sizeof_void_p
=0
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4935 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4939 cat >>confdefs.h
<<_ACEOF
4940 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4944 # The cast to long int works around a bug in the HP C Compiler
4945 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4946 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4947 # This bug is HP SR number 8606223364.
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
4949 $as_echo_n "checking size of unsigned int... " >&6; }
4950 if ${ac_cv_sizeof_unsigned_int+:} false
; then :
4951 $as_echo_n "(cached) " >&6
4953 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4956 if test "$ac_cv_type_unsigned_int" = yes; then
4957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4959 as_fn_error
77 "cannot compute sizeof (unsigned int)
4960 See \`config.log' for more details" "$LINENO" 5; }
4962 ac_cv_sizeof_unsigned_int
=0
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
4968 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4972 cat >>confdefs.h
<<_ACEOF
4973 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4977 # The cast to long int works around a bug in the HP C Compiler
4978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4980 # This bug is HP SR number 8606223364.
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
4982 $as_echo_n "checking size of unsigned long... " >&6; }
4983 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
4984 $as_echo_n "(cached) " >&6
4986 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
4989 if test "$ac_cv_type_unsigned_long" = yes; then
4990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4992 as_fn_error
77 "cannot compute sizeof (unsigned long)
4993 See \`config.log' for more details" "$LINENO" 5; }
4995 ac_cv_sizeof_unsigned_long
=0
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5001 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
5005 cat >>confdefs.h
<<_ACEOF
5006 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5010 # The cast to long int works around a bug in the HP C Compiler
5011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5013 # This bug is HP SR number 8606223364.
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5015 $as_echo_n "checking size of unsigned long long... " >&6; }
5016 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
5017 $as_echo_n "(cached) " >&6
5019 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
5022 if test "$ac_cv_type_unsigned_long_long" = yes; then
5023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5025 as_fn_error
77 "cannot compute sizeof (unsigned long long)
5026 See \`config.log' for more details" "$LINENO" 5; }
5028 ac_cv_sizeof_unsigned_long_long
=0
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5034 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
5038 cat >>confdefs.h
<<_ACEOF
5039 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5045 $as_echo_n "checking for X... " >&6; }
5048 # Check whether --with-x was given.
5049 if test "${with_x+set}" = set; then :
5053 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5054 if test "x$with_x" = xno
; then
5055 # The user explicitly disabled X.
5058 case $x_includes,$x_libraries in #(
5059 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
5060 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
5061 $as_echo_n "(cached) " >&6
5063 # One or both of the vars are not set, and there is no cached value.
5064 ac_x_includes
=no ac_x_libraries
=no
5065 rm -f -r conftest.dir
5066 if mkdir conftest.dir
; then
5068 cat >Imakefile
<<'_ACEOF'
5070 @echo incroot='${INCROOT}'
5072 @echo usrlibdir='${USRLIBDIR}'
5074 @echo libdir='${LIBDIR}'
5076 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5077 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5078 for ac_var
in incroot usrlibdir libdir
; do
5079 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5081 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5082 for ac_extension
in a so sl dylib la dll
; do
5083 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5084 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5085 ac_im_usrlibdir
=$ac_im_libdir; break
5088 # Screen out bogus values from the imake configuration. They are
5089 # bogus both because they are the default anyway, and because
5090 # using them would break gcc on systems where it needs fixed includes.
5091 case $ac_im_incroot in
5092 /usr
/include
) ac_x_includes
= ;;
5093 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5095 case $ac_im_usrlibdir in
5096 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
5097 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5101 rm -f -r conftest.dir
5104 # Standard set of common directories for X headers.
5105 # Check X11 before X11Rn because it is often a symlink to the current release.
5119 /usr/local/X11/include
5120 /usr/local/X11R7/include
5121 /usr/local/X11R6/include
5122 /usr/local/X11R5/include
5123 /usr/local/X11R4/include
5125 /usr/local/include/X11
5126 /usr/local/include/X11R7
5127 /usr/local/include/X11R6
5128 /usr/local/include/X11R5
5129 /usr/local/include/X11R4
5133 /usr/XFree86/include/X11
5137 /usr/unsupported/include
5139 /usr/local/x11r5/include
5140 /usr/lpp/Xamples/include
5142 /usr/openwin/include
5143 /usr/openwin/share/include'
5145 if test "$ac_x_includes" = no
; then
5146 # Guess where to find include files, by looking for Xlib.h.
5147 # First, try using that file with no special directory specified.
5148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150 #include <X11/Xlib.h>
5152 if ac_fn_c_try_cpp
"$LINENO"; then :
5153 # We can compile using X headers with no special include directory.
5156 for ac_dir
in $ac_x_header_dirs; do
5157 if test -r "$ac_dir/X11/Xlib.h"; then
5158 ac_x_includes
=$ac_dir
5163 rm -f conftest.err conftest.i conftest.
$ac_ext
5164 fi # $ac_x_includes = no
5166 if test "$ac_x_libraries" = no
; then
5167 # Check for the libraries.
5168 # See if we find them without any special options.
5169 # Don't add to $LIBS permanently.
5172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5173 /* end confdefs.h. */
5174 #include <X11/Xlib.h>
5183 if ac_fn_c_try_link
"$LINENO"; then :
5185 # We can link X programs with no special library path.
5189 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5191 # Don't even attempt the hair of trying to link an X program!
5192 for ac_extension
in a so sl dylib la dll
; do
5193 if test -r "$ac_dir/libX11.$ac_extension"; then
5194 ac_x_libraries
=$ac_dir
5200 rm -f core conftest.err conftest.
$ac_objext \
5201 conftest
$ac_exeext conftest.
$ac_ext
5202 fi # $ac_x_libraries = no
5204 case $ac_x_includes,$ac_x_libraries in #(
5206 # Didn't find X, or a directory has "'" in its name.
5207 ac_cv_have_x
="have_x=no";; #(
5209 # Record where we found X for the cache.
5210 ac_cv_have_x
="have_x=yes\
5211 ac_x_includes='$ac_x_includes'\
5212 ac_x_libraries='$ac_x_libraries'"
5218 eval "$ac_cv_have_x"
5221 if test "$have_x" != yes; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5223 $as_echo "$have_x" >&6; }
5226 # If each of the values was on the command line, it overrides each guess.
5227 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5228 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5229 # Update the cache value to reflect the command line values.
5230 ac_cv_have_x
="have_x=yes\
5231 ac_x_includes='$x_includes'\
5232 ac_x_libraries='$x_libraries'"
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5234 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5237 if test "$no_x" = yes; then
5238 # Not all programs may use this symbol, but it does not hurt to define it.
5240 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5242 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
5244 if test -n "$x_includes"; then
5245 X_CFLAGS
="$X_CFLAGS -I$x_includes"
5248 # It would also be nice to do this for all -L options, not just this one.
5249 if test -n "$x_libraries"; then
5250 X_LIBS
="$X_LIBS -L$x_libraries"
5251 # For Solaris; some versions of Sun CC require a space after -R and
5252 # others require no space. Words are not sufficient . . . .
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5254 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5255 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
5256 ac_xsave_c_werror_flag
=$ac_c_werror_flag
5257 ac_c_werror_flag
=yes
5258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5269 if ac_fn_c_try_link
"$LINENO"; then :
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 X_LIBS
="$X_LIBS -R$x_libraries"
5274 LIBS
="$ac_xsave_LIBS -R $x_libraries"
5275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5286 if ac_fn_c_try_link
"$LINENO"; then :
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5288 $as_echo "yes" >&6; }
5289 X_LIBS
="$X_LIBS -R $x_libraries"
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5292 $as_echo "neither works" >&6; }
5294 rm -f core conftest.err conftest.
$ac_objext \
5295 conftest
$ac_exeext conftest.
$ac_ext
5297 rm -f core conftest.err conftest.
$ac_objext \
5298 conftest
$ac_exeext conftest.
$ac_ext
5299 ac_c_werror_flag
=$ac_xsave_c_werror_flag
5303 # Check for system-dependent libraries X programs must link with.
5304 # Do this before checking for the system-independent R6 libraries
5305 # (-lICE), since we may need -lsocket or whatever for X linking.
5307 if test "$ISC" = yes; then
5308 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
5310 # Martyn Johnson says this is needed for Ultrix, if the X
5311 # libraries were built with DECnet support. And Karl Berry says
5312 # the Alpha needs dnet_stub (dnet does not exist).
5313 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
5314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5317 /* Override any GCC internal prototype to avoid an error.
5318 Use char because int might match the return type of a GCC
5319 builtin and then its argument prototype would still apply. */
5323 char XOpenDisplay ();
5327 return XOpenDisplay ();
5332 if ac_fn_c_try_link
"$LINENO"; then :
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5336 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5337 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
5338 $as_echo_n "(cached) " >&6
5340 ac_check_lib_save_LIBS
=$LIBS
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5345 /* Override any GCC internal prototype to avoid an error.
5346 Use char because int might match the return type of a GCC
5347 builtin and then its argument prototype would still apply. */
5355 return dnet_ntoa ();
5360 if ac_fn_c_try_link
"$LINENO"; then :
5361 ac_cv_lib_dnet_dnet_ntoa
=yes
5363 ac_cv_lib_dnet_dnet_ntoa
=no
5365 rm -f core conftest.err conftest.
$ac_objext \
5366 conftest
$ac_exeext conftest.
$ac_ext
5367 LIBS
=$ac_check_lib_save_LIBS
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5370 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5371 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
5372 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
5375 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5377 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5378 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
5379 $as_echo_n "(cached) " >&6
5381 ac_check_lib_save_LIBS
=$LIBS
5382 LIBS
="-ldnet_stub $LIBS"
5383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5386 /* Override any GCC internal prototype to avoid an error.
5387 Use char because int might match the return type of a GCC
5388 builtin and then its argument prototype would still apply. */
5396 return dnet_ntoa ();
5401 if ac_fn_c_try_link
"$LINENO"; then :
5402 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
5404 ac_cv_lib_dnet_stub_dnet_ntoa
=no
5406 rm -f core conftest.err conftest.
$ac_objext \
5407 conftest
$ac_exeext conftest.
$ac_ext
5408 LIBS
=$ac_check_lib_save_LIBS
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5411 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5412 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
5413 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
5418 rm -f core conftest.err conftest.
$ac_objext \
5419 conftest
$ac_exeext conftest.
$ac_ext
5420 LIBS
="$ac_xsave_LIBS"
5422 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5423 # to get the SysV transport functions.
5424 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5426 # The nsl library prevents programs from opening the X display
5427 # on Irix 5.2, according to T.E. Dickey.
5428 # The functions gethostbyname, getservbyname, and inet_addr are
5429 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5430 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5431 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
5435 if test $ac_cv_func_gethostbyname = no
; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5437 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5438 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
5439 $as_echo_n "(cached) " >&6
5441 ac_check_lib_save_LIBS
=$LIBS
5443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5446 /* Override any GCC internal prototype to avoid an error.
5447 Use char because int might match the return type of a GCC
5448 builtin and then its argument prototype would still apply. */
5452 char gethostbyname ();
5456 return gethostbyname ();
5461 if ac_fn_c_try_link
"$LINENO"; then :
5462 ac_cv_lib_nsl_gethostbyname
=yes
5464 ac_cv_lib_nsl_gethostbyname
=no
5466 rm -f core conftest.err conftest.
$ac_objext \
5467 conftest
$ac_exeext conftest.
$ac_ext
5468 LIBS
=$ac_check_lib_save_LIBS
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5471 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5472 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
5473 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
5476 if test $ac_cv_lib_nsl_gethostbyname = no
; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5478 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5479 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
5480 $as_echo_n "(cached) " >&6
5482 ac_check_lib_save_LIBS
=$LIBS
5484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5487 /* Override any GCC internal prototype to avoid an error.
5488 Use char because int might match the return type of a GCC
5489 builtin and then its argument prototype would still apply. */
5493 char gethostbyname ();
5497 return gethostbyname ();
5502 if ac_fn_c_try_link
"$LINENO"; then :
5503 ac_cv_lib_bsd_gethostbyname
=yes
5505 ac_cv_lib_bsd_gethostbyname
=no
5507 rm -f core conftest.err conftest.
$ac_objext \
5508 conftest
$ac_exeext conftest.
$ac_ext
5509 LIBS
=$ac_check_lib_save_LIBS
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5512 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5513 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
5514 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
5520 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5521 # socket/setsockopt and other routines are undefined under SCO ODT
5522 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5523 # on later versions), says Simon Leinen: it contains gethostby*
5524 # variants that don't use the name server (or something). -lsocket
5525 # must be given before -lnsl if both are needed. We assume that
5526 # if connect needs -lnsl, so does gethostbyname.
5527 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
5528 if test "x$ac_cv_func_connect" = xyes
; then :
5532 if test $ac_cv_func_connect = no
; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5534 $as_echo_n "checking for connect in -lsocket... " >&6; }
5535 if ${ac_cv_lib_socket_connect+:} false
; then :
5536 $as_echo_n "(cached) " >&6
5538 ac_check_lib_save_LIBS
=$LIBS
5539 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5543 /* Override any GCC internal prototype to avoid an error.
5544 Use char because int might match the return type of a GCC
5545 builtin and then its argument prototype would still apply. */
5558 if ac_fn_c_try_link
"$LINENO"; then :
5559 ac_cv_lib_socket_connect
=yes
5561 ac_cv_lib_socket_connect
=no
5563 rm -f core conftest.err conftest.
$ac_objext \
5564 conftest
$ac_exeext conftest.
$ac_ext
5565 LIBS
=$ac_check_lib_save_LIBS
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5568 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5569 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
5570 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
5575 # Guillermo Gomez says -lposix is necessary on A/UX.
5576 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
5577 if test "x$ac_cv_func_remove" = xyes
; then :
5581 if test $ac_cv_func_remove = no
; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5583 $as_echo_n "checking for remove in -lposix... " >&6; }
5584 if ${ac_cv_lib_posix_remove+:} false
; then :
5585 $as_echo_n "(cached) " >&6
5587 ac_check_lib_save_LIBS
=$LIBS
5588 LIBS
="-lposix $LIBS"
5589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5592 /* Override any GCC internal prototype to avoid an error.
5593 Use char because int might match the return type of a GCC
5594 builtin and then its argument prototype would still apply. */
5607 if ac_fn_c_try_link
"$LINENO"; then :
5608 ac_cv_lib_posix_remove
=yes
5610 ac_cv_lib_posix_remove
=no
5612 rm -f core conftest.err conftest.
$ac_objext \
5613 conftest
$ac_exeext conftest.
$ac_ext
5614 LIBS
=$ac_check_lib_save_LIBS
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5617 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5618 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
5619 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
5624 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5625 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
5626 if test "x$ac_cv_func_shmat" = xyes
; then :
5630 if test $ac_cv_func_shmat = no
; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5632 $as_echo_n "checking for shmat in -lipc... " >&6; }
5633 if ${ac_cv_lib_ipc_shmat+:} false
; then :
5634 $as_echo_n "(cached) " >&6
5636 ac_check_lib_save_LIBS
=$LIBS
5638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5641 /* Override any GCC internal prototype to avoid an error.
5642 Use char because int might match the return type of a GCC
5643 builtin and then its argument prototype would still apply. */
5656 if ac_fn_c_try_link
"$LINENO"; then :
5657 ac_cv_lib_ipc_shmat
=yes
5659 ac_cv_lib_ipc_shmat
=no
5661 rm -f core conftest.err conftest.
$ac_objext \
5662 conftest
$ac_exeext conftest.
$ac_ext
5663 LIBS
=$ac_check_lib_save_LIBS
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5666 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5667 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
5668 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
5674 # Check for libraries that X11R6 Xt/Xaw programs need.
5675 ac_save_LDFLAGS
=$LDFLAGS
5676 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
5677 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5678 # check for ICE first), but we must link in the order -lSM -lICE or
5679 # we get undefined symbols. So assume we have SM if we have ICE.
5680 # These have to be linked with before -lX11, unlike the other
5681 # libraries we check for below, so use a different variable.
5682 # John Interrante, Karl Berry
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5684 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5685 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
5686 $as_echo_n "(cached) " >&6
5688 ac_check_lib_save_LIBS
=$LIBS
5689 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
5690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5693 /* Override any GCC internal prototype to avoid an error.
5694 Use char because int might match the return type of a GCC
5695 builtin and then its argument prototype would still apply. */
5699 char IceConnectionNumber ();
5703 return IceConnectionNumber ();
5708 if ac_fn_c_try_link
"$LINENO"; then :
5709 ac_cv_lib_ICE_IceConnectionNumber
=yes
5711 ac_cv_lib_ICE_IceConnectionNumber
=no
5713 rm -f core conftest.err conftest.
$ac_objext \
5714 conftest
$ac_exeext conftest.
$ac_ext
5715 LIBS
=$ac_check_lib_save_LIBS
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5718 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5719 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
5720 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5723 LDFLAGS
=$ac_save_LDFLAGS
5727 CPPFLAGS
="${CPPFLAGS} ${X_CFLAGS}"
5728 LDFLAGS
="${LDFLAGS} ${X_LIBS}"
5729 LIBS
="${X_PRE_LIBS} ${LIBS} -lX11"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtToolkitInitialize in -lXt" >&5
5731 $as_echo_n "checking for XtToolkitInitialize in -lXt... " >&6; }
5732 if ${ac_cv_lib_Xt_XtToolkitInitialize+:} false
; then :
5733 $as_echo_n "(cached) " >&6
5735 ac_check_lib_save_LIBS
=$LIBS
5737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5740 /* Override any GCC internal prototype to avoid an error.
5741 Use char because int might match the return type of a GCC
5742 builtin and then its argument prototype would still apply. */
5746 char XtToolkitInitialize ();
5750 return XtToolkitInitialize ();
5755 if ac_fn_c_try_link
"$LINENO"; then :
5756 ac_cv_lib_Xt_XtToolkitInitialize
=yes
5758 ac_cv_lib_Xt_XtToolkitInitialize
=no
5760 rm -f core conftest.err conftest.
$ac_objext \
5761 conftest
$ac_exeext conftest.
$ac_ext
5762 LIBS
=$ac_check_lib_save_LIBS
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtToolkitInitialize" >&5
5765 $as_echo "$ac_cv_lib_Xt_XtToolkitInitialize" >&6; }
5766 if test "x$ac_cv_lib_Xt_XtToolkitInitialize" = xyes
; then :
5767 cat >>confdefs.h
<<_ACEOF
5768 #define HAVE_LIBXT 1
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtDisplayInitialize in -lXt" >&5
5776 $as_echo_n "checking for XtDisplayInitialize in -lXt... " >&6; }
5777 if ${ac_cv_lib_Xt_XtDisplayInitialize+:} false
; then :
5778 $as_echo_n "(cached) " >&6
5780 ac_check_lib_save_LIBS
=$LIBS
5781 LIBS
="-lXt -lSM -lICE -lXpm -lX11 $LIBS"
5782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5785 /* Override any GCC internal prototype to avoid an error.
5786 Use char because int might match the return type of a GCC
5787 builtin and then its argument prototype would still apply. */
5791 char XtDisplayInitialize ();
5795 return XtDisplayInitialize ();
5800 if ac_fn_c_try_link
"$LINENO"; then :
5801 ac_cv_lib_Xt_XtDisplayInitialize
=yes
5803 ac_cv_lib_Xt_XtDisplayInitialize
=no
5805 rm -f core conftest.err conftest.
$ac_objext \
5806 conftest
$ac_exeext conftest.
$ac_ext
5807 LIBS
=$ac_check_lib_save_LIBS
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtDisplayInitialize" >&5
5810 $as_echo "$ac_cv_lib_Xt_XtDisplayInitialize" >&6; }
5811 if test "x$ac_cv_lib_Xt_XtDisplayInitialize" = xyes
; then :
5812 cat >>confdefs.h
<<_ACEOF
5813 #define HAVE_LIBXT 1
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5824 $as_echo_n "checking for ANSI C header files... " >&6; }
5825 if ${ac_cv_header_stdc+:} false
; then :
5826 $as_echo_n "(cached) " >&6
5828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5843 if ac_fn_c_try_compile
"$LINENO"; then :
5844 ac_cv_header_stdc
=yes
5846 ac_cv_header_stdc
=no
5848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 if test $ac_cv_header_stdc = yes; then
5851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h. */
5857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5858 $EGREP "memchr" >/dev
/null
2>&1; then :
5861 ac_cv_header_stdc
=no
5867 if test $ac_cv_header_stdc = yes; then
5868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5875 $EGREP "free" >/dev
/null
2>&1; then :
5878 ac_cv_header_stdc
=no
5884 if test $ac_cv_header_stdc = yes; then
5885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5886 if test "$cross_compiling" = yes; then :
5889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5893 #if ((' ' & 0x0FF) == 0x020)
5894 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5895 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5897 # define ISLOWER(c) \
5898 (('a' <= (c) && (c) <= 'i') \
5899 || ('j' <= (c) && (c) <= 'r') \
5900 || ('s' <= (c) && (c) <= 'z'))
5901 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5909 for (i = 0; i < 256; i++)
5910 if (XOR (islower (i), ISLOWER (i))
5911 || toupper (i) != TOUPPER (i))
5916 if ac_fn_c_try_run
"$LINENO"; then :
5919 ac_cv_header_stdc
=no
5921 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5922 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5928 $as_echo "$ac_cv_header_stdc" >&6; }
5929 if test $ac_cv_header_stdc = yes; then
5931 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5936 for ac_func
in setenv putenv
5938 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5939 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5940 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5941 cat >>confdefs.h
<<_ACEOF
5942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5949 ac_fn_c_check_func
"$LINENO" "vfork" "ac_cv_func_vfork"
5950 if test "x$ac_cv_func_vfork" = xyes
; then :
5955 for ac_header
in dirent.h
5957 ac_fn_c_check_header_mongrel
"$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5958 if test "x$ac_cv_header_dirent_h" = xyes
; then :
5959 cat >>confdefs.h
<<_ACEOF
5960 #define HAVE_DIRENT_H 1
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11 libraries" >&5
5971 $as_echo_n "checking for 64-bit X11 libraries... " >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/X11R6/lib64" >&5
5973 $as_echo_n "checking for /usr/X11R6/lib64... " >&6; }
5974 if ${ac_cv_file__usr_X11R6_lib64+:} false
; then :
5975 $as_echo_n "(cached) " >&6
5977 test "$cross_compiling" = yes &&
5978 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
5979 if test -r "/usr/X11R6/lib64"; then
5980 ac_cv_file__usr_X11R6_lib64
=yes
5982 ac_cv_file__usr_X11R6_lib64
=no
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_X11R6_lib64" >&5
5986 $as_echo "$ac_cv_file__usr_X11R6_lib64" >&6; }
5987 if test "x$ac_cv_file__usr_X11R6_lib64" = xyes
; then :
5989 LDFLAGS
="-L/usr/X11R6/lib64 ${LDFLAGS}"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-pointer-sign accepted in CFLAGS" >&5
5997 $as_echo_n "checking if -Wno-pointer-sign accepted in CFLAGS... " >&6; }
5998 ac_save_CFLAGS
="$CFLAGS"
5999 CFLAGS
="$CFLAGS -Wno-pointer-sign"
6000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6013 if ac_fn_c_try_compile
"$LINENO"; then :
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6016 $as_echo "yes" >&6; }
6019 CFLAGS
="$ac_save_CFLAGS"
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
6026 $as_echo_n "checking for deflate in -lz... " >&6; }
6027 if ${ac_cv_lib_z_deflate+:} false
; then :
6028 $as_echo_n "(cached) " >&6
6030 ac_check_lib_save_LIBS
=$LIBS
6031 LIBS
="-lz -lz $LIBS"
6032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6035 /* Override any GCC internal prototype to avoid an error.
6036 Use char because int might match the return type of a GCC
6037 builtin and then its argument prototype would still apply. */
6050 if ac_fn_c_try_link
"$LINENO"; then :
6051 ac_cv_lib_z_deflate
=yes
6053 ac_cv_lib_z_deflate
=no
6055 rm -f core conftest.err conftest.
$ac_objext \
6056 conftest
$ac_exeext conftest.
$ac_ext
6057 LIBS
=$ac_check_lib_save_LIBS
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
6060 $as_echo "$ac_cv_lib_z_deflate" >&6; }
6061 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
6062 cat >>confdefs.h
<<_ACEOF
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6072 $as_echo_n "checking for va_copy... " >&6; }
6073 if ${ac_cv_c_va_copy+:} false
; then :
6074 $as_echo_n "(cached) " >&6
6076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6089 if ac_fn_c_try_link
"$LINENO"; then :
6090 ac_cv_c_va_copy
="yes"
6092 ac_cv_c_va_copy
="no"
6094 rm -f core conftest.err conftest.
$ac_objext \
6095 conftest
$ac_exeext conftest.
$ac_ext
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_va_copy" >&5
6099 $as_echo "$ac_cv_c_va_copy" >&6; }
6100 if test "$ac_cv_c_va_copy" = "yes"
6103 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6107 $as_echo_n "checking for __va_copy... " >&6; }
6108 if ${ac_cv_c___va_copy+:} false
; then :
6109 $as_echo_n "(cached) " >&6
6111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6124 if ac_fn_c_try_link
"$LINENO"; then :
6125 ac_cv_c___va_copy
="yes"
6127 ac_cv_c___va_copy
="no"
6129 rm -f core conftest.err conftest.
$ac_objext \
6130 conftest
$ac_exeext conftest.
$ac_ext
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c___va_copy" >&5
6134 $as_echo "$ac_cv_c___va_copy" >&6; }
6135 if test "$ac_cv_c___va_copy" = "yes"
6138 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if u_char defined" >&5
6143 $as_echo_n "checking if u_char defined... " >&6; }
6144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 #include <sys/types.h>
6157 if ac_fn_c_try_compile
"$LINENO"; then :
6159 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6162 $as_echo "yes" >&6; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6169 # Check whether --enable-optimize was given.
6170 if test "${enable_optimize+set}" = set; then :
6171 enableval
=$enable_optimize;
6174 CFLAGS
=`echo $CFLAGS | sed -e "s/ -O2//"`
6180 # Check whether --with-xpm was given.
6181 if test "${with_xpm+set}" = set; then :
6183 if test "$withval" != "no" -a "$withval" != "yes"; then
6184 CPPFLAGS
="${CPPFLAGS} -I$withval/include"
6185 LDFLAGS
="${LDFLAGS} -L$withval/lib"
6191 for ac_header
in X11
/xpm.h
6193 ac_fn_c_check_header_mongrel
"$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
6194 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
6195 cat >>confdefs.h
<<_ACEOF
6196 #define HAVE_X11_XPM_H 1
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreateImageFromData in -lXpm" >&5
6199 $as_echo_n "checking for XpmCreateImageFromData in -lXpm... " >&6; }
6200 if ${ac_cv_lib_Xpm_XpmCreateImageFromData+:} false
; then :
6201 $as_echo_n "(cached) " >&6
6203 ac_check_lib_save_LIBS
=$LIBS
6204 LIBS
="-lXpm -lX11 $LIBS"
6205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6208 /* Override any GCC internal prototype to avoid an error.
6209 Use char because int might match the return type of a GCC
6210 builtin and then its argument prototype would still apply. */
6214 char XpmCreateImageFromData ();
6218 return XpmCreateImageFromData ();
6223 if ac_fn_c_try_link
"$LINENO"; then :
6224 ac_cv_lib_Xpm_XpmCreateImageFromData
=yes
6226 ac_cv_lib_Xpm_XpmCreateImageFromData
=no
6228 rm -f core conftest.err conftest.
$ac_objext \
6229 conftest
$ac_exeext conftest.
$ac_ext
6230 LIBS
=$ac_check_lib_save_LIBS
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreateImageFromData" >&5
6233 $as_echo "$ac_cv_lib_Xpm_XpmCreateImageFromData" >&6; }
6234 if test "x$ac_cv_lib_Xpm_XpmCreateImageFromData" = xyes
; then :
6236 LIBS
="${LIBS} -lXpm"
6237 $as_echo "#define HAVE_XPM 1" >>confdefs.h
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xpm library not found" >&5
6242 $as_echo "$as_me: WARNING: Xpm library not found" >&2;}
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xpm header not found" >&5
6247 $as_echo "$as_me: WARNING: Xpm header not found" >&2;}
6255 #------------------------------------------------------------
6256 # AC_PROG_LD - find the path to the GNU or non-GNU linker
6257 # (This stuff ripped from libtool)
6258 #------------------------------------------------------------
6264 # Check whether --with-gnu-ld was given.
6265 if test "${with_gnu_ld+set}" = set; then :
6266 withval
=$with_gnu_ld; test "$withval" = no || xc_with_gnu_ld
=yes
6272 if test "$GCC" = yes; then
6273 # Check if gcc -print-prog-name=ld gives a path.
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6275 $as_echo_n "checking for ld used by GCC... " >&6; }
6278 # gcc leaves a trailing carriage return which upsets mingw
6279 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6281 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6284 # Accept absolute paths.
6285 [\\/]* |
[A-Za-z
]:[\\/]*)
6286 re_direlt
='/[^/][^/]*/\.\./'
6287 # Canonicalize the path of ld
6288 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6289 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6290 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6292 test -z "$LD" && LD
="$ac_prog"
6295 # If it fails, then pretend we aren't using GCC.
6299 # If it is relative, then search for the first ld in PATH.
6300 xc_with_gnu_ld
=unknown
6303 elif test "$xc_with_gnu_ld" = yes; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6305 $as_echo_n "checking for GNU ld... " >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6308 $as_echo_n "checking for non-GNU ld... " >&6; }
6310 if ${ac_cv_path_LD+:} false
; then :
6311 $as_echo_n "(cached) " >&6
6313 if test -z "$LD"; then
6314 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6315 for ac_dir
in $PATH; do
6316 test -z "$ac_dir" && ac_dir
=.
6317 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6318 ac_cv_path_LD
="$ac_dir/$ac_prog"
6319 # Check to see if the program is GNU ld. I'd rather use --version,
6320 # but apparently some GNU ld's only accept -v.
6321 # Break only if it was the GNU/non-GNU ld that we prefer.
6322 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6323 test "$xc_with_gnu_ld" != no
&& break
6325 test "$xc_with_gnu_ld" != yes && break
6331 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
6336 if test -n "$LD"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6338 $as_echo "$LD" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6343 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6346 if ${ac_cv_prog_gnu_ld+:} false
; then :
6347 $as_echo_n "(cached) " >&6
6349 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6350 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6351 ac_cv_prog_gnu_ld
=yes
6353 ac_cv_prog_gnu_ld
=no
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6357 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6358 xc_with_gnu_ld
=$ac_cv_prog_gnu_ld
6365 xc_with_tcl_includes
=""
6366 xc_with_tk_includes
=""
6367 xc_with_tcl_libraries
=""
6368 xc_with_tk_libraries
=""
6373 # Check whether --with-cairo was given.
6374 if test "${with_cairo+set}" = set; then :
6375 withval
=$with_cairo;
6376 xc_with_cairo
=$withval
6377 if test "$withval" == "no" -o "$withval" == "NO"; then
6384 if test "x$xc_with_cairo" != "x" ; then
6385 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
6394 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6397 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6401 $as_echo_n "(cached) " >&6
6405 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6412 test -z "$as_dir" && as_dir
=.
6413 for ac_exec_ext
in '' $ac_executable_extensions; do
6414 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6427 if test -n "$PKG_CONFIG"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6429 $as_echo "$PKG_CONFIG" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_path_PKG_CONFIG"; then
6438 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6439 # Extract the first word of "pkg-config", so it can be a program name with args.
6440 set dummy pkg-config
; ac_word
=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6444 $as_echo_n "(cached) " >&6
6446 case $ac_pt_PKG_CONFIG in
6448 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6455 test -z "$as_dir" && as_dir
=.
6456 for ac_exec_ext
in '' $ac_executable_extensions; do
6457 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6470 if test -n "$ac_pt_PKG_CONFIG"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6472 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6478 if test "x$ac_pt_PKG_CONFIG" = x
; then
6481 case $cross_compiling:$ac_tool_warned in
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned
=yes ;;
6487 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6490 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6494 if test -n "$PKG_CONFIG"; then
6495 _pkg_min_version
=0.9.0
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6497 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6498 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6500 $as_echo "yes" >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
6510 $as_echo_n "checking for cairo... " >&6; }
6512 if test -n "$cairo_CFLAGS"; then
6513 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
6514 elif test -n "$PKG_CONFIG"; then
6515 if test -n "$PKG_CONFIG" && \
6516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6517 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
6522 test "x$?" != "x0" && pkg_failed
=yes
6529 if test -n "$cairo_LIBS"; then
6530 pkg_cv_cairo_LIBS
="$cairo_LIBS"
6531 elif test -n "$PKG_CONFIG"; then
6532 if test -n "$PKG_CONFIG" && \
6533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6534 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6537 test $ac_status = 0; }; then
6538 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
6539 test "x$?" != "x0" && pkg_failed
=yes
6549 if test $pkg_failed = yes; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6553 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6554 _pkg_short_errors_supported
=yes
6556 _pkg_short_errors_supported
=no
6558 if test $_pkg_short_errors_supported = yes; then
6559 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
6561 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
6563 # Put the nasty error message in config.log where it belongs
6564 echo "$cairo_PKG_ERRORS" >&5
6566 as_fn_error $?
"Package requirements (cairo) were not met:
6570 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6571 installed software in a non-standard prefix.
6573 Alternatively, you may set the environment variables cairo_CFLAGS
6574 and cairo_LIBS to avoid the need to call pkg-config.
6575 See the pkg-config man page for more details." "$LINENO" 5
6576 elif test $pkg_failed = untried
; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6581 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6582 is in your PATH or set the PKG_CONFIG environment variable to the full
6585 Alternatively, you may set the environment variables cairo_CFLAGS
6586 and cairo_LIBS to avoid the need to call pkg-config.
6587 See the pkg-config man page for more details.
6589 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6590 See \`config.log' for more details" "$LINENO" 5; }
6592 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
6593 cairo_LIBS
=$pkg_cv_cairo_LIBS
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6595 $as_echo "yes" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig" >&5
6601 $as_echo_n "checking for fontconfig... " >&6; }
6603 if test -n "$fontconfig_CFLAGS"; then
6604 pkg_cv_fontconfig_CFLAGS
="$fontconfig_CFLAGS"
6605 elif test -n "$PKG_CONFIG"; then
6606 if test -n "$PKG_CONFIG" && \
6607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6608 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; then
6612 pkg_cv_fontconfig_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
6613 test "x$?" != "x0" && pkg_failed
=yes
6620 if test -n "$fontconfig_LIBS"; then
6621 pkg_cv_fontconfig_LIBS
="$fontconfig_LIBS"
6622 elif test -n "$PKG_CONFIG"; then
6623 if test -n "$PKG_CONFIG" && \
6624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6625 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 pkg_cv_fontconfig_LIBS
=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
6630 test "x$?" != "x0" && pkg_failed
=yes
6640 if test $pkg_failed = yes; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6644 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6645 _pkg_short_errors_supported
=yes
6647 _pkg_short_errors_supported
=no
6649 if test $_pkg_short_errors_supported = yes; then
6650 fontconfig_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
6652 fontconfig_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
6654 # Put the nasty error message in config.log where it belongs
6655 echo "$fontconfig_PKG_ERRORS" >&5
6657 as_fn_error $?
"Package requirements (fontconfig) were not met:
6659 $fontconfig_PKG_ERRORS
6661 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6662 installed software in a non-standard prefix.
6664 Alternatively, you may set the environment variables fontconfig_CFLAGS
6665 and fontconfig_LIBS to avoid the need to call pkg-config.
6666 See the pkg-config man page for more details." "$LINENO" 5
6667 elif test $pkg_failed = untried
; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6672 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6673 is in your PATH or set the PKG_CONFIG environment variable to the full
6676 Alternatively, you may set the environment variables fontconfig_CFLAGS
6677 and fontconfig_LIBS to avoid the need to call pkg-config.
6678 See the pkg-config man page for more details.
6680 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6681 See \`config.log' for more details" "$LINENO" 5; }
6683 fontconfig_CFLAGS
=$pkg_cv_fontconfig_CFLAGS
6684 fontconfig_LIBS
=$pkg_cv_fontconfig_LIBS
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6686 $as_echo "yes" >&6; }
6689 for ac_header
in ghostscript
/gdevdsp.h
6691 ac_fn_c_check_header_mongrel
"$LINENO" "ghostscript/gdevdsp.h" "ac_cv_header_ghostscript_gdevdsp_h" "$ac_includes_default"
6692 if test "x$ac_cv_header_ghostscript_gdevdsp_h" = xyes
; then :
6693 cat >>confdefs.h
<<_ACEOF
6694 #define HAVE_GHOSTSCRIPT_GDEVDSP_H 1
6698 $as_echo "#define HAVE_GS 1" >>confdefs.h
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building xcircuit without ghostscript rendering" >&5
6704 $as_echo "$as_me: WARNING: Building xcircuit without ghostscript rendering" >&2;}
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Install the ghostscript-devel package to solve this" >&5
6706 $as_echo "$as_me: WARNING: Install the ghostscript-devel package to solve this" >&2;}
6715 # For distributed installs, where the run-time files are installed in a
6716 # place that is a temporary staging area, like DESTDIR, but unlike DESTDIR,
6717 # the prefix is replaced by the destination directory, rather than appended
6719 DIST_DIR
="\${exec_prefix}"
6721 # Check whether --with-distdir was given.
6722 if test "${with_distdir+set}" = set; then :
6723 withval
=$with_distdir;
6724 if test "$withval" = "no" -o "$withval" = "NO" ; then
6725 DIST_DIR
="\${exec_prefix}"
6735 # Check whether --with-tcl was given.
6736 if test "${with_tcl+set}" = set; then :
6738 xc_with_tcl
=$withval
6739 if test "$withval" == "no" -o "$withval" == "NO"; then
6748 # Check whether --with-tk was given.
6749 if test "${with_tk+set}" = set; then :
6750 withval
=$with_tk; xc_with_tk
=$withval
6754 # Check whether --with-tclincls was given.
6755 if test "${with_tclincls+set}" = set; then :
6756 withval
=$with_tclincls; xc_with_tcl_includes
=$withval
6760 # Check whether --with-tkincls was given.
6761 if test "${with_tkincls+set}" = set; then :
6762 withval
=$with_tkincls; xc_with_tk_includes
=$withval
6766 # Check whether --with-tcllibs was given.
6767 if test "${with_tcllibs+set}" = set; then :
6768 withval
=$with_tcllibs; xc_with_tcl_libraries
=$withval
6772 # Check whether --with-tklibs was given.
6773 if test "${with_tklibs+set}" = set; then :
6774 withval
=$with_tklibs; xc_with_tk_libraries
=$withval
6778 # -----------------------------------------------------------------------
6780 # Find the Tcl build configuration file "tclConfig.sh"
6782 # -----------------------------------------------------------------------
6784 if test "x$xc_with_tcl" != "x" ; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
6790 $as_echo_n "checking for tclConfig.sh... " >&6; }
6793 if test "$xc_with_tcl" = "no" ; then
6795 elif test "$xc_with_tcl" != "yes" ; then
6797 # Verify that a tclConfig.sh file exists in the directory specified
6803 if test -r "$dir/tclConfig.sh" ; then
6804 tcl_config_sh
="$dir/tclConfig.sh"
6806 elif test -r "$dir/lib/tclConfig.sh" ; then
6807 tcl_config_sh
="$dir/lib/tclConfig.sh"
6813 # Otherwise, search for Tcl configuration file.
6816 # 1. Search previously named locations.
6822 if test -r "$dir/tclConfig.sh" ; then
6823 tcl_config_sh
="$dir/tclConfig.sh"
6825 elif test -r "$dir/lib/tclConfig.sh" ; then
6826 tcl_config_sh
="$dir/lib/tclConfig.sh"
6831 # 2. Search standard locations.
6833 if test "x$tcl_config_sh" = "x" ; then
6835 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6839 `ls -dr /usr/share/tcltk/tcl[7-9].[0-9]* 2>/dev/null` \
6845 if test -r "$dir/tclConfig.sh" ; then
6846 tcl_config_sh
="$dir/tclConfig.sh"
6848 elif test -r "$dir/lib/tclConfig.sh" ; then
6849 tcl_config_sh
="$dir/lib/tclConfig.sh"
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5
6857 $as_echo "${tcl_config_sh}" >&6; }
6859 if test "x$tcl_config_sh" = "x" ; then
6860 echo "can't find Tcl configuration script \"tclConfig.sh\""
6861 echo "Reverting to non-Tcl compilation"
6866 # -----------------------------------------------------------------------
6868 # Find the Tk build configuration file "tkConfig.sh"
6870 # -----------------------------------------------------------------------
6872 if test "x$xc_with_tcl" != "x" ; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
6874 $as_echo_n "checking for tkConfig.sh... " >&6; }
6876 if test "$xc_with_tk" != "yes"; then
6878 # Verify that a tkConfig.sh file exists in the directory specified
6879 # by --with-tcl or --with-tk.
6885 if test -r "$dir/tkConfig.sh" ; then
6886 tk_config_sh
="$dir/tkConfig.sh"
6888 elif test -r "$dir/lib/tkConfig.sh" ; then
6889 tk_config_sh
="$dir/lib/tkConfig.sh"
6895 # Search for Tk configuration file.
6899 # 1. Search previously named locations.
6905 if test -r "$dir/tkConfig.sh" ; then
6906 tk_config_sh
="$dir/tkConfig.sh"
6908 elif test -r "$dir/lib/tkConfig.sh" ; then
6909 tk_config_sh
="$dir/lib/tkConfig.sh"
6914 # 2. Search standard locations.
6916 if test "x$tk_config_sh" = "x" ; then
6920 `ls -dr /usr/local/lib/tk[7-9].[0-9]* 2>/dev/null` \
6921 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \
6922 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \
6923 `ls -dr /usr/local/tk[7-9].[0-9]* 2>/dev/null` \
6925 `ls -dr /usr/local/lib/tcl[7-9].[0-9]* 2>/dev/null` \
6926 `ls -dr /usr/lib/tcl/tk[7-9].[0-9]* 2>/dev/null` \
6927 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6928 `ls -dr /usr/share/tcltk/tk[7-9].[0-9]* 2>/dev/null` \
6934 if test -r "$dir/tkConfig.sh" ; then
6935 tk_config_sh
="$dir/tkConfig.sh"
6937 elif test -r "$dir/lib/tkConfig.sh" ; then
6938 tk_config_sh
="$dir/lib/tkConfig.sh"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tk_config_sh}" >&5
6945 $as_echo "${tk_config_sh}" >&6; }
6947 if test "x$tk_config_sh" = "x" ; then
6948 echo "can't find Tk configuration script \"tkConfig.sh\""
6949 echo "Reverting to non-Tcl compilation"
6954 # -----------------------------------------------------------------------
6956 # Source in the Tcl/Tk configuration scripts.
6958 # This didn't work so well in the pre-8.5 days, but
6959 # seems to be okay now.
6961 # -----------------------------------------------------------------------
6963 if test "x$xc_with_tcl" != "x" ; then
6967 # Should probably trust the config file contents, but this configure
6968 # file checks the Tcl and Tk include and lib directories. Since
6969 # the config file doesn't separate out the libraries from the strings
6970 # passed to the compiler/linker, do it manually here.
6972 # Extract TCL_LIB_DIR from TCL_LIB_SPEC
6973 # Extract TK_LIB_DIR from TK_LIB_SPEC
6974 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC
6975 # Extract TK_INC_DIR from TK_INCLUDE_SPEC
6977 # These will be the defaults unless overridden by configure command line
6979 tmpstr
=${TCL_LIB_SPEC#*-L}
6980 TCL_LIB_DIR
=${tmpstr% -l*}
6981 tmpstr
=${TK_LIB_SPEC#*-L}
6982 TK_LIB_DIR
=${tmpstr% -l*}
6983 TCL_INC_DIR
=${TCL_INCLUDE_SPEC#*-I}
6984 TK_INC_DIR
=${TK_INCLUDE_SPEC#*-I}
6986 LIBS
="${TCL_LIBS} ${LIBS}"
6988 if test "$TCL_VERSION" = "$TK_VERSION" ; then
6991 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)"
6992 echo "Reverting to non-Tcl compilation"
6997 # -----------------------------------------------------------------------
6998 # Rely on TCL_INCLUDE_SPEC from tclConfig.sh unless "--with-tclincls"
6999 # overrides. With TCL_INCLUDE_SPEC, pull out TCL_INC_DIR
7000 # -----------------------------------------------------------------------
7002 if test "x$xc_with_tcl" != "x" ; then
7003 if test "x${xc_with_tcl_includes}" != "x" ; then
7004 if test -r "${xc_with_tcl_includes}/tcl.h" ; then
7005 TCL_INC_DIR
=${xc_with_tcl_includes}
7006 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
7007 echo "Can't find tcl.h in \"${xc_with_tcl_includes}\""
7008 echo "Reverting to non-Tcl compilation"
7011 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
7013 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7014 ${TCL_PREFIX}/include \
7015 ${TCL_SRC_DIR}/generic \
7018 if test -r "$dir/tcl.h" ; then
7020 TCL_INCLUDE_SPEC
="-I${TCL_INC_DIR}"
7024 if test "x${TCL_INC_DIR}" = "x" ; then
7025 echo "Can't find tcl.h header file"
7026 echo "Reverting to non-Tcl compilation"
7030 TCL_INC_DIR
=`echo ${TCL_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7034 # -----------------------------------------------------------------------
7035 # Rely on TK_INCLUDE_SPEC from tkConfig.sh unless "--with-tkincls"
7036 # overrides. With TK_INCLUDE_SPEC, pull out TK_INC_DIR
7037 # -----------------------------------------------------------------------
7039 if test "x$xc_with_tcl" != "x" ; then
7040 if test "x${xc_with_tk_includes}" != "x" ; then
7041 if test -r "${xc_with_tk_includes}/tk.h" ; then
7042 TK_INC_DIR
=${xc_with_tk_includes}
7043 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7044 echo "Can't find tk.h in \"${xc_with_tk_includes}\""
7045 echo "Reverting to non-Tcl compilation"
7048 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7050 ${TK_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7051 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
7052 ${TK_PREFIX}/include \
7053 ${TK_SRC_DIR}/generic \
7056 if test -r "$dir/tk.h" ; then
7058 TK_INCLUDE_SPEC
="-I${TK_INC_DIR}"
7062 if test "x${TK_INC_DIR}" = "x" ; then
7063 echo "Can't find tk.h header file"
7064 echo "Reverting to non-Tcl compilation"
7068 TK_INC_DIR
=`echo ${TK_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7072 # --------------------------------------------------------------
7073 # Rely on TCL_LIB_SPEC from tclConfig.sh unless "--with-tcllibs"
7074 # overrides. With TCL_LIB_SPEC, pull out TCL_LIB_DIR
7075 # --------------------------------------------------------------
7077 if test "x$xc_with_tcl" != "x" ; then
7078 if test "x${xc_with_tcl_libraries}" != "x" ; then
7081 "${xc_with_tcl_libraries}/${TCL_LIB_FILE}" \
7082 "${xc_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7084 if test -r "$libname" ; then
7085 TCL_LIB_DIR
="${xc_with_tcl_libraries}"
7089 if test "x${TCL_LIB_DIR}" == "x" ; then
7090 echo "Can't find tcl library in \"${xc_with_tcl_libraries}\""
7091 echo "Reverting to non-Tcl compile"
7094 elif test "x${TCL_LIB_SPEC}" == "x" ; then
7095 for libpfix
in "lib64" "lib"
7097 libname
="${TCL_EXEC_PREFIX}/${libpfix}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7098 if test -r "$libname" ; then
7099 TCL_LIB_DIR
="${TCL_EXEC_PREFIX}/${libpfix}"
7103 if test "x${TCL_LIB_DIR}" = "x" ; then
7104 echo "Can't find tcl library"
7105 echo "Reverting to non-Tcl compile"
7109 TCL_LIB_DIR
=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7113 # --------------------------------------------------------------
7114 # Rely on TK_LIB_SPEC from tkConfig.sh unless "--with-tklibs"
7115 # overrides. With TK_LIB_SPEC, pull out TK_LIB_DIR
7116 # --------------------------------------------------------------
7118 if test "x$xc_with_tcl" != "x" ; then
7119 if test "x${xc_with_tk_libraries}" != "x" ; then
7122 "${xc_with_tk_libraries}/${TK_LIB_FILE}" \
7123 "${xc_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7125 if test -r "$libname" ; then
7126 TK_LIB_DIR
="${xc_with_tk_libraries}"
7130 if test "x${TK_LIB_DIR}" == "x" ; then
7131 echo "Can't find tk library in \"${xc_with_tk_libraries}\""
7132 echo "Reverting to non-Tcl compile"
7135 elif test "x${TK_LIB_SPEC}" == "x" ; then
7136 for libpfix
in "lib64" "lib"
7138 libname
="${TK_EXEC_PREFIX}/${libpfix}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7139 if test -r "$libname" ; then
7140 TK_LIB_DIR
="${TK_EXEC_PREFIX}/${libpfix}"
7144 if test "x${TK_LIB_DIR}" = "x" ; then
7145 echo "Can't find tk library"
7146 echo "Reverting to non-Tcl compile"
7150 TK_LIB_DIR
=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7154 #--------------------------------------------------------------------
7155 # If TCL_LIB_SPEC and/or TK_LIB_SPEC do not exist, construct them
7156 #--------------------------------------------------------------------
7158 if test "x$xc_with_tcl" != "x" ; then
7159 if test "x${TCL_LIB_SPEC}" == "x" ; then
7161 *-sunos4*|
*-*-netbsd|NetBSD-
*|FreeBSD-
*|
*-*-openbsd*|OpenBSD-
*)
7162 TCL_LIB_NAME
="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
7165 TCL_LIB_NAME
="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
7168 TCL_LIB_SPEC
="-L${TCL_LIB_DIR} -l${TCL_LIB_NAME}"
7171 if test "x${TK_LIB_SPEC}" == "x" ; then
7173 *-sunos4*|
*-*-netbsd|NetBSD-
*|FreeBSD-
*|
*-*-openbsd*|OpenBSD-
*)
7174 TK_LIB_NAME
="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
7177 TK_LIB_NAME
="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
7180 TK_LIB_SPEC
="-L${TK_LIB_DIR} -l${TK_LIB_NAME}"
7183 # Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
7184 # We really ought to run "ldd" to confirm that the linked libraries match.
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wish executable" >&5
7187 $as_echo_n "checking for wish executable... " >&6; }
7189 ${TK_EXEC_PREFIX}/bin \
7196 wish
${TK_VERSION}.exe
7198 if test -r "$dir/$wishexe" ; then
7199 WISH_EXE
=$dir/$wishexe
7203 if test "x${WISH_EXE}" != "x" ; then
7207 if test "x${WISH_EXE}" = "x" ; then
7208 echo "Warning: Can't find executable for \"wish\". You may have to"
7209 echo "manually set the value for WISH_EXE in the xcircuit startup script."
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WISH_EXE}" >&5
7214 $as_echo "${WISH_EXE}" >&6; }
7217 # Have to define SHDLIB_EXT here even though we have to do it below, too.
7229 SHDLIB_EXT
=".so.${TCL_LIB_FILE##*.so.}"
7238 # -----------------------------------------------------------------------
7240 # Tk libraries and header files
7242 # -----------------------------------------------------------------------
7244 if test "x$xc_with_tcl" != "x" ; then
7245 INC_SPECS
="${INC_SPECS} ${TCL_INCLUDE_SPEC} ${TK_INCLUDE_SPEC}"
7246 LIB_SPECS
="${LIB_SPECS} ${TCL_LIB_SPEC} ${TK_LIB_SPEC}"
7248 if test "x${loader_run_path}" = "x" ; then
7249 loader_run_path
="${TCL_LIB_DIR}"
7251 loader_run_path
="${TCL_LIB_DIR}:${loader_run_path}"
7254 #--------------------------------------------------------------------
7256 # Check if we can generate shared libraries on this system. Set flags
7257 # to generate shared libraries for systems that we know about. Start
7258 # with the values found in tclConfig.sh, make changes as we know about
7259 # the different systems.
7261 #--------------------------------------------------------------------
7263 # Initialize shared library build variables
7265 if test "x${TCL_SHLIB_SUFFIX}" == "x" ; then
7268 SHDLIB_EXT
="${TCL_SHLIB_SUFFIX}"
7271 if test "x${TCL_SHLIB_LD}" == "x" ; then
7273 # Construct shared library build arguments the painful way
7274 # This is not expected to be necessary, so the number of
7275 # supported systems has been pared down to a minimum.
7277 LDDL_FLAGS
="-shared"
7285 SHLIB_LIB_SPECS
="${LIB_SPECS}"
7286 if test "${xc_with_gnu_ld}" = "yes" ; then
7287 LDDL_FLAGS
="-dynamiclib -bind_at_load"
7289 LDDL_FLAGS
="-single_module -dynamiclib -flat_namespace"
7290 LDDL_FLAGS
="${LDDL_FLAGS} -undefined suppress -noprebind"
7291 SHLIB_CFLAGS
="-I/sw/include -fno-common"
7296 $as_echo "#define CYGWIN 1" >>confdefs.h
7299 LDDL_FLAGS
="-shared -Wl,--enable-auto-image-base -Wl,-rpath,${loader_run_path}"
7300 SHLIB_LIB_SPECS
="${LIB_SPECS}"
7304 SHLIB_CFLAGS
="-fPIC"
7305 LDDL_FLAGS
='-shared -Wl,-soname,$@'
7306 LD_RUN_PATH
="-Wl,-rpath,${loader_run_path}"
7308 EXTRA_LIB_SPECS
="-ldl"
7312 # AMD 64-bit archictecture
7313 # Add -fPIC to standard compile switch
7314 CFLAGS
="${CFLAGS} -fPIC"
7319 *-netbsd*|
*-freebsd*|
*-openbsd*)
7320 # Not available on all versions: check for include file.
7321 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7322 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7329 if test "$test_ok" = yes; then
7330 SHLIB_CFLAGS
="-fpic"
7332 LDDL_FLAGS
="-shared"
7337 if test "$GCC" = "yes" ; then
7338 CFLAGS
="-fPIC ${CFLAGS}"
7343 # Rely on shared lib arguments in tclConfig.sh
7345 SHLIB_LD
="${TCL_SHLIB_LD}"
7347 LDDL_FLAGS
="${TCL_LD_FLAGS}"
7352 LD_RUN_PATH
="-Wl,-rpath,${loader_run_path}"
7357 # If we're running gcc, then set SHLIB_CFLAGS flags for compiling
7358 # shared libraries for gcc, instead of those of the vendor's
7361 if test "$GCC" = "yes" ; then
7362 if test "x${TCL_SHLIB_CFLAGS}" = "x" ; then
7363 SHLIB_CFLAGS
="-fPIC ${SHLIB_CFLAGS}"
7365 SHLIB_CFLAGS
="${TCL_SHLIB_CFLAGS} ${SHLIB_CFLAGS}"
7368 CFLAGS
="${CFLAGS} ${SHLIB_CFLAGS}"
7370 if test "${xc_with_gnu_ld}" = "yes" ; then
7371 LDDL_FLAGS
="${LDDL_FLAGS} -Wl,--version-script=symbol.map"
7389 # Check whether --enable-asg was given.
7390 if test "${enable_asg+set}" = set; then :
7391 enableval
=$enable_asg;
7392 $as_echo "#define ASG 1" >>confdefs.h
7394 $as_echo "#define CONFIGURED 1" >>confdefs.h
7396 SUBDIRS
="asg spiceparser"
7397 SUBLIB
="asg/libasg.a spiceparser/libspiceparser.a"
7402 # Check whether --enable-lgf was given.
7403 if test "${enable_lgf+set}" = set; then :
7404 enableval
=$enable_lgf;
7408 $as_echo "#define LGF 1" >>confdefs.h
7414 # Check whether --enable-focus-fix was given.
7415 if test "${enable_focus_fix+set}" = set; then :
7416 enableval
=$enable_focus_fix;
7419 $as_echo "#define INPUT_FOCUS 1" >>confdefs.h
7426 # Check whether --with-gs was given.
7427 if test "${with_gs+set}" = set; then :
7429 if test -f "$withval"; then
7437 # Extract the first word of "gs", so it can be a program name with args.
7438 set dummy gs
; ac_word
=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_GS_EXEC+:} false
; then :
7442 $as_echo_n "(cached) " >&6
7444 if test -n "$GS_EXEC"; then
7445 ac_cv_prog_GS_EXEC
="$GS_EXEC" # Let the user override the test.
7447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir
=.
7452 for ac_exec_ext
in '' $ac_executable_extensions; do
7453 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_GS_EXEC
=""
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 test -z "$ac_cv_prog_GS_EXEC" && ac_cv_prog_GS_EXEC
="gs"
7465 GS_EXEC
=$ac_cv_prog_GS_EXEC
7466 if test -n "$GS_EXEC"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS_EXEC" >&5
7468 $as_echo "$GS_EXEC" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7477 cat >>confdefs.h
<<_ACEOF
7478 #define GS_EXEC "$GS_EXEC"
7483 # Check whether --with-ngspice was given.
7484 if test "${with_ngspice+set}" = set; then :
7485 withval
=$with_ngspice;
7486 if test -f "$withval"; then
7494 # Extract the first word of "ngspice", so it can be a program name with args.
7495 set dummy ngspice
; ac_word
=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_SPICE_EXEC+:} false
; then :
7499 $as_echo_n "(cached) " >&6
7501 if test -n "$SPICE_EXEC"; then
7502 ac_cv_prog_SPICE_EXEC
="$SPICE_EXEC" # Let the user override the test.
7504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir
=.
7509 for ac_exec_ext
in '' $ac_executable_extensions; do
7510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_SPICE_EXEC
=""
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 test -z "$ac_cv_prog_SPICE_EXEC" && ac_cv_prog_SPICE_EXEC
="ngspice"
7522 SPICE_EXEC
=$ac_cv_prog_SPICE_EXEC
7523 if test -n "$SPICE_EXEC"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPICE_EXEC" >&5
7525 $as_echo "$SPICE_EXEC" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7534 cat >>confdefs.h
<<_ACEOF
7535 #define SPICE_EXEC "$SPICE_EXEC"
7544 # Check whether --with-python was given.
7545 if test "${with_python+set}" = set; then :
7546 withval
=$with_python; xc_with_python
=$withval
7550 if test "x$xc_with_tcl" != "x" ; then
7552 elif test "$xc_with_python" = "no" ; then
7554 elif test "$xc_with_python" = "yes" ; then
7555 # Extract the first word of "python", so it can be a program name with args.
7556 set dummy python
; ac_word
=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if ${ac_cv_path_PYTHON+:} false
; then :
7560 $as_echo_n "(cached) " >&6
7564 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
7567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir
=.
7572 for ac_exec_ext
in '' $ac_executable_extensions; do
7573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 PYTHON
=$ac_cv_path_PYTHON
7586 if test -n "$PYTHON"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7588 $as_echo "$PYTHON" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7595 elif test "x$xc_with_python" != x
; then
7596 test -f "$xc_with_python" && PYTHON
=$xc_with_python
7599 if test "x$PYTHON" != x
; then
7600 _py_version
=`$PYTHON -c 'import sys; print sys.version[0:3]'`
7601 _py_prefix
=`$PYTHON -c 'import sys; print sys.prefix'`
7602 _py_exec_prefix
=`$PYTHON -c 'import sys; print sys.exec_prefix'`
7604 _py_include
="$_py_prefix/include/python$_py_version"
7605 _py_lib
="$_py_exec_prefix/lib/python$_py_version/config"
7606 _py_makefile
="$_py_lib/Makefile"
7608 if test $_py_version = 1.5; then
7611 echo "*** Python version 1.5 detected: This version of Python has a known fatal"
7612 echo "*** bug. Disabling Python interface. If you want the embedded Python"
7613 echo "*** interface, you will need to get an updated version of Python."
7619 if test "x$PYTHON" != x
; then
7620 if test -f $_py_makefile; then
7621 _py_libs
=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $_py_makefile`
7622 _py_libm
=`sed -n -e 's/^LIBM=\(.*\)/\1/p' $_py_makefile`
7624 _py_libs
='-lpthread -ldl -lutil -ldb'
7628 # Now that we think we know where the python include and
7629 # library files are, make sure we can build a small
7630 # program against them.
7631 _save_CPPFLAGS
=${CPPFLAGS}
7632 _save_LDFLAGS
=${LDFLAGS}
7635 CPPFLAGS
="$CPPFLAGS -I$_py_include"
7636 LDFLAGS
="$LDFLAGS -L$_py_lib"
7638 case "$target_os" in
7640 PYLIB
="-lpython$_py_version"
7641 LIBS
="$PYLIB.dll $LIBS $X_PRE_LIBS $_py_libs"
7644 LIBS
="$LIBS -lpython$_py_version $_py_libs $_py_libm"
7650 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
7651 if test "x$ac_cv_header_Python_h" = xyes
; then :
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Py_Initialize in -lpython$_py_version" >&5
7654 $as_echo_n "checking for Py_Initialize in -lpython$_py_version... " >&6; }
7655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7666 if ac_fn_c_try_link
"$LINENO"; then :
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7671 $as_echo "yes" >&6; }
7672 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7678 rm -f core conftest.err conftest.
$ac_objext \
7679 conftest
$ac_exeext conftest.
$ac_ext
7684 if test "x$HAVE_PYTHON" = x0
; then
7685 CPPFLAGS
=$_save_CPPFLAGS
7686 LDFLAGS
=$_save_LDFLAGS
7692 if test "x$PYTHON" != x
; then
7693 STARTUP_FILE
="xcstartup.py"
7694 INTERP_PATH
="python"
7696 SUBDIRS
="${SUBDIRS} Xw"
7697 SUBLIB
="${SUBLIB} Xw/libxcXw.a"
7698 XCIRCUIT_TARGET
="xcircuit"
7699 elif test "x$xc_with_tcl" != "x" ; then
7701 STARTUP_FILE
="xcstartup.tcl"
7703 WRAPPER_SCRIPT
="wrapper.tcl"
7704 $as_echo "#define TCL_WRAPPER 1" >>confdefs.h
7706 XCIRCUIT_TARGET
="tcl"
7707 ALL_TARGET
="all-recursive"
7708 INSTALL_TARGET
="install-recursive"
7710 STARTUP_FILE
="startup.script"
7713 SUBDIRS
="${SUBDIRS} Xw"
7714 SUBLIB
="${SUBLIB} Xw/libxcXw.a"
7715 XCIRCUIT_TARGET
="xcircuit"
7718 # Add -lm last to LDFLAGS, or Tcl/Tk's addition of -lieee can cause
7720 EXTRA_LIB_SPECS
="$EXTRA_LIB_SPECS -lm"
7723 # Check whether --enable-memdebug was given.
7724 if test "${enable_memdebug+set}" = set; then :
7725 enableval
=$enable_memdebug;
7726 if test "x$xc_with_tcl" = "x" ; then
7727 LIBS
="${LIBS} -lefence"
7729 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7759 ac_config_files
="$ac_config_files Makefile Xw/Makefile asg/Makefile spiceparser/Makefile"
7761 cat >confcache
<<\_ACEOF
7762 # This file is a shell script that caches the results of configure
7763 # tests run on this system so they can be shared between configure
7764 # scripts and configure runs, see configure's option --config-cache.
7765 # It is not useful on other systems. If it contains results you don't
7766 # want to keep, you may remove or edit it.
7768 # config.status only pays attention to the cache file if you give it
7769 # the --recheck option to rerun configure.
7771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7777 # The following way of writing the cache mishandles newlines in values,
7778 # but we know of no workaround that is simple, portable, and efficient.
7779 # So, we kill variables containing newlines.
7780 # Ultrix sh set writes to stderr and can't be redirected directly,
7781 # and sets the high bit in the cache file unless we assign to the vars.
7783 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7784 eval ac_val
=\$
$ac_var
7788 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7792 _ | IFS | as_nl
) ;; #(
7793 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7794 *) { eval $ac_var=; unset $ac_var;} ;;
7800 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7801 *${as_nl}ac_space
=\
*)
7802 # `set' does not quote correctly, so add quotes: double-quote
7803 # substitution turns \\\\ into \\, and sed turns \\ into \.
7806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7809 # `set' quotes correctly as required by POSIX, so do not add quotes.
7810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7819 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7821 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7823 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7824 if test -w "$cache_file"; then
7825 if test "x$cache_file" != "x/dev/null"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7827 $as_echo "$as_me: updating cache $cache_file" >&6;}
7828 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7829 cat confcache
>"$cache_file"
7831 case $cache_file in #(
7833 mv -f confcache
"$cache_file"$$
&&
7834 mv -f "$cache_file"$$
"$cache_file" ;; #(
7836 mv -f confcache
"$cache_file" ;;
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7842 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7847 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7848 # Let make expand exec_prefix.
7849 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7851 # Transform confdefs.h into DEFS.
7852 # Protect against shell expansion while executing Makefile rules.
7853 # Protect against Makefile macro expansion.
7855 # If the first sed substitution is executed (which looks for macros that
7856 # take arguments), then branch to the quote section. Otherwise,
7857 # look for a macro that doesn't take arguments.
7867 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7869 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7873 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7886 DEFS
=`sed -n "$ac_script" confdefs.h`
7892 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7893 # 1. Remove the extension, and $U if already installed.
7894 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7895 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7896 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7897 # will be set to the directory where LIBOBJS objects are built.
7898 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7899 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7903 LTLIBOBJS
=$ac_ltlibobjs
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7907 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7908 if test -n "$am_sleep_pid"; then
7909 # Hide warnings about reused PIDs.
7910 wait $am_sleep_pid 2>/dev
/null
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7913 $as_echo "done" >&6; }
7914 if test -n "$EXEEXT"; then
7916 am__EXEEXT_FALSE
='#'
7922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7923 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7927 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7931 : "${CONFIG_STATUS=./config.status}"
7933 ac_clean_files_save
=$ac_clean_files
7934 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7936 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7938 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7940 # Generated by $as_me.
7941 # Run this file to recreate the current configuration.
7942 # Compiler output produced by configure, useful for debugging
7943 # configure, is in config.log if it exists.
7949 SHELL=\${CONFIG_SHELL-$SHELL}
7952 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7953 ## -------------------- ##
7954 ## M4sh Initialization. ##
7955 ## -------------------- ##
7957 # Be more Bourne compatible
7958 DUALCASE
=1; export DUALCASE
# for MKS sh
7959 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7962 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7963 # is contrary to our usage. Disable this feature.
7964 alias -g '${1+"$@"}'='"$@"'
7965 setopt NO_GLOB_SUBST
7967 case `(set -o) 2>/dev/null` in #(
7979 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7980 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7981 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7982 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7983 # Prefer a ksh shell builtin over an external printf program on Solaris,
7984 # but without wasting forks for bash or zsh.
7985 if test -z "$BASH_VERSION$ZSH_VERSION" \
7986 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7987 as_echo='print
-r --'
7988 as_echo_n='print
-rn --'
7989 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7990 as_echo='printf %s
\n'
7991 as_echo_n='printf %s
'
7993 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7994 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7995 as_echo_n='/usr
/ucb
/echo -n'
7997 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7998 as_echo_n_body='eval
8002 expr "X$arg" : "X\\(.*\\)$as_nl";
8003 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8005 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8007 export as_echo_n_body
8008 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8011 as_echo='sh
-c $as_echo_body as_echo
'
8014 # The user is always right.
8015 if test "${PATH_SEPARATOR+set}" != set; then
8017 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8018 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8025 # We need space, tab and new line, in precisely that order. Quoting is
8026 # there to prevent editors from complaining about space-tab.
8027 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8028 # splitting by setting IFS to empty value.)
8031 # Find who we are. Look in the path if we contain no directory separator.
8034 *[\\/]* ) as_myself=$0 ;;
8035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 test -z "$as_dir" && as_dir=.
8040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8046 # We did not find ourselves, most probably we were run as `sh COMMAND'
8047 # in which case we are not to be found in the path.
8048 if test "x$as_myself" = x
; then
8051 if test ! -f "$as_myself"; then
8052 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8056 # Unset variables that we do not need and which cause bugs (e.g. in
8057 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8058 # suppresses any "Segmentation fault" message there. '((' could
8059 # trigger a bug in pdksh 5.2.14.
8060 for as_var
in BASH_ENV ENV MAIL MAILPATH
8061 do eval test x\
${$as_var+set} = xset \
8062 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8075 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8078 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8079 # ----------------------------------------
8080 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8081 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8082 # script with STATUS, using 1 if that was 0.
8085 as_status
=$1; test $as_status -eq 0 && as_status
=1
8087 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8088 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8090 $as_echo "$as_me: error: $2" >&2
8091 as_fn_exit
$as_status
8095 # as_fn_set_status STATUS
8096 # -----------------------
8097 # Set $? to STATUS, without forking.
8101 } # as_fn_set_status
8105 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8115 # Portably unset VAR.
8118 { eval $1=; unset $1;}
8120 as_unset
=as_fn_unset
8121 # as_fn_append VAR VALUE
8122 # ----------------------
8123 # Append the text in VALUE to the end of the definition contained in VAR. Take
8124 # advantage of any shell optimizations that allow amortized linear growth over
8125 # repeated appends, instead of the typical quadratic growth present in naive
8127 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8128 eval 'as_fn_append ()
8139 # as_fn_arith ARG...
8140 # ------------------
8141 # Perform arithmetic evaluation on the ARGs, and store the result in the
8142 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8143 # must be portable across $(()) and expr.
8144 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8145 eval 'as_fn_arith ()
8152 as_val
=`expr "$@" || test $? -eq 1`
8157 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8158 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8164 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8165 as_basename
=basename
8170 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8176 as_me
=`$as_basename -- "$0" ||
8177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8178 X"$0" : 'X\(//\)$' \| \
8179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8181 sed '/^.*\/\([^/][^/]*\)\/*$/{
8195 # Avoid depending upon Character Ranges.
8196 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8197 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8198 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8199 as_cr_digits
='0123456789'
8200 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8202 ECHO_C
= ECHO_N
= ECHO_T
=
8203 case `echo -n x` in #(((((
8205 case `echo 'xy\c'` in
8206 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8208 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8215 rm -f conf$$ conf$$.exe conf$$.
file
8216 if test -d conf$$.dir
; then
8217 rm -f conf$$.dir
/conf$$.
file
8220 mkdir conf$$.dir
2>/dev
/null
8222 if (echo >conf$$.
file) 2>/dev
/null
; then
8223 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8225 # ... but there are two gotchas:
8226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8228 # In both cases, we have to default to `cp -pR'.
8229 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8231 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8239 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8240 rmdir conf$$.dir
2>/dev
/null
8245 # Create "$as_dir" as a directory, including parents if necessary.
8250 -*) as_dir
=.
/$as_dir;;
8252 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8256 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8257 *) as_qdir
=$as_dir;;
8259 as_dirs
="'$as_qdir' $as_dirs"
8260 as_dir
=`$as_dirname -- "$as_dir" ||
8261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8262 X"$as_dir" : 'X\(//\)[^/]' \| \
8263 X"$as_dir" : 'X\(//\)$' \| \
8264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8265 $as_echo X"$as_dir" |
8266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8283 test -d "$as_dir" && break
8285 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8286 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8290 if mkdir
-p .
2>/dev
/null
; then
8291 as_mkdir_p
='mkdir -p "$as_dir"'
8293 test -d .
/-p && rmdir .
/-p
8298 # as_fn_executable_p FILE
8299 # -----------------------
8300 # Test if FILE is an executable regular file.
8301 as_fn_executable_p
()
8303 test -f "$1" && test -x "$1"
8304 } # as_fn_executable_p
8306 as_executable_p
=as_fn_executable_p
8308 # Sed expression to map a string onto a valid CPP name.
8309 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8311 # Sed expression to map a string onto a valid variable name.
8312 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8316 ## ----------------------------------- ##
8317 ## Main body of $CONFIG_STATUS script. ##
8318 ## ----------------------------------- ##
8320 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8323 # Save the log message, to keep $0 and so on meaningful, and to
8324 # report actual input values of CONFIG_FILES etc. instead of their
8325 # values after options handling.
8327 This file was extended by $as_me, which was
8328 generated by GNU Autoconf 2.69. Invocation command line was
8330 CONFIG_FILES = $CONFIG_FILES
8331 CONFIG_HEADERS = $CONFIG_HEADERS
8332 CONFIG_LINKS = $CONFIG_LINKS
8333 CONFIG_COMMANDS = $CONFIG_COMMANDS
8336 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8341 case $ac_config_files in *"
8342 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8348 # Files that config.status was made for.
8349 config_files="$ac_config_files"
8350 config_commands="$ac_config_commands"
8354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8356 \`$as_me' instantiates files and other configuration actions
8357 from templates according to the current configuration. Unless the files
8358 and actions are specified as TAGs, all are instantiated by default.
8360 Usage: $0 [OPTION]... [TAG]...
8362 -h, --help print this help, then exit
8363 -V, --version print version number and configuration settings, then exit
8364 --config print configuration, then exit
8365 -q, --quiet, --silent
8366 do not print progress messages
8367 -d, --debug don't remove temporary files
8368 --recheck update $as_me by reconfiguring in the same conditions
8369 --file=FILE[:TEMPLATE]
8370 instantiate the configuration file FILE
8372 Configuration files:
8375 Configuration commands:
8378 Report bugs to the package provider."
8381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8382 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8385 configured by $0, generated by GNU Autoconf 2.69,
8386 with options \\"\$ac_cs_config\\"
8388 Copyright (C) 2012 Free Software Foundation, Inc.
8389 This config.status script is free software; the Free Software Foundation
8390 gives unlimited permission to copy, distribute and modify it."
8397 test -n "\$AWK" || AWK=awk
8400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8401 # The default lists apply if the user does not specify any file.
8407 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8408 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8412 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8424 # Handling of the options.
8425 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8427 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8428 $as_echo "$ac_cs_version"; exit ;;
8429 --config |
--confi |
--conf |
--con |
--co |
--c )
8430 $as_echo "$ac_cs_config"; exit ;;
8431 --debug |
--debu |
--deb |
--de |
--d |
-d )
8433 --file |
--fil |
--fi |
--f )
8436 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8437 '') as_fn_error $?
"missing file argument" ;;
8439 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8440 ac_need_defaults
=false
;;
8441 --he |
--h |
--help |
--hel |
-h )
8442 $as_echo "$ac_cs_usage"; exit ;;
8443 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8444 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8448 -*) as_fn_error $?
"unrecognized option: \`$1'
8449 Try \`$0 --help' for more information." ;;
8451 *) as_fn_append ac_config_targets
" $1"
8452 ac_need_defaults
=false
;;
8458 ac_configure_extra_args
=
8460 if $ac_cs_silent; then
8462 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8467 if \$ac_cs_recheck; then
8468 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8471 CONFIG_SHELL='$SHELL'
8477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8482 ## Running $as_me. ##
8488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8492 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8498 # Handling of arguments.
8499 for ac_config_target
in $ac_config_targets
8501 case $ac_config_target in
8502 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8503 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8504 "Xw/Makefile") CONFIG_FILES
="$CONFIG_FILES Xw/Makefile" ;;
8505 "asg/Makefile") CONFIG_FILES
="$CONFIG_FILES asg/Makefile" ;;
8506 "spiceparser/Makefile") CONFIG_FILES
="$CONFIG_FILES spiceparser/Makefile" ;;
8508 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8513 # If the user did not use the arguments to specify the items to instantiate,
8514 # then the envvar interface is used. Set only those that are not.
8515 # We use the long form for the default assignment because of an extremely
8516 # bizarre bug on SunOS 4.1.3.
8517 if $ac_need_defaults; then
8518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8522 # Have a temporary directory for convenience. Make it in the build tree
8523 # simply because there is no reason against having it here, and in addition,
8524 # creating and moving files from /tmp can sometimes cause problems.
8525 # Hook for its removal unless debugging.
8526 # Note that there is a small window in which the directory will not be cleaned:
8527 # after its creation but before its name has been assigned to `$tmp'.
8531 trap 'exit_status=$?
8533 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8535 trap 'as_fn_exit 1' 1 2 13 15
8537 # Create a (secure) tmp directory for tmp files.
8540 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8544 tmp
=.
/conf$$
-$RANDOM
8545 (umask 077 && mkdir
"$tmp")
8546 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8549 # Set up the scripts for CONFIG_FILES section.
8550 # No need to generate them if there are no CONFIG_FILES.
8551 # This happens for instance with `./config.status config.h'.
8552 if test -n "$CONFIG_FILES"; then
8555 ac_cr
=`echo X | tr X '\015'`
8556 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8557 # But we know of no other shell where ac_cr would be empty at this
8558 # point, so we can use a bashism as a fallback.
8559 if test "x$ac_cr" = x
; then
8560 eval ac_cr
=\$
\'\\r
\'
8562 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8563 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8569 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8574 echo "cat >conf$$subs.awk <<_ACEOF" &&
8575 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8578 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8579 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8581 for ac_last_try in false false false false false :; do
8582 . ./conf$$subs.sh ||
8583 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8585 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8586 if test $ac_delim_n = $ac_delim_num; then
8588 elif $ac_last_try; then
8589 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8591 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8597 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8601 s/^/S["/; s
/!.
*/"]=/
8611 s/\(.\{148\}\)..*/\1/
8613 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8618 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8625 s/\(.\{148\}\)..*/\1/
8627 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8631 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8636 ' <conf$$subs.awk | sed '
8641 ' >>$CONFIG_STATUS || ac_write_fail=1
8642 rm -f conf$$subs.awk
8643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8645 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8646 for (key in S) S_is_set[key] = 1
8652 nfields = split(line, field, "@
")
8654 len = length(field[1])
8655 for (i = 2; i < nfields; i++) {
8657 keylen = length(key)
8658 if (S_is_set[key]) {
8660 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8661 len += length(value) + length(field[++i])
8672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8673 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8674 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8677 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8678 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8681 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8682 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8683 # trailing colons and then remove the whole line if VPATH becomes empty
8684 # (actually we leave an empty line to preserve line numbers).
8685 if test "x
$srcdir" = x.; then
8686 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8705 fi # test -n "$CONFIG_FILES"
8708 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
8713 :[FHLC]) ac_mode=$ac_tag; continue;;
8715 case $ac_mode$ac_tag in
8717 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
8718 :[FH]-) ac_tag=-:-;;
8719 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8736 -) ac_f="$ac_tmp/stdin";;
8737 *) # Look for the file first in the build tree, then in the source tree
8738 # (if the path is not absolute). The absolute path cannot be DOS-style,
8739 # because $ac_f cannot contain `:'.
8743 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8745 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8747 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
8748 as_fn_append ac_file_inputs " '$ac_f'"
8751 # Let's still pretend it is `configure' which instantiates (i.e., don't
8752 # use $as_me), people would be surprised to read:
8753 # /* config.h. Generated by config.status. */
8754 configure_input='Generated from '`
8755 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8757 if test x"$ac_file" != x-; then
8758 configure_input="$ac_file.
$configure_input"
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
8760 $as_echo "$as_me: creating
$ac_file" >&6;}
8762 # Neutralize special characters interpreted by sed in replacement strings.
8763 case $configure_input in #(
8764 *\&* | *\|* | *\\* )
8765 ac_sed_conf_input=`$as_echo "$configure_input" |
8766 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8767 *) ac_sed_conf_input=$configure_input;;
8771 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
8772 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
8777 ac_dir=`$as_dirname -- "$ac_file" ||
8778 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8779 X"$ac_file" : 'X\(//\)[^/]' \| \
8780 X"$ac_file" : 'X\(//\)$' \| \
8781 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8782 $as_echo X"$ac_file" |
8783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8800 as_dir="$ac_dir"; as_fn_mkdir_p
8804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8807 # A "..
" for each directory in $ac_dir_suffix.
8808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8809 case $ac_top_builddir_sub in
8810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8814 ac_abs_top_builddir=$ac_pwd
8815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8816 # for backward compatibility:
8817 ac_top_builddir=$ac_top_build_prefix
8820 .) # We are building in place.
8822 ac_top_srcdir=$ac_top_builddir_sub
8823 ac_abs_top_srcdir=$ac_pwd ;;
8824 [\\/]* | ?:[\\/]* ) # Absolute name.
8825 ac_srcdir=$srcdir$ac_dir_suffix;
8826 ac_top_srcdir=$srcdir
8827 ac_abs_top_srcdir=$srcdir ;;
8829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8830 ac_top_srcdir=$ac_top_build_prefix$srcdir
8831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8843 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8844 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8848 [\\/$]* | ?:[\\/]* ) ;;
8849 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8854 # If the template does not know about datarootdir, expand it.
8855 # FIXME: This hack should be removed a few years after 2.60.
8856 ac_datarootdir_hack=; ac_datarootdir_seen=
8867 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
8868 *datarootdir*) ac_datarootdir_seen=yes;;
8869 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
8871 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
8873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8874 ac_datarootdir_hack='
8875 s&@datadir@&$datadir&g
8876 s&@docdir@&$docdir&g
8877 s&@infodir@&$infodir&g
8878 s&@localedir@&$localedir&g
8879 s&@mandir@&$mandir&g
8880 s&\\\${datarootdir}&$datarootdir&g' ;;
8884 # Neutralize VPATH when `$srcdir' = `.'.
8885 # Shell code in configure.ac might set extrasub.
8886 # FIXME: do we really want to maintain this feature?
8887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8888 ac_sed_extra="$ac_vpsub
8891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8893 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8894 s|@configure_input@|
$ac_sed_conf_input|
;t t
8895 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8896 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8897 s
&@srcdir@
&$ac_srcdir&;t t
8898 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8899 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8900 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8901 s
&@builddir@
&$ac_builddir&;t t
8902 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8903 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8904 s
&@INSTALL@
&$ac_INSTALL&;t t
8905 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8906 $ac_datarootdir_hack
8908 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8909 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8911 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8912 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8913 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8914 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8916 which seems to be undefined. Please make sure it is defined" >&5
8917 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8918 which seems to be undefined. Please make sure it is defined" >&2;}
8920 rm -f "$ac_tmp/stdin"
8922 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8923 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8930 $as_echo "$as_me: executing $ac_file commands" >&6;}
8935 case $ac_file$ac_mode in
8936 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8937 # Older Autoconf quotes --file arguments for eval, but not when files
8938 # are listed without --file. Let's play safe and only
enable the
eval
8939 # if we detect the quoting.
8940 case $CONFIG_FILES in
8941 *\'*) eval set x
"$CONFIG_FILES" ;;
8942 *) set x
$CONFIG_FILES ;;
8947 # Strip MF so we end up with the name of the file.
8948 mf
=`echo "$mf" | sed -e 's/:.*$//'`
8949 # Check whether this is an Automake generated Makefile or not.
8950 # We used to match only the files named 'Makefile.in', but
8951 # some people rename them; so instead we look at the file content.
8952 # Grep'ing the first line is not enough: some people post-process
8953 # each Makefile.in and add a new line on top of each file to say so.
8954 # Grep'ing the whole file is not good either: AIX grep has a line
8955 # limit of 2048, but all sed's we know have understand at least 4000.
8956 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
8957 dirpart
=`$as_dirname -- "$mf" ||
8958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8959 X"$mf" : 'X\(//\)[^/]' \| \
8960 X"$mf" : 'X\(//\)$' \| \
8961 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8983 # Extract the definition of DEPDIR, am__include, and am__quote
8984 # from the Makefile without running 'make'.
8985 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
8986 test -z "$DEPDIR" && continue
8987 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
8988 test -z "$am__include" && continue
8989 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
8990 # Find all dependency output files, they are included files with
8991 # $(DEPDIR) in their names. We invoke sed twice because it is the
8992 # simplest approach to changing $(DEPDIR) to its actual value in the
8994 for file in `sed -n "
8995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8997 # Make sure the directory exists.
8998 test -f "$dirpart/$file" && continue
8999 fdir
=`$as_dirname -- "$file" ||
9000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9001 X"$file" : 'X\(//\)[^/]' \| \
9002 X"$file" : 'X\(//\)$' \| \
9003 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9022 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
9023 # echo "creating $dirpart/$file"
9024 echo '# dummy' > "$dirpart/$file"
9036 ac_clean_files
=$ac_clean_files_save
9038 test $ac_write_fail = 0 ||
9039 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
9042 # configure is writing to config.log, and then calls config.status.
9043 # config.status does its own redirection, appending to config.log.
9044 # Unfortunately, on DOS this fails, as config.log is still kept open
9045 # by configure, so config.status won't be able to write to it; its
9046 # output is simply discarded. So we exec the FD to /dev/null,
9047 # effectively closing config.log, so it can be properly (re)opened and
9048 # appended to by config.status. When coming back to configure, we
9049 # need to make the FD available again.
9050 if test "$no_create" != yes; then
9052 ac_config_status_args
=
9053 test "$silent" = yes &&
9054 ac_config_status_args
="$ac_config_status_args --quiet"
9056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9059 # would make configure fail if this is the last instruction.
9060 $ac_cs_success || as_fn_exit
1
9062 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9064 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9069 echo "Configuration results:"
9070 echo "----------------------------------------------------"
9073 if test "x$xc_with_tcl" == "x" ; then
9074 if test "x$PYTHON" != x
; then
9075 echo "Using Python interface (not recommended)"
9077 echo "No Tcl/Tk, using standard Xlib/Xt interface."
9078 echo "If that is not what you wanted, then make sure"
9079 echo "you have Tcl/Tk development packages installed?"
9082 echo "Using Tcl/Tk interface"
9086 if test "x$xc_with_cairo" == "x" ; then
9087 echo "No Cairo graphics."
9088 echo "If that is not what you wanted, then make sure"
9089 echo "you have libcairo and fontconfig installed."
9090 echo "Try installing package cairo-devel."
9092 echo "Using Cairo graphics"
9095 echo "CFLAGS=${CFLAGS}"