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_suggested195;as_suggested
=$as_suggested" as_lineno_1a=\195
196 as_lineno_2=";as_suggested
=$as_suggested196;as_suggested
=$as_suggested" as_lineno_2a=\196
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
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-413}: 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
=465 as_lineno_1a
=465
466 as_lineno_2
=466 as_lineno_2a
=466
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="xcircuit.c"
586 ac_unique_file
="xcircuit.c"
587 # Factoring default headers for most tests.
588 ac_includes_default
="\
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
600 # ifdef HAVE_STDLIB_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
623 ac_subst_vars
='am__EXEEXT_FALSE
700 INSTALL_STRIP_PROGRAM
755 program_transform_name
769 enable_option_checking
771 enable_dependency_tracking
792 ac_precious_vars
='build_alias
811 # Initialize some variables set by options.
813 ac_init_version
=false
814 ac_unrecognized_opts
=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
825 program_transform_name
=s
,x
,x
,
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir
='${exec_prefix}/bin'
840 sbindir
='${exec_prefix}/sbin'
841 libexecdir
='${exec_prefix}/libexec'
842 datarootdir
='${prefix}/share'
843 datadir
='${datarootdir}'
844 sysconfdir
='${prefix}/etc'
845 sharedstatedir
='${prefix}/com'
846 localstatedir
='${prefix}/var'
847 runstatedir
='${localstatedir}/run'
848 includedir
='${prefix}/include'
849 oldincludedir
='/usr/include'
850 docdir
='${datarootdir}/doc/${PACKAGE}'
851 infodir
='${datarootdir}/info'
856 libdir
='${exec_prefix}/lib'
857 localedir
='${datarootdir}/locale'
858 mandir
='${datarootdir}/man'
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\
$ac_option
872 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 # Accept the important Cygnus configure options, so we can diagnose typos.
879 case $ac_dashdash$ac_option in
883 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
885 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
888 -build |
--build |
--buil |
--bui |
--bu)
889 ac_prev
=build_alias
;;
890 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
891 build_alias
=$ac_optarg ;;
893 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
894 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
895 ac_prev
=cache_file
;;
896 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
897 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
898 cache_file
=$ac_optarg ;;
901 cache_file
=config.cache
;;
903 -datadir |
--datadir |
--datadi |
--datad)
905 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
906 datadir
=$ac_optarg ;;
908 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
909 |
--dataroo |
--dataro |
--datar)
910 ac_prev
=datarootdir
;;
911 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
912 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
913 datarootdir
=$ac_optarg ;;
915 -disable-* |
--disable-*)
916 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
919 as_fn_error $?
"invalid feature name: $ac_useropt"
920 ac_useropt_orig
=$ac_useropt
921 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep
=', ';;
929 eval enable_
$ac_useropt=no
;;
931 -docdir |
--docdir |
--docdi |
--doc |
--do)
933 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
936 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
938 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
941 -enable-* |
--enable-*)
942 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
945 as_fn_error $?
"invalid feature name: $ac_useropt"
946 ac_useropt_orig
=$ac_useropt
947 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep
=', ';;
955 eval enable_
$ac_useropt=\
$ac_optarg ;;
957 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
958 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
959 |
--exec |
--exe |
--ex)
960 ac_prev
=exec_prefix
;;
961 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
962 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
963 |
--exec=* |
--exe=* |
--ex=*)
964 exec_prefix
=$ac_optarg ;;
966 -gas |
--gas |
--ga |
--g)
967 # Obsolete; use --with-gas.
970 -help |
--help |
--hel |
--he |
-h)
972 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
973 ac_init_help
=recursive
;;
974 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
975 ac_init_help
=short
;;
977 -host |
--host |
--hos |
--ho)
978 ac_prev
=host_alias
;;
979 -host=* |
--host=* |
--hos=* |
--ho=*)
980 host_alias
=$ac_optarg ;;
982 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
984 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
986 htmldir
=$ac_optarg ;;
988 -includedir |
--includedir |
--includedi |
--included |
--include \
989 |
--includ |
--inclu |
--incl |
--inc)
990 ac_prev
=includedir
;;
991 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
992 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
993 includedir
=$ac_optarg ;;
995 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
997 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
998 infodir
=$ac_optarg ;;
1000 -libdir |
--libdir |
--libdi |
--libd)
1002 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1003 libdir
=$ac_optarg ;;
1005 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1006 |
--libexe |
--libex |
--libe)
1007 ac_prev
=libexecdir
;;
1008 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1009 |
--libexe=* |
--libex=* |
--libe=*)
1010 libexecdir
=$ac_optarg ;;
1012 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1013 ac_prev
=localedir
;;
1014 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1015 localedir
=$ac_optarg ;;
1017 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1018 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1019 ac_prev
=localstatedir
;;
1020 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1021 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1022 localstatedir
=$ac_optarg ;;
1024 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1026 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1027 mandir
=$ac_optarg ;;
1029 -nfp |
--nfp |
--nf)
1030 # Obsolete; use --without-fp.
1033 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1034 |
--no-cr |
--no-c |
-n)
1037 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1038 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1041 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1042 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1043 |
--oldin |
--oldi |
--old |
--ol |
--o)
1044 ac_prev
=oldincludedir
;;
1045 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1046 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1047 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1048 oldincludedir
=$ac_optarg ;;
1050 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1052 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1053 prefix
=$ac_optarg ;;
1055 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1056 |
--program-pre |
--program-pr |
--program-p)
1057 ac_prev
=program_prefix
;;
1058 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1059 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1060 program_prefix
=$ac_optarg ;;
1062 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1063 |
--program-suf |
--program-su |
--program-s)
1064 ac_prev
=program_suffix
;;
1065 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1066 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1067 program_suffix
=$ac_optarg ;;
1069 -program-transform-name |
--program-transform-name \
1070 |
--program-transform-nam |
--program-transform-na \
1071 |
--program-transform-n |
--program-transform- \
1072 |
--program-transform |
--program-transfor \
1073 |
--program-transfo |
--program-transf \
1074 |
--program-trans |
--program-tran \
1075 |
--progr-tra |
--program-tr |
--program-t)
1076 ac_prev
=program_transform_name
;;
1077 -program-transform-name=* |
--program-transform-name=* \
1078 |
--program-transform-nam=* |
--program-transform-na=* \
1079 |
--program-transform-n=* |
--program-transform-=* \
1080 |
--program-transform=* |
--program-transfor=* \
1081 |
--program-transfo=* |
--program-transf=* \
1082 |
--program-trans=* |
--program-tran=* \
1083 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1084 program_transform_name
=$ac_optarg ;;
1086 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1088 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1089 pdfdir
=$ac_optarg ;;
1091 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1093 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1096 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1097 |
-silent |
--silent |
--silen |
--sile |
--sil)
1100 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1101 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1102 |
--run |
--ru |
--r)
1103 ac_prev
=runstatedir
;;
1104 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1105 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1106 |
--run=* |
--ru=* |
--r=*)
1107 runstatedir
=$ac_optarg ;;
1109 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1111 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1113 sbindir
=$ac_optarg ;;
1115 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1116 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1117 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1119 ac_prev
=sharedstatedir
;;
1120 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1121 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1122 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1124 sharedstatedir
=$ac_optarg ;;
1126 -site |
--site |
--sit)
1128 -site=* |
--site=* |
--sit=*)
1131 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1133 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1134 srcdir
=$ac_optarg ;;
1136 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1137 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1138 ac_prev
=sysconfdir
;;
1139 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1140 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1141 sysconfdir
=$ac_optarg ;;
1143 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1144 ac_prev
=target_alias
;;
1145 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1146 target_alias
=$ac_optarg ;;
1148 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1151 -version |
--version |
--versio |
--versi |
--vers |
-V)
1152 ac_init_version
=: ;;
1155 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1158 as_fn_error $?
"invalid package name: $ac_useropt"
1159 ac_useropt_orig
=$ac_useropt
1160 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep
=', ';;
1168 eval with_
$ac_useropt=\
$ac_optarg ;;
1170 -without-* |
--without-*)
1171 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1174 as_fn_error $?
"invalid package name: $ac_useropt"
1175 ac_useropt_orig
=$ac_useropt
1176 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1181 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep
=', ';;
1184 eval with_
$ac_useropt=no
;;
1187 # Obsolete; use --with-x.
1190 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1191 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1192 ac_prev
=x_includes
;;
1193 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1194 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1195 x_includes
=$ac_optarg ;;
1197 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1198 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1199 ac_prev
=x_libraries
;;
1200 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1201 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1202 x_libraries
=$ac_optarg ;;
1204 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1209 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1213 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1215 eval $ac_envvar=\
$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229 if test -n "$ac_prev"; then
1230 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $?
"missing argument to $ac_option"
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1237 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 # Check all directory arguments for consistency.
1243 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir runstatedir
1248 eval ac_val
=\$
$ac_var
1249 # Remove trailing slashes.
1252 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\
$ac_val;;
1255 # Be sure to have absolute directory names.
1257 [\\/$
]* | ?
:[\\/]* ) continue;;
1258 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1260 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1268 target
=$target_alias
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x
; then
1272 if test "x$build_alias" = x
; then
1273 cross_compiling
=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1280 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1282 test "$silent" = yes && exec 6>/dev
/null
1285 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di
=`ls -di .` &&
1287 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $?
"working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $?
"pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted
=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir
=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1325 ac_srcdir_defaulted
=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1329 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1343 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 for ac_var
in $ac_precious_vars; do
1346 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1348 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1359 \`configure' configures this package to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1423 --x-includes=DIR X include files are
in DIR
1424 --x-libraries=DIR X library files are
in DIR
1427 --build=BUILD configure
for building on BUILD
[guessed
]
1428 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1429 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1433 if test -n "$ac_init_help"; then
1438 --disable-option-checking ignore unrecognized
--enable/--with options
1439 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1440 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1441 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1442 --disable-silent-rules verbose build output
(undo
: "make V=0")
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-optimize enable compile-time optimizer flag
-O2
1448 --enable-asg enable support
for Automatic Schematic Generation
1449 --disable-lgf disable support
for reading Caltech tools
1450 analog simulator .lgf files
1451 --disable-focus-fix disable focus fix
for some window managers
1452 --enable-memdebug enable memory debugging
1455 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1456 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1457 --with-x use the X Window System
1458 --with-xpm=DIR use Xpm include
/library files
in DIR
1459 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1460 --with-cairo Use cairo graphics library
[default
=yes]
1461 --with-distdir=DIR
install into location DIR
for distribution
1462 --with-tcl=DIR Find tclConfig.sh
in DIR
1463 --with-tk=DIR Find tkConfig.sh
in DIR
1464 --with-tclincls=DIR Find tcl.h
in DIR
1465 --with-tkincls=DIR Find tk.h
in DIR
1466 --with-tcllibs=DIR Find Tcl library
in DIR
1467 --with-tklibs=DIR Find Tk library
in DIR
1468 --with-gs=DIR path to ghostscript
1469 --with-ngspice=DIR path to ngspice
1470 --with-python=DIR path to python interpreter
1472 Some influential environment variables
:
1473 CC C compiler
command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1476 nonstandard directory
<lib dir
>
1477 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1478 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1479 you have headers
in a nonstandard directory
<include dir
>
1481 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1482 PKG_CONFIG path to pkg-config utility
1484 directories to add to pkg-config
's search path
1486 path overriding pkg-config's built-in search path
1488 C compiler flags
for cairo
, overriding pkg-config
1489 cairo_LIBS linker flags
for cairo
, overriding pkg-config
1491 C compiler flags
for fontconfig
, overriding pkg-config
1493 linker flags
for fontconfig
, overriding pkg-config
1495 Use these variables to override the choices made by
`configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1498 Report bugs to the package provider.
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1528 .) # We are building in place.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1562 generated by GNU Autoconf 2.69
1564 Copyright (C) 2012 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1585 *) ac_try_echo
=$ac_try;;
1587 eval ac_try_echo
="\"\$as_me:${as_lineno-1587}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1591 if test -s conftest.err
; then
1592 grep -v '^ *+' conftest.err
>conftest.er1
1593 cat conftest.er1
>&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-1596}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.
$ac_objext; then :
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.
$ac_ext >&5
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status
$ac_retval
1611 } # ac_fn_c_try_compile
1613 # ac_fn_c_try_link LINENO
1614 # -----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded.
1618 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1619 rm -f conftest.
$ac_objext conftest
$ac_exeext
1620 if { { ac_try
="$ac_link"
1622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-1625}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>conftest.err
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-1634}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest$ac_exeext && {
1639 test "$cross_compiling" = yes ||
1640 test -x conftest$ac_exeext
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 # interfere with the next link command; also delete a directory that is
1652 # left behind by Apple's compiler. We do this before executing the actions.
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_link
1659 # ac_fn_c_try_run LINENO
1660 # ----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662 # that executables *can* be run.
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 if { { ac_try="$ac_link"
1668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1669 *) ac_try_echo
=$ac_try;;
1671 eval ac_try_echo
="\"\$as_me:${as_lineno-1671}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>&5
1675 $as_echo "$as_me:${as_lineno-1675}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1677 { { case "(($ac_try" in
1678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1681 eval ac_try_echo="\"\$as_me:${as_lineno-1681}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_try") 2>&5
1685 $as_echo "$as_me:${as_lineno-1685}: \$? = $ac_status" >&5
1686 test $ac_status = 0; }; }; then :
1689 $as_echo "$as_me: program exited with status $ac_status" >&5
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=$ac_status
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1701 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1702 # --------------------------------------------
1703 # Tries to find the compile-time value of EXPR in a program that includes
1704 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1706 ac_fn_c_compute_int ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if test "$cross_compiling" = yes; then
1710 # Depending upon the size, compute the lo and hi bounds.
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1717 static int test_array [1 - 2 * !(($2) >= 0)];
1719 return test_array [0];
1725 if ac_fn_c_try_compile "1725"; then :
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1734 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1736 return test_array [0];
1742 if ac_fn_c_try_compile "1742"; then :
1743 ac_hi=$ac_mid; break
1745 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1746 if test $ac_lo -le $ac_mid; then
1750 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1761 static int test_array [1 - 2 * !(($2) < 0)];
1763 return test_array [0];
1769 if ac_fn_c_try_compile "1769"; then :
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1778 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1780 return test_array [0];
1786 if ac_fn_c_try_compile "1786"; then :
1787 ac_lo=$ac_mid; break
1789 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1790 if test $ac_mid -le $ac_hi; then
1794 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1804 # Binary search between lo and hi bounds.
1805 while test "x$ac_lo" != "x$ac_hi"; do
1806 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1813 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1815 return test_array [0];
1821 if ac_fn_c_try_compile "1821"; then :
1824 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1836 static long int longval () { return $2; }
1837 static unsigned long int ulongval () { return $2; }
1844 FILE *f = fopen ("conftest.val", "w");
1849 long int i = longval ();
1852 fprintf (f, "%ld", i);
1856 unsigned long int i = ulongval ();
1859 fprintf (f, "%lu", i);
1861 /* Do not output a trailing newline, as this causes \r\n confusion
1862 on some platforms. */
1863 return ferror (f) || fclose (f) != 0;
1869 if ac_fn_c_try_run "1869"; then :
1870 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1875 conftest.$ac_objext conftest.beam conftest.$ac_ext
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_c_compute_int
1884 # ac_fn_c_try_cpp LINENO
1885 # ----------------------
1886 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_cpp conftest.$ac_ext"
1892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1893 *) ac_try_echo
=$ac_try;;
1895 eval ac_try_echo
="\"\$as_me:${as_lineno-1895}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1899 if test -s conftest.err
; then
1900 grep -v '^ *+' conftest.err
>conftest.er1
1901 cat conftest.er1
>&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-1904}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } > conftest.i
&& {
1906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.
$ac_ext >&5
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status
$ac_retval
1921 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists and can be compiled using the include files in
1924 # INCLUDES, setting the cache variable VAR accordingly.
1925 ac_fn_c_check_header_compile
()
1927 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-1928}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \
${$3+:} false
; then :
1931 $as_echo_n "(cached) " >&6
1933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1938 if ac_fn_c_try_compile
"1938"; then :
1943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1946 { $as_echo "$as_me:${as_lineno-1946}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 } # ac_fn_c_check_header_compile
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func
()
1957 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-1958}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \
${$3+:} false
; then :
1961 $as_echo_n "(cached) " >&6
1963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1967 #define $2 innocuous_$2
1969 /* System header to define __stub macros and hopefully few prototypes,
1970 which can conflict with char $2 (); below.
1971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972 <limits.h> exists even on freestanding compilers. */
1975 # include <limits.h>
1977 # include <assert.h>
1982 /* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1989 /* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992 #if defined __stub_$2 || defined __stub___$2
2004 if ac_fn_c_try_link
"2004"; then :
2009 rm -f core conftest.err conftest.
$ac_objext \
2010 conftest
$ac_exeext conftest.
$ac_ext
2013 { $as_echo "$as_me:${as_lineno-2013}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_check_func
2019 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2020 # -------------------------------------------------------
2021 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2022 # the include files in INCLUDES and setting the cache variable VAR
2024 ac_fn_c_check_header_mongrel
()
2026 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2027 if eval \
${$3+:} false
; then :
2028 { $as_echo "$as_me:${as_lineno-2028}: checking for $2" >&5
2029 $as_echo_n "checking for $2... " >&6; }
2030 if eval \
${$3+:} false
; then :
2031 $as_echo_n "(cached) " >&6
2034 { $as_echo "$as_me:${as_lineno-2034}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2037 # Is the header compilable?
2038 { $as_echo "$as_me:${as_lineno-2038}: checking $2 usability" >&5
2039 $as_echo_n "checking $2 usability... " >&6; }
2040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2045 if ac_fn_c_try_compile
"2045"; then :
2046 ac_header_compiler
=yes
2048 ac_header_compiler
=no
2050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2051 { $as_echo "$as_me:${as_lineno-2051}: result: $ac_header_compiler" >&5
2052 $as_echo "$ac_header_compiler" >&6; }
2054 # Is the header present?
2055 { $as_echo "$as_me:${as_lineno-2055}: checking $2 presence" >&5
2056 $as_echo_n "checking $2 presence... " >&6; }
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2061 if ac_fn_c_try_cpp
"2061"; then :
2062 ac_header_preproc
=yes
2064 ac_header_preproc
=no
2066 rm -f conftest.err conftest.i conftest.
$ac_ext
2067 { $as_echo "$as_me:${as_lineno-2067}: result: $ac_header_preproc" >&5
2068 $as_echo "$ac_header_preproc" >&6; }
2070 # So? What about this header?
2071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2073 { $as_echo "$as_me:${as_lineno-2073}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2074 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2075 { $as_echo "$as_me:${as_lineno-2075}: WARNING: $2: proceeding with the compiler's result" >&5
2076 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2079 { $as_echo "$as_me:${as_lineno-2079}: WARNING: $2: present but cannot be compiled" >&5
2080 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2081 { $as_echo "$as_me:${as_lineno-2081}: WARNING: $2: check for missing prerequisite headers?" >&5
2082 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2083 { $as_echo "$as_me:${as_lineno-2083}: WARNING: $2: see the Autoconf documentation" >&5
2084 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2085 { $as_echo "$as_me:${as_lineno-2085}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2086 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2087 { $as_echo "$as_me:${as_lineno-2087}: WARNING: $2: proceeding with the compiler's result" >&5
2088 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 { $as_echo "$as_me:${as_lineno-2091}: checking for $2" >&5
2092 $as_echo_n "checking for $2... " >&6; }
2093 if eval \
${$3+:} false
; then :
2094 $as_echo_n "(cached) " >&6
2096 eval "$3=\$ac_header_compiler"
2099 { $as_echo "$as_me:${as_lineno-2099}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_header_mongrel
2105 cat >config.log
<<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2109 It was created by $as_me, which was
2110 generated by GNU Autoconf 2.69. Invocation command line was
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2131 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2135 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir
=.
2146 $as_echo "PATH: $as_dir"
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_must_keep_next
=false
2176 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2177 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2178 |
-silent |
--silent |
--silen |
--sile |
--sil)
2181 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2186 as_fn_append ac_configure_args1
" '$ac_arg'"
2187 if test $ac_must_keep_next = true
; then
2188 ac_must_keep_next
=false
# Got value, back to normal.
2191 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2192 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2193 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2194 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199 -* ) ac_must_keep_next
=true
;;
2202 as_fn_append ac_configure_args
" '$ac_arg'"
2207 { ac_configure_args0
=; unset ac_configure_args0
;}
2208 { ac_configure_args1
=; unset ac_configure_args1
;}
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log. We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
2220 $as_echo "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2224 # The following way of writing the cache mishandles newlines in values,
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2231 *_cv_*) { $as_echo "$as_me:${as_lineno-2231}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256 $as_echo "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2260 for ac_var in $ac_subst_vars
2262 eval ac_val=\$$ac_var
2264 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 $as_echo "$ac_var='\''$ac_val'\''"
2270 if test -n "$ac_subst_files"; then
2271 $as_echo "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2275 for ac_var
in $ac_subst_files
2277 eval ac_val
=\$
$ac_var
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281 $as_echo "$ac_var='\''$ac_val'\''"
2286 if test -s confdefs.h; then
2287 $as_echo "## ----------- ##
2294 test "$ac_signal" != 0 &&
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 for ac_signal
in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest
* confdefs.h
2310 $as_echo "/* confdefs.h */" > confdefs.h
2312 # Predefined preprocessor variables.
2314 cat >>confdefs.h
<<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2318 cat >>confdefs.h
<<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 cat >>confdefs.h
<<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2326 cat >>confdefs.h
<<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2330 cat >>confdefs.h
<<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 cat >>confdefs.h
<<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2343 if test -n "$CONFIG_SITE"; then
2344 # We do not want a PATH search for config.site.
2345 case $CONFIG_SITE in #((
2346 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2347 */*) ac_site_file1
=$CONFIG_SITE;;
2348 *) ac_site_file1
=.
/$CONFIG_SITE;;
2350 elif test "x$prefix" != xNONE
; then
2351 ac_site_file1
=$prefix/share
/config.site
2352 ac_site_file2
=$prefix/etc
/config.site
2354 ac_site_file1
=$ac_default_prefix/share
/config.site
2355 ac_site_file2
=$ac_default_prefix/etc
/config.site
2357 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2359 test "x$ac_site_file" = xNONE
&& continue
2360 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2361 { $as_echo "$as_me:${as_lineno-2361}: loading site script $ac_site_file" >&5
2362 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2363 sed 's/^/| /' "$ac_site_file" >&5
2365 ||
{ { $as_echo "$as_me:${as_lineno-2365}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 as_fn_error $?
"failed to load site script $ac_site_file
2368 See \`config.log' for more details" "2368" 5; }
2372 if test -r "$cache_file"; then
2373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2376 { $as_echo "$as_me:${as_lineno-2376}: loading cache $cache_file" >&5
2377 $as_echo "$as_me: loading cache $cache_file" >&6;}
2379 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2380 *) .
"./$cache_file";;
2384 { $as_echo "$as_me:${as_lineno-2384}: creating cache $cache_file" >&5
2385 $as_echo "$as_me: creating cache $cache_file" >&6;}
2389 # Check that the precious variables saved in the cache have kept the same
2391 ac_cache_corrupted
=false
2392 for ac_var
in $ac_precious_vars; do
2393 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2394 eval ac_new_set
=\
$ac_env_${ac_var}_set
2395 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2396 eval ac_new_val
=\
$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2399 { $as_echo "$as_me:${as_lineno-2399}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted
=: ;;
2403 { $as_echo "$as_me:${as_lineno-2403}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted
=: ;;
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w
=`echo x $ac_old_val`
2411 ac_new_val_w
=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-2413}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted
=:
2417 { $as_echo "$as_me:${as_lineno-2417}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\
$ac_old_val
2421 { $as_echo "$as_me:${as_lineno-2421}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-2423}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2430 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg
=$ac_var=$ac_new_val ;;
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-2440}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-2442}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "2444" 5
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2451 ac_cpp
='$CPP $CPPFLAGS'
2452 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2461 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2462 if test -f "$ac_dir/install-sh"; then
2464 ac_install_sh
="$ac_aux_dir/install-sh -c"
2466 elif test -f "$ac_dir/install.sh"; then
2468 ac_install_sh
="$ac_aux_dir/install.sh -c"
2470 elif test -f "$ac_dir/shtool"; then
2472 ac_install_sh
="$ac_aux_dir/shtool install -c"
2476 if test -z "$ac_aux_dir"; then
2477 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "2477" 5
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2489 # Make sure we can run config.sub.
2490 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2491 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "2491" 5
2493 { $as_echo "$as_me:${as_lineno-2493}: checking build system type" >&5
2494 $as_echo_n "checking build system type... " >&6; }
2495 if ${ac_cv_build+:} false
; then :
2496 $as_echo_n "(cached) " >&6
2498 ac_build_alias
=$build_alias
2499 test "x$ac_build_alias" = x
&&
2500 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2501 test "x$ac_build_alias" = x
&&
2502 as_fn_error $?
"cannot guess build type; you must specify one" "2502" 5
2503 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2504 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "2504" 5
2507 { $as_echo "$as_me:${as_lineno-2507}: result: $ac_cv_build" >&5
2508 $as_echo "$ac_cv_build" >&6; }
2509 case $ac_cv_build in
2511 *) as_fn_error $?
"invalid value of canonical build" "2511" 5;;
2514 ac_save_IFS
=$IFS; IFS
='-'
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2524 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2527 { $as_echo "$as_me:${as_lineno-2527}: checking host system type" >&5
2528 $as_echo_n "checking host system type... " >&6; }
2529 if ${ac_cv_host+:} false
; then :
2530 $as_echo_n "(cached) " >&6
2532 if test "x$host_alias" = x
; then
2533 ac_cv_host
=$ac_cv_build
2535 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2536 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "2536" 5
2540 { $as_echo "$as_me:${as_lineno-2540}: result: $ac_cv_host" >&5
2541 $as_echo "$ac_cv_host" >&6; }
2544 *) as_fn_error $?
"invalid value of canonical host" "2544" 5;;
2547 ac_save_IFS
=$IFS; IFS
='-'
2553 # Remember, the first character of IFS is used to create $*,
2554 # except with old shells:
2557 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2560 { $as_echo "$as_me:${as_lineno-2560}: checking target system type" >&5
2561 $as_echo_n "checking target system type... " >&6; }
2562 if ${ac_cv_target+:} false
; then :
2563 $as_echo_n "(cached) " >&6
2565 if test "x$target_alias" = x
; then
2566 ac_cv_target
=$ac_cv_host
2568 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2569 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "2569" 5
2573 { $as_echo "$as_me:${as_lineno-2573}: result: $ac_cv_target" >&5
2574 $as_echo "$ac_cv_target" >&6; }
2575 case $ac_cv_target in
2577 *) as_fn_error $?
"invalid value of canonical target" "2577" 5;;
2579 target
=$ac_cv_target
2580 ac_save_IFS
=$IFS; IFS
='-'
2586 # Remember, the first character of IFS is used to create $*,
2587 # except with old shells:
2590 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2593 # The aliases save the names the user supplied, while $host etc.
2594 # will get canonicalized.
2595 test -n "$target_alias" &&
2596 test "$program_prefix$program_suffix$program_transform_name" = \
2598 program_prefix
=${target_alias}-
2603 VERSION
=`cat ./VERSION | cut -d. -f1-2`
2604 am__api_version
='1.16'
2606 # Find a good install program. We prefer a C program (faster),
2607 # so one script is as good as another. But avoid the broken or
2608 # incompatible versions:
2609 # SysV /etc/install, /usr/sbin/install
2610 # SunOS /usr/etc/install
2611 # IRIX /sbin/install
2613 # AmigaOS /C/install, which installs bootblocks on floppy discs
2614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2617 # OS/2's system install, which has a completely different semantic
2618 # ./install, which can be erroneously created by make from ./install.sh.
2619 # Reject install programs that cannot install multiple files.
2620 { $as_echo "$as_me:${as_lineno-2620}: checking for a BSD-compatible install" >&5
2621 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2622 if test -z "$INSTALL"; then
2623 if ${ac_cv_path_install+:} false
; then :
2624 $as_echo_n "(cached) " >&6
2626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir
=.
2631 # Account for people who put trailing slashes in PATH elements.
2632 case $as_dir/ in #((
2633 .
/ | .
// |
/[cC
]/* | \
2634 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2635 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2638 # OSF1 and SCO ODT 3.0 have their own names for install.
2639 # Don't use installbsd from OSF since it installs stuff as root
2641 for ac_prog
in ginstall scoinst
install; do
2642 for ac_exec_ext
in '' $ac_executable_extensions; do
2643 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2644 if test $ac_prog = install &&
2645 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2646 # AIX install. It has an incompatible calling convention.
2648 elif test $ac_prog = install &&
2649 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2650 # program-specific install script used by HP pwplus--don't use.
2653 rm -rf conftest.one conftest.two conftest.dir
2654 echo one
> conftest.one
2655 echo two
> conftest.two
2657 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2658 test -s conftest.one
&& test -s conftest.two
&&
2659 test -s conftest.dir
/conftest.one
&&
2660 test -s conftest.dir
/conftest.two
2662 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2675 rm -rf conftest.one conftest.two conftest.dir
2678 if test "${ac_cv_path_install+set}" = set; then
2679 INSTALL
=$ac_cv_path_install
2681 # As a last resort, use the slow shell script. Don't cache a
2682 # value for INSTALL within a source directory, because that will
2683 # break other packages using the cache if that directory is
2684 # removed, or if the value is a relative name.
2685 INSTALL
=$ac_install_sh
2688 { $as_echo "$as_me:${as_lineno-2688}: result: $INSTALL" >&5
2689 $as_echo "$INSTALL" >&6; }
2691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2692 # It thinks the first close brace ends the variable substitution.
2693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2697 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2699 { $as_echo "$as_me:${as_lineno-2699}: checking whether build environment is sane" >&5
2700 $as_echo_n "checking whether build environment is sane... " >&6; }
2701 # Reject unsafe characters in $srcdir or the absolute working directory
2702 # name. Accept space and tab only in the latter.
2706 *[\\\"\
#\$\&\'\`$am_lf]*)
2707 as_fn_error $?
"unsafe absolute working directory name" "2707" 5;;
2710 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2711 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "2711" 5;;
2714 # Do 'set' in a subshell so we don't clobber the current shell's
2715 # arguments. Must try -L first in case configure is actually a
2716 # symlink; some systems play weird games with the mod time of symlinks
2717 # (eg FreeBSD returns the mod time of the symlink's containing
2721 for am_try
in 1 2; do
2722 echo "timestamp, slept: $am_has_slept" > conftest.
file
2723 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2724 if test "$*" = "X"; then
2726 set X
`ls -t "$srcdir/configure" conftest.file`
2728 if test "$*" != "X $srcdir/configure conftest.file" \
2729 && test "$*" != "X conftest.file $srcdir/configure"; then
2731 # If neither matched, then we have a broken ls. This can happen
2732 # if, for instance, CONFIG_SHELL is bash and it inherits a
2733 # broken ls alias from the environment. This has actually
2734 # happened. Such a system could not be considered "sane".
2735 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2736 alias in your environment" "2736" 5
2738 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2745 test "$2" = conftest.
file
2751 as_fn_error $?
"newly created file is older than distributed files!
2752 Check your system clock" "2752" 5
2754 { $as_echo "$as_me:${as_lineno-2754}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 # If we didn't sleep, we still need to ensure time stamps of config.status and
2757 # generated files are strictly newer.
2759 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2766 test "$program_prefix" != NONE
&&
2767 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2768 # Use a double $ so make ignores it.
2769 test "$program_suffix" != NONE
&&
2770 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2771 # Double any \ or $.
2772 # By default was `s,x,x', remove it if useless.
2773 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2774 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2776 # Expand $ac_aux_dir to an absolute path.
2777 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2779 if test x
"${MISSING+set}" != xset
; then
2782 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2784 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2787 # Use eval to expand $SHELL
2788 if eval "$MISSING --is-lightweight"; then
2789 am_missing_run
="$MISSING "
2792 { $as_echo "$as_me:${as_lineno-2792}: WARNING: 'missing' script is too old or missing" >&5
2793 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2796 if test x
"${install_sh+set}" != xset
; then
2799 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2801 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2805 # Installed binaries are usually stripped using 'strip' when the user
2806 # run "make install-strip". However 'strip' might not be the right
2807 # tool to use in cross-compilation environments, therefore Automake
2808 # will honor the 'STRIP' environment variable to overrule this program.
2809 if test "$cross_compiling" != no
; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2812 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2813 { $as_echo "$as_me:${as_lineno-2813}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_STRIP+:} false
; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$STRIP"; then
2819 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir
=.
2826 for ac_exec_ext
in '' $ac_executable_extensions; do
2827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2829 $as_echo "$as_me:${as_lineno-2829}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 STRIP
=$ac_cv_prog_STRIP
2839 if test -n "$STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-2840}: result: $STRIP" >&5
2841 $as_echo "$STRIP" >&6; }
2843 { $as_echo "$as_me:${as_lineno-2843}: result: no" >&5
2844 $as_echo "no" >&6; }
2849 if test -z "$ac_cv_prog_STRIP"; then
2851 # Extract the first word of "strip", so it can be a program name with args.
2852 set dummy strip
; ac_word
=$2
2853 { $as_echo "$as_me:${as_lineno-2853}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$ac_ct_STRIP"; then
2859 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir
=.
2866 for ac_exec_ext
in '' $ac_executable_extensions; do
2867 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_ac_ct_STRIP
="strip"
2869 $as_echo "$as_me:${as_lineno-2869}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2879 if test -n "$ac_ct_STRIP"; then
2880 { $as_echo "$as_me:${as_lineno-2880}: result: $ac_ct_STRIP" >&5
2881 $as_echo "$ac_ct_STRIP" >&6; }
2883 { $as_echo "$as_me:${as_lineno-2883}: result: no" >&5
2884 $as_echo "no" >&6; }
2887 if test "x$ac_ct_STRIP" = x
; then
2890 case $cross_compiling:$ac_tool_warned in
2892 { $as_echo "$as_me:${as_lineno-2892}: WARNING: using cross tools not prefixed with host triplet" >&5
2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894 ac_tool_warned
=yes ;;
2899 STRIP
="$ac_cv_prog_STRIP"
2903 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2905 { $as_echo "$as_me:${as_lineno-2905}: checking for a thread-safe mkdir -p" >&5
2906 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2907 if test -z "$MKDIR_P"; then
2908 if ${ac_cv_path_mkdir+:} false
; then :
2909 $as_echo_n "(cached) " >&6
2911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2912 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2915 test -z "$as_dir" && as_dir
=.
2916 for ac_prog
in mkdir gmkdir
; do
2917 for ac_exec_ext
in '' $ac_executable_extensions; do
2918 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2919 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2920 'mkdir (GNU coreutils) '* | \
2921 'mkdir (coreutils) '* | \
2922 'mkdir (fileutils) '4.1*)
2923 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2933 test -d .
/--version && rmdir .
/--version
2934 if test "${ac_cv_path_mkdir+set}" = set; then
2935 MKDIR_P
="$ac_cv_path_mkdir -p"
2937 # As a last resort, use the slow shell script. Don't cache a
2938 # value for MKDIR_P within a source directory, because that will
2939 # break other packages using the cache if that directory is
2940 # removed, or if the value is a relative name.
2941 MKDIR_P
="$ac_install_sh -d"
2944 { $as_echo "$as_me:${as_lineno-2944}: result: $MKDIR_P" >&5
2945 $as_echo "$MKDIR_P" >&6; }
2947 for ac_prog
in gawk mawk nawk
awk
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy
$ac_prog; ac_word
=$2
2951 { $as_echo "$as_me:${as_lineno-2951}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_AWK+:} false
; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$AWK"; then
2957 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_AWK
="$ac_prog"
2967 $as_echo "$as_me:${as_lineno-2967}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$AWK"; then
2978 { $as_echo "$as_me:${as_lineno-2978}: result: $AWK" >&5
2979 $as_echo "$AWK" >&6; }
2981 { $as_echo "$as_me:${as_lineno-2981}: result: no" >&5
2982 $as_echo "no" >&6; }
2986 test -n "$AWK" && break
2989 { $as_echo "$as_me:${as_lineno-2989}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2990 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2992 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2993 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2994 $as_echo_n "(cached) " >&6
2996 cat >conftest.
make <<\_ACEOF
2999 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3001 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3002 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3004 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3006 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3010 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3011 { $as_echo "$as_me:${as_lineno-3011}: result: yes" >&5
3012 $as_echo "yes" >&6; }
3015 { $as_echo "$as_me:${as_lineno-3015}: result: no" >&5
3016 $as_echo "no" >&6; }
3017 SET_MAKE
="MAKE=${MAKE-make}"
3020 rm -rf .tst
2>/dev
/null
3021 mkdir .tst
2>/dev
/null
3022 if test -d .tst
; then
3027 rmdir .tst
2>/dev
/null
3029 # Check whether --enable-silent-rules was given.
3030 if test "${enable_silent_rules+set}" = set; then :
3031 enableval
=$enable_silent_rules;
3034 case $enable_silent_rules in # (((
3035 yes) AM_DEFAULT_VERBOSITY
=0;;
3036 no
) AM_DEFAULT_VERBOSITY
=1;;
3037 *) AM_DEFAULT_VERBOSITY
=1;;
3039 am_make
=${MAKE-make}
3040 { $as_echo "$as_me:${as_lineno-3040}: checking whether $am_make supports nested variables" >&5
3041 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3042 if ${am_cv_make_support_nested_variables+:} false
; then :
3043 $as_echo_n "(cached) " >&6
3045 if $as_echo 'TRUE=$(BAR$(V))
3051 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3052 am_cv_make_support_nested_variables
=yes
3054 am_cv_make_support_nested_variables
=no
3057 { $as_echo "$as_me:${as_lineno-3057}: result: $am_cv_make_support_nested_variables" >&5
3058 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3059 if test $am_cv_make_support_nested_variables = yes; then
3061 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3063 AM_V
=$AM_DEFAULT_VERBOSITY
3064 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3068 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3069 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3070 # is not polluted with repeated "-I."
3071 am__isrc
=' -I$(srcdir)'
3072 # test to see if srcdir already configured
3073 if test -f $srcdir/config.status
; then
3074 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "3074" 5
3078 # test whether we have cygpath
3079 if test -z "$CYGPATH_W"; then
3080 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3081 CYGPATH_W
='cygpath -w'
3088 # Define the identity of the package.
3094 cat >>confdefs.h
<<_ACEOF
3095 #define PACKAGE "$PACKAGE"
3099 cat >>confdefs.h
<<_ACEOF
3100 #define VERSION "$VERSION"
3103 # Some tools Automake needs.
3105 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3108 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3111 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3114 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3117 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3119 # For better backward compatibility. To be removed once Automake 1.9.x
3120 # dies out for good. For more background, see:
3121 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3122 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3123 mkdir_p
='$(MKDIR_P)'
3125 # We need awk for the "check" target (and possibly the TAP driver). The
3126 # system "awk" is bad on some platforms.
3127 # Always define AMTAR for backward compatibility. Yes, it's still used
3128 # in the wild :-( We should find a proper way to deprecate it ...
3132 # We'll loop over all known methods to create a tar archive until one works.
3133 _am_tools
='gnutar pax cpio none'
3135 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3142 # POSIX will say in a future version that running "rm -f" with no argument
3143 # is OK; and we want to be able to make that assumption in our Makefile
3144 # recipes. So use an aggressive probe to check that the usage we want is
3145 # actually supported "in the wild" to an acceptable degree.
3146 # See automake bug#10828.
3147 # To make any issue more visible, cause the running configure to be aborted
3148 # by default if the 'rm' program in use doesn't match our expectations; the
3149 # user can still override this though.
3150 if rm -f && rm -fr && rm -rf; then : OK
; else
3154 Your 'rm' program seems unable to run without file operands specified
3155 on the command line, even when the '-f' option is present. This is contrary
3156 to the behaviour of most rm programs out there, and not conforming with
3157 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3159 Please tell bug-automake@gnu.org about your system, including the value
3160 of your $PATH and any error possibly output before this message. This
3161 can help us improve future automake versions.
3164 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3165 echo 'Configuration will proceed anyway, since you have set the' >&2
3166 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3170 Aborting the configuration process, to ensure you take notice of the issue.
3172 You can download and install GNU coreutils to get an 'rm' implementation
3173 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3175 If you want to complete the configuration process using your problematic
3176 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3177 to "yes", and re-run configure.
3180 as_fn_error $?
"Your 'rm' program is bad, sorry." "3180" 5
3189 ALL_TARGET
="undefined-target"
3190 INSTALL_TARGET
="undefined-install-target"
3191 REVISION
=`cat ./VERSION | cut -d. -f3`
3192 INTERPRETER
=NOINTERP
3204 { $as_echo "$as_me:${as_lineno-3204}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3207 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3208 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3209 $as_echo_n "(cached) " >&6
3211 cat >conftest.
make <<\_ACEOF
3214 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3216 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3219 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3221 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3225 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3226 { $as_echo "$as_me:${as_lineno-3226}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3230 { $as_echo "$as_me:${as_lineno-3230}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 SET_MAKE
="MAKE=${MAKE-make}"
3237 ac_cpp
='$CPP $CPPFLAGS'
3238 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3244 { $as_echo "$as_me:${as_lineno-3244}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false
; then :
3247 $as_echo_n "(cached) " >&6
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC
="$CC" # Let the user override the test.
3252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir
=.
3257 for ac_exec_ext
in '' $ac_executable_extensions; do
3258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3259 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3260 $as_echo "$as_me:${as_lineno-3260}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-3271}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3274 { $as_echo "$as_me:${as_lineno-3274}: result: no" >&5
3275 $as_echo "no" >&6; }
3280 if test -z "$ac_cv_prog_CC"; then
3282 # Extract the first word of "gcc", so it can be a program name with args.
3283 set dummy gcc
; ac_word
=$2
3284 { $as_echo "$as_me:${as_lineno-3284}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3287 $as_echo_n "(cached) " >&6
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir
=.
3297 for ac_exec_ext
in '' $ac_executable_extensions; do
3298 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_ac_ct_CC
="gcc"
3300 $as_echo "$as_me:${as_lineno-3300}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { $as_echo "$as_me:${as_lineno-3311}: result: $ac_ct_CC" >&5
3312 $as_echo "$ac_ct_CC" >&6; }
3314 { $as_echo "$as_me:${as_lineno-3314}: result: no" >&5
3315 $as_echo "no" >&6; }
3318 if test "x$ac_ct_CC" = x
; then
3321 case $cross_compiling:$ac_tool_warned in
3323 { $as_echo "$as_me:${as_lineno-3323}: WARNING: using cross tools not prefixed with host triplet" >&5
3324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3325 ac_tool_warned
=yes ;;
3333 if test -z "$CC"; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3336 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3337 { $as_echo "$as_me:${as_lineno-3337}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_CC+:} false
; then :
3340 $as_echo_n "(cached) " >&6
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC
="$CC" # Let the user override the test.
3345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir
=.
3350 for ac_exec_ext
in '' $ac_executable_extensions; do
3351 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3353 $as_echo "$as_me:${as_lineno-3353}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 if test -n "$CC"; then
3364 { $as_echo "$as_me:${as_lineno-3364}: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3367 { $as_echo "$as_me:${as_lineno-3367}: result: no" >&5
3368 $as_echo "no" >&6; }
3374 if test -z "$CC"; then
3375 # Extract the first word of "cc", so it can be a program name with args.
3376 set dummy cc
; ac_word
=$2
3377 { $as_echo "$as_me:${as_lineno-3377}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false
; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC
="$CC" # Let the user override the test.
3386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir
=.
3391 for ac_exec_ext
in '' $ac_executable_extensions; do
3392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3394 ac_prog_rejected
=yes
3398 $as_echo "$as_me:${as_lineno-3398}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405 if test $ac_prog_rejected = yes; then
3406 # We found a bogon in the path, so make sure we never use it.
3407 set dummy
$ac_cv_prog_CC
3409 if test $# != 0; then
3410 # We chose a different compiler from the bogus one.
3411 # However, it has the same basename, so the bogon will be chosen
3412 # first if we set CC to just the basename; use the full file name.
3414 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-3421}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3424 { $as_echo "$as_me:${as_lineno-3424}: result: no" >&5
3425 $as_echo "no" >&6; }
3430 if test -z "$CC"; then
3431 if test -n "$ac_tool_prefix"; then
3432 for ac_prog
in cl.exe
3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3435 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3436 { $as_echo "$as_me:${as_lineno-3436}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false
; then :
3439 $as_echo_n "(cached) " >&6
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC
="$CC" # Let the user override the test.
3444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3448 test -z "$as_dir" && as_dir
=.
3449 for ac_exec_ext
in '' $ac_executable_extensions; do
3450 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3452 $as_echo "$as_me:${as_lineno-3452}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 if test -n "$CC"; then
3463 { $as_echo "$as_me:${as_lineno-3463}: result: $CC" >&5
3464 $as_echo "$CC" >&6; }
3466 { $as_echo "$as_me:${as_lineno-3466}: result: no" >&5
3467 $as_echo "no" >&6; }
3471 test -n "$CC" && break
3474 if test -z "$CC"; then
3476 for ac_prog
in cl.exe
3478 # Extract the first word of "$ac_prog", so it can be a program name with args.
3479 set dummy
$ac_prog; ac_word
=$2
3480 { $as_echo "$as_me:${as_lineno-3480}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3483 $as_echo_n "(cached) " >&6
3485 if test -n "$ac_ct_CC"; then
3486 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir
=.
3493 for ac_exec_ext
in '' $ac_executable_extensions; do
3494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_ac_ct_CC
="$ac_prog"
3496 $as_echo "$as_me:${as_lineno-3496}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3506 if test -n "$ac_ct_CC"; then
3507 { $as_echo "$as_me:${as_lineno-3507}: result: $ac_ct_CC" >&5
3508 $as_echo "$ac_ct_CC" >&6; }
3510 { $as_echo "$as_me:${as_lineno-3510}: result: no" >&5
3511 $as_echo "no" >&6; }
3515 test -n "$ac_ct_CC" && break
3518 if test "x$ac_ct_CC" = x
; then
3521 case $cross_compiling:$ac_tool_warned in
3523 { $as_echo "$as_me:${as_lineno-3523}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned
=yes ;;
3534 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-3534}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $?
"no acceptable C compiler found in \$PATH
3537 See \`config.log' for more details" "3537" 5; }
3539 # Provide some information about the compiler.
3540 $as_echo "$as_me:${as_lineno-3540}: checking for C compiler version" >&5
3543 for ac_option
in --version -v -V -qversion; do
3544 { { ac_try
="$ac_compiler $ac_option >&5"
3546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3547 *) ac_try_echo=$ac_try;;
3549 eval ac_try_echo="\"\$as_me:${as_lineno-3549}: $ac_try_echo\""
3550 $as_echo "$ac_try_echo"; } >&5
3551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3553 if test -s conftest.err; then
3555 ... rest of stderr output deleted ...
3556 10q' conftest.err >conftest.er1
3557 cat conftest.er1 >&5
3559 rm -f conftest.er1 conftest.err
3560 $as_echo "$as_me:${as_lineno-3560}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3575 ac_clean_files_save=$ac_clean_files
3576 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3577 # Try to create an executable without -o first, disregard a.out.
3578 # It will help us diagnose broken compilers, and finding out an intuition
3580 { $as_echo "$as_me:${as_lineno-3580}: checking whether the C compiler works" >&5
3581 $as_echo_n "checking whether the C compiler works... " >&6; }
3582 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3584 # The possible output files:
3585 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3588 for ac_file in $ac_files
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3592 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3597 if { { ac_try="$ac_link_default"
3599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3600 *) ac_try_echo
=$ac_try;;
3602 eval ac_try_echo
="\"\$as_me:${as_lineno-3602}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link_default") 2>&5
3606 $as_echo "$as_me:${as_lineno-3606}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3609 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3610 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3611 # so that the user can short-circuit this test for compilers unknown to
3613 for ac_file
in $ac_files ''
3615 test -f "$ac_file" ||
continue
3617 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3620 # We found the default executable, but exeext='' is most
3624 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3626 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3628 # We set ac_cv_exeext here because the later test for it is not
3629 # safe: cross compilers may not add the suffix if given an `-o'
3630 # argument, so we may need to know it at that point already.
3631 # Even if this section looks crufty: it has the advantage of
3638 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3643 if test -z "$ac_file"; then :
3644 { $as_echo "$as_me:${as_lineno-3644}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.
$ac_ext >&5
3649 { { $as_echo "$as_me:${as_lineno-3649}: error: in \`$ac_pwd':" >&5
3650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3651 as_fn_error
77 "C compiler cannot create executables
3652 See \`config.log' for more details" "3652" 5; }
3654 { $as_echo "$as_me:${as_lineno-3654}: result: yes" >&5
3655 $as_echo "yes" >&6; }
3657 { $as_echo "$as_me:${as_lineno-3657}: checking for C compiler default output file name" >&5
3658 $as_echo_n "checking for C compiler default output file name... " >&6; }
3659 { $as_echo "$as_me:${as_lineno-3659}: result: $ac_file" >&5
3660 $as_echo "$ac_file" >&6; }
3661 ac_exeext
=$ac_cv_exeext
3663 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3664 ac_clean_files
=$ac_clean_files_save
3665 { $as_echo "$as_me:${as_lineno-3665}: checking for suffix of executables" >&5
3666 $as_echo_n "checking for suffix of executables... " >&6; }
3667 if { { ac_try
="$ac_link"
3669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval ac_try_echo="\"\$as_me:${as_lineno-3672}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_link") 2>&5
3676 $as_echo "$as_me:${as_lineno-3676}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }; then :
3678 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3679 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3680 # work properly (i.e., refer to `conftest.exe'), while it won't with
3682 for ac_file
in conftest.exe conftest conftest.
*; do
3683 test -f "$ac_file" ||
continue
3685 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3686 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 { { $as_echo "$as_me:${as_lineno-3692}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3695 See \`config.log' for more details" "3695" 5; }
3697 rm -f conftest conftest
$ac_cv_exeext
3698 { $as_echo "$as_me:${as_lineno-3698}: result: $ac_cv_exeext" >&5
3699 $as_echo "$ac_cv_exeext" >&6; }
3701 rm -f conftest.
$ac_ext
3702 EXEEXT
=$ac_cv_exeext
3704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3710 FILE *f = fopen ("conftest.out", "w");
3711 return ferror (f) || fclose (f) != 0;
3717 ac_clean_files
="$ac_clean_files conftest.out"
3718 # Check that the compiler produces executables we can run. If not, either
3719 # the compiler is broken, or we cross compile.
3720 { $as_echo "$as_me:${as_lineno-3720}: checking whether we are cross compiling" >&5
3721 $as_echo_n "checking whether we are cross compiling... " >&6; }
3722 if test "$cross_compiling" != yes; then
3723 { { ac_try
="$ac_link"
3725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval ac_try_echo="\"\$as_me:${as_lineno-3728}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_link") 2>&5
3732 $as_echo "$as_me:${as_lineno-3732}: \$? = $ac_status" >&5
3733 test $ac_status = 0; }
3734 if { ac_try='./conftest$ac_cv_exeext'
3735 { { case "(($ac_try" in
3736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3737 *) ac_try_echo
=$ac_try;;
3739 eval ac_try_echo
="\"\$as_me:${as_lineno-3739}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_try") 2>&5
3743 $as_echo "$as_me:${as_lineno-3743}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; }; then
3747 if test "$cross_compiling" = maybe
; then
3750 { { $as_echo "$as_me:${as_lineno-3750}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error $?
"cannot run C compiled programs.
3753 If you meant to cross compile, use \`--host'.
3754 See \`config.log' for more details" "3754" 5; }
3758 { $as_echo "$as_me:${as_lineno-3758}: result: $cross_compiling" >&5
3759 $as_echo "$cross_compiling" >&6; }
3761 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3762 ac_clean_files
=$ac_clean_files_save
3763 { $as_echo "$as_me:${as_lineno-3763}: checking for suffix of object files" >&5
3764 $as_echo_n "checking for suffix of object files... " >&6; }
3765 if ${ac_cv_objext+:} false
; then :
3766 $as_echo_n "(cached) " >&6
3768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3779 rm -f conftest.o conftest.obj
3780 if { { ac_try
="$ac_compile"
3782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-3785}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_compile") 2>&5
3789 $as_echo "$as_me:${as_lineno-3789}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }; then :
3791 for ac_file in conftest.o conftest.obj conftest.*; do
3792 test -f "$ac_file" || continue;
3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 { { $as_echo "$as_me:${as_lineno-3803}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3806 See \
`config.log' for more details" "3806" 5; }
3808 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3810 { $as_echo "$as_me:${as_lineno-3810}: result: $ac_cv_objext" >&5
3811 $as_echo "$ac_cv_objext" >&6; }
3812 OBJEXT=$ac_cv_objext
3814 { $as_echo "$as_me:${as_lineno-3814}: checking whether we are using the GNU C compiler" >&5
3815 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3816 if ${ac_cv_c_compiler_gnu+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3833 if ac_fn_c_try_compile "3833"; then :
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3842 { $as_echo "$as_me:${as_lineno-3842}: result: $ac_cv_c_compiler_gnu" >&5
3843 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3844 if test $ac_compiler_gnu = yes; then
3849 ac_test_CFLAGS=${CFLAGS+set}
3850 ac_save_CFLAGS=$CFLAGS
3851 { $as_echo "$as_me:${as_lineno-3851}: checking whether $CC accepts -g" >&5
3852 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3853 if ${ac_cv_prog_cc_g+:} false; then :
3854 $as_echo_n "(cached) " >&6
3856 ac_save_c_werror_flag=$ac_c_werror_flag
3857 ac_c_werror_flag=yes
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3871 if ac_fn_c_try_compile "3871"; then :
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3886 if ac_fn_c_try_compile "3886"; then :
3889 ac_c_werror_flag=$ac_save_c_werror_flag
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3902 if ac_fn_c_try_compile "3902"; then :
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3912 { $as_echo "$as_me:${as_lineno-3912}: result: $ac_cv_prog_cc_g" >&5
3913 $as_echo "$ac_cv_prog_cc_g" >&6; }
3914 if test "$ac_test_CFLAGS" = set; then
3915 CFLAGS=$ac_save_CFLAGS
3916 elif test $ac_cv_prog_cc_g = yes; then
3917 if test "$GCC" = yes; then
3923 if test "$GCC" = yes; then
3929 { $as_echo "$as_me:${as_lineno-3929}: checking for $CC option to accept ISO C89" >&5
3930 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3931 if ${ac_cv_prog_cc_c89+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 ac_cv_prog_cc_c89=no
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3942 struct buf { int x; };
3943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3944 static char *e (p, i)
3950 static char *f (char * (*g) (char **, int), char **p, ...)
3955 s = g (p, va_arg (v,int));
3960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3961 function prototypes and stuff, but not '\xHH' hex character constants.
3962 These don't provoke an error unfortunately, instead are silently treated
3963 as 'x'. The following induces an error, until -std is added to get
3964 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3965 array size at least. It's necessary to write '\x00'==0 to get something
3966 that's true only with -std. */
3967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3969 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3970 inside strings and character constants. */
3972 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3974 int test (int i, double x);
3975 struct s1 {int (*f) (int a);};
3976 struct s2 {int (*f) (double a);};
3977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3988 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3989 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3991 CC="$ac_save_CC $ac_arg"
3992 if ac_fn_c_try_compile "3992"; then :
3993 ac_cv_prog_cc_c89=$ac_arg
3995 rm -f core conftest.err conftest.$ac_objext
3996 test "x$ac_cv_prog_cc_c89" != "xno" && break
3998 rm -f conftest.$ac_ext
4003 case "x$ac_cv_prog_cc_c89" in
4005 { $as_echo "$as_me:${as_lineno-4005}: result: none needed" >&5
4006 $as_echo "none needed" >&6; } ;;
4008 { $as_echo "$as_me:${as_lineno-4008}: result: unsupported" >&5
4009 $as_echo "unsupported" >&6; } ;;
4011 CC="$CC $ac_cv_prog_cc_c89"
4012 { $as_echo "$as_me:${as_lineno-4012}: result: $ac_cv_prog_cc_c89" >&5
4013 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4015 if test "x$ac_cv_prog_cc_c89" != xno; then :
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 { $as_echo "$as_me:${as_lineno-4030}: checking whether $CC understands -c and -o together" >&5
4031 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4032 if ${am_cv_prog_cc_c_o+:} false; then :
4033 $as_echo_n "(cached) " >&6
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4046 # Make sure it works both with $CC and with simple cc.
4047 # Following AC_PROG_CC_C_O, we do the test twice because some
4048 # compilers refuse to overwrite an existing .o file with -o,
4049 # though they will create one.
4050 am_cv_prog_cc_c_o=yes
4052 if { echo "$as_me:4052: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4053 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4055 echo "$as_me:4055: \$? = $ac_status" >&5
4056 (exit $ac_status); } \
4057 && test -f conftest2.$ac_objext; then
4060 am_cv_prog_cc_c_o=no
4064 rm -f core conftest*
4067 { $as_echo "$as_me:${as_lineno-4067}: result: $am_cv_prog_cc_c_o" >&5
4068 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4069 if test "$am_cv_prog_cc_c_o" != yes; then
4070 # Losing compiler, so override with the script.
4071 # FIXME: It is wrong to rewrite CC.
4072 # But if we don't then we get into trouble of one sort or another.
4073 # A longer-term fix would be to have automake use am__CC in this case,
4074 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4075 CC="$am_aux_dir/compile $CC"
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 DEPDIR="${am__leading_dot}deps"
4085 ac_config_commands="$ac_config_commands depfiles"
4087 { $as_echo "$as_me:${as_lineno-4087}: checking whether ${MAKE-make} supports the include directive" >&5
4088 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4089 cat > confinc.mk << 'END'
4091 @echo this is the am__doit target >confinc.out
4096 # BSD make does it like this.
4097 echo '.include "confinc.mk" # ignored' > confmf.BSD
4098 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4099 echo 'include confinc.mk # ignored' > confmf.GNU
4101 for s in GNU BSD; do
4102 { echo "$as_me:4102: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4103 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4105 echo "$as_me:4105: \$? = $ac_status" >&5
4106 (exit $ac_status); }
4107 case $?:`cat confinc.out
2>/dev
/null
` in #(
4108 '0:this is the am__doit target') :
4111 am__include='.include' am__quote='"' ;; #(
4113 am__include='include' am__quote='' ;;
4118 if test "$am__include" != "#"; then
4119 _am_result="yes ($s style)"
4123 rm -f confinc.* confmf.*
4124 { $as_echo "$as_me:${as_lineno-4124}: result: ${_am_result}" >&5
4125 $as_echo "${_am_result}" >&6; }
4127 # Check whether --enable-dependency-tracking was given.
4128 if test "${enable_dependency_tracking+set}" = set; then :
4129 enableval=$enable_dependency_tracking;
4132 if test "x$enable_dependency_tracking" != xno; then
4133 am_depcomp="$ac_aux_dir/depcomp"
4137 if test "x$enable_dependency_tracking" != xno; then
4147 depcc="$CC" am_compiler_list=
4149 { $as_echo "$as_me:${as_lineno-4149}: checking dependency style of $depcc" >&5
4150 $as_echo_n "checking dependency style of $depcc... " >&6; }
4151 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4155 # We make a subdir and do the tests there. Otherwise we can end up
4156 # making bogus files that we don't know about and never remove. For
4157 # instance it was reported that on HP-UX the gcc test will end up
4158 # making a dummy file named 'D' -- because '-MD' means "put the output
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4174 am_cv_CC_dependencies_compiler_type=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4179 case " $depcc " in #(
4180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4183 for depmode in $am_compiler_list; do
4184 # Setup a source with many dependencies, because some compilers
4185 # like to wrap large dependency lists on column 80 (with \), and
4186 # we should not choose a depcomp mode which is confused by this.
4188 # We need to recreate these files for each test, as the compiler may
4189 # overwrite some of them when testing with obscure command lines.
4190 # This happens at least with the AIX C compiler.
4192 for i in 1 2 3 4 5 6; do
4193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4194 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4195 # Solaris 10 /bin/sh.
4196 echo '/* dummy */' > sub/conftst$i.h
4198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4201 # mode. It turns out that the SunPro C++ compiler does not properly
4202 # handle '-M -o', and we need to detect this. Also, some Intel
4203 # versions had trouble with output in subdirs.
4204 am__obj=sub/conftest.${OBJEXT-o}
4205 am__minus_obj="-o $am__obj"
4208 # This depmode causes a compiler race in universal mode.
4209 test "$am__universal" = false || continue
4212 # After this tag, mechanisms are not by side-effect, so they'll
4213 # only be used when explicitly requested.
4214 if test "x$enable_dependency_tracking" = xyes; then
4220 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4221 # This compiler won't grok '-c -o', but also, the minuso test has
4222 # not run yet. These depmodes are late enough in the game, and
4223 # so weak that their functioning should not be impacted.
4224 am__obj=conftest.${OBJEXT-o}
4229 if depmode=$depmode \
4230 source=sub/conftest.c object=$am__obj \
4231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4233 >/dev/null 2>conftest.err &&
4234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4238 # icc doesn't choke on unknown options, it will just issue warnings
4239 # or remarks (even with -Werror). So we grep stderr for any message
4240 # that says an option was ignored or not supported.
4241 # When given -MP, icc 7.0 and 7.1 complain thusly:
4242 # icc: Command line warning: ignoring option '-M'; no argument required
4243 # The diagnosis changed in icc 8.0:
4244 # icc: Command line remark: option '-MP' not supported
4245 if (grep 'ignoring option' conftest.err ||
4246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4247 am_cv_CC_dependencies_compiler_type=$depmode
4256 am_cv_CC_dependencies_compiler_type=none
4260 { $as_echo "$as_me:${as_lineno-4260}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4265 test "x$enable_dependency_tracking" != xno \
4266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4268 am__fastdepCC_FALSE='#'
4270 am__fastdepCC_TRUE='#'
4271 am__fastdepCC_FALSE=
4276 { $as_echo "$as_me:${as_lineno-4276}: checking for library containing strerror" >&5
4277 $as_echo_n "checking for library containing strerror... " >&6; }
4278 if ${ac_cv_search_strerror+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 ac_func_search_save_LIBS=$LIBS
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4285 /* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4300 for ac_lib in '' cposix; do
4301 if test -z "$ac_lib"; then
4302 ac_res="none required"
4305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4307 if ac_fn_c_try_link "4307"; then :
4308 ac_cv_search_strerror=$ac_res
4310 rm -f core conftest.err conftest.$ac_objext \
4312 if ${ac_cv_search_strerror+:} false; then :
4316 if ${ac_cv_search_strerror+:} false; then :
4319 ac_cv_search_strerror=no
4322 LIBS=$ac_func_search_save_LIBS
4324 { $as_echo "$as_me:${as_lineno-4324}: result: $ac_cv_search_strerror" >&5
4325 $as_echo "$ac_cv_search_strerror" >&6; }
4326 ac_res=$ac_cv_search_strerror
4327 if test "$ac_res" != no; then :
4328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4332 if test "x$U" != "x"; then
4333 as_fn_error $? "Compiler not ANSI compliant" "4333" 5
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-4339}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_RANLIB+:} false; then :
4342 $as_echo_n "(cached) " >&6
4344 if test -n "$RANLIB"; then
4345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4355 $as_echo "$as_me:${as_lineno-4355}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 RANLIB=$ac_cv_prog_RANLIB
4365 if test -n "$RANLIB"; then
4366 { $as_echo "$as_me:${as_lineno-4366}: result: $RANLIB" >&5
4367 $as_echo "$RANLIB" >&6; }
4369 { $as_echo "$as_me:${as_lineno-4369}: result: no" >&5
4370 $as_echo "no" >&6; }
4375 if test -z "$ac_cv_prog_RANLIB"; then
4376 ac_ct_RANLIB=$RANLIB
4377 # Extract the first word of "ranlib", so it can be a program name with args.
4378 set dummy ranlib; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-4379}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -n "$ac_ct_RANLIB"; then
4385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_RANLIB="ranlib"
4395 $as_echo "$as_me:${as_lineno-4395}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4405 if test -n "$ac_ct_RANLIB"; then
4406 { $as_echo "$as_me:${as_lineno-4406}: result: $ac_ct_RANLIB" >&5
4407 $as_echo "$ac_ct_RANLIB" >&6; }
4409 { $as_echo "$as_me:${as_lineno-4409}: result: no" >&5
4410 $as_echo "no" >&6; }
4413 if test "x$ac_ct_RANLIB" = x; then
4416 case $cross_compiling:$ac_tool_warned in
4418 { $as_echo "$as_me:${as_lineno-4418}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4422 RANLIB=$ac_ct_RANLIB
4425 RANLIB="$ac_cv_prog_RANLIB"
4429 for ac_prog in gm4 gnum4 m4
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-4433}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_path_M4+:} false; then :
4436 $as_echo_n "(cached) " >&6
4440 ac_cv_path_M4="$M4" # Let the user override the test with a path.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
4451 $as_echo "$as_me:${as_lineno-4451}: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 if test -n "$M4"; then
4463 { $as_echo "$as_me:${as_lineno-4463}: result: $M4" >&5
4464 $as_echo "$M4" >&6; }
4466 { $as_echo "$as_me:${as_lineno-4466}: result: no" >&5
4467 $as_echo "no" >&6; }
4471 test -n "$M4" && break
4475 case "$target_os" in
4479 { $as_echo "$as_me:${as_lineno-4479}: checking for sin in -lm" >&5
4480 $as_echo_n "checking for sin in -lm... " >&6; }
4481 if ${ac_cv_lib_m_sin+:} false; then :
4482 $as_echo_n "(cached) " >&6
4484 ac_check_lib_save_LIBS=$LIBS
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4489 /* Override any GCC internal prototype to avoid an error.
4490 Use char because int might match the return type of a GCC
4491 builtin and then its argument prototype would still apply. */
4504 if ac_fn_c_try_link "4504"; then :
4509 rm -f core conftest.err conftest.$ac_objext \
4510 conftest$ac_exeext conftest.$ac_ext
4511 LIBS=$ac_check_lib_save_LIBS
4513 { $as_echo "$as_me:${as_lineno-4513}: result: $ac_cv_lib_m_sin" >&5
4514 $as_echo "$ac_cv_lib_m_sin" >&6; }
4515 if test "x$ac_cv_lib_m_sin" = xyes; then :
4516 cat >>confdefs.h <<_ACEOF
4528 ac_cpp='$CPP $CPPFLAGS'
4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532 { $as_echo "$as_me:${as_lineno-4532}: checking how to run the C preprocessor" >&5
4533 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4534 # On Suns, sometimes $CPP names a directory.
4535 if test -n "$CPP" && test -d "$CPP"; then
4538 if test -z "$CPP"; then
4539 if ${ac_cv_prog_CPP+:} false; then :
4540 $as_echo_n "(cached) " >&6
4542 # Double quotes because CPP needs to be expanded
4543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4546 for ac_c_preproc_warn_flag in '' yes
4548 # Use a header file that comes with gcc, so configuring glibc
4549 # with a fresh cross-compiler works.
4550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551 # <limits.h> exists even on freestanding compilers.
4552 # On the NeXT, cc -E runs the code through the compiler's parser,
4553 # not just through cpp. "Syntax error" is here to catch this case.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4557 # include <limits.h>
4559 # include <assert.h>
4563 if ac_fn_c_try_cpp "4563"; then :
4566 # Broken: fails on valid input.
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <ac_nonexistent.h>
4577 if ac_fn_c_try_cpp "4577"; then :
4578 # Broken: success on invalid input.
4581 # Passes both tests.
4585 rm -f conftest.err conftest.i conftest.$ac_ext
4588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4589 rm -f conftest.i conftest.err conftest.
$ac_ext
4590 if $ac_preproc_ok; then :
4602 { $as_echo "$as_me:${as_lineno-4602}: result: $CPP" >&5
4603 $as_echo "$CPP" >&6; }
4605 for ac_c_preproc_warn_flag
in '' yes
4607 # Use a header file that comes with gcc, so configuring glibc
4608 # with a fresh cross-compiler works.
4609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4610 # <limits.h> exists even on freestanding compilers.
4611 # On the NeXT, cc -E runs the code through the compiler's parser,
4612 # not just through cpp. "Syntax error" is here to catch this case.
4613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4616 # include <limits.h>
4618 # include <assert.h>
4622 if ac_fn_c_try_cpp
"4622"; then :
4625 # Broken: fails on valid input.
4628 rm -f conftest.err conftest.i conftest.
$ac_ext
4630 # OK, works on sane cases. Now check whether nonexistent headers
4631 # can be detected and how.
4632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634 #include <ac_nonexistent.h>
4636 if ac_fn_c_try_cpp
"4636"; then :
4637 # Broken: success on invalid input.
4640 # Passes both tests.
4644 rm -f conftest.err conftest.i conftest.
$ac_ext
4647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4648 rm -f conftest.i conftest.err conftest.
$ac_ext
4649 if $ac_preproc_ok; then :
4652 { { $as_echo "$as_me:${as_lineno-4652}: error: in \`$ac_pwd':" >&5
4653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4654 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4655 See \`config.log' for more details" "4655" 5; }
4659 ac_cpp
='$CPP $CPPFLAGS'
4660 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4665 { $as_echo "$as_me:${as_lineno-4665}: checking for grep that handles long lines and -e" >&5
4666 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4667 if ${ac_cv_path_GREP+:} false
; then :
4668 $as_echo_n "(cached) " >&6
4670 if test -z "$GREP"; then
4671 ac_path_GREP_found
=false
4672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4674 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4677 test -z "$as_dir" && as_dir
=.
4678 for ac_prog
in grep ggrep
; do
4679 for ac_exec_ext
in '' $ac_executable_extensions; do
4680 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4681 as_fn_executable_p
"$ac_path_GREP" ||
continue
4682 # Check for GNU ac_path_GREP and select it if it is found.
4683 # Check for GNU $ac_path_GREP
4684 case `"$ac_path_GREP" --version 2>&1` in
4686 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4689 $as_echo_n 0123456789 >"conftest.in"
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
4695 $as_echo 'GREP' >> "conftest.nl"
4696 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4697 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4698 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4699 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_GREP
="$ac_path_GREP"
4702 ac_path_GREP_max
=$ac_count
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4707 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4710 $ac_path_GREP_found && break 3
4715 if test -z "$ac_cv_path_GREP"; then
4716 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "4716" 5
4719 ac_cv_path_GREP
=$GREP
4723 { $as_echo "$as_me:${as_lineno-4723}: result: $ac_cv_path_GREP" >&5
4724 $as_echo "$ac_cv_path_GREP" >&6; }
4725 GREP
="$ac_cv_path_GREP"
4728 { $as_echo "$as_me:${as_lineno-4728}: checking for egrep" >&5
4729 $as_echo_n "checking for egrep... " >&6; }
4730 if ${ac_cv_path_EGREP+:} false
; then :
4731 $as_echo_n "(cached) " >&6
4733 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4734 then ac_cv_path_EGREP
="$GREP -E"
4736 if test -z "$EGREP"; then
4737 ac_path_EGREP_found
=false
4738 # Loop through the user's path and test for each of PROGNAME-LIST
4739 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4740 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4743 test -z "$as_dir" && as_dir
=.
4744 for ac_prog
in egrep; do
4745 for ac_exec_ext
in '' $ac_executable_extensions; do
4746 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4747 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4748 # Check for GNU ac_path_EGREP and select it if it is found.
4749 # Check for GNU $ac_path_EGREP
4750 case `"$ac_path_EGREP" --version 2>&1` in
4752 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4755 $as_echo_n 0123456789 >"conftest.in"
4758 cat "conftest.in" "conftest.in" >"conftest.tmp"
4759 mv "conftest.tmp" "conftest.in"
4760 cp "conftest.in" "conftest.nl"
4761 $as_echo 'EGREP' >> "conftest.nl"
4762 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4763 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4764 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4765 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4766 # Best one so far, save it but keep looking for a better one
4767 ac_cv_path_EGREP
="$ac_path_EGREP"
4768 ac_path_EGREP_max
=$ac_count
4770 # 10*(2^10) chars as input seems more than enough
4771 test $ac_count -gt 10 && break
4773 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4776 $ac_path_EGREP_found && break 3
4781 if test -z "$ac_cv_path_EGREP"; then
4782 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "4782" 5
4785 ac_cv_path_EGREP
=$EGREP
4790 { $as_echo "$as_me:${as_lineno-4790}: result: $ac_cv_path_EGREP" >&5
4791 $as_echo "$ac_cv_path_EGREP" >&6; }
4792 EGREP
="$ac_cv_path_EGREP"
4795 { $as_echo "$as_me:${as_lineno-4795}: checking for ANSI C header files" >&5
4796 $as_echo_n "checking for ANSI C header files... " >&6; }
4797 if ${ac_cv_header_stdc+:} false
; then :
4798 $as_echo_n "(cached) " >&6
4800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4815 if ac_fn_c_try_compile
"4815"; then :
4816 ac_cv_header_stdc
=yes
4818 ac_cv_header_stdc
=no
4820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4822 if test $ac_cv_header_stdc = yes; then
4823 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4830 $EGREP "memchr" >/dev
/null
2>&1; then :
4833 ac_cv_header_stdc
=no
4839 if test $ac_cv_header_stdc = yes; then
4840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4847 $EGREP "free" >/dev
/null
2>&1; then :
4850 ac_cv_header_stdc
=no
4856 if test $ac_cv_header_stdc = yes; then
4857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4858 if test "$cross_compiling" = yes; then :
4861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4865 #if ((' ' & 0x0FF) == 0x020)
4866 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4867 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4869 # define ISLOWER(c) \
4870 (('a' <= (c) && (c) <= 'i') \
4871 || ('j' <= (c) && (c) <= 'r') \
4872 || ('s' <= (c) && (c) <= 'z'))
4873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4881 for (i = 0; i < 256; i++)
4882 if (XOR (islower (i), ISLOWER (i))
4883 || toupper (i) != TOUPPER (i))
4888 if ac_fn_c_try_run
"4888"; then :
4891 ac_cv_header_stdc
=no
4893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4899 { $as_echo "$as_me:${as_lineno-4899}: result: $ac_cv_header_stdc" >&5
4900 $as_echo "$ac_cv_header_stdc" >&6; }
4901 if test $ac_cv_header_stdc = yes; then
4903 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4907 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4908 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4909 inttypes.h stdint.h unistd.h
4911 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4912 ac_fn_c_check_header_compile
"4912" "$ac_header" "$as_ac_Header" "$ac_includes_default
4914 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4915 cat >>confdefs.h
<<_ACEOF
4916 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4924 # The cast to long int works around a bug in the HP C Compiler
4925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4927 # This bug is HP SR number 8606223364.
4928 { $as_echo "$as_me:${as_lineno-4928}: checking size of void *" >&5
4929 $as_echo_n "checking size of void *... " >&6; }
4930 if ${ac_cv_sizeof_void_p+:} false
; then :
4931 $as_echo_n "(cached) " >&6
4933 if ac_fn_c_compute_int
"4933" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4936 if test "$ac_cv_type_void_p" = yes; then
4937 { { $as_echo "$as_me:${as_lineno-4937}: error: in \`$ac_pwd':" >&5
4938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4939 as_fn_error
77 "cannot compute sizeof (void *)
4940 See \`config.log' for more details" "4940" 5; }
4942 ac_cv_sizeof_void_p
=0
4947 { $as_echo "$as_me:${as_lineno-4947}: result: $ac_cv_sizeof_void_p" >&5
4948 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4952 cat >>confdefs.h
<<_ACEOF
4953 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4957 # The cast to long int works around a bug in the HP C Compiler
4958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4960 # This bug is HP SR number 8606223364.
4961 { $as_echo "$as_me:${as_lineno-4961}: checking size of unsigned int" >&5
4962 $as_echo_n "checking size of unsigned int... " >&6; }
4963 if ${ac_cv_sizeof_unsigned_int+:} false
; then :
4964 $as_echo_n "(cached) " >&6
4966 if ac_fn_c_compute_int
"4966" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
4969 if test "$ac_cv_type_unsigned_int" = yes; then
4970 { { $as_echo "$as_me:${as_lineno-4970}: error: in \`$ac_pwd':" >&5
4971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4972 as_fn_error
77 "cannot compute sizeof (unsigned int)
4973 See \`config.log' for more details" "4973" 5; }
4975 ac_cv_sizeof_unsigned_int
=0
4980 { $as_echo "$as_me:${as_lineno-4980}: result: $ac_cv_sizeof_unsigned_int" >&5
4981 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
4985 cat >>confdefs.h
<<_ACEOF
4986 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
4990 # The cast to long int works around a bug in the HP C Compiler
4991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4993 # This bug is HP SR number 8606223364.
4994 { $as_echo "$as_me:${as_lineno-4994}: checking size of unsigned long" >&5
4995 $as_echo_n "checking size of unsigned long... " >&6; }
4996 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
4997 $as_echo_n "(cached) " >&6
4999 if ac_fn_c_compute_int
"4999" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
5002 if test "$ac_cv_type_unsigned_long" = yes; then
5003 { { $as_echo "$as_me:${as_lineno-5003}: error: in \`$ac_pwd':" >&5
5004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5005 as_fn_error
77 "cannot compute sizeof (unsigned long)
5006 See \`config.log' for more details" "5006" 5; }
5008 ac_cv_sizeof_unsigned_long
=0
5013 { $as_echo "$as_me:${as_lineno-5013}: result: $ac_cv_sizeof_unsigned_long" >&5
5014 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
5018 cat >>confdefs.h
<<_ACEOF
5019 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5023 # The cast to long int works around a bug in the HP C Compiler
5024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5026 # This bug is HP SR number 8606223364.
5027 { $as_echo "$as_me:${as_lineno-5027}: checking size of unsigned long long" >&5
5028 $as_echo_n "checking size of unsigned long long... " >&6; }
5029 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
5030 $as_echo_n "(cached) " >&6
5032 if ac_fn_c_compute_int
"5032" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
5035 if test "$ac_cv_type_unsigned_long_long" = yes; then
5036 { { $as_echo "$as_me:${as_lineno-5036}: error: in \`$ac_pwd':" >&5
5037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5038 as_fn_error
77 "cannot compute sizeof (unsigned long long)
5039 See \`config.log' for more details" "5039" 5; }
5041 ac_cv_sizeof_unsigned_long_long
=0
5046 { $as_echo "$as_me:${as_lineno-5046}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5047 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
5051 cat >>confdefs.h
<<_ACEOF
5052 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
5057 { $as_echo "$as_me:${as_lineno-5057}: checking for X" >&5
5058 $as_echo_n "checking for X... " >&6; }
5061 # Check whether --with-x was given.
5062 if test "${with_x+set}" = set; then :
5066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5067 if test "x$with_x" = xno
; then
5068 # The user explicitly disabled X.
5071 case $x_includes,$x_libraries in #(
5072 *\'*) as_fn_error $?
"cannot use X directory names containing '" "5072" 5;; #(
5073 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
5074 $as_echo_n "(cached) " >&6
5076 # One or both of the vars are not set, and there is no cached value.
5077 ac_x_includes
=no ac_x_libraries
=no
5078 rm -f -r conftest.dir
5079 if mkdir conftest.dir
; then
5081 cat >Imakefile
<<'_ACEOF'
5083 @echo incroot='${INCROOT}'
5085 @echo usrlibdir='${USRLIBDIR}'
5087 @echo libdir='${LIBDIR}'
5089 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5090 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5091 for ac_var
in incroot usrlibdir libdir
; do
5092 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5095 for ac_extension
in a so sl dylib la dll
; do
5096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5098 ac_im_usrlibdir
=$ac_im_libdir; break
5101 # Screen out bogus values from the imake configuration. They are
5102 # bogus both because they are the default anyway, and because
5103 # using them would break gcc on systems where it needs fixed includes.
5104 case $ac_im_incroot in
5105 /usr
/include
) ac_x_includes
= ;;
5106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
5108 case $ac_im_usrlibdir in
5109 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
5110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
5114 rm -f -r conftest.dir
5117 # Standard set of common directories for X headers.
5118 # Check X11 before X11Rn because it is often a symlink to the current release.
5132 /usr/local/X11/include
5133 /usr/local/X11R7/include
5134 /usr/local/X11R6/include
5135 /usr/local/X11R5/include
5136 /usr/local/X11R4/include
5138 /usr/local/include/X11
5139 /usr/local/include/X11R7
5140 /usr/local/include/X11R6
5141 /usr/local/include/X11R5
5142 /usr/local/include/X11R4
5146 /usr/XFree86/include/X11
5150 /usr/unsupported/include
5152 /usr/local/x11r5/include
5153 /usr/lpp/Xamples/include
5155 /usr/openwin/include
5156 /usr/openwin/share/include'
5158 if test "$ac_x_includes" = no
; then
5159 # Guess where to find include files, by looking for Xlib.h.
5160 # First, try using that file with no special directory specified.
5161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <X11/Xlib.h>
5165 if ac_fn_c_try_cpp
"5165"; then :
5166 # We can compile using X headers with no special include directory.
5169 for ac_dir
in $ac_x_header_dirs; do
5170 if test -r "$ac_dir/X11/Xlib.h"; then
5171 ac_x_includes
=$ac_dir
5176 rm -f conftest.err conftest.i conftest.
$ac_ext
5177 fi # $ac_x_includes = no
5179 if test "$ac_x_libraries" = no
; then
5180 # Check for the libraries.
5181 # See if we find them without any special options.
5182 # Don't add to $LIBS permanently.
5185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5187 #include <X11/Xlib.h>
5196 if ac_fn_c_try_link
"5196"; then :
5198 # We can link X programs with no special library path.
5202 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5204 # Don't even attempt the hair of trying to link an X program!
5205 for ac_extension
in a so sl dylib la dll
; do
5206 if test -r "$ac_dir/libX11.$ac_extension"; then
5207 ac_x_libraries
=$ac_dir
5213 rm -f core conftest.err conftest.
$ac_objext \
5214 conftest
$ac_exeext conftest.
$ac_ext
5215 fi # $ac_x_libraries = no
5217 case $ac_x_includes,$ac_x_libraries in #(
5219 # Didn't find X, or a directory has "'" in its name.
5220 ac_cv_have_x
="have_x=no";; #(
5222 # Record where we found X for the cache.
5223 ac_cv_have_x
="have_x=yes\
5224 ac_x_includes='$ac_x_includes'\
5225 ac_x_libraries='$ac_x_libraries'"
5231 eval "$ac_cv_have_x"
5234 if test "$have_x" != yes; then
5235 { $as_echo "$as_me:${as_lineno-5235}: result: $have_x" >&5
5236 $as_echo "$have_x" >&6; }
5239 # If each of the values was on the command line, it overrides each guess.
5240 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
5241 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
5242 # Update the cache value to reflect the command line values.
5243 ac_cv_have_x
="have_x=yes\
5244 ac_x_includes='$x_includes'\
5245 ac_x_libraries='$x_libraries'"
5246 { $as_echo "$as_me:${as_lineno-5246}: result: libraries $x_libraries, headers $x_includes" >&5
5247 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5250 if test "$no_x" = yes; then
5251 # Not all programs may use this symbol, but it does not hurt to define it.
5253 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5255 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
5257 if test -n "$x_includes"; then
5258 X_CFLAGS
="$X_CFLAGS -I$x_includes"
5261 # It would also be nice to do this for all -L options, not just this one.
5262 if test -n "$x_libraries"; then
5263 X_LIBS
="$X_LIBS -L$x_libraries"
5264 # For Solaris; some versions of Sun CC require a space after -R and
5265 # others require no space. Words are not sufficient . . . .
5266 { $as_echo "$as_me:${as_lineno-5266}: checking whether -R must be followed by a space" >&5
5267 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5268 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
5269 ac_xsave_c_werror_flag
=$ac_c_werror_flag
5270 ac_c_werror_flag
=yes
5271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5282 if ac_fn_c_try_link
"5282"; then :
5283 { $as_echo "$as_me:${as_lineno-5283}: result: no" >&5
5284 $as_echo "no" >&6; }
5285 X_LIBS
="$X_LIBS -R$x_libraries"
5287 LIBS
="$ac_xsave_LIBS -R $x_libraries"
5288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5299 if ac_fn_c_try_link
"5299"; then :
5300 { $as_echo "$as_me:${as_lineno-5300}: result: yes" >&5
5301 $as_echo "yes" >&6; }
5302 X_LIBS
="$X_LIBS -R $x_libraries"
5304 { $as_echo "$as_me:${as_lineno-5304}: result: neither works" >&5
5305 $as_echo "neither works" >&6; }
5307 rm -f core conftest.err conftest.
$ac_objext \
5308 conftest
$ac_exeext conftest.
$ac_ext
5310 rm -f core conftest.err conftest.
$ac_objext \
5311 conftest
$ac_exeext conftest.
$ac_ext
5312 ac_c_werror_flag
=$ac_xsave_c_werror_flag
5316 # Check for system-dependent libraries X programs must link with.
5317 # Do this before checking for the system-independent R6 libraries
5318 # (-lICE), since we may need -lsocket or whatever for X linking.
5320 if test "$ISC" = yes; then
5321 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
5323 # Martyn Johnson says this is needed for Ultrix, if the X
5324 # libraries were built with DECnet support. And Karl Berry says
5325 # the Alpha needs dnet_stub (dnet does not exist).
5326 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
5327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5330 /* Override any GCC internal prototype to avoid an error.
5331 Use char because int might match the return type of a GCC
5332 builtin and then its argument prototype would still apply. */
5336 char XOpenDisplay ();
5340 return XOpenDisplay ();
5345 if ac_fn_c_try_link
"5345"; then :
5348 { $as_echo "$as_me:${as_lineno-5348}: checking for dnet_ntoa in -ldnet" >&5
5349 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5350 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
5351 $as_echo_n "(cached) " >&6
5353 ac_check_lib_save_LIBS
=$LIBS
5355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5368 return dnet_ntoa ();
5373 if ac_fn_c_try_link
"5373"; then :
5374 ac_cv_lib_dnet_dnet_ntoa
=yes
5376 ac_cv_lib_dnet_dnet_ntoa
=no
5378 rm -f core conftest.err conftest.
$ac_objext \
5379 conftest
$ac_exeext conftest.
$ac_ext
5380 LIBS
=$ac_check_lib_save_LIBS
5382 { $as_echo "$as_me:${as_lineno-5382}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5383 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5384 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
5385 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
5388 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
5389 { $as_echo "$as_me:${as_lineno-5389}: checking for dnet_ntoa in -ldnet_stub" >&5
5390 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5391 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
5392 $as_echo_n "(cached) " >&6
5394 ac_check_lib_save_LIBS
=$LIBS
5395 LIBS
="-ldnet_stub $LIBS"
5396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5399 /* Override any GCC internal prototype to avoid an error.
5400 Use char because int might match the return type of a GCC
5401 builtin and then its argument prototype would still apply. */
5409 return dnet_ntoa ();
5414 if ac_fn_c_try_link
"5414"; then :
5415 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
5417 ac_cv_lib_dnet_stub_dnet_ntoa
=no
5419 rm -f core conftest.err conftest.
$ac_objext \
5420 conftest
$ac_exeext conftest.
$ac_ext
5421 LIBS
=$ac_check_lib_save_LIBS
5423 { $as_echo "$as_me:${as_lineno-5423}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5424 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5425 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
5426 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
5431 rm -f core conftest.err conftest.
$ac_objext \
5432 conftest
$ac_exeext conftest.
$ac_ext
5433 LIBS
="$ac_xsave_LIBS"
5435 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5436 # to get the SysV transport functions.
5437 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5439 # The nsl library prevents programs from opening the X display
5440 # on Irix 5.2, according to T.E. Dickey.
5441 # The functions gethostbyname, getservbyname, and inet_addr are
5442 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5443 ac_fn_c_check_func
"5443" "gethostbyname" "ac_cv_func_gethostbyname"
5444 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
5448 if test $ac_cv_func_gethostbyname = no
; then
5449 { $as_echo "$as_me:${as_lineno-5449}: checking for gethostbyname in -lnsl" >&5
5450 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5451 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
5452 $as_echo_n "(cached) " >&6
5454 ac_check_lib_save_LIBS
=$LIBS
5456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5459 /* Override any GCC internal prototype to avoid an error.
5460 Use char because int might match the return type of a GCC
5461 builtin and then its argument prototype would still apply. */
5465 char gethostbyname ();
5469 return gethostbyname ();
5474 if ac_fn_c_try_link
"5474"; then :
5475 ac_cv_lib_nsl_gethostbyname
=yes
5477 ac_cv_lib_nsl_gethostbyname
=no
5479 rm -f core conftest.err conftest.
$ac_objext \
5480 conftest
$ac_exeext conftest.
$ac_ext
5481 LIBS
=$ac_check_lib_save_LIBS
5483 { $as_echo "$as_me:${as_lineno-5483}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5484 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5485 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
5486 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
5489 if test $ac_cv_lib_nsl_gethostbyname = no
; then
5490 { $as_echo "$as_me:${as_lineno-5490}: checking for gethostbyname in -lbsd" >&5
5491 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5492 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
5493 $as_echo_n "(cached) " >&6
5495 ac_check_lib_save_LIBS
=$LIBS
5497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5500 /* Override any GCC internal prototype to avoid an error.
5501 Use char because int might match the return type of a GCC
5502 builtin and then its argument prototype would still apply. */
5506 char gethostbyname ();
5510 return gethostbyname ();
5515 if ac_fn_c_try_link
"5515"; then :
5516 ac_cv_lib_bsd_gethostbyname
=yes
5518 ac_cv_lib_bsd_gethostbyname
=no
5520 rm -f core conftest.err conftest.
$ac_objext \
5521 conftest
$ac_exeext conftest.
$ac_ext
5522 LIBS
=$ac_check_lib_save_LIBS
5524 { $as_echo "$as_me:${as_lineno-5524}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5525 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5526 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
5527 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
5533 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5534 # socket/setsockopt and other routines are undefined under SCO ODT
5535 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5536 # on later versions), says Simon Leinen: it contains gethostby*
5537 # variants that don't use the name server (or something). -lsocket
5538 # must be given before -lnsl if both are needed. We assume that
5539 # if connect needs -lnsl, so does gethostbyname.
5540 ac_fn_c_check_func
"5540" "connect" "ac_cv_func_connect"
5541 if test "x$ac_cv_func_connect" = xyes
; then :
5545 if test $ac_cv_func_connect = no
; then
5546 { $as_echo "$as_me:${as_lineno-5546}: checking for connect in -lsocket" >&5
5547 $as_echo_n "checking for connect in -lsocket... " >&6; }
5548 if ${ac_cv_lib_socket_connect+:} false
; then :
5549 $as_echo_n "(cached) " >&6
5551 ac_check_lib_save_LIBS
=$LIBS
5552 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
5553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5556 /* Override any GCC internal prototype to avoid an error.
5557 Use char because int might match the return type of a GCC
5558 builtin and then its argument prototype would still apply. */
5571 if ac_fn_c_try_link
"5571"; then :
5572 ac_cv_lib_socket_connect
=yes
5574 ac_cv_lib_socket_connect
=no
5576 rm -f core conftest.err conftest.
$ac_objext \
5577 conftest
$ac_exeext conftest.
$ac_ext
5578 LIBS
=$ac_check_lib_save_LIBS
5580 { $as_echo "$as_me:${as_lineno-5580}: result: $ac_cv_lib_socket_connect" >&5
5581 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5582 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
5583 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
5588 # Guillermo Gomez says -lposix is necessary on A/UX.
5589 ac_fn_c_check_func
"5589" "remove" "ac_cv_func_remove"
5590 if test "x$ac_cv_func_remove" = xyes
; then :
5594 if test $ac_cv_func_remove = no
; then
5595 { $as_echo "$as_me:${as_lineno-5595}: checking for remove in -lposix" >&5
5596 $as_echo_n "checking for remove in -lposix... " >&6; }
5597 if ${ac_cv_lib_posix_remove+:} false
; then :
5598 $as_echo_n "(cached) " >&6
5600 ac_check_lib_save_LIBS
=$LIBS
5601 LIBS
="-lposix $LIBS"
5602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5605 /* Override any GCC internal prototype to avoid an error.
5606 Use char because int might match the return type of a GCC
5607 builtin and then its argument prototype would still apply. */
5620 if ac_fn_c_try_link
"5620"; then :
5621 ac_cv_lib_posix_remove
=yes
5623 ac_cv_lib_posix_remove
=no
5625 rm -f core conftest.err conftest.
$ac_objext \
5626 conftest
$ac_exeext conftest.
$ac_ext
5627 LIBS
=$ac_check_lib_save_LIBS
5629 { $as_echo "$as_me:${as_lineno-5629}: result: $ac_cv_lib_posix_remove" >&5
5630 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5631 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
5632 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
5637 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5638 ac_fn_c_check_func
"5638" "shmat" "ac_cv_func_shmat"
5639 if test "x$ac_cv_func_shmat" = xyes
; then :
5643 if test $ac_cv_func_shmat = no
; then
5644 { $as_echo "$as_me:${as_lineno-5644}: checking for shmat in -lipc" >&5
5645 $as_echo_n "checking for shmat in -lipc... " >&6; }
5646 if ${ac_cv_lib_ipc_shmat+:} false
; then :
5647 $as_echo_n "(cached) " >&6
5649 ac_check_lib_save_LIBS
=$LIBS
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5654 /* Override any GCC internal prototype to avoid an error.
5655 Use char because int might match the return type of a GCC
5656 builtin and then its argument prototype would still apply. */
5669 if ac_fn_c_try_link
"5669"; then :
5670 ac_cv_lib_ipc_shmat
=yes
5672 ac_cv_lib_ipc_shmat
=no
5674 rm -f core conftest.err conftest.
$ac_objext \
5675 conftest
$ac_exeext conftest.
$ac_ext
5676 LIBS
=$ac_check_lib_save_LIBS
5678 { $as_echo "$as_me:${as_lineno-5678}: result: $ac_cv_lib_ipc_shmat" >&5
5679 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5680 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
5681 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
5687 # Check for libraries that X11R6 Xt/Xaw programs need.
5688 ac_save_LDFLAGS
=$LDFLAGS
5689 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
5690 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5691 # check for ICE first), but we must link in the order -lSM -lICE or
5692 # we get undefined symbols. So assume we have SM if we have ICE.
5693 # These have to be linked with before -lX11, unlike the other
5694 # libraries we check for below, so use a different variable.
5695 # John Interrante, Karl Berry
5696 { $as_echo "$as_me:${as_lineno-5696}: checking for IceConnectionNumber in -lICE" >&5
5697 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5698 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
5699 $as_echo_n "(cached) " >&6
5701 ac_check_lib_save_LIBS
=$LIBS
5702 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
5703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5706 /* Override any GCC internal prototype to avoid an error.
5707 Use char because int might match the return type of a GCC
5708 builtin and then its argument prototype would still apply. */
5712 char IceConnectionNumber ();
5716 return IceConnectionNumber ();
5721 if ac_fn_c_try_link
"5721"; then :
5722 ac_cv_lib_ICE_IceConnectionNumber
=yes
5724 ac_cv_lib_ICE_IceConnectionNumber
=no
5726 rm -f core conftest.err conftest.
$ac_objext \
5727 conftest
$ac_exeext conftest.
$ac_ext
5728 LIBS
=$ac_check_lib_save_LIBS
5730 { $as_echo "$as_me:${as_lineno-5730}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5731 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5732 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
5733 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5736 LDFLAGS
=$ac_save_LDFLAGS
5740 CPPFLAGS
="${CPPFLAGS} ${X_CFLAGS}"
5741 LDFLAGS
="${LDFLAGS} ${X_LIBS}"
5742 LIBS
="${X_PRE_LIBS} ${LIBS} -lX11"
5743 { $as_echo "$as_me:${as_lineno-5743}: checking for XtToolkitInitialize in -lXt" >&5
5744 $as_echo_n "checking for XtToolkitInitialize in -lXt... " >&6; }
5745 if ${ac_cv_lib_Xt_XtToolkitInitialize+:} false
; then :
5746 $as_echo_n "(cached) " >&6
5748 ac_check_lib_save_LIBS
=$LIBS
5750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5753 /* Override any GCC internal prototype to avoid an error.
5754 Use char because int might match the return type of a GCC
5755 builtin and then its argument prototype would still apply. */
5759 char XtToolkitInitialize ();
5763 return XtToolkitInitialize ();
5768 if ac_fn_c_try_link
"5768"; then :
5769 ac_cv_lib_Xt_XtToolkitInitialize
=yes
5771 ac_cv_lib_Xt_XtToolkitInitialize
=no
5773 rm -f core conftest.err conftest.
$ac_objext \
5774 conftest
$ac_exeext conftest.
$ac_ext
5775 LIBS
=$ac_check_lib_save_LIBS
5777 { $as_echo "$as_me:${as_lineno-5777}: result: $ac_cv_lib_Xt_XtToolkitInitialize" >&5
5778 $as_echo "$ac_cv_lib_Xt_XtToolkitInitialize" >&6; }
5779 if test "x$ac_cv_lib_Xt_XtToolkitInitialize" = xyes
; then :
5780 cat >>confdefs.h
<<_ACEOF
5781 #define HAVE_LIBXT 1
5788 { $as_echo "$as_me:${as_lineno-5788}: checking for XtDisplayInitialize in -lXt" >&5
5789 $as_echo_n "checking for XtDisplayInitialize in -lXt... " >&6; }
5790 if ${ac_cv_lib_Xt_XtDisplayInitialize+:} false
; then :
5791 $as_echo_n "(cached) " >&6
5793 ac_check_lib_save_LIBS
=$LIBS
5794 LIBS
="-lXt -lSM -lICE -lXpm -lX11 $LIBS"
5795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5798 /* Override any GCC internal prototype to avoid an error.
5799 Use char because int might match the return type of a GCC
5800 builtin and then its argument prototype would still apply. */
5804 char XtDisplayInitialize ();
5808 return XtDisplayInitialize ();
5813 if ac_fn_c_try_link
"5813"; then :
5814 ac_cv_lib_Xt_XtDisplayInitialize
=yes
5816 ac_cv_lib_Xt_XtDisplayInitialize
=no
5818 rm -f core conftest.err conftest.
$ac_objext \
5819 conftest
$ac_exeext conftest.
$ac_ext
5820 LIBS
=$ac_check_lib_save_LIBS
5822 { $as_echo "$as_me:${as_lineno-5822}: result: $ac_cv_lib_Xt_XtDisplayInitialize" >&5
5823 $as_echo "$ac_cv_lib_Xt_XtDisplayInitialize" >&6; }
5824 if test "x$ac_cv_lib_Xt_XtDisplayInitialize" = xyes
; then :
5825 cat >>confdefs.h
<<_ACEOF
5826 #define HAVE_LIBXT 1
5836 { $as_echo "$as_me:${as_lineno-5836}: checking for ANSI C header files" >&5
5837 $as_echo_n "checking for ANSI C header files... " >&6; }
5838 if ${ac_cv_header_stdc+:} false
; then :
5839 $as_echo_n "(cached) " >&6
5841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5856 if ac_fn_c_try_compile
"5856"; then :
5857 ac_cv_header_stdc
=yes
5859 ac_cv_header_stdc
=no
5861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5863 if test $ac_cv_header_stdc = yes; then
5864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5871 $EGREP "memchr" >/dev
/null
2>&1; then :
5874 ac_cv_header_stdc
=no
5880 if test $ac_cv_header_stdc = yes; then
5881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "free" >/dev
/null
2>&1; then :
5891 ac_cv_header_stdc
=no
5897 if test $ac_cv_header_stdc = yes; then
5898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5899 if test "$cross_compiling" = yes; then :
5902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5929 if ac_fn_c_try_run
"5929"; then :
5932 ac_cv_header_stdc
=no
5934 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5935 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5940 { $as_echo "$as_me:${as_lineno-5940}: result: $ac_cv_header_stdc" >&5
5941 $as_echo "$ac_cv_header_stdc" >&6; }
5942 if test $ac_cv_header_stdc = yes; then
5944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5949 for ac_func
in setenv putenv
5951 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5952 ac_fn_c_check_func
"5952" "$ac_func" "$as_ac_var"
5953 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5954 cat >>confdefs.h
<<_ACEOF
5955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5962 ac_fn_c_check_func
"5962" "vfork" "ac_cv_func_vfork"
5963 if test "x$ac_cv_func_vfork" = xyes
; then :
5968 for ac_header
in dirent.h
5970 ac_fn_c_check_header_mongrel
"5970" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
5971 if test "x$ac_cv_header_dirent_h" = xyes
; then :
5972 cat >>confdefs.h
<<_ACEOF
5973 #define HAVE_DIRENT_H 1
5983 { $as_echo "$as_me:${as_lineno-5983}: checking for 64-bit X11 libraries" >&5
5984 $as_echo_n "checking for 64-bit X11 libraries... " >&6; }
5985 { $as_echo "$as_me:${as_lineno-5985}: checking for /usr/X11R6/lib64" >&5
5986 $as_echo_n "checking for /usr/X11R6/lib64... " >&6; }
5987 if ${ac_cv_file__usr_X11R6_lib64+:} false
; then :
5988 $as_echo_n "(cached) " >&6
5990 test "$cross_compiling" = yes &&
5991 as_fn_error $?
"cannot check for file existence when cross compiling" "5991" 5
5992 if test -r "/usr/X11R6/lib64"; then
5993 ac_cv_file__usr_X11R6_lib64
=yes
5995 ac_cv_file__usr_X11R6_lib64
=no
5998 { $as_echo "$as_me:${as_lineno-5998}: result: $ac_cv_file__usr_X11R6_lib64" >&5
5999 $as_echo "$ac_cv_file__usr_X11R6_lib64" >&6; }
6000 if test "x$ac_cv_file__usr_X11R6_lib64" = xyes
; then :
6002 LDFLAGS
="-L/usr/X11R6/lib64 ${LDFLAGS}"
6009 { $as_echo "$as_me:${as_lineno-6009}: checking if -Wno-pointer-sign accepted in CFLAGS" >&5
6010 $as_echo_n "checking if -Wno-pointer-sign accepted in CFLAGS... " >&6; }
6011 ac_save_CFLAGS
="$CFLAGS"
6012 CFLAGS
="$CFLAGS -Wno-pointer-sign"
6013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6026 if ac_fn_c_try_compile
"6026"; then :
6028 { $as_echo "$as_me:${as_lineno-6028}: result: yes" >&5
6029 $as_echo "yes" >&6; }
6032 CFLAGS
="$ac_save_CFLAGS"
6033 { $as_echo "$as_me:${as_lineno-6033}: result: no" >&5
6034 $as_echo "no" >&6; }
6036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6038 { $as_echo "$as_me:${as_lineno-6038}: checking for deflate in -lz" >&5
6039 $as_echo_n "checking for deflate in -lz... " >&6; }
6040 if ${ac_cv_lib_z_deflate+:} false
; then :
6041 $as_echo_n "(cached) " >&6
6043 ac_check_lib_save_LIBS
=$LIBS
6044 LIBS
="-lz -lz $LIBS"
6045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6048 /* Override any GCC internal prototype to avoid an error.
6049 Use char because int might match the return type of a GCC
6050 builtin and then its argument prototype would still apply. */
6063 if ac_fn_c_try_link
"6063"; then :
6064 ac_cv_lib_z_deflate
=yes
6066 ac_cv_lib_z_deflate
=no
6068 rm -f core conftest.err conftest.
$ac_objext \
6069 conftest
$ac_exeext conftest.
$ac_ext
6070 LIBS
=$ac_check_lib_save_LIBS
6072 { $as_echo "$as_me:${as_lineno-6072}: result: $ac_cv_lib_z_deflate" >&5
6073 $as_echo "$ac_cv_lib_z_deflate" >&6; }
6074 if test "x$ac_cv_lib_z_deflate" = xyes
; then :
6075 cat >>confdefs.h
<<_ACEOF
6084 { $as_echo "$as_me:${as_lineno-6084}: checking for va_copy" >&5
6085 $as_echo_n "checking for va_copy... " >&6; }
6086 if ${ac_cv_c_va_copy+:} false
; then :
6087 $as_echo_n "(cached) " >&6
6089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6102 if ac_fn_c_try_link
"6102"; then :
6103 ac_cv_c_va_copy
="yes"
6105 ac_cv_c_va_copy
="no"
6107 rm -f core conftest.err conftest.
$ac_objext \
6108 conftest
$ac_exeext conftest.
$ac_ext
6111 { $as_echo "$as_me:${as_lineno-6111}: result: $ac_cv_c_va_copy" >&5
6112 $as_echo "$ac_cv_c_va_copy" >&6; }
6113 if test "$ac_cv_c_va_copy" = "yes"
6116 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6119 { $as_echo "$as_me:${as_lineno-6119}: checking for __va_copy" >&5
6120 $as_echo_n "checking for __va_copy... " >&6; }
6121 if ${ac_cv_c___va_copy+:} false
; then :
6122 $as_echo_n "(cached) " >&6
6124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6125 /* end confdefs.h. */
6137 if ac_fn_c_try_link
"6137"; then :
6138 ac_cv_c___va_copy
="yes"
6140 ac_cv_c___va_copy
="no"
6142 rm -f core conftest.err conftest.
$ac_objext \
6143 conftest
$ac_exeext conftest.
$ac_ext
6146 { $as_echo "$as_me:${as_lineno-6146}: result: $ac_cv_c___va_copy" >&5
6147 $as_echo "$ac_cv_c___va_copy" >&6; }
6148 if test "$ac_cv_c___va_copy" = "yes"
6151 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6155 { $as_echo "$as_me:${as_lineno-6155}: checking if u_char defined" >&5
6156 $as_echo_n "checking if u_char defined... " >&6; }
6157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159 #include <sys/types.h>
6170 if ac_fn_c_try_compile
"6170"; then :
6172 $as_echo "#define HAVE_U_CHAR 1" >>confdefs.h
6174 { $as_echo "$as_me:${as_lineno-6174}: result: yes" >&5
6175 $as_echo "yes" >&6; }
6177 { $as_echo "$as_me:${as_lineno-6177}: result: no" >&5
6178 $as_echo "no" >&6; }
6180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6182 # Check whether --enable-optimize was given.
6183 if test "${enable_optimize+set}" = set; then :
6184 enableval
=$enable_optimize;
6187 CFLAGS
=`echo $CFLAGS | sed -e "s/ -O2//"`
6193 # Check whether --with-xpm was given.
6194 if test "${with_xpm+set}" = set; then :
6196 if test "$withval" != "no" -a "$withval" != "yes"; then
6197 CPPFLAGS
="${CPPFLAGS} -I$withval/include"
6198 LDFLAGS
="${LDFLAGS} -L$withval/lib"
6204 for ac_header
in X11
/xpm.h
6206 ac_fn_c_check_header_mongrel
"6206" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
6207 if test "x$ac_cv_header_X11_xpm_h" = xyes
; then :
6208 cat >>confdefs.h
<<_ACEOF
6209 #define HAVE_X11_XPM_H 1
6211 { $as_echo "$as_me:${as_lineno-6211}: checking for XpmCreateImageFromData in -lXpm" >&5
6212 $as_echo_n "checking for XpmCreateImageFromData in -lXpm... " >&6; }
6213 if ${ac_cv_lib_Xpm_XpmCreateImageFromData+:} false
; then :
6214 $as_echo_n "(cached) " >&6
6216 ac_check_lib_save_LIBS
=$LIBS
6217 LIBS
="-lXpm -lX11 $LIBS"
6218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6221 /* Override any GCC internal prototype to avoid an error.
6222 Use char because int might match the return type of a GCC
6223 builtin and then its argument prototype would still apply. */
6227 char XpmCreateImageFromData ();
6231 return XpmCreateImageFromData ();
6236 if ac_fn_c_try_link
"6236"; then :
6237 ac_cv_lib_Xpm_XpmCreateImageFromData
=yes
6239 ac_cv_lib_Xpm_XpmCreateImageFromData
=no
6241 rm -f core conftest.err conftest.
$ac_objext \
6242 conftest
$ac_exeext conftest.
$ac_ext
6243 LIBS
=$ac_check_lib_save_LIBS
6245 { $as_echo "$as_me:${as_lineno-6245}: result: $ac_cv_lib_Xpm_XpmCreateImageFromData" >&5
6246 $as_echo "$ac_cv_lib_Xpm_XpmCreateImageFromData" >&6; }
6247 if test "x$ac_cv_lib_Xpm_XpmCreateImageFromData" = xyes
; then :
6249 LIBS
="${LIBS} -lXpm"
6250 $as_echo "#define HAVE_XPM 1" >>confdefs.h
6254 { $as_echo "$as_me:${as_lineno-6254}: WARNING: Xpm library not found" >&5
6255 $as_echo "$as_me: WARNING: Xpm library not found" >&2;}
6259 { $as_echo "$as_me:${as_lineno-6259}: WARNING: Xpm header not found" >&5
6260 $as_echo "$as_me: WARNING: Xpm header not found" >&2;}
6268 #------------------------------------------------------------
6269 # AC_PROG_LD - find the path to the GNU or non-GNU linker
6270 # (This stuff ripped from libtool)
6271 #------------------------------------------------------------
6277 # Check whether --with-gnu-ld was given.
6278 if test "${with_gnu_ld+set}" = set; then :
6279 withval
=$with_gnu_ld; test "$withval" = no || xc_with_gnu_ld
=yes
6285 if test "$GCC" = yes; then
6286 # Check if gcc -print-prog-name=ld gives a path.
6287 { $as_echo "$as_me:${as_lineno-6287}: checking for ld used by GCC" >&5
6288 $as_echo_n "checking for ld used by GCC... " >&6; }
6291 # gcc leaves a trailing carriage return which upsets mingw
6292 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6294 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6297 # Accept absolute paths.
6298 [\\/]* |
[A-Za-z
]:[\\/]*)
6299 re_direlt
='/[^/][^/]*/\.\./'
6300 # Canonicalize the path of ld
6301 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
6302 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
6303 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
6305 test -z "$LD" && LD
="$ac_prog"
6308 # If it fails, then pretend we aren't using GCC.
6312 # If it is relative, then search for the first ld in PATH.
6313 xc_with_gnu_ld
=unknown
6316 elif test "$xc_with_gnu_ld" = yes; then
6317 { $as_echo "$as_me:${as_lineno-6317}: checking for GNU ld" >&5
6318 $as_echo_n "checking for GNU ld... " >&6; }
6320 { $as_echo "$as_me:${as_lineno-6320}: checking for non-GNU ld" >&5
6321 $as_echo_n "checking for non-GNU ld... " >&6; }
6323 if ${ac_cv_path_LD+:} false
; then :
6324 $as_echo_n "(cached) " >&6
6326 if test -z "$LD"; then
6327 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6328 for ac_dir
in $PATH; do
6329 test -z "$ac_dir" && ac_dir
=.
6330 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6331 ac_cv_path_LD
="$ac_dir/$ac_prog"
6332 # Check to see if the program is GNU ld. I'd rather use --version,
6333 # but apparently some GNU ld's only accept -v.
6334 # Break only if it was the GNU/non-GNU ld that we prefer.
6335 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
6336 test "$xc_with_gnu_ld" != no
&& break
6338 test "$xc_with_gnu_ld" != yes && break
6344 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
6349 if test -n "$LD"; then
6350 { $as_echo "$as_me:${as_lineno-6350}: result: $LD" >&5
6351 $as_echo "$LD" >&6; }
6353 { $as_echo "$as_me:${as_lineno-6353}: result: no" >&5
6354 $as_echo "no" >&6; }
6356 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "6356" 5
6357 { $as_echo "$as_me:${as_lineno-6357}: checking if the linker ($LD) is GNU ld" >&5
6358 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6359 if ${ac_cv_prog_gnu_ld+:} false
; then :
6360 $as_echo_n "(cached) " >&6
6362 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6363 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
6364 ac_cv_prog_gnu_ld
=yes
6366 ac_cv_prog_gnu_ld
=no
6369 { $as_echo "$as_me:${as_lineno-6369}: result: $ac_cv_prog_gnu_ld" >&5
6370 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6371 xc_with_gnu_ld
=$ac_cv_prog_gnu_ld
6378 xc_with_tcl_includes
=""
6379 xc_with_tk_includes
=""
6380 xc_with_tcl_libraries
=""
6381 xc_with_tk_libraries
=""
6386 # Check whether --with-cairo was given.
6387 if test "${with_cairo+set}" = set; then :
6388 withval
=$with_cairo;
6389 xc_with_cairo
=$withval
6390 if test "$withval" == "no" -o "$withval" == "NO"; then
6397 if test "x$xc_with_cairo" != "x" ; then
6398 $as_echo "#define HAVE_CAIRO 1" >>confdefs.h
6407 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6408 if test -n "$ac_tool_prefix"; then
6409 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6410 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6411 { $as_echo "$as_me:${as_lineno-6411}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6414 $as_echo_n "(cached) " >&6
6418 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir
=.
6426 for ac_exec_ext
in '' $ac_executable_extensions; do
6427 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6429 $as_echo "$as_me:${as_lineno-6429}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6440 if test -n "$PKG_CONFIG"; then
6441 { $as_echo "$as_me:${as_lineno-6441}: result: $PKG_CONFIG" >&5
6442 $as_echo "$PKG_CONFIG" >&6; }
6444 { $as_echo "$as_me:${as_lineno-6444}: result: no" >&5
6445 $as_echo "no" >&6; }
6450 if test -z "$ac_cv_path_PKG_CONFIG"; then
6451 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6452 # Extract the first word of "pkg-config", so it can be a program name with args.
6453 set dummy pkg-config
; ac_word
=$2
6454 { $as_echo "$as_me:${as_lineno-6454}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6457 $as_echo_n "(cached) " >&6
6459 case $ac_pt_PKG_CONFIG in
6461 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir
=.
6469 for ac_exec_ext
in '' $ac_executable_extensions; do
6470 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6472 $as_echo "$as_me:${as_lineno-6472}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6483 if test -n "$ac_pt_PKG_CONFIG"; then
6484 { $as_echo "$as_me:${as_lineno-6484}: result: $ac_pt_PKG_CONFIG" >&5
6485 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6487 { $as_echo "$as_me:${as_lineno-6487}: result: no" >&5
6488 $as_echo "no" >&6; }
6491 if test "x$ac_pt_PKG_CONFIG" = x
; then
6494 case $cross_compiling:$ac_tool_warned in
6496 { $as_echo "$as_me:${as_lineno-6496}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned
=yes ;;
6500 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6503 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6507 if test -n "$PKG_CONFIG"; then
6508 _pkg_min_version
=0.9.0
6509 { $as_echo "$as_me:${as_lineno-6509}: checking pkg-config is at least version $_pkg_min_version" >&5
6510 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6511 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6512 { $as_echo "$as_me:${as_lineno-6512}: result: yes" >&5
6513 $as_echo "yes" >&6; }
6515 { $as_echo "$as_me:${as_lineno-6515}: result: no" >&5
6516 $as_echo "no" >&6; }
6522 { $as_echo "$as_me:${as_lineno-6522}: checking for cairo" >&5
6523 $as_echo_n "checking for cairo... " >&6; }
6525 if test -n "$cairo_CFLAGS"; then
6526 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
6527 elif test -n "$PKG_CONFIG"; then
6528 if test -n "$PKG_CONFIG" && \
6529 { { $as_echo "$as_me:${as_lineno-6529}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6530 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6532 $as_echo "$as_me:${as_lineno-6532}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
6535 test "x$?" != "x0" && pkg_failed
=yes
6542 if test -n "$cairo_LIBS"; then
6543 pkg_cv_cairo_LIBS
="$cairo_LIBS"
6544 elif test -n "$PKG_CONFIG"; then
6545 if test -n "$PKG_CONFIG" && \
6546 { { $as_echo "$as_me:${as_lineno-6546}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5
6547 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
6549 $as_echo "$as_me:${as_lineno-6549}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }; then
6551 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
6552 test "x$?" != "x0" && pkg_failed
=yes
6562 if test $pkg_failed = yes; then
6563 { $as_echo "$as_me:${as_lineno-6563}: result: no" >&5
6564 $as_echo "no" >&6; }
6566 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6567 _pkg_short_errors_supported
=yes
6569 _pkg_short_errors_supported
=no
6571 if test $_pkg_short_errors_supported = yes; then
6572 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo" 2>&1`
6574 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo" 2>&1`
6576 # Put the nasty error message in config.log where it belongs
6577 echo "$cairo_PKG_ERRORS" >&5
6579 as_fn_error $?
"Package requirements (cairo) were not met:
6583 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6584 installed software in a non-standard prefix.
6586 Alternatively, you may set the environment variables cairo_CFLAGS
6587 and cairo_LIBS to avoid the need to call pkg-config.
6588 See the pkg-config man page for more details." "6588" 5
6589 elif test $pkg_failed = untried
; then
6590 { $as_echo "$as_me:${as_lineno-6590}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 { { $as_echo "$as_me:${as_lineno-6592}: error: in \`$ac_pwd':" >&5
6593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6594 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6595 is in your PATH or set the PKG_CONFIG environment variable to the full
6598 Alternatively, you may set the environment variables cairo_CFLAGS
6599 and cairo_LIBS to avoid the need to call pkg-config.
6600 See the pkg-config man page for more details.
6602 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6603 See \`config.log' for more details" "6603" 5; }
6605 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
6606 cairo_LIBS
=$pkg_cv_cairo_LIBS
6607 { $as_echo "$as_me:${as_lineno-6607}: result: yes" >&5
6608 $as_echo "yes" >&6; }
6613 { $as_echo "$as_me:${as_lineno-6613}: checking for fontconfig" >&5
6614 $as_echo_n "checking for fontconfig... " >&6; }
6616 if test -n "$fontconfig_CFLAGS"; then
6617 pkg_cv_fontconfig_CFLAGS
="$fontconfig_CFLAGS"
6618 elif test -n "$PKG_CONFIG"; then
6619 if test -n "$PKG_CONFIG" && \
6620 { { $as_echo "$as_me:${as_lineno-6620}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6621 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6623 $as_echo "$as_me:${as_lineno-6623}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 pkg_cv_fontconfig_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig" 2>/dev/null`
6626 test "x$?" != "x0" && pkg_failed
=yes
6633 if test -n "$fontconfig_LIBS"; then
6634 pkg_cv_fontconfig_LIBS
="$fontconfig_LIBS"
6635 elif test -n "$PKG_CONFIG"; then
6636 if test -n "$PKG_CONFIG" && \
6637 { { $as_echo "$as_me:${as_lineno-6637}: \$PKG_CONFIG --exists --print-errors \"fontconfig\""; } >&5
6638 ($PKG_CONFIG --exists --print-errors "fontconfig") 2>&5
6640 $as_echo "$as_me:${as_lineno-6640}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }; then
6642 pkg_cv_fontconfig_LIBS
=`$PKG_CONFIG --libs "fontconfig" 2>/dev/null`
6643 test "x$?" != "x0" && pkg_failed
=yes
6653 if test $pkg_failed = yes; then
6654 { $as_echo "$as_me:${as_lineno-6654}: result: no" >&5
6655 $as_echo "no" >&6; }
6657 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6658 _pkg_short_errors_supported
=yes
6660 _pkg_short_errors_supported
=no
6662 if test $_pkg_short_errors_supported = yes; then
6663 fontconfig_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig" 2>&1`
6665 fontconfig_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig" 2>&1`
6667 # Put the nasty error message in config.log where it belongs
6668 echo "$fontconfig_PKG_ERRORS" >&5
6670 as_fn_error $?
"Package requirements (fontconfig) were not met:
6672 $fontconfig_PKG_ERRORS
6674 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6675 installed software in a non-standard prefix.
6677 Alternatively, you may set the environment variables fontconfig_CFLAGS
6678 and fontconfig_LIBS to avoid the need to call pkg-config.
6679 See the pkg-config man page for more details." "6679" 5
6680 elif test $pkg_failed = untried
; then
6681 { $as_echo "$as_me:${as_lineno-6681}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 { { $as_echo "$as_me:${as_lineno-6683}: error: in \`$ac_pwd':" >&5
6684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6685 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
6686 is in your PATH or set the PKG_CONFIG environment variable to the full
6689 Alternatively, you may set the environment variables fontconfig_CFLAGS
6690 and fontconfig_LIBS to avoid the need to call pkg-config.
6691 See the pkg-config man page for more details.
6693 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6694 See \`config.log' for more details" "6694" 5; }
6696 fontconfig_CFLAGS
=$pkg_cv_fontconfig_CFLAGS
6697 fontconfig_LIBS
=$pkg_cv_fontconfig_LIBS
6698 { $as_echo "$as_me:${as_lineno-6698}: result: yes" >&5
6699 $as_echo "yes" >&6; }
6702 for ac_header
in ghostscript
/gdevdsp.h
6704 ac_fn_c_check_header_mongrel
"6704" "ghostscript/gdevdsp.h" "ac_cv_header_ghostscript_gdevdsp_h" "$ac_includes_default"
6705 if test "x$ac_cv_header_ghostscript_gdevdsp_h" = xyes
; then :
6706 cat >>confdefs.h
<<_ACEOF
6707 #define HAVE_GHOSTSCRIPT_GDEVDSP_H 1
6711 $as_echo "#define HAVE_GS 1" >>confdefs.h
6716 { $as_echo "$as_me:${as_lineno-6716}: WARNING: Building xcircuit without ghostscript rendering" >&5
6717 $as_echo "$as_me: WARNING: Building xcircuit without ghostscript rendering" >&2;}
6718 { $as_echo "$as_me:${as_lineno-6718}: WARNING: Install the ghostscript-devel package to solve this" >&5
6719 $as_echo "$as_me: WARNING: Install the ghostscript-devel package to solve this" >&2;}
6728 # For distributed installs, where the run-time files are installed in a
6729 # place that is a temporary staging area, like DESTDIR, but unlike DESTDIR,
6730 # the prefix is replaced by the destination directory, rather than appended
6732 DIST_DIR
="\${exec_prefix}"
6734 # Check whether --with-distdir was given.
6735 if test "${with_distdir+set}" = set; then :
6736 withval
=$with_distdir;
6737 if test "$withval" = "no" -o "$withval" = "NO" ; then
6738 DIST_DIR
="\${exec_prefix}"
6748 # Check whether --with-tcl was given.
6749 if test "${with_tcl+set}" = set; then :
6751 xc_with_tcl
=$withval
6752 if test "$withval" == "no" -o "$withval" == "NO"; then
6761 # Check whether --with-tk was given.
6762 if test "${with_tk+set}" = set; then :
6763 withval
=$with_tk; xc_with_tk
=$withval
6767 # Check whether --with-tclincls was given.
6768 if test "${with_tclincls+set}" = set; then :
6769 withval
=$with_tclincls; xc_with_tcl_includes
=$withval
6773 # Check whether --with-tkincls was given.
6774 if test "${with_tkincls+set}" = set; then :
6775 withval
=$with_tkincls; xc_with_tk_includes
=$withval
6779 # Check whether --with-tcllibs was given.
6780 if test "${with_tcllibs+set}" = set; then :
6781 withval
=$with_tcllibs; xc_with_tcl_libraries
=$withval
6785 # Check whether --with-tklibs was given.
6786 if test "${with_tklibs+set}" = set; then :
6787 withval
=$with_tklibs; xc_with_tk_libraries
=$withval
6791 # -----------------------------------------------------------------------
6793 # Find the Tcl build configuration file "tclConfig.sh"
6795 # -----------------------------------------------------------------------
6797 if test "x$xc_with_tcl" != "x" ; then
6802 { $as_echo "$as_me:${as_lineno-6802}: checking for tclConfig.sh" >&5
6803 $as_echo_n "checking for tclConfig.sh... " >&6; }
6806 if test "$xc_with_tcl" = "no" ; then
6808 elif test "$xc_with_tcl" != "yes" ; then
6810 # Verify that a tclConfig.sh file exists in the directory specified
6816 if test -r "$dir/tclConfig.sh" ; then
6817 tcl_config_sh
="$dir/tclConfig.sh"
6819 elif test -r "$dir/lib/tclConfig.sh" ; then
6820 tcl_config_sh
="$dir/lib/tclConfig.sh"
6826 # Otherwise, search for Tcl configuration file.
6829 # 1. Search previously named locations.
6835 if test -r "$dir/tclConfig.sh" ; then
6836 tcl_config_sh
="$dir/tclConfig.sh"
6838 elif test -r "$dir/lib/tclConfig.sh" ; then
6839 tcl_config_sh
="$dir/lib/tclConfig.sh"
6844 # 2. Search standard locations.
6846 if test "x$tcl_config_sh" = "x" ; then
6848 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6852 `ls -dr /usr/share/tcltk/tcl[7-9].[0-9]* 2>/dev/null` \
6858 if test -r "$dir/tclConfig.sh" ; then
6859 tcl_config_sh
="$dir/tclConfig.sh"
6861 elif test -r "$dir/lib/tclConfig.sh" ; then
6862 tcl_config_sh
="$dir/lib/tclConfig.sh"
6869 { $as_echo "$as_me:${as_lineno-6869}: result: ${tcl_config_sh}" >&5
6870 $as_echo "${tcl_config_sh}" >&6; }
6872 if test "x$tcl_config_sh" = "x" ; then
6873 echo "can't find Tcl configuration script \"tclConfig.sh\""
6874 echo "Reverting to non-Tcl compilation"
6879 # -----------------------------------------------------------------------
6881 # Find the Tk build configuration file "tkConfig.sh"
6883 # -----------------------------------------------------------------------
6885 if test "x$xc_with_tcl" != "x" ; then
6886 { $as_echo "$as_me:${as_lineno-6886}: checking for tkConfig.sh" >&5
6887 $as_echo_n "checking for tkConfig.sh... " >&6; }
6889 if test "$xc_with_tk" != "yes"; then
6891 # Verify that a tkConfig.sh file exists in the directory specified
6892 # by --with-tcl or --with-tk.
6898 if test -r "$dir/tkConfig.sh" ; then
6899 tk_config_sh
="$dir/tkConfig.sh"
6901 elif test -r "$dir/lib/tkConfig.sh" ; then
6902 tk_config_sh
="$dir/lib/tkConfig.sh"
6908 # Search for Tk configuration file.
6912 # 1. Search previously named locations.
6918 if test -r "$dir/tkConfig.sh" ; then
6919 tk_config_sh
="$dir/tkConfig.sh"
6921 elif test -r "$dir/lib/tkConfig.sh" ; then
6922 tk_config_sh
="$dir/lib/tkConfig.sh"
6927 # 2. Search standard locations.
6929 if test "x$tk_config_sh" = "x" ; then
6933 `ls -dr /usr/local/lib/tk[7-9].[0-9]* 2>/dev/null` \
6934 `ls -dr /usr/lib/tk[7-9].[0-9]* 2>/dev/null` \
6935 `ls -dr /usr/local/tk/tk[7-9].[0-9]* 2>/dev/null` \
6936 `ls -dr /usr/local/tk[7-9].[0-9]* 2>/dev/null` \
6938 `ls -dr /usr/local/lib/tcl[7-9].[0-9]* 2>/dev/null` \
6939 `ls -dr /usr/lib/tcl/tk[7-9].[0-9]* 2>/dev/null` \
6940 `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \
6941 `ls -dr /usr/share/tcltk/tk[7-9].[0-9]* 2>/dev/null` \
6947 if test -r "$dir/tkConfig.sh" ; then
6948 tk_config_sh
="$dir/tkConfig.sh"
6950 elif test -r "$dir/lib/tkConfig.sh" ; then
6951 tk_config_sh
="$dir/lib/tkConfig.sh"
6957 { $as_echo "$as_me:${as_lineno-6957}: result: ${tk_config_sh}" >&5
6958 $as_echo "${tk_config_sh}" >&6; }
6960 if test "x$tk_config_sh" = "x" ; then
6961 echo "can't find Tk configuration script \"tkConfig.sh\""
6962 echo "Reverting to non-Tcl compilation"
6967 # -----------------------------------------------------------------------
6969 # Source in the Tcl/Tk configuration scripts.
6971 # This didn't work so well in the pre-8.5 days, but
6972 # seems to be okay now.
6974 # -----------------------------------------------------------------------
6976 if test "x$xc_with_tcl" != "x" ; then
6980 # Should probably trust the config file contents, but this configure
6981 # file checks the Tcl and Tk include and lib directories. Since
6982 # the config file doesn't separate out the libraries from the strings
6983 # passed to the compiler/linker, do it manually here.
6985 # Extract TCL_LIB_DIR from TCL_LIB_SPEC
6986 # Extract TK_LIB_DIR from TK_LIB_SPEC
6987 # Extract TCL_INC_DIR from TCL_INCLUDE_SPEC
6988 # Extract TK_INC_DIR from TK_INCLUDE_SPEC
6990 # These will be the defaults unless overridden by configure command line
6992 tmpstr
=${TCL_LIB_SPEC#*-L}
6993 TCL_LIB_DIR
=${tmpstr% -l*}
6994 tmpstr
=${TK_LIB_SPEC#*-L}
6995 TK_LIB_DIR
=${tmpstr% -l*}
6996 TCL_INC_DIR
=${TCL_INCLUDE_SPEC#*-I}
6997 TK_INC_DIR
=${TK_INCLUDE_SPEC#*-I}
6999 LIBS
="${TCL_LIBS} ${LIBS}"
7001 if test "$TCL_VERSION" = "$TK_VERSION" ; then
7004 echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)"
7005 echo "Reverting to non-Tcl compilation"
7010 # -----------------------------------------------------------------------
7011 # Rely on TCL_INCLUDE_SPEC from tclConfig.sh unless "--with-tclincls"
7012 # overrides. With TCL_INCLUDE_SPEC, pull out TCL_INC_DIR
7013 # -----------------------------------------------------------------------
7015 if test "x$xc_with_tcl" != "x" ; then
7016 if test "x${xc_with_tcl_includes}" != "x" ; then
7017 if test -r "${xc_with_tcl_includes}/tcl.h" ; then
7018 TCL_INC_DIR
=${xc_with_tcl_includes}
7019 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
7020 echo "Can't find tcl.h in \"${xc_with_tcl_includes}\""
7021 echo "Reverting to non-Tcl compilation"
7024 elif test "x${TCL_INCLUDE_SPEC}" == "x" ; then
7026 ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7027 ${TCL_PREFIX}/include \
7028 ${TCL_SRC_DIR}/generic \
7031 if test -r "$dir/tcl.h" ; then
7033 TCL_INCLUDE_SPEC
="-I${TCL_INC_DIR}"
7037 if test "x${TCL_INC_DIR}" = "x" ; then
7038 echo "Can't find tcl.h header file"
7039 echo "Reverting to non-Tcl compilation"
7043 TCL_INC_DIR
=`echo ${TCL_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7047 # -----------------------------------------------------------------------
7048 # Rely on TK_INCLUDE_SPEC from tkConfig.sh unless "--with-tkincls"
7049 # overrides. With TK_INCLUDE_SPEC, pull out TK_INC_DIR
7050 # -----------------------------------------------------------------------
7052 if test "x$xc_with_tcl" != "x" ; then
7053 if test "x${xc_with_tk_includes}" != "x" ; then
7054 if test -r "${xc_with_tk_includes}/tk.h" ; then
7055 TK_INC_DIR
=${xc_with_tk_includes}
7056 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7057 echo "Can't find tk.h in \"${xc_with_tk_includes}\""
7058 echo "Reverting to non-Tcl compilation"
7061 elif test "x${TK_INCLUDE_SPEC}" == "x" ; then
7063 ${TK_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \
7064 ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \
7065 ${TK_PREFIX}/include \
7066 ${TK_SRC_DIR}/generic \
7069 if test -r "$dir/tk.h" ; then
7071 TK_INCLUDE_SPEC
="-I${TK_INC_DIR}"
7075 if test "x${TK_INC_DIR}" = "x" ; then
7076 echo "Can't find tk.h header file"
7077 echo "Reverting to non-Tcl compilation"
7081 TK_INC_DIR
=`echo ${TK_INCLUDE_SPEC} | sed -e '/-I/s/-I//'`
7085 # --------------------------------------------------------------
7086 # Rely on TCL_LIB_SPEC from tclConfig.sh unless "--with-tcllibs"
7087 # overrides. With TCL_LIB_SPEC, pull out TCL_LIB_DIR
7088 # --------------------------------------------------------------
7090 if test "x$xc_with_tcl" != "x" ; then
7091 if test "x${xc_with_tcl_libraries}" != "x" ; then
7094 "${xc_with_tcl_libraries}/${TCL_LIB_FILE}" \
7095 "${xc_with_tcl_libraries}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7097 if test -r "$libname" ; then
7098 TCL_LIB_DIR
="${xc_with_tcl_libraries}"
7102 if test "x${TCL_LIB_DIR}" == "x" ; then
7103 echo "Can't find tcl library in \"${xc_with_tcl_libraries}\""
7104 echo "Reverting to non-Tcl compile"
7107 elif test "x${TCL_LIB_SPEC}" == "x" ; then
7108 for libpfix
in "lib64" "lib"
7110 libname
="${TCL_EXEC_PREFIX}/${libpfix}/lib${TCL_LIB_NAME}${SHDLIB_EXT}"
7111 if test -r "$libname" ; then
7112 TCL_LIB_DIR
="${TCL_EXEC_PREFIX}/${libpfix}"
7116 if test "x${TCL_LIB_DIR}" = "x" ; then
7117 echo "Can't find tcl library"
7118 echo "Reverting to non-Tcl compile"
7122 TCL_LIB_DIR
=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7126 # --------------------------------------------------------------
7127 # Rely on TK_LIB_SPEC from tkConfig.sh unless "--with-tklibs"
7128 # overrides. With TK_LIB_SPEC, pull out TK_LIB_DIR
7129 # --------------------------------------------------------------
7131 if test "x$xc_with_tcl" != "x" ; then
7132 if test "x${xc_with_tk_libraries}" != "x" ; then
7135 "${xc_with_tk_libraries}/${TK_LIB_FILE}" \
7136 "${xc_with_tk_libraries}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7138 if test -r "$libname" ; then
7139 TK_LIB_DIR
="${xc_with_tk_libraries}"
7143 if test "x${TK_LIB_DIR}" == "x" ; then
7144 echo "Can't find tk library in \"${xc_with_tk_libraries}\""
7145 echo "Reverting to non-Tcl compile"
7148 elif test "x${TK_LIB_SPEC}" == "x" ; then
7149 for libpfix
in "lib64" "lib"
7151 libname
="${TK_EXEC_PREFIX}/${libpfix}/lib${TK_LIB_NAME}${SHDLIB_EXT}"
7152 if test -r "$libname" ; then
7153 TK_LIB_DIR
="${TK_EXEC_PREFIX}/${libpfix}"
7157 if test "x${TK_LIB_DIR}" = "x" ; then
7158 echo "Can't find tk library"
7159 echo "Reverting to non-Tcl compile"
7163 TK_LIB_DIR
=`echo ${TCL_LIB_SPEC} | sed -e '/-L/s/-L//' -e '/-l/s/-l.*//'`
7167 #--------------------------------------------------------------------
7168 # If TCL_LIB_SPEC and/or TK_LIB_SPEC do not exist, construct them
7169 #--------------------------------------------------------------------
7171 if test "x$xc_with_tcl" != "x" ; then
7172 if test "x${TCL_LIB_SPEC}" == "x" ; then
7174 *-sunos4*|
*-*-netbsd|NetBSD-
*|FreeBSD-
*|
*-*-openbsd*|OpenBSD-
*)
7175 TCL_LIB_NAME
="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
7178 TCL_LIB_NAME
="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}"
7181 TCL_LIB_SPEC
="-L${TCL_LIB_DIR} -l${TCL_LIB_NAME}"
7184 if test "x${TK_LIB_SPEC}" == "x" ; then
7186 *-sunos4*|
*-*-netbsd|NetBSD-
*|FreeBSD-
*|
*-*-openbsd*|OpenBSD-
*)
7187 TK_LIB_NAME
="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}"
7190 TK_LIB_NAME
="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}"
7193 TK_LIB_SPEC
="-L${TK_LIB_DIR} -l${TK_LIB_NAME}"
7196 # Find the version of "wish" that corresponds to TCL_EXEC_PREFIX
7197 # We really ought to run "ldd" to confirm that the linked libraries match.
7199 { $as_echo "$as_me:${as_lineno-7199}: checking for wish executable" >&5
7200 $as_echo_n "checking for wish executable... " >&6; }
7202 ${TK_EXEC_PREFIX}/bin \
7209 wish
${TK_VERSION}.exe
7211 if test -r "$dir/$wishexe" ; then
7212 WISH_EXE
=$dir/$wishexe
7216 if test "x${WISH_EXE}" != "x" ; then
7220 if test "x${WISH_EXE}" = "x" ; then
7221 echo "Warning: Can't find executable for \"wish\". You may have to"
7222 echo "manually set the value for WISH_EXE in the xcircuit startup script."
7223 { $as_echo "$as_me:${as_lineno-7223}: result: no" >&5
7224 $as_echo "no" >&6; }
7226 { $as_echo "$as_me:${as_lineno-7226}: result: ${WISH_EXE}" >&5
7227 $as_echo "${WISH_EXE}" >&6; }
7230 # Have to define SHDLIB_EXT here even though we have to do it below, too.
7242 SHDLIB_EXT
=".so.${TCL_LIB_FILE##*.so.}"
7251 # -----------------------------------------------------------------------
7253 # Tk libraries and header files
7255 # -----------------------------------------------------------------------
7257 if test "x$xc_with_tcl" != "x" ; then
7258 INC_SPECS
="${INC_SPECS} ${TCL_INCLUDE_SPEC} ${TK_INCLUDE_SPEC}"
7259 LIB_SPECS
="${LIB_SPECS} ${TCL_LIB_SPEC} ${TK_LIB_SPEC}"
7261 if test "x${loader_run_path}" = "x" ; then
7262 loader_run_path
="${TCL_LIB_DIR}"
7264 loader_run_path
="${TCL_LIB_DIR}:${loader_run_path}"
7267 #--------------------------------------------------------------------
7269 # Check if we can generate shared libraries on this system. Set flags
7270 # to generate shared libraries for systems that we know about. Start
7271 # with the values found in tclConfig.sh, make changes as we know about
7272 # the different systems.
7274 #--------------------------------------------------------------------
7276 # Initialize shared library build variables
7278 if test "x${TCL_SHLIB_SUFFIX}" == "x" ; then
7281 SHDLIB_EXT
="${TCL_SHLIB_SUFFIX}"
7284 if test "x${TCL_SHLIB_LD}" == "x" ; then
7286 # Construct shared library build arguments the painful way
7287 # This is not expected to be necessary, so the number of
7288 # supported systems has been pared down to a minimum.
7290 LDDL_FLAGS
="-shared"
7298 SHLIB_LIB_SPECS
="${LIB_SPECS}"
7299 if test "${xc_with_gnu_ld}" = "yes" ; then
7300 LDDL_FLAGS
="-dynamiclib -bind_at_load"
7302 LDDL_FLAGS
="-single_module -dynamiclib -flat_namespace"
7303 LDDL_FLAGS
="${LDDL_FLAGS} -undefined suppress -noprebind"
7304 SHLIB_CFLAGS
="-I/sw/include -fno-common"
7309 $as_echo "#define CYGWIN 1" >>confdefs.h
7312 LDDL_FLAGS
="-shared -Wl,--enable-auto-image-base -Wl,-rpath,${loader_run_path}"
7313 SHLIB_LIB_SPECS
="${LIB_SPECS}"
7317 SHLIB_CFLAGS
="-fPIC"
7318 LDDL_FLAGS
='-shared -Wl,-soname,$@'
7319 LD_RUN_PATH
="-Wl,-rpath,${loader_run_path}"
7321 EXTRA_LIB_SPECS
="-ldl"
7325 # AMD 64-bit archictecture
7326 # Add -fPIC to standard compile switch
7327 CFLAGS
="${CFLAGS} -fPIC"
7332 *-netbsd*|
*-freebsd*|
*-openbsd*)
7333 # Not available on all versions: check for include file.
7334 ac_fn_c_check_header_mongrel
"7334" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7335 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7342 if test "$test_ok" = yes; then
7343 SHLIB_CFLAGS
="-fpic"
7345 LDDL_FLAGS
="-shared"
7350 if test "$GCC" = "yes" ; then
7351 CFLAGS
="-fPIC ${CFLAGS}"
7356 # Rely on shared lib arguments in tclConfig.sh
7358 SHLIB_LD
="${TCL_SHLIB_LD}"
7360 LDDL_FLAGS
="${TCL_LD_FLAGS}"
7365 LD_RUN_PATH
="-Wl,-rpath,${loader_run_path}"
7370 # If we're running gcc, then set SHLIB_CFLAGS flags for compiling
7371 # shared libraries for gcc, instead of those of the vendor's
7374 if test "$GCC" = "yes" ; then
7375 if test "x${TCL_SHLIB_CFLAGS}" = "x" ; then
7376 SHLIB_CFLAGS
="-fPIC ${SHLIB_CFLAGS}"
7378 SHLIB_CFLAGS
="${TCL_SHLIB_CFLAGS} ${SHLIB_CFLAGS}"
7381 CFLAGS
="${CFLAGS} ${SHLIB_CFLAGS}"
7383 if test "${xc_with_gnu_ld}" = "yes" ; then
7384 LDDL_FLAGS
="${LDDL_FLAGS} -Wl,--version-script=symbol.map"
7402 # Check whether --enable-asg was given.
7403 if test "${enable_asg+set}" = set; then :
7404 enableval
=$enable_asg;
7405 $as_echo "#define ASG 1" >>confdefs.h
7407 $as_echo "#define CONFIGURED 1" >>confdefs.h
7409 SUBDIRS
="asg spiceparser"
7410 SUBLIB
="asg/libasg.a spiceparser/libspiceparser.a"
7415 # Check whether --enable-lgf was given.
7416 if test "${enable_lgf+set}" = set; then :
7417 enableval
=$enable_lgf;
7421 $as_echo "#define LGF 1" >>confdefs.h
7427 # Check whether --enable-focus-fix was given.
7428 if test "${enable_focus_fix+set}" = set; then :
7429 enableval
=$enable_focus_fix;
7432 $as_echo "#define INPUT_FOCUS 1" >>confdefs.h
7439 # Check whether --with-gs was given.
7440 if test "${with_gs+set}" = set; then :
7442 if test -f "$withval"; then
7450 # Extract the first word of "gs", so it can be a program name with args.
7451 set dummy gs
; ac_word
=$2
7452 { $as_echo "$as_me:${as_lineno-7452}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_GS_EXEC+:} false
; then :
7455 $as_echo_n "(cached) " >&6
7457 if test -n "$GS_EXEC"; then
7458 ac_cv_prog_GS_EXEC
="$GS_EXEC" # Let the user override the test.
7460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir
=.
7465 for ac_exec_ext
in '' $ac_executable_extensions; do
7466 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_GS_EXEC
=""
7468 $as_echo "$as_me:${as_lineno-7468}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 test -z "$ac_cv_prog_GS_EXEC" && ac_cv_prog_GS_EXEC
="gs"
7478 GS_EXEC
=$ac_cv_prog_GS_EXEC
7479 if test -n "$GS_EXEC"; then
7480 { $as_echo "$as_me:${as_lineno-7480}: result: $GS_EXEC" >&5
7481 $as_echo "$GS_EXEC" >&6; }
7483 { $as_echo "$as_me:${as_lineno-7483}: result: no" >&5
7484 $as_echo "no" >&6; }
7490 cat >>confdefs.h
<<_ACEOF
7491 #define GS_EXEC "$GS_EXEC"
7496 # Check whether --with-ngspice was given.
7497 if test "${with_ngspice+set}" = set; then :
7498 withval
=$with_ngspice;
7499 if test -f "$withval"; then
7507 # Extract the first word of "ngspice", so it can be a program name with args.
7508 set dummy ngspice
; ac_word
=$2
7509 { $as_echo "$as_me:${as_lineno-7509}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if ${ac_cv_prog_SPICE_EXEC+:} false
; then :
7512 $as_echo_n "(cached) " >&6
7514 if test -n "$SPICE_EXEC"; then
7515 ac_cv_prog_SPICE_EXEC
="$SPICE_EXEC" # Let the user override the test.
7517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir
=.
7522 for ac_exec_ext
in '' $ac_executable_extensions; do
7523 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_SPICE_EXEC
=""
7525 $as_echo "$as_me:${as_lineno-7525}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 test -z "$ac_cv_prog_SPICE_EXEC" && ac_cv_prog_SPICE_EXEC
="ngspice"
7535 SPICE_EXEC
=$ac_cv_prog_SPICE_EXEC
7536 if test -n "$SPICE_EXEC"; then
7537 { $as_echo "$as_me:${as_lineno-7537}: result: $SPICE_EXEC" >&5
7538 $as_echo "$SPICE_EXEC" >&6; }
7540 { $as_echo "$as_me:${as_lineno-7540}: result: no" >&5
7541 $as_echo "no" >&6; }
7547 cat >>confdefs.h
<<_ACEOF
7548 #define SPICE_EXEC "$SPICE_EXEC"
7557 # Check whether --with-python was given.
7558 if test "${with_python+set}" = set; then :
7559 withval
=$with_python; xc_with_python
=$withval
7563 if test "x$xc_with_tcl" != "x" ; then
7565 elif test "$xc_with_python" = "no" ; then
7567 elif test "$xc_with_python" = "yes" ; then
7568 # Extract the first word of "python", so it can be a program name with args.
7569 set dummy python
; ac_word
=$2
7570 { $as_echo "$as_me:${as_lineno-7570}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_path_PYTHON+:} false
; then :
7573 $as_echo_n "(cached) " >&6
7577 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
7580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir
=.
7585 for ac_exec_ext
in '' $ac_executable_extensions; do
7586 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
7588 $as_echo "$as_me:${as_lineno-7588}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 PYTHON
=$ac_cv_path_PYTHON
7599 if test -n "$PYTHON"; then
7600 { $as_echo "$as_me:${as_lineno-7600}: result: $PYTHON" >&5
7601 $as_echo "$PYTHON" >&6; }
7603 { $as_echo "$as_me:${as_lineno-7603}: result: no" >&5
7604 $as_echo "no" >&6; }
7608 elif test "x$xc_with_python" != x
; then
7609 test -f "$xc_with_python" && PYTHON
=$xc_with_python
7612 if test "x$PYTHON" != x
; then
7613 _py_version
=`$PYTHON -c 'import sys; print sys.version[0:3]'`
7614 _py_prefix
=`$PYTHON -c 'import sys; print sys.prefix'`
7615 _py_exec_prefix
=`$PYTHON -c 'import sys; print sys.exec_prefix'`
7617 _py_include
="$_py_prefix/include/python$_py_version"
7618 _py_lib
="$_py_exec_prefix/lib/python$_py_version/config"
7619 _py_makefile
="$_py_lib/Makefile"
7621 if test $_py_version = 1.5; then
7624 echo "*** Python version 1.5 detected: This version of Python has a known fatal"
7625 echo "*** bug. Disabling Python interface. If you want the embedded Python"
7626 echo "*** interface, you will need to get an updated version of Python."
7632 if test "x$PYTHON" != x
; then
7633 if test -f $_py_makefile; then
7634 _py_libs
=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $_py_makefile`
7635 _py_libm
=`sed -n -e 's/^LIBM=\(.*\)/\1/p' $_py_makefile`
7637 _py_libs
='-lpthread -ldl -lutil -ldb'
7641 # Now that we think we know where the python include and
7642 # library files are, make sure we can build a small
7643 # program against them.
7644 _save_CPPFLAGS
=${CPPFLAGS}
7645 _save_LDFLAGS
=${LDFLAGS}
7648 CPPFLAGS
="$CPPFLAGS -I$_py_include"
7649 LDFLAGS
="$LDFLAGS -L$_py_lib"
7651 case "$target_os" in
7653 PYLIB
="-lpython$_py_version"
7654 LIBS
="$PYLIB.dll $LIBS $X_PRE_LIBS $_py_libs"
7657 LIBS
="$LIBS -lpython$_py_version $_py_libs $_py_libm"
7663 ac_fn_c_check_header_mongrel
"7663" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
7664 if test "x$ac_cv_header_Python_h" = xyes
; then :
7666 { $as_echo "$as_me:${as_lineno-7666}: checking for Py_Initialize in -lpython$_py_version" >&5
7667 $as_echo_n "checking for Py_Initialize in -lpython$_py_version... " >&6; }
7668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7679 if ac_fn_c_try_link
"7679"; then :
7683 { $as_echo "$as_me:${as_lineno-7683}: result: yes" >&5
7684 $as_echo "yes" >&6; }
7685 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
7688 { $as_echo "$as_me:${as_lineno-7688}: result: no" >&5
7689 $as_echo "no" >&6; }
7691 rm -f core conftest.err conftest.
$ac_objext \
7692 conftest
$ac_exeext conftest.
$ac_ext
7697 if test "x$HAVE_PYTHON" = x0
; then
7698 CPPFLAGS
=$_save_CPPFLAGS
7699 LDFLAGS
=$_save_LDFLAGS
7705 if test "x$PYTHON" != x
; then
7706 STARTUP_FILE
="xcstartup.py"
7707 INTERP_PATH
="python"
7709 SUBDIRS
="${SUBDIRS} Xw"
7710 SUBLIB
="${SUBLIB} Xw/libxcXw.a"
7711 XCIRCUIT_TARGET
="xcircuit"
7712 elif test "x$xc_with_tcl" != "x" ; then
7714 STARTUP_FILE
="xcstartup.tcl"
7716 WRAPPER_SCRIPT
="wrapper.tcl"
7717 $as_echo "#define TCL_WRAPPER 1" >>confdefs.h
7719 XCIRCUIT_TARGET
="tcl"
7720 ALL_TARGET
="all-recursive"
7721 INSTALL_TARGET
="install-recursive"
7723 STARTUP_FILE
="startup.script"
7726 SUBDIRS
="${SUBDIRS} Xw"
7727 SUBLIB
="${SUBLIB} Xw/libxcXw.a"
7728 XCIRCUIT_TARGET
="xcircuit"
7731 # Add -lm last to LDFLAGS, or Tcl/Tk's addition of -lieee can cause
7733 EXTRA_LIB_SPECS
="$EXTRA_LIB_SPECS -lm"
7736 # Check whether --enable-memdebug was given.
7737 if test "${enable_memdebug+set}" = set; then :
7738 enableval
=$enable_memdebug;
7739 if test "x$xc_with_tcl" = "x" ; then
7740 LIBS
="${LIBS} -lefence"
7742 $as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h
7772 ac_config_files
="$ac_config_files Makefile Xw/Makefile asg/Makefile spiceparser/Makefile"
7774 cat >confcache
<<\_ACEOF
7775 # This file is a shell script that caches the results of configure
7776 # tests run on this system so they can be shared between configure
7777 # scripts and configure runs, see configure's option --config-cache.
7778 # It is not useful on other systems. If it contains results you don't
7779 # want to keep, you may remove or edit it.
7781 # config.status only pays attention to the cache file if you give it
7782 # the --recheck option to rerun configure.
7784 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7785 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7790 # The following way of writing the cache mishandles newlines in values,
7791 # but we know of no workaround that is simple, portable, and efficient.
7792 # So, we kill variables containing newlines.
7793 # Ultrix sh set writes to stderr and can't be redirected directly,
7794 # and sets the high bit in the cache file unless we assign to the vars.
7796 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7797 eval ac_val
=\$
$ac_var
7801 *_cv_
*) { $as_echo "$as_me:${as_lineno-7801}: WARNING: cache variable $ac_var contains a newline" >&5
7802 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7805 _ | IFS | as_nl
) ;; #(
7806 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7807 *) { eval $ac_var=; unset $ac_var;} ;;
7813 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7814 *${as_nl}ac_space
=\
*)
7815 # `set' does not quote correctly, so add quotes: double-quote
7816 # substitution turns \\\\ into \\, and sed turns \\ into \.
7819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7822 # `set' quotes correctly as required by POSIX, so do not add quotes.
7823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7832 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7834 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7836 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7837 if test -w "$cache_file"; then
7838 if test "x$cache_file" != "x/dev/null"; then
7839 { $as_echo "$as_me:${as_lineno-7839}: updating cache $cache_file" >&5
7840 $as_echo "$as_me: updating cache $cache_file" >&6;}
7841 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7842 cat confcache
>"$cache_file"
7844 case $cache_file in #(
7846 mv -f confcache
"$cache_file"$$
&&
7847 mv -f "$cache_file"$$
"$cache_file" ;; #(
7849 mv -f confcache
"$cache_file" ;;
7854 { $as_echo "$as_me:${as_lineno-7854}: not updating unwritable cache $cache_file" >&5
7855 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7860 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7861 # Let make expand exec_prefix.
7862 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7864 # Transform confdefs.h into DEFS.
7865 # Protect against shell expansion while executing Makefile rules.
7866 # Protect against Makefile macro expansion.
7868 # If the first sed substitution is executed (which looks for macros that
7869 # take arguments), then branch to the quote section. Otherwise,
7870 # look for a macro that doesn't take arguments.
7880 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7882 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7886 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7899 DEFS
=`sed -n "$ac_script" confdefs.h`
7905 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7906 # 1. Remove the extension, and $U if already installed.
7907 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7908 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7910 # will be set to the directory where LIBOBJS objects are built.
7911 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7912 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7916 LTLIBOBJS
=$ac_ltlibobjs
7919 { $as_echo "$as_me:${as_lineno-7919}: checking that generated files are newer than configure" >&5
7920 $as_echo_n "checking that generated files are newer than configure... " >&6; }
7921 if test -n "$am_sleep_pid"; then
7922 # Hide warnings about reused PIDs.
7923 wait $am_sleep_pid 2>/dev
/null
7925 { $as_echo "$as_me:${as_lineno-7925}: result: done" >&5
7926 $as_echo "done" >&6; }
7927 if test -n "$EXEEXT"; then
7929 am__EXEEXT_FALSE
='#'
7935 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7936 as_fn_error $?
"conditional \"AMDEP\" was never defined.
7937 Usually this means the macro was only invoked conditionally." "7937" 5
7939 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7940 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
7941 Usually this means the macro was only invoked conditionally." "7941" 5
7944 : "${CONFIG_STATUS=./config.status}"
7946 ac_clean_files_save
=$ac_clean_files
7947 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7948 { $as_echo "$as_me:${as_lineno-7948}: creating $CONFIG_STATUS" >&5
7949 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7951 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7953 # Generated by $as_me.
7954 # Run this file to recreate the current configuration.
7955 # Compiler output produced by configure, useful for debugging
7956 # configure, is in config.log if it exists.
7962 SHELL=\${CONFIG_SHELL-$SHELL}
7965 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7966 ## -------------------- ##
7967 ## M4sh Initialization. ##
7968 ## -------------------- ##
7970 # Be more Bourne compatible
7971 DUALCASE
=1; export DUALCASE
# for MKS sh
7972 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7975 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7976 # is contrary to our usage. Disable this feature.
7977 alias -g '${1+"$@"}'='"$@"'
7978 setopt NO_GLOB_SUBST
7980 case `(set -o) 2>/dev/null` in #(
7992 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7993 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7994 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7996 # Prefer a ksh shell builtin over an external printf program on Solaris,
7997 # but without wasting forks for bash or zsh.
7998 if test -z "$BASH_VERSION$ZSH_VERSION" \
7999 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8000 as_echo='print
-r --'
8001 as_echo_n='print
-rn --'
8002 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8003 as_echo='printf %s
\n'
8004 as_echo_n='printf %s
'
8006 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8007 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
8008 as_echo_n='/usr
/ucb
/echo -n'
8010 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8011 as_echo_n_body='eval
8015 expr "X$arg" : "X\\(.*\\)$as_nl";
8016 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8018 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
8020 export as_echo_n_body
8021 as_echo_n='sh
-c $as_echo_n_body as_echo
'
8024 as_echo='sh
-c $as_echo_body as_echo
'
8027 # The user is always right.
8028 if test "${PATH_SEPARATOR+set}" != set; then
8030 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8031 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8038 # We need space, tab and new line, in precisely that order. Quoting is
8039 # there to prevent editors from complaining about space-tab.
8040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8041 # splitting by setting IFS to empty value.)
8044 # Find who we are. Look in the path if we contain no directory separator.
8047 *[\\/]* ) as_myself=$0 ;;
8048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 test -z "$as_dir" && as_dir=.
8053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8059 # We did not find ourselves, most probably we were run as `sh COMMAND'
8060 # in which case we are not to be found in the path.
8061 if test "x$as_myself" = x
; then
8064 if test ! -f "$as_myself"; then
8065 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8069 # Unset variables that we do not need and which cause bugs (e.g. in
8070 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8071 # suppresses any "Segmentation fault" message there. '((' could
8072 # trigger a bug in pdksh 5.2.14.
8073 for as_var
in BASH_ENV ENV MAIL MAILPATH
8074 do eval test x\
${$as_var+set} = xset \
8075 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8088 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8091 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8092 # ----------------------------------------
8093 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8094 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8095 # script with STATUS, using 1 if that was 0.
8098 as_status
=$1; test $as_status -eq 0 && as_status
=1
8100 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8101 $as_echo "$as_me:${as_lineno-8101}: error: $2" >&$4
8103 $as_echo "$as_me: error: $2" >&2
8104 as_fn_exit
$as_status
8108 # as_fn_set_status STATUS
8109 # -----------------------
8110 # Set $? to STATUS, without forking.
8114 } # as_fn_set_status
8118 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8128 # Portably unset VAR.
8131 { eval $1=; unset $1;}
8133 as_unset
=as_fn_unset
8134 # as_fn_append VAR VALUE
8135 # ----------------------
8136 # Append the text in VALUE to the end of the definition contained in VAR. Take
8137 # advantage of any shell optimizations that allow amortized linear growth over
8138 # repeated appends, instead of the typical quadratic growth present in naive
8140 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8141 eval 'as_fn_append ()
8152 # as_fn_arith ARG...
8153 # ------------------
8154 # Perform arithmetic evaluation on the ARGs, and store the result in the
8155 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8156 # must be portable across $(()) and expr.
8157 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8158 eval 'as_fn_arith ()
8165 as_val
=`expr "$@" || test $? -eq 1`
8170 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8171 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8177 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8178 as_basename
=basename
8183 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8189 as_me
=`$as_basename -- "$0" ||
8190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8191 X"$0" : 'X\(//\)$' \| \
8192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8194 sed '/^.*\/\([^/][^/]*\)\/*$/{
8208 # Avoid depending upon Character Ranges.
8209 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8210 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8211 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8212 as_cr_digits
='0123456789'
8213 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8215 ECHO_C
= ECHO_N
= ECHO_T
=
8216 case `echo -n x` in #(((((
8218 case `echo 'xy\c'` in
8219 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8221 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8228 rm -f conf$$ conf$$.exe conf$$.
file
8229 if test -d conf$$.dir
; then
8230 rm -f conf$$.dir
/conf$$.
file
8233 mkdir conf$$.dir
2>/dev
/null
8235 if (echo >conf$$.
file) 2>/dev
/null
; then
8236 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8238 # ... but there are two gotchas:
8239 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8240 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8241 # In both cases, we have to default to `cp -pR'.
8242 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8244 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8252 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8253 rmdir conf$$.dir
2>/dev
/null
8258 # Create "$as_dir" as a directory, including parents if necessary.
8263 -*) as_dir
=.
/$as_dir;;
8265 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8269 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8270 *) as_qdir
=$as_dir;;
8272 as_dirs
="'$as_qdir' $as_dirs"
8273 as_dir
=`$as_dirname -- "$as_dir" ||
8274 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8275 X"$as_dir" : 'X\(//\)[^/]' \| \
8276 X"$as_dir" : 'X\(//\)$' \| \
8277 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8278 $as_echo X"$as_dir" |
8279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8296 test -d "$as_dir" && break
8298 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8299 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8303 if mkdir
-p .
2>/dev
/null
; then
8304 as_mkdir_p
='mkdir -p "$as_dir"'
8306 test -d .
/-p && rmdir .
/-p
8311 # as_fn_executable_p FILE
8312 # -----------------------
8313 # Test if FILE is an executable regular file.
8314 as_fn_executable_p
()
8316 test -f "$1" && test -x "$1"
8317 } # as_fn_executable_p
8319 as_executable_p
=as_fn_executable_p
8321 # Sed expression to map a string onto a valid CPP name.
8322 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8324 # Sed expression to map a string onto a valid variable name.
8325 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8329 ## ----------------------------------- ##
8330 ## Main body of $CONFIG_STATUS script. ##
8331 ## ----------------------------------- ##
8333 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8336 # Save the log message, to keep $0 and so on meaningful, and to
8337 # report actual input values of CONFIG_FILES etc. instead of their
8338 # values after options handling.
8340 This file was extended by $as_me, which was
8341 generated by GNU Autoconf 2.69. Invocation command line was
8343 CONFIG_FILES = $CONFIG_FILES
8344 CONFIG_HEADERS = $CONFIG_HEADERS
8345 CONFIG_LINKS = $CONFIG_LINKS
8346 CONFIG_COMMANDS = $CONFIG_COMMANDS
8349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8354 case $ac_config_files in *"
8355 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8361 # Files that config.status was made for.
8362 config_files="$ac_config_files"
8363 config_commands="$ac_config_commands"
8367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8369 \`$as_me' instantiates files and other configuration actions
8370 from templates according to the current configuration. Unless the files
8371 and actions are specified as TAGs, all are instantiated by default.
8373 Usage: $0 [OPTION]... [TAG]...
8375 -h, --help print this help, then exit
8376 -V, --version print version number and configuration settings, then exit
8377 --config print configuration, then exit
8378 -q, --quiet, --silent
8379 do not print progress messages
8380 -d, --debug don't remove temporary files
8381 --recheck update $as_me by reconfiguring in the same conditions
8382 --file=FILE[:TEMPLATE]
8383 instantiate the configuration file FILE
8385 Configuration files:
8388 Configuration commands:
8391 Report bugs to the package provider."
8394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8395 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8398 configured by $0, generated by GNU Autoconf 2.69,
8399 with options \\"\$ac_cs_config\\"
8401 Copyright (C) 2012 Free Software Foundation, Inc.
8402 This config.status script is free software; the Free Software Foundation
8403 gives unlimited permission to copy, distribute and modify it."
8410 test -n "\$AWK" || AWK=awk
8413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8414 # The default lists apply if the user does not specify any file.
8420 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8421 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8425 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8437 # Handling of the options.
8438 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8440 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8441 $as_echo "$ac_cs_version"; exit ;;
8442 --config |
--confi |
--conf |
--con |
--co |
--c )
8443 $as_echo "$ac_cs_config"; exit ;;
8444 --debug |
--debu |
--deb |
--de |
--d |
-d )
8446 --file |
--fil |
--fi |
--f )
8449 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8450 '') as_fn_error $?
"missing file argument" ;;
8452 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8453 ac_need_defaults
=false
;;
8454 --he |
--h |
--help |
--hel |
-h )
8455 $as_echo "$ac_cs_usage"; exit ;;
8456 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8457 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8461 -*) as_fn_error $?
"unrecognized option: \`$1'
8462 Try \`$0 --help' for more information." ;;
8464 *) as_fn_append ac_config_targets
" $1"
8465 ac_need_defaults
=false
;;
8471 ac_configure_extra_args
=
8473 if $ac_cs_silent; then
8475 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8480 if \$ac_cs_recheck; then
8481 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8483 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8484 CONFIG_SHELL='$SHELL'
8490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8495 ## Running $as_me. ##
8501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8505 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8511 # Handling of arguments.
8512 for ac_config_target
in $ac_config_targets
8514 case $ac_config_target in
8515 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8516 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8517 "Xw/Makefile") CONFIG_FILES
="$CONFIG_FILES Xw/Makefile" ;;
8518 "asg/Makefile") CONFIG_FILES
="$CONFIG_FILES asg/Makefile" ;;
8519 "spiceparser/Makefile") CONFIG_FILES
="$CONFIG_FILES spiceparser/Makefile" ;;
8521 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "8521" 5;;
8526 # If the user did not use the arguments to specify the items to instantiate,
8527 # then the envvar interface is used. Set only those that are not.
8528 # We use the long form for the default assignment because of an extremely
8529 # bizarre bug on SunOS 4.1.3.
8530 if $ac_need_defaults; then
8531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8535 # Have a temporary directory for convenience. Make it in the build tree
8536 # simply because there is no reason against having it here, and in addition,
8537 # creating and moving files from /tmp can sometimes cause problems.
8538 # Hook for its removal unless debugging.
8539 # Note that there is a small window in which the directory will not be cleaned:
8540 # after its creation but before its name has been assigned to `$tmp'.
8544 trap 'exit_status=$?
8546 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8548 trap 'as_fn_exit 1' 1 2 13 15
8550 # Create a (secure) tmp directory for tmp files.
8553 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8557 tmp
=.
/conf$$
-$RANDOM
8558 (umask 077 && mkdir
"$tmp")
8559 } || as_fn_error $?
"cannot create a temporary directory in ." "8559" 5
8562 # Set up the scripts for CONFIG_FILES section.
8563 # No need to generate them if there are no CONFIG_FILES.
8564 # This happens for instance with `./config.status config.h'.
8565 if test -n "$CONFIG_FILES"; then
8568 ac_cr
=`echo X | tr X '\015'`
8569 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8570 # But we know of no other shell where ac_cr would be empty at this
8571 # point, so we can use a bashism as a fallback.
8572 if test "x$ac_cr" = x
; then
8573 eval ac_cr
=\$
\'\\r
\'
8575 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8576 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8582 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8587 echo "cat >conf$$subs.awk <<_ACEOF" &&
8588 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8591 as_fn_error $? "could not
make $CONFIG_STATUS" "8591" 5
8592 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8594 for ac_last_try in false false false false false :; do
8595 . ./conf$$subs.sh ||
8596 as_fn_error $? "could not
make $CONFIG_STATUS" "8596" 5
8598 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8599 if test $ac_delim_n = $ac_delim_num; then
8601 elif $ac_last_try; then
8602 as_fn_error $? "could not
make $CONFIG_STATUS" "8602" 5
8604 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8610 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8614 s/^/S["/; s
/!.
*/"]=/
8624 s/\(.\{148\}\)..*/\1/
8626 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8631 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8638 s/\(.\{148\}\)..*/\1/
8640 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8644 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8649 ' <conf$$subs.awk | sed '
8654 ' >>$CONFIG_STATUS || ac_write_fail=1
8655 rm -f conf$$subs.awk
8656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8658 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8659 for (key in S) S_is_set[key] = 1
8665 nfields = split(line, field, "@
")
8667 len = length(field[1])
8668 for (i = 2; i < nfields; i++) {
8670 keylen = length(key)
8671 if (S_is_set[key]) {
8673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8674 len += length(value) + length(field[++i])
8685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8686 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8687 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8690 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8691 || as_fn_error $? "could not setup config files machinery
" "8691" 5
8694 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8695 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8696 # trailing colons and then remove the whole line if VPATH becomes empty
8697 # (actually we leave an empty line to preserve line numbers).
8698 if test "x
$srcdir" = x.; then
8699 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8718 fi # test -n "$CONFIG_FILES"
8721 eval set X " :F
$CONFIG_FILES :C
$CONFIG_COMMANDS"
8726 :[FHLC]) ac_mode=$ac_tag; continue;;
8728 case $ac_mode$ac_tag in
8730 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "8730" 5;;
8731 :[FH]-) ac_tag=-:-;;
8732 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8749 -) ac_f="$ac_tmp/stdin";;
8750 *) # Look for the file first in the build tree, then in the source tree
8751 # (if the path is not absolute). The absolute path cannot be DOS-style,
8752 # because $ac_f cannot contain `:'.
8756 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8758 as_fn_error 1 "cannot find input file: \`$ac_f'" "8758" 5;;
8760 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
8761 as_fn_append ac_file_inputs " '$ac_f'"
8764 # Let's still pretend it is `configure' which instantiates (i.e., don't
8765 # use $as_me), people would be surprised to read:
8766 # /* config.h. Generated by config.status. */
8767 configure_input='Generated from '`
8768 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8770 if test x"$ac_file" != x-; then
8771 configure_input="$ac_file.
$configure_input"
8772 { $as_echo "$as_me:${as_lineno-8772}: creating
$ac_file" >&5
8773 $as_echo "$as_me: creating
$ac_file" >&6;}
8775 # Neutralize special characters interpreted by sed in replacement strings.
8776 case $configure_input in #(
8777 *\&* | *\|* | *\\* )
8778 ac_sed_conf_input=`$as_echo "$configure_input" |
8779 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8780 *) ac_sed_conf_input=$configure_input;;
8784 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
8785 || as_fn_error $? "could not create
$ac_file" "8785" 5 ;;
8790 ac_dir=`$as_dirname -- "$ac_file" ||
8791 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8792 X"$ac_file" : 'X\(//\)[^/]' \| \
8793 X"$ac_file" : 'X\(//\)$' \| \
8794 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8795 $as_echo X"$ac_file" |
8796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8813 as_dir="$ac_dir"; as_fn_mkdir_p
8817 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8819 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8820 # A "..
" for each directory in $ac_dir_suffix.
8821 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8822 case $ac_top_builddir_sub in
8823 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8824 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8827 ac_abs_top_builddir=$ac_pwd
8828 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8829 # for backward compatibility:
8830 ac_top_builddir=$ac_top_build_prefix
8833 .) # We are building in place.
8835 ac_top_srcdir=$ac_top_builddir_sub
8836 ac_abs_top_srcdir=$ac_pwd ;;
8837 [\\/]* | ?:[\\/]* ) # Absolute name.
8838 ac_srcdir=$srcdir$ac_dir_suffix;
8839 ac_top_srcdir=$srcdir
8840 ac_abs_top_srcdir=$srcdir ;;
8842 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8843 ac_top_srcdir=$ac_top_build_prefix$srcdir
8844 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8846 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8856 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8857 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8861 [\\/$]* | ?:[\\/]* ) ;;
8862 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8867 # If the template does not know about datarootdir, expand it.
8868 # FIXME: This hack should be removed a few years after 2.60.
8869 ac_datarootdir_hack=; ac_datarootdir_seen=
8880 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
8881 *datarootdir*) ac_datarootdir_seen=yes;;
8882 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8883 { $as_echo "$as_me:${as_lineno-8883}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
8884 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
8886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8887 ac_datarootdir_hack='
8888 s&@datadir@&$datadir&g
8889 s&@docdir@&$docdir&g
8890 s&@infodir@&$infodir&g
8891 s&@localedir@&$localedir&g
8892 s&@mandir@&$mandir&g
8893 s&\\\${datarootdir}&$datarootdir&g' ;;
8897 # Neutralize VPATH when `$srcdir' = `.'.
8898 # Shell code in configure.ac might set extrasub.
8899 # FIXME: do we really want to maintain this feature?
8900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8901 ac_sed_extra="$ac_vpsub
8904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8906 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8907 s|@configure_input@|
$ac_sed_conf_input|
;t t
8908 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8909 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8910 s
&@srcdir@
&$ac_srcdir&;t t
8911 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8912 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8913 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8914 s
&@builddir@
&$ac_builddir&;t t
8915 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8916 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8917 s
&@INSTALL@
&$ac_INSTALL&;t t
8918 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8919 $ac_datarootdir_hack
8921 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8922 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "8922" 5
8924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8925 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8927 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8928 { $as_echo "$as_me:${as_lineno-8928}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8929 which seems to be undefined. Please make sure it is defined" >&5
8930 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8931 which seems to be undefined. Please make sure it is defined" >&2;}
8933 rm -f "$ac_tmp/stdin"
8935 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8936 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8938 || as_fn_error $? "could not create $ac_file" "8938" 5
8942 :C) { $as_echo "$as_me:${as_lineno-8942}: executing $ac_file commands" >&5
8943 $as_echo "$as_me: executing $ac_file commands" >&6;}
8948 case $ac_file$ac_mode in
8949 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8950 # Older Autoconf quotes --file arguments for eval, but not when files
8951 # are listed without --file. Let's play safe and only
enable the
eval
8952 # if we detect the quoting.
8953 # TODO: see whether this extra hack can be removed once we start
8954 # requiring Autoconf 2.70 or later.
8955 case $CONFIG_FILES in #(
8957 eval set x
"$CONFIG_FILES" ;; #(
8959 set x
$CONFIG_FILES ;; #(
8964 # Used to flag and report bootstrapping failures.
8968 # Strip MF so we end up with the name of the file.
8969 am_mf
=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
8970 # Check whether this is an Automake generated Makefile which includes
8971 # dependency-tracking related rules and includes.
8972 # Grep'ing the whole file directly is not great: AIX grep has a line
8973 # limit of 2048, but all sed's we know have understand at least 4000.
8974 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" |
grep X
>/dev
/null
2>&1 \
8976 am_dirpart
=`$as_dirname -- "$am_mf" ||
8977 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8978 X"$am_mf" : 'X\(//\)[^/]' \| \
8979 X"$am_mf" : 'X\(//\)$' \| \
8980 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8981 $as_echo X"$am_mf" |
8982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8999 am_filepart
=`$as_basename -- "$am_mf" ||
9000 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
9001 X"$am_mf" : 'X\(//\)$' \| \
9002 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
9003 $as_echo X/"$am_mf" |
9004 sed '/^.*\/\([^/][^/]*\)\/*$/{
9017 { echo "$as_me:9017: cd "$am_dirpart" \
9018 && sed -e '/# am--include-marker/d' "$am_filepart" \
9019 | $MAKE -f - am--depfiles" >&5
9021 && sed -e '/# am--include-marker/d' "$am_filepart" \
9022 |
$MAKE -f - am--depfiles
) >&5 2>&5
9024 echo "$as_me:9024: \$? = $ac_status" >&5
9025 (exit $ac_status); } || am_rc
=$?
9027 if test $am_rc -ne 0; then
9028 { { $as_echo "$as_me:${as_lineno-9028}: error: in \`$ac_pwd':" >&5
9029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9030 as_fn_error $?
"Something went wrong bootstrapping makefile fragments
9031 for automatic dependency tracking. Try re-running configure with the
9032 '--disable-dependency-tracking' option to at least be able to build
9033 the package (albeit without support for automatic dependency tracking).
9034 See \`config.log' for more details" "9034" 5; }
9036 { am_dirpart
=; unset am_dirpart
;}
9037 { am_filepart
=; unset am_filepart
;}
9038 { am_mf
=; unset am_mf
;}
9039 { am_rc
=; unset am_rc
;}
9040 rm -f conftest-deps.mk
9050 ac_clean_files
=$ac_clean_files_save
9052 test $ac_write_fail = 0 ||
9053 as_fn_error $?
"write failure creating $CONFIG_STATUS" "9053" 5
9056 # configure is writing to config.log, and then calls config.status.
9057 # config.status does its own redirection, appending to config.log.
9058 # Unfortunately, on DOS this fails, as config.log is still kept open
9059 # by configure, so config.status won't be able to write to it; its
9060 # output is simply discarded. So we exec the FD to /dev/null,
9061 # effectively closing config.log, so it can be properly (re)opened and
9062 # appended to by config.status. When coming back to configure, we
9063 # need to make the FD available again.
9064 if test "$no_create" != yes; then
9066 ac_config_status_args
=
9067 test "$silent" = yes &&
9068 ac_config_status_args
="$ac_config_status_args --quiet"
9070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9073 # would make configure fail if this is the last instruction.
9074 $ac_cs_success || as_fn_exit
1
9076 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9077 { $as_echo "$as_me:${as_lineno-9077}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9078 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9083 echo "Configuration results:"
9084 echo "----------------------------------------------------"
9087 if test "x$xc_with_tcl" == "x" ; then
9088 if test "x$PYTHON" != x
; then
9089 echo "Using Python interface (not recommended)"
9091 echo "No Tcl/Tk, using standard Xlib/Xt interface."
9092 echo "If that is not what you wanted, then make sure"
9093 echo "you have Tcl/Tk development packages installed?"
9096 echo "Using Tcl/Tk interface"
9100 if test "x$xc_with_cairo" == "x" ; then
9101 echo "No Cairo graphics."
9102 echo "If that is not what you wanted, then make sure"
9103 echo "you have libcairo and fontconfig installed."
9104 echo "Try installing package cairo-devel."
9106 echo "Using Cairo graphics"
9109 echo "CFLAGS=${CFLAGS}"