shr.el (shr-image-displayer): Work for images lined side by side.
[emacs.git] / configure
blobb557556567973836036eaa5bafe0cca3b049e752
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LD_FIRSTFLAG
603 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 S_FILE
626 M_FILE
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXML2_LIBS
664 LIBXML2_CFLAGS
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBGNUTLS_LIBS
685 LIBGNUTLS_CFLAGS
686 LIBSELINUX_LIBS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 DBUS_OBJ
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_OBJ
693 GTK_LIBS
694 GTK_CFLAGS
695 IMAGEMAGICK_LIBS
696 IMAGEMAGICK_CFLAGS
697 RSVG_LIBS
698 RSVG_CFLAGS
699 VMLIMIT_OBJ
700 GMALLOC_OBJ
701 HAVE_XSERVER
702 LIB_STANDARD
703 NS_SUPPORT
704 NS_OBJ
705 TEMACS_LDFLAGS2
706 LD_SWITCH_X_SITE_AUX_RPATH
707 LD_SWITCH_X_SITE_AUX
708 XMKMF
709 DEPFLAGS
710 MKDEPDIR
711 SET_MAKE
712 CFLAGS_SOUND
713 ALSA_LIBS
714 ALSA_CFLAGS
715 PKG_CONFIG
716 LIBSOUND
717 START_FILES
718 LIB_MATH
719 CRT_DIR
720 LIBS_SYSTEM
721 C_SWITCH_SYSTEM
722 UNEXEC_OBJ
723 C_SWITCH_MACHINE
724 LD_SWITCH_SYSTEM
725 CANNOT_DUMP
726 MAKEINFO
727 GZIP_PROG
728 INSTALL_INFO
729 RANLIB
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 C_WARNINGS_SWITCH
734 EGREP
735 GREP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 PROFILING_CFLAGS
753 MAINT
754 GZIP_INFO
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='deps_frag
794 ns_frag'
795 ac_user_opts='
796 enable_option_checking
797 with_pop
798 with_kerberos
799 with_kerberos5
800 with_hesiod
801 with_mmdf
802 with_mail_unlink
803 with_mailhost
804 with_sound
805 with_sync_input
806 with_x_toolkit
807 with_xpm
808 with_jpeg
809 with_tiff
810 with_gif
811 with_png
812 with_rsvg
813 with_xml2
814 with_imagemagick
815 with_xft
816 with_libotf
817 with_m17n_flt
818 with_toolkit_scroll_bars
819 with_xaw3d
820 with_xim
821 with_ns
822 with_gpm
823 with_dbus
824 with_gconf
825 with_selinux
826 with_gnutls
827 with_makeinfo
828 with_compress_info
829 with_pkg_config_prog
830 with_crt_dir
831 with_gnustep_conf
832 enable_ns_self_contained
833 enable_asserts
834 enable_maintainer_mode
835 enable_locallisppath
836 enable_checking
837 enable_use_lisp_union_type
838 enable_profiling
839 enable_autodepend
840 enable_largefile
841 with_x
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
852 XMKMF'
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 ac_unrecognized_opts=
859 ac_unrecognized_sep=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
903 ac_prev=
904 ac_dashdash=
905 for ac_option
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 esac
1261 done
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used" >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error $? "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error $? "pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking ...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457 X features:
1458 --x-includes=DIR X include files are in DIR
1459 --x-libraries=DIR X library files are in DIR
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1470 esac
1471 cat <<\_ACEOF
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --disable-ns-self-contained
1478 disable self contained build under NeXTstep
1479 --enable-asserts compile code with asserts enabled
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-locallisppath=PATH
1484 directories Emacs should search for lisp files
1485 specific to this site
1486 --enable-checking[=LIST]
1487 enable expensive run-time checks. With LIST, enable
1488 only specific categories of checks. Categories are:
1489 all,yes,no. Flags are: stringbytes, stringoverrun,
1490 stringfreelist, xmallocoverrun, conslist
1491 --enable-use-lisp-union-type
1492 use a union for the Lisp_Object data type. This is
1493 only useful for development for catching certain
1494 types of bugs.
1495 --enable-profiling build emacs with profiling support. This might not
1496 work on all platforms
1497 --enable-autodepend automatically generate dependencies to .h-files.
1498 Requires GNU Make and Gcc. Enabled if GNU Make and
1499 Gcc is found
1500 --disable-largefile omit support for large files
1502 Optional Packages:
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --without-pop don't support POP mail retrieval with movemail
1506 --with-kerberos support Kerberos-authenticated POP
1507 --with-kerberos5 support Kerberos version 5 authenticated POP
1508 --with-hesiod support Hesiod to get the POP server host
1509 --with-mmdf support MMDF mailboxes
1510 --with-mail-unlink unlink, rather than empty, mail spool after reading
1511 --with-mailhost=HOSTNAME
1512 string giving default POP mail host
1513 --without-sound don't compile with sound support
1514 --without-sync-input process async input synchronously
1515 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1516 lucid or athena, motif, no)
1517 --without-xpm don't compile with XPM image support
1518 --without-jpeg don't compile with JPEG image support
1519 --without-tiff don't compile with TIFF image support
1520 --without-gif don't compile with GIF image support
1521 --without-png don't compile with PNG image support
1522 --without-rsvg don't compile with SVG image support
1523 --without-xml2 don't compile with XML parsing support
1524 --without-imagemagick don't compile with ImageMagick image support
1525 --without-xft don't use XFT for anti aliased fonts
1526 --without-libotf don't use libotf for OpenType font support
1527 --without-m17n-flt don't use m17n-flt for text shaping
1528 --without-toolkit-scroll-bars
1529 don't use Motif or Xaw3d scroll bars
1530 --without-xaw3d don't use Xaw3d
1531 --without-xim don't use X11 XIM
1532 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1533 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1534 console
1535 --without-dbus don't compile with D-Bus support
1536 --without-gconf don't compile with GConf support
1537 --without-selinux don't compile with SELinux support
1538 --without-gnutls don't use -lgnutls for SSL/TLS support
1539 --without-makeinfo don't require makeinfo for building manuals
1540 --without-compress-info don't compress the installed Info pages
1541 --with-pkg-config-prog=PATH
1542 path to pkg-config for finding GTK and librsvg
1543 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1544 /usr/lib, or /usr/lib64 on some platforms.
1545 --with-gnustep-conf=PATH
1546 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1547 or /etc/GNUstep/GNUstep.conf
1548 --with-x use the X Window System
1550 Some influential environment variables:
1551 CC C compiler command
1552 CFLAGS C compiler flags
1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554 nonstandard directory <lib dir>
1555 LIBS libraries to pass to the linker, e.g. -l<library>
1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
1558 CPP C preprocessor
1559 XMKMF Path to xmkmf, Makefile generator for X Window System
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to the package provider.
1565 _ACEOF
1566 ac_status=$?
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 continue
1575 ac_builddir=.
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1593 case $srcdir in
1594 .) # We are building in place.
1595 ac_srcdir=.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1602 *) # Relative name.
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1617 else
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 fi || ac_status=$?
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1621 done
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626 cat <<\_ACEOF
1627 emacs configure 24.0.50
1628 generated by GNU Autoconf 2.67
1630 Copyright (C) 2010 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634 exit
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext
1648 if { { ac_try="$ac_compile"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1667 ac_retval=0
1668 else
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1672 ac_retval=1
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_try_cpp LINENO
1726 # ----------------------
1727 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_cpp ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_cpp conftest.$ac_ext"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } > conftest.i && {
1747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 }; then :
1750 ac_retval=0
1751 else
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=1
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_cpp
1762 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765 # the include files in INCLUDES and setting the cache variable VAR
1766 # accordingly.
1767 ac_fn_c_check_header_mongrel ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if eval "test \"\${$3+set}\"" = set; then :
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval "test \"\${$3+set}\"" = set; then :
1774 $as_echo_n "(cached) " >&6
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 else
1780 # Is the header compilable?
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782 $as_echo_n "checking $2 usability... " >&6; }
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 ac_header_compiler=yes
1790 else
1791 ac_header_compiler=no
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795 $as_echo "$ac_header_compiler" >&6; }
1797 # Is the header present?
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799 $as_echo_n "checking $2 presence... " >&6; }
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 #include <$2>
1803 _ACEOF
1804 if ac_fn_c_try_cpp "$LINENO"; then :
1805 ac_header_preproc=yes
1806 else
1807 ac_header_preproc=no
1809 rm -f conftest.err conftest.i conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811 $as_echo "$ac_header_preproc" >&6; }
1813 # So? What about this header?
1814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1815 yes:no: )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 no:yes:* )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1825 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1829 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval "test \"\${$3+set}\"" = set; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=\$ac_header_compiler"
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_run
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval "test \"\${$3+set}\"" = set; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1923 # ---------------------------------------------
1924 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1925 # accordingly.
1926 ac_fn_c_check_decl ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 as_decl_name=`echo $2|sed 's/ *(.*//'`
1930 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1932 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1933 if eval "test \"\${$3+set}\"" = set; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 main ()
1942 #ifndef $as_decl_name
1943 #ifdef __cplusplus
1944 (void) $as_decl_use;
1945 #else
1946 (void) $as_decl_name;
1947 #endif
1948 #endif
1951 return 0;
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 eval "$3=yes"
1956 else
1957 eval "$3=no"
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 eval ac_res=\$$3
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1966 } # ac_fn_c_check_decl
1968 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1969 # ----------------------------------------------
1970 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1971 ac_fn_c_check_header_preproc ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval "test \"\${$3+set}\"" = set; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_cpp "$LINENO"; then :
1984 eval "$3=yes"
1985 else
1986 eval "$3=no"
1988 rm -f conftest.err conftest.i conftest.$ac_ext
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 } # ac_fn_c_check_header_preproc
1997 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1998 # ----------------------------------------------------
1999 # Tries to find if the field MEMBER exists in type AGGR, after including
2000 # INCLUDES, setting cache variable VAR accordingly.
2001 ac_fn_c_check_member ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2005 $as_echo_n "checking for $2.$3... " >&6; }
2006 if eval "test \"\${$4+set}\"" = set; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2013 main ()
2015 static $2 ac_aggr;
2016 if (ac_aggr.$3)
2017 return 0;
2019 return 0;
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 eval "$4=yes"
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2029 main ()
2031 static $2 ac_aggr;
2032 if (sizeof ac_aggr.$3)
2033 return 0;
2035 return 0;
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 eval "$4=yes"
2040 else
2041 eval "$4=no"
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 eval ac_res=\$$4
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052 } # ac_fn_c_check_member
2054 # ac_fn_c_check_func LINENO FUNC VAR
2055 # ----------------------------------
2056 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2057 ac_fn_c_check_func ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2069 #define $2 innocuous_$2
2071 /* System header to define __stub macros and hopefully few prototypes,
2072 which can conflict with char $2 (); below.
2073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2074 <limits.h> exists even on freestanding compilers. */
2076 #ifdef __STDC__
2077 # include <limits.h>
2078 #else
2079 # include <assert.h>
2080 #endif
2082 #undef $2
2084 /* Override any GCC internal prototype to avoid an error.
2085 Use char because int might match the return type of a GCC
2086 builtin and then its argument prototype would still apply. */
2087 #ifdef __cplusplus
2088 extern "C"
2089 #endif
2090 char $2 ();
2091 /* The GNU C library defines this for functions which it implements
2092 to always fail with ENOSYS. Some functions are actually named
2093 something starting with __ and the normal name is an alias. */
2094 #if defined __stub_$2 || defined __stub___$2
2095 choke me
2096 #endif
2099 main ()
2101 return $2 ();
2103 return 0;
2105 _ACEOF
2106 if ac_fn_c_try_link "$LINENO"; then :
2107 eval "$3=yes"
2108 else
2109 eval "$3=no"
2111 rm -f core conftest.err conftest.$ac_objext \
2112 conftest$ac_exeext conftest.$ac_ext
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_c_check_func
2121 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122 # -------------------------------------------
2123 # Tests whether TYPE exists after having included INCLUDES, setting cache
2124 # variable VAR accordingly.
2125 ac_fn_c_check_type ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval "test \"\${$3+set}\"" = set; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 eval "$3=no"
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 if (sizeof ($2))
2141 return 0;
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 if (sizeof (($2)))
2154 return 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2161 else
2162 eval "$3=yes"
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_c_check_type
2174 cat >config.log <<_ACEOF
2175 This file contains any messages produced by compilers while
2176 running configure, to aid debugging if configure makes a mistake.
2178 It was created by emacs $as_me 24.0.50, which was
2179 generated by GNU Autoconf 2.67. Invocation command line was
2181 $ $0 $@
2183 _ACEOF
2184 exec 5>>config.log
2186 cat <<_ASUNAME
2187 ## --------- ##
2188 ## Platform. ##
2189 ## --------- ##
2191 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2197 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2200 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2208 _ASUNAME
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217 IFS=$as_save_IFS
2219 } >&5
2221 cat >&5 <<_ACEOF
2224 ## ----------- ##
2225 ## Core tests. ##
2226 ## ----------- ##
2228 _ACEOF
2231 # Keep a trace of the command line.
2232 # Strip out --no-create and --no-recursion so they do not pile up.
2233 # Strip out --silent because we don't want to record it for future runs.
2234 # Also quote any args containing shell meta-characters.
2235 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_configure_args=
2237 ac_configure_args0=
2238 ac_configure_args1=
2239 ac_must_keep_next=false
2240 for ac_pass in 1 2
2242 for ac_arg
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2271 as_fn_append ac_configure_args " '$ac_arg'"
2273 esac
2274 done
2275 done
2276 { ac_configure_args0=; unset ac_configure_args0;}
2277 { ac_configure_args1=; unset ac_configure_args1;}
2279 # When interrupted or exit'd, cleanup temporary files, and complete
2280 # config.log. We remove comments because anyway the quotes in there
2281 # would cause problems or look ugly.
2282 # WARNING: Use '\'' to represent an apostrophe within the trap.
2283 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284 trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2287 echo
2289 $as_echo "## ---------------- ##
2290 ## Cache variables. ##
2291 ## ---------------- ##"
2292 echo
2293 # The following way of writing the cache mishandles newlines in values,
2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in #(
2298 *${as_nl}*)
2299 case $ac_var in #(
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 esac
2303 case $ac_var in #(
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2307 esac ;;
2308 esac
2309 done
2310 (set) 2>&1 |
2311 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2313 sed -n \
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 ;; #(
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2320 esac |
2321 sort
2323 echo
2325 $as_echo "## ----------------- ##
2326 ## Output variables. ##
2327 ## ----------------- ##"
2328 echo
2329 for ac_var in $ac_subst_vars
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2339 if test -n "$ac_subst_files"; then
2340 $as_echo "## ------------------- ##
2341 ## File substitutions. ##
2342 ## ------------------- ##"
2343 echo
2344 for ac_var in $ac_subst_files
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2355 if test -s confdefs.h; then
2356 $as_echo "## ----------- ##
2357 ## confdefs.h. ##
2358 ## ----------- ##"
2359 echo
2360 cat confdefs.h
2361 echo
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2371 for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 done
2374 ac_signal=0
2376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2377 rm -f -r conftest* confdefs.h
2379 $as_echo "/* confdefs.h */" > confdefs.h
2381 # Predefined preprocessor variables.
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_NAME "$PACKAGE_NAME"
2385 _ACEOF
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389 _ACEOF
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2393 _ACEOF
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_STRING "$PACKAGE_STRING"
2397 _ACEOF
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401 _ACEOF
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_URL "$PACKAGE_URL"
2405 _ACEOF
2408 # Let the site file select an alternate cache file if it wants to.
2409 # Prefer an explicitly selected file to automatically selected ones.
2410 ac_site_file1=NONE
2411 ac_site_file2=NONE
2412 if test -n "$CONFIG_SITE"; then
2413 # We do not want a PATH search for config.site.
2414 case $CONFIG_SITE in #((
2415 -*) ac_site_file1=./$CONFIG_SITE;;
2416 */*) ac_site_file1=$CONFIG_SITE;;
2417 *) ac_site_file1=./$CONFIG_SITE;;
2418 esac
2419 elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2422 else
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2426 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428 test "x$ac_site_file" = xNONE && continue
2429 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
2433 . "$ac_site_file" \
2434 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 as_fn_error $? "failed to load site script $ac_site_file
2437 See \`config.log' for more details" "$LINENO" 5; }
2439 done
2441 if test -r "$cache_file"; then
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446 $as_echo "$as_me: loading cache $cache_file" >&6;}
2447 case $cache_file in
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2450 esac
2452 else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454 $as_echo "$as_me: creating cache $cache_file" >&6;}
2455 >$cache_file
2458 as_fn_append ac_header_list " stdlib.h"
2459 as_fn_append ac_header_list " unistd.h"
2460 as_fn_append ac_header_list " sys/param.h"
2461 as_fn_append ac_header_list " sys/time.h"
2462 as_fn_append ac_func_list " alarm"
2463 # Check that the precious variables saved in the cache have kept the same
2464 # value.
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2472 set,)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,set)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,);;
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x $ac_old_val`
2485 ac_new_val_w=`echo x $ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489 ac_cache_corrupted=:
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2499 fi;;
2500 esac
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2503 case $ac_new_val in
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2506 esac
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 esac
2512 done
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2535 test "$program_prefix" != NONE &&
2536 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2537 # Use a double $ so make ignores it.
2538 test "$program_suffix" != NONE &&
2539 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2540 # Double any \ or $.
2541 # By default was `s,x,x', remove it if useless.
2542 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2543 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546 lispdir='${datadir}/emacs/${version}/lisp'
2547 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2548 '${datadir}/emacs/site-lisp'
2549 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2550 etcdir='${datadir}/emacs/${version}/etc'
2551 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2552 docdir='${datadir}/emacs/${version}/etc'
2553 gamedir='${localstatedir}/games/emacs'
2555 gameuser=games
2560 # Check whether --with-pop was given.
2561 if test "${with_pop+set}" = set; then :
2562 withval=$with_pop;
2563 else
2564 with_pop=yes
2567 if test "$with_pop" = yes; then
2568 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2573 # Check whether --with-kerberos was given.
2574 if test "${with_kerberos+set}" = set; then :
2575 withval=$with_kerberos;
2576 else
2577 with_kerberos=no
2580 if test "$with_kerberos" != no; then
2581 $as_echo "#define KERBEROS 1" >>confdefs.h
2586 # Check whether --with-kerberos5 was given.
2587 if test "${with_kerberos5+set}" = set; then :
2588 withval=$with_kerberos5;
2589 else
2590 with_kerberos5=no
2593 if test "${with_kerberos5}" != no; then
2594 if test "${with_kerberos}" = no; then
2595 with_kerberos=yes
2596 $as_echo "#define KERBEROS 1" >>confdefs.h
2600 $as_echo "#define KERBEROS5 1" >>confdefs.h
2605 # Check whether --with-hesiod was given.
2606 if test "${with_hesiod+set}" = set; then :
2607 withval=$with_hesiod;
2608 else
2609 with_hesiod=no
2612 if test "$with_hesiod" != no; then
2614 $as_echo "#define HESIOD 1" >>confdefs.h
2619 # Check whether --with-mmdf was given.
2620 if test "${with_mmdf+set}" = set; then :
2621 withval=$with_mmdf;
2622 else
2623 with_mmdf=no
2626 if test "$with_mmdf" != no; then
2628 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2633 # Check whether --with-mail-unlink was given.
2634 if test "${with_mail_unlink+set}" = set; then :
2635 withval=$with_mail_unlink;
2636 else
2637 with_mail_unlink=no
2640 if test "$with_mail_unlink" != no; then
2642 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2647 # Check whether --with-mailhost was given.
2648 if test "${with_mailhost+set}" = set; then :
2649 withval=$with_mailhost;
2650 cat >>confdefs.h <<_ACEOF
2651 #define MAILHOST "$withval"
2652 _ACEOF
2658 # Check whether --with-sound was given.
2659 if test "${with_sound+set}" = set; then :
2660 withval=$with_sound;
2661 else
2662 with_sound=yes
2667 # Check whether --with-sync-input was given.
2668 if test "${with_sync_input+set}" = set; then :
2669 withval=$with_sync_input;
2670 else
2671 with_sync_input=yes
2674 if test "$with_sync_input" = yes; then
2676 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2681 # Check whether --with-x-toolkit was given.
2682 if test "${with_x_toolkit+set}" = set; then :
2683 withval=$with_x_toolkit; case "${withval}" in
2684 y | ye | yes ) val=gtk ;;
2685 n | no ) val=no ;;
2686 l | lu | luc | luci | lucid ) val=lucid ;;
2687 a | at | ath | athe | athen | athena ) val=athena ;;
2688 m | mo | mot | moti | motif ) val=motif ;;
2689 g | gt | gtk ) val=gtk ;;
2690 gtk3 ) val=gtk3 ;;
2692 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
2693 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2694 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2696 esac
2697 with_x_toolkit=$val
2703 # Check whether --with-xpm was given.
2704 if test "${with_xpm+set}" = set; then :
2705 withval=$with_xpm;
2706 else
2707 with_xpm=yes
2711 # Check whether --with-jpeg was given.
2712 if test "${with_jpeg+set}" = set; then :
2713 withval=$with_jpeg;
2714 else
2715 with_jpeg=yes
2719 # Check whether --with-tiff was given.
2720 if test "${with_tiff+set}" = set; then :
2721 withval=$with_tiff;
2722 else
2723 with_tiff=yes
2727 # Check whether --with-gif was given.
2728 if test "${with_gif+set}" = set; then :
2729 withval=$with_gif;
2730 else
2731 with_gif=yes
2735 # Check whether --with-png was given.
2736 if test "${with_png+set}" = set; then :
2737 withval=$with_png;
2738 else
2739 with_png=yes
2743 # Check whether --with-rsvg was given.
2744 if test "${with_rsvg+set}" = set; then :
2745 withval=$with_rsvg;
2746 else
2747 with_rsvg=yes
2751 # Check whether --with-xml2 was given.
2752 if test "${with_xml2+set}" = set; then :
2753 withval=$with_xml2;
2754 else
2755 with_xml2=yes
2759 # Check whether --with-imagemagick was given.
2760 if test "${with_imagemagick+set}" = set; then :
2761 withval=$with_imagemagick;
2762 else
2763 with_imagemagick=yes
2768 # Check whether --with-xft was given.
2769 if test "${with_xft+set}" = set; then :
2770 withval=$with_xft;
2771 else
2772 with_xft=yes
2776 # Check whether --with-libotf was given.
2777 if test "${with_libotf+set}" = set; then :
2778 withval=$with_libotf;
2779 else
2780 with_libotf=yes
2784 # Check whether --with-m17n-flt was given.
2785 if test "${with_m17n_flt+set}" = set; then :
2786 withval=$with_m17n_flt;
2787 else
2788 with_m17n_flt=yes
2793 # Check whether --with-toolkit-scroll-bars was given.
2794 if test "${with_toolkit_scroll_bars+set}" = set; then :
2795 withval=$with_toolkit_scroll_bars;
2796 else
2797 with_toolkit_scroll_bars=yes
2801 # Check whether --with-xaw3d was given.
2802 if test "${with_xaw3d+set}" = set; then :
2803 withval=$with_xaw3d;
2804 else
2805 with_xaw3d=yes
2809 # Check whether --with-xim was given.
2810 if test "${with_xim+set}" = set; then :
2811 withval=$with_xim;
2812 else
2813 with_xim=yes
2817 # Check whether --with-ns was given.
2818 if test "${with_ns+set}" = set; then :
2819 withval=$with_ns;
2820 else
2821 with_ns=no
2826 # Check whether --with-gpm was given.
2827 if test "${with_gpm+set}" = set; then :
2828 withval=$with_gpm;
2829 else
2830 with_gpm=yes
2834 # Check whether --with-dbus was given.
2835 if test "${with_dbus+set}" = set; then :
2836 withval=$with_dbus;
2837 else
2838 with_dbus=yes
2842 # Check whether --with-gconf was given.
2843 if test "${with_gconf+set}" = set; then :
2844 withval=$with_gconf;
2845 else
2846 with_gconf=yes
2850 # Check whether --with-selinux was given.
2851 if test "${with_selinux+set}" = set; then :
2852 withval=$with_selinux;
2853 else
2854 with_selinux=yes
2858 # Check whether --with-gnutls was given.
2859 if test "${with_gnutls+set}" = set; then :
2860 withval=$with_gnutls;
2861 else
2862 with_gnutls=yes
2866 ## For the times when you want to build Emacs but don't have
2867 ## a suitable makeinfo, and can live without the manuals.
2869 # Check whether --with-makeinfo was given.
2870 if test "${with_makeinfo+set}" = set; then :
2871 withval=$with_makeinfo;
2872 else
2873 with_makeinfo=yes
2877 ## This is an option because I do not know if all info/man support
2878 ## compressed files, nor how to test if they do so.
2880 # Check whether --with-compress-info was given.
2881 if test "${with_compress_info+set}" = set; then :
2882 withval=$with_compress_info;
2883 else
2884 with_compress_info=yes
2887 if test $with_compress_info = yes; then
2888 GZIP_INFO=yes
2889 else
2890 GZIP_INFO=
2895 # Check whether --with-pkg-config-prog was given.
2896 if test "${with_pkg_config_prog+set}" = set; then :
2897 withval=$with_pkg_config_prog;
2900 if test "X${with_pkg_config_prog}" != X; then
2901 if test "${with_pkg_config_prog}" != yes; then
2902 PKG_CONFIG="${with_pkg_config_prog}"
2906 CRT_DIR=
2908 # Check whether --with-crt-dir was given.
2909 if test "${with_crt_dir+set}" = set; then :
2910 withval=$with_crt_dir;
2913 CRT_DIR="${with_crt_dir}"
2916 # Check whether --with-gnustep-conf was given.
2917 if test "${with_gnustep_conf+set}" = set; then :
2918 withval=$with_gnustep_conf;
2921 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2922 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2923 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2924 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2926 # Check whether --enable-ns-self-contained was given.
2927 if test "${enable_ns_self_contained+set}" = set; then :
2928 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2929 else
2930 EN_NS_SELF_CONTAINED=yes
2934 # Check whether --enable-asserts was given.
2935 if test "${enable_asserts+set}" = set; then :
2936 enableval=$enable_asserts; USE_XASSERTS=$enableval
2937 else
2938 USE_XASSERTS=no
2942 # Check whether --enable-maintainer-mode was given.
2943 if test "${enable_maintainer_mode+set}" = set; then :
2944 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2945 else
2946 USE_MAINTAINER_MODE=no
2949 if test $USE_MAINTAINER_MODE = yes; then
2950 MAINT=
2951 else
2952 MAINT=#
2956 # Check whether --enable-locallisppath was given.
2957 if test "${enable_locallisppath+set}" = set; then :
2958 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2959 locallisppath=
2960 elif test "${enableval}" != "yes"; then
2961 locallisppath=${enableval}
2966 # Check whether --enable-checking was given.
2967 if test "${enable_checking+set}" = set; then :
2968 enableval=$enable_checking; ac_checking_flags="${enableval}"
2971 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2972 for check in $ac_checking_flags
2974 case $check in
2975 # these set all the flags to specific states
2976 yes) ac_enable_checking=1 ;;
2977 no) ac_enable_checking= ;
2978 ac_gc_check_stringbytes= ;
2979 ac_gc_check_string_overrun= ;
2980 ac_gc_check_string_free_list= ;
2981 ac_xmalloc_overrun= ;
2982 ac_gc_check_cons_list= ;;
2983 all) ac_enable_checking=1 ;
2984 ac_gc_check_stringbytes=1 ;
2985 ac_gc_check_string_overrun=1 ;
2986 ac_gc_check_string_free_list=1 ;
2987 ac_xmalloc_overrun=1 ;
2988 ac_gc_check_cons_list=1 ;;
2989 # these enable particular checks
2990 stringbytes) ac_gc_check_stringbytes=1 ;;
2991 stringoverrun) ac_gc_check_string_overrun=1 ;;
2992 stringfreelist) ac_gc_check_string_free_list=1 ;;
2993 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2994 conslist) ac_gc_check_cons_list=1 ;;
2995 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
2996 esac
2997 done
2998 IFS="$ac_save_IFS"
3000 if test x$ac_enable_checking != x ; then
3002 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3005 if test x$ac_gc_check_stringbytes != x ; then
3007 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3010 if test x$ac_gc_check_stringoverrun != x ; then
3012 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3015 if test x$ac_gc_check_string_free_list != x ; then
3017 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3020 if test x$ac_xmalloc_overrun != x ; then
3022 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3025 if test x$ac_gc_check_cons_list != x ; then
3027 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3031 # Check whether --enable-use-lisp-union-type was given.
3032 if test "${enable_use_lisp_union_type+set}" = set; then :
3033 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3035 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3042 # Check whether --enable-profiling was given.
3043 if test "${enable_profiling+set}" = set; then :
3044 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3047 if test x$ac_enable_profiling != x ; then
3048 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3049 else
3050 PROFILING_CFLAGS=
3054 # Check whether --enable-autodepend was given.
3055 if test "${enable_autodepend+set}" = set; then :
3056 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3057 else
3058 ac_enable_autodepend=yes
3062 #### Make srcdir absolute, if it isn't already. It's important to
3063 #### avoid running the path through pwd unnecessarily, since pwd can
3064 #### give you automounter prefixes, which can go away. We do all this
3065 #### so Emacs can find its files when run uninstalled.
3066 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3067 unset CDPATH
3068 case "${srcdir}" in
3069 /* ) ;;
3071 ## We may be able to use the $PWD environment variable to make this
3072 ## absolute. But sometimes PWD is inaccurate.
3073 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3074 ## but that tested only for a well-formed and valid PWD,
3075 ## it did not object when PWD was well-formed and valid but just wrong.
3076 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3077 then
3078 srcdir="$PWD"
3079 else
3080 srcdir="`(cd ${srcdir}; pwd)`"
3083 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3084 esac
3086 #### Check if the source directory already has a configured system in it.
3087 if test `pwd` != `(cd ${srcdir} && pwd)` \
3088 && test -f "${srcdir}/src/config.h" ; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3090 as a build directory right now; it has been configured in its own
3091 right. To configure in another directory as well, you MUST
3092 use GNU make. If you do not have GNU make, then you must
3093 now do \`make distclean' in ${srcdir},
3094 and then run $0 again." >&5
3095 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3096 as a build directory right now; it has been configured in its own
3097 right. To configure in another directory as well, you MUST
3098 use GNU make. If you do not have GNU make, then you must
3099 now do \`make distclean' in ${srcdir},
3100 and then run $0 again." >&2;}
3103 #### Given the configuration name, set machfile and opsysfile to the
3104 #### names of the m/*.h and s/*.h files we should use.
3106 ### Canonicalize the configuration name.
3108 ac_aux_dir=
3109 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3110 if test -f "$ac_dir/install-sh"; then
3111 ac_aux_dir=$ac_dir
3112 ac_install_sh="$ac_aux_dir/install-sh -c"
3113 break
3114 elif test -f "$ac_dir/install.sh"; then
3115 ac_aux_dir=$ac_dir
3116 ac_install_sh="$ac_aux_dir/install.sh -c"
3117 break
3118 elif test -f "$ac_dir/shtool"; then
3119 ac_aux_dir=$ac_dir
3120 ac_install_sh="$ac_aux_dir/shtool install -c"
3121 break
3123 done
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's source tree is in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3137 # Make sure we can run config.sub.
3138 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3139 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3142 $as_echo_n "checking build system type... " >&6; }
3143 if test "${ac_cv_build+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 ac_build_alias=$build_alias
3147 test "x$ac_build_alias" = x &&
3148 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3149 test "x$ac_build_alias" = x &&
3150 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3151 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3152 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3156 $as_echo "$ac_cv_build" >&6; }
3157 case $ac_cv_build in
3158 *-*-*) ;;
3159 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3160 esac
3161 build=$ac_cv_build
3162 ac_save_IFS=$IFS; IFS='-'
3163 set x $ac_cv_build
3164 shift
3165 build_cpu=$1
3166 build_vendor=$2
3167 shift; shift
3168 # Remember, the first character of IFS is used to create $*,
3169 # except with old shells:
3170 build_os=$*
3171 IFS=$ac_save_IFS
3172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3176 $as_echo_n "checking host system type... " >&6; }
3177 if test "${ac_cv_host+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test "x$host_alias" = x; then
3181 ac_cv_host=$ac_cv_build
3182 else
3183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3184 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3189 $as_echo "$ac_cv_host" >&6; }
3190 case $ac_cv_host in
3191 *-*-*) ;;
3192 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3193 esac
3194 host=$ac_cv_host
3195 ac_save_IFS=$IFS; IFS='-'
3196 set x $ac_cv_host
3197 shift
3198 host_cpu=$1
3199 host_vendor=$2
3200 shift; shift
3201 # Remember, the first character of IFS is used to create $*,
3202 # except with old shells:
3203 host_os=$*
3204 IFS=$ac_save_IFS
3205 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3208 canonical=$host
3209 configuration=${host_alias-${build_alias-$host}}
3213 ### If you add support for a new configuration, add code to this
3214 ### switch statement to recognize your configuration name and select
3215 ### the appropriate operating system and machine description files.
3217 ### You would hope that you could choose an m/*.h file pretty much
3218 ### based on the machine portion of the configuration name, and an s/*.h
3219 ### file based on the operating system portion. However, it turns out
3220 ### that each m/*.h file is pretty manufacturer-specific - for
3221 ### example mips.h is MIPS
3222 ### So we basically have to have a special case for each
3223 ### configuration name.
3225 ### As far as handling version numbers on operating systems is
3226 ### concerned, make sure things will fail in a fixable way. If
3227 ### /etc/MACHINES doesn't say anything about version numbers, be
3228 ### prepared to handle anything reasonably. If version numbers
3229 ### matter, be sure /etc/MACHINES says something about it.
3231 machine='' opsys='' unported=no
3232 case "${canonical}" in
3234 ## GNU/Linux ports
3235 *-*-linux-gnu*)
3236 opsys=gnu-linux
3237 case ${canonical} in
3238 alpha*) machine=alpha ;;
3239 s390-*) machine=ibms390 ;;
3240 s390x-*) machine=ibms390x ;;
3241 powerpc*) machine=macppc ;;
3242 sparc*) machine=sparc ;;
3243 ia64*) machine=ia64 ;;
3244 m68k*) machine=m68k ;;
3245 x86_64*) machine=amdx86-64 ;;
3246 esac
3249 ## FreeBSD ports
3250 *-*-freebsd* )
3251 opsys=freebsd
3252 case "${canonical}" in
3253 alpha*) machine=alpha ;;
3254 amd64-*|x86_64-*) machine=amdx86-64 ;;
3255 ia64-*) machine=ia64 ;;
3256 i[3456]86-*) machine=intel386 ;;
3257 powerpc-*) machine=macppc ;;
3258 sparc-*) machine=sparc ;;
3259 sparc64-*) machine=sparc ;;
3260 esac
3263 ## FreeBSD kernel + glibc based userland
3264 *-*-kfreebsd*gnu* )
3265 opsys=gnu-kfreebsd
3266 case "${canonical}" in
3267 alpha*) machine=alpha ;;
3268 amd64-*|x86_64-*) machine=amdx86-64 ;;
3269 ia64-*) machine=ia64 ;;
3270 i[3456]86-*) machine=intel386 ;;
3271 powerpc-*) machine=macppc ;;
3272 sparc-*) machine=sparc ;;
3273 sparc64-*) machine=sparc ;;
3274 esac
3277 ## NetBSD ports
3278 *-*-netbsd* )
3279 opsys=netbsd
3280 case "${canonical}" in
3281 alpha*) machine=alpha ;;
3282 x86_64-*) machine=amdx86-64 ;;
3283 i[3456]86-*) machine=intel386 ;;
3284 m68k-*) machine=m68k ;;
3285 powerpc-*) machine=macppc ;;
3286 sparc*-) machine=sparc ;;
3287 vax-*) machine=vax ;;
3288 esac
3291 ## OpenBSD ports
3292 *-*-openbsd* )
3293 opsys=openbsd
3294 case "${canonical}" in
3295 alpha*) machine=alpha ;;
3296 x86_64-*) machine=amdx86-64 ;;
3297 i386-*) machine=intel386 ;;
3298 powerpc-*) machine=macppc ;;
3299 sparc*) machine=sparc ;;
3300 vax-*) machine=vax ;;
3301 esac
3304 ## Apple Darwin / Mac OS X
3305 *-apple-darwin* )
3306 case "${canonical}" in
3307 i[3456]86-* ) machine=intel386 ;;
3308 powerpc-* ) machine=macppc ;;
3309 x86_64-* ) machine=amdx86-64 ;;
3310 * ) unported=yes ;;
3311 esac
3312 opsys=darwin
3313 # Define CPP as follows to make autoconf work correctly.
3314 CPP="${CC-cc} -E -no-cpp-precomp"
3315 # Use fink packages if available.
3316 if test -d /sw/include && test -d /sw/lib; then
3317 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3318 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3319 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3323 ## HP 9000 series 700 and 800, running HP/UX
3324 hppa*-hp-hpux10.2* )
3325 opsys=hpux10-20
3327 hppa*-hp-hpux1[1-9]* )
3328 opsys=hpux11
3329 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3332 ## IBM machines
3333 rs6000-ibm-aix4.[23]* )
3334 machine=ibmrs6000 opsys=aix4-2
3336 powerpc-ibm-aix4.[23]* )
3337 machine=ibmrs6000 opsys=aix4-2
3339 rs6000-ibm-aix[56]* )
3340 machine=ibmrs6000 opsys=aix4-2
3342 powerpc-ibm-aix[56]* )
3343 machine=ibmrs6000 opsys=aix4-2
3346 ## Silicon Graphics machines
3347 ## Iris 4D
3348 mips-sgi-irix6.5 )
3349 machine=iris4d opsys=irix6-5
3350 # Without defining _LANGUAGE_C, things get masked out in the headers
3351 # so that, for instance, grepping for `free' in stdlib.h fails and
3352 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3353 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3354 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3357 ## Suns
3358 *-sun-solaris* \
3359 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3360 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3361 case "${canonical}" in
3362 i[3456]86-*-* ) machine=intel386 ;;
3363 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3364 sparc* ) machine=sparc ;;
3365 * ) unported=yes ;;
3366 esac
3367 case "${canonical}" in
3368 *-sunos5.6* | *-solaris2.6* )
3369 opsys=sol2-6
3370 NON_GNU_CPP=/usr/ccs/lib/cpp
3371 RANLIB="ar -ts"
3373 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3374 opsys=sol2-6
3375 emacs_check_sunpro_c=yes
3376 NON_GNU_CPP=/usr/ccs/lib/cpp
3378 *-sunos5* | *-solaris* )
3379 opsys=sol2-10
3380 emacs_check_sunpro_c=yes
3381 NON_GNU_CPP=/usr/ccs/lib/cpp
3383 esac
3384 ## Watch out for a compiler that we know will not work.
3385 case "${canonical}" in
3386 *-solaris* | *-sunos5* )
3387 if [ "x$CC" = x/usr/ucb/cc ]; then
3388 ## /usr/ucb/cc doesn't work;
3389 ## we should find some other compiler that does work.
3390 unset CC
3393 *) ;;
3394 esac
3397 ## Intel 386 machines where we don't care about the manufacturer.
3398 i[3456]86-*-* )
3399 machine=intel386
3400 case "${canonical}" in
3401 *-cygwin ) opsys=cygwin ;;
3402 *-darwin* ) opsys=darwin
3403 CPP="${CC-cc} -E -no-cpp-precomp"
3405 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3406 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3407 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3408 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3409 esac
3413 unported=yes
3415 esac
3417 ### If the code above didn't choose an operating system, just choose
3418 ### an operating system based on the configuration name. You really
3419 ### only want to use this when you have no idea what the right
3420 ### operating system is; if you know what operating systems a machine
3421 ### runs, it's cleaner to make it explicit in the case statement
3422 ### above.
3423 if test x"${opsys}" = x; then
3424 case "${canonical}" in
3425 *-gnu* ) opsys=gnu ;;
3427 unported=yes
3429 esac
3434 if test $unported = yes; then
3435 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
3436 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3439 if test -n "$machine"; then
3440 machfile="m/${machine}.h"
3441 else
3442 machfile=
3444 opsysfile="s/${opsys}.h"
3447 #### Choose a compiler.
3448 test -n "$CC" && cc_specified=yes
3450 # Save the value of CFLAGS that the user specified.
3451 SPECIFIED_CFLAGS="$CFLAGS"
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_CC+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3498 ac_ct_CC=$CC
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3520 done
3521 done
3522 IFS=$as_save_IFS
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544 CC=$ac_ct_CC
3546 else
3547 CC="$ac_cv_prog_CC"
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CC="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_CC+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 ac_prog_rejected=no
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3612 continue
3614 ac_cv_prog_CC="cc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3618 done
3619 done
3620 IFS=$as_save_IFS
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy $ac_cv_prog_CC
3625 shift
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3630 shift
3631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3636 CC=$ac_cv_prog_CC
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3674 IFS=$as_save_IFS
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3689 done
3691 if test -z "$CC"; then
3692 ac_ct_CC=$CC
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3733 done
3735 if test "x$ac_ct_CC" = x; then
3736 CC=""
3737 else
3738 case $cross_compiling:$ac_tool_warned in
3739 yes:)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3743 esac
3744 CC=$ac_ct_CC
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 set X $ac_compile
3759 ac_compiler=$2
3760 for ac_option in --version -v -V -qversion; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 ac_status=$?
3770 if test -s conftest.err; then
3771 sed '10a\
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3776 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 done
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3785 main ()
3789 return 0;
3791 _ACEOF
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3796 # of exeext.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 ac_rmfiles=
3805 for ac_file in $ac_files
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 esac
3811 done
3812 rm -f $ac_rmfiles
3814 if { { ac_try="$ac_link_default"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3822 ac_status=$?
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3829 # Autoconf.
3830 for ac_file in $ac_files ''
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3836 [ab].out )
3837 # We found the default executable, but exeext='' is most
3838 # certainly right.
3839 break;;
3840 *.* )
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3842 then :; else
3843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3849 # actually working.
3850 break;;
3852 break;;
3853 esac
3854 done
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3857 else
3858 ac_file=''
3860 if test -z "$ac_file"; then :
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error 77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 # `rm'.
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 break;;
3905 * ) break;;
3906 esac
3907 done
3908 else
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3920 ac_exeext=$EXEEXT
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdio.h>
3925 main ()
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3931 return 0;
3933 _ACEOF
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3962 cross_compiling=no
3963 else
3964 if test "$cross_compiling" = maybe; then
3965 cross_compiling=yes
3966 else
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if test "${ac_cv_objext+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3989 main ()
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4010 case $ac_file in
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4013 break;;
4014 esac
4015 done
4016 else
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details" "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4030 ac_objext=$OBJEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4042 #ifndef __GNUC__
4043 choke me
4044 #endif
4047 return 0;
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_compiler_gnu=yes
4052 else
4053 ac_compiler_gnu=no
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4062 GCC=yes
4063 else
4064 GCC=
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if test "${ac_cv_prog_cc_g+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4075 ac_cv_prog_cc_g=no
4076 CFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_prog_cc_g=yes
4090 else
4091 CFLAGS=""
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4105 else
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4107 CFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_cv_prog_cc_g=yes
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4135 CFLAGS="-g -O2"
4136 else
4137 CFLAGS="-g"
4139 else
4140 if test "$GCC" = yes; then
4141 CFLAGS="-O2"
4142 else
4143 CFLAGS=
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_cv_prog_cc_c89=no
4152 ac_save_CC=$CC
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <stdarg.h>
4156 #include <stdio.h>
4157 #include <sys/types.h>
4158 #include <sys/stat.h>
4159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4160 struct buf { int x; };
4161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162 static char *e (p, i)
4163 char **p;
4164 int i;
4166 return p[i];
4168 static char *f (char * (*g) (char **, int), char **p, ...)
4170 char *s;
4171 va_list v;
4172 va_start (v,p);
4173 s = g (p, va_arg (v,int));
4174 va_end (v);
4175 return s;
4178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4179 function prototypes and stuff, but not '\xHH' hex character constants.
4180 These don't provoke an error unfortunately, instead are silently treated
4181 as 'x'. The following induces an error, until -std is added to get
4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4183 array size at least. It's necessary to write '\x00'==0 to get something
4184 that's true only with -std. */
4185 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188 inside strings and character constants. */
4189 #define FOO(x) 'x'
4190 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192 int test (int i, double x);
4193 struct s1 {int (*f) (int a);};
4194 struct s2 {int (*f) (double a);};
4195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4196 int argc;
4197 char **argv;
4199 main ()
4201 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 return 0;
4205 _ACEOF
4206 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_cv_prog_cc_c89=$ac_arg
4213 rm -f core conftest.err conftest.$ac_objext
4214 test "x$ac_cv_prog_cc_c89" != "xno" && break
4215 done
4216 rm -f conftest.$ac_ext
4217 CC=$ac_save_CC
4220 # AC_CACHE_VAL
4221 case "x$ac_cv_prog_cc_c89" in
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4224 $as_echo "none needed" >&6; } ;;
4225 xno)
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 $as_echo "unsupported" >&6; } ;;
4229 CC="$CC $ac_cv_prog_cc_c89"
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4232 esac
4233 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4246 CPP=
4249 ## If not using gcc, and on Solaris, and no CPP specified, see if
4250 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4251 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4252 test x"$CPP" = x; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4254 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4256 if test "${emacs_cv_sunpro_c+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4263 main ()
4265 #ifndef __SUNPRO_C
4266 fail;
4267 #endif
4270 return 0;
4272 _ACEOF
4273 if ac_fn_c_try_link "$LINENO"; then :
4274 emacs_cv_sunpro_c=yes
4275 else
4276 emacs_cv_sunpro_c=no
4278 rm -f core conftest.err conftest.$ac_objext \
4279 conftest$ac_exeext conftest.$ac_ext
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4283 $as_echo "$emacs_cv_sunpro_c" >&6; }
4285 if test x"$emacs_cv_sunpro_c" = xyes; then
4286 NON_GNU_CPP="$CC -E -Xs"
4290 #### Some systems specify a CPP to use unless we are using GCC.
4291 #### Now that we know whether we are using GCC, we can decide whether
4292 #### to use that one.
4293 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4294 then
4295 CPP="$NON_GNU_CPP"
4298 #### Some systems specify a CC to use unless we are using GCC.
4299 #### Now that we know whether we are using GCC, we can decide whether
4300 #### to use that one.
4301 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4302 test x$cc_specified != xyes
4303 then
4304 CC="$NON_GNU_CC"
4307 if test x$GCC = xyes; then
4308 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4309 else
4310 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4319 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4320 # On Suns, sometimes $CPP names a directory.
4321 if test -n "$CPP" && test -d "$CPP"; then
4322 CPP=
4324 if test -z "$CPP"; then
4325 if test "${ac_cv_prog_CPP+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 # Double quotes because CPP needs to be expanded
4329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331 ac_preproc_ok=false
4332 for ac_c_preproc_warn_flag in '' yes
4334 # Use a header file that comes with gcc, so configuring glibc
4335 # with a fresh cross-compiler works.
4336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 # <limits.h> exists even on freestanding compilers.
4338 # On the NeXT, cc -E runs the code through the compiler's parser,
4339 # not just through cpp. "Syntax error" is here to catch this case.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #ifdef __STDC__
4343 # include <limits.h>
4344 #else
4345 # include <assert.h>
4346 #endif
4347 Syntax error
4348 _ACEOF
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4351 else
4352 # Broken: fails on valid input.
4353 continue
4355 rm -f conftest.err conftest.i conftest.$ac_ext
4357 # OK, works on sane cases. Now check whether nonexistent headers
4358 # can be detected and how.
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 #include <ac_nonexistent.h>
4362 _ACEOF
4363 if ac_fn_c_try_cpp "$LINENO"; then :
4364 # Broken: success on invalid input.
4365 continue
4366 else
4367 # Passes both tests.
4368 ac_preproc_ok=:
4369 break
4371 rm -f conftest.err conftest.i conftest.$ac_ext
4373 done
4374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4375 rm -f conftest.i conftest.err conftest.$ac_ext
4376 if $ac_preproc_ok; then :
4377 break
4380 done
4381 ac_cv_prog_CPP=$CPP
4384 CPP=$ac_cv_prog_CPP
4385 else
4386 ac_cv_prog_CPP=$CPP
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4389 $as_echo "$CPP" >&6; }
4390 ac_preproc_ok=false
4391 for ac_c_preproc_warn_flag in '' yes
4393 # Use a header file that comes with gcc, so configuring glibc
4394 # with a fresh cross-compiler works.
4395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396 # <limits.h> exists even on freestanding compilers.
4397 # On the NeXT, cc -E runs the code through the compiler's parser,
4398 # not just through cpp. "Syntax error" is here to catch this case.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #ifdef __STDC__
4402 # include <limits.h>
4403 #else
4404 # include <assert.h>
4405 #endif
4406 Syntax error
4407 _ACEOF
4408 if ac_fn_c_try_cpp "$LINENO"; then :
4410 else
4411 # Broken: fails on valid input.
4412 continue
4414 rm -f conftest.err conftest.i conftest.$ac_ext
4416 # OK, works on sane cases. Now check whether nonexistent headers
4417 # can be detected and how.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <ac_nonexistent.h>
4421 _ACEOF
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4423 # Broken: success on invalid input.
4424 continue
4425 else
4426 # Passes both tests.
4427 ac_preproc_ok=:
4428 break
4430 rm -f conftest.err conftest.i conftest.$ac_ext
4432 done
4433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4434 rm -f conftest.i conftest.err conftest.$ac_ext
4435 if $ac_preproc_ok; then :
4437 else
4438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4440 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4441 See \`config.log' for more details" "$LINENO" 5; }
4444 ac_ext=c
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4452 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4453 if test "${ac_cv_path_GREP+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -z "$GREP"; then
4457 ac_path_GREP_found=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_prog in grep ggrep; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4467 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4468 # Check for GNU ac_path_GREP and select it if it is found.
4469 # Check for GNU $ac_path_GREP
4470 case `"$ac_path_GREP" --version 2>&1` in
4471 *GNU*)
4472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4474 ac_count=0
4475 $as_echo_n 0123456789 >"conftest.in"
4476 while :
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 $as_echo 'GREP' >> "conftest.nl"
4482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4484 as_fn_arith $ac_count + 1 && ac_count=$as_val
4485 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_GREP="$ac_path_GREP"
4488 ac_path_GREP_max=$ac_count
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4492 done
4493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 esac
4496 $ac_path_GREP_found && break 3
4497 done
4498 done
4499 done
4500 IFS=$as_save_IFS
4501 if test -z "$ac_cv_path_GREP"; then
4502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4504 else
4505 ac_cv_path_GREP=$GREP
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4510 $as_echo "$ac_cv_path_GREP" >&6; }
4511 GREP="$ac_cv_path_GREP"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4515 $as_echo_n "checking for egrep... " >&6; }
4516 if test "${ac_cv_path_EGREP+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4520 then ac_cv_path_EGREP="$GREP -E"
4521 else
4522 if test -z "$EGREP"; then
4523 ac_path_EGREP_found=false
4524 # Loop through the user's path and test for each of PROGNAME-LIST
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_prog in egrep; do
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4533 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4534 # Check for GNU ac_path_EGREP and select it if it is found.
4535 # Check for GNU $ac_path_EGREP
4536 case `"$ac_path_EGREP" --version 2>&1` in
4537 *GNU*)
4538 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4540 ac_count=0
4541 $as_echo_n 0123456789 >"conftest.in"
4542 while :
4544 cat "conftest.in" "conftest.in" >"conftest.tmp"
4545 mv "conftest.tmp" "conftest.in"
4546 cp "conftest.in" "conftest.nl"
4547 $as_echo 'EGREP' >> "conftest.nl"
4548 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4550 as_fn_arith $ac_count + 1 && ac_count=$as_val
4551 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4552 # Best one so far, save it but keep looking for a better one
4553 ac_cv_path_EGREP="$ac_path_EGREP"
4554 ac_path_EGREP_max=$ac_count
4556 # 10*(2^10) chars as input seems more than enough
4557 test $ac_count -gt 10 && break
4558 done
4559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 esac
4562 $ac_path_EGREP_found && break 3
4563 done
4564 done
4565 done
4566 IFS=$as_save_IFS
4567 if test -z "$ac_cv_path_EGREP"; then
4568 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 else
4571 ac_cv_path_EGREP=$EGREP
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4577 $as_echo "$ac_cv_path_EGREP" >&6; }
4578 EGREP="$ac_cv_path_EGREP"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4582 $as_echo_n "checking for ANSI C header files... " >&6; }
4583 if test "${ac_cv_header_stdc+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #include <stdlib.h>
4589 #include <stdarg.h>
4590 #include <string.h>
4591 #include <float.h>
4594 main ()
4598 return 0;
4600 _ACEOF
4601 if ac_fn_c_try_compile "$LINENO"; then :
4602 ac_cv_header_stdc=yes
4603 else
4604 ac_cv_header_stdc=no
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 if test $ac_cv_header_stdc = yes; then
4609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4612 #include <string.h>
4614 _ACEOF
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "memchr" >/dev/null 2>&1; then :
4618 else
4619 ac_cv_header_stdc=no
4621 rm -f conftest*
4625 if test $ac_cv_header_stdc = yes; then
4626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <stdlib.h>
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "free" >/dev/null 2>&1; then :
4635 else
4636 ac_cv_header_stdc=no
4638 rm -f conftest*
4642 if test $ac_cv_header_stdc = yes; then
4643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4644 if test "$cross_compiling" = yes; then :
4646 else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <ctype.h>
4650 #include <stdlib.h>
4651 #if ((' ' & 0x0FF) == 0x020)
4652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4654 #else
4655 # define ISLOWER(c) \
4656 (('a' <= (c) && (c) <= 'i') \
4657 || ('j' <= (c) && (c) <= 'r') \
4658 || ('s' <= (c) && (c) <= 'z'))
4659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4660 #endif
4662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664 main ()
4666 int i;
4667 for (i = 0; i < 256; i++)
4668 if (XOR (islower (i), ISLOWER (i))
4669 || toupper (i) != TOUPPER (i))
4670 return 2;
4671 return 0;
4673 _ACEOF
4674 if ac_fn_c_try_run "$LINENO"; then :
4676 else
4677 ac_cv_header_stdc=no
4679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4680 conftest.$ac_objext conftest.beam conftest.$ac_ext
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4686 $as_echo "$ac_cv_header_stdc" >&6; }
4687 if test $ac_cv_header_stdc = yes; then
4689 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4693 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4695 inttypes.h stdint.h unistd.h
4696 do :
4697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4701 cat >>confdefs.h <<_ACEOF
4702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4703 _ACEOF
4707 done
4711 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4712 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4713 MINIX=yes
4714 else
4715 MINIX=
4719 if test "$MINIX" = yes; then
4721 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4724 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4727 $as_echo "#define _MINIX 1" >>confdefs.h
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4733 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4734 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4740 # define __EXTENSIONS__ 1
4741 $ac_includes_default
4743 main ()
4747 return 0;
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 ac_cv_safe_to_define___extensions__=yes
4752 else
4753 ac_cv_safe_to_define___extensions__=no
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4758 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4759 test $ac_cv_safe_to_define___extensions__ = yes &&
4760 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4762 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4764 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4766 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4768 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4772 ### Use -Wno-pointer-sign if the compiler supports it
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4774 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4775 SAVE_CFLAGS="$CFLAGS"
4776 CFLAGS="$CFLAGS -Wno-pointer-sign"
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4781 main ()
4785 return 0;
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 has_option=yes
4790 else
4791 has_option=no
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 if test $has_option = yes; then
4795 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4798 $as_echo "$has_option" >&6; }
4799 CFLAGS="$SAVE_CFLAGS"
4800 unset has_option
4801 unset SAVE_CFLAGS
4803 ### Use -Wdeclaration-after-statement if the compiler supports it
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4805 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4806 SAVE_CFLAGS="$CFLAGS"
4807 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4812 main ()
4816 return 0;
4818 _ACEOF
4819 if ac_fn_c_try_compile "$LINENO"; then :
4820 has_option=yes
4821 else
4822 has_option=no
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 if test $has_option = yes; then
4826 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4829 $as_echo "$has_option" >&6; }
4830 CFLAGS="$SAVE_CFLAGS"
4831 unset has_option
4832 unset SAVE_CFLAGS
4834 ### Use -Wold-style-definition if the compiler supports it
4835 # This can be removed when conversion to standard C is finished.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4837 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4838 SAVE_CFLAGS="$CFLAGS"
4839 CFLAGS="$CFLAGS -Wold-style-definition"
4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4841 /* end confdefs.h. */
4844 main ()
4848 return 0;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 has_option=yes
4853 else
4854 has_option=no
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 if test $has_option = yes; then
4858 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4861 $as_echo "$has_option" >&6; }
4862 CFLAGS="$SAVE_CFLAGS"
4863 unset has_option
4864 unset SAVE_CFLAGS
4866 ### Use -Wimplicit-function-declaration if the compiler supports it
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
4868 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
4869 SAVE_CFLAGS="$CFLAGS"
4870 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4875 main ()
4879 return 0;
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 has_option=yes
4884 else
4885 has_option=no
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 if test $has_option = yes; then
4889 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4892 $as_echo "$has_option" >&6; }
4893 CFLAGS="$SAVE_CFLAGS"
4894 unset has_option
4895 unset SAVE_CFLAGS
4900 #### Some other nice autoconf tests.
4902 ac_ext=c
4903 ac_cpp='$CPP $CPPFLAGS'
4904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4908 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4909 # On Suns, sometimes $CPP names a directory.
4910 if test -n "$CPP" && test -d "$CPP"; then
4911 CPP=
4913 if test -z "$CPP"; then
4914 if test "${ac_cv_prog_CPP+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 # Double quotes because CPP needs to be expanded
4918 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4920 ac_preproc_ok=false
4921 for ac_c_preproc_warn_flag in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #ifdef __STDC__
4932 # include <limits.h>
4933 #else
4934 # include <assert.h>
4935 #endif
4936 Syntax error
4937 _ACEOF
4938 if ac_fn_c_try_cpp "$LINENO"; then :
4940 else
4941 # Broken: fails on valid input.
4942 continue
4944 rm -f conftest.err conftest.i conftest.$ac_ext
4946 # OK, works on sane cases. Now check whether nonexistent headers
4947 # can be detected and how.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <ac_nonexistent.h>
4951 _ACEOF
4952 if ac_fn_c_try_cpp "$LINENO"; then :
4953 # Broken: success on invalid input.
4954 continue
4955 else
4956 # Passes both tests.
4957 ac_preproc_ok=:
4958 break
4960 rm -f conftest.err conftest.i conftest.$ac_ext
4962 done
4963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964 rm -f conftest.i conftest.err conftest.$ac_ext
4965 if $ac_preproc_ok; then :
4966 break
4969 done
4970 ac_cv_prog_CPP=$CPP
4973 CPP=$ac_cv_prog_CPP
4974 else
4975 ac_cv_prog_CPP=$CPP
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4978 $as_echo "$CPP" >&6; }
4979 ac_preproc_ok=false
4980 for ac_c_preproc_warn_flag in '' yes
4982 # Use a header file that comes with gcc, so configuring glibc
4983 # with a fresh cross-compiler works.
4984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 # <limits.h> exists even on freestanding compilers.
4986 # On the NeXT, cc -E runs the code through the compiler's parser,
4987 # not just through cpp. "Syntax error" is here to catch this case.
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 #ifdef __STDC__
4991 # include <limits.h>
4992 #else
4993 # include <assert.h>
4994 #endif
4995 Syntax error
4996 _ACEOF
4997 if ac_fn_c_try_cpp "$LINENO"; then :
4999 else
5000 # Broken: fails on valid input.
5001 continue
5003 rm -f conftest.err conftest.i conftest.$ac_ext
5005 # OK, works on sane cases. Now check whether nonexistent headers
5006 # can be detected and how.
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 #include <ac_nonexistent.h>
5010 _ACEOF
5011 if ac_fn_c_try_cpp "$LINENO"; then :
5012 # Broken: success on invalid input.
5013 continue
5014 else
5015 # Passes both tests.
5016 ac_preproc_ok=:
5017 break
5019 rm -f conftest.err conftest.i conftest.$ac_ext
5021 done
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.i conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then :
5026 else
5027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details" "$LINENO" 5; }
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5039 # Find a good install program. We prefer a C program (faster),
5040 # so one script is as good as another. But avoid the broken or
5041 # incompatible versions:
5042 # SysV /etc/install, /usr/sbin/install
5043 # SunOS /usr/etc/install
5044 # IRIX /sbin/install
5045 # AIX /bin/install
5046 # AmigaOS /C/install, which installs bootblocks on floppy discs
5047 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5048 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5049 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5050 # OS/2's system install, which has a completely different semantic
5051 # ./install, which can be erroneously created by make from ./install.sh.
5052 # Reject install programs that cannot install multiple files.
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5054 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5055 if test -z "$INSTALL"; then
5056 if test "${ac_cv_path_install+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 # Account for people who put trailing slashes in PATH elements.
5065 case $as_dir/ in #((
5066 ./ | .// | /[cC]/* | \
5067 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5068 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5069 /usr/ucb/* ) ;;
5071 # OSF1 and SCO ODT 3.0 have their own names for install.
5072 # Don't use installbsd from OSF since it installs stuff as root
5073 # by default.
5074 for ac_prog in ginstall scoinst install; do
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5077 if test $ac_prog = install &&
5078 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5079 # AIX install. It has an incompatible calling convention.
5081 elif test $ac_prog = install &&
5082 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5083 # program-specific install script used by HP pwplus--don't use.
5085 else
5086 rm -rf conftest.one conftest.two conftest.dir
5087 echo one > conftest.one
5088 echo two > conftest.two
5089 mkdir conftest.dir
5090 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5091 test -s conftest.one && test -s conftest.two &&
5092 test -s conftest.dir/conftest.one &&
5093 test -s conftest.dir/conftest.two
5094 then
5095 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5096 break 3
5100 done
5101 done
5103 esac
5105 done
5106 IFS=$as_save_IFS
5108 rm -rf conftest.one conftest.two conftest.dir
5111 if test "${ac_cv_path_install+set}" = set; then
5112 INSTALL=$ac_cv_path_install
5113 else
5114 # As a last resort, use the slow shell script. Don't cache a
5115 # value for INSTALL within a source directory, because that will
5116 # break other packages using the cache if that directory is
5117 # removed, or if the value is a relative name.
5118 INSTALL=$ac_install_sh
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5122 $as_echo "$INSTALL" >&6; }
5124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5125 # It thinks the first close brace ends the variable substitution.
5126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5132 if test "x$RANLIB" = x; then
5133 if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$RANLIB"; then
5142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5161 RANLIB=$ac_cv_prog_RANLIB
5162 if test -n "$RANLIB"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5164 $as_echo "$RANLIB" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5172 if test -z "$ac_cv_prog_RANLIB"; then
5173 ac_ct_RANLIB=$RANLIB
5174 # Extract the first word of "ranlib", so it can be a program name with args.
5175 set dummy ranlib; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$ac_ct_RANLIB"; then
5182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5191 ac_cv_prog_ac_ct_RANLIB="ranlib"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5202 if test -n "$ac_ct_RANLIB"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5204 $as_echo "$ac_ct_RANLIB" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5210 if test "x$ac_ct_RANLIB" = x; then
5211 RANLIB=":"
5212 else
5213 case $cross_compiling:$ac_tool_warned in
5214 yes:)
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217 ac_tool_warned=yes ;;
5218 esac
5219 RANLIB=$ac_ct_RANLIB
5221 else
5222 RANLIB="$ac_cv_prog_RANLIB"
5227 ## Although we're running on an amd64 kernel, we're actually compiling for
5228 ## the x86 architecture. The user should probably have provided an
5229 ## explicit --build to `configure', but if everything else than the kernel
5230 ## is running in i386 mode, we can help them out.
5231 if test "$machine" = "amdx86-64"; then
5232 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5233 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5237 if test "$ac_cv_have_decl_i386" = "yes"; then
5238 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5239 machine=intel386
5240 machfile="m/${machine}.h"
5244 # Extract the first word of "install-info", so it can be a program name with args.
5245 set dummy install-info; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 case $INSTALL_INFO in
5252 [\\/]* | ?:[\\/]*)
5253 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5272 esac
5274 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5275 if test -n "$INSTALL_INFO"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5277 $as_echo "$INSTALL_INFO" >&6; }
5278 else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5284 # Extract the first word of "install-info", so it can be a program name with args.
5285 set dummy install-info; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 case $INSTALL_INFO in
5292 [\\/]* | ?:[\\/]*)
5293 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in /usr/sbin
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5312 esac
5314 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5315 if test -n "$INSTALL_INFO"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5317 $as_echo "$INSTALL_INFO" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5324 # Extract the first word of "install-info", so it can be a program name with args.
5325 set dummy install-info; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 case $INSTALL_INFO in
5332 [\\/]* | ?:[\\/]*)
5333 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in /sbin
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5347 done
5348 done
5349 IFS=$as_save_IFS
5351 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5353 esac
5355 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5356 if test -n "$INSTALL_INFO"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5358 $as_echo "$INSTALL_INFO" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5365 # Extract the first word of "gzip", so it can be a program name with args.
5366 set dummy gzip; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 case $GZIP_PROG in
5373 [\\/]* | ?:[\\/]*)
5374 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5393 esac
5395 GZIP_PROG=$ac_cv_path_GZIP_PROG
5396 if test -n "$GZIP_PROG"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5398 $as_echo "$GZIP_PROG" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5407 ## Need makeinfo >= 4.6 (?) to build the manuals.
5408 # Extract the first word of "makeinfo", so it can be a program name with args.
5409 set dummy makeinfo; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 case $MAKEINFO in
5416 [\\/]* | ?:[\\/]*)
5417 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5431 done
5432 done
5433 IFS=$as_save_IFS
5435 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5437 esac
5439 MAKEINFO=$ac_cv_path_MAKEINFO
5440 if test -n "$MAKEINFO"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5442 $as_echo "$MAKEINFO" >&6; }
5443 else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445 $as_echo "no" >&6; }
5449 if test "$MAKEINFO" != "no" && \
5450 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5451 MAKEINFO=no
5454 ## Makeinfo is unusual. For a released Emacs, the manuals are
5455 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5456 ## therefore in the category of "special tools" not normally required, which
5457 ## configure does not have to check for (eg autoconf itself).
5458 ## In a Bazaar checkout on the other hand, the manuals are not included.
5459 ## So makeinfo is a requirement to build from Bazaar, and configure
5460 ## should test for it as it does for any other build requirement.
5461 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5462 ## with pre-built manuals, from a Bazaar checkout.
5463 if test "$MAKEINFO" = "no"; then
5464 if test "x${with_makeinfo}" = "xno"; then
5465 MAKEINFO=off
5466 elif test ! -e $srcdir/info/emacs; then
5467 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
5468 source tree does not seem to have pre-built manuals in the \`info' directory.
5469 Either install a suitable version of makeinfo, or re-run configure
5470 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5475 if test x$GCC = xyes; then
5476 test "x$GCC_LINK_TEST_OPTIONS" != x && \
5477 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5478 else
5479 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
5480 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5484 late_LDFLAGS=$LDFLAGS
5485 if test x$GCC = xyes; then
5486 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5487 else
5488 LDFLAGS="$LDFLAGS -znocombreloc"
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5492 $as_echo_n "checking for -znocombreloc... " >&6; }
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5497 main ()
5501 return 0;
5503 _ACEOF
5504 if ac_fn_c_try_link "$LINENO"; then :
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5506 $as_echo "yes" >&6; }
5507 else
5508 LDFLAGS=$late_LDFLAGS
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5512 rm -f core conftest.err conftest.$ac_objext \
5513 conftest$ac_exeext conftest.$ac_ext
5516 # The value of CPP is a quoted variable reference, so we need to do this
5517 # to get its actual value...
5518 CPP=`eval "echo $CPP"`
5521 CANNOT_DUMP=no
5522 case "$opsys" in
5523 your-opsys-here)
5524 CANNOT_DUMP=yes
5526 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5529 esac
5533 UNEXEC_OBJ=unexelf.o
5534 case "$opsys" in
5535 # MSDOS uses unexcoff.o
5536 # MSWindows uses unexw32.o
5537 aix4-2)
5538 UNEXEC_OBJ=unexaix.o
5540 cygwin)
5541 UNEXEC_OBJ=unexcw.o
5543 darwin)
5544 UNEXEC_OBJ=unexmacosx.o
5546 hpux10-20 | hpux11)
5547 UNEXEC_OBJ=unexhp9k800.o
5549 sol2-10)
5550 # Use the Solaris dldump() function, called from unexsol.c, to dump
5551 # emacs, instead of the generic ELF dump code found in unexelf.c.
5552 # The resulting binary has a complete symbol table, and is better
5553 # for debugging and other observability tools (debuggers, pstack, etc).
5555 # If you encounter a problem using dldump(), please consider sending
5556 # a message to the OpenSolaris tools-linking mailing list:
5557 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5559 # It is likely that dldump() works with older Solaris too, but this has
5560 # not been tested, so for now this change is for Solaris 10 or newer.
5561 UNEXEC_OBJ=unexsol.o
5563 esac
5565 LD_SWITCH_SYSTEM=
5566 case "$opsys" in
5567 freebsd)
5568 ## Let `ld' find image libs and similar things in /usr/local/lib.
5569 ## The system compiler, GCC, has apparently been modified to not
5570 ## look there, contrary to what a stock GCC would do.
5571 LD_SWITCH_SYSTEM=-L/usr/local/lib
5574 gnu-linux)
5575 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5576 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
5579 netbsd)
5580 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5583 openbsd)
5584 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5585 ## otherwise Emacs dumps core on elf systems.
5586 LD_SWITCH_SYSTEM="-Z"
5588 esac
5591 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5593 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5594 ## which has not been defined yet. When this was handled with cpp,
5595 ## it was expanded to null when configure sourced the s/*.h file.
5596 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5597 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5598 ## (or somesuch), but because it is supposed to go at the _front_
5599 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5600 ## Compare with the gnu-linux case below, which added to the end
5601 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5602 ## LD_SWITCH_SYSTEM_TEMACS.
5603 case "$opsys" in
5604 netbsd|openbsd)
5605 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5606 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5607 esac
5610 C_SWITCH_MACHINE=
5611 if test "$machine" = "alpha"; then
5612 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5613 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5617 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5618 ## With ELF, make sure that all common symbols get allocated to in the
5619 ## data section. Otherwise, the dump of temacs may miss variables in
5620 ## the shared library that have been initialized. For example, with
5621 ## GNU libc, __malloc_initialized would normally be resolved to the
5622 ## shared library's .bss section, which is fatal.
5623 if test "x$GCC" = "xyes"; then
5624 C_SWITCH_MACHINE="-fno-common"
5625 else
5626 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5628 else
5629 UNEXEC_OBJ=unexalpha.o
5636 C_SWITCH_SYSTEM=
5637 ## Some programs in src produce warnings saying certain subprograms
5638 ## are too complex and need a MAXMEM value greater than 2000 for
5639 ## additional optimization. --nils@exp-math.uni-essen.de
5640 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5641 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5642 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5643 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5647 LIBS_SYSTEM=
5648 case "$opsys" in
5649 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5650 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5652 freebsd) LIBS_SYSTEM="-lutil" ;;
5654 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5656 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5658 ## Motif needs -lgen.
5659 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5660 esac
5664 ### Make sure subsequent tests use flags consistent with the build flags.
5666 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5667 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5668 else
5669 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5674 # Check whether --enable-largefile was given.
5675 if test "${enable_largefile+set}" = set; then :
5676 enableval=$enable_largefile;
5679 if test "$enable_largefile" != no; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5682 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5683 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 ac_cv_sys_largefile_CC=no
5687 if test "$GCC" != yes; then
5688 ac_save_CC=$CC
5689 while :; do
5690 # IRIX 6.2 and later do not support large files by default,
5691 # so use the C compiler's -n32 option if that helps.
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <sys/types.h>
5695 /* Check that off_t can represent 2**63 - 1 correctly.
5696 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5697 since some C++ compilers masquerading as C compilers
5698 incorrectly reject 9223372036854775807. */
5699 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5700 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5701 && LARGE_OFF_T % 2147483647 == 1)
5702 ? 1 : -1];
5704 main ()
5708 return 0;
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then :
5712 break
5714 rm -f core conftest.err conftest.$ac_objext
5715 CC="$CC -n32"
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717 ac_cv_sys_largefile_CC=' -n32'; break
5719 rm -f core conftest.err conftest.$ac_objext
5720 break
5721 done
5722 CC=$ac_save_CC
5723 rm -f conftest.$ac_ext
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5727 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5728 if test "$ac_cv_sys_largefile_CC" != no; then
5729 CC=$CC$ac_cv_sys_largefile_CC
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5733 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5734 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 while :; do
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 #include <sys/types.h>
5741 /* Check that off_t can represent 2**63 - 1 correctly.
5742 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5743 since some C++ compilers masquerading as C compilers
5744 incorrectly reject 9223372036854775807. */
5745 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5747 && LARGE_OFF_T % 2147483647 == 1)
5748 ? 1 : -1];
5750 main ()
5754 return 0;
5756 _ACEOF
5757 if ac_fn_c_try_compile "$LINENO"; then :
5758 ac_cv_sys_file_offset_bits=no; break
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 #define _FILE_OFFSET_BITS 64
5764 #include <sys/types.h>
5765 /* Check that off_t can represent 2**63 - 1 correctly.
5766 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5767 since some C++ compilers masquerading as C compilers
5768 incorrectly reject 9223372036854775807. */
5769 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5770 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5771 && LARGE_OFF_T % 2147483647 == 1)
5772 ? 1 : -1];
5774 main ()
5778 return 0;
5780 _ACEOF
5781 if ac_fn_c_try_compile "$LINENO"; then :
5782 ac_cv_sys_file_offset_bits=64; break
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 ac_cv_sys_file_offset_bits=unknown
5786 break
5787 done
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5790 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5791 case $ac_cv_sys_file_offset_bits in #(
5792 no | unknown) ;;
5794 cat >>confdefs.h <<_ACEOF
5795 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5796 _ACEOF
5798 esac
5799 rm -rf conftest*
5800 if test $ac_cv_sys_file_offset_bits = unknown; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5802 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5803 if test "${ac_cv_sys_large_files+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 while :; do
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5809 #include <sys/types.h>
5810 /* Check that off_t can represent 2**63 - 1 correctly.
5811 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5812 since some C++ compilers masquerading as C compilers
5813 incorrectly reject 9223372036854775807. */
5814 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5816 && LARGE_OFF_T % 2147483647 == 1)
5817 ? 1 : -1];
5819 main ()
5823 return 0;
5825 _ACEOF
5826 if ac_fn_c_try_compile "$LINENO"; then :
5827 ac_cv_sys_large_files=no; break
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 #define _LARGE_FILES 1
5833 #include <sys/types.h>
5834 /* Check that off_t can represent 2**63 - 1 correctly.
5835 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5836 since some C++ compilers masquerading as C compilers
5837 incorrectly reject 9223372036854775807. */
5838 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5840 && LARGE_OFF_T % 2147483647 == 1)
5841 ? 1 : -1];
5843 main ()
5847 return 0;
5849 _ACEOF
5850 if ac_fn_c_try_compile "$LINENO"; then :
5851 ac_cv_sys_large_files=1; break
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5854 ac_cv_sys_large_files=unknown
5855 break
5856 done
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5859 $as_echo "$ac_cv_sys_large_files" >&6; }
5860 case $ac_cv_sys_large_files in #(
5861 no | unknown) ;;
5863 cat >>confdefs.h <<_ACEOF
5864 #define _LARGE_FILES $ac_cv_sys_large_files
5865 _ACEOF
5867 esac
5868 rm -rf conftest*
5874 ## If user specified a crt-dir, use that unconditionally.
5875 if test "X$CRT_DIR" = "X"; then
5877 case "$canonical" in
5878 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5879 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5880 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5881 ## For anything else (eg /usr/lib32), it is up the user to specify
5882 ## the location (bug#5655).
5883 ## Test for crtn.o, not just the directory, because sometimes the
5884 ## directory exists but does not have the relevant files (bug#1287).
5885 ## FIXME better to test for binary compatibility somehow.
5886 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5889 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5890 esac
5892 case "$opsys" in
5893 hpux10-20) CRT_DIR=/lib ;;
5894 esac
5896 ## Default is /usr/lib.
5897 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5899 else
5901 ## Some platforms don't use any of these files, so it is not
5902 ## appropriate to put this test outside the if block.
5903 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5904 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
5910 LIB_MATH=-lm
5911 LIB_STANDARD=
5912 START_FILES=
5914 case $opsys in
5915 cygwin )
5916 LIB_MATH=
5917 START_FILES='pre-crt0.o'
5919 darwin )
5920 ## Adding -lm confuses the dynamic linker, so omit it.
5921 LIB_MATH=
5922 START_FILES='pre-crt0.o'
5924 freebsd )
5925 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5926 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5928 gnu-linux | gnu-kfreebsd )
5929 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5930 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5932 hpux10-20 | hpux11 )
5933 LIB_STANDARD=-lc
5934 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5936 netbsd | openbsd )
5937 if test -f $CRT_DIR/crti.o; then
5938 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5939 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5940 else
5941 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5942 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5945 esac
5953 if test "${with_sound}" != "no"; then
5954 # Sound support for GNU/Linux and the free BSDs.
5955 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5956 do :
5957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5958 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5960 cat >>confdefs.h <<_ACEOF
5961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5962 _ACEOF
5963 have_sound_header=yes
5966 done
5968 # Emulation library used on NetBSD.
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5970 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5971 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 ac_check_lib_save_LIBS=$LIBS
5975 LIBS="-lossaudio $LIBS"
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5979 /* Override any GCC internal prototype to avoid an error.
5980 Use char because int might match the return type of a GCC
5981 builtin and then its argument prototype would still apply. */
5982 #ifdef __cplusplus
5983 extern "C"
5984 #endif
5985 char _oss_ioctl ();
5987 main ()
5989 return _oss_ioctl ();
5991 return 0;
5993 _ACEOF
5994 if ac_fn_c_try_link "$LINENO"; then :
5995 ac_cv_lib_ossaudio__oss_ioctl=yes
5996 else
5997 ac_cv_lib_ossaudio__oss_ioctl=no
5999 rm -f core conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001 LIBS=$ac_check_lib_save_LIBS
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6004 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6005 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6006 LIBSOUND=-lossaudio
6007 else
6008 LIBSOUND=
6013 ALSA_REQUIRED=1.0.0
6014 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6016 succeeded=no
6018 # Extract the first word of "pkg-config", so it can be a program name with args.
6019 set dummy pkg-config; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 case $PKG_CONFIG in
6026 [\\/]* | ?:[\\/]*)
6027 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6041 done
6042 done
6043 IFS=$as_save_IFS
6045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6047 esac
6049 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6050 if test -n "$PKG_CONFIG"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6052 $as_echo "$PKG_CONFIG" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6060 if test "$PKG_CONFIG" = "no" ; then
6061 HAVE_ALSA=no
6062 else
6063 PKG_CONFIG_MIN_VERSION=0.9.0
6064 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6066 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6068 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6070 $as_echo "yes" >&6; }
6071 succeeded=yes
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6074 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6075 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6077 $as_echo "$ALSA_CFLAGS" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6080 $as_echo_n "checking ALSA_LIBS... " >&6; }
6081 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6083 $as_echo "$ALSA_LIBS" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 ALSA_CFLAGS=""
6088 ALSA_LIBS=""
6089 ## If we have a custom action on failure, don't print errors, but
6090 ## do set a variable so people can do so.
6091 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6097 else
6098 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6099 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6103 if test $succeeded = yes; then
6104 HAVE_ALSA=yes
6105 else
6106 HAVE_ALSA=no
6109 if test $HAVE_ALSA = yes; then
6110 SAVE_CFLAGS="$CFLAGS"
6111 SAVE_LDFLAGS="$LDFLAGS"
6112 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6113 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116 #include <asoundlib.h>
6118 main ()
6120 snd_lib_error_set_handler (0);
6122 return 0;
6124 _ACEOF
6125 if ac_fn_c_try_compile "$LINENO"; then :
6126 emacs_alsa_normal=yes
6127 else
6128 emacs_alsa_normal=no
6130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131 if test "$emacs_alsa_normal" != yes; then
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #include <alsa/asoundlib.h>
6136 main ()
6138 snd_lib_error_set_handler (0);
6140 return 0;
6142 _ACEOF
6143 if ac_fn_c_try_compile "$LINENO"; then :
6144 emacs_alsa_subdir=yes
6145 else
6146 emacs_alsa_subdir=no
6148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149 if test "$emacs_alsa_subdir" != yes; then
6150 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6152 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6155 CFLAGS="$SAVE_CFLAGS"
6156 LDFLAGS="$SAVE_LDFLAGS"
6157 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6158 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6160 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6164 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6165 case "$opsys" in
6166 gnu-linux|freebsd|netbsd)
6168 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6171 esac
6177 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
6178 linux/version.h sys/systeminfo.h limits.h \
6179 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
6180 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6181 sys/utsname.h pwd.h utmp.h dirent.h util.h
6182 do :
6183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6186 cat >>confdefs.h <<_ACEOF
6187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6188 _ACEOF
6192 done
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6196 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198 /* end confdefs.h. */
6199 #include <sys/personality.h>
6201 main ()
6203 personality (PER_LINUX32)
6205 return 0;
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"; then :
6209 emacs_cv_personality_linux32=yes
6210 else
6211 emacs_cv_personality_linux32=no
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6215 $as_echo "$emacs_cv_personality_linux32" >&6; }
6217 if test $emacs_cv_personality_linux32 = yes; then
6219 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6223 for ac_header in term.h
6224 do :
6225 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6226 if test "x$ac_cv_header_term_h" = x""yes; then :
6227 cat >>confdefs.h <<_ACEOF
6228 #define HAVE_TERM_H 1
6229 _ACEOF
6233 done
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6236 $as_echo_n "checking for ANSI C header files... " >&6; }
6237 if test "${ac_cv_header_stdc+set}" = set; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 #include <stdlib.h>
6243 #include <stdarg.h>
6244 #include <string.h>
6245 #include <float.h>
6248 main ()
6252 return 0;
6254 _ACEOF
6255 if ac_fn_c_try_compile "$LINENO"; then :
6256 ac_cv_header_stdc=yes
6257 else
6258 ac_cv_header_stdc=no
6260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 if test $ac_cv_header_stdc = yes; then
6263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #include <string.h>
6268 _ACEOF
6269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6270 $EGREP "memchr" >/dev/null 2>&1; then :
6272 else
6273 ac_cv_header_stdc=no
6275 rm -f conftest*
6279 if test $ac_cv_header_stdc = yes; then
6280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 #include <stdlib.h>
6285 _ACEOF
6286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6287 $EGREP "free" >/dev/null 2>&1; then :
6289 else
6290 ac_cv_header_stdc=no
6292 rm -f conftest*
6296 if test $ac_cv_header_stdc = yes; then
6297 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6298 if test "$cross_compiling" = yes; then :
6300 else
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6303 #include <ctype.h>
6304 #include <stdlib.h>
6305 #if ((' ' & 0x0FF) == 0x020)
6306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6308 #else
6309 # define ISLOWER(c) \
6310 (('a' <= (c) && (c) <= 'i') \
6311 || ('j' <= (c) && (c) <= 'r') \
6312 || ('s' <= (c) && (c) <= 'z'))
6313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6314 #endif
6316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6318 main ()
6320 int i;
6321 for (i = 0; i < 256; i++)
6322 if (XOR (islower (i), ISLOWER (i))
6323 || toupper (i) != TOUPPER (i))
6324 return 2;
6325 return 0;
6327 _ACEOF
6328 if ac_fn_c_try_run "$LINENO"; then :
6330 else
6331 ac_cv_header_stdc=no
6333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6334 conftest.$ac_objext conftest.beam conftest.$ac_ext
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6340 $as_echo "$ac_cv_header_stdc" >&6; }
6341 if test $ac_cv_header_stdc = yes; then
6343 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6348 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6349 if test "${ac_cv_header_time+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 #include <sys/types.h>
6355 #include <sys/time.h>
6356 #include <time.h>
6359 main ()
6361 if ((struct tm *) 0)
6362 return 0;
6364 return 0;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6368 ac_cv_header_time=yes
6369 else
6370 ac_cv_header_time=no
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6375 $as_echo "$ac_cv_header_time" >&6; }
6376 if test $ac_cv_header_time = yes; then
6378 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6382 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6383 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6384 ac_have_decl=1
6385 else
6386 ac_have_decl=0
6389 cat >>confdefs.h <<_ACEOF
6390 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6391 _ACEOF
6393 if test $ac_cv_have_decl_sys_siglist != yes; then
6394 # For Tru64, at least:
6395 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6396 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6397 ac_have_decl=1
6398 else
6399 ac_have_decl=0
6402 cat >>confdefs.h <<_ACEOF
6403 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6404 _ACEOF
6406 if test $ac_cv_have_decl___sys_siglist = yes; then
6408 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6413 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6414 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 #include <sys/types.h>
6420 #include <sys/wait.h>
6421 #ifndef WEXITSTATUS
6422 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6423 #endif
6424 #ifndef WIFEXITED
6425 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6426 #endif
6429 main ()
6431 int s;
6432 wait (&s);
6433 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6435 return 0;
6437 _ACEOF
6438 if ac_fn_c_try_compile "$LINENO"; then :
6439 ac_cv_header_sys_wait_h=yes
6440 else
6441 ac_cv_header_sys_wait_h=no
6443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6446 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6447 if test $ac_cv_header_sys_wait_h = yes; then
6449 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6455 $as_echo_n "checking for struct utimbuf... " >&6; }
6456 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 #ifdef TIME_WITH_SYS_TIME
6462 #include <sys/time.h>
6463 #include <time.h>
6464 #else
6465 #ifdef HAVE_SYS_TIME_H
6466 #include <sys/time.h>
6467 #else
6468 #include <time.h>
6469 #endif
6470 #endif
6471 #ifdef HAVE_UTIME_H
6472 #include <utime.h>
6473 #endif
6475 main ()
6477 static struct utimbuf x; x.actime = x.modtime;
6479 return 0;
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483 emacs_cv_struct_utimbuf=yes
6484 else
6485 emacs_cv_struct_utimbuf=no
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6490 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6491 if test $emacs_cv_struct_utimbuf = yes; then
6493 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6498 $as_echo_n "checking return type of signal handlers... " >&6; }
6499 if test "${ac_cv_type_signal+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 #include <sys/types.h>
6505 #include <signal.h>
6508 main ()
6510 return *(signal (0, 0)) (0) == 1;
6512 return 0;
6514 _ACEOF
6515 if ac_fn_c_try_compile "$LINENO"; then :
6516 ac_cv_type_signal=int
6517 else
6518 ac_cv_type_signal=void
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6523 $as_echo "$ac_cv_type_signal" >&6; }
6525 cat >>confdefs.h <<_ACEOF
6526 #define RETSIGTYPE $ac_cv_type_signal
6527 _ACEOF
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6532 $as_echo_n "checking for speed_t... " >&6; }
6533 if test "${emacs_cv_speed_t+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 #include <termios.h>
6540 main ()
6542 speed_t x = 1;
6544 return 0;
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"; then :
6548 emacs_cv_speed_t=yes
6549 else
6550 emacs_cv_speed_t=no
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6555 $as_echo "$emacs_cv_speed_t" >&6; }
6556 if test $emacs_cv_speed_t = yes; then
6558 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6563 $as_echo_n "checking for struct timeval... " >&6; }
6564 if test "${emacs_cv_struct_timeval+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 #ifdef TIME_WITH_SYS_TIME
6570 #include <sys/time.h>
6571 #include <time.h>
6572 #else
6573 #ifdef HAVE_SYS_TIME_H
6574 #include <sys/time.h>
6575 #else
6576 #include <time.h>
6577 #endif
6578 #endif
6580 main ()
6582 static struct timeval x; x.tv_sec = x.tv_usec;
6584 return 0;
6586 _ACEOF
6587 if ac_fn_c_try_compile "$LINENO"; then :
6588 emacs_cv_struct_timeval=yes
6589 else
6590 emacs_cv_struct_timeval=no
6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6595 $as_echo "$emacs_cv_struct_timeval" >&6; }
6596 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6597 if test $emacs_cv_struct_timeval = yes; then
6599 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6604 $as_echo_n "checking for struct exception... " >&6; }
6605 if test "${emacs_cv_struct_exception+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 #include <math.h>
6612 main ()
6614 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6616 return 0;
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 emacs_cv_struct_exception=yes
6621 else
6622 emacs_cv_struct_exception=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6627 $as_echo "$emacs_cv_struct_exception" >&6; }
6628 HAVE_EXCEPTION=$emacs_cv_struct_exception
6629 if test $emacs_cv_struct_exception != yes; then
6631 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6635 for ac_header in sys/socket.h
6636 do :
6637 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6638 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6639 cat >>confdefs.h <<_ACEOF
6640 #define HAVE_SYS_SOCKET_H 1
6641 _ACEOF
6645 done
6647 for ac_header in net/if.h
6648 do :
6649 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6650 #if HAVE_SYS_SOCKET_H
6651 #include <sys/socket.h>
6652 #endif
6654 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6655 cat >>confdefs.h <<_ACEOF
6656 #define HAVE_NET_IF_H 1
6657 _ACEOF
6661 done
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6665 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6666 if test "${ac_cv_struct_tm+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 #include <sys/types.h>
6672 #include <time.h>
6675 main ()
6677 struct tm tm;
6678 int *p = &tm.tm_sec;
6679 return !p;
6681 return 0;
6683 _ACEOF
6684 if ac_fn_c_try_compile "$LINENO"; then :
6685 ac_cv_struct_tm=time.h
6686 else
6687 ac_cv_struct_tm=sys/time.h
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6692 $as_echo "$ac_cv_struct_tm" >&6; }
6693 if test $ac_cv_struct_tm = sys/time.h; then
6695 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6699 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6700 #include <$ac_cv_struct_tm>
6703 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6705 cat >>confdefs.h <<_ACEOF
6706 #define HAVE_STRUCT_TM_TM_ZONE 1
6707 _ACEOF
6712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6714 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6716 else
6717 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6719 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6720 ac_have_decl=1
6721 else
6722 ac_have_decl=0
6725 cat >>confdefs.h <<_ACEOF
6726 #define HAVE_DECL_TZNAME $ac_have_decl
6727 _ACEOF
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6730 $as_echo_n "checking for tzname... " >&6; }
6731 if test "${ac_cv_var_tzname+set}" = set; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <time.h>
6737 #if !HAVE_DECL_TZNAME
6738 extern char *tzname[];
6739 #endif
6742 main ()
6744 return tzname[0][0];
6746 return 0;
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 ac_cv_var_tzname=yes
6751 else
6752 ac_cv_var_tzname=no
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6758 $as_echo "$ac_cv_var_tzname" >&6; }
6759 if test $ac_cv_var_tzname = yes; then
6761 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6766 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6768 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6770 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6774 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6775 #if HAVE_SYS_SOCKET_H
6776 #include <sys/socket.h>
6777 #endif
6778 #if HAVE_NET_IF_H
6779 #include <net/if.h>
6780 #endif
6782 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6784 cat >>confdefs.h <<_ACEOF
6785 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6786 _ACEOF
6790 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6791 #if HAVE_SYS_SOCKET_H
6792 #include <sys/socket.h>
6793 #endif
6794 #if HAVE_NET_IF_H
6795 #include <net/if.h>
6796 #endif
6798 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6800 cat >>confdefs.h <<_ACEOF
6801 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6802 _ACEOF
6806 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6807 #if HAVE_SYS_SOCKET_H
6808 #include <sys/socket.h>
6809 #endif
6810 #if HAVE_NET_IF_H
6811 #include <net/if.h>
6812 #endif
6814 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6818 _ACEOF
6822 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6823 #if HAVE_SYS_SOCKET_H
6824 #include <sys/socket.h>
6825 #endif
6826 #if HAVE_NET_IF_H
6827 #include <net/if.h>
6828 #endif
6830 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6832 cat >>confdefs.h <<_ACEOF
6833 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6834 _ACEOF
6838 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6839 #if HAVE_SYS_SOCKET_H
6840 #include <sys/socket.h>
6841 #endif
6842 #if HAVE_NET_IF_H
6843 #include <net/if.h>
6844 #endif
6846 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6848 cat >>confdefs.h <<_ACEOF
6849 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6850 _ACEOF
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6858 $as_echo_n "checking for function prototypes... " >&6; }
6859 if test "$ac_cv_prog_cc_c89" != no; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6861 $as_echo "yes" >&6; }
6863 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6866 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6874 $as_echo_n "checking for working volatile... " >&6; }
6875 if test "${ac_cv_c_volatile+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6882 main ()
6885 volatile int x;
6886 int * volatile y = (int *) 0;
6887 return !x && !y;
6889 return 0;
6891 _ACEOF
6892 if ac_fn_c_try_compile "$LINENO"; then :
6893 ac_cv_c_volatile=yes
6894 else
6895 ac_cv_c_volatile=no
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6900 $as_echo "$ac_cv_c_volatile" >&6; }
6901 if test $ac_cv_c_volatile = no; then
6903 $as_echo "#define volatile /**/" >>confdefs.h
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6908 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6909 if test "${ac_cv_c_const+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6916 main ()
6918 /* FIXME: Include the comments suggested by Paul. */
6919 #ifndef __cplusplus
6920 /* Ultrix mips cc rejects this. */
6921 typedef int charset[2];
6922 const charset cs;
6923 /* SunOS 4.1.1 cc rejects this. */
6924 char const *const *pcpcc;
6925 char **ppc;
6926 /* NEC SVR4.0.2 mips cc rejects this. */
6927 struct point {int x, y;};
6928 static struct point const zero = {0,0};
6929 /* AIX XL C 1.02.0.0 rejects this.
6930 It does not let you subtract one const X* pointer from another in
6931 an arm of an if-expression whose if-part is not a constant
6932 expression */
6933 const char *g = "string";
6934 pcpcc = &g + (g ? g-g : 0);
6935 /* HPUX 7.0 cc rejects these. */
6936 ++pcpcc;
6937 ppc = (char**) pcpcc;
6938 pcpcc = (char const *const *) ppc;
6939 { /* SCO 3.2v4 cc rejects this. */
6940 char *t;
6941 char const *s = 0 ? (char *) 0 : (char const *) 0;
6943 *t++ = 0;
6944 if (s) return 0;
6946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6947 int x[] = {25, 17};
6948 const int *foo = &x[0];
6949 ++foo;
6951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6952 typedef const int *iptr;
6953 iptr p = 0;
6954 ++p;
6956 { /* AIX XL C 1.02.0.0 rejects this saying
6957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6958 struct s { int j; const int *ap[3]; };
6959 struct s *b; b->j = 5;
6961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6962 const int foo = 10;
6963 if (!foo) return 0;
6965 return !cs[0] && !zero.x;
6966 #endif
6969 return 0;
6971 _ACEOF
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973 ac_cv_c_const=yes
6974 else
6975 ac_cv_c_const=no
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6980 $as_echo "$ac_cv_c_const" >&6; }
6981 if test $ac_cv_c_const = no; then
6983 $as_echo "#define const /**/" >>confdefs.h
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6988 $as_echo_n "checking for void * support... " >&6; }
6989 if test "${emacs_cv_void_star+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6996 main ()
6998 void * foo;
7000 return 0;
7002 _ACEOF
7003 if ac_fn_c_try_compile "$LINENO"; then :
7004 emacs_cv_void_star=yes
7005 else
7006 emacs_cv_void_star=no
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7011 $as_echo "$emacs_cv_void_star" >&6; }
7012 if test $emacs_cv_void_star = yes; then
7013 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7015 else
7016 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7021 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7022 if test "${ac_cv_c_bigendian+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 ac_cv_c_bigendian=unknown
7026 # See if we're dealing with a universal compiler.
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7029 #ifndef __APPLE_CC__
7030 not a universal capable compiler
7031 #endif
7032 typedef int dummy;
7034 _ACEOF
7035 if ac_fn_c_try_compile "$LINENO"; then :
7037 # Check for potential -arch flags. It is not universal unless
7038 # there are at least two -arch flags with different values.
7039 ac_arch=
7040 ac_prev=
7041 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7042 if test -n "$ac_prev"; then
7043 case $ac_word in
7044 i?86 | x86_64 | ppc | ppc64)
7045 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7046 ac_arch=$ac_word
7047 else
7048 ac_cv_c_bigendian=universal
7049 break
7052 esac
7053 ac_prev=
7054 elif test "x$ac_word" = "x-arch"; then
7055 ac_prev=arch
7057 done
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 if test $ac_cv_c_bigendian = unknown; then
7061 # See if sys/param.h defines the BYTE_ORDER macro.
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #include <sys/types.h>
7065 #include <sys/param.h>
7068 main ()
7070 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7071 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7072 && LITTLE_ENDIAN)
7073 bogus endian macros
7074 #endif
7077 return 0;
7079 _ACEOF
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 # It does; now see whether it defined to BIG_ENDIAN or not.
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 #include <sys/types.h>
7085 #include <sys/param.h>
7088 main ()
7090 #if BYTE_ORDER != BIG_ENDIAN
7091 not big endian
7092 #endif
7095 return 0;
7097 _ACEOF
7098 if ac_fn_c_try_compile "$LINENO"; then :
7099 ac_cv_c_bigendian=yes
7100 else
7101 ac_cv_c_bigendian=no
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 if test $ac_cv_c_bigendian = unknown; then
7108 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 #include <limits.h>
7114 main ()
7116 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7117 bogus endian macros
7118 #endif
7121 return 0;
7123 _ACEOF
7124 if ac_fn_c_try_compile "$LINENO"; then :
7125 # It does; now see whether it defined to _BIG_ENDIAN or not.
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 #include <limits.h>
7131 main ()
7133 #ifndef _BIG_ENDIAN
7134 not big endian
7135 #endif
7138 return 0;
7140 _ACEOF
7141 if ac_fn_c_try_compile "$LINENO"; then :
7142 ac_cv_c_bigendian=yes
7143 else
7144 ac_cv_c_bigendian=no
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 if test $ac_cv_c_bigendian = unknown; then
7151 # Compile a test program.
7152 if test "$cross_compiling" = yes; then :
7153 # Try to guess by grepping values from an object file.
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 short int ascii_mm[] =
7157 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7158 short int ascii_ii[] =
7159 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7160 int use_ascii (int i) {
7161 return ascii_mm[i] + ascii_ii[i];
7163 short int ebcdic_ii[] =
7164 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7165 short int ebcdic_mm[] =
7166 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7167 int use_ebcdic (int i) {
7168 return ebcdic_mm[i] + ebcdic_ii[i];
7170 extern int foo;
7173 main ()
7175 return use_ascii (foo) == use_ebcdic (foo);
7177 return 0;
7179 _ACEOF
7180 if ac_fn_c_try_compile "$LINENO"; then :
7181 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7182 ac_cv_c_bigendian=yes
7184 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7185 if test "$ac_cv_c_bigendian" = unknown; then
7186 ac_cv_c_bigendian=no
7187 else
7188 # finding both strings is unlikely to happen, but who knows?
7189 ac_cv_c_bigendian=unknown
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 $ac_includes_default
7199 main ()
7202 /* Are we little or big endian? From Harbison&Steele. */
7203 union
7205 long int l;
7206 char c[sizeof (long int)];
7207 } u;
7208 u.l = 1;
7209 return u.c[sizeof (long int) - 1] == 1;
7212 return 0;
7214 _ACEOF
7215 if ac_fn_c_try_run "$LINENO"; then :
7216 ac_cv_c_bigendian=no
7217 else
7218 ac_cv_c_bigendian=yes
7220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7221 conftest.$ac_objext conftest.beam conftest.$ac_ext
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7227 $as_echo "$ac_cv_c_bigendian" >&6; }
7228 case $ac_cv_c_bigendian in #(
7229 yes)
7230 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7231 ;; #(
7233 ;; #(
7234 universal)
7236 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7238 ;; #(
7240 as_fn_error $? "unknown endianness
7241 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7242 esac
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7247 set x ${MAKE-make}
7248 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7249 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 cat >conftest.make <<\_ACEOF
7253 SHELL = /bin/sh
7254 all:
7255 @echo '@@@%%%=$(MAKE)=@@@%%%'
7256 _ACEOF
7257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7259 *@@@%%%=?*=@@@%%%*)
7260 eval ac_cv_prog_make_${ac_make}_set=yes;;
7262 eval ac_cv_prog_make_${ac_make}_set=no;;
7263 esac
7264 rm -f conftest.make
7266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7268 $as_echo "yes" >&6; }
7269 SET_MAKE=
7270 else
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7273 SET_MAKE="MAKE=${MAKE-make}"
7277 DEPFLAGS=
7278 MKDEPDIR=":"
7279 deps_frag=deps.mk
7280 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7282 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7283 HAVE_GNU_MAKE=no
7284 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7285 if test "x$testval" != x; then
7286 HAVE_GNU_MAKE=yes
7287 else
7288 ac_enable_autodepend=no
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7291 $as_echo "$HAVE_GNU_MAKE" >&6; }
7292 if test $HAVE_GNU_MAKE = yes; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7294 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7295 SAVE_CFLAGS="$CFLAGS"
7296 CFLAGS="$CFLAGS -MMD -MF deps.d"
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7301 main ()
7305 return 0;
7307 _ACEOF
7308 if ac_fn_c_try_compile "$LINENO"; then :
7310 else
7311 ac_enable_autodepend=no
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 CFLAGS="$SAVE_CFLAGS"
7315 test -f deps.d || ac_enable_autodepend=no
7316 rm -rf deps.d
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7318 $as_echo "$ac_enable_autodepend" >&6; }
7320 if test $ac_enable_autodepend = yes; then
7321 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7322 ## In parallel builds, another make might create depdir between
7323 ## the first test and mkdir, so stick another test on the end.
7324 ## Or use mkinstalldirs? mkdir -p is not portable.
7325 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7326 deps_frag=autodeps.mk
7329 deps_frag=$srcdir/src/$deps_frag
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7336 $as_echo_n "checking for long file names... " >&6; }
7337 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 ac_cv_sys_long_file_names=yes
7341 # Test for long file names in all the places we know might matter:
7342 # . the current directory, where building will happen
7343 # $prefix/lib where we will be installing things
7344 # $exec_prefix/lib likewise
7345 # $TMPDIR if set, where it might want to write temporary files
7346 # /tmp where it might want to write temporary files
7347 # /var/tmp likewise
7348 # /usr/tmp likewise
7349 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7350 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7351 # in the usual case where exec_prefix is '${prefix}'.
7352 case $ac_dir in #(
7353 . | /* | ?:[\\/]*) ;; #(
7354 *) continue;;
7355 esac
7356 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7357 ac_xdir=$ac_dir/cf$$
7358 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7359 ac_tf1=$ac_xdir/conftest9012345
7360 ac_tf2=$ac_xdir/conftest9012346
7361 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7362 ac_cv_sys_long_file_names=no
7363 rm -f -r "$ac_xdir" 2>/dev/null
7364 test $ac_cv_sys_long_file_names = no && break
7365 done
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7368 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7369 if test $ac_cv_sys_long_file_names = yes; then
7371 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7376 #### Choose a window system.
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7379 $as_echo_n "checking for X... " >&6; }
7382 # Check whether --with-x was given.
7383 if test "${with_x+set}" = set; then :
7384 withval=$with_x;
7387 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7388 if test "x$with_x" = xno; then
7389 # The user explicitly disabled X.
7390 have_x=disabled
7391 else
7392 case $x_includes,$x_libraries in #(
7393 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7394 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 # One or both of the vars are not set, and there is no cached value.
7398 ac_x_includes=no ac_x_libraries=no
7399 rm -f -r conftest.dir
7400 if mkdir conftest.dir; then
7401 cd conftest.dir
7402 cat >Imakefile <<'_ACEOF'
7403 incroot:
7404 @echo incroot='${INCROOT}'
7405 usrlibdir:
7406 @echo usrlibdir='${USRLIBDIR}'
7407 libdir:
7408 @echo libdir='${LIBDIR}'
7409 _ACEOF
7410 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7411 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7412 for ac_var in incroot usrlibdir libdir; do
7413 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7414 done
7415 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7416 for ac_extension in a so sl dylib la dll; do
7417 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7418 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7419 ac_im_usrlibdir=$ac_im_libdir; break
7421 done
7422 # Screen out bogus values from the imake configuration. They are
7423 # bogus both because they are the default anyway, and because
7424 # using them would break gcc on systems where it needs fixed includes.
7425 case $ac_im_incroot in
7426 /usr/include) ac_x_includes= ;;
7427 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7428 esac
7429 case $ac_im_usrlibdir in
7430 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7431 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7432 esac
7434 cd ..
7435 rm -f -r conftest.dir
7438 # Standard set of common directories for X headers.
7439 # Check X11 before X11Rn because it is often a symlink to the current release.
7440 ac_x_header_dirs='
7441 /usr/X11/include
7442 /usr/X11R7/include
7443 /usr/X11R6/include
7444 /usr/X11R5/include
7445 /usr/X11R4/include
7447 /usr/include/X11
7448 /usr/include/X11R7
7449 /usr/include/X11R6
7450 /usr/include/X11R5
7451 /usr/include/X11R4
7453 /usr/local/X11/include
7454 /usr/local/X11R7/include
7455 /usr/local/X11R6/include
7456 /usr/local/X11R5/include
7457 /usr/local/X11R4/include
7459 /usr/local/include/X11
7460 /usr/local/include/X11R7
7461 /usr/local/include/X11R6
7462 /usr/local/include/X11R5
7463 /usr/local/include/X11R4
7465 /usr/X386/include
7466 /usr/x386/include
7467 /usr/XFree86/include/X11
7469 /usr/include
7470 /usr/local/include
7471 /usr/unsupported/include
7472 /usr/athena/include
7473 /usr/local/x11r5/include
7474 /usr/lpp/Xamples/include
7476 /usr/openwin/include
7477 /usr/openwin/share/include'
7479 if test "$ac_x_includes" = no; then
7480 # Guess where to find include files, by looking for Xlib.h.
7481 # First, try using that file with no special directory specified.
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 #include <X11/Xlib.h>
7485 _ACEOF
7486 if ac_fn_c_try_cpp "$LINENO"; then :
7487 # We can compile using X headers with no special include directory.
7488 ac_x_includes=
7489 else
7490 for ac_dir in $ac_x_header_dirs; do
7491 if test -r "$ac_dir/X11/Xlib.h"; then
7492 ac_x_includes=$ac_dir
7493 break
7495 done
7497 rm -f conftest.err conftest.i conftest.$ac_ext
7498 fi # $ac_x_includes = no
7500 if test "$ac_x_libraries" = no; then
7501 # Check for the libraries.
7502 # See if we find them without any special options.
7503 # Don't add to $LIBS permanently.
7504 ac_save_LIBS=$LIBS
7505 LIBS="-lX11 $LIBS"
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 #include <X11/Xlib.h>
7510 main ()
7512 XrmInitialize ()
7514 return 0;
7516 _ACEOF
7517 if ac_fn_c_try_link "$LINENO"; then :
7518 LIBS=$ac_save_LIBS
7519 # We can link X programs with no special library path.
7520 ac_x_libraries=
7521 else
7522 LIBS=$ac_save_LIBS
7523 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7525 # Don't even attempt the hair of trying to link an X program!
7526 for ac_extension in a so sl dylib la dll; do
7527 if test -r "$ac_dir/libX11.$ac_extension"; then
7528 ac_x_libraries=$ac_dir
7529 break 2
7531 done
7532 done
7534 rm -f core conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7536 fi # $ac_x_libraries = no
7538 case $ac_x_includes,$ac_x_libraries in #(
7539 no,* | *,no | *\'*)
7540 # Didn't find X, or a directory has "'" in its name.
7541 ac_cv_have_x="have_x=no";; #(
7543 # Record where we found X for the cache.
7544 ac_cv_have_x="have_x=yes\
7545 ac_x_includes='$ac_x_includes'\
7546 ac_x_libraries='$ac_x_libraries'"
7547 esac
7549 ;; #(
7550 *) have_x=yes;;
7551 esac
7552 eval "$ac_cv_have_x"
7553 fi # $with_x != no
7555 if test "$have_x" != yes; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7557 $as_echo "$have_x" >&6; }
7558 no_x=yes
7559 else
7560 # If each of the values was on the command line, it overrides each guess.
7561 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7562 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7563 # Update the cache value to reflect the command line values.
7564 ac_cv_have_x="have_x=yes\
7565 ac_x_includes='$x_includes'\
7566 ac_x_libraries='$x_libraries'"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7568 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7571 if test "$no_x" = yes; then
7572 window_system=none
7573 else
7574 window_system=x11
7577 ## Workaround for bug in autoconf <= 2.62.
7578 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7579 ## No need to do anything special for these standard directories.
7580 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7582 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7586 LD_SWITCH_X_SITE_AUX=
7587 LD_SWITCH_X_SITE_AUX_RPATH=
7588 if test "${x_libraries}" != NONE; then
7589 if test -n "${x_libraries}"; then
7590 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7591 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7592 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7594 x_default_search_path=""
7595 x_search_path=${x_libraries}
7596 if test -z "${x_search_path}"; then
7597 x_search_path=/usr/lib
7599 for x_library in `echo ${x_search_path}: | \
7600 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7601 x_search_path="\
7602 ${x_library}/X11/%L/%T/%N%C%S:\
7603 ${x_library}/X11/%l/%T/%N%C%S:\
7604 ${x_library}/X11/%T/%N%C%S:\
7605 ${x_library}/X11/%L/%T/%N%S:\
7606 ${x_library}/X11/%l/%T/%N%S:\
7607 ${x_library}/X11/%T/%N%S"
7608 if test x"${x_default_search_path}" = x; then
7609 x_default_search_path=${x_search_path}
7610 else
7611 x_default_search_path="${x_search_path}:${x_default_search_path}"
7613 done
7618 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7619 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7622 if test x"${x_includes}" = x; then
7623 bitmapdir=/usr/include/X11/bitmaps
7624 else
7625 # accumulate include directories that have X11 bitmap subdirectories
7626 bmd_acc="dummyval"
7627 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7628 if test -d "${bmd}/X11/bitmaps"; then
7629 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7631 if test -d "${bmd}/bitmaps"; then
7632 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7634 done
7635 if test ${bmd_acc} != "dummyval"; then
7636 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7640 HAVE_NS=no
7641 NS_IMPL_COCOA=no
7642 NS_IMPL_GNUSTEP=no
7643 tmp_CPPFLAGS="$CPPFLAGS"
7644 tmp_CFLAGS="$CFLAGS"
7645 CPPFLAGS="$CPPFLAGS -x objective-c"
7646 CFLAGS="$CFLAGS -x objective-c"
7647 TEMACS_LDFLAGS2="\${LDFLAGS}"
7648 if test "${with_ns}" != no; then
7649 if test "${opsys}" = darwin; then
7650 NS_IMPL_COCOA=yes
7651 ns_appdir=`pwd`/nextstep/Emacs.app
7652 ns_appbindir=${ns_appdir}/Contents/MacOS/
7653 ns_appresdir=${ns_appdir}/Contents/Resources
7654 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7655 elif test -f $GNUSTEP_CONFIG_FILE; then
7656 NS_IMPL_GNUSTEP=yes
7657 ns_appdir=`pwd`/nextstep/Emacs.app
7658 ns_appbindir=${ns_appdir}/
7659 ns_appresdir=${ns_appdir}/Resources
7660 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7661 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7662 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7663 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7664 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7665 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7666 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7667 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7668 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7669 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7670 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7671 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7672 LIB_STANDARD=
7673 START_FILES=
7674 TEMACS_LDFLAGS2=
7676 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7677 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7678 HAVE_NS=yes
7679 else
7680 as_fn_error $? "\`--with-ns' was specified, but the include
7681 files are missing or cannot be compiled." "$LINENO" 5
7685 NS_HAVE_NSINTEGER=yes
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #include <Foundation/NSObjCRuntime.h>
7690 main ()
7692 NSInteger i;
7694 return 0;
7696 _ACEOF
7697 if ac_fn_c_try_compile "$LINENO"; then :
7698 ns_have_nsinteger=yes
7699 else
7700 ns_have_nsinteger=no
7702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703 if test $ns_have_nsinteger = no; then
7704 NS_HAVE_NSINTEGER=no
7709 ns_frag=/dev/null
7710 NS_OBJ=
7711 NS_SUPPORT=
7712 if test "${HAVE_NS}" = yes; then
7713 window_system=nextstep
7714 with_xft=no
7715 # set up packaging dirs
7716 exec_prefix=${ns_appbindir}
7717 libexecdir=${ns_appbindir}/libexec
7718 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7719 prefix=${ns_appresdir}
7721 ns_frag=$srcdir/src/ns.mk
7722 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7723 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
7725 CFLAGS="$tmp_CFLAGS"
7726 CPPFLAGS="$tmp_CPPFLAGS"
7732 case "${window_system}" in
7733 x11 )
7734 HAVE_X_WINDOWS=yes
7735 HAVE_X11=yes
7736 case "${with_x_toolkit}" in
7737 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7738 motif ) USE_X_TOOLKIT=MOTIF ;;
7739 gtk ) with_gtk=yes
7740 USE_X_TOOLKIT=none ;;
7741 gtk3 ) with_gtk3=yes
7742 USE_X_TOOLKIT=none ;;
7743 no ) USE_X_TOOLKIT=none ;;
7744 * ) USE_X_TOOLKIT=maybe ;;
7745 esac
7747 nextstep | none )
7748 HAVE_X_WINDOWS=no
7749 HAVE_X11=no
7750 USE_X_TOOLKIT=none
7752 esac
7754 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7755 # Extract the first word of "X", so it can be a program name with args.
7756 set dummy X; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 if test -n "$HAVE_XSERVER"; then
7763 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_HAVE_XSERVER="true"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7776 done
7777 done
7778 IFS=$as_save_IFS
7780 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7783 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7784 if test -n "$HAVE_XSERVER"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7786 $as_echo "$HAVE_XSERVER" >&6; }
7787 else
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7793 if test "$HAVE_XSERVER" = true ||
7794 test -n "$DISPLAY" ||
7795 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7796 as_fn_error $? "You seem to be running X, but no X development libraries
7797 were found. You should install the relevant development files for X
7798 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7799 sure you have development files for image handling, i.e.
7800 tiff, gif, jpeg, png and xpm.
7801 If you are sure you want Emacs compiled without X window support, pass
7802 --without-x
7803 to configure." "$LINENO" 5
7807 ### If we're using X11, we should use the X menu package.
7808 HAVE_MENUS=no
7809 case ${HAVE_X11} in
7810 yes ) HAVE_MENUS=yes ;;
7811 esac
7813 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7814 # Assume not, until told otherwise.
7815 GNU_MALLOC=yes
7816 doug_lea_malloc=yes
7817 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7818 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7820 else
7821 doug_lea_malloc=no
7824 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7825 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7827 else
7828 doug_lea_malloc=no
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7832 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7833 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 extern void (* __after_morecore_hook)();
7840 main ()
7842 __after_morecore_hook = 0
7844 return 0;
7846 _ACEOF
7847 if ac_fn_c_try_link "$LINENO"; then :
7848 emacs_cv_var___after_morecore_hook=yes
7849 else
7850 emacs_cv_var___after_morecore_hook=no
7852 rm -f core conftest.err conftest.$ac_objext \
7853 conftest$ac_exeext conftest.$ac_ext
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7856 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7857 if test $emacs_cv_var___after_morecore_hook = no; then
7858 doug_lea_malloc=no
7862 system_malloc=no
7863 case "$opsys" in
7864 ## darwin ld insists on the use of malloc routines in the System framework.
7865 darwin|sol2-10) system_malloc=yes ;;
7866 esac
7868 if test "${system_malloc}" = "yes"; then
7870 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7872 GNU_MALLOC=no
7873 GNU_MALLOC_reason="
7874 (The GNU allocators don't work with this system configuration.)"
7875 GMALLOC_OBJ=
7876 VMLIMIT_OBJ=
7877 else
7878 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7879 VMLIMIT_OBJ=vm-limit.o
7884 if test "$doug_lea_malloc" = "yes" ; then
7885 if test "$GNU_MALLOC" = yes ; then
7886 GNU_MALLOC_reason="
7887 (Using Doug Lea's new malloc from the GNU C Library.)"
7890 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7893 ## Use mmap directly for allocating larger buffers.
7894 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7895 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7896 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7897 case "$opsys" in
7898 gnu*) REL_ALLOC=no ;;
7899 esac
7902 if test x"${REL_ALLOC}" = x; then
7903 REL_ALLOC=${GNU_MALLOC}
7906 use_mmap_for_buffers=no
7907 case "$opsys" in
7908 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7909 esac
7914 for ac_header in $ac_header_list
7915 do :
7916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7917 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7919 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7920 cat >>confdefs.h <<_ACEOF
7921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922 _ACEOF
7926 done
7935 for ac_func in getpagesize
7936 do :
7937 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7938 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7939 cat >>confdefs.h <<_ACEOF
7940 #define HAVE_GETPAGESIZE 1
7941 _ACEOF
7944 done
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7947 $as_echo_n "checking for working mmap... " >&6; }
7948 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
7950 else
7951 if test "$cross_compiling" = yes; then :
7952 ac_cv_func_mmap_fixed_mapped=no
7953 else
7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7956 $ac_includes_default
7957 /* malloc might have been renamed as rpl_malloc. */
7958 #undef malloc
7960 /* Thanks to Mike Haertel and Jim Avera for this test.
7961 Here is a matrix of mmap possibilities:
7962 mmap private not fixed
7963 mmap private fixed at somewhere currently unmapped
7964 mmap private fixed at somewhere already mapped
7965 mmap shared not fixed
7966 mmap shared fixed at somewhere currently unmapped
7967 mmap shared fixed at somewhere already mapped
7968 For private mappings, we should verify that changes cannot be read()
7969 back from the file, nor mmap's back from the file at a different
7970 address. (There have been systems where private was not correctly
7971 implemented like the infamous i386 svr4.0, and systems where the
7972 VM page cache was not coherent with the file system buffer cache
7973 like early versions of FreeBSD and possibly contemporary NetBSD.)
7974 For shared mappings, we should conversely verify that changes get
7975 propagated back to all the places they're supposed to be.
7977 Grep wants private fixed already mapped.
7978 The main things grep needs to know about mmap are:
7979 * does it exist and is it safe to write into the mmap'd area
7980 * how to use it (BSD variants) */
7982 #include <fcntl.h>
7983 #include <sys/mman.h>
7985 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7986 char *malloc ();
7987 #endif
7989 /* This mess was copied from the GNU getpagesize.h. */
7990 #ifndef HAVE_GETPAGESIZE
7991 # ifdef _SC_PAGESIZE
7992 # define getpagesize() sysconf(_SC_PAGESIZE)
7993 # else /* no _SC_PAGESIZE */
7994 # ifdef HAVE_SYS_PARAM_H
7995 # include <sys/param.h>
7996 # ifdef EXEC_PAGESIZE
7997 # define getpagesize() EXEC_PAGESIZE
7998 # else /* no EXEC_PAGESIZE */
7999 # ifdef NBPG
8000 # define getpagesize() NBPG * CLSIZE
8001 # ifndef CLSIZE
8002 # define CLSIZE 1
8003 # endif /* no CLSIZE */
8004 # else /* no NBPG */
8005 # ifdef NBPC
8006 # define getpagesize() NBPC
8007 # else /* no NBPC */
8008 # ifdef PAGESIZE
8009 # define getpagesize() PAGESIZE
8010 # endif /* PAGESIZE */
8011 # endif /* no NBPC */
8012 # endif /* no NBPG */
8013 # endif /* no EXEC_PAGESIZE */
8014 # else /* no HAVE_SYS_PARAM_H */
8015 # define getpagesize() 8192 /* punt totally */
8016 # endif /* no HAVE_SYS_PARAM_H */
8017 # endif /* no _SC_PAGESIZE */
8019 #endif /* no HAVE_GETPAGESIZE */
8022 main ()
8024 char *data, *data2, *data3;
8025 const char *cdata2;
8026 int i, pagesize;
8027 int fd, fd2;
8029 pagesize = getpagesize ();
8031 /* First, make a file with some known garbage in it. */
8032 data = (char *) malloc (pagesize);
8033 if (!data)
8034 return 1;
8035 for (i = 0; i < pagesize; ++i)
8036 *(data + i) = rand ();
8037 umask (0);
8038 fd = creat ("conftest.mmap", 0600);
8039 if (fd < 0)
8040 return 2;
8041 if (write (fd, data, pagesize) != pagesize)
8042 return 3;
8043 close (fd);
8045 /* Next, check that the tail of a page is zero-filled. File must have
8046 non-zero length, otherwise we risk SIGBUS for entire page. */
8047 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8048 if (fd2 < 0)
8049 return 4;
8050 cdata2 = "";
8051 if (write (fd2, cdata2, 1) != 1)
8052 return 5;
8053 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8054 if (data2 == MAP_FAILED)
8055 return 6;
8056 for (i = 0; i < pagesize; ++i)
8057 if (*(data2 + i))
8058 return 7;
8059 close (fd2);
8060 if (munmap (data2, pagesize))
8061 return 8;
8063 /* Next, try to mmap the file at a fixed address which already has
8064 something else allocated at it. If we can, also make sure that
8065 we see the same garbage. */
8066 fd = open ("conftest.mmap", O_RDWR);
8067 if (fd < 0)
8068 return 9;
8069 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8070 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8071 return 10;
8072 for (i = 0; i < pagesize; ++i)
8073 if (*(data + i) != *(data2 + i))
8074 return 11;
8076 /* Finally, make sure that changes to the mapped area do not
8077 percolate back to the file as seen by read(). (This is a bug on
8078 some variants of i386 svr4.0.) */
8079 for (i = 0; i < pagesize; ++i)
8080 *(data2 + i) = *(data2 + i) + 1;
8081 data3 = (char *) malloc (pagesize);
8082 if (!data3)
8083 return 12;
8084 if (read (fd, data3, pagesize) != pagesize)
8085 return 13;
8086 for (i = 0; i < pagesize; ++i)
8087 if (*(data + i) != *(data3 + i))
8088 return 14;
8089 close (fd);
8090 return 0;
8092 _ACEOF
8093 if ac_fn_c_try_run "$LINENO"; then :
8094 ac_cv_func_mmap_fixed_mapped=yes
8095 else
8096 ac_cv_func_mmap_fixed_mapped=no
8098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8099 conftest.$ac_objext conftest.beam conftest.$ac_ext
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8104 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8105 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8107 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
8110 rm -f conftest.mmap conftest.txt
8112 if test $use_mmap_for_buffers = yes; then
8114 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
8116 REL_ALLOC=no
8119 LIBS="$LIBS_SYSTEM $LIBS"
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8122 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8123 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 ac_check_lib_save_LIBS=$LIBS
8127 LIBS="-ldnet $LIBS"
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8131 /* Override any GCC internal prototype to avoid an error.
8132 Use char because int might match the return type of a GCC
8133 builtin and then its argument prototype would still apply. */
8134 #ifdef __cplusplus
8135 extern "C"
8136 #endif
8137 char dnet_ntoa ();
8139 main ()
8141 return dnet_ntoa ();
8143 return 0;
8145 _ACEOF
8146 if ac_fn_c_try_link "$LINENO"; then :
8147 ac_cv_lib_dnet_dnet_ntoa=yes
8148 else
8149 ac_cv_lib_dnet_dnet_ntoa=no
8151 rm -f core conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153 LIBS=$ac_check_lib_save_LIBS
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8156 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8157 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
8158 cat >>confdefs.h <<_ACEOF
8159 #define HAVE_LIBDNET 1
8160 _ACEOF
8162 LIBS="-ldnet $LIBS"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
8168 $as_echo_n "checking for main in -lXbsd... " >&6; }
8169 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 ac_check_lib_save_LIBS=$LIBS
8173 LIBS="-lXbsd $LIBS"
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8179 main ()
8181 return main ();
8183 return 0;
8185 _ACEOF
8186 if ac_fn_c_try_link "$LINENO"; then :
8187 ac_cv_lib_Xbsd_main=yes
8188 else
8189 ac_cv_lib_Xbsd_main=no
8191 rm -f core conftest.err conftest.$ac_objext \
8192 conftest$ac_exeext conftest.$ac_ext
8193 LIBS=$ac_check_lib_save_LIBS
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
8196 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
8197 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
8198 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
8203 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
8204 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 ac_check_lib_save_LIBS=$LIBS
8208 LIBS="-lpthreads $LIBS"
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8212 /* Override any GCC internal prototype to avoid an error.
8213 Use char because int might match the return type of a GCC
8214 builtin and then its argument prototype would still apply. */
8215 #ifdef __cplusplus
8216 extern "C"
8217 #endif
8218 char cma_open ();
8220 main ()
8222 return cma_open ();
8224 return 0;
8226 _ACEOF
8227 if ac_fn_c_try_link "$LINENO"; then :
8228 ac_cv_lib_pthreads_cma_open=yes
8229 else
8230 ac_cv_lib_pthreads_cma_open=no
8232 rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 LIBS=$ac_check_lib_save_LIBS
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8237 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8238 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8239 cat >>confdefs.h <<_ACEOF
8240 #define HAVE_LIBPTHREADS 1
8241 _ACEOF
8243 LIBS="-lpthreads $LIBS"
8248 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8249 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8250 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8251 ## added to LIBS in configure would never contain the pthreads part,
8252 ## but the value used in Makefiles might. FIXME?
8254 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8255 ## be harmless on older versions of X where it happens to exist.
8256 test "$opsys" = "aix4-2" && \
8257 test $ac_cv_lib_pthreads_cma_open = yes && \
8258 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8261 case ${host_os} in
8262 aix*)
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8264 $as_echo_n "checking for -bbigtoc option... " >&6; }
8265 if test "${gdb_cv_bigtoc+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8269 case $GCC in
8270 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8271 *) gdb_cv_bigtoc=-bbigtoc ;;
8272 esac
8274 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8279 main ()
8281 int i;
8283 return 0;
8285 _ACEOF
8286 if ac_fn_c_try_link "$LINENO"; then :
8288 else
8289 gdb_cv_bigtoc=
8291 rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8296 $as_echo "$gdb_cv_bigtoc" >&6; }
8298 esac
8300 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8301 # used for the tests that follow. We set them back to REAL_CFLAGS and
8302 # REAL_CPPFLAGS later on.
8304 REAL_CFLAGS="$CFLAGS"
8305 REAL_CPPFLAGS="$CPPFLAGS"
8307 if test "${HAVE_X11}" = "yes"; then
8308 DEFS="$C_SWITCH_X_SITE $DEFS"
8309 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8310 LIBS="-lX11 $LIBS"
8311 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8312 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8314 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8315 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8316 # but it's more convenient here to set LD_RUN_PATH
8317 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8318 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8319 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8320 export LD_RUN_PATH
8323 if test "${opsys}" = "gnu-linux"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8325 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8330 main ()
8332 XOpenDisplay ("foo");
8334 return 0;
8336 _ACEOF
8337 if ac_fn_c_try_link "$LINENO"; then :
8338 xlinux_first_failure=no
8339 else
8340 xlinux_first_failure=yes
8342 rm -f core conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
8344 if test "${xlinux_first_failure}" = "yes"; then
8345 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8346 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8347 OLD_CPPFLAGS="$CPPFLAGS"
8348 OLD_LIBS="$LIBS"
8349 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8350 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8351 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8352 LIBS="$LIBS -b i486-linuxaout"
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8357 main ()
8359 XOpenDisplay ("foo");
8361 return 0;
8363 _ACEOF
8364 if ac_fn_c_try_link "$LINENO"; then :
8365 xlinux_second_failure=no
8366 else
8367 xlinux_second_failure=yes
8369 rm -f core conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8371 if test "${xlinux_second_failure}" = "yes"; then
8372 # If we get the same failure with -b, there is no use adding -b.
8373 # So take it out. This plays safe.
8374 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8375 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8376 CPPFLAGS="$OLD_CPPFLAGS"
8377 LIBS="$OLD_LIBS"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8382 $as_echo "yes" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8390 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8391 # header files included from there.
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8393 $as_echo_n "checking for Xkb... " >&6; }
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 #include <X11/Xlib.h>
8397 #include <X11/XKBlib.h>
8399 main ()
8401 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8403 return 0;
8405 _ACEOF
8406 if ac_fn_c_try_link "$LINENO"; then :
8407 emacs_xkb=yes
8408 else
8409 emacs_xkb=no
8411 rm -f core conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8414 $as_echo "$emacs_xkb" >&6; }
8415 if test $emacs_xkb = yes; then
8417 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8421 for ac_func in XrmSetDatabase XScreenResourceString \
8422 XScreenNumberOfScreen XSetWMProtocols
8423 do :
8424 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8425 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8426 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8427 cat >>confdefs.h <<_ACEOF
8428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8429 _ACEOF
8432 done
8436 if test "${window_system}" = "x11"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8438 $as_echo_n "checking X11 version 6... " >&6; }
8439 if test "${emacs_cv_x11_version_6+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444 #include <X11/Xlib.h>
8446 main ()
8448 #if XlibSpecificationRelease < 6
8449 fail;
8450 #endif
8453 return 0;
8455 _ACEOF
8456 if ac_fn_c_try_link "$LINENO"; then :
8457 emacs_cv_x11_version_6=yes
8458 else
8459 emacs_cv_x11_version_6=no
8461 rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
8465 if test $emacs_cv_x11_version_6 = yes; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8467 $as_echo "6 or newer" >&6; }
8469 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8472 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8474 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8475 ## XIM support.
8476 case "$opsys" in
8477 sol2-*) : ;;
8479 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8482 esac
8483 else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8485 $as_echo "before 6" >&6; }
8490 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8491 HAVE_RSVG=no
8492 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8493 if test "${with_rsvg}" != "no"; then
8494 RSVG_REQUIRED=2.11.0
8495 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8498 succeeded=no
8500 # Extract the first word of "pkg-config", so it can be a program name with args.
8501 set dummy pkg-config; ac_word=$2
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503 $as_echo_n "checking for $ac_word... " >&6; }
8504 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 case $PKG_CONFIG in
8508 [\\/]* | ?:[\\/]*)
8509 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 for as_dir in $PATH
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8519 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8521 break 2
8523 done
8524 done
8525 IFS=$as_save_IFS
8527 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8529 esac
8531 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8532 if test -n "$PKG_CONFIG"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8534 $as_echo "$PKG_CONFIG" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8542 if test "$PKG_CONFIG" = "no" ; then
8544 else
8545 PKG_CONFIG_MIN_VERSION=0.9.0
8546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8548 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8550 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8552 $as_echo "yes" >&6; }
8553 succeeded=yes
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8556 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8557 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8559 $as_echo "$RSVG_CFLAGS" >&6; }
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8562 $as_echo_n "checking RSVG_LIBS... " >&6; }
8563 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8565 $as_echo "$RSVG_LIBS" >&6; }
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8569 RSVG_CFLAGS=""
8570 RSVG_LIBS=""
8571 ## If we have a custom action on failure, don't print errors, but
8572 ## do set a variable so people can do so.
8573 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8579 else
8580 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8581 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8585 if test $succeeded = yes; then
8586 HAVE_RSVG=yes
8587 else
8594 if test $HAVE_RSVG = yes; then
8596 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8598 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8599 LIBS="$RSVG_LIBS $LIBS"
8604 HAVE_IMAGEMAGICK=no
8605 if test "${HAVE_X11}" = "yes"; then
8606 if test "${with_imagemagick}" != "no"; then
8607 IMAGEMAGICK_MODULE="Wand"
8609 succeeded=no
8611 # Extract the first word of "pkg-config", so it can be a program name with args.
8612 set dummy pkg-config; ac_word=$2
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8614 $as_echo_n "checking for $ac_word... " >&6; }
8615 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 case $PKG_CONFIG in
8619 [\\/]* | ?:[\\/]*)
8620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8624 for as_dir in $PATH
8626 IFS=$as_save_IFS
8627 test -z "$as_dir" && as_dir=.
8628 for ac_exec_ext in '' $ac_executable_extensions; do
8629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8630 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8632 break 2
8634 done
8635 done
8636 IFS=$as_save_IFS
8638 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8640 esac
8642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8643 if test -n "$PKG_CONFIG"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8645 $as_echo "$PKG_CONFIG" >&6; }
8646 else
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8653 if test "$PKG_CONFIG" = "no" ; then
8655 else
8656 PKG_CONFIG_MIN_VERSION=0.9.0
8657 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8659 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8661 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8663 $as_echo "yes" >&6; }
8664 succeeded=yes
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8667 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8668 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8670 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8673 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8674 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8676 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8677 else
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8680 IMAGEMAGICK_CFLAGS=""
8681 IMAGEMAGICK_LIBS=""
8682 ## If we have a custom action on failure, don't print errors, but
8683 ## do set a variable so people can do so.
8684 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8690 else
8691 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8692 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8696 if test $succeeded = yes; then
8697 HAVE_IMAGEMAGICK=yes
8698 else
8705 if test $HAVE_IMAGEMAGICK = yes; then
8707 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8709 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8710 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8711 for ac_func in MagickExportImagePixels
8712 do :
8713 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
8714 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
8715 cat >>confdefs.h <<_ACEOF
8716 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
8717 _ACEOF
8720 done
8727 HAVE_GTK=no
8728 if test "${with_gtk3}" = "yes"; then
8729 GLIB_REQUIRED=2.6
8730 GTK_REQUIRED=2.90
8731 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8734 succeeded=no
8736 # Extract the first word of "pkg-config", so it can be a program name with args.
8737 set dummy pkg-config; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 case $PKG_CONFIG in
8744 [\\/]* | ?:[\\/]*)
8745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8751 IFS=$as_save_IFS
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 break 2
8759 done
8760 done
8761 IFS=$as_save_IFS
8763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8765 esac
8767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8768 if test -n "$PKG_CONFIG"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8770 $as_echo "$PKG_CONFIG" >&6; }
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8778 if test "$PKG_CONFIG" = "no" ; then
8779 pkg_check_gtk=no
8780 else
8781 PKG_CONFIG_MIN_VERSION=0.9.0
8782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8784 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8786 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8788 $as_echo "yes" >&6; }
8789 succeeded=yes
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8792 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8793 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8795 $as_echo "$GTK_CFLAGS" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8798 $as_echo_n "checking GTK_LIBS... " >&6; }
8799 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8801 $as_echo "$GTK_LIBS" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8805 GTK_CFLAGS=""
8806 GTK_LIBS=""
8807 ## If we have a custom action on failure, don't print errors, but
8808 ## do set a variable so people can do so.
8809 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8815 else
8816 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8817 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8821 if test $succeeded = yes; then
8822 pkg_check_gtk=yes
8823 else
8824 pkg_check_gtk=no
8827 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8828 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8832 if test "$pkg_check_gtk" != "yes"; then
8833 HAVE_GTK=no
8834 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8835 GLIB_REQUIRED=2.6
8836 GTK_REQUIRED=2.6
8837 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8840 succeeded=no
8842 # Extract the first word of "pkg-config", so it can be a program name with args.
8843 set dummy pkg-config; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 case $PKG_CONFIG in
8850 [\\/]* | ?:[\\/]*)
8851 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 for as_dir in $PATH
8857 IFS=$as_save_IFS
8858 test -z "$as_dir" && as_dir=.
8859 for ac_exec_ext in '' $ac_executable_extensions; do
8860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8861 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863 break 2
8865 done
8866 done
8867 IFS=$as_save_IFS
8869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8871 esac
8873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8874 if test -n "$PKG_CONFIG"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8876 $as_echo "$PKG_CONFIG" >&6; }
8877 else
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879 $as_echo "no" >&6; }
8884 if test "$PKG_CONFIG" = "no" ; then
8885 pkg_check_gtk=no
8886 else
8887 PKG_CONFIG_MIN_VERSION=0.9.0
8888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8890 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8892 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8894 $as_echo "yes" >&6; }
8895 succeeded=yes
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8898 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8899 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8901 $as_echo "$GTK_CFLAGS" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8904 $as_echo_n "checking GTK_LIBS... " >&6; }
8905 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8907 $as_echo "$GTK_LIBS" >&6; }
8908 else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 GTK_CFLAGS=""
8912 GTK_LIBS=""
8913 ## If we have a custom action on failure, don't print errors, but
8914 ## do set a variable so people can do so.
8915 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8921 else
8922 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8923 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8927 if test $succeeded = yes; then
8928 pkg_check_gtk=yes
8929 else
8930 pkg_check_gtk=no
8933 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8934 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
8939 GTK_OBJ=
8940 if test x"$pkg_check_gtk" = xyes; then
8944 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8945 CFLAGS="$CFLAGS $GTK_CFLAGS"
8946 LIBS="$GTK_LIBS $LIBS"
8947 GTK_COMPILES=no
8948 for ac_func in gtk_main
8949 do :
8950 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8951 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_GTK_MAIN 1
8954 _ACEOF
8955 GTK_COMPILES=yes
8957 done
8959 if test "${GTK_COMPILES}" != "yes"; then
8960 if test "$USE_X_TOOLKIT" != "maybe"; then
8961 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8963 else
8964 HAVE_GTK=yes
8966 $as_echo "#define USE_GTK 1" >>confdefs.h
8968 GTK_OBJ=gtkutil.o
8969 USE_X_TOOLKIT=none
8970 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8972 else
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8974 closing open displays. This is no problem if you just use
8975 one display, but if you use more than one and close one of them
8976 Emacs may crash." >&5
8977 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8978 closing open displays. This is no problem if you just use
8979 one display, but if you use more than one and close one of them
8980 Emacs may crash." >&2;}
8981 sleep 3
8989 if test "${HAVE_GTK}" = "yes"; then
8991 if test "$with_toolkit_scroll_bars" != no; then
8992 with_toolkit_scroll_bars=yes
8995 HAVE_GTK_FILE_SELECTION=no
8996 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8997 #include <gtk/gtk.h>
8999 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
9000 HAVE_GTK_FILE_SELECTION=yes
9001 else
9002 HAVE_GTK_FILE_SELECTION=no
9005 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
9006 for ac_func in gtk_file_selection_new
9007 do :
9008 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
9009 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
9010 cat >>confdefs.h <<_ACEOF
9011 #define HAVE_GTK_FILE_SELECTION_NEW 1
9012 _ACEOF
9015 done
9019 HAVE_GTK_AND_PTHREAD=no
9020 for ac_header in pthread.h
9021 do :
9022 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9023 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9024 cat >>confdefs.h <<_ACEOF
9025 #define HAVE_PTHREAD_H 1
9026 _ACEOF
9030 done
9032 if test "$ac_cv_header_pthread_h"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
9034 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
9035 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
9036 $as_echo_n "(cached) " >&6
9037 else
9038 ac_check_lib_save_LIBS=$LIBS
9039 LIBS="-lpthread $LIBS"
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9043 /* Override any GCC internal prototype to avoid an error.
9044 Use char because int might match the return type of a GCC
9045 builtin and then its argument prototype would still apply. */
9046 #ifdef __cplusplus
9047 extern "C"
9048 #endif
9049 char pthread_self ();
9051 main ()
9053 return pthread_self ();
9055 return 0;
9057 _ACEOF
9058 if ac_fn_c_try_link "$LINENO"; then :
9059 ac_cv_lib_pthread_pthread_self=yes
9060 else
9061 ac_cv_lib_pthread_pthread_self=no
9063 rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
9068 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
9069 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
9070 HAVE_GTK_AND_PTHREAD=yes
9074 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
9075 case "${canonical}" in
9076 *-hpux*) ;;
9077 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
9078 esac
9080 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
9084 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
9085 gtk_dialog_get_action_area gtk_widget_get_sensitive \
9086 gtk_widget_get_mapped gtk_adjustment_get_page_size \
9087 gtk_orientable_set_orientation
9088 do :
9089 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9091 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9094 _ACEOF
9097 done
9102 HAVE_DBUS=no
9103 DBUS_OBJ=
9104 if test "${with_dbus}" = "yes"; then
9106 succeeded=no
9108 # Extract the first word of "pkg-config", so it can be a program name with args.
9109 set dummy pkg-config; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 case $PKG_CONFIG in
9116 [\\/]* | ?:[\\/]*)
9117 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129 break 2
9131 done
9132 done
9133 IFS=$as_save_IFS
9135 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9137 esac
9139 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9140 if test -n "$PKG_CONFIG"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9142 $as_echo "$PKG_CONFIG" >&6; }
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9150 if test "$PKG_CONFIG" = "no" ; then
9151 HAVE_DBUS=no
9152 else
9153 PKG_CONFIG_MIN_VERSION=0.9.0
9154 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
9156 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
9158 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9160 $as_echo "yes" >&6; }
9161 succeeded=yes
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
9164 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
9165 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
9167 $as_echo "$DBUS_CFLAGS" >&6; }
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
9170 $as_echo_n "checking DBUS_LIBS... " >&6; }
9171 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
9173 $as_echo "$DBUS_LIBS" >&6; }
9174 else
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176 $as_echo "no" >&6; }
9177 DBUS_CFLAGS=""
9178 DBUS_LIBS=""
9179 ## If we have a custom action on failure, don't print errors, but
9180 ## do set a variable so people can do so.
9181 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
9187 else
9188 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9189 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9193 if test $succeeded = yes; then
9194 HAVE_DBUS=yes
9195 else
9196 HAVE_DBUS=no
9199 if test "$HAVE_DBUS" = yes; then
9200 LIBS="$LIBS $DBUS_LIBS"
9202 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
9204 for ac_func in dbus_watch_get_unix_fd
9205 do :
9206 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
9207 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
9208 cat >>confdefs.h <<_ACEOF
9209 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
9210 _ACEOF
9213 done
9215 DBUS_OBJ=dbusbind.o
9220 HAVE_GCONF=no
9221 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
9223 succeeded=no
9225 # Extract the first word of "pkg-config", so it can be a program name with args.
9226 set dummy pkg-config; ac_word=$2
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9228 $as_echo_n "checking for $ac_word... " >&6; }
9229 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 case $PKG_CONFIG in
9233 [\\/]* | ?:[\\/]*)
9234 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9244 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 break 2
9248 done
9249 done
9250 IFS=$as_save_IFS
9252 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9254 esac
9256 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9257 if test -n "$PKG_CONFIG"; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9259 $as_echo "$PKG_CONFIG" >&6; }
9260 else
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262 $as_echo "no" >&6; }
9267 if test "$PKG_CONFIG" = "no" ; then
9268 HAVE_GCONF=no
9269 else
9270 PKG_CONFIG_MIN_VERSION=0.9.0
9271 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
9273 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
9275 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9277 $as_echo "yes" >&6; }
9278 succeeded=yes
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
9281 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
9282 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
9284 $as_echo "$GCONF_CFLAGS" >&6; }
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
9287 $as_echo_n "checking GCONF_LIBS... " >&6; }
9288 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
9290 $as_echo "$GCONF_LIBS" >&6; }
9291 else
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9294 GCONF_CFLAGS=""
9295 GCONF_LIBS=""
9296 ## If we have a custom action on failure, don't print errors, but
9297 ## do set a variable so people can do so.
9298 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
9304 else
9305 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9306 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9310 if test $succeeded = yes; then
9311 HAVE_GCONF=yes
9312 else
9313 HAVE_GCONF=no
9316 if test "$HAVE_GCONF" = yes; then
9318 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9320 for ac_func in g_type_init
9321 do :
9322 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
9323 if test "x$ac_cv_func_g_type_init" = x""yes; then :
9324 cat >>confdefs.h <<_ACEOF
9325 #define HAVE_G_TYPE_INIT 1
9326 _ACEOF
9329 done
9334 HAVE_LIBSELINUX=no
9335 LIBSELINUX_LIBS=
9336 if test "${with_selinux}" = "yes"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9338 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9339 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 ac_check_lib_save_LIBS=$LIBS
9343 LIBS="-lselinux $LIBS"
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9347 /* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9350 #ifdef __cplusplus
9351 extern "C"
9352 #endif
9353 char lgetfilecon ();
9355 main ()
9357 return lgetfilecon ();
9359 return 0;
9361 _ACEOF
9362 if ac_fn_c_try_link "$LINENO"; then :
9363 ac_cv_lib_selinux_lgetfilecon=yes
9364 else
9365 ac_cv_lib_selinux_lgetfilecon=no
9367 rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369 LIBS=$ac_check_lib_save_LIBS
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9372 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9373 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9374 HAVE_LIBSELINUX=yes
9375 else
9376 HAVE_LIBSELINUX=no
9379 if test "$HAVE_LIBSELINUX" = yes; then
9381 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9383 LIBSELINUX_LIBS=-lselinux
9388 HAVE_GNUTLS=no
9389 if test "${with_gnutls}" = "yes" ; then
9391 succeeded=no
9393 # Extract the first word of "pkg-config", so it can be a program name with args.
9394 set dummy pkg-config; ac_word=$2
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9396 $as_echo_n "checking for $ac_word... " >&6; }
9397 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 case $PKG_CONFIG in
9401 [\\/]* | ?:[\\/]*)
9402 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9412 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9414 break 2
9416 done
9417 done
9418 IFS=$as_save_IFS
9420 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9422 esac
9424 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9425 if test -n "$PKG_CONFIG"; then
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9427 $as_echo "$PKG_CONFIG" >&6; }
9428 else
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430 $as_echo "no" >&6; }
9435 if test "$PKG_CONFIG" = "no" ; then
9436 HAVE_GNUTLS=no
9437 else
9438 PKG_CONFIG_MIN_VERSION=0.9.0
9439 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
9441 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
9443 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9445 $as_echo "yes" >&6; }
9446 succeeded=yes
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
9449 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
9450 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
9452 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
9455 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
9456 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
9458 $as_echo "$LIBGNUTLS_LIBS" >&6; }
9459 else
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9461 $as_echo "no" >&6; }
9462 LIBGNUTLS_CFLAGS=""
9463 LIBGNUTLS_LIBS=""
9464 ## If we have a custom action on failure, don't print errors, but
9465 ## do set a variable so people can do so.
9466 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
9472 else
9473 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9474 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9478 if test $succeeded = yes; then
9479 HAVE_GNUTLS=yes
9480 else
9481 HAVE_GNUTLS=no
9484 if test "${HAVE_GNUTLS}" = "yes"; then
9486 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9493 HAVE_XAW3D=no
9494 LUCID_LIBW=
9495 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9496 if test "$with_xaw3d" != no; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9498 $as_echo_n "checking for xaw3d... " >&6; }
9499 if test "${emacs_cv_xaw3d+set}" = set; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9505 #include <X11/Intrinsic.h>
9506 #include <X11/Xaw3d/Simple.h>
9508 main ()
9512 return 0;
9514 _ACEOF
9515 if ac_fn_c_try_link "$LINENO"; then :
9516 emacs_cv_xaw3d=yes
9517 else
9518 emacs_cv_xaw3d=no
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9524 else
9525 emacs_cv_xaw3d=no
9527 if test $emacs_cv_xaw3d = yes; then
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9529 $as_echo "yes; using Lucid toolkit" >&6; }
9530 USE_X_TOOLKIT=LUCID
9531 HAVE_XAW3D=yes
9532 LUCID_LIBW=-lXaw3d
9534 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9536 else
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9540 $as_echo_n "checking for libXaw... " >&6; }
9541 if test "${emacs_cv_xaw+set}" = set; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9547 #include <X11/Intrinsic.h>
9548 #include <X11/Xaw/Simple.h>
9550 main ()
9554 return 0;
9556 _ACEOF
9557 if ac_fn_c_try_link "$LINENO"; then :
9558 emacs_cv_xaw=yes
9559 else
9560 emacs_cv_xaw=no
9562 rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9566 if test $emacs_cv_xaw = yes; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9568 $as_echo "yes; using Lucid toolkit" >&6; }
9569 USE_X_TOOLKIT=LUCID
9570 LUCID_LIBW=-lXaw
9571 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9572 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9573 else
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9575 $as_echo "no; do not use toolkit by default" >&6; }
9576 USE_X_TOOLKIT=none
9581 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9583 LIBXTR6=
9584 if test "${USE_X_TOOLKIT}" != "none"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9586 $as_echo_n "checking X11 toolkit version... " >&6; }
9587 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592 #include <X11/Intrinsic.h>
9594 main ()
9596 #if XtSpecificationRelease < 6
9597 fail;
9598 #endif
9601 return 0;
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605 emacs_cv_x11_toolkit_version_6=yes
9606 else
9607 emacs_cv_x11_toolkit_version_6=no
9609 rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9613 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9614 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9616 $as_echo "6 or newer" >&6; }
9618 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9620 LIBXTR6="-lSM -lICE"
9621 case "$opsys" in
9622 ## Use libw.a along with X11R6 Xt.
9623 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9624 esac
9625 else
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9627 $as_echo "before 6" >&6; }
9630 OLDLIBS="$LIBS"
9631 if test x$HAVE_X11XTR6 = xyes; then
9632 LIBS="-lXt -lSM -lICE $LIBS"
9633 else
9634 LIBS="-lXt $LIBS"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9637 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9638 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 ac_check_lib_save_LIBS=$LIBS
9642 LIBS="-lXmu $LIBS"
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9646 /* Override any GCC internal prototype to avoid an error.
9647 Use char because int might match the return type of a GCC
9648 builtin and then its argument prototype would still apply. */
9649 #ifdef __cplusplus
9650 extern "C"
9651 #endif
9652 char XmuConvertStandardSelection ();
9654 main ()
9656 return XmuConvertStandardSelection ();
9658 return 0;
9660 _ACEOF
9661 if ac_fn_c_try_link "$LINENO"; then :
9662 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9663 else
9664 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9666 rm -f core conftest.err conftest.$ac_objext \
9667 conftest$ac_exeext conftest.$ac_ext
9668 LIBS=$ac_check_lib_save_LIBS
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9671 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9672 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9673 cat >>confdefs.h <<_ACEOF
9674 #define HAVE_LIBXMU 1
9675 _ACEOF
9677 LIBS="-lXmu $LIBS"
9681 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9685 LIBXMU=-lXmu
9686 case $opsys in
9687 ## These systems don't supply Xmu.
9688 hpux* | aix4-2 )
9689 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9691 esac
9694 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9695 if test "${HAVE_X11}" = "yes"; then
9696 if test "${USE_X_TOOLKIT}" != "none"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9698 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9699 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 ac_check_lib_save_LIBS=$LIBS
9703 LIBS="-lXext $LIBS"
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char XShapeQueryExtension ();
9715 main ()
9717 return XShapeQueryExtension ();
9719 return 0;
9721 _ACEOF
9722 if ac_fn_c_try_link "$LINENO"; then :
9723 ac_cv_lib_Xext_XShapeQueryExtension=yes
9724 else
9725 ac_cv_lib_Xext_XShapeQueryExtension=no
9727 rm -f core conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 LIBS=$ac_check_lib_save_LIBS
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9732 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9733 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9734 cat >>confdefs.h <<_ACEOF
9735 #define HAVE_LIBXEXT 1
9736 _ACEOF
9738 LIBS="-lXext $LIBS"
9745 LIBXP=
9746 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9748 $as_echo_n "checking for Motif version 2.1... " >&6; }
9749 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 #include <Xm/Xm.h>
9756 main ()
9758 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9759 int x = 5;
9760 #else
9761 Motif version prior to 2.1.
9762 #endif
9764 return 0;
9766 _ACEOF
9767 if ac_fn_c_try_compile "$LINENO"; then :
9768 emacs_cv_motif_version_2_1=yes
9769 else
9770 emacs_cv_motif_version_2_1=no
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9775 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9776 if test $emacs_cv_motif_version_2_1 = yes; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9778 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9779 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 ac_check_lib_save_LIBS=$LIBS
9783 LIBS="-lXp $LIBS"
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9787 /* Override any GCC internal prototype to avoid an error.
9788 Use char because int might match the return type of a GCC
9789 builtin and then its argument prototype would still apply. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 char XpCreateContext ();
9795 main ()
9797 return XpCreateContext ();
9799 return 0;
9801 _ACEOF
9802 if ac_fn_c_try_link "$LINENO"; then :
9803 ac_cv_lib_Xp_XpCreateContext=yes
9804 else
9805 ac_cv_lib_Xp_XpCreateContext=no
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 LIBS=$ac_check_lib_save_LIBS
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9812 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9813 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9814 LIBXP=-lXp
9817 else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9819 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9820 if test "${emacs_cv_lesstif+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 # We put this in CFLAGS temporarily to precede other -I options
9824 # that might be in CFLAGS temporarily.
9825 # We put this in CPPFLAGS where it precedes the other -I options.
9826 OLD_CPPFLAGS=$CPPFLAGS
9827 OLD_CFLAGS=$CFLAGS
9828 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9829 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9834 main ()
9836 int x = 5;
9838 return 0;
9840 _ACEOF
9841 if ac_fn_c_try_compile "$LINENO"; then :
9842 emacs_cv_lesstif=yes
9843 else
9844 emacs_cv_lesstif=no
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9849 $as_echo "$emacs_cv_lesstif" >&6; }
9850 if test $emacs_cv_lesstif = yes; then
9851 # Make sure this -I option remains in CPPFLAGS after it is set
9852 # back to REAL_CPPFLAGS.
9853 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9854 # have those other -I options anyway. Ultimately, having this
9855 # directory ultimately in CPPFLAGS will be enough.
9856 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9857 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9858 else
9859 CFLAGS=$OLD_CFLAGS
9860 CPPFLAGS=$OLD_CPPFLAGS
9866 USE_TOOLKIT_SCROLL_BARS=no
9867 if test "${with_toolkit_scroll_bars}" != "no"; then
9868 if test "${USE_X_TOOLKIT}" != "none"; then
9869 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9870 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9872 HAVE_XAW3D=no
9873 USE_TOOLKIT_SCROLL_BARS=yes
9874 elif test "${HAVE_XAW3D}" = "yes"; then
9875 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9877 USE_TOOLKIT_SCROLL_BARS=yes
9879 elif test "${HAVE_GTK}" = "yes"; then
9880 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9882 USE_TOOLKIT_SCROLL_BARS=yes
9883 elif test "${HAVE_NS}" = "yes"; then
9884 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9886 USE_TOOLKIT_SCROLL_BARS=yes
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9893 #include <X11/Xlib.h>
9894 #include <X11/Xresource.h>
9896 main ()
9898 XIMProc callback;
9900 return 0;
9902 _ACEOF
9903 if ac_fn_c_try_compile "$LINENO"; then :
9904 HAVE_XIM=yes
9906 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9908 else
9909 HAVE_XIM=no
9911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9914 if test "${with_xim}" != "no"; then
9916 $as_echo "#define USE_XIM 1" >>confdefs.h
9921 if test "${HAVE_XIM}" != "no"; then
9922 late_CFLAGS=$CFLAGS
9923 if test "$GCC" = yes; then
9924 CFLAGS="$CFLAGS --pedantic-errors"
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9929 #include <X11/Xlib.h>
9930 #include <X11/Xresource.h>
9932 main ()
9934 Display *display;
9935 XrmDatabase db;
9936 char *res_name;
9937 char *res_class;
9938 XIMProc callback;
9939 XPointer *client_data;
9940 #ifndef __GNUC__
9941 /* If we're not using GCC, it's probably not XFree86, and this is
9942 probably right, but we can't use something like --pedantic-errors. */
9943 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9944 char*, XIMProc, XPointer*);
9945 #endif
9946 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9947 client_data);
9949 return 0;
9951 _ACEOF
9952 if ac_fn_c_try_compile "$LINENO"; then :
9953 emacs_cv_arg6_star=yes
9955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 if test "$emacs_cv_arg6_star" = yes; then
9957 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9959 else
9960 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9963 CFLAGS=$late_CFLAGS
9966 ### Start of font-backend (under any platform) section.
9967 # (nothing here yet -- this is a placeholder)
9968 ### End of font-backend (under any platform) section.
9970 ### Start of font-backend (under X11) section.
9971 if test "${HAVE_X11}" = "yes"; then
9973 succeeded=no
9975 # Extract the first word of "pkg-config", so it can be a program name with args.
9976 set dummy pkg-config; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981 else
9982 case $PKG_CONFIG in
9983 [\\/]* | ?:[\\/]*)
9984 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9998 done
9999 done
10000 IFS=$as_save_IFS
10002 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10004 esac
10006 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10007 if test -n "$PKG_CONFIG"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10009 $as_echo "$PKG_CONFIG" >&6; }
10010 else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10017 if test "$PKG_CONFIG" = "no" ; then
10018 HAVE_FC=no
10019 else
10020 PKG_CONFIG_MIN_VERSION=0.9.0
10021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
10023 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
10025 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10027 $as_echo "yes" >&6; }
10028 succeeded=yes
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
10031 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
10032 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
10034 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
10037 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
10038 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
10040 $as_echo "$FONTCONFIG_LIBS" >&6; }
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 FONTCONFIG_CFLAGS=""
10045 FONTCONFIG_LIBS=""
10046 ## If we have a custom action on failure, don't print errors, but
10047 ## do set a variable so people can do so.
10048 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
10054 else
10055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10060 if test $succeeded = yes; then
10061 HAVE_FC=yes
10062 else
10063 HAVE_FC=no
10067 ## Use -lXft if available, unless `--with-xft=no'.
10068 HAVE_XFT=maybe
10069 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
10070 with_xft="no";
10072 if test "x${with_xft}" != "xno"; then
10075 succeeded=no
10077 # Extract the first word of "pkg-config", so it can be a program name with args.
10078 set dummy pkg-config; ac_word=$2
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10080 $as_echo_n "checking for $ac_word... " >&6; }
10081 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 case $PKG_CONFIG in
10085 [\\/]* | ?:[\\/]*)
10086 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $PATH
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10096 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10098 break 2
10100 done
10101 done
10102 IFS=$as_save_IFS
10104 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10106 esac
10108 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10109 if test -n "$PKG_CONFIG"; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10111 $as_echo "$PKG_CONFIG" >&6; }
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; }
10119 if test "$PKG_CONFIG" = "no" ; then
10120 HAVE_XFT=no
10121 else
10122 PKG_CONFIG_MIN_VERSION=0.9.0
10123 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
10125 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
10127 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10129 $as_echo "yes" >&6; }
10130 succeeded=yes
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
10133 $as_echo_n "checking XFT_CFLAGS... " >&6; }
10134 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
10136 $as_echo "$XFT_CFLAGS" >&6; }
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
10139 $as_echo_n "checking XFT_LIBS... " >&6; }
10140 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
10142 $as_echo "$XFT_LIBS" >&6; }
10143 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10146 XFT_CFLAGS=""
10147 XFT_LIBS=""
10148 ## If we have a custom action on failure, don't print errors, but
10149 ## do set a variable so people can do so.
10150 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
10156 else
10157 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10158 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10162 if test $succeeded = yes; then
10164 else
10165 HAVE_XFT=no
10168 ## Because xftfont.c uses XRenderQueryExtension, we also
10169 ## need to link to -lXrender.
10170 HAVE_XRENDER=no
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
10172 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
10173 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 ac_check_lib_save_LIBS=$LIBS
10177 LIBS="-lXrender $LIBS"
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10184 #ifdef __cplusplus
10185 extern "C"
10186 #endif
10187 char XRenderQueryExtension ();
10189 main ()
10191 return XRenderQueryExtension ();
10193 return 0;
10195 _ACEOF
10196 if ac_fn_c_try_link "$LINENO"; then :
10197 ac_cv_lib_Xrender_XRenderQueryExtension=yes
10198 else
10199 ac_cv_lib_Xrender_XRenderQueryExtension=no
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 LIBS=$ac_check_lib_save_LIBS
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
10206 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
10207 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
10208 HAVE_XRENDER=yes
10211 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
10212 OLD_CPPFLAGS="$CPPFLAGS"
10213 OLD_CFLAGS="$CFLAGS"
10214 OLD_LIBS="$LIBS"
10215 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
10216 CFLAGS="$CFLAGS $XFT_CFLAGS"
10217 XFT_LIBS="-lXrender $XFT_LIBS"
10218 LIBS="$XFT_LIBS $LIBS"
10219 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
10220 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
10222 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
10223 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 ac_check_lib_save_LIBS=$LIBS
10227 LIBS="-lXft $XFT_LIBS $LIBS"
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10231 /* Override any GCC internal prototype to avoid an error.
10232 Use char because int might match the return type of a GCC
10233 builtin and then its argument prototype would still apply. */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char XftFontOpen ();
10239 main ()
10241 return XftFontOpen ();
10243 return 0;
10245 _ACEOF
10246 if ac_fn_c_try_link "$LINENO"; then :
10247 ac_cv_lib_Xft_XftFontOpen=yes
10248 else
10249 ac_cv_lib_Xft_XftFontOpen=no
10251 rm -f core conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
10256 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
10257 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
10258 HAVE_XFT=yes
10265 if test "${HAVE_XFT}" = "yes"; then
10267 $as_echo "#define HAVE_XFT 1" >>confdefs.h
10270 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
10271 else
10272 CPPFLAGS="$OLD_CPPFLAGS"
10273 CFLAGS="$OLD_CFLAGS"
10274 LIBS="$OLD_LIBS"
10275 fi # "${HAVE_XFT}" = "yes"
10276 fi # "$HAVE_XFT" != no
10277 fi # "x${with_xft}" != "xno"
10279 if test "$HAVE_XFT" != "yes"; then
10280 HAVE_XFT=no
10284 HAVE_FREETYPE=no
10285 ## We used to allow building with FreeType and without Xft.
10286 ## However, the ftx font backend driver is not in good shape.
10287 if test "${HAVE_XFT}" = "yes"; then
10288 HAVE_FREETYPE=yes
10289 FONTCONFIG_CFLAGS=
10290 FONTCONFIG_LIBS=
10293 HAVE_LIBOTF=no
10294 if test "${HAVE_FREETYPE}" = "yes"; then
10296 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10298 if test "${with_libotf}" != "no"; then
10300 succeeded=no
10302 # Extract the first word of "pkg-config", so it can be a program name with args.
10303 set dummy pkg-config; ac_word=$2
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305 $as_echo_n "checking for $ac_word... " >&6; }
10306 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 case $PKG_CONFIG in
10310 [\\/]* | ?:[\\/]*)
10311 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10317 IFS=$as_save_IFS
10318 test -z "$as_dir" && as_dir=.
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323 break 2
10325 done
10326 done
10327 IFS=$as_save_IFS
10329 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10331 esac
10333 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10334 if test -n "$PKG_CONFIG"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10336 $as_echo "$PKG_CONFIG" >&6; }
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10344 if test "$PKG_CONFIG" = "no" ; then
10345 HAVE_LIBOTF=no
10346 else
10347 PKG_CONFIG_MIN_VERSION=0.9.0
10348 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
10350 $as_echo_n "checking for libotf... " >&6; }
10352 if $PKG_CONFIG --exists "libotf" 2>&5; then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10354 $as_echo "yes" >&6; }
10355 succeeded=yes
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
10358 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
10359 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
10361 $as_echo "$LIBOTF_CFLAGS" >&6; }
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
10364 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
10365 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
10367 $as_echo "$LIBOTF_LIBS" >&6; }
10368 else
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10371 LIBOTF_CFLAGS=""
10372 LIBOTF_LIBS=""
10373 ## If we have a custom action on failure, don't print errors, but
10374 ## do set a variable so people can do so.
10375 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
10381 else
10382 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10383 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10387 if test $succeeded = yes; then
10388 HAVE_LIBOTF=yes
10389 else
10390 HAVE_LIBOTF=no
10393 if test "$HAVE_LIBOTF" = "yes"; then
10395 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
10398 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
10399 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
10401 else
10402 ac_check_lib_save_LIBS=$LIBS
10403 LIBS="-lotf $LIBS"
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10407 /* Override any GCC internal prototype to avoid an error.
10408 Use char because int might match the return type of a GCC
10409 builtin and then its argument prototype would still apply. */
10410 #ifdef __cplusplus
10411 extern "C"
10412 #endif
10413 char OTF_get_variation_glyphs ();
10415 main ()
10417 return OTF_get_variation_glyphs ();
10419 return 0;
10421 _ACEOF
10422 if ac_fn_c_try_link "$LINENO"; then :
10423 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10424 else
10425 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10427 rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10429 LIBS=$ac_check_lib_save_LIBS
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10432 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10433 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10434 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10435 else
10436 HAVE_OTF_GET_VARIATION_GLYPHS=no
10439 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10441 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10448 HAVE_M17N_FLT=no
10449 if test "${HAVE_LIBOTF}" = yes; then
10450 if test "${with_m17n_flt}" != "no"; then
10452 succeeded=no
10454 # Extract the first word of "pkg-config", so it can be a program name with args.
10455 set dummy pkg-config; ac_word=$2
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457 $as_echo_n "checking for $ac_word... " >&6; }
10458 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 case $PKG_CONFIG in
10462 [\\/]* | ?:[\\/]*)
10463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10475 break 2
10477 done
10478 done
10479 IFS=$as_save_IFS
10481 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10483 esac
10485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10486 if test -n "$PKG_CONFIG"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10488 $as_echo "$PKG_CONFIG" >&6; }
10489 else
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10496 if test "$PKG_CONFIG" = "no" ; then
10497 HAVE_M17N_FLT=no
10498 else
10499 PKG_CONFIG_MIN_VERSION=0.9.0
10500 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10502 $as_echo_n "checking for m17n-flt... " >&6; }
10504 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10506 $as_echo "yes" >&6; }
10507 succeeded=yes
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10510 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10511 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10513 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10516 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10517 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10519 $as_echo "$M17N_FLT_LIBS" >&6; }
10520 else
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10523 M17N_FLT_CFLAGS=""
10524 M17N_FLT_LIBS=""
10525 ## If we have a custom action on failure, don't print errors, but
10526 ## do set a variable so people can do so.
10527 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10533 else
10534 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10535 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10539 if test $succeeded = yes; then
10540 HAVE_M17N_FLT=yes
10541 else
10542 HAVE_M17N_FLT=no
10545 if test "$HAVE_M17N_FLT" = "yes"; then
10547 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10552 else
10553 HAVE_XFT=no
10554 HAVE_FREETYPE=no
10555 HAVE_LIBOTF=no
10556 HAVE_M17N_FLT=no
10559 ### End of font-backend (under X11) section.
10570 ### Use -lXpm if available, unless `--with-xpm=no'.
10571 HAVE_XPM=no
10572 LIBXPM=
10573 if test "${HAVE_X11}" = "yes"; then
10574 if test "${with_xpm}" != "no"; then
10575 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10576 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10578 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10579 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 ac_check_lib_save_LIBS=$LIBS
10583 LIBS="-lXpm -lX11 $LIBS"
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10587 /* Override any GCC internal prototype to avoid an error.
10588 Use char because int might match the return type of a GCC
10589 builtin and then its argument prototype would still apply. */
10590 #ifdef __cplusplus
10591 extern "C"
10592 #endif
10593 char XpmReadFileToPixmap ();
10595 main ()
10597 return XpmReadFileToPixmap ();
10599 return 0;
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"; then :
10603 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10604 else
10605 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10607 rm -f core conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10609 LIBS=$ac_check_lib_save_LIBS
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10612 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10613 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10614 HAVE_XPM=yes
10620 if test "${HAVE_XPM}" = "yes"; then
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10622 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625 #include "X11/xpm.h"
10626 #ifndef XpmReturnAllocPixels
10627 no_return_alloc_pixels
10628 #endif
10630 _ACEOF
10631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10632 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10633 HAVE_XPM=no
10634 else
10635 HAVE_XPM=yes
10637 rm -f conftest*
10640 if test "${HAVE_XPM}" = "yes"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10642 $as_echo "yes" >&6; }
10643 else
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10650 if test "${HAVE_XPM}" = "yes"; then
10652 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10654 LIBXPM=-lXpm
10659 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10660 HAVE_JPEG=no
10661 LIBJPEG=
10662 if test "${HAVE_X11}" = "yes"; then
10663 if test "${with_jpeg}" != "no"; then
10664 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10665 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10667 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10668 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10669 $as_echo_n "(cached) " >&6
10670 else
10671 ac_check_lib_save_LIBS=$LIBS
10672 LIBS="-ljpeg $LIBS"
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 char jpeg_destroy_compress ();
10684 main ()
10686 return jpeg_destroy_compress ();
10688 return 0;
10690 _ACEOF
10691 if ac_fn_c_try_link "$LINENO"; then :
10692 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10693 else
10694 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10701 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10702 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10703 HAVE_JPEG=yes
10711 if test "${HAVE_JPEG}" = "yes"; then
10712 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10716 #include <jpeglib.h>
10717 version=JPEG_LIB_VERSION
10719 _ACEOF
10720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10721 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10722 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10724 else
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10726 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10727 HAVE_JPEG=no
10729 rm -f conftest*
10732 if test "${HAVE_JPEG}" = "yes"; then
10733 LIBJPEG=-ljpeg
10738 ### Use -lpng if available, unless `--with-png=no'.
10739 HAVE_PNG=no
10740 LIBPNG=
10741 if test "${HAVE_X11}" = "yes"; then
10742 if test "${with_png}" != "no"; then
10743 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10744 # in /usr/include/libpng.
10745 for ac_header in png.h libpng/png.h
10746 do :
10747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10748 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10750 cat >>confdefs.h <<_ACEOF
10751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10752 _ACEOF
10756 done
10758 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10760 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10761 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
10763 else
10764 ac_check_lib_save_LIBS=$LIBS
10765 LIBS="-lpng -lz -lm $LIBS"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10769 /* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char png_get_channels ();
10777 main ()
10779 return png_get_channels ();
10781 return 0;
10783 _ACEOF
10784 if ac_fn_c_try_link "$LINENO"; then :
10785 ac_cv_lib_png_png_get_channels=yes
10786 else
10787 ac_cv_lib_png_png_get_channels=no
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10794 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10795 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10796 HAVE_PNG=yes
10802 if test "${HAVE_PNG}" = "yes"; then
10804 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10806 LIBPNG="-lpng -lz -lm"
10811 ### Use -ltiff if available, unless `--with-tiff=no'.
10812 HAVE_TIFF=no
10813 LIBTIFF=
10814 if test "${HAVE_X11}" = "yes"; then
10815 if test "${with_tiff}" != "no"; then
10816 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10817 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10818 tifflibs="-lz -lm"
10819 # At least one tiff package requires the jpeg library.
10820 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10822 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10823 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-ltiff $tifflibs $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char TIFFGetVersion ();
10839 main ()
10841 return TIFFGetVersion ();
10843 return 0;
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 ac_cv_lib_tiff_TIFFGetVersion=yes
10848 else
10849 ac_cv_lib_tiff_TIFFGetVersion=no
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10856 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10857 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10858 HAVE_TIFF=yes
10866 if test "${HAVE_TIFF}" = "yes"; then
10868 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10870 LIBTIFF=-ltiff
10875 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10876 HAVE_GIF=no
10877 LIBGIF=
10878 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10879 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10880 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10881 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10882 # Earlier versions can crash Emacs.
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10884 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10885 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 ac_check_lib_save_LIBS=$LIBS
10889 LIBS="-lgif $LIBS"
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char EGifPutExtensionLast ();
10901 main ()
10903 return EGifPutExtensionLast ();
10905 return 0;
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909 ac_cv_lib_gif_EGifPutExtensionLast=yes
10910 else
10911 ac_cv_lib_gif_EGifPutExtensionLast=no
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10918 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10919 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10920 HAVE_GIF=yes
10921 else
10922 HAVE_GIF=maybe
10929 if test "$HAVE_GIF" = yes; then
10930 LIBGIF=-lgif
10931 elif test "$HAVE_GIF" = maybe; then
10932 # If gif_lib.h but no libgif, try libungif.
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10934 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10935 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 ac_check_lib_save_LIBS=$LIBS
10939 LIBS="-lungif $LIBS"
10940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h. */
10943 /* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946 #ifdef __cplusplus
10947 extern "C"
10948 #endif
10949 char EGifPutExtensionLast ();
10951 main ()
10953 return EGifPutExtensionLast ();
10955 return 0;
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"; then :
10959 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10960 else
10961 ac_cv_lib_ungif_EGifPutExtensionLast=no
10963 rm -f core conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
10965 LIBS=$ac_check_lib_save_LIBS
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10968 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10969 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10970 HAVE_GIF=yes
10971 else
10972 HAVE_GIF=no
10975 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10978 if test "${HAVE_GIF}" = "yes"; then
10980 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10986 if test "${HAVE_X11}" = "yes"; then
10987 MISSING=""
10988 WITH_NO=""
10989 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10990 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10991 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10992 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10993 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10994 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10995 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10996 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10997 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10998 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
11000 if test "X${MISSING}" != X; then
11001 as_fn_error $? "The following required libraries were not found:
11002 $MISSING
11003 Maybe some development libraries/packages are missing?
11004 If you don't want to link with them give
11005 $WITH_NO
11006 as options to configure" "$LINENO" 5
11010 ### Use -lgpm if available, unless `--with-gpm=no'.
11011 HAVE_GPM=no
11012 LIBGPM=
11013 MOUSE_SUPPORT=
11014 if test "${with_gpm}" != "no"; then
11015 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
11016 if test "x$ac_cv_header_gpm_h" = x""yes; then :
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
11018 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
11019 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 ac_check_lib_save_LIBS=$LIBS
11023 LIBS="-lgpm $LIBS"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 char Gpm_Open ();
11035 main ()
11037 return Gpm_Open ();
11039 return 0;
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 ac_cv_lib_gpm_Gpm_Open=yes
11044 else
11045 ac_cv_lib_gpm_Gpm_Open=no
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11052 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
11053 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
11054 HAVE_GPM=yes
11061 if test "${HAVE_GPM}" = "yes"; then
11063 $as_echo "#define HAVE_GPM 1" >>confdefs.h
11065 LIBGPM=-lgpm
11066 ## May be reset below.
11067 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
11072 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
11073 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
11075 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
11081 C_SWITCH_X_SYSTEM=
11082 ### Use NeXTstep API to implement GUI.
11083 if test "${HAVE_NS}" = "yes"; then
11085 $as_echo "#define HAVE_NS 1" >>confdefs.h
11087 if test "${NS_IMPL_COCOA}" = "yes"; then
11089 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
11091 GNU_OBJC_CFLAGS=
11093 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
11095 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
11097 # See also .m.o rule in Makefile.in */
11098 # FIXME: are all these flags really needed? Document here why. */
11099 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
11100 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
11102 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
11104 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
11107 # We also have mouse menus.
11108 HAVE_MENUS=yes
11109 OTHER_FILES=ns-app
11113 ### Use session management (-lSM -lICE) if available
11114 HAVE_X_SM=no
11115 LIBXSM=
11116 if test "${HAVE_X11}" = "yes"; then
11117 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
11118 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
11120 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
11121 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 ac_check_lib_save_LIBS=$LIBS
11125 LIBS="-lSM -lICE $LIBS"
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11129 /* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11132 #ifdef __cplusplus
11133 extern "C"
11134 #endif
11135 char SmcOpenConnection ();
11137 main ()
11139 return SmcOpenConnection ();
11141 return 0;
11143 _ACEOF
11144 if ac_fn_c_try_link "$LINENO"; then :
11145 ac_cv_lib_SM_SmcOpenConnection=yes
11146 else
11147 ac_cv_lib_SM_SmcOpenConnection=no
11149 rm -f core conftest.err conftest.$ac_objext \
11150 conftest$ac_exeext conftest.$ac_ext
11151 LIBS=$ac_check_lib_save_LIBS
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
11154 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
11155 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
11156 HAVE_X_SM=yes
11163 if test "${HAVE_X_SM}" = "yes"; then
11165 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
11167 LIBXSM="-lSM -lICE"
11168 case "$LIBS" in
11169 *-lSM*) ;;
11170 *) LIBS="$LIBXSM $LIBS" ;;
11171 esac
11176 ### Use libxml (-lxml2) if available
11177 if test "${with_xml2}" != "no"; then
11178 ### I'm not sure what the version number should be, so I just guessed.
11180 succeeded=no
11182 # Extract the first word of "pkg-config", so it can be a program name with args.
11183 set dummy pkg-config; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 case $PKG_CONFIG in
11190 [\\/]* | ?:[\\/]*)
11191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195 for as_dir in $PATH
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11201 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 break 2
11205 done
11206 done
11207 IFS=$as_save_IFS
11209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11211 esac
11213 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11214 if test -n "$PKG_CONFIG"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11216 $as_echo "$PKG_CONFIG" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11224 if test "$PKG_CONFIG" = "no" ; then
11225 HAVE_LIBXML2=no
11226 else
11227 PKG_CONFIG_MIN_VERSION=0.9.0
11228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.2.0" >&5
11230 $as_echo_n "checking for libxml-2.0 > 2.2.0... " >&6; }
11232 if $PKG_CONFIG --exists "libxml-2.0 > 2.2.0" 2>&5; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11234 $as_echo "yes" >&6; }
11235 succeeded=yes
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
11238 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
11239 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
11241 $as_echo "$LIBXML2_CFLAGS" >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
11244 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
11245 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.2.0"|sed -e 's,///*,/,g'`
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
11247 $as_echo "$LIBXML2_LIBS" >&6; }
11248 else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250 $as_echo "no" >&6; }
11251 LIBXML2_CFLAGS=""
11252 LIBXML2_LIBS=""
11253 ## If we have a custom action on failure, don't print errors, but
11254 ## do set a variable so people can do so.
11255 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.2.0"`
11261 else
11262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11267 if test $succeeded = yes; then
11268 HAVE_LIBXML2=yes
11269 else
11270 HAVE_LIBXML2=no
11273 if test "${HAVE_LIBXML2}" = "yes"; then
11274 LIBS="$LIBXML2_LIBS $LIBS"
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
11276 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
11277 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
11278 $as_echo_n "(cached) " >&6
11279 else
11280 ac_check_lib_save_LIBS=$LIBS
11281 LIBS="-lxml2 $LIBS"
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11285 /* Override any GCC internal prototype to avoid an error.
11286 Use char because int might match the return type of a GCC
11287 builtin and then its argument prototype would still apply. */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 char htmlReadMemory ();
11293 main ()
11295 return htmlReadMemory ();
11297 return 0;
11299 _ACEOF
11300 if ac_fn_c_try_link "$LINENO"; then :
11301 ac_cv_lib_xml2_htmlReadMemory=yes
11302 else
11303 ac_cv_lib_xml2_htmlReadMemory=no
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_lib_save_LIBS
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
11310 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
11311 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
11312 HAVE_LIBXML2=yes
11313 else
11314 HAVE_LIBXML2=no
11317 if test "${HAVE_LIBXML2}" = "yes"; then
11319 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
11321 else
11322 LIBXML2_LIBS=""
11323 LIBXML2_CFLAGS=""
11330 # If netdb.h doesn't declare h_errno, we must declare it by hand.
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
11332 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
11333 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 #include <netdb.h>
11340 main ()
11342 return h_errno;
11344 return 0;
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348 emacs_cv_netdb_declares_h_errno=yes
11349 else
11350 emacs_cv_netdb_declares_h_errno=no
11352 rm -f core conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
11356 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
11357 if test $emacs_cv_netdb_declares_h_errno = yes; then
11359 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
11363 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11364 # for constant arguments. Useless!
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11366 $as_echo_n "checking for working alloca.h... " >&6; }
11367 if test "${ac_cv_working_alloca_h+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 #include <alloca.h>
11374 main ()
11376 char *p = (char *) alloca (2 * sizeof (int));
11377 if (p) return 0;
11379 return 0;
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_working_alloca_h=yes
11384 else
11385 ac_cv_working_alloca_h=no
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11391 $as_echo "$ac_cv_working_alloca_h" >&6; }
11392 if test $ac_cv_working_alloca_h = yes; then
11394 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11399 $as_echo_n "checking for alloca... " >&6; }
11400 if test "${ac_cv_func_alloca_works+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11405 #ifdef __GNUC__
11406 # define alloca __builtin_alloca
11407 #else
11408 # ifdef _MSC_VER
11409 # include <malloc.h>
11410 # define alloca _alloca
11411 # else
11412 # ifdef HAVE_ALLOCA_H
11413 # include <alloca.h>
11414 # else
11415 # ifdef _AIX
11416 #pragma alloca
11417 # else
11418 # ifndef alloca /* predefined by HP cc +Olibcalls */
11419 char *alloca ();
11420 # endif
11421 # endif
11422 # endif
11423 # endif
11424 #endif
11427 main ()
11429 char *p = (char *) alloca (1);
11430 if (p) return 0;
11432 return 0;
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"; then :
11436 ac_cv_func_alloca_works=yes
11437 else
11438 ac_cv_func_alloca_works=no
11440 rm -f core conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11444 $as_echo "$ac_cv_func_alloca_works" >&6; }
11446 if test $ac_cv_func_alloca_works = yes; then
11448 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11450 else
11451 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11452 # that cause trouble. Some versions do not even contain alloca or
11453 # contain a buggy version. If you still want to use their alloca,
11454 # use ar to extract alloca.o from them instead of compiling alloca.c.
11456 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11458 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11462 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11463 if test "${ac_cv_os_cray+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #if defined CRAY && ! defined CRAY2
11469 webecray
11470 #else
11471 wenotbecray
11472 #endif
11474 _ACEOF
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476 $EGREP "webecray" >/dev/null 2>&1; then :
11477 ac_cv_os_cray=yes
11478 else
11479 ac_cv_os_cray=no
11481 rm -f conftest*
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11485 $as_echo "$ac_cv_os_cray" >&6; }
11486 if test $ac_cv_os_cray = yes; then
11487 for ac_func in _getb67 GETB67 getb67; do
11488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11492 cat >>confdefs.h <<_ACEOF
11493 #define CRAY_STACKSEG_END $ac_func
11494 _ACEOF
11496 break
11499 done
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11503 $as_echo_n "checking stack direction for C alloca... " >&6; }
11504 if test "${ac_cv_c_stack_direction+set}" = set; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 if test "$cross_compiling" = yes; then :
11508 ac_cv_c_stack_direction=0
11509 else
11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11511 /* end confdefs.h. */
11512 $ac_includes_default
11514 find_stack_direction ()
11516 static char *addr = 0;
11517 auto char dummy;
11518 if (addr == 0)
11520 addr = &dummy;
11521 return find_stack_direction ();
11523 else
11524 return (&dummy > addr) ? 1 : -1;
11528 main ()
11530 return find_stack_direction () < 0;
11532 _ACEOF
11533 if ac_fn_c_try_run "$LINENO"; then :
11534 ac_cv_c_stack_direction=1
11535 else
11536 ac_cv_c_stack_direction=-1
11538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11539 conftest.$ac_objext conftest.beam conftest.$ac_ext
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11544 $as_echo "$ac_cv_c_stack_direction" >&6; }
11545 cat >>confdefs.h <<_ACEOF
11546 #define STACK_DIRECTION $ac_cv_c_stack_direction
11547 _ACEOF
11553 if test x"$ac_cv_func_alloca_works" != xyes; then
11554 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
11557 # fmod, logb, and frexp are found in -lm on most systems.
11558 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
11560 $as_echo_n "checking for sqrt in -lm... " >&6; }
11561 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-lm $LIBS"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char sqrt ();
11577 main ()
11579 return sqrt ();
11581 return 0;
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585 ac_cv_lib_m_sqrt=yes
11586 else
11587 ac_cv_lib_m_sqrt=no
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
11594 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11595 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_LIBM 1
11598 _ACEOF
11600 LIBS="-lm $LIBS"
11605 # Check for mail-locking functions in a "mail" library. Probably this should
11606 # have the same check as for liblockfile below.
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11608 $as_echo_n "checking for maillock in -lmail... " >&6; }
11609 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-lmail $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char maillock ();
11625 main ()
11627 return maillock ();
11629 return 0;
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_mail_maillock=yes
11634 else
11635 ac_cv_lib_mail_maillock=no
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11642 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11643 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11644 have_mail=yes
11645 else
11646 have_mail=no
11649 if test $have_mail = yes; then
11650 LIBS_MAIL=-lmail
11651 LIBS="$LIBS_MAIL $LIBS"
11653 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11655 else
11656 LIBS_MAIL=
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11659 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11660 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 ac_check_lib_save_LIBS=$LIBS
11664 LIBS="-llockfile $LIBS"
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11671 #ifdef __cplusplus
11672 extern "C"
11673 #endif
11674 char maillock ();
11676 main ()
11678 return maillock ();
11680 return 0;
11682 _ACEOF
11683 if ac_fn_c_try_link "$LINENO"; then :
11684 ac_cv_lib_lockfile_maillock=yes
11685 else
11686 ac_cv_lib_lockfile_maillock=no
11688 rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11693 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11694 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11695 have_lockfile=yes
11696 else
11697 have_lockfile=no
11700 if test $have_lockfile = yes; then
11701 LIBS_MAIL=-llockfile
11702 LIBS="$LIBS_MAIL $LIBS"
11704 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11706 else
11707 # If we have the shared liblockfile, assume we must use it for mail
11708 # locking (e.g. Debian). If we couldn't link against liblockfile
11709 # (no liblockfile.a installed), ensure that we don't need to.
11710 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11711 set dummy liblockfile.so; ac_word=$2
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713 $as_echo_n "checking for $ac_word... " >&6; }
11714 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 if test -n "$liblockfile"; then
11718 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11719 else
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11722 for as_dir in $as_dummy
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_prog_liblockfile="yes"
11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11730 break 2
11732 done
11733 done
11734 IFS=$as_save_IFS
11736 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11739 liblockfile=$ac_cv_prog_liblockfile
11740 if test -n "$liblockfile"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11742 $as_echo "$liblockfile" >&6; }
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11749 if test $ac_cv_prog_liblockfile = yes; then
11750 as_fn_error $? "Shared liblockfile found but can't link against it.
11751 This probably means that movemail could lose mail.
11752 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11755 for ac_func in touchlock
11756 do :
11757 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11758 if test "x$ac_cv_func_touchlock" = x""yes; then :
11759 cat >>confdefs.h <<_ACEOF
11760 #define HAVE_TOUCHLOCK 1
11761 _ACEOF
11764 done
11766 for ac_header in maillock.h
11767 do :
11768 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11769 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11770 cat >>confdefs.h <<_ACEOF
11771 #define HAVE_MAILLOCK_H 1
11772 _ACEOF
11776 done
11780 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11781 ## interlock access to the mail spool. The alternative is a lock file named
11782 ## /usr/spool/mail/$USER.lock.
11783 mail_lock=no
11784 case "$opsys" in
11785 aix4-2) mail_lock="lockf" ;;
11787 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11789 ## On GNU/Linux systems, both methods are used by various mail programs.
11790 ## I assume most people are using newer mailers that have heard of flock.
11791 ## Change this if you need to.
11792 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11793 ## configure gets the right answers, and that means *NOT* using flock.
11794 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11795 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11796 ## Debian maintainer hasn't provided a clean fix for Emacs.
11797 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11798 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11799 ## correct logic. -- fx
11800 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11801 ## liblockfile is a Free Software replacement for libmail, used on
11802 ## Debian systems and elsewhere. -rfr.
11803 gnu-*)
11804 mail_lock="flock"
11805 if test $have_mail = yes || test $have_lockfile = yes; then
11806 test $ac_cv_header_maillock_h = yes && mail_lock=no
11809 esac
11811 BLESSMAIL_TARGET=
11812 case "$mail_lock" in
11813 flock)
11814 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11817 lockf)
11818 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11821 *) BLESSMAIL_TARGET="need-blessmail" ;;
11822 esac
11826 for ac_func in gethostname getdomainname dup2 \
11827 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11828 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11829 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11830 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11831 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
11832 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11833 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11834 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11835 cfmakeraw cfsetspeed isnan copysign __executable_start
11836 do :
11837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11839 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11840 cat >>confdefs.h <<_ACEOF
11841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842 _ACEOF
11845 done
11848 for ac_header in sys/un.h
11849 do :
11850 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11851 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11852 cat >>confdefs.h <<_ACEOF
11853 #define HAVE_SYS_UN_H 1
11854 _ACEOF
11858 done
11866 for ac_func in $ac_func_list
11867 do :
11868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11871 cat >>confdefs.h <<_ACEOF
11872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11873 _ACEOF
11876 done
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11883 $as_echo_n "checking for working mktime... " >&6; }
11884 if test "${ac_cv_func_working_mktime+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 if test "$cross_compiling" = yes; then :
11888 ac_cv_func_working_mktime=no
11889 else
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891 /* end confdefs.h. */
11892 /* Test program from Paul Eggert and Tony Leneis. */
11893 #ifdef TIME_WITH_SYS_TIME
11894 # include <sys/time.h>
11895 # include <time.h>
11896 #else
11897 # ifdef HAVE_SYS_TIME_H
11898 # include <sys/time.h>
11899 # else
11900 # include <time.h>
11901 # endif
11902 #endif
11904 #include <limits.h>
11905 #include <stdlib.h>
11907 #ifdef HAVE_UNISTD_H
11908 # include <unistd.h>
11909 #endif
11911 #ifndef HAVE_ALARM
11912 # define alarm(X) /* empty */
11913 #endif
11915 /* Work around redefinition to rpl_putenv by other config tests. */
11916 #undef putenv
11918 static time_t time_t_max;
11919 static time_t time_t_min;
11921 /* Values we'll use to set the TZ environment variable. */
11922 static const char *tz_strings[] = {
11923 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11924 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11926 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11928 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11929 Based on a problem report from Andreas Jaeger. */
11930 static int
11931 spring_forward_gap ()
11933 /* glibc (up to about 1998-10-07) failed this test. */
11934 struct tm tm;
11936 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11937 instead of "TZ=America/Vancouver" in order to detect the bug even
11938 on systems that don't support the Olson extension, or don't have the
11939 full zoneinfo tables installed. */
11940 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11942 tm.tm_year = 98;
11943 tm.tm_mon = 3;
11944 tm.tm_mday = 5;
11945 tm.tm_hour = 2;
11946 tm.tm_min = 0;
11947 tm.tm_sec = 0;
11948 tm.tm_isdst = -1;
11949 return mktime (&tm) != (time_t) -1;
11952 static int
11953 mktime_test1 (time_t now)
11955 struct tm *lt;
11956 return ! (lt = localtime (&now)) || mktime (lt) == now;
11959 static int
11960 mktime_test (time_t now)
11962 return (mktime_test1 (now)
11963 && mktime_test1 ((time_t) (time_t_max - now))
11964 && mktime_test1 ((time_t) (time_t_min + now)));
11967 static int
11968 irix_6_4_bug ()
11970 /* Based on code from Ariel Faigon. */
11971 struct tm tm;
11972 tm.tm_year = 96;
11973 tm.tm_mon = 3;
11974 tm.tm_mday = 0;
11975 tm.tm_hour = 0;
11976 tm.tm_min = 0;
11977 tm.tm_sec = 0;
11978 tm.tm_isdst = -1;
11979 mktime (&tm);
11980 return tm.tm_mon == 2 && tm.tm_mday == 31;
11983 static int
11984 bigtime_test (int j)
11986 struct tm tm;
11987 time_t now;
11988 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11989 now = mktime (&tm);
11990 if (now != (time_t) -1)
11992 struct tm *lt = localtime (&now);
11993 if (! (lt
11994 && lt->tm_year == tm.tm_year
11995 && lt->tm_mon == tm.tm_mon
11996 && lt->tm_mday == tm.tm_mday
11997 && lt->tm_hour == tm.tm_hour
11998 && lt->tm_min == tm.tm_min
11999 && lt->tm_sec == tm.tm_sec
12000 && lt->tm_yday == tm.tm_yday
12001 && lt->tm_wday == tm.tm_wday
12002 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
12003 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
12004 return 0;
12006 return 1;
12009 static int
12010 year_2050_test ()
12012 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
12013 ignoring leap seconds. */
12014 unsigned long int answer = 2527315200UL;
12016 struct tm tm;
12017 time_t t;
12018 tm.tm_year = 2050 - 1900;
12019 tm.tm_mon = 2 - 1;
12020 tm.tm_mday = 1;
12021 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
12022 tm.tm_isdst = -1;
12024 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
12025 instead of "TZ=America/Vancouver" in order to detect the bug even
12026 on systems that don't support the Olson extension, or don't have the
12027 full zoneinfo tables installed. */
12028 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
12030 t = mktime (&tm);
12032 /* Check that the result is either a failure, or close enough
12033 to the correct answer that we can assume the discrepancy is
12034 due to leap seconds. */
12035 return (t == (time_t) -1
12036 || (0 < t && answer - 120 <= t && t <= answer + 120));
12040 main ()
12042 time_t t, delta;
12043 int i, j;
12045 /* This test makes some buggy mktime implementations loop.
12046 Give up after 60 seconds; a mktime slower than that
12047 isn't worth using anyway. */
12048 alarm (60);
12050 for (;;)
12052 t = (time_t_max << 1) + 1;
12053 if (t <= time_t_max)
12054 break;
12055 time_t_max = t;
12057 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
12059 delta = time_t_max / 997; /* a suitable prime number */
12060 for (i = 0; i < N_STRINGS; i++)
12062 if (tz_strings[i])
12063 putenv ((char*) tz_strings[i]);
12065 for (t = 0; t <= time_t_max - delta; t += delta)
12066 if (! mktime_test (t))
12067 return 1;
12068 if (! (mktime_test ((time_t) 1)
12069 && mktime_test ((time_t) (60 * 60))
12070 && mktime_test ((time_t) (60 * 60 * 24))))
12071 return 1;
12073 for (j = 1; ; j <<= 1)
12074 if (! bigtime_test (j))
12075 return 1;
12076 else if (INT_MAX / 2 < j)
12077 break;
12078 if (! bigtime_test (INT_MAX))
12079 return 1;
12081 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
12083 _ACEOF
12084 if ac_fn_c_try_run "$LINENO"; then :
12085 ac_cv_func_working_mktime=yes
12086 else
12087 ac_cv_func_working_mktime=no
12089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12090 conftest.$ac_objext conftest.beam conftest.$ac_ext
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
12095 $as_echo "$ac_cv_func_working_mktime" >&6; }
12096 if test $ac_cv_func_working_mktime = no; then
12097 case " $LIBOBJS " in
12098 *" mktime.$ac_objext "* ) ;;
12099 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
12101 esac
12105 if test "$ac_cv_func_working_mktime" = no; then
12107 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
12111 ac_have_func=no # yes means we've found a way to get the load average.
12113 # Make sure getloadavg.c is where it belongs, at configure-time.
12114 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
12115 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
12117 ac_save_LIBS=$LIBS
12119 # Check for getloadavg, but be sure not to touch the cache variable.
12120 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12121 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12122 exit 0
12123 else
12124 exit 1
12126 ) && ac_have_func=yes
12128 # On HPUX9, an unprivileged user can get load averages through this function.
12129 for ac_func in pstat_getdynamic
12130 do :
12131 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
12132 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
12133 cat >>confdefs.h <<_ACEOF
12134 #define HAVE_PSTAT_GETDYNAMIC 1
12135 _ACEOF
12138 done
12141 # Solaris has libkstat which does not require root.
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12143 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12144 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 ac_check_lib_save_LIBS=$LIBS
12148 LIBS="-lkstat $LIBS"
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 char kstat_open ();
12160 main ()
12162 return kstat_open ();
12164 return 0;
12166 _ACEOF
12167 if ac_fn_c_try_link "$LINENO"; then :
12168 ac_cv_lib_kstat_kstat_open=yes
12169 else
12170 ac_cv_lib_kstat_kstat_open=no
12172 rm -f core conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12177 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12178 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12179 cat >>confdefs.h <<_ACEOF
12180 #define HAVE_LIBKSTAT 1
12181 _ACEOF
12183 LIBS="-lkstat $LIBS"
12187 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
12189 # Some systems with -lutil have (and need) -lkvm as well, some do not.
12190 # On Solaris, -lkvm requires nlist from -lelf, so check that first
12191 # to get the right answer into the cache.
12192 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
12193 if test $ac_have_func = no; then
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
12195 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
12196 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-lelf $LIBS"
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12207 #ifdef __cplusplus
12208 extern "C"
12209 #endif
12210 char elf_begin ();
12212 main ()
12214 return elf_begin ();
12216 return 0;
12218 _ACEOF
12219 if ac_fn_c_try_link "$LINENO"; then :
12220 ac_cv_lib_elf_elf_begin=yes
12221 else
12222 ac_cv_lib_elf_elf_begin=no
12224 rm -f core conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
12229 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
12230 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
12231 LIBS="-lelf $LIBS"
12235 if test $ac_have_func = no; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
12237 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
12238 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
12239 $as_echo_n "(cached) " >&6
12240 else
12241 ac_check_lib_save_LIBS=$LIBS
12242 LIBS="-lkvm $LIBS"
12243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 char kvm_open ();
12254 main ()
12256 return kvm_open ();
12258 return 0;
12260 _ACEOF
12261 if ac_fn_c_try_link "$LINENO"; then :
12262 ac_cv_lib_kvm_kvm_open=yes
12263 else
12264 ac_cv_lib_kvm_kvm_open=no
12266 rm -f core conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_lib_save_LIBS
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
12271 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
12272 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
12273 LIBS="-lkvm $LIBS"
12276 # Check for the 4.4BSD definition of getloadavg.
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
12278 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
12279 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 ac_check_lib_save_LIBS=$LIBS
12283 LIBS="-lutil $LIBS"
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12287 /* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290 #ifdef __cplusplus
12291 extern "C"
12292 #endif
12293 char getloadavg ();
12295 main ()
12297 return getloadavg ();
12299 return 0;
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 ac_cv_lib_util_getloadavg=yes
12304 else
12305 ac_cv_lib_util_getloadavg=no
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
12312 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
12313 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
12314 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
12319 if test $ac_have_func = no; then
12320 # There is a commonly available library for RS/6000 AIX.
12321 # Since it is not a standard part of AIX, it might be installed locally.
12322 ac_getloadavg_LIBS=$LIBS
12323 LIBS="-L/usr/local/lib $LIBS"
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
12325 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
12326 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lgetloadavg $LIBS"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char getloadavg ();
12342 main ()
12344 return getloadavg ();
12346 return 0;
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"; then :
12350 ac_cv_lib_getloadavg_getloadavg=yes
12351 else
12352 ac_cv_lib_getloadavg_getloadavg=no
12354 rm -f core conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
12359 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
12360 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
12361 LIBS="-lgetloadavg $LIBS"
12362 else
12363 LIBS=$ac_getloadavg_LIBS
12368 # Make sure it is really in the library, if we think we found it,
12369 # otherwise set up the replacement function.
12370 for ac_func in getloadavg
12371 do :
12372 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
12373 if test "x$ac_cv_func_getloadavg" = x""yes; then :
12374 cat >>confdefs.h <<_ACEOF
12375 #define HAVE_GETLOADAVG 1
12376 _ACEOF
12378 else
12379 case " $LIBOBJS " in
12380 *" getloadavg.$ac_objext "* ) ;;
12381 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
12383 esac
12386 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
12388 # Figure out what our getloadavg.c needs.
12389 ac_have_func=no
12390 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
12391 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
12392 ac_have_func=yes
12394 $as_echo "#define DGUX 1" >>confdefs.h
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
12397 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
12398 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-ldgc $LIBS"
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12406 /* Override any GCC internal prototype to avoid an error.
12407 Use char because int might match the return type of a GCC
12408 builtin and then its argument prototype would still apply. */
12409 #ifdef __cplusplus
12410 extern "C"
12411 #endif
12412 char dg_sys_info ();
12414 main ()
12416 return dg_sys_info ();
12418 return 0;
12420 _ACEOF
12421 if ac_fn_c_try_link "$LINENO"; then :
12422 ac_cv_lib_dgc_dg_sys_info=yes
12423 else
12424 ac_cv_lib_dgc_dg_sys_info=no
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LIBS=$ac_check_lib_save_LIBS
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
12431 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
12432 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
12433 cat >>confdefs.h <<_ACEOF
12434 #define HAVE_LIBDGC 1
12435 _ACEOF
12437 LIBS="-ldgc $LIBS"
12445 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_locale_h" = x""yes; then :
12451 for ac_func in setlocale
12452 do :
12453 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
12454 if test "x$ac_cv_func_setlocale" = x""yes; then :
12455 cat >>confdefs.h <<_ACEOF
12456 #define HAVE_SETLOCALE 1
12457 _ACEOF
12460 done
12463 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
12464 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
12465 # Irix 4.0.5F has the header but not the library.
12466 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
12467 ac_have_func=yes
12469 $as_echo "#define SVR4 1" >>confdefs.h
12473 if test $ac_have_func = no; then
12474 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
12475 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
12476 ac_have_func=yes
12478 $as_echo "#define UMAX 1" >>confdefs.h
12481 $as_echo "#define UMAX4_3 1" >>confdefs.h
12488 if test $ac_have_func = no; then
12489 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
12490 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
12491 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
12498 if test $ac_have_func = no; then
12499 for ac_header in mach/mach.h
12500 do :
12501 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
12502 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
12503 cat >>confdefs.h <<_ACEOF
12504 #define HAVE_MACH_MACH_H 1
12505 _ACEOF
12509 done
12513 for ac_header in nlist.h
12514 do :
12515 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
12516 if test "x$ac_cv_header_nlist_h" = x""yes; then :
12517 cat >>confdefs.h <<_ACEOF
12518 #define HAVE_NLIST_H 1
12519 _ACEOF
12520 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
12522 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
12524 cat >>confdefs.h <<_ACEOF
12525 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12526 _ACEOF
12529 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
12536 done
12539 done
12542 # Some definitions of getloadavg require that the program be installed setgid.
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
12544 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
12545 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12550 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
12551 #ifdef LDAV_PRIVILEGED
12552 Yowza Am I SETGID yet
12553 #endif
12554 _ACEOF
12555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12556 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
12557 ac_cv_func_getloadavg_setgid=yes
12558 else
12559 ac_cv_func_getloadavg_setgid=no
12561 rm -f conftest*
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
12565 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
12566 if test $ac_cv_func_getloadavg_setgid = yes; then
12567 NEED_SETGID=true
12569 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
12571 else
12572 NEED_SETGID=false
12575 if test $ac_cv_func_getloadavg_setgid = yes; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
12577 $as_echo_n "checking group of /dev/kmem... " >&6; }
12578 if test "${ac_cv_group_kmem+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12582 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
12583 # If we got an error (system does not support symlinks), try without -L.
12584 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
12585 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
12586 | sed -ne 's/[ ][ ]*/ /g;
12587 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12588 / /s/.* //;p;'`
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12592 $as_echo "$ac_cv_group_kmem" >&6; }
12593 KMEM_GROUP=$ac_cv_group_kmem
12595 if test "x$ac_save_LIBS" = x; then
12596 GETLOADAVG_LIBS=$LIBS
12597 else
12598 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12600 LIBS=$ac_save_LIBS
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12605 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12606 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 while :; do
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 #include <sys/types.h> /* for off_t */
12613 #include <stdio.h>
12615 main ()
12617 int (*fp) (FILE *, off_t, int) = fseeko;
12618 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12620 return 0;
12622 _ACEOF
12623 if ac_fn_c_try_link "$LINENO"; then :
12624 ac_cv_sys_largefile_source=no; break
12626 rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630 #define _LARGEFILE_SOURCE 1
12631 #include <sys/types.h> /* for off_t */
12632 #include <stdio.h>
12634 main ()
12636 int (*fp) (FILE *, off_t, int) = fseeko;
12637 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12639 return 0;
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 ac_cv_sys_largefile_source=1; break
12645 rm -f core conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647 ac_cv_sys_largefile_source=unknown
12648 break
12649 done
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12652 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12653 case $ac_cv_sys_largefile_source in #(
12654 no | unknown) ;;
12656 cat >>confdefs.h <<_ACEOF
12657 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12658 _ACEOF
12660 esac
12661 rm -rf conftest*
12663 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12664 # in glibc 2.1.3, but that breaks too many other things.
12665 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12666 if test $ac_cv_sys_largefile_source != unknown; then
12668 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12673 # Configure getopt.
12674 # getopt.m4 serial 10
12676 # The getopt module assume you want GNU getopt, with getopt_long etc,
12677 # rather than vanilla POSIX getopt. This means your your code should
12678 # always include <getopt.h> for the getopt prototypes.
12690 # Prerequisites of lib/getopt*.
12695 GETOPT_H=
12696 for ac_header in getopt.h
12697 do :
12698 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12699 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12700 cat >>confdefs.h <<_ACEOF
12701 #define HAVE_GETOPT_H 1
12702 _ACEOF
12704 else
12705 GETOPT_H=getopt.h
12708 done
12710 if test -z "$GETOPT_H"; then
12711 for ac_func in getopt_long_only
12712 do :
12713 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12714 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12715 cat >>confdefs.h <<_ACEOF
12716 #define HAVE_GETOPT_LONG_ONLY 1
12717 _ACEOF
12719 else
12720 GETOPT_H=getopt.h
12722 done
12726 if test -z "$GETOPT_H"; then
12727 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12729 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12730 GETOPT_H=getopt.h
12735 if test -z "$GETOPT_H"; then
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12737 $as_echo_n "checking for working GNU getopt function... " >&6; }
12738 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 if test "$cross_compiling" = yes; then :
12742 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12744 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12745 gl_cv_func_gnu_getopt=no
12746 else
12747 gl_cv_func_gnu_getopt=yes
12750 else
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 #include <getopt.h>
12755 main ()
12758 char *myargv[3];
12759 myargv[0] = "conftest";
12760 myargv[1] = "-+";
12761 myargv[2] = 0;
12762 return getopt (2, myargv, "+a") != '?';
12765 return 0;
12767 _ACEOF
12768 if ac_fn_c_try_run "$LINENO"; then :
12769 gl_cv_func_gnu_getopt=yes
12770 else
12771 gl_cv_func_gnu_getopt=no
12773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12774 conftest.$ac_objext conftest.beam conftest.$ac_ext
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12779 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12780 if test "$gl_cv_func_gnu_getopt" = "no"; then
12781 GETOPT_H=getopt.h
12787 if test -n "$GETOPT_H"; then :
12790 GETOPT_H=getopt.h
12792 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12797 GETOPTOBJS='getopt.o getopt1.o'
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12804 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12805 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 # Use it with a single arg.
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 $ac_includes_default
12813 main ()
12815 getpgrp (0);
12817 return 0;
12819 _ACEOF
12820 if ac_fn_c_try_compile "$LINENO"; then :
12821 ac_cv_func_getpgrp_void=no
12822 else
12823 ac_cv_func_getpgrp_void=yes
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12829 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12830 if test $ac_cv_func_getpgrp_void = yes; then
12832 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12837 for ac_func in strftime
12838 do :
12839 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12840 if test "x$ac_cv_func_strftime" = x""yes; then :
12841 cat >>confdefs.h <<_ACEOF
12842 #define HAVE_STRFTIME 1
12843 _ACEOF
12845 else
12846 # strftime is in -lintl on SCO UNIX.
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12848 $as_echo_n "checking for strftime in -lintl... " >&6; }
12849 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 ac_check_lib_save_LIBS=$LIBS
12853 LIBS="-lintl $LIBS"
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char strftime ();
12865 main ()
12867 return strftime ();
12869 return 0;
12871 _ACEOF
12872 if ac_fn_c_try_link "$LINENO"; then :
12873 ac_cv_lib_intl_strftime=yes
12874 else
12875 ac_cv_lib_intl_strftime=no
12877 rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12882 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12883 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12884 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12886 LIBS="-lintl $LIBS"
12890 done
12893 # UNIX98 PTYs.
12894 for ac_func in grantpt
12895 do :
12896 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12897 if test "x$ac_cv_func_grantpt" = x""yes; then :
12898 cat >>confdefs.h <<_ACEOF
12899 #define HAVE_GRANTPT 1
12900 _ACEOF
12903 done
12906 # PTY-related GNU extensions.
12907 for ac_func in getpt
12908 do :
12909 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12910 if test "x$ac_cv_func_getpt" = x""yes; then :
12911 cat >>confdefs.h <<_ACEOF
12912 #define HAVE_GETPT 1
12913 _ACEOF
12916 done
12919 # Check this now, so that we will NOT find the above functions in ncurses.
12920 # That is because we have not set up to link ncurses in lib-src.
12921 # It's better to believe a function is not available
12922 # than to expect to find it in ncurses.
12923 # Also we need tputs and friends to be able to build at all.
12924 have_tputs_et_al=true
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12926 $as_echo_n "checking for library containing tputs... " >&6; }
12927 if test "${ac_cv_search_tputs+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12929 else
12930 ac_func_search_save_LIBS=$LIBS
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12937 #ifdef __cplusplus
12938 extern "C"
12939 #endif
12940 char tputs ();
12942 main ()
12944 return tputs ();
12946 return 0;
12948 _ACEOF
12949 for ac_lib in '' ncurses terminfo termcap; do
12950 if test -z "$ac_lib"; then
12951 ac_res="none required"
12952 else
12953 ac_res=-l$ac_lib
12954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12956 if ac_fn_c_try_link "$LINENO"; then :
12957 ac_cv_search_tputs=$ac_res
12959 rm -f core conftest.err conftest.$ac_objext \
12960 conftest$ac_exeext
12961 if test "${ac_cv_search_tputs+set}" = set; then :
12962 break
12964 done
12965 if test "${ac_cv_search_tputs+set}" = set; then :
12967 else
12968 ac_cv_search_tputs=no
12970 rm conftest.$ac_ext
12971 LIBS=$ac_func_search_save_LIBS
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12974 $as_echo "$ac_cv_search_tputs" >&6; }
12975 ac_res=$ac_cv_search_tputs
12976 if test "$ac_res" != no; then :
12977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12979 else
12980 have_tputs_et_al=false
12983 if test "$have_tputs_et_al" != true; then
12984 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
12985 Maybe some development libraries/packages are missing? Try installing
12986 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12988 # Must define this when any termcap library is found.
12990 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12992 ## FIXME This was the cpp logic, but I am not sure it is right.
12993 ## The above test has not necessarily found libncurses.
12994 HAVE_LIBNCURSES=yes
12996 ## Use terminfo instead of termcap?
12997 ## Note only system files NOT using terminfo are:
12998 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12999 ## darwin|gnu without ncurses.
13000 TERMINFO=no
13001 LIBS_TERMCAP=
13002 case "$opsys" in
13003 ## cygwin: Fewer environment variables to go wrong, more terminal types.
13004 ## hpux10-20: Use the system provided termcap(3) library.
13005 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
13006 ## is necessary. Otherwise Emacs dumps core when run -nw.
13007 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
13009 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
13010 ## The ncurses library has been moved out of the System framework in
13011 ## Mac OS X 10.2. So if configure detects it, set the command-line
13012 ## option to use it.
13013 darwin|gnu*)
13014 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
13015 if test "x$HAVE_LIBNCURSES" = "xyes"; then
13016 TERMINFO=yes
13017 LIBS_TERMCAP="-lncurses"
13021 freebsd)
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
13023 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
13024 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 #include <osreldate.h>
13031 main ()
13033 #if __FreeBSD_version < 400000
13034 fail;
13035 #endif
13038 return 0;
13040 _ACEOF
13041 if ac_fn_c_try_link "$LINENO"; then :
13042 emacs_cv_freebsd_terminfo=yes
13043 else
13044 emacs_cv_freebsd_terminfo=no
13046 rm -f core conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
13052 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
13054 if test $emacs_cv_freebsd_terminfo = yes; then
13055 TERMINFO=yes
13056 LIBS_TERMCAP="-lncurses"
13057 else
13058 LIBS_TERMCAP="-ltermcap"
13062 netbsd)
13063 if test $ac_cv_search_tputs = -lterminfo; then
13064 TERMINFO=yes
13065 LIBS_TERMCAP="-lterminfo"
13066 else
13067 LIBS_TERMCAP="-ltermcap"
13071 esac
13073 case "$opsys" in
13074 ## hpux: Make sure we get select from libc rather than from libcurses
13075 ## because libcurses on HPUX 10.10 has a broken version of select.
13076 ## We used to use -lc -lcurses, but this may be cleaner.
13077 hpux*) LIBS_TERMCAP="-ltermcap" ;;
13079 openbsd) LIBS_TERMCAP="-lncurses" ;;
13081 ## Must use system termcap, if we use any termcap. It does special things.
13082 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
13083 esac
13085 TERMCAP_OBJ=tparam.o
13086 if test $TERMINFO = yes; then
13088 $as_echo "#define TERMINFO 1" >>confdefs.h
13091 ## Default used to be -ltermcap. Add a case above if need something else.
13092 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
13094 TERMCAP_OBJ=terminfo.o
13100 # Do we have res_init, for detecting changes in /etc/resolv.conf?
13101 resolv=no
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #include <netinet/in.h>
13105 #include <arpa/nameser.h>
13106 #include <resolv.h>
13108 main ()
13110 return res_init();
13112 return 0;
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 have_res_init=yes
13117 else
13118 have_res_init=no
13120 rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13122 if test "$have_res_init" = no; then
13123 OLIBS="$LIBS"
13124 LIBS="$LIBS -lresolv"
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
13126 $as_echo_n "checking for res_init with -lresolv... " >&6; }
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 #include <netinet/in.h>
13130 #include <arpa/nameser.h>
13131 #include <resolv.h>
13133 main ()
13135 return res_init();
13137 return 0;
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 have_res_init=yes
13142 else
13143 have_res_init=no
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
13148 $as_echo "$have_res_init" >&6; }
13149 if test "$have_res_init" = yes ; then
13150 resolv=yes
13152 LIBS="$OLIBS"
13155 if test "$have_res_init" = yes; then
13157 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
13161 # Do we need the Hesiod library to provide the support routines?
13162 LIBHESIOD=
13163 if test "$with_hesiod" != no ; then
13164 # Don't set $LIBS here -- see comments above. FIXME which comments?
13165 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
13166 if test "x$ac_cv_func_res_send" = x""yes; then :
13168 else
13169 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
13170 if test "x$ac_cv_func___res_send" = x""yes; then :
13172 else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
13174 $as_echo_n "checking for res_send in -lresolv... " >&6; }
13175 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 ac_check_lib_save_LIBS=$LIBS
13179 LIBS="-lresolv $LIBS"
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13186 #ifdef __cplusplus
13187 extern "C"
13188 #endif
13189 char res_send ();
13191 main ()
13193 return res_send ();
13195 return 0;
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199 ac_cv_lib_resolv_res_send=yes
13200 else
13201 ac_cv_lib_resolv_res_send=no
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
13208 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
13209 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
13210 resolv=yes
13211 else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
13213 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
13214 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-lresolv $LIBS"
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13222 /* Override any GCC internal prototype to avoid an error.
13223 Use char because int might match the return type of a GCC
13224 builtin and then its argument prototype would still apply. */
13225 #ifdef __cplusplus
13226 extern "C"
13227 #endif
13228 char __res_send ();
13230 main ()
13232 return __res_send ();
13234 return 0;
13236 _ACEOF
13237 if ac_fn_c_try_link "$LINENO"; then :
13238 ac_cv_lib_resolv___res_send=yes
13239 else
13240 ac_cv_lib_resolv___res_send=no
13242 rm -f core conftest.err conftest.$ac_objext \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
13247 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
13248 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
13249 resolv=yes
13258 if test "$resolv" = yes ; then
13259 RESOLVLIB=-lresolv
13260 else
13261 RESOLVLIB=
13263 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
13264 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
13266 else
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
13268 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
13269 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 ac_check_lib_save_LIBS=$LIBS
13273 LIBS="-lhesiod $RESOLVLIB $LIBS"
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13277 /* Override any GCC internal prototype to avoid an error.
13278 Use char because int might match the return type of a GCC
13279 builtin and then its argument prototype would still apply. */
13280 #ifdef __cplusplus
13281 extern "C"
13282 #endif
13283 char hes_getmailhost ();
13285 main ()
13287 return hes_getmailhost ();
13289 return 0;
13291 _ACEOF
13292 if ac_fn_c_try_link "$LINENO"; then :
13293 ac_cv_lib_hesiod_hes_getmailhost=yes
13294 else
13295 ac_cv_lib_hesiod_hes_getmailhost=no
13297 rm -f core conftest.err conftest.$ac_objext \
13298 conftest$ac_exeext conftest.$ac_ext
13299 LIBS=$ac_check_lib_save_LIBS
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13302 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
13303 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
13304 hesiod=yes
13305 else
13312 if test x"$hesiod" = xyes; then
13314 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
13316 LIBHESIOD=-lhesiod
13321 # Do we need libresolv (due to res_init or Hesiod)?
13322 if test "$resolv" = yes ; then
13324 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
13326 LIBRESOLV=-lresolv
13327 else
13328 LIBRESOLV=
13332 # These tell us which Kerberos-related libraries to use.
13333 COM_ERRLIB=
13334 CRYPTOLIB=
13335 KRB5LIB=
13336 DESLIB=
13337 KRB4LIB=
13339 if test "${with_kerberos}" != no; then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13341 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13342 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-lcom_err $LIBS"
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 char com_err ();
13358 main ()
13360 return com_err ();
13362 return 0;
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 ac_cv_lib_com_err_com_err=yes
13367 else
13368 ac_cv_lib_com_err_com_err=no
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 LIBS=$ac_check_lib_save_LIBS
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13375 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13376 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
13377 have_com_err=yes
13378 else
13379 have_com_err=no
13382 if test $have_com_err = yes; then
13383 COM_ERRLIB=-lcom_err
13384 LIBS="$COM_ERRLIB $LIBS"
13386 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13390 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
13391 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-lcrypto $LIBS"
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char mit_des_cbc_encrypt ();
13407 main ()
13409 return mit_des_cbc_encrypt ();
13411 return 0;
13413 _ACEOF
13414 if ac_fn_c_try_link "$LINENO"; then :
13415 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
13416 else
13417 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
13419 rm -f core conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13424 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
13425 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
13426 have_crypto=yes
13427 else
13428 have_crypto=no
13431 if test $have_crypto = yes; then
13432 CRYPTOLIB=-lcrypto
13433 LIBS="$CRYPTOLIB $LIBS"
13435 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13439 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
13440 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 ac_check_lib_save_LIBS=$LIBS
13444 LIBS="-lk5crypto $LIBS"
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13448 /* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13451 #ifdef __cplusplus
13452 extern "C"
13453 #endif
13454 char mit_des_cbc_encrypt ();
13456 main ()
13458 return mit_des_cbc_encrypt ();
13460 return 0;
13462 _ACEOF
13463 if ac_fn_c_try_link "$LINENO"; then :
13464 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
13465 else
13466 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
13468 rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13470 LIBS=$ac_check_lib_save_LIBS
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13473 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
13474 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
13475 have_k5crypto=yes
13476 else
13477 have_k5crypto=no
13480 if test $have_k5crypto = yes; then
13481 CRYPTOLIB=-lk5crypto
13482 LIBS="$CRYPTOLIB $LIBS"
13484 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13488 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13489 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 ac_check_lib_save_LIBS=$LIBS
13493 LIBS="-lkrb5 $LIBS"
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 char krb5_init_context ();
13505 main ()
13507 return krb5_init_context ();
13509 return 0;
13511 _ACEOF
13512 if ac_fn_c_try_link "$LINENO"; then :
13513 ac_cv_lib_krb5_krb5_init_context=yes
13514 else
13515 ac_cv_lib_krb5_krb5_init_context=no
13517 rm -f core conftest.err conftest.$ac_objext \
13518 conftest$ac_exeext conftest.$ac_ext
13519 LIBS=$ac_check_lib_save_LIBS
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13522 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13523 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
13524 have_krb5=yes
13525 else
13526 have_krb5=no
13529 if test $have_krb5=yes; then
13530 KRB5LIB=-lkrb5
13531 LIBS="$KRB5LIB $LIBS"
13533 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
13536 if test "${with_kerberos5}" = no; then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
13538 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
13539 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 ac_check_lib_save_LIBS=$LIBS
13543 LIBS="-ldes425 $LIBS"
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13547 /* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13550 #ifdef __cplusplus
13551 extern "C"
13552 #endif
13553 char des_cbc_encrypt ();
13555 main ()
13557 return des_cbc_encrypt ();
13559 return 0;
13561 _ACEOF
13562 if ac_fn_c_try_link "$LINENO"; then :
13563 ac_cv_lib_des425_des_cbc_encrypt=yes
13564 else
13565 ac_cv_lib_des425_des_cbc_encrypt=no
13567 rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 LIBS=$ac_check_lib_save_LIBS
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13572 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
13573 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
13574 have_des425=yes
13575 else
13576 have_des425=no
13579 if test $have_des425 = yes; then
13580 DESLIB=-ldes425
13581 LIBS="$DESLIB $LIBS"
13583 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
13585 else
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13587 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13588 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 ac_check_lib_save_LIBS=$LIBS
13592 LIBS="-ldes $LIBS"
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13596 /* Override any GCC internal prototype to avoid an error.
13597 Use char because int might match the return type of a GCC
13598 builtin and then its argument prototype would still apply. */
13599 #ifdef __cplusplus
13600 extern "C"
13601 #endif
13602 char des_cbc_encrypt ();
13604 main ()
13606 return des_cbc_encrypt ();
13608 return 0;
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 ac_cv_lib_des_des_cbc_encrypt=yes
13613 else
13614 ac_cv_lib_des_des_cbc_encrypt=no
13616 rm -f core conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 LIBS=$ac_check_lib_save_LIBS
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13621 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13622 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13623 have_des=yes
13624 else
13625 have_des=no
13628 if test $have_des = yes; then
13629 DESLIB=-ldes
13630 LIBS="$DESLIB $LIBS"
13632 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13637 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13638 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-lkrb4 $LIBS"
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char krb_get_cred ();
13654 main ()
13656 return krb_get_cred ();
13658 return 0;
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662 ac_cv_lib_krb4_krb_get_cred=yes
13663 else
13664 ac_cv_lib_krb4_krb_get_cred=no
13666 rm -f core conftest.err conftest.$ac_objext \
13667 conftest$ac_exeext conftest.$ac_ext
13668 LIBS=$ac_check_lib_save_LIBS
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13671 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13672 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13673 have_krb4=yes
13674 else
13675 have_krb4=no
13678 if test $have_krb4 = yes; then
13679 KRB4LIB=-lkrb4
13680 LIBS="$KRB4LIB $LIBS"
13682 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13684 else
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13686 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13687 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 ac_check_lib_save_LIBS=$LIBS
13691 LIBS="-lkrb $LIBS"
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13695 /* Override any GCC internal prototype to avoid an error.
13696 Use char because int might match the return type of a GCC
13697 builtin and then its argument prototype would still apply. */
13698 #ifdef __cplusplus
13699 extern "C"
13700 #endif
13701 char krb_get_cred ();
13703 main ()
13705 return krb_get_cred ();
13707 return 0;
13709 _ACEOF
13710 if ac_fn_c_try_link "$LINENO"; then :
13711 ac_cv_lib_krb_krb_get_cred=yes
13712 else
13713 ac_cv_lib_krb_krb_get_cred=no
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13720 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13721 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13722 have_krb=yes
13723 else
13724 have_krb=no
13727 if test $have_krb = yes; then
13728 KRB4LIB=-lkrb
13729 LIBS="$KRB4LIB $LIBS"
13731 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13737 if test "${with_kerberos5}" != no; then
13738 for ac_header in krb5.h
13739 do :
13740 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13741 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13742 cat >>confdefs.h <<_ACEOF
13743 #define HAVE_KRB5_H 1
13744 _ACEOF
13745 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13747 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13749 cat >>confdefs.h <<_ACEOF
13750 #define HAVE_KRB5_ERROR_TEXT 1
13751 _ACEOF
13755 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13757 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13759 cat >>confdefs.h <<_ACEOF
13760 #define HAVE_KRB5_ERROR_E_TEXT 1
13761 _ACEOF
13768 done
13770 else
13771 for ac_header in des.h
13772 do :
13773 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13774 if test "x$ac_cv_header_des_h" = x""yes; then :
13775 cat >>confdefs.h <<_ACEOF
13776 #define HAVE_DES_H 1
13777 _ACEOF
13779 else
13780 for ac_header in kerberosIV/des.h
13781 do :
13782 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13783 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13784 cat >>confdefs.h <<_ACEOF
13785 #define HAVE_KERBEROSIV_DES_H 1
13786 _ACEOF
13788 else
13789 for ac_header in kerberos/des.h
13790 do :
13791 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13792 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13793 cat >>confdefs.h <<_ACEOF
13794 #define HAVE_KERBEROS_DES_H 1
13795 _ACEOF
13799 done
13803 done
13807 done
13809 for ac_header in krb.h
13810 do :
13811 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13812 if test "x$ac_cv_header_krb_h" = x""yes; then :
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_KRB_H 1
13815 _ACEOF
13817 else
13818 for ac_header in kerberosIV/krb.h
13819 do :
13820 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_KERBEROSIV_KRB_H 1
13824 _ACEOF
13826 else
13827 for ac_header in kerberos/krb.h
13828 do :
13829 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13830 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_KERBEROS_KRB_H 1
13833 _ACEOF
13837 done
13841 done
13845 done
13848 for ac_header in com_err.h
13849 do :
13850 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13851 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13852 cat >>confdefs.h <<_ACEOF
13853 #define HAVE_COM_ERR_H 1
13854 _ACEOF
13858 done
13868 # Solaris requires -lintl if you want strerror (which calls dgettext)
13869 # to return localized messages.
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13871 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13872 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 ac_check_lib_save_LIBS=$LIBS
13876 LIBS="-lintl $LIBS"
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13883 #ifdef __cplusplus
13884 extern "C"
13885 #endif
13886 char dgettext ();
13888 main ()
13890 return dgettext ();
13892 return 0;
13894 _ACEOF
13895 if ac_fn_c_try_link "$LINENO"; then :
13896 ac_cv_lib_intl_dgettext=yes
13897 else
13898 ac_cv_lib_intl_dgettext=no
13900 rm -f core conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13905 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13906 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13907 cat >>confdefs.h <<_ACEOF
13908 #define HAVE_LIBINTL 1
13909 _ACEOF
13911 LIBS="-lintl $LIBS"
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13917 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13918 if test "${emacs_cv_localtime_cache+set}" = set; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if test x$ac_cv_func_tzset = xyes; then
13922 if test "$cross_compiling" = yes; then :
13923 # If we have tzset, assume the worst when cross-compiling.
13924 emacs_cv_localtime_cache=yes
13925 else
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928 #include <time.h>
13929 char TZ_GMT0[] = "TZ=GMT0";
13930 char TZ_PST8[] = "TZ=PST8";
13931 main()
13933 time_t now = time ((time_t *) 0);
13934 int hour_GMT0, hour_unset;
13935 if (putenv (TZ_GMT0) != 0)
13936 exit (1);
13937 hour_GMT0 = localtime (&now)->tm_hour;
13938 unsetenv("TZ");
13939 hour_unset = localtime (&now)->tm_hour;
13940 if (putenv (TZ_PST8) != 0)
13941 exit (1);
13942 if (localtime (&now)->tm_hour == hour_GMT0)
13943 exit (1);
13944 unsetenv("TZ");
13945 if (localtime (&now)->tm_hour != hour_unset)
13946 exit (1);
13947 exit (0);
13949 _ACEOF
13950 if ac_fn_c_try_run "$LINENO"; then :
13951 emacs_cv_localtime_cache=no
13952 else
13953 emacs_cv_localtime_cache=yes
13955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13956 conftest.$ac_objext conftest.beam conftest.$ac_ext
13959 else
13960 # If we lack tzset, report that localtime does not cache TZ,
13961 # since we can't invalidate the cache if we don't have tzset.
13962 emacs_cv_localtime_cache=no
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13966 $as_echo "$emacs_cv_localtime_cache" >&6; }
13967 if test $emacs_cv_localtime_cache = yes; then
13969 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13973 if test "x$HAVE_TIMEVAL" = xyes; then
13974 for ac_func in gettimeofday
13975 do :
13976 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13977 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13978 cat >>confdefs.h <<_ACEOF
13979 #define HAVE_GETTIMEOFDAY 1
13980 _ACEOF
13983 done
13985 if test $ac_cv_func_gettimeofday = yes; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13987 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13988 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13989 $as_echo_n "(cached) " >&6
13990 else
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13994 #ifdef TIME_WITH_SYS_TIME
13995 #include <sys/time.h>
13996 #include <time.h>
13997 #else
13998 #ifdef HAVE_SYS_TIME_H
13999 #include <sys/time.h>
14000 #else
14001 #include <time.h>
14002 #endif
14003 #endif
14005 main ()
14007 struct timeval time;
14008 gettimeofday (&time, 0);
14010 return 0;
14012 _ACEOF
14013 if ac_fn_c_try_compile "$LINENO"; then :
14014 emacs_cv_gettimeofday_two_arguments=yes
14015 else
14016 emacs_cv_gettimeofday_two_arguments=no
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
14021 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
14022 if test $emacs_cv_gettimeofday_two_arguments = no; then
14024 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
14030 ok_so_far=yes
14031 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14032 if test "x$ac_cv_func_socket" = x""yes; then :
14034 else
14035 ok_so_far=no
14038 if test $ok_so_far = yes; then
14039 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
14040 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
14042 else
14043 ok_so_far=no
14048 if test $ok_so_far = yes; then
14049 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
14050 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
14052 else
14053 ok_so_far=no
14058 if test $ok_so_far = yes; then
14060 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
14064 if test -f /usr/lpp/X11/bin/smt.exp; then
14066 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
14071 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
14072 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14076 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
14078 else
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14083 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14084 if test "x$ac_cv_type_pid_t" = x""yes; then :
14086 else
14088 cat >>confdefs.h <<_ACEOF
14089 #define pid_t int
14090 _ACEOF
14094 for ac_header in vfork.h
14095 do :
14096 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14097 if test "x$ac_cv_header_vfork_h" = x""yes; then :
14098 cat >>confdefs.h <<_ACEOF
14099 #define HAVE_VFORK_H 1
14100 _ACEOF
14104 done
14106 for ac_func in fork vfork
14107 do :
14108 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14109 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14110 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14111 cat >>confdefs.h <<_ACEOF
14112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14113 _ACEOF
14116 done
14118 if test "x$ac_cv_func_fork" = xyes; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14120 $as_echo_n "checking for working fork... " >&6; }
14121 if test "${ac_cv_func_fork_works+set}" = set; then :
14122 $as_echo_n "(cached) " >&6
14123 else
14124 if test "$cross_compiling" = yes; then :
14125 ac_cv_func_fork_works=cross
14126 else
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14129 $ac_includes_default
14131 main ()
14134 /* By Ruediger Kuhlmann. */
14135 return fork () < 0;
14138 return 0;
14140 _ACEOF
14141 if ac_fn_c_try_run "$LINENO"; then :
14142 ac_cv_func_fork_works=yes
14143 else
14144 ac_cv_func_fork_works=no
14146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14147 conftest.$ac_objext conftest.beam conftest.$ac_ext
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14152 $as_echo "$ac_cv_func_fork_works" >&6; }
14154 else
14155 ac_cv_func_fork_works=$ac_cv_func_fork
14157 if test "x$ac_cv_func_fork_works" = xcross; then
14158 case $host in
14159 *-*-amigaos* | *-*-msdosdjgpp*)
14160 # Override, as these systems have only a dummy fork() stub
14161 ac_cv_func_fork_works=no
14164 ac_cv_func_fork_works=yes
14166 esac
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14168 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14170 ac_cv_func_vfork_works=$ac_cv_func_vfork
14171 if test "x$ac_cv_func_vfork" = xyes; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14173 $as_echo_n "checking for working vfork... " >&6; }
14174 if test "${ac_cv_func_vfork_works+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 if test "$cross_compiling" = yes; then :
14178 ac_cv_func_vfork_works=cross
14179 else
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 /* Thanks to Paul Eggert for this test. */
14183 $ac_includes_default
14184 #include <sys/wait.h>
14185 #ifdef HAVE_VFORK_H
14186 # include <vfork.h>
14187 #endif
14188 /* On some sparc systems, changes by the child to local and incoming
14189 argument registers are propagated back to the parent. The compiler
14190 is told about this with #include <vfork.h>, but some compilers
14191 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14192 static variable whose address is put into a register that is
14193 clobbered by the vfork. */
14194 static void
14195 #ifdef __cplusplus
14196 sparc_address_test (int arg)
14197 # else
14198 sparc_address_test (arg) int arg;
14199 #endif
14201 static pid_t child;
14202 if (!child) {
14203 child = vfork ();
14204 if (child < 0) {
14205 perror ("vfork");
14206 _exit(2);
14208 if (!child) {
14209 arg = getpid();
14210 write(-1, "", 0);
14211 _exit (arg);
14217 main ()
14219 pid_t parent = getpid ();
14220 pid_t child;
14222 sparc_address_test (0);
14224 child = vfork ();
14226 if (child == 0) {
14227 /* Here is another test for sparc vfork register problems. This
14228 test uses lots of local variables, at least as many local
14229 variables as main has allocated so far including compiler
14230 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14231 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14232 reuse the register of parent for one of the local variables,
14233 since it will think that parent can't possibly be used any more
14234 in this routine. Assigning to the local variable will thus
14235 munge parent in the parent process. */
14236 pid_t
14237 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14238 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14239 /* Convince the compiler that p..p7 are live; otherwise, it might
14240 use the same hardware register for all 8 local variables. */
14241 if (p != p1 || p != p2 || p != p3 || p != p4
14242 || p != p5 || p != p6 || p != p7)
14243 _exit(1);
14245 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14246 from child file descriptors. If the child closes a descriptor
14247 before it execs or exits, this munges the parent's descriptor
14248 as well. Test for this by closing stdout in the child. */
14249 _exit(close(fileno(stdout)) != 0);
14250 } else {
14251 int status;
14252 struct stat st;
14254 while (wait(&status) != child)
14256 return (
14257 /* Was there some problem with vforking? */
14258 child < 0
14260 /* Did the child fail? (This shouldn't happen.) */
14261 || status
14263 /* Did the vfork/compiler bug occur? */
14264 || parent != getpid()
14266 /* Did the file descriptor bug occur? */
14267 || fstat(fileno(stdout), &st) != 0
14271 _ACEOF
14272 if ac_fn_c_try_run "$LINENO"; then :
14273 ac_cv_func_vfork_works=yes
14274 else
14275 ac_cv_func_vfork_works=no
14277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14278 conftest.$ac_objext conftest.beam conftest.$ac_ext
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14283 $as_echo "$ac_cv_func_vfork_works" >&6; }
14286 if test "x$ac_cv_func_fork_works" = xcross; then
14287 ac_cv_func_vfork_works=$ac_cv_func_vfork
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14289 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14292 if test "x$ac_cv_func_vfork_works" = xyes; then
14294 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14296 else
14298 $as_echo "#define vfork fork" >>confdefs.h
14301 if test "x$ac_cv_func_fork_works" = xyes; then
14303 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14309 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14310 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 #include <langinfo.h>
14317 main ()
14319 char* cs = nl_langinfo(CODESET);
14321 return 0;
14323 _ACEOF
14324 if ac_fn_c_try_link "$LINENO"; then :
14325 emacs_cv_langinfo_codeset=yes
14326 else
14327 emacs_cv_langinfo_codeset=no
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
14334 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
14335 if test $emacs_cv_langinfo_codeset = yes; then
14337 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14341 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14342 if test "x$ac_cv_type_size_t" = x""yes; then :
14344 cat >>confdefs.h <<_ACEOF
14345 #define HAVE_SIZE_T 1
14346 _ACEOF
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14353 $as_echo_n "checking for mbstate_t... " >&6; }
14354 if test "${ac_cv_type_mbstate_t+set}" = set; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359 $ac_includes_default
14360 # include <wchar.h>
14362 main ()
14364 mbstate_t x; return sizeof x;
14366 return 0;
14368 _ACEOF
14369 if ac_fn_c_try_compile "$LINENO"; then :
14370 ac_cv_type_mbstate_t=yes
14371 else
14372 ac_cv_type_mbstate_t=no
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14377 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14378 if test $ac_cv_type_mbstate_t = yes; then
14380 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
14382 else
14384 $as_echo "#define mbstate_t int" >>confdefs.h
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
14389 $as_echo_n "checking for C restrict keyword... " >&6; }
14390 if test "${emacs_cv_c_restrict+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395 void fred (int *restrict x);
14397 main ()
14401 return 0;
14403 _ACEOF
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405 emacs_cv_c_restrict=yes
14406 else
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 void fred (int *__restrict x);
14411 main ()
14415 return 0;
14417 _ACEOF
14418 if ac_fn_c_try_compile "$LINENO"; then :
14419 emacs_cv_c_restrict=__restrict
14420 else
14421 emacs_cv_c_restrict=no
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
14428 $as_echo "$emacs_cv_c_restrict" >&6; }
14429 case "$emacs_cv_c_restrict" in
14430 yes) emacs_restrict=restrict;;
14431 no) emacs_restrict="";;
14432 *) emacs_restrict="$emacs_cv_c_restrict";;
14433 esac
14434 if test "$emacs_restrict" != __restrict; then
14436 cat >>confdefs.h <<_ACEOF
14437 #define __restrict $emacs_restrict
14438 _ACEOF
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
14443 $as_echo_n "checking for C restricted array declarations... " >&6; }
14444 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 void fred (int x[__restrict]);
14451 main ()
14455 return 0;
14457 _ACEOF
14458 if ac_fn_c_try_compile "$LINENO"; then :
14459 emacs_cv_c_restrict_arr=yes
14460 else
14461 emacs_cv_c_restrict_arr=no
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
14466 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
14467 if test "$emacs_cv_c_restrict_arr" = yes; then
14469 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
14475 # Set up the CFLAGS for real compilation, so we can substitute it.
14476 CFLAGS="$REAL_CFLAGS"
14477 CPPFLAGS="$REAL_CPPFLAGS"
14479 ## Hack to detect a buggy GCC version.
14480 if test "x$GCC" = xyes \
14481 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
14482 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
14483 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
14484 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
14487 #### Find out which version of Emacs this is.
14488 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
14489 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
14490 if test x"${version}" = x; then
14491 as_fn_error $? "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
14493 if test x"${version}" != x"$PACKAGE_VERSION"; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
14495 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
14498 ### Specify what sort of things we'll be editing into Makefile and config.h.
14499 ### Use configuration here uncanonicalized to avoid exceeding size limits.
14502 ## Unused?
14523 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
14524 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
14525 ## end of LIBX_BASE, but nothing ever set it.
14530 ## Used in lwlib/Makefile.in.
14532 if test -n "${machfile}"; then
14533 M_FILE="\$(srcdir)/${machfile}"
14534 else
14535 M_FILE=
14537 S_FILE="\$(srcdir)/${opsysfile}"
14549 cat >>confdefs.h <<_ACEOF
14550 #define EMACS_CONFIGURATION "${canonical}"
14551 _ACEOF
14554 cat >>confdefs.h <<_ACEOF
14555 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
14556 _ACEOF
14558 if test -n "$machfile"; then
14560 cat >>confdefs.h <<_ACEOF
14561 #define config_machfile "${machfile}"
14562 _ACEOF
14566 cat >>confdefs.h <<_ACEOF
14567 #define config_opsysfile "${opsysfile}"
14568 _ACEOF
14571 XMENU_OBJ=
14572 XOBJ=
14573 FONT_OBJ=
14574 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14576 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14578 XMENU_OBJ=xmenu.o
14579 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14580 FONT_OBJ=xfont.o
14581 if test "$HAVE_XFT" = "yes"; then
14582 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14583 elif test "$HAVE_FREETYPE" = "yes"; then
14584 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14592 WIDGET_OBJ=
14593 MOTIF_LIBW=
14594 if test "${USE_X_TOOLKIT}" != "none" ; then
14595 WIDGET_OBJ=widget.o
14597 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14599 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14601 $as_echo "#define USE_LUCID 1" >>confdefs.h
14603 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14605 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14607 MOTIF_LIBW=-lXm
14608 case "$opsys" in
14609 gnu-linux)
14610 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14611 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14614 unixware)
14615 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14616 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14617 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14620 aix4-2)
14621 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14622 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14624 esac
14625 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14630 TOOLKIT_LIBW=
14631 case "$USE_X_TOOLKIT" in
14632 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14633 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14634 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14635 esac
14638 if test "$USE_X_TOOLKIT" = "none"; then
14639 LIBXT_OTHER="\$(LIBXSM)"
14640 OLDXMENU_TARGET="really-oldXMenu"
14641 else
14642 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14643 OLDXMENU_TARGET="really-lwlib"
14647 ## The X Menu stuff is present in the X10 distribution, but missing
14648 ## from X11. If we have X10, just use the installed library;
14649 ## otherwise, use our own copy.
14650 if test "${HAVE_X11}" = "yes" ; then
14652 $as_echo "#define HAVE_X11 1" >>confdefs.h
14655 if test "$USE_X_TOOLKIT" = "none"; then
14656 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
14657 else
14658 OLDXMENU="\${lwlibdir}/liblw.a"
14660 LIBXMENU="\$(OLDXMENU)"
14661 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14662 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14663 else
14664 ## For a syntactically valid Makefile; not actually used for anything.
14665 ## See comments in src/Makefile.in.
14666 OLDXMENU=nothing
14667 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14668 if test "${HAVE_X_WINDOWS}" = "yes"; then
14669 LIBXMENU="-lXMenu"
14670 else
14671 LIBXMENU=
14673 LIBX_OTHER=
14674 OLDXMENU_DEPS=
14677 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14678 OLDXMENU_TARGET=
14679 OLDXMENU=nothing
14680 LIBXMENU=
14681 OLDXMENU_DEPS=
14690 if test "${HAVE_MENUS}" = "yes" ; then
14692 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14696 if test "${GNU_MALLOC}" = "yes" ; then
14698 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14702 RALLOC_OBJ=
14703 if test "${REL_ALLOC}" = "yes" ; then
14705 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14708 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14712 if test "$opsys" = "cygwin"; then
14713 CYGWIN_OBJ="sheap.o"
14714 ## Cygwin differs because of its unexec().
14715 PRE_ALLOC_OBJ=
14716 POST_ALLOC_OBJ=lastfile.o
14717 else
14718 CYGWIN_OBJ=
14719 PRE_ALLOC_OBJ=lastfile.o
14720 POST_ALLOC_OBJ=
14727 case "$opsys" in
14728 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14730 darwin)
14731 ## The -headerpad option tells ld (see man page) to leave room at the
14732 ## end of the header for adding load commands. Needed for dumping.
14733 ## 0x690 is the total size of 30 segment load commands (at 56
14734 ## each); under Cocoa 31 commands are required.
14735 if test "$HAVE_NS" = "yes"; then
14736 libs_nsgui="-framework AppKit"
14737 headerpad_extra=6C8
14738 else
14739 libs_nsgui=
14740 headerpad_extra=690
14742 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14744 ## This is here because src/Makefile.in did some extra fiddling around
14745 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14746 ## #ifndef LD_SWITCH_SYSTEM
14747 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14748 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14749 ## not using gcc, darwin system not on an alpha (ie darwin, since
14750 ## darwin + alpha does not occur).
14751 ## Because this was done in src/Makefile.in, the resulting part of
14752 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14753 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14754 ## rather than LD_SWITCH_SYSTEM.
14755 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14756 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14759 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14760 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14761 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14762 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14763 ## had different values in configure (in ac_link) and src/Makefile.in.
14764 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14765 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14767 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14768 esac
14770 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14771 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14777 LD_FIRSTFLAG=
14778 ORDINARY_LINK=
14779 case "$opsys" in
14780 ## gnu: GNU needs its own crt0.
14781 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14783 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14784 ## library search parth, i.e. it won't search /usr/lib for libc and
14785 ## friends. Using -nostartfiles instead avoids this problem, and
14786 ## will also work on earlier NetBSD releases.
14787 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
14789 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14790 ## MkLinux/LinuxPPC needs this.
14791 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14792 gnu-*)
14793 case "$machine" in
14794 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
14795 esac
14797 esac
14800 if test "x$ORDINARY_LINK" = "xyes"; then
14802 LD_FIRSTFLAG=""
14804 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14807 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
14808 ## freebsd, gnu-* not on macppc|ibms390x.
14809 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
14811 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14812 ## places that are difficult to figure out at make time. Fortunately,
14813 ## these same versions allow you to pass arbitrary flags on to the
14814 ## linker, so there is no reason not to use it as a linker.
14816 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14817 ## searching for libraries in its internal directories, so we have to
14818 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14819 LD_FIRSTFLAG="-nostdlib"
14822 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14823 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
14828 ## FIXME? The logic here is not precisely the same as that above.
14829 ## There is no check here for a pre-defined LD_FIRSTFLAG.
14830 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14831 LIB_GCC=
14832 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14834 case "$opsys" in
14835 freebsd|netbsd|openbsd) LIB_GCC= ;;
14837 gnu-*)
14838 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14839 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14840 case $host_cpu in
14841 arm*)
14842 LIB_GCC="-lgcc_s"
14845 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14846 ## immediately undefine it again and redefine it to empty.
14847 ## Was the C_SWITCH_X_SITE part really necessary?
14848 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14849 LIB_GCC=
14851 esac
14854 ## Ask GCC where to find libgcc.a.
14855 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14856 esac
14860 TOOLTIP_SUPPORT=
14861 WINDOW_SUPPORT=
14862 ## If we're using X11/GNUstep, define some consequences.
14863 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14865 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14868 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14870 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14871 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
14873 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14874 test "$HAVE_X_WINDOWS" = "yes" && \
14875 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14885 #### Report on what we decided to do.
14886 #### Report GTK as a toolkit, even if it doesn't use Xt.
14887 #### It makes printing result more understandable as using GTK sets
14888 #### toolkit_scroll_bars to yes by default.
14889 if test "${HAVE_GTK}" = "yes"; then
14890 USE_X_TOOLKIT=GTK
14893 echo "
14894 Configured for \`${canonical}'.
14896 Where should the build process find the source code? ${srcdir}
14897 What operating system and machine description files should Emacs use?
14898 \`${opsysfile}' and \`${machfile:+${machfile}}${machfile:-none}'
14899 What compiler should emacs be built with? ${CC} ${CFLAGS}
14900 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14901 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14902 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14903 What window system should Emacs use? ${window_system}
14904 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14906 if test -n "${x_includes}"; then
14907 echo " Where do we find X Windows header files? ${x_includes}"
14908 else
14909 echo " Where do we find X Windows header files? Standard dirs"
14911 if test -n "${x_libraries}"; then
14912 echo " Where do we find X Windows libraries? ${x_libraries}"
14913 else
14914 echo " Where do we find X Windows libraries? Standard dirs"
14917 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14918 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14919 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14920 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14921 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14922 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14923 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14924 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14926 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14927 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14928 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14929 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14930 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
14931 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
14933 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14934 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14935 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14936 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14938 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14939 echo
14941 if test $USE_XASSERTS = yes; then
14942 echo " Compiling with asserts turned on."
14943 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14946 echo
14948 if test "$HAVE_NS" = "yes"; then
14949 echo
14950 echo "You must run \"make install\" in order to test the built application.
14951 The installed application will go to nextstep/Emacs.app and can be
14952 run or moved from there."
14953 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14954 echo "The application will be fully self-contained."
14955 else
14956 echo "The lisp resources for the application will be installed under ${prefix}.
14957 You may need to run \"make install\" with sudo. The application will fail
14958 to run if these resources are not installed."
14960 echo
14964 # Remove any trailing slashes in these variables.
14965 test "${prefix}" != NONE &&
14966 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14967 test "${exec_prefix}" != NONE &&
14968 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14970 ac_config_files="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile"
14972 ac_config_commands="$ac_config_commands default"
14974 cat >confcache <<\_ACEOF
14975 # This file is a shell script that caches the results of configure
14976 # tests run on this system so they can be shared between configure
14977 # scripts and configure runs, see configure's option --config-cache.
14978 # It is not useful on other systems. If it contains results you don't
14979 # want to keep, you may remove or edit it.
14981 # config.status only pays attention to the cache file if you give it
14982 # the --recheck option to rerun configure.
14984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14986 # following values.
14988 _ACEOF
14990 # The following way of writing the cache mishandles newlines in values,
14991 # but we know of no workaround that is simple, portable, and efficient.
14992 # So, we kill variables containing newlines.
14993 # Ultrix sh set writes to stderr and can't be redirected directly,
14994 # and sets the high bit in the cache file unless we assign to the vars.
14996 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14997 eval ac_val=\$$ac_var
14998 case $ac_val in #(
14999 *${as_nl}*)
15000 case $ac_var in #(
15001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15003 esac
15004 case $ac_var in #(
15005 _ | IFS | as_nl) ;; #(
15006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15007 *) { eval $ac_var=; unset $ac_var;} ;;
15008 esac ;;
15009 esac
15010 done
15012 (set) 2>&1 |
15013 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15014 *${as_nl}ac_space=\ *)
15015 # `set' does not quote correctly, so add quotes: double-quote
15016 # substitution turns \\\\ into \\, and sed turns \\ into \.
15017 sed -n \
15018 "s/'/'\\\\''/g;
15019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15020 ;; #(
15022 # `set' quotes correctly as required by POSIX, so do not add quotes.
15023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15025 esac |
15026 sort
15028 sed '
15029 /^ac_cv_env_/b end
15030 t clear
15031 :clear
15032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15033 t end
15034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15035 :end' >>confcache
15036 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15037 if test -w "$cache_file"; then
15038 test "x$cache_file" != "x/dev/null" &&
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15040 $as_echo "$as_me: updating cache $cache_file" >&6;}
15041 cat confcache >$cache_file
15042 else
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15044 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15047 rm -f confcache
15049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15050 # Let make expand exec_prefix.
15051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15053 DEFS=-DHAVE_CONFIG_H
15055 ac_libobjs=
15056 ac_ltlibobjs=
15058 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15059 # 1. Remove the extension, and $U if already installed.
15060 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15061 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15062 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15063 # will be set to the directory where LIBOBJS objects are built.
15064 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15065 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15066 done
15067 LIBOBJS=$ac_libobjs
15069 LTLIBOBJS=$ac_ltlibobjs
15074 : ${CONFIG_STATUS=./config.status}
15075 ac_write_fail=0
15076 ac_clean_files_save=$ac_clean_files
15077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15079 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15080 as_write_fail=0
15081 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15082 #! $SHELL
15083 # Generated by $as_me.
15084 # Run this file to recreate the current configuration.
15085 # Compiler output produced by configure, useful for debugging
15086 # configure, is in config.log if it exists.
15088 debug=false
15089 ac_cs_recheck=false
15090 ac_cs_silent=false
15092 SHELL=\${CONFIG_SHELL-$SHELL}
15093 export SHELL
15094 _ASEOF
15095 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15096 ## -------------------- ##
15097 ## M4sh Initialization. ##
15098 ## -------------------- ##
15100 # Be more Bourne compatible
15101 DUALCASE=1; export DUALCASE # for MKS sh
15102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15103 emulate sh
15104 NULLCMD=:
15105 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15106 # is contrary to our usage. Disable this feature.
15107 alias -g '${1+"$@"}'='"$@"'
15108 setopt NO_GLOB_SUBST
15109 else
15110 case `(set -o) 2>/dev/null` in #(
15111 *posix*) :
15112 set -o posix ;; #(
15113 *) :
15115 esac
15119 as_nl='
15121 export as_nl
15122 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15123 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15124 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15125 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15126 # Prefer a ksh shell builtin over an external printf program on Solaris,
15127 # but without wasting forks for bash or zsh.
15128 if test -z "$BASH_VERSION$ZSH_VERSION" \
15129 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15130 as_echo='print -r --'
15131 as_echo_n='print -rn --'
15132 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15133 as_echo='printf %s\n'
15134 as_echo_n='printf %s'
15135 else
15136 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15137 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15138 as_echo_n='/usr/ucb/echo -n'
15139 else
15140 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15141 as_echo_n_body='eval
15142 arg=$1;
15143 case $arg in #(
15144 *"$as_nl"*)
15145 expr "X$arg" : "X\\(.*\\)$as_nl";
15146 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15147 esac;
15148 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15150 export as_echo_n_body
15151 as_echo_n='sh -c $as_echo_n_body as_echo'
15153 export as_echo_body
15154 as_echo='sh -c $as_echo_body as_echo'
15157 # The user is always right.
15158 if test "${PATH_SEPARATOR+set}" != set; then
15159 PATH_SEPARATOR=:
15160 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15161 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15162 PATH_SEPARATOR=';'
15167 # IFS
15168 # We need space, tab and new line, in precisely that order. Quoting is
15169 # there to prevent editors from complaining about space-tab.
15170 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15171 # splitting by setting IFS to empty value.)
15172 IFS=" "" $as_nl"
15174 # Find who we are. Look in the path if we contain no directory separator.
15175 case $0 in #((
15176 *[\\/]* ) as_myself=$0 ;;
15177 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15178 for as_dir in $PATH
15180 IFS=$as_save_IFS
15181 test -z "$as_dir" && as_dir=.
15182 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15183 done
15184 IFS=$as_save_IFS
15187 esac
15188 # We did not find ourselves, most probably we were run as `sh COMMAND'
15189 # in which case we are not to be found in the path.
15190 if test "x$as_myself" = x; then
15191 as_myself=$0
15193 if test ! -f "$as_myself"; then
15194 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15195 exit 1
15198 # Unset variables that we do not need and which cause bugs (e.g. in
15199 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15200 # suppresses any "Segmentation fault" message there. '((' could
15201 # trigger a bug in pdksh 5.2.14.
15202 for as_var in BASH_ENV ENV MAIL MAILPATH
15203 do eval test x\${$as_var+set} = xset \
15204 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15205 done
15206 PS1='$ '
15207 PS2='> '
15208 PS4='+ '
15210 # NLS nuisances.
15211 LC_ALL=C
15212 export LC_ALL
15213 LANGUAGE=C
15214 export LANGUAGE
15216 # CDPATH.
15217 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15220 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15221 # ----------------------------------------
15222 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15223 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15224 # script with STATUS, using 1 if that was 0.
15225 as_fn_error ()
15227 as_status=$1; test $as_status -eq 0 && as_status=1
15228 if test "$4"; then
15229 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15230 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15232 $as_echo "$as_me: error: $2" >&2
15233 as_fn_exit $as_status
15234 } # as_fn_error
15237 # as_fn_set_status STATUS
15238 # -----------------------
15239 # Set $? to STATUS, without forking.
15240 as_fn_set_status ()
15242 return $1
15243 } # as_fn_set_status
15245 # as_fn_exit STATUS
15246 # -----------------
15247 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15248 as_fn_exit ()
15250 set +e
15251 as_fn_set_status $1
15252 exit $1
15253 } # as_fn_exit
15255 # as_fn_unset VAR
15256 # ---------------
15257 # Portably unset VAR.
15258 as_fn_unset ()
15260 { eval $1=; unset $1;}
15262 as_unset=as_fn_unset
15263 # as_fn_append VAR VALUE
15264 # ----------------------
15265 # Append the text in VALUE to the end of the definition contained in VAR. Take
15266 # advantage of any shell optimizations that allow amortized linear growth over
15267 # repeated appends, instead of the typical quadratic growth present in naive
15268 # implementations.
15269 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15270 eval 'as_fn_append ()
15272 eval $1+=\$2
15274 else
15275 as_fn_append ()
15277 eval $1=\$$1\$2
15279 fi # as_fn_append
15281 # as_fn_arith ARG...
15282 # ------------------
15283 # Perform arithmetic evaluation on the ARGs, and store the result in the
15284 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15285 # must be portable across $(()) and expr.
15286 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15287 eval 'as_fn_arith ()
15289 as_val=$(( $* ))
15291 else
15292 as_fn_arith ()
15294 as_val=`expr "$@" || test $? -eq 1`
15296 fi # as_fn_arith
15299 if expr a : '\(a\)' >/dev/null 2>&1 &&
15300 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15301 as_expr=expr
15302 else
15303 as_expr=false
15306 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15307 as_basename=basename
15308 else
15309 as_basename=false
15312 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15313 as_dirname=dirname
15314 else
15315 as_dirname=false
15318 as_me=`$as_basename -- "$0" ||
15319 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15320 X"$0" : 'X\(//\)$' \| \
15321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15322 $as_echo X/"$0" |
15323 sed '/^.*\/\([^/][^/]*\)\/*$/{
15324 s//\1/
15327 /^X\/\(\/\/\)$/{
15328 s//\1/
15331 /^X\/\(\/\).*/{
15332 s//\1/
15335 s/.*/./; q'`
15337 # Avoid depending upon Character Ranges.
15338 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15339 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15340 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15341 as_cr_digits='0123456789'
15342 as_cr_alnum=$as_cr_Letters$as_cr_digits
15344 ECHO_C= ECHO_N= ECHO_T=
15345 case `echo -n x` in #(((((
15346 -n*)
15347 case `echo 'xy\c'` in
15348 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15349 xy) ECHO_C='\c';;
15350 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15351 ECHO_T=' ';;
15352 esac;;
15354 ECHO_N='-n';;
15355 esac
15357 rm -f conf$$ conf$$.exe conf$$.file
15358 if test -d conf$$.dir; then
15359 rm -f conf$$.dir/conf$$.file
15360 else
15361 rm -f conf$$.dir
15362 mkdir conf$$.dir 2>/dev/null
15364 if (echo >conf$$.file) 2>/dev/null; then
15365 if ln -s conf$$.file conf$$ 2>/dev/null; then
15366 as_ln_s='ln -s'
15367 # ... but there are two gotchas:
15368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15370 # In both cases, we have to default to `cp -p'.
15371 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15372 as_ln_s='cp -p'
15373 elif ln conf$$.file conf$$ 2>/dev/null; then
15374 as_ln_s=ln
15375 else
15376 as_ln_s='cp -p'
15378 else
15379 as_ln_s='cp -p'
15381 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15382 rmdir conf$$.dir 2>/dev/null
15385 # as_fn_mkdir_p
15386 # -------------
15387 # Create "$as_dir" as a directory, including parents if necessary.
15388 as_fn_mkdir_p ()
15391 case $as_dir in #(
15392 -*) as_dir=./$as_dir;;
15393 esac
15394 test -d "$as_dir" || eval $as_mkdir_p || {
15395 as_dirs=
15396 while :; do
15397 case $as_dir in #(
15398 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15399 *) as_qdir=$as_dir;;
15400 esac
15401 as_dirs="'$as_qdir' $as_dirs"
15402 as_dir=`$as_dirname -- "$as_dir" ||
15403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15404 X"$as_dir" : 'X\(//\)[^/]' \| \
15405 X"$as_dir" : 'X\(//\)$' \| \
15406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15407 $as_echo X"$as_dir" |
15408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15409 s//\1/
15412 /^X\(\/\/\)[^/].*/{
15413 s//\1/
15416 /^X\(\/\/\)$/{
15417 s//\1/
15420 /^X\(\/\).*/{
15421 s//\1/
15424 s/.*/./; q'`
15425 test -d "$as_dir" && break
15426 done
15427 test -z "$as_dirs" || eval "mkdir $as_dirs"
15428 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15431 } # as_fn_mkdir_p
15432 if mkdir -p . 2>/dev/null; then
15433 as_mkdir_p='mkdir -p "$as_dir"'
15434 else
15435 test -d ./-p && rmdir ./-p
15436 as_mkdir_p=false
15439 if test -x / >/dev/null 2>&1; then
15440 as_test_x='test -x'
15441 else
15442 if ls -dL / >/dev/null 2>&1; then
15443 as_ls_L_option=L
15444 else
15445 as_ls_L_option=
15447 as_test_x='
15448 eval sh -c '\''
15449 if test -d "$1"; then
15450 test -d "$1/.";
15451 else
15452 case $1 in #(
15453 -*)set "./$1";;
15454 esac;
15455 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15456 ???[sx]*):;;*)false;;esac;fi
15457 '\'' sh
15460 as_executable_p=$as_test_x
15462 # Sed expression to map a string onto a valid CPP name.
15463 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15465 # Sed expression to map a string onto a valid variable name.
15466 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15469 exec 6>&1
15470 ## ----------------------------------- ##
15471 ## Main body of $CONFIG_STATUS script. ##
15472 ## ----------------------------------- ##
15473 _ASEOF
15474 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15477 # Save the log message, to keep $0 and so on meaningful, and to
15478 # report actual input values of CONFIG_FILES etc. instead of their
15479 # values after options handling.
15480 ac_log="
15481 This file was extended by emacs $as_me 24.0.50, which was
15482 generated by GNU Autoconf 2.67. Invocation command line was
15484 CONFIG_FILES = $CONFIG_FILES
15485 CONFIG_HEADERS = $CONFIG_HEADERS
15486 CONFIG_LINKS = $CONFIG_LINKS
15487 CONFIG_COMMANDS = $CONFIG_COMMANDS
15488 $ $0 $@
15490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15493 _ACEOF
15495 case $ac_config_files in *"
15496 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15497 esac
15499 case $ac_config_headers in *"
15500 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15501 esac
15504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15505 # Files that config.status was made for.
15506 config_files="$ac_config_files"
15507 config_headers="$ac_config_headers"
15508 config_commands="$ac_config_commands"
15510 _ACEOF
15512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15513 ac_cs_usage="\
15514 \`$as_me' instantiates files and other configuration actions
15515 from templates according to the current configuration. Unless the files
15516 and actions are specified as TAGs, all are instantiated by default.
15518 Usage: $0 [OPTION]... [TAG]...
15520 -h, --help print this help, then exit
15521 -V, --version print version number and configuration settings, then exit
15522 --config print configuration, then exit
15523 -q, --quiet, --silent
15524 do not print progress messages
15525 -d, --debug don't remove temporary files
15526 --recheck update $as_me by reconfiguring in the same conditions
15527 --file=FILE[:TEMPLATE]
15528 instantiate the configuration file FILE
15529 --header=FILE[:TEMPLATE]
15530 instantiate the configuration header FILE
15532 Configuration files:
15533 $config_files
15535 Configuration headers:
15536 $config_headers
15538 Configuration commands:
15539 $config_commands
15541 Report bugs to the package provider."
15543 _ACEOF
15544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15546 ac_cs_version="\\
15547 emacs config.status 24.0.50
15548 configured by $0, generated by GNU Autoconf 2.67,
15549 with options \\"\$ac_cs_config\\"
15551 Copyright (C) 2010 Free Software Foundation, Inc.
15552 This config.status script is free software; the Free Software Foundation
15553 gives unlimited permission to copy, distribute and modify it."
15555 ac_pwd='$ac_pwd'
15556 srcdir='$srcdir'
15557 INSTALL='$INSTALL'
15558 test -n "\$AWK" || AWK=awk
15559 _ACEOF
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15562 # The default lists apply if the user does not specify any file.
15563 ac_need_defaults=:
15564 while test $# != 0
15566 case $1 in
15567 --*=?*)
15568 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15569 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15570 ac_shift=:
15572 --*=)
15573 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15574 ac_optarg=
15575 ac_shift=:
15578 ac_option=$1
15579 ac_optarg=$2
15580 ac_shift=shift
15582 esac
15584 case $ac_option in
15585 # Handling of the options.
15586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15587 ac_cs_recheck=: ;;
15588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15589 $as_echo "$ac_cs_version"; exit ;;
15590 --config | --confi | --conf | --con | --co | --c )
15591 $as_echo "$ac_cs_config"; exit ;;
15592 --debug | --debu | --deb | --de | --d | -d )
15593 debug=: ;;
15594 --file | --fil | --fi | --f )
15595 $ac_shift
15596 case $ac_optarg in
15597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15598 '') as_fn_error $? "missing file argument" ;;
15599 esac
15600 as_fn_append CONFIG_FILES " '$ac_optarg'"
15601 ac_need_defaults=false;;
15602 --header | --heade | --head | --hea )
15603 $ac_shift
15604 case $ac_optarg in
15605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15606 esac
15607 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15608 ac_need_defaults=false;;
15609 --he | --h)
15610 # Conflict between --help and --header
15611 as_fn_error $? "ambiguous option: \`$1'
15612 Try \`$0 --help' for more information.";;
15613 --help | --hel | -h )
15614 $as_echo "$ac_cs_usage"; exit ;;
15615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15617 ac_cs_silent=: ;;
15619 # This is an error.
15620 -*) as_fn_error $? "unrecognized option: \`$1'
15621 Try \`$0 --help' for more information." ;;
15623 *) as_fn_append ac_config_targets " $1"
15624 ac_need_defaults=false ;;
15626 esac
15627 shift
15628 done
15630 ac_configure_extra_args=
15632 if $ac_cs_silent; then
15633 exec 6>/dev/null
15634 ac_configure_extra_args="$ac_configure_extra_args --silent"
15637 _ACEOF
15638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15639 if \$ac_cs_recheck; then
15640 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15641 shift
15642 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15643 CONFIG_SHELL='$SHELL'
15644 export CONFIG_SHELL
15645 exec "\$@"
15648 _ACEOF
15649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650 exec 5>>config.log
15652 echo
15653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15654 ## Running $as_me. ##
15655 _ASBOX
15656 $as_echo "$ac_log"
15657 } >&5
15659 _ACEOF
15660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15662 # INIT-COMMANDS
15664 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15666 _ACEOF
15668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15670 # Handling of arguments.
15671 for ac_config_target in $ac_config_targets
15673 case $ac_config_target in
15674 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15676 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15677 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15678 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15679 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15680 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15681 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15682 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15683 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15684 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15685 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15686 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15688 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15689 esac
15690 done
15693 # If the user did not use the arguments to specify the items to instantiate,
15694 # then the envvar interface is used. Set only those that are not.
15695 # We use the long form for the default assignment because of an extremely
15696 # bizarre bug on SunOS 4.1.3.
15697 if $ac_need_defaults; then
15698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15703 # Have a temporary directory for convenience. Make it in the build tree
15704 # simply because there is no reason against having it here, and in addition,
15705 # creating and moving files from /tmp can sometimes cause problems.
15706 # Hook for its removal unless debugging.
15707 # Note that there is a small window in which the directory will not be cleaned:
15708 # after its creation but before its name has been assigned to `$tmp'.
15709 $debug ||
15711 tmp=
15712 trap 'exit_status=$?
15713 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15715 trap 'as_fn_exit 1' 1 2 13 15
15717 # Create a (secure) tmp directory for tmp files.
15720 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15721 test -n "$tmp" && test -d "$tmp"
15722 } ||
15724 tmp=./conf$$-$RANDOM
15725 (umask 077 && mkdir "$tmp")
15726 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15728 # Set up the scripts for CONFIG_FILES section.
15729 # No need to generate them if there are no CONFIG_FILES.
15730 # This happens for instance with `./config.status config.h'.
15731 if test -n "$CONFIG_FILES"; then
15733 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15734 ac_cs_awk_getline=:
15735 ac_cs_awk_pipe_init=
15736 ac_cs_awk_read_file='
15737 while ((getline aline < (F[key])) > 0)
15738 print(aline)
15739 close(F[key])'
15740 ac_cs_awk_pipe_fini=
15741 else
15742 ac_cs_awk_getline=false
15743 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15744 ac_cs_awk_read_file='
15745 print "|#_!!_#|"
15746 print "cat " F[key] " &&"
15747 '$ac_cs_awk_pipe_init
15748 # The final `:' finishes the AND list.
15749 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15751 ac_cr=`echo X | tr X '\015'`
15752 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15753 # But we know of no other shell where ac_cr would be empty at this
15754 # point, so we can use a bashism as a fallback.
15755 if test "x$ac_cr" = x; then
15756 eval ac_cr=\$\'\\r\'
15758 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15759 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15760 ac_cs_awk_cr='\\r'
15761 else
15762 ac_cs_awk_cr=$ac_cr
15765 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15766 _ACEOF
15768 # Create commands to substitute file output variables.
15770 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15771 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15772 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15773 echo "_ACAWK" &&
15774 echo "_ACEOF"
15775 } >conf$$files.sh &&
15776 . ./conf$$files.sh ||
15777 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15778 rm -f conf$$files.sh
15781 echo "cat >conf$$subs.awk <<_ACEOF" &&
15782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15783 echo "_ACEOF"
15784 } >conf$$subs.sh ||
15785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15787 ac_delim='%!_!# '
15788 for ac_last_try in false false false false false :; do
15789 . ./conf$$subs.sh ||
15790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15792 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15793 if test $ac_delim_n = $ac_delim_num; then
15794 break
15795 elif $ac_last_try; then
15796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15797 else
15798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15800 done
15801 rm -f conf$$subs.sh
15803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15804 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15805 _ACEOF
15806 sed -n '
15808 s/^/S["/; s/!.*/"]=/
15811 s/^[^!]*!//
15812 :repl
15813 t repl
15814 s/'"$ac_delim"'$//
15815 t delim
15818 s/\(.\{148\}\)..*/\1/
15819 t more1
15820 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15823 b repl
15824 :more1
15825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15828 s/.\{148\}//
15829 t nl
15830 :delim
15832 s/\(.\{148\}\)..*/\1/
15833 t more2
15834 s/["\\]/\\&/g; s/^/"/; s/$/"/
15837 :more2
15838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15841 s/.\{148\}//
15842 t delim
15843 ' <conf$$subs.awk | sed '
15844 /^[^""]/{
15846 s/\n//
15848 ' >>$CONFIG_STATUS || ac_write_fail=1
15849 rm -f conf$$subs.awk
15850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15851 _ACAWK
15852 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15853 for (key in S) S_is_set[key] = 1
15854 FS = "\a"
15855 \$ac_cs_awk_pipe_init
15858 line = $ 0
15859 nfields = split(line, field, "@")
15860 substed = 0
15861 len = length(field[1])
15862 for (i = 2; i < nfields; i++) {
15863 key = field[i]
15864 keylen = length(key)
15865 if (S_is_set[key]) {
15866 value = S[key]
15867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15868 len += length(value) + length(field[++i])
15869 substed = 1
15870 } else
15871 len += 1 + keylen
15873 if (nfields == 3 && !substed) {
15874 key = field[2]
15875 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15876 \$ac_cs_awk_read_file
15877 next
15880 print line
15882 \$ac_cs_awk_pipe_fini
15883 _ACAWK
15884 _ACEOF
15885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15886 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15887 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15888 else
15890 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15891 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15892 _ACEOF
15894 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15895 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15896 # trailing colons and then remove the whole line if VPATH becomes empty
15897 # (actually we leave an empty line to preserve line numbers).
15898 if test "x$srcdir" = x.; then
15899 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15901 s///
15902 s/^/:/
15903 s/[ ]*$/:/
15904 s/:\$(srcdir):/:/g
15905 s/:\${srcdir}:/:/g
15906 s/:@srcdir@:/:/g
15907 s/^:*//
15908 s/:*$//
15910 s/\(=[ ]*\).*/\1/
15912 s/\n//
15913 s/^[^=]*=[ ]*$//
15917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15918 fi # test -n "$CONFIG_FILES"
15920 # Set up the scripts for CONFIG_HEADERS section.
15921 # No need to generate them if there are no CONFIG_HEADERS.
15922 # This happens for instance with `./config.status Makefile'.
15923 if test -n "$CONFIG_HEADERS"; then
15924 cat >"$tmp/defines.awk" <<\_ACAWK ||
15925 BEGIN {
15926 _ACEOF
15928 # Transform confdefs.h into an awk script `defines.awk', embedded as
15929 # here-document in config.status, that substitutes the proper values into
15930 # config.h.in to produce config.h.
15932 # Create a delimiter string that does not exist in confdefs.h, to ease
15933 # handling of long lines.
15934 ac_delim='%!_!# '
15935 for ac_last_try in false false :; do
15936 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15937 if test -z "$ac_t"; then
15938 break
15939 elif $ac_last_try; then
15940 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15941 else
15942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15944 done
15946 # For the awk script, D is an array of macro values keyed by name,
15947 # likewise P contains macro parameters if any. Preserve backslash
15948 # newline sequences.
15950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15951 sed -n '
15952 s/.\{148\}/&'"$ac_delim"'/g
15953 t rset
15954 :rset
15955 s/^[ ]*#[ ]*define[ ][ ]*/ /
15956 t def
15958 :def
15959 s/\\$//
15960 t bsnl
15961 s/["\\]/\\&/g
15962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15963 D["\1"]=" \3"/p
15964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15966 :bsnl
15967 s/["\\]/\\&/g
15968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15969 D["\1"]=" \3\\\\\\n"\\/p
15970 t cont
15971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15972 t cont
15974 :cont
15976 s/.\{148\}/&'"$ac_delim"'/g
15977 t clear
15978 :clear
15979 s/\\$//
15980 t bsnlc
15981 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15983 :bsnlc
15984 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15985 b cont
15986 ' <confdefs.h | sed '
15987 s/'"$ac_delim"'/"\\\
15988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15991 for (key in D) D_is_set[key] = 1
15992 FS = "\a"
15994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15995 line = \$ 0
15996 split(line, arg, " ")
15997 if (arg[1] == "#") {
15998 defundef = arg[2]
15999 mac1 = arg[3]
16000 } else {
16001 defundef = substr(arg[1], 2)
16002 mac1 = arg[2]
16004 split(mac1, mac2, "(") #)
16005 macro = mac2[1]
16006 prefix = substr(line, 1, index(line, defundef) - 1)
16007 if (D_is_set[macro]) {
16008 # Preserve the white space surrounding the "#".
16009 print prefix "define", macro P[macro] D[macro]
16010 next
16011 } else {
16012 # Replace #undef with comments. This is necessary, for example,
16013 # in the case of _POSIX_SOURCE, which is predefined and required
16014 # on some systems where configure will not decide to define it.
16015 if (defundef == "undef") {
16016 print "/*", prefix defundef, macro, "*/"
16017 next
16021 { print }
16022 _ACAWK
16023 _ACEOF
16024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16025 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16026 fi # test -n "$CONFIG_HEADERS"
16029 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16030 shift
16031 for ac_tag
16033 case $ac_tag in
16034 :[FHLC]) ac_mode=$ac_tag; continue;;
16035 esac
16036 case $ac_mode$ac_tag in
16037 :[FHL]*:*);;
16038 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16039 :[FH]-) ac_tag=-:-;;
16040 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16041 esac
16042 ac_save_IFS=$IFS
16043 IFS=:
16044 set x $ac_tag
16045 IFS=$ac_save_IFS
16046 shift
16047 ac_file=$1
16048 shift
16050 case $ac_mode in
16051 :L) ac_source=$1;;
16052 :[FH])
16053 ac_file_inputs=
16054 for ac_f
16056 case $ac_f in
16057 -) ac_f="$tmp/stdin";;
16058 *) # Look for the file first in the build tree, then in the source tree
16059 # (if the path is not absolute). The absolute path cannot be DOS-style,
16060 # because $ac_f cannot contain `:'.
16061 test -f "$ac_f" ||
16062 case $ac_f in
16063 [\\/$]*) false;;
16064 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16065 esac ||
16066 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16067 esac
16068 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16069 as_fn_append ac_file_inputs " '$ac_f'"
16070 done
16072 # Let's still pretend it is `configure' which instantiates (i.e., don't
16073 # use $as_me), people would be surprised to read:
16074 # /* config.h. Generated by config.status. */
16075 configure_input='Generated from '`
16076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16077 `' by configure.'
16078 if test x"$ac_file" != x-; then
16079 configure_input="$ac_file. $configure_input"
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16081 $as_echo "$as_me: creating $ac_file" >&6;}
16083 # Neutralize special characters interpreted by sed in replacement strings.
16084 case $configure_input in #(
16085 *\&* | *\|* | *\\* )
16086 ac_sed_conf_input=`$as_echo "$configure_input" |
16087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16088 *) ac_sed_conf_input=$configure_input;;
16089 esac
16091 case $ac_tag in
16092 *:-:* | *:-) cat >"$tmp/stdin" \
16093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16094 esac
16096 esac
16098 ac_dir=`$as_dirname -- "$ac_file" ||
16099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16100 X"$ac_file" : 'X\(//\)[^/]' \| \
16101 X"$ac_file" : 'X\(//\)$' \| \
16102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16103 $as_echo X"$ac_file" |
16104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16105 s//\1/
16108 /^X\(\/\/\)[^/].*/{
16109 s//\1/
16112 /^X\(\/\/\)$/{
16113 s//\1/
16116 /^X\(\/\).*/{
16117 s//\1/
16120 s/.*/./; q'`
16121 as_dir="$ac_dir"; as_fn_mkdir_p
16122 ac_builddir=.
16124 case "$ac_dir" in
16125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16127 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16128 # A ".." for each directory in $ac_dir_suffix.
16129 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16130 case $ac_top_builddir_sub in
16131 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16132 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16133 esac ;;
16134 esac
16135 ac_abs_top_builddir=$ac_pwd
16136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16137 # for backward compatibility:
16138 ac_top_builddir=$ac_top_build_prefix
16140 case $srcdir in
16141 .) # We are building in place.
16142 ac_srcdir=.
16143 ac_top_srcdir=$ac_top_builddir_sub
16144 ac_abs_top_srcdir=$ac_pwd ;;
16145 [\\/]* | ?:[\\/]* ) # Absolute name.
16146 ac_srcdir=$srcdir$ac_dir_suffix;
16147 ac_top_srcdir=$srcdir
16148 ac_abs_top_srcdir=$srcdir ;;
16149 *) # Relative name.
16150 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16151 ac_top_srcdir=$ac_top_build_prefix$srcdir
16152 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16153 esac
16154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16157 case $ac_mode in
16160 # CONFIG_FILE
16163 case $INSTALL in
16164 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16165 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16166 esac
16167 _ACEOF
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16170 # If the template does not know about datarootdir, expand it.
16171 # FIXME: This hack should be removed a few years after 2.60.
16172 ac_datarootdir_hack=; ac_datarootdir_seen=
16173 ac_sed_dataroot='
16174 /datarootdir/ {
16178 /@datadir@/p
16179 /@docdir@/p
16180 /@infodir@/p
16181 /@localedir@/p
16182 /@mandir@/p'
16183 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16184 *datarootdir*) ac_datarootdir_seen=yes;;
16185 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16187 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16188 _ACEOF
16189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16190 ac_datarootdir_hack='
16191 s&@datadir@&$datadir&g
16192 s&@docdir@&$docdir&g
16193 s&@infodir@&$infodir&g
16194 s&@localedir@&$localedir&g
16195 s&@mandir@&$mandir&g
16196 s&\\\${datarootdir}&$datarootdir&g' ;;
16197 esac
16198 _ACEOF
16200 # Neutralize VPATH when `$srcdir' = `.'.
16201 # Shell code in configure.ac might set extrasub.
16202 # FIXME: do we really want to maintain this feature?
16203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16204 ac_sed_extra="$ac_vpsub
16205 $extrasub
16206 _ACEOF
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16210 s|@configure_input@|$ac_sed_conf_input|;t t
16211 s&@top_builddir@&$ac_top_builddir_sub&;t t
16212 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16213 s&@srcdir@&$ac_srcdir&;t t
16214 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16215 s&@top_srcdir@&$ac_top_srcdir&;t t
16216 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16217 s&@builddir@&$ac_builddir&;t t
16218 s&@abs_builddir@&$ac_abs_builddir&;t t
16219 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16220 s&@INSTALL@&$ac_INSTALL&;t t
16221 $ac_datarootdir_hack
16223 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16224 if $ac_cs_awk_getline; then
16225 $AWK -f "$tmp/subs.awk"
16226 else
16227 $AWK -f "$tmp/subs.awk" | $SHELL
16228 fi >$tmp/out \
16229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16232 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16235 which seems to be undefined. Please make sure it is defined" >&5
16236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16237 which seems to be undefined. Please make sure it is defined" >&2;}
16239 rm -f "$tmp/stdin"
16240 case $ac_file in
16241 -) cat "$tmp/out" && rm -f "$tmp/out";;
16242 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16243 esac \
16244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16248 # CONFIG_HEADER
16250 if test x"$ac_file" != x-; then
16252 $as_echo "/* $configure_input */" \
16253 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16254 } >"$tmp/config.h" \
16255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16256 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16259 else
16260 rm -f "$ac_file"
16261 mv "$tmp/config.h" "$ac_file" \
16262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16264 else
16265 $as_echo "/* $configure_input */" \
16266 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16267 || as_fn_error $? "could not create -" "$LINENO" 5
16271 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16272 $as_echo "$as_me: executing $ac_file commands" >&6;}
16274 esac
16277 case $ac_file$ac_mode in
16278 "default":C)
16280 ### Make the necessary directories, if they don't exist.
16281 for dir in etc lisp ; do
16282 test -d ${dir} || mkdir ${dir}
16283 done
16285 echo creating src/epaths.h
16286 ${MAKE-make} epaths-force
16288 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
16289 echo creating src/.gdbinit
16290 echo source $srcdir/src/.gdbinit > src/.gdbinit
16295 esac
16296 done # for ac_tag
16299 as_fn_exit 0
16300 _ACEOF
16301 ac_clean_files=$ac_clean_files_save
16303 test $ac_write_fail = 0 ||
16304 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16307 # configure is writing to config.log, and then calls config.status.
16308 # config.status does its own redirection, appending to config.log.
16309 # Unfortunately, on DOS this fails, as config.log is still kept open
16310 # by configure, so config.status won't be able to write to it; its
16311 # output is simply discarded. So we exec the FD to /dev/null,
16312 # effectively closing config.log, so it can be properly (re)opened and
16313 # appended to by config.status. When coming back to configure, we
16314 # need to make the FD available again.
16315 if test "$no_create" != yes; then
16316 ac_cs_success=:
16317 ac_config_status_args=
16318 test "$silent" = yes &&
16319 ac_config_status_args="$ac_config_status_args --quiet"
16320 exec 5>/dev/null
16321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16322 exec 5>>config.log
16323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16324 # would make configure fail if this is the last instruction.
16325 $ac_cs_success || as_fn_exit 1
16327 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16329 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}