Avoid erroneous syscalls
[emacs.git] / configure
blobcb353569d78670890962eacca0db017c4633bdf0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
8 # 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 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=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&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, 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 LINKER
603 POST_EDIT_LDFLAGS
604 PRE_EDIT_LDFLAGS
605 LD_SWITCH_SYSTEM_TEMACS
606 POST_ALLOC_OBJ
607 PRE_ALLOC_OBJ
608 CYGWIN_OBJ
609 RALLOC_OBJ
610 OLDXMENU_DEPS
611 LIBX_OTHER
612 LIBXMENU
613 OLDXMENU
614 OLDXMENU_TARGET
615 LIBXT_OTHER
616 TOOLKIT_LIBW
617 WIDGET_OBJ
618 XOBJ
619 XMENU_OBJ
620 FONT_OBJ
621 OTHER_FILES
622 GNU_OBJC_CFLAGS
623 ns_appsrc
624 ns_appresdir
625 ns_appbindir
626 ns_appdir
627 opsysfile
628 machfile
629 X_TOOLKIT_TYPE
630 C_SWITCH_X_SYSTEM
631 C_SWITCH_X_SITE
632 LD_SWITCH_X_SITE
633 gameuser
634 gamedir
635 bitmapdir
636 archlibdir
637 etcdir
638 x_default_search_path
639 lisppath
640 locallisppath
641 lispdir
642 srcdir
643 canonical
644 configuration
645 version
646 KRB4LIB
647 DESLIB
648 KRB5LIB
649 CRYPTOLIB
650 COM_ERRLIB
651 LIBRESOLV
652 LIBHESIOD
653 TERMCAP_OBJ
654 LIBS_TERMCAP
655 GETOPTOBJS
656 GETOPT_H
657 GETLOADAVG_LIBS
658 KMEM_GROUP
659 NEED_SETGID
660 LIBOBJS
661 BLESSMAIL_TARGET
662 LIBS_MAIL
663 liblockfile
664 ALLOCA
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 LIBSELINUX_LIBS
685 GCONF_LIBS
686 GCONF_CFLAGS
687 DBUS_OBJ
688 DBUS_LIBS
689 DBUS_CFLAGS
690 GTK_OBJ
691 GTK_LIBS
692 GTK_CFLAGS
693 RSVG_LIBS
694 RSVG_CFLAGS
695 VMLIMIT_OBJ
696 GMALLOC_OBJ
697 HAVE_XSERVER
698 LIB_STANDARD
699 NS_SUPPORT
700 NS_OBJ
701 TEMACS_LDFLAGS2
702 LD_SWITCH_X_SITE_AUX_RPATH
703 LD_SWITCH_X_SITE_AUX
704 XMKMF
705 DEPFLAGS
706 MKDEPDIR
707 SET_MAKE
708 CFLAGS_SOUND
709 ALSA_LIBS
710 ALSA_CFLAGS
711 PKG_CONFIG
712 LIBSOUND
713 START_FILES
714 LIB_MATH
715 CRT_DIR
716 LIBS_SYSTEM
717 C_SWITCH_SYSTEM
718 UNEXEC_OBJ
719 C_SWITCH_MACHINE
720 LD_SWITCH_SYSTEM
721 CANNOT_DUMP
722 MAKEINFO
723 GZIP_PROG
724 INSTALL_INFO
725 RANLIB
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 EGREP
730 GREP
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 MAINT
748 GZIP_INFO
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files='deps_frag
788 ns_frag'
789 ac_user_opts='
790 enable_option_checking
791 with_pop
792 with_kerberos
793 with_kerberos5
794 with_hesiod
795 with_mmdf
796 with_mail_unlink
797 with_mailhost
798 with_sound
799 with_sync_input
800 with_x_toolkit
801 with_xpm
802 with_jpeg
803 with_tiff
804 with_gif
805 with_png
806 with_rsvg
807 with_xft
808 with_libotf
809 with_m17n_flt
810 with_toolkit_scroll_bars
811 with_xaw3d
812 with_xim
813 with_ns
814 with_gpm
815 with_dbus
816 with_gconf
817 with_selinux
818 with_makeinfo
819 with_compress_info
820 with_pkg_config_prog
821 with_crt_dir
822 with_gnustep_conf
823 enable_ns_self_contained
824 enable_asserts
825 enable_maintainer_mode
826 enable_locallisppath
827 enable_checking
828 enable_profiling
829 enable_autodepend
830 enable_largefile
831 with_x
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
842 XMKMF'
845 # Initialize some variables set by options.
846 ac_init_help=
847 ac_init_version=false
848 ac_unrecognized_opts=
849 ac_unrecognized_sep=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
852 cache_file=/dev/null
853 exec_prefix=NONE
854 no_create=
855 no_recursion=
856 prefix=NONE
857 program_prefix=NONE
858 program_suffix=NONE
859 program_transform_name=s,x,x,
860 silent=
861 site=
862 srcdir=
863 verbose=
864 x_includes=NONE
865 x_libraries=NONE
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
893 ac_prev=
894 ac_dashdash=
895 for ac_option
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
904 case $ac_option in
905 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *) ac_optarg=yes ;;
907 esac
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
913 ac_dashdash=yes ;;
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
916 ac_prev=bindir ;;
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918 bindir=$ac_optarg ;;
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
932 --config-cache | -C)
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
936 ac_prev=datadir ;;
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
982 "enable_$ac_useropt"
983 "*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1000 with_gas=yes ;;
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015 ac_prev=htmldir ;;
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017 | --ht=*)
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1028 ac_prev=infodir ;;
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1033 ac_prev=libdir ;;
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057 ac_prev=mandir ;;
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1063 with_fp=no ;;
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1067 no_create=yes ;;
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071 no_recursion=yes ;;
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083 ac_prev=prefix ;;
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119 ac_prev=pdfdir ;;
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1124 ac_prev=psdir ;;
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126 psdir=$ac_optarg ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1130 silent=yes ;;
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133 ac_prev=sbindir ;;
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135 | --sbi=* | --sb=*)
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1141 | --sha | --sh)
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146 | --sha=* | --sh=*)
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1150 ac_prev=site ;;
1151 -site=* | --site=* | --sit=*)
1152 site=$ac_optarg ;;
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155 ac_prev=srcdir ;;
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172 verbose=yes ;;
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1177 -with-* | --with-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=no ;;
1209 --x)
1210 # Obsolete; use --with-x.
1211 with_x=yes ;;
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information."
1231 *=*)
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1237 esac
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 esac
1250 done
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1259 no) ;;
1260 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 esac
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1273 case $ac_val in
1274 */ )
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1277 esac
1278 # Be sure to have absolute directory names.
1279 case $ac_val in
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282 esac
1283 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298 If a cross compiler is detected then cross compile mode will be used." >&2
1299 elif test "x$build_alias" != "x$host_alias"; then
1300 cross_compiling=yes
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error "pwd does not report name of working directory"
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329 s//\1/
1332 /^X\(\/\/\)[^/].*/{
1333 s//\1/
1336 /^X\(\/\/\)$/{
1337 s//\1/
1340 /^X\(\/\).*/{
1341 s//\1/
1344 s/.*/./; q'`
1345 srcdir=$ac_confdir
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 srcdir=..
1349 else
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1359 pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362 srcdir=.
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1383 cat <<_ACEOF
1384 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1393 Configuration:
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1408 [PREFIX]
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1437 _ACEOF
1439 cat <<\_ACEOF
1441 Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1446 X features:
1447 --x-includes=DIR X include files are in DIR
1448 --x-libraries=DIR X library files are in DIR
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1459 esac
1460 cat <<\_ACEOF
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --disable-ns-self-contained
1467 disable self contained build under NeXTstep
1468 --enable-asserts compile code with asserts enabled
1469 --enable-maintainer-mode
1470 enable make rules and dependencies not useful (and
1471 sometimes confusing) to the casual installer
1472 --enable-locallisppath=PATH
1473 directories Emacs should search for lisp files
1474 specific to this site
1475 --enable-checking[=LIST]
1476 enable expensive run-time checks. With LIST, enable
1477 only specific categories of checks. Categories are:
1478 all,yes,no. Flags are: stringbytes, stringoverrun,
1479 stringfreelist, xmallocoverrun, conslist
1480 --enable-profiling build emacs with profiling support. This might not
1481 work on all platforms
1482 --enable-autodepend automatically generate dependencies to .h-files.
1483 Requires GNU Make and Gcc. Enabled if GNU Make and
1484 Gcc is found
1485 --disable-largefile omit support for large files
1487 Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --without-pop don't support POP mail retrieval with movemail
1491 --with-kerberos support Kerberos-authenticated POP
1492 --with-kerberos5 support Kerberos version 5 authenticated POP
1493 --with-hesiod support Hesiod to get the POP server host
1494 --with-mmdf support MMDF mailboxes
1495 --with-mail-unlink unlink, rather than empty, mail spool after reading
1496 --with-mailhost=HOSTNAME
1497 string giving default POP mail host
1498 --without-sound don't compile with sound support
1499 --without-sync-input process async input synchronously
1500 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1501 lucid or athena, motif, no)
1502 --without-xpm don't compile with XPM image support
1503 --without-jpeg don't compile with JPEG image support
1504 --without-tiff don't compile with TIFF image support
1505 --without-gif don't compile with GIF image support
1506 --without-png don't compile with PNG image support
1507 --without-rsvg don't compile with SVG image support
1508 --without-xft don't use XFT for anti aliased fonts
1509 --without-libotf don't use libotf for OpenType font support
1510 --without-m17n-flt don't use m17n-flt for text shaping
1511 --without-toolkit-scroll-bars
1512 don't use Motif or Xaw3d scroll bars
1513 --without-xaw3d don't use Xaw3d
1514 --without-xim don't use X11 XIM
1515 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1516 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1517 console
1518 --without-dbus don't compile with D-Bus support
1519 --without-gconf don't compile with GConf support
1520 --without-selinux don't compile with SELinux support
1521 --without-makeinfo don't require makeinfo for building manuals
1522 --without-compress-info don't compress the installed Info pages
1523 --with-pkg-config-prog=PATH
1524 path to pkg-config for finding GTK and librsvg
1525 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1526 /usr/lib, or /usr/lib64 on some platforms.
1527 --with-gnustep-conf=PATH
1528 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1529 or /etc/GNUstep/GNUstep.conf
1530 --with-x use the X Window System
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CPP C preprocessor
1541 XMKMF Path to xmkmf, Makefile generator for X Window System
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1546 Report bugs to the package provider.
1547 _ACEOF
1548 ac_status=$?
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 continue
1557 ac_builddir=.
1559 case "$ac_dir" in
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 esac ;;
1569 esac
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1575 case $srcdir in
1576 .) # We are building in place.
1577 ac_srcdir=.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1584 *) # Relative name.
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588 esac
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1599 else
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1601 fi || ac_status=$?
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1603 done
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1608 cat <<\_ACEOF
1609 emacs configure 24.0.50
1610 generated by GNU Autoconf 2.65
1612 Copyright (C) 2009 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1615 _ACEOF
1616 exit
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1654 ac_retval=1
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 as_fn_set_status $ac_retval
1659 } # ac_fn_c_try_compile
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_link ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1669 case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 $as_test_x conftest$ac_exeext
1689 }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1695 ac_retval=1
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_link
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_cpp ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } >/dev/null && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 }; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1737 ac_retval=1
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 as_fn_set_status $ac_retval
1742 } # ac_fn_c_try_cpp
1744 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1745 # -------------------------------------------------------
1746 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1747 # the include files in INCLUDES and setting the cache variable VAR
1748 # accordingly.
1749 ac_fn_c_check_header_mongrel ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1758 eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1761 else
1762 # Is the header compilable?
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1764 $as_echo_n "checking $2 usability... " >&6; }
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1768 #include <$2>
1769 _ACEOF
1770 if ac_fn_c_try_compile "$LINENO"; then :
1771 ac_header_compiler=yes
1772 else
1773 ac_header_compiler=no
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1777 $as_echo "$ac_header_compiler" >&6; }
1779 # Is the header present?
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1781 $as_echo_n "checking $2 presence... " >&6; }
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_cpp "$LINENO"; then :
1787 ac_header_preproc=yes
1788 else
1789 ac_header_preproc=no
1791 rm -f conftest.err conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1793 $as_echo "$ac_header_preproc" >&6; }
1795 # So? What about this header?
1796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1797 yes:no: )
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1799 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1803 no:yes:* )
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1805 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1807 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1809 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1811 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 esac
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 eval "$3=\$ac_header_compiler"
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 } # ac_fn_c_check_header_mongrel
1831 # ac_fn_c_try_run LINENO
1832 # ----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834 # that executables *can* be run.
1835 ac_fn_c_try_run ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849 { { case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_try") 2>&5
1856 ac_status=$?
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; }; }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: program exited with status $ac_status" >&5
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=$ac_status
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_run
1873 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists and can be compiled using the include files in
1876 # INCLUDES, setting the cache variable VAR accordingly.
1877 ac_fn_c_check_header_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891 eval "$3=yes"
1892 else
1893 eval "$3=no"
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 } # ac_fn_c_check_header_compile
1904 # ac_fn_c_check_decl LINENO SYMBOL VAR
1905 # ------------------------------------
1906 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1907 ac_fn_c_check_decl ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1911 $as_echo_n "checking whether $2 is declared... " >&6; }
1912 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1919 main ()
1921 #ifndef $2
1922 (void) $2;
1923 #endif
1926 return 0;
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 eval "$3=yes"
1931 else
1932 eval "$3=no"
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 } # ac_fn_c_check_decl
1943 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1944 # ----------------------------------------------
1945 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1946 ac_fn_c_check_header_preproc ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1952 $as_echo_n "(cached) " >&6
1953 else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1963 rm -f conftest.err conftest.$ac_ext
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 } # ac_fn_c_check_header_preproc
1972 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1973 # ----------------------------------------------------
1974 # Tries to find if the field MEMBER exists in type AGGR, after including
1975 # INCLUDES, setting cache variable VAR accordingly.
1976 ac_fn_c_check_member ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1980 $as_echo_n "checking for $2.$3... " >&6; }
1981 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1982 $as_echo_n "(cached) " >&6
1983 else
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 main ()
1990 static $2 ac_aggr;
1991 if (ac_aggr.$3)
1992 return 0;
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 eval "$4=yes"
1999 else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2004 main ()
2006 static $2 ac_aggr;
2007 if (sizeof ac_aggr.$3)
2008 return 0;
2010 return 0;
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 eval "$4=yes"
2015 else
2016 eval "$4=no"
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 eval ac_res=\$$4
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 } # ac_fn_c_check_member
2029 # ac_fn_c_check_func LINENO FUNC VAR
2030 # ----------------------------------
2031 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2032 ac_fn_c_check_func ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2038 $as_echo_n "(cached) " >&6
2039 else
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2044 #define $2 innocuous_$2
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char $2 (); below.
2048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2049 <limits.h> exists even on freestanding compilers. */
2051 #ifdef __STDC__
2052 # include <limits.h>
2053 #else
2054 # include <assert.h>
2055 #endif
2057 #undef $2
2059 /* Override any GCC internal prototype to avoid an error.
2060 Use char because int might match the return type of a GCC
2061 builtin and then its argument prototype would still apply. */
2062 #ifdef __cplusplus
2063 extern "C"
2064 #endif
2065 char $2 ();
2066 /* The GNU C library defines this for functions which it implements
2067 to always fail with ENOSYS. Some functions are actually named
2068 something starting with __ and the normal name is an alias. */
2069 #if defined __stub_$2 || defined __stub___$2
2070 choke me
2071 #endif
2074 main ()
2076 return $2 ();
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_link "$LINENO"; then :
2082 eval "$3=yes"
2083 else
2084 eval "$3=no"
2086 rm -f core conftest.err conftest.$ac_objext \
2087 conftest$ac_exeext conftest.$ac_ext
2089 eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094 } # ac_fn_c_check_func
2096 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2097 # -------------------------------------------
2098 # Tests whether TYPE exists after having included INCLUDES, setting cache
2099 # variable VAR accordingly.
2100 ac_fn_c_check_type ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2106 $as_echo_n "(cached) " >&6
2107 else
2108 eval "$3=no"
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2113 main ()
2115 if (sizeof ($2))
2116 return 0;
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2126 main ()
2128 if (sizeof (($2)))
2129 return 0;
2131 return 0;
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2136 else
2137 eval "$3=yes"
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 eval ac_res=\$$3
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148 } # ac_fn_c_check_type
2149 cat >config.log <<_ACEOF
2150 This file contains any messages produced by compilers while
2151 running configure, to aid debugging if configure makes a mistake.
2153 It was created by emacs $as_me 24.0.50, which was
2154 generated by GNU Autoconf 2.65. Invocation command line was
2156 $ $0 $@
2158 _ACEOF
2159 exec 5>>config.log
2161 cat <<_ASUNAME
2162 ## --------- ##
2163 ## Platform. ##
2164 ## --------- ##
2166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2173 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2175 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2176 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2178 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2179 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2180 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2181 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2183 _ASUNAME
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 $as_echo "PATH: $as_dir"
2191 done
2192 IFS=$as_save_IFS
2194 } >&5
2196 cat >&5 <<_ACEOF
2199 ## ----------- ##
2200 ## Core tests. ##
2201 ## ----------- ##
2203 _ACEOF
2206 # Keep a trace of the command line.
2207 # Strip out --no-create and --no-recursion so they do not pile up.
2208 # Strip out --silent because we don't want to record it for future runs.
2209 # Also quote any args containing shell meta-characters.
2210 # Make two passes to allow for proper duplicate-argument suppression.
2211 ac_configure_args=
2212 ac_configure_args0=
2213 ac_configure_args1=
2214 ac_must_keep_next=false
2215 for ac_pass in 1 2
2217 for ac_arg
2219 case $ac_arg in
2220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2222 | -silent | --silent | --silen | --sile | --sil)
2223 continue ;;
2224 *\'*)
2225 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2226 esac
2227 case $ac_pass in
2228 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2230 as_fn_append ac_configure_args1 " '$ac_arg'"
2231 if test $ac_must_keep_next = true; then
2232 ac_must_keep_next=false # Got value, back to normal.
2233 else
2234 case $ac_arg in
2235 *=* | --config-cache | -C | -disable-* | --disable-* \
2236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2238 | -with-* | --with-* | -without-* | --without-* | --x)
2239 case "$ac_configure_args0 " in
2240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2241 esac
2243 -* ) ac_must_keep_next=true ;;
2244 esac
2246 as_fn_append ac_configure_args " '$ac_arg'"
2248 esac
2249 done
2250 done
2251 { ac_configure_args0=; unset ac_configure_args0;}
2252 { ac_configure_args1=; unset ac_configure_args1;}
2254 # When interrupted or exit'd, cleanup temporary files, and complete
2255 # config.log. We remove comments because anyway the quotes in there
2256 # would cause problems or look ugly.
2257 # WARNING: Use '\'' to represent an apostrophe within the trap.
2258 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2259 trap 'exit_status=$?
2260 # Save into config.log some information that might help in debugging.
2262 echo
2264 cat <<\_ASBOX
2265 ## ---------------- ##
2266 ## Cache variables. ##
2267 ## ---------------- ##
2268 _ASBOX
2269 echo
2270 # The following way of writing the cache mishandles newlines in values,
2272 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2273 eval ac_val=\$$ac_var
2274 case $ac_val in #(
2275 *${as_nl}*)
2276 case $ac_var in #(
2277 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2278 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2279 esac
2280 case $ac_var in #(
2281 _ | IFS | as_nl) ;; #(
2282 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2283 *) { eval $ac_var=; unset $ac_var;} ;;
2284 esac ;;
2285 esac
2286 done
2287 (set) 2>&1 |
2288 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2289 *${as_nl}ac_space=\ *)
2290 sed -n \
2291 "s/'\''/'\''\\\\'\'''\''/g;
2292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2293 ;; #(
2295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2297 esac |
2298 sort
2300 echo
2302 cat <<\_ASBOX
2303 ## ----------------- ##
2304 ## Output variables. ##
2305 ## ----------------- ##
2306 _ASBOX
2307 echo
2308 for ac_var in $ac_subst_vars
2310 eval ac_val=\$$ac_var
2311 case $ac_val in
2312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313 esac
2314 $as_echo "$ac_var='\''$ac_val'\''"
2315 done | sort
2316 echo
2318 if test -n "$ac_subst_files"; then
2319 cat <<\_ASBOX
2320 ## ------------------- ##
2321 ## File substitutions. ##
2322 ## ------------------- ##
2323 _ASBOX
2324 echo
2325 for ac_var in $ac_subst_files
2327 eval ac_val=\$$ac_var
2328 case $ac_val in
2329 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2330 esac
2331 $as_echo "$ac_var='\''$ac_val'\''"
2332 done | sort
2333 echo
2336 if test -s confdefs.h; then
2337 cat <<\_ASBOX
2338 ## ----------- ##
2339 ## confdefs.h. ##
2340 ## ----------- ##
2341 _ASBOX
2342 echo
2343 cat confdefs.h
2344 echo
2346 test "$ac_signal" != 0 &&
2347 $as_echo "$as_me: caught signal $ac_signal"
2348 $as_echo "$as_me: exit $exit_status"
2349 } >&5
2350 rm -f core *.core core.conftest.* &&
2351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2352 exit $exit_status
2354 for ac_signal in 1 2 13 15; do
2355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2356 done
2357 ac_signal=0
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2362 $as_echo "/* confdefs.h */" > confdefs.h
2364 # Predefined preprocessor variables.
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_NAME "$PACKAGE_NAME"
2368 _ACEOF
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_STRING "$PACKAGE_STRING"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_URL "$PACKAGE_URL"
2388 _ACEOF
2391 # Let the site file select an alternate cache file if it wants to.
2392 # Prefer an explicitly selected file to automatically selected ones.
2393 ac_site_file1=NONE
2394 ac_site_file2=NONE
2395 if test -n "$CONFIG_SITE"; then
2396 ac_site_file1=$CONFIG_SITE
2397 elif test "x$prefix" != xNONE; then
2398 ac_site_file1=$prefix/share/config.site
2399 ac_site_file2=$prefix/etc/config.site
2400 else
2401 ac_site_file1=$ac_default_prefix/share/config.site
2402 ac_site_file2=$ac_default_prefix/etc/config.site
2404 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2406 test "x$ac_site_file" = xNONE && continue
2407 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2409 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2410 sed 's/^/| /' "$ac_site_file" >&5
2411 . "$ac_site_file"
2413 done
2415 if test -r "$cache_file"; then
2416 # Some versions of bash will fail to source /dev/null (special files
2417 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2418 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2420 $as_echo "$as_me: loading cache $cache_file" >&6;}
2421 case $cache_file in
2422 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2423 *) . "./$cache_file";;
2424 esac
2426 else
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2428 $as_echo "$as_me: creating cache $cache_file" >&6;}
2429 >$cache_file
2432 as_fn_append ac_header_list " stdlib.h"
2433 as_fn_append ac_header_list " unistd.h"
2434 as_fn_append ac_header_list " sys/param.h"
2435 as_fn_append ac_header_list " sys/time.h"
2436 as_fn_append ac_func_list " alarm"
2437 # Check that the precious variables saved in the cache have kept the same
2438 # value.
2439 ac_cache_corrupted=false
2440 for ac_var in $ac_precious_vars; do
2441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442 eval ac_new_set=\$ac_env_${ac_var}_set
2443 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444 eval ac_new_val=\$ac_env_${ac_var}_value
2445 case $ac_old_set,$ac_new_set in
2446 set,)
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449 ac_cache_corrupted=: ;;
2450 ,set)
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453 ac_cache_corrupted=: ;;
2454 ,);;
2456 if test "x$ac_old_val" != "x$ac_new_val"; then
2457 # differences in whitespace do not lead to failure.
2458 ac_old_val_w=`echo x $ac_old_val`
2459 ac_new_val_w=`echo x $ac_new_val`
2460 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463 ac_cache_corrupted=:
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467 eval $ac_var=\$ac_old_val
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2470 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2472 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2473 fi;;
2474 esac
2475 # Pass precious variables to config.status.
2476 if test "$ac_new_set" = set; then
2477 case $ac_new_val in
2478 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479 *) ac_arg=$ac_var=$ac_new_val ;;
2480 esac
2481 case " $ac_configure_args " in
2482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2483 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484 esac
2486 done
2487 if $ac_cache_corrupted; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2492 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2494 ## -------------------- ##
2495 ## Main body of script. ##
2496 ## -------------------- ##
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2509 test "$program_prefix" != NONE &&
2510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511 # Use a double $ so make ignores it.
2512 test "$program_suffix" != NONE &&
2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514 # Double any \ or $.
2515 # By default was `s,x,x', remove it if useless.
2516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2520 lispdir='${datadir}/emacs/${version}/lisp'
2521 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2522 '${datadir}/emacs/site-lisp'
2523 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2524 etcdir='${datadir}/emacs/${version}/etc'
2525 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2526 docdir='${datadir}/emacs/${version}/etc'
2527 gamedir='${localstatedir}/games/emacs'
2529 gameuser=games
2534 # Check whether --with-pop was given.
2535 if test "${with_pop+set}" = set; then :
2536 withval=$with_pop;
2537 else
2538 with_pop=yes
2541 if test "$with_pop" = yes; then
2542 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2547 # Check whether --with-kerberos was given.
2548 if test "${with_kerberos+set}" = set; then :
2549 withval=$with_kerberos;
2550 else
2551 with_kerberos=no
2554 if test "$with_kerberos" != no; then
2555 $as_echo "#define KERBEROS 1" >>confdefs.h
2560 # Check whether --with-kerberos5 was given.
2561 if test "${with_kerberos5+set}" = set; then :
2562 withval=$with_kerberos5;
2563 else
2564 with_kerberos5=no
2567 if test "${with_kerberos5}" != no; then
2568 if test "${with_kerberos}" = no; then
2569 with_kerberos=yes
2570 $as_echo "#define KERBEROS 1" >>confdefs.h
2574 $as_echo "#define KERBEROS5 1" >>confdefs.h
2579 # Check whether --with-hesiod was given.
2580 if test "${with_hesiod+set}" = set; then :
2581 withval=$with_hesiod;
2582 else
2583 with_hesiod=no
2586 if test "$with_hesiod" != no; then
2588 $as_echo "#define HESIOD 1" >>confdefs.h
2593 # Check whether --with-mmdf was given.
2594 if test "${with_mmdf+set}" = set; then :
2595 withval=$with_mmdf;
2596 else
2597 with_mmdf=no
2600 if test "$with_mmdf" != no; then
2602 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2607 # Check whether --with-mail-unlink was given.
2608 if test "${with_mail_unlink+set}" = set; then :
2609 withval=$with_mail_unlink;
2610 else
2611 with_mail_unlink=no
2614 if test "$with_mail_unlink" != no; then
2616 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2621 # Check whether --with-mailhost was given.
2622 if test "${with_mailhost+set}" = set; then :
2623 withval=$with_mailhost;
2624 cat >>confdefs.h <<_ACEOF
2625 #define MAILHOST "$withval"
2626 _ACEOF
2632 # Check whether --with-sound was given.
2633 if test "${with_sound+set}" = set; then :
2634 withval=$with_sound;
2635 else
2636 with_sound=yes
2641 # Check whether --with-sync-input was given.
2642 if test "${with_sync_input+set}" = set; then :
2643 withval=$with_sync_input;
2644 else
2645 with_sync_input=yes
2648 if test "$with_sync_input" = yes; then
2650 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2655 # Check whether --with-x-toolkit was given.
2656 if test "${with_x_toolkit+set}" = set; then :
2657 withval=$with_x_toolkit; case "${withval}" in
2658 y | ye | yes ) val=gtk ;;
2659 n | no ) val=no ;;
2660 l | lu | luc | luci | lucid ) val=lucid ;;
2661 a | at | ath | athe | athen | athena ) val=athena ;;
2662 m | mo | mot | moti | motif ) val=motif ;;
2663 g | gt | gtk ) val=gtk ;;
2664 gtk3 ) val=gtk3 ;;
2666 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2667 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2668 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2670 esac
2671 with_x_toolkit=$val
2677 # Check whether --with-xpm was given.
2678 if test "${with_xpm+set}" = set; then :
2679 withval=$with_xpm;
2680 else
2681 with_xpm=yes
2685 # Check whether --with-jpeg was given.
2686 if test "${with_jpeg+set}" = set; then :
2687 withval=$with_jpeg;
2688 else
2689 with_jpeg=yes
2693 # Check whether --with-tiff was given.
2694 if test "${with_tiff+set}" = set; then :
2695 withval=$with_tiff;
2696 else
2697 with_tiff=yes
2701 # Check whether --with-gif was given.
2702 if test "${with_gif+set}" = set; then :
2703 withval=$with_gif;
2704 else
2705 with_gif=yes
2709 # Check whether --with-png was given.
2710 if test "${with_png+set}" = set; then :
2711 withval=$with_png;
2712 else
2713 with_png=yes
2717 # Check whether --with-rsvg was given.
2718 if test "${with_rsvg+set}" = set; then :
2719 withval=$with_rsvg;
2720 else
2721 with_rsvg=yes
2726 # Check whether --with-xft was given.
2727 if test "${with_xft+set}" = set; then :
2728 withval=$with_xft;
2729 else
2730 with_xft=yes
2734 # Check whether --with-libotf was given.
2735 if test "${with_libotf+set}" = set; then :
2736 withval=$with_libotf;
2737 else
2738 with_libotf=yes
2742 # Check whether --with-m17n-flt was given.
2743 if test "${with_m17n_flt+set}" = set; then :
2744 withval=$with_m17n_flt;
2745 else
2746 with_m17n_flt=yes
2751 # Check whether --with-toolkit-scroll-bars was given.
2752 if test "${with_toolkit_scroll_bars+set}" = set; then :
2753 withval=$with_toolkit_scroll_bars;
2754 else
2755 with_toolkit_scroll_bars=yes
2759 # Check whether --with-xaw3d was given.
2760 if test "${with_xaw3d+set}" = set; then :
2761 withval=$with_xaw3d;
2762 else
2763 with_xaw3d=yes
2767 # Check whether --with-xim was given.
2768 if test "${with_xim+set}" = set; then :
2769 withval=$with_xim;
2770 else
2771 with_xim=yes
2775 # Check whether --with-ns was given.
2776 if test "${with_ns+set}" = set; then :
2777 withval=$with_ns;
2778 else
2779 with_ns=no
2784 # Check whether --with-gpm was given.
2785 if test "${with_gpm+set}" = set; then :
2786 withval=$with_gpm;
2787 else
2788 with_gpm=yes
2792 # Check whether --with-dbus was given.
2793 if test "${with_dbus+set}" = set; then :
2794 withval=$with_dbus;
2795 else
2796 with_dbus=yes
2800 # Check whether --with-gconf was given.
2801 if test "${with_gconf+set}" = set; then :
2802 withval=$with_gconf;
2803 else
2804 with_gconf=yes
2808 # Check whether --with-selinux was given.
2809 if test "${with_selinux+set}" = set; then :
2810 withval=$with_selinux;
2811 else
2812 with_selinux=yes
2816 ## For the times when you want to build Emacs but don't have
2817 ## a suitable makeinfo, and can live without the manuals.
2819 # Check whether --with-makeinfo was given.
2820 if test "${with_makeinfo+set}" = set; then :
2821 withval=$with_makeinfo;
2822 else
2823 with_makeinfo=yes
2827 ## This is an option because I do not know if all info/man support
2828 ## compressed files, nor how to test if they do so.
2830 # Check whether --with-compress-info was given.
2831 if test "${with_compress_info+set}" = set; then :
2832 withval=$with_compress_info;
2833 else
2834 with_compress_info=yes
2837 if test $with_compress_info = yes; then
2838 GZIP_INFO=yes
2839 else
2840 GZIP_INFO=
2845 # Check whether --with-pkg-config-prog was given.
2846 if test "${with_pkg_config_prog+set}" = set; then :
2847 withval=$with_pkg_config_prog;
2850 if test "X${with_pkg_config_prog}" != X; then
2851 if test "${with_pkg_config_prog}" != yes; then
2852 PKG_CONFIG="${with_pkg_config_prog}"
2856 CRT_DIR=
2858 # Check whether --with-crt-dir was given.
2859 if test "${with_crt_dir+set}" = set; then :
2860 withval=$with_crt_dir;
2863 CRT_DIR="${with_crt_dir}"
2866 # Check whether --with-gnustep-conf was given.
2867 if test "${with_gnustep_conf+set}" = set; then :
2868 withval=$with_gnustep_conf;
2871 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2872 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2873 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2874 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2876 # Check whether --enable-ns-self-contained was given.
2877 if test "${enable_ns_self_contained+set}" = set; then :
2878 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2879 else
2880 EN_NS_SELF_CONTAINED=yes
2884 # Check whether --enable-asserts was given.
2885 if test "${enable_asserts+set}" = set; then :
2886 enableval=$enable_asserts; USE_XASSERTS=$enableval
2887 else
2888 USE_XASSERTS=no
2892 # Check whether --enable-maintainer-mode was given.
2893 if test "${enable_maintainer_mode+set}" = set; then :
2894 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2895 else
2896 USE_MAINTAINER_MODE=no
2899 if test $USE_MAINTAINER_MODE = yes; then
2900 MAINT=
2901 else
2902 MAINT=#
2906 # Check whether --enable-locallisppath was given.
2907 if test "${enable_locallisppath+set}" = set; then :
2908 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2909 locallisppath=
2910 elif test "${enableval}" != "yes"; then
2911 locallisppath=${enableval}
2916 # Check whether --enable-checking was given.
2917 if test "${enable_checking+set}" = set; then :
2918 enableval=$enable_checking; ac_checking_flags="${enableval}"
2921 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2922 for check in $ac_checking_flags
2924 case $check in
2925 # these set all the flags to specific states
2926 yes) ac_enable_checking=1 ;;
2927 no) ac_enable_checking= ;
2928 ac_gc_check_stringbytes= ;
2929 ac_gc_check_string_overrun= ;
2930 ac_gc_check_string_free_list= ;
2931 ac_xmalloc_overrun= ;
2932 ac_gc_check_cons_list= ;;
2933 all) ac_enable_checking=1 ;
2934 ac_gc_check_stringbytes=1 ;
2935 ac_gc_check_string_overrun=1 ;
2936 ac_gc_check_string_free_list=1 ;
2937 ac_xmalloc_overrun=1 ;
2938 ac_gc_check_cons_list=1 ;;
2939 # these enable particular checks
2940 stringbytes) ac_gc_check_stringbytes=1 ;;
2941 stringoverrun) ac_gc_check_string_overrun=1 ;;
2942 stringfreelist) ac_gc_check_string_free_list=1 ;;
2943 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2944 conslist) ac_gc_check_cons_list=1 ;;
2945 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2946 esac
2947 done
2948 IFS="$ac_save_IFS"
2950 if test x$ac_enable_checking != x ; then
2952 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2955 if test x$ac_gc_check_stringbytes != x ; then
2957 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2960 if test x$ac_gc_check_stringoverrun != x ; then
2962 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2965 if test x$ac_gc_check_string_free_list != x ; then
2967 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2970 if test x$ac_xmalloc_overrun != x ; then
2972 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2975 if test x$ac_gc_check_cons_list != x ; then
2977 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2981 # Check whether --enable-profiling was given.
2982 if test "${enable_profiling+set}" = set; then :
2983 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2986 if test x$ac_enable_profiling != x ; then
2987 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2988 PROFILING_LDFLAGS="-pg"
2989 else
2990 PROFILING_CFLAGS=
2991 PROFILING_LDFLAGS=
2994 # Check whether --enable-autodepend was given.
2995 if test "${enable_autodepend+set}" = set; then :
2996 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2997 else
2998 ac_enable_autodepend=yes
3002 #### Make srcdir absolute, if it isn't already. It's important to
3003 #### avoid running the path through pwd unnecessarily, since pwd can
3004 #### give you automounter prefixes, which can go away. We do all this
3005 #### so Emacs can find its files when run uninstalled.
3006 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3007 unset CDPATH
3008 case "${srcdir}" in
3009 /* ) ;;
3011 ## We may be able to use the $PWD environment variable to make this
3012 ## absolute. But sometimes PWD is inaccurate.
3013 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3014 ## but that tested only for a well-formed and valid PWD,
3015 ## it did not object when PWD was well-formed and valid but just wrong.
3016 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3017 then
3018 srcdir="$PWD"
3019 else
3020 srcdir="`(cd ${srcdir}; pwd)`"
3023 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3024 esac
3026 #### Check if the source directory already has a configured system in it.
3027 if test `pwd` != `(cd ${srcdir} && pwd)` \
3028 && test -f "${srcdir}/src/config.h" ; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3030 as a build directory right now; it has been configured in its own
3031 right. To configure in another directory as well, you MUST
3032 use GNU make. If you do not have GNU make, then you must
3033 now do \`make distclean' in ${srcdir},
3034 and then run $0 again." >&5
3035 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3036 as a build directory right now; it has been configured in its own
3037 right. To configure in another directory as well, you MUST
3038 use GNU make. If you do not have GNU make, then you must
3039 now do \`make distclean' in ${srcdir},
3040 and then run $0 again." >&2;}
3043 #### Given the configuration name, set machfile and opsysfile to the
3044 #### names of the m/*.h and s/*.h files we should use.
3046 ### Canonicalize the configuration name.
3048 ac_aux_dir=
3049 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3050 for ac_t in install-sh install.sh shtool; do
3051 if test -f "$ac_dir/$ac_t"; then
3052 ac_aux_dir=$ac_dir
3053 ac_install_sh="$ac_aux_dir/$ac_t -c"
3054 break 2
3056 done
3057 done
3058 if test -z "$ac_aux_dir"; then
3059 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3062 # These three variables are undocumented and unsupported,
3063 # and are intended to be withdrawn in a future Autoconf release.
3064 # They can cause serious problems if a builder's source tree is in a directory
3065 # whose full name contains unusual characters.
3066 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3067 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3068 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3071 # Make sure we can run config.sub.
3072 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3073 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3076 $as_echo_n "checking build system type... " >&6; }
3077 if test "${ac_cv_build+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 ac_build_alias=$build_alias
3081 test "x$ac_build_alias" = x &&
3082 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3083 test "x$ac_build_alias" = x &&
3084 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3085 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3090 $as_echo "$ac_cv_build" >&6; }
3091 case $ac_cv_build in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3094 esac
3095 build=$ac_cv_build
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_build
3098 shift
3099 build_cpu=$1
3100 build_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 build_os=$*
3105 IFS=$ac_save_IFS
3106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3110 $as_echo_n "checking host system type... " >&6; }
3111 if test "${ac_cv_host+set}" = set; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if test "x$host_alias" = x; then
3115 ac_cv_host=$ac_cv_build
3116 else
3117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3118 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3123 $as_echo "$ac_cv_host" >&6; }
3124 case $ac_cv_host in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3127 esac
3128 host=$ac_cv_host
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_host
3131 shift
3132 host_cpu=$1
3133 host_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 host_os=$*
3138 IFS=$ac_save_IFS
3139 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3142 canonical=$host
3143 configuration=${host_alias-${build_alias-$host}}
3147 ### If you add support for a new configuration, add code to this
3148 ### switch statement to recognize your configuration name and select
3149 ### the appropriate operating system and machine description files.
3151 ### You would hope that you could choose an m/*.h file pretty much
3152 ### based on the machine portion of the configuration name, and an s/*.h
3153 ### file based on the operating system portion. However, it turns out
3154 ### that each m/*.h file is pretty manufacturer-specific - for
3155 ### example mips.h is MIPS
3156 ### So we basically have to have a special case for each
3157 ### configuration name.
3159 ### As far as handling version numbers on operating systems is
3160 ### concerned, make sure things will fail in a fixable way. If
3161 ### /etc/MACHINES doesn't say anything about version numbers, be
3162 ### prepared to handle anything reasonably. If version numbers
3163 ### matter, be sure /etc/MACHINES says something about it.
3165 machine='' opsys='' unported=no
3166 case "${canonical}" in
3168 ## FreeBSD ports
3169 *-*-freebsd* )
3170 opsys=freebsd
3171 case "${canonical}" in
3172 alpha*) machine=alpha ;;
3173 amd64-*|x86_64-*) machine=amdx86-64 ;;
3174 arm*) machine=arm ;;
3175 ia64-*) machine=ia64 ;;
3176 i[3456]86-*) machine=intel386 ;;
3177 powerpc-*) machine=macppc ;;
3178 sparc-*) machine=sparc ;;
3179 sparc64-*) machine=sparc ;;
3180 esac
3183 ## FreeBSD kernel + glibc based userland
3184 *-*-kfreebsd*gnu* )
3185 opsys=gnu-kfreebsd
3186 case "${canonical}" in
3187 alpha*) machine=alpha ;;
3188 amd64-*|x86_64-*) machine=amdx86-64 ;;
3189 ia64-*) machine=ia64 ;;
3190 i[3456]86-*) machine=intel386 ;;
3191 powerpc-*) machine=macppc ;;
3192 sparc-*) machine=sparc ;;
3193 sparc64-*) machine=sparc ;;
3194 esac
3197 ## NetBSD ports
3198 *-*-netbsd* )
3199 opsys=netbsd
3200 case "${canonical}" in
3201 alpha*) machine=alpha ;;
3202 x86_64-*) machine=amdx86-64 ;;
3203 arm-*) machine=arm ;;
3204 hppa-*) machine=hp800 ;;
3205 i[3456]86-*) machine=intel386 ;;
3206 m68k-*) machine=m68k ;;
3207 powerpc-*) machine=macppc ;;
3208 mips-*) machine=mips ;;
3209 mipse[bl]-*) machine=mips ;;
3210 sparc*-) machine=sparc ;;
3211 vax-*) machine=vax ;;
3212 esac
3215 ## OpenBSD ports
3216 *-*-openbsd* )
3217 opsys=openbsd
3218 case "${canonical}" in
3219 alpha*) machine=alpha ;;
3220 x86_64-*) machine=amdx86-64 ;;
3221 arm-*) machine=arm ;;
3222 hppa-*) machine=hp800 ;;
3223 i386-*) machine=intel386 ;;
3224 powerpc-*) machine=macppc ;;
3225 sparc*) machine=sparc ;;
3226 vax-*) machine=vax ;;
3227 esac
3230 alpha*-*-linux-gnu* )
3231 machine=alpha opsys=gnu-linux
3234 arm*-*-linux-gnu* )
3235 machine=arm opsys=gnu-linux
3238 ## Apple Darwin / Mac OS X
3239 *-apple-darwin* )
3240 case "${canonical}" in
3241 i[3456]86-* ) machine=intel386 ;;
3242 powerpc-* ) machine=macppc ;;
3243 x86_64-* ) machine=amdx86-64 ;;
3244 * ) unported=yes ;;
3245 esac
3246 opsys=darwin
3247 # Define CPP as follows to make autoconf work correctly.
3248 CPP="${CC-cc} -E -no-cpp-precomp"
3249 # Use fink packages if available.
3250 if test -d /sw/include && test -d /sw/lib; then
3251 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3252 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3253 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3257 ## HP 9000 series 700 and 800, running HP/UX
3258 hppa*-hp-hpux10.2* )
3259 machine=hp800 opsys=hpux10-20
3261 hppa*-hp-hpux1[1-9]* )
3262 machine=hp800 opsys=hpux11
3263 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3266 hppa*-*-linux-gnu* )
3267 machine=hp800 opsys=gnu-linux
3270 ## IBM machines
3271 s390-*-linux-gnu* )
3272 machine=ibms390 opsys=gnu-linux
3274 s390x-*-linux-gnu* )
3275 machine=ibms390x opsys=gnu-linux
3277 rs6000-ibm-aix4.[23]* )
3278 machine=ibmrs6000 opsys=aix4-2
3280 powerpc-ibm-aix4.[23]* )
3281 machine=ibmrs6000 opsys=aix4-2
3283 rs6000-ibm-aix[56]* )
3284 machine=ibmrs6000 opsys=aix4-2
3286 powerpc-ibm-aix[56]* )
3287 machine=ibmrs6000 opsys=aix4-2
3290 ## Macintosh PowerPC
3291 powerpc*-*-linux-gnu* )
3292 machine=macppc opsys=gnu-linux
3295 ## Silicon Graphics machines
3296 ## Iris 4D
3297 mips-sgi-irix6.5 )
3298 machine=iris4d opsys=irix6-5
3299 # Without defining _LANGUAGE_C, things get masked out in the headers
3300 # so that, for instance, grepping for `free' in stdlib.h fails and
3301 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3302 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3303 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3306 ## Suns
3307 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3308 machine=sparc opsys=gnu-linux
3311 *-sun-solaris* \
3312 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3313 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3314 case "${canonical}" in
3315 i[3456]86-*-* ) machine=intel386 ;;
3316 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3317 sparc* ) machine=sparc ;;
3318 * ) unported=yes ;;
3319 esac
3320 case "${canonical}" in
3321 *-sunos5.6* | *-solaris2.6* )
3322 opsys=sol2-6
3323 NON_GNU_CPP=/usr/ccs/lib/cpp
3324 RANLIB="ar -ts"
3326 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3327 opsys=sol2-6
3328 emacs_check_sunpro_c=yes
3329 NON_GNU_CPP=/usr/ccs/lib/cpp
3331 *-sunos5* | *-solaris* )
3332 opsys=sol2-10
3333 emacs_check_sunpro_c=yes
3334 NON_GNU_CPP=/usr/ccs/lib/cpp
3336 esac
3337 ## Watch out for a compiler that we know will not work.
3338 case "${canonical}" in
3339 *-solaris* | *-sunos5* )
3340 if [ "x$CC" = x/usr/ucb/cc ]; then
3341 ## /usr/ucb/cc doesn't work;
3342 ## we should find some other compiler that does work.
3343 unset CC
3346 *) ;;
3347 esac
3350 ## IA-64
3351 ia64*-*-linux* )
3352 machine=ia64 opsys=gnu-linux
3355 ## Intel 386 machines where we don't care about the manufacturer.
3356 i[3456]86-*-* )
3357 machine=intel386
3358 case "${canonical}" in
3359 *-cygwin ) opsys=cygwin ;;
3360 *-darwin* ) opsys=darwin
3361 CPP="${CC-cc} -E -no-cpp-precomp"
3363 *-linux-gnu* ) opsys=gnu-linux ;;
3364 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3365 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3366 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3367 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3368 esac
3371 ## m68k Linux-based GNU system
3372 m68k-*-linux-gnu* )
3373 machine=m68k opsys=gnu-linux
3376 ## Mips Linux-based GNU system
3377 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3378 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3379 machine=mips opsys=gnu-linux
3382 ## AMD x86-64 Linux-based GNU system
3383 x86_64-*-linux-gnu* )
3384 machine=amdx86-64 opsys=gnu-linux
3387 ## Tensilica Xtensa Linux-based GNU system
3388 xtensa*-*-linux-gnu* )
3389 machine=xtensa opsys=gnu-linux
3392 ## SuperH Linux-based GNU system
3393 sh[34]*-*-linux-gnu* )
3394 machine=sh3 opsys=gnu-linux
3398 unported=yes
3400 esac
3402 ### If the code above didn't choose an operating system, just choose
3403 ### an operating system based on the configuration name. You really
3404 ### only want to use this when you have no idea what the right
3405 ### operating system is; if you know what operating systems a machine
3406 ### runs, it's cleaner to make it explicit in the case statement
3407 ### above.
3408 if test x"${opsys}" = x; then
3409 case "${canonical}" in
3410 *-gnu* ) opsys=gnu ;;
3412 unported=yes
3414 esac
3419 if test $unported = yes; then
3420 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3421 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3424 machfile="m/${machine}.h"
3425 opsysfile="s/${opsys}.h"
3428 #### Choose a compiler.
3429 test -n "$CC" && cc_specified=yes
3431 # Save the value of CFLAGS that the user specified.
3432 SPECIFIED_CFLAGS="$CFLAGS"
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3461 done
3462 done
3463 IFS=$as_save_IFS
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3471 else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3478 if test -z "$ac_cv_prog_CC"; then
3479 ac_ct_CC=$CC
3480 # Extract the first word of "gcc", so it can be a program name with args.
3481 set dummy gcc; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 if test -n "$ac_ct_CC"; then
3488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_ac_ct_CC="gcc"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3501 done
3502 done
3503 IFS=$as_save_IFS
3507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3508 if test -n "$ac_ct_CC"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510 $as_echo "$ac_ct_CC" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3516 if test "x$ac_ct_CC" = x; then
3517 CC=""
3518 else
3519 case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3524 esac
3525 CC=$ac_ct_CC
3527 else
3528 CC="$ac_cv_prog_CC"
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}cc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CC="${ac_tool_prefix}cc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3572 if test -z "$CC"; then
3573 # Extract the first word of "cc", so it can be a program name with args.
3574 set dummy cc; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583 ac_prog_rejected=no
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3592 ac_prog_rejected=yes
3593 continue
3595 ac_cv_prog_CC="cc"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3599 done
3600 done
3601 IFS=$as_save_IFS
3603 if test $ac_prog_rejected = yes; then
3604 # We found a bogon in the path, so make sure we never use it.
3605 set dummy $ac_cv_prog_CC
3606 shift
3607 if test $# != 0; then
3608 # We chose a different compiler from the bogus one.
3609 # However, it has the same basename, so the bogon will be chosen
3610 # first if we set CC to just the basename; use the full file name.
3611 shift
3612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 for ac_prog in cl.exe
3632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3655 IFS=$as_save_IFS
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3669 test -n "$CC" && break
3670 done
3672 if test -z "$CC"; then
3673 ac_ct_CC=$CC
3674 for ac_prog in cl.exe
3676 # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy $ac_prog; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -n "$ac_ct_CC"; then
3684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_ac_ct_CC="$ac_prog"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3697 done
3698 done
3699 IFS=$as_save_IFS
3703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3704 if test -n "$ac_ct_CC"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3706 $as_echo "$ac_ct_CC" >&6; }
3707 else
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3713 test -n "$ac_ct_CC" && break
3714 done
3716 if test "x$ac_ct_CC" = x; then
3717 CC=""
3718 else
3719 case $cross_compiling:$ac_tool_warned in
3720 yes:)
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3723 ac_tool_warned=yes ;;
3724 esac
3725 CC=$ac_ct_CC
3732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error "no acceptable C compiler found in \$PATH
3735 See \`config.log' for more details." "$LINENO" 5; }
3737 # Provide some information about the compiler.
3738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3739 set X $ac_compile
3740 ac_compiler=$2
3741 for ac_option in --version -v -V -qversion; do
3742 { { ac_try="$ac_compiler $ac_option >&5"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3750 ac_status=$?
3751 if test -s conftest.err; then
3752 sed '10a\
3753 ... rest of stderr output deleted ...
3754 10q' conftest.err >conftest.er1
3755 cat conftest.er1 >&5
3757 rm -f conftest.er1 conftest.err
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }
3760 done
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3766 main ()
3770 return 0;
3772 _ACEOF
3773 ac_clean_files_save=$ac_clean_files
3774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3775 # Try to create an executable without -o first, disregard a.out.
3776 # It will help us diagnose broken compilers, and finding out an intuition
3777 # of exeext.
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3779 $as_echo_n "checking whether the C compiler works... " >&6; }
3780 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3782 # The possible output files:
3783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3785 ac_rmfiles=
3786 for ac_file in $ac_files
3788 case $ac_file in
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3791 esac
3792 done
3793 rm -f $ac_rmfiles
3795 if { { ac_try="$ac_link_default"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_link_default") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3809 # so that the user can short-circuit this test for compilers unknown to
3810 # Autoconf.
3811 for ac_file in $ac_files ''
3813 test -f "$ac_file" || continue
3814 case $ac_file in
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3817 [ab].out )
3818 # We found the default executable, but exeext='' is most
3819 # certainly right.
3820 break;;
3821 *.* )
3822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3823 then :; else
3824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3826 # We set ac_cv_exeext here because the later test for it is not
3827 # safe: cross compilers may not add the suffix if given an `-o'
3828 # argument, so we may need to know it at that point already.
3829 # Even if this section looks crufty: it has the advantage of
3830 # actually working.
3831 break;;
3833 break;;
3834 esac
3835 done
3836 test "$ac_cv_exeext" = no && ac_cv_exeext=
3838 else
3839 ac_file=''
3841 if test -z "$ac_file"; then :
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3849 { as_fn_set_status 77
3850 as_fn_error "C compiler cannot create executables
3851 See \`config.log' for more details." "$LINENO" 5; }; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854 $as_echo "yes" >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3859 $as_echo "$ac_file" >&6; }
3860 ac_exeext=$ac_cv_exeext
3862 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3863 ac_clean_files=$ac_clean_files_save
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3865 $as_echo_n "checking for suffix of executables... " >&6; }
3866 if { { ac_try="$ac_link"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 $as_echo "$ac_try_echo"; } >&5
3873 (eval "$ac_link") 2>&5
3874 ac_status=$?
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }; then :
3877 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3878 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3879 # work properly (i.e., refer to `conftest.exe'), while it won't with
3880 # `rm'.
3881 for ac_file in conftest.exe conftest conftest.*; do
3882 test -f "$ac_file" || continue
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3886 break;;
3887 * ) break;;
3888 esac
3889 done
3890 else
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot compute suffix of executables: cannot compile and link
3894 See \`config.log' for more details." "$LINENO" 5; }
3896 rm -f conftest conftest$ac_cv_exeext
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3898 $as_echo "$ac_cv_exeext" >&6; }
3900 rm -f conftest.$ac_ext
3901 EXEEXT=$ac_cv_exeext
3902 ac_exeext=$EXEEXT
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #include <stdio.h>
3907 main ()
3909 FILE *f = fopen ("conftest.out", "w");
3910 return ferror (f) || fclose (f) != 0;
3913 return 0;
3915 _ACEOF
3916 ac_clean_files="$ac_clean_files conftest.out"
3917 # Check that the compiler produces executables we can run. If not, either
3918 # the compiler is broken, or we cross compile.
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3920 $as_echo_n "checking whether we are cross compiling... " >&6; }
3921 if test "$cross_compiling" != yes; then
3922 { { ac_try="$ac_link"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_link") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }
3933 if { ac_try='./conftest$ac_cv_exeext'
3934 { { case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_try") 2>&5
3941 ac_status=$?
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }; }; then
3944 cross_compiling=no
3945 else
3946 if test "$cross_compiling" = maybe; then
3947 cross_compiling=yes
3948 else
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error "cannot run C compiled programs.
3952 If you meant to cross compile, use \`--host'.
3953 See \`config.log' for more details." "$LINENO" 5; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3958 $as_echo "$cross_compiling" >&6; }
3960 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3961 ac_clean_files=$ac_clean_files_save
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3963 $as_echo_n "checking for suffix of object files... " >&6; }
3964 if test "${ac_cv_objext+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3971 main ()
3975 return 0;
3977 _ACEOF
3978 rm -f conftest.o conftest.obj
3979 if { { ac_try="$ac_compile"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985 $as_echo "$ac_try_echo"; } >&5
3986 (eval "$ac_compile") 2>&5
3987 ac_status=$?
3988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989 test $ac_status = 0; }; then :
3990 for ac_file in conftest.o conftest.obj conftest.*; do
3991 test -f "$ac_file" || continue;
3992 case $ac_file in
3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3995 break;;
3996 esac
3997 done
3998 else
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error "cannot compute suffix of object files: cannot compile
4005 See \`config.log' for more details." "$LINENO" 5; }
4007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4010 $as_echo "$ac_cv_objext" >&6; }
4011 OBJEXT=$ac_cv_objext
4012 ac_objext=$OBJEXT
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4014 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4015 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4017 else
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4022 main ()
4024 #ifndef __GNUC__
4025 choke me
4026 #endif
4029 return 0;
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_compiler_gnu=yes
4034 else
4035 ac_compiler_gnu=no
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4042 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4043 if test $ac_compiler_gnu = yes; then
4044 GCC=yes
4045 else
4046 GCC=
4048 ac_test_CFLAGS=${CFLAGS+set}
4049 ac_save_CFLAGS=$CFLAGS
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4051 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4052 if test "${ac_cv_prog_cc_g+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4057 ac_cv_prog_cc_g=no
4058 CFLAGS="-g"
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4063 main ()
4067 return 0;
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071 ac_cv_prog_cc_g=yes
4072 else
4073 CFLAGS=""
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 main ()
4082 return 0;
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4087 else
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4089 CFLAGS="-g"
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4094 main ()
4098 return 0;
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_cv_prog_cc_g=yes
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4112 $as_echo "$ac_cv_prog_cc_g" >&6; }
4113 if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4117 CFLAGS="-g -O2"
4118 else
4119 CFLAGS="-g"
4121 else
4122 if test "$GCC" = yes; then
4123 CFLAGS="-O2"
4124 else
4125 CFLAGS=
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4130 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 ac_cv_prog_cc_c89=no
4134 ac_save_CC=$CC
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <stdarg.h>
4138 #include <stdio.h>
4139 #include <sys/types.h>
4140 #include <sys/stat.h>
4141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4142 struct buf { int x; };
4143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4144 static char *e (p, i)
4145 char **p;
4146 int i;
4148 return p[i];
4150 static char *f (char * (*g) (char **, int), char **p, ...)
4152 char *s;
4153 va_list v;
4154 va_start (v,p);
4155 s = g (p, va_arg (v,int));
4156 va_end (v);
4157 return s;
4160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4161 function prototypes and stuff, but not '\xHH' hex character constants.
4162 These don't provoke an error unfortunately, instead are silently treated
4163 as 'x'. The following induces an error, until -std is added to get
4164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4165 array size at least. It's necessary to write '\x00'==0 to get something
4166 that's true only with -std. */
4167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4170 inside strings and character constants. */
4171 #define FOO(x) 'x'
4172 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4174 int test (int i, double x);
4175 struct s1 {int (*f) (int a);};
4176 struct s2 {int (*f) (double a);};
4177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4178 int argc;
4179 char **argv;
4181 main ()
4183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4185 return 0;
4187 _ACEOF
4188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4189 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4191 CC="$ac_save_CC $ac_arg"
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_prog_cc_c89=$ac_arg
4195 rm -f core conftest.err conftest.$ac_objext
4196 test "x$ac_cv_prog_cc_c89" != "xno" && break
4197 done
4198 rm -f conftest.$ac_ext
4199 CC=$ac_save_CC
4202 # AC_CACHE_VAL
4203 case "x$ac_cv_prog_cc_c89" in
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4206 $as_echo "none needed" >&6; } ;;
4207 xno)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209 $as_echo "unsupported" >&6; } ;;
4211 CC="$CC $ac_cv_prog_cc_c89"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4213 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4214 esac
4215 if test "x$ac_cv_prog_cc_c89" != xno; then :
4219 ac_ext=c
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226 # On Suns, sometimes $CPP names a directory.
4227 if test -n "$CPP" && test -d "$CPP"; then
4228 CPP=
4231 ## If not using gcc, and on Solaris, and no CPP specified, see if
4232 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4233 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4234 test x"$CPP" = x; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4236 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4238 if test "${emacs_cv_sunpro_c+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4245 main ()
4247 #ifndef __SUNPRO_C
4248 fail;
4249 #endif
4252 return 0;
4254 _ACEOF
4255 if ac_fn_c_try_link "$LINENO"; then :
4256 emacs_cv_sunpro_c=yes
4257 else
4258 emacs_cv_sunpro_c=no
4260 rm -f core conftest.err conftest.$ac_objext \
4261 conftest$ac_exeext conftest.$ac_ext
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4265 $as_echo "$emacs_cv_sunpro_c" >&6; }
4267 if test x"$emacs_cv_sunpro_c" = xyes; then
4268 NON_GNU_CPP="$CC -E -Xs"
4272 #### Some systems specify a CPP to use unless we are using GCC.
4273 #### Now that we know whether we are using GCC, we can decide whether
4274 #### to use that one.
4275 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4276 then
4277 CPP="$NON_GNU_CPP"
4280 #### Some systems specify a CC to use unless we are using GCC.
4281 #### Now that we know whether we are using GCC, we can decide whether
4282 #### to use that one.
4283 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4284 test x$cc_specified != xyes
4285 then
4286 CC="$NON_GNU_CC"
4289 if test x$GCC = xyes; then
4290 C_OPTIMIZE_SWITCH=-O2
4291 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4292 else
4293 C_OPTIMIZE_SWITCH=-O
4294 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4303 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4304 # On Suns, sometimes $CPP names a directory.
4305 if test -n "$CPP" && test -d "$CPP"; then
4306 CPP=
4308 if test -z "$CPP"; then
4309 if test "${ac_cv_prog_CPP+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 # Double quotes because CPP needs to be expanded
4313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4315 ac_preproc_ok=false
4316 for ac_c_preproc_warn_flag in '' yes
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #ifdef __STDC__
4327 # include <limits.h>
4328 #else
4329 # include <assert.h>
4330 #endif
4331 Syntax error
4332 _ACEOF
4333 if ac_fn_c_try_cpp "$LINENO"; then :
4335 else
4336 # Broken: fails on valid input.
4337 continue
4339 rm -f conftest.err conftest.$ac_ext
4341 # OK, works on sane cases. Now check whether nonexistent headers
4342 # can be detected and how.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <ac_nonexistent.h>
4346 _ACEOF
4347 if ac_fn_c_try_cpp "$LINENO"; then :
4348 # Broken: success on invalid input.
4349 continue
4350 else
4351 # Passes both tests.
4352 ac_preproc_ok=:
4353 break
4355 rm -f conftest.err conftest.$ac_ext
4357 done
4358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4359 rm -f conftest.err conftest.$ac_ext
4360 if $ac_preproc_ok; then :
4361 break
4364 done
4365 ac_cv_prog_CPP=$CPP
4368 CPP=$ac_cv_prog_CPP
4369 else
4370 ac_cv_prog_CPP=$CPP
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4373 $as_echo "$CPP" >&6; }
4374 ac_preproc_ok=false
4375 for ac_c_preproc_warn_flag in '' yes
4377 # Use a header file that comes with gcc, so configuring glibc
4378 # with a fresh cross-compiler works.
4379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380 # <limits.h> exists even on freestanding compilers.
4381 # On the NeXT, cc -E runs the code through the compiler's parser,
4382 # not just through cpp. "Syntax error" is here to catch this case.
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #ifdef __STDC__
4386 # include <limits.h>
4387 #else
4388 # include <assert.h>
4389 #endif
4390 Syntax error
4391 _ACEOF
4392 if ac_fn_c_try_cpp "$LINENO"; then :
4394 else
4395 # Broken: fails on valid input.
4396 continue
4398 rm -f conftest.err conftest.$ac_ext
4400 # OK, works on sane cases. Now check whether nonexistent headers
4401 # can be detected and how.
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #include <ac_nonexistent.h>
4405 _ACEOF
4406 if ac_fn_c_try_cpp "$LINENO"; then :
4407 # Broken: success on invalid input.
4408 continue
4409 else
4410 # Passes both tests.
4411 ac_preproc_ok=:
4412 break
4414 rm -f conftest.err conftest.$ac_ext
4416 done
4417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4418 rm -f conftest.err conftest.$ac_ext
4419 if $ac_preproc_ok; then :
4421 else
4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4425 See \`config.log' for more details." "$LINENO" 5; }
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4436 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4437 if test "${ac_cv_path_GREP+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -z "$GREP"; then
4441 ac_path_GREP_found=false
4442 # Loop through the user's path and test for each of PROGNAME-LIST
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_prog in grep ggrep; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4451 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4452 # Check for GNU ac_path_GREP and select it if it is found.
4453 # Check for GNU $ac_path_GREP
4454 case `"$ac_path_GREP" --version 2>&1` in
4455 *GNU*)
4456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4458 ac_count=0
4459 $as_echo_n 0123456789 >"conftest.in"
4460 while :
4462 cat "conftest.in" "conftest.in" >"conftest.tmp"
4463 mv "conftest.tmp" "conftest.in"
4464 cp "conftest.in" "conftest.nl"
4465 $as_echo 'GREP' >> "conftest.nl"
4466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468 as_fn_arith $ac_count + 1 && ac_count=$as_val
4469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4470 # Best one so far, save it but keep looking for a better one
4471 ac_cv_path_GREP="$ac_path_GREP"
4472 ac_path_GREP_max=$ac_count
4474 # 10*(2^10) chars as input seems more than enough
4475 test $ac_count -gt 10 && break
4476 done
4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4478 esac
4480 $ac_path_GREP_found && break 3
4481 done
4482 done
4483 done
4484 IFS=$as_save_IFS
4485 if test -z "$ac_cv_path_GREP"; then
4486 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488 else
4489 ac_cv_path_GREP=$GREP
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4494 $as_echo "$ac_cv_path_GREP" >&6; }
4495 GREP="$ac_cv_path_GREP"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4499 $as_echo_n "checking for egrep... " >&6; }
4500 if test "${ac_cv_path_EGREP+set}" = set; then :
4501 $as_echo_n "(cached) " >&6
4502 else
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4505 else
4506 if test -z "$EGREP"; then
4507 ac_path_EGREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in egrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4518 # Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520 case `"$ac_path_EGREP" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524 ac_count=0
4525 $as_echo_n 0123456789 >"conftest.in"
4526 while :
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP="$ac_path_EGREP"
4538 ac_path_EGREP_max=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4546 $ac_path_EGREP_found && break 3
4547 done
4548 done
4549 done
4550 IFS=$as_save_IFS
4551 if test -z "$ac_cv_path_EGREP"; then
4552 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554 else
4555 ac_cv_path_EGREP=$EGREP
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4561 $as_echo "$ac_cv_path_EGREP" >&6; }
4562 EGREP="$ac_cv_path_EGREP"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4566 $as_echo_n "checking for ANSI C header files... " >&6; }
4567 if test "${ac_cv_header_stdc+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <stdlib.h>
4573 #include <stdarg.h>
4574 #include <string.h>
4575 #include <float.h>
4578 main ()
4582 return 0;
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_header_stdc=yes
4587 else
4588 ac_cv_header_stdc=no
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <string.h>
4598 _ACEOF
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "memchr" >/dev/null 2>&1; then :
4602 else
4603 ac_cv_header_stdc=no
4605 rm -f conftest*
4609 if test $ac_cv_header_stdc = yes; then
4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <stdlib.h>
4615 _ACEOF
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "free" >/dev/null 2>&1; then :
4619 else
4620 ac_cv_header_stdc=no
4622 rm -f conftest*
4626 if test $ac_cv_header_stdc = yes; then
4627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628 if test "$cross_compiling" = yes; then :
4630 else
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #include <ctype.h>
4634 #include <stdlib.h>
4635 #if ((' ' & 0x0FF) == 0x020)
4636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4638 #else
4639 # define ISLOWER(c) \
4640 (('a' <= (c) && (c) <= 'i') \
4641 || ('j' <= (c) && (c) <= 'r') \
4642 || ('s' <= (c) && (c) <= 'z'))
4643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4644 #endif
4646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4648 main ()
4650 int i;
4651 for (i = 0; i < 256; i++)
4652 if (XOR (islower (i), ISLOWER (i))
4653 || toupper (i) != TOUPPER (i))
4654 return 2;
4655 return 0;
4657 _ACEOF
4658 if ac_fn_c_try_run "$LINENO"; then :
4660 else
4661 ac_cv_header_stdc=no
4663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4664 conftest.$ac_objext conftest.beam conftest.$ac_ext
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4670 $as_echo "$ac_cv_header_stdc" >&6; }
4671 if test $ac_cv_header_stdc = yes; then
4673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4679 inttypes.h stdint.h unistd.h
4680 do :
4681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4684 eval as_val=\$$as_ac_Header
4685 if test "x$as_val" = x""yes; then :
4686 cat >>confdefs.h <<_ACEOF
4687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688 _ACEOF
4692 done
4696 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4697 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4698 MINIX=yes
4699 else
4700 MINIX=
4704 if test "$MINIX" = yes; then
4706 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4709 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4712 $as_echo "#define _MINIX 1" >>confdefs.h
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4718 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4719 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4725 # define __EXTENSIONS__ 1
4726 $ac_includes_default
4728 main ()
4732 return 0;
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736 ac_cv_safe_to_define___extensions__=yes
4737 else
4738 ac_cv_safe_to_define___extensions__=no
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4743 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4744 test $ac_cv_safe_to_define___extensions__ = yes &&
4745 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4747 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4749 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4751 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4753 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4757 ### Use -Wno-pointer-sign if the compiler supports it
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4759 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4760 SAVE_CFLAGS="$CFLAGS"
4761 CFLAGS="$CFLAGS -Wno-pointer-sign"
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4766 main ()
4770 return 0;
4772 _ACEOF
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774 has_option=yes
4775 else
4776 has_option=no
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 if test $has_option = yes; then
4780 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4783 $as_echo "$has_option" >&6; }
4784 CFLAGS="$SAVE_CFLAGS"
4785 unset has_option
4786 unset SAVE_CFLAGS
4788 ### Use -Wdeclaration-after-statement if the compiler supports it
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4790 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4791 SAVE_CFLAGS="$CFLAGS"
4792 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4797 main ()
4801 return 0;
4803 _ACEOF
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805 has_option=yes
4806 else
4807 has_option=no
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 if test $has_option = yes; then
4811 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4814 $as_echo "$has_option" >&6; }
4815 CFLAGS="$SAVE_CFLAGS"
4816 unset has_option
4817 unset SAVE_CFLAGS
4819 #### Some other nice autoconf tests.
4821 ac_ext=c
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4827 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4828 # On Suns, sometimes $CPP names a directory.
4829 if test -n "$CPP" && test -d "$CPP"; then
4830 CPP=
4832 if test -z "$CPP"; then
4833 if test "${ac_cv_prog_CPP+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 # Double quotes because CPP needs to be expanded
4837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4839 ac_preproc_ok=false
4840 for ac_c_preproc_warn_flag in '' yes
4842 # Use a header file that comes with gcc, so configuring glibc
4843 # with a fresh cross-compiler works.
4844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845 # <limits.h> exists even on freestanding compilers.
4846 # On the NeXT, cc -E runs the code through the compiler's parser,
4847 # not just through cpp. "Syntax error" is here to catch this case.
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #ifdef __STDC__
4851 # include <limits.h>
4852 #else
4853 # include <assert.h>
4854 #endif
4855 Syntax error
4856 _ACEOF
4857 if ac_fn_c_try_cpp "$LINENO"; then :
4859 else
4860 # Broken: fails on valid input.
4861 continue
4863 rm -f conftest.err conftest.$ac_ext
4865 # OK, works on sane cases. Now check whether nonexistent headers
4866 # can be detected and how.
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 #include <ac_nonexistent.h>
4870 _ACEOF
4871 if ac_fn_c_try_cpp "$LINENO"; then :
4872 # Broken: success on invalid input.
4873 continue
4874 else
4875 # Passes both tests.
4876 ac_preproc_ok=:
4877 break
4879 rm -f conftest.err conftest.$ac_ext
4881 done
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then :
4885 break
4888 done
4889 ac_cv_prog_CPP=$CPP
4892 CPP=$ac_cv_prog_CPP
4893 else
4894 ac_cv_prog_CPP=$CPP
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4898 ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 #ifdef __STDC__
4910 # include <limits.h>
4911 #else
4912 # include <assert.h>
4913 #endif
4914 Syntax error
4915 _ACEOF
4916 if ac_fn_c_try_cpp "$LINENO"; then :
4918 else
4919 # Broken: fails on valid input.
4920 continue
4922 rm -f conftest.err conftest.$ac_ext
4924 # OK, works on sane cases. Now check whether nonexistent headers
4925 # can be detected and how.
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 #include <ac_nonexistent.h>
4929 _ACEOF
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4931 # Broken: success on invalid input.
4932 continue
4933 else
4934 # Passes both tests.
4935 ac_preproc_ok=:
4936 break
4938 rm -f conftest.err conftest.$ac_ext
4940 done
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then :
4945 else
4946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4948 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4949 See \`config.log' for more details." "$LINENO" 5; }
4952 ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958 # Find a good install program. We prefer a C program (faster),
4959 # so one script is as good as another. But avoid the broken or
4960 # incompatible versions:
4961 # SysV /etc/install, /usr/sbin/install
4962 # SunOS /usr/etc/install
4963 # IRIX /sbin/install
4964 # AIX /bin/install
4965 # AmigaOS /C/install, which installs bootblocks on floppy discs
4966 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4967 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4968 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4969 # OS/2's system install, which has a completely different semantic
4970 # ./install, which can be erroneously created by make from ./install.sh.
4971 # Reject install programs that cannot install multiple files.
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4973 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4974 if test -z "$INSTALL"; then
4975 if test "${ac_cv_path_install+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 # Account for people who put trailing slashes in PATH elements.
4984 case $as_dir/ in #((
4985 ./ | .// | /[cC]/* | \
4986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4987 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4988 /usr/ucb/* ) ;;
4990 # OSF1 and SCO ODT 3.0 have their own names for install.
4991 # Don't use installbsd from OSF since it installs stuff as root
4992 # by default.
4993 for ac_prog in ginstall scoinst install; do
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4996 if test $ac_prog = install &&
4997 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4998 # AIX install. It has an incompatible calling convention.
5000 elif test $ac_prog = install &&
5001 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5002 # program-specific install script used by HP pwplus--don't use.
5004 else
5005 rm -rf conftest.one conftest.two conftest.dir
5006 echo one > conftest.one
5007 echo two > conftest.two
5008 mkdir conftest.dir
5009 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5010 test -s conftest.one && test -s conftest.two &&
5011 test -s conftest.dir/conftest.one &&
5012 test -s conftest.dir/conftest.two
5013 then
5014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5015 break 3
5019 done
5020 done
5022 esac
5024 done
5025 IFS=$as_save_IFS
5027 rm -rf conftest.one conftest.two conftest.dir
5030 if test "${ac_cv_path_install+set}" = set; then
5031 INSTALL=$ac_cv_path_install
5032 else
5033 # As a last resort, use the slow shell script. Don't cache a
5034 # value for INSTALL within a source directory, because that will
5035 # break other packages using the cache if that directory is
5036 # removed, or if the value is a relative name.
5037 INSTALL=$ac_install_sh
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5041 $as_echo "$INSTALL" >&6; }
5043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5044 # It thinks the first close brace ends the variable substitution.
5045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5051 if test "x$RANLIB" = x; then
5052 if test -n "$ac_tool_prefix"; then
5053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5054 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -n "$RANLIB"; then
5061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5074 done
5075 done
5076 IFS=$as_save_IFS
5080 RANLIB=$ac_cv_prog_RANLIB
5081 if test -n "$RANLIB"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5083 $as_echo "$RANLIB" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5091 if test -z "$ac_cv_prog_RANLIB"; then
5092 ac_ct_RANLIB=$RANLIB
5093 # Extract the first word of "ranlib", so it can be a program name with args.
5094 set dummy ranlib; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -n "$ac_ct_RANLIB"; then
5101 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_ac_ct_RANLIB="ranlib"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5114 done
5115 done
5116 IFS=$as_save_IFS
5120 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5121 if test -n "$ac_ct_RANLIB"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5123 $as_echo "$ac_ct_RANLIB" >&6; }
5124 else
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5129 if test "x$ac_ct_RANLIB" = x; then
5130 RANLIB=":"
5131 else
5132 case $cross_compiling:$ac_tool_warned in
5133 yes:)
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned=yes ;;
5137 esac
5138 RANLIB=$ac_ct_RANLIB
5140 else
5141 RANLIB="$ac_cv_prog_RANLIB"
5146 ## Although we're running on an amd64 kernel, we're actually compiling for
5147 ## the x86 architecture. The user should probably have provided an
5148 ## explicit --build to `configure', but if everything else than the kernel
5149 ## is running in i386 mode, we can help them out.
5150 if test "$machine" = "amdx86-64"; then
5151 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5152 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5156 if test "$ac_cv_have_decl_i386" = "yes"; then
5157 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5158 machine=intel386
5159 machfile="m/${machine}.h"
5163 # Extract the first word of "install-info", so it can be a program name with args.
5164 set dummy install-info; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 case $INSTALL_INFO in
5171 [\\/]* | ?:[\\/]*)
5172 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5188 IFS=$as_save_IFS
5191 esac
5193 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5194 if test -n "$INSTALL_INFO"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5196 $as_echo "$INSTALL_INFO" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 # Extract the first word of "install-info", so it can be a program name with args.
5204 set dummy install-info; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 case $INSTALL_INFO in
5211 [\\/]* | ?:[\\/]*)
5212 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in /usr/sbin
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5231 esac
5233 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5234 if test -n "$INSTALL_INFO"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5236 $as_echo "$INSTALL_INFO" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 # Extract the first word of "install-info", so it can be a program name with args.
5244 set dummy install-info; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 case $INSTALL_INFO in
5251 [\\/]* | ?:[\\/]*)
5252 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in /sbin
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5270 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
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 "gzip", so it can be a program name with args.
5285 set dummy gzip; 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_GZIP_PROG+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 case $GZIP_PROG in
5292 [\\/]* | ?:[\\/]*)
5293 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
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_GZIP_PROG="$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 GZIP_PROG=$ac_cv_path_GZIP_PROG
5315 if test -n "$GZIP_PROG"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5317 $as_echo "$GZIP_PROG" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5326 ## Need makeinfo >= 4.6 (?) to build the manuals.
5327 # Extract the first word of "makeinfo", so it can be a program name with args.
5328 set dummy makeinfo; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 case $MAKEINFO in
5335 [\\/]* | ?:[\\/]*)
5336 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5346 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5350 done
5351 done
5352 IFS=$as_save_IFS
5354 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5356 esac
5358 MAKEINFO=$ac_cv_path_MAKEINFO
5359 if test -n "$MAKEINFO"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5361 $as_echo "$MAKEINFO" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5368 if test "$MAKEINFO" != "no" && \
5369 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
5370 MAKEINFO=no
5373 ## Makeinfo is unusual. For a released Emacs, the manuals are
5374 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5375 ## therefore in the category of "special tools" not normally required, which
5376 ## configure does not have to check for (eg autoconf itself).
5377 ## In a Bazaar checkout on the other hand, the manuals are not included.
5378 ## So makeinfo is a requirement to build from Bazaar, and configure
5379 ## should test for it as it does for any other build requirement.
5380 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5381 ## with pre-built manuals, from a Bazaar checkout.
5382 if test "$MAKEINFO" = "no"; then
5383 if test "x${with_makeinfo}" = "xno"; then
5384 MAKEINFO=off
5385 elif test ! -e $srcdir/info/emacs; then
5386 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5387 source tree does not seem to have pre-built manuals in the \`info' directory.
5388 Either install a suitable version of makeinfo, or re-run configure
5389 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5394 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5395 then
5396 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5399 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5400 then
5401 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5405 late_LDFLAGS=$LDFLAGS
5406 if test "$GCC" = yes; then
5407 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5408 else
5409 LDFLAGS="$LDFLAGS -znocombreloc"
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5413 $as_echo_n "checking for -znocombreloc... " >&6; }
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 main(){return 0;}
5417 _ACEOF
5418 if ac_fn_c_try_link "$LINENO"; then :
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5420 $as_echo "yes" >&6; }
5421 else
5422 LDFLAGS=$late_LDFLAGS
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5426 rm -f core conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5429 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5432 # The value of CPP is a quoted variable reference, so we need to do this
5433 # to get its actual value...
5434 CPP=`eval "echo $CPP"`
5437 ### First figure out CFLAGS (which we use for running the compiler here)
5438 ### and REAL_CFLAGS (which we use for real compilation).
5439 ### The two are the same except when using GCC where we might use
5440 ### extra warning and profiling flags.
5442 ### If the CFLAGS env var is specified, we use that value
5443 ### instead of the default.
5445 if test "x$SPECIFIED_CFLAGS" = x; then
5446 CFLAGS="-g $C_OPTIMIZE_SWITCH"
5447 if test x$GCC = xyes; then
5448 REAL_CFLAGS="$CFLAGS $C_WARNINGS_SWITCH $PROFILING_CFLAGS"
5449 else
5450 REAL_CFLAGS="$CFLAGS"
5452 else
5453 REAL_CFLAGS="$CFLAGS"
5457 CANNOT_DUMP=no
5458 case "$opsys" in
5459 your-opsys-here)
5460 CANNOT_DUMP=yes
5462 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5465 esac
5469 UNEXEC_OBJ=unexelf.o
5470 case "$opsys" in
5471 aix4-2)
5472 UNEXEC_OBJ=unexaix.o
5474 cygwin)
5475 UNEXEC_OBJ=unexcw.o
5477 darwin)
5478 UNEXEC_OBJ=unexmacosx.o
5480 hpux10-20 | hpux11)
5481 UNEXEC_OBJ=unexhp9k800.o
5483 sol2-10)
5484 # Use the Solaris dldump() function, called from unexsol.c, to dump
5485 # emacs, instead of the generic ELF dump code found in unexelf.c.
5486 # The resulting binary has a complete symbol table, and is better
5487 # for debugging and other observability tools (debuggers, pstack, etc).
5489 # If you encounter a problem using dldump(), please consider sending
5490 # a message to the OpenSolaris tools-linking mailing list:
5491 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5493 # It is likely that dldump() works with older Solaris too, but this has
5494 # not been tested, so for now this change is for Solaris 10 or newer.
5495 UNEXEC_OBJ=unexsol.o
5497 esac
5499 LD_SWITCH_SYSTEM=
5500 case "$opsys" in
5501 freebsd)
5502 ## Let `ld' find image libs and similar things in /usr/local/lib.
5503 ## The system compiler, GCC, has apparently been modified to not
5504 ## look there, contrary to what a stock GCC would do.
5505 LD_SWITCH_SYSTEM=-L/usr/local/lib
5508 gnu-linux)
5509 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5510 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5513 netbsd)
5514 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5517 openbsd)
5518 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5519 ## otherwise Emacs dumps core on elf systems.
5520 LD_SWITCH_SYSTEM="-Z"
5522 esac
5525 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5527 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5528 ## which has not been defined yet. When this was handled with cpp,
5529 ## it was expanded to null when configure sourced the s/*.h file.
5530 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5531 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5532 ## (or somesuch), but because it is supposed to go at the _front_
5533 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5534 ## Compare with the gnu-linux case below, which added to the end
5535 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5536 ## LD_SWITCH_SYSTEM_TEMACS.
5537 case "$opsys" in
5538 netbsd|openbsd)
5539 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5540 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5541 esac
5544 C_SWITCH_MACHINE=
5545 if test "$machine" = "alpha"; then
5546 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5547 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5551 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5552 ## With ELF, make sure that all common symbols get allocated to in the
5553 ## data section. Otherwise, the dump of temacs may miss variables in
5554 ## the shared library that have been initialized. For example, with
5555 ## GNU libc, __malloc_initialized would normally be resolved to the
5556 ## shared library's .bss section, which is fatal.
5557 if test "x$GCC" = "xyes"; then
5558 C_SWITCH_MACHINE="-fno-common"
5559 else
5560 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5562 else
5563 UNEXEC_OBJ=unexalpha.o
5570 C_SWITCH_SYSTEM=
5571 ## Some programs in src produce warnings saying certain subprograms
5572 ## are too complex and need a MAXMEM value greater than 2000 for
5573 ## additional optimization. --nils@exp-math.uni-essen.de
5574 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5575 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5576 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5577 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5581 LIBS_SYSTEM=
5582 case "$opsys" in
5583 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5584 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5586 freebsd) LIBS_SYSTEM="-lutil" ;;
5588 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5590 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5592 ## Motif needs -lgen.
5593 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5594 esac
5598 ### Make sure subsequent tests use flags consistent with the build flags.
5600 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5601 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5602 else
5603 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5608 # Check whether --enable-largefile was given.
5609 if test "${enable_largefile+set}" = set; then :
5610 enableval=$enable_largefile;
5613 if test "$enable_largefile" != no; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5616 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5617 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 ac_cv_sys_largefile_CC=no
5621 if test "$GCC" != yes; then
5622 ac_save_CC=$CC
5623 while :; do
5624 # IRIX 6.2 and later do not support large files by default,
5625 # so use the C compiler's -n32 option if that helps.
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <sys/types.h>
5629 /* Check that off_t can represent 2**63 - 1 correctly.
5630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5631 since some C++ compilers masquerading as C compilers
5632 incorrectly reject 9223372036854775807. */
5633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5635 && LARGE_OFF_T % 2147483647 == 1)
5636 ? 1 : -1];
5638 main ()
5642 return 0;
5644 _ACEOF
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 break
5648 rm -f core conftest.err conftest.$ac_objext
5649 CC="$CC -n32"
5650 if ac_fn_c_try_compile "$LINENO"; then :
5651 ac_cv_sys_largefile_CC=' -n32'; break
5653 rm -f core conftest.err conftest.$ac_objext
5654 break
5655 done
5656 CC=$ac_save_CC
5657 rm -f conftest.$ac_ext
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5661 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5662 if test "$ac_cv_sys_largefile_CC" != no; then
5663 CC=$CC$ac_cv_sys_largefile_CC
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5667 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5668 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 while :; do
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <sys/types.h>
5675 /* Check that off_t can represent 2**63 - 1 correctly.
5676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5677 since some C++ compilers masquerading as C compilers
5678 incorrectly reject 9223372036854775807. */
5679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5681 && LARGE_OFF_T % 2147483647 == 1)
5682 ? 1 : -1];
5684 main ()
5688 return 0;
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 ac_cv_sys_file_offset_bits=no; break
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #define _FILE_OFFSET_BITS 64
5698 #include <sys/types.h>
5699 /* Check that off_t can represent 2**63 - 1 correctly.
5700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5701 since some C++ compilers masquerading as C compilers
5702 incorrectly reject 9223372036854775807. */
5703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5705 && LARGE_OFF_T % 2147483647 == 1)
5706 ? 1 : -1];
5708 main ()
5712 return 0;
5714 _ACEOF
5715 if ac_fn_c_try_compile "$LINENO"; then :
5716 ac_cv_sys_file_offset_bits=64; break
5718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 ac_cv_sys_file_offset_bits=unknown
5720 break
5721 done
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5724 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5725 case $ac_cv_sys_file_offset_bits in #(
5726 no | unknown) ;;
5728 cat >>confdefs.h <<_ACEOF
5729 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5730 _ACEOF
5732 esac
5733 rm -rf conftest*
5734 if test $ac_cv_sys_file_offset_bits = unknown; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5736 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5737 if test "${ac_cv_sys_large_files+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 while :; do
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <sys/types.h>
5744 /* Check that off_t can represent 2**63 - 1 correctly.
5745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5746 since some C++ compilers masquerading as C compilers
5747 incorrectly reject 9223372036854775807. */
5748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5750 && LARGE_OFF_T % 2147483647 == 1)
5751 ? 1 : -1];
5753 main ()
5757 return 0;
5759 _ACEOF
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 ac_cv_sys_large_files=no; break
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5766 #define _LARGE_FILES 1
5767 #include <sys/types.h>
5768 /* Check that off_t can represent 2**63 - 1 correctly.
5769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5770 since some C++ compilers masquerading as C compilers
5771 incorrectly reject 9223372036854775807. */
5772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5774 && LARGE_OFF_T % 2147483647 == 1)
5775 ? 1 : -1];
5777 main ()
5781 return 0;
5783 _ACEOF
5784 if ac_fn_c_try_compile "$LINENO"; then :
5785 ac_cv_sys_large_files=1; break
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 ac_cv_sys_large_files=unknown
5789 break
5790 done
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5793 $as_echo "$ac_cv_sys_large_files" >&6; }
5794 case $ac_cv_sys_large_files in #(
5795 no | unknown) ;;
5797 cat >>confdefs.h <<_ACEOF
5798 #define _LARGE_FILES $ac_cv_sys_large_files
5799 _ACEOF
5801 esac
5802 rm -rf conftest*
5808 ## If user specified a crt-dir, use that unconditionally.
5809 if test "X$CRT_DIR" = "X"; then
5811 case "$canonical" in
5812 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5813 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5814 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5815 ## For anything else (eg /usr/lib32), it is up the user to specify
5816 ## the location (bug#5655).
5817 ## Test for crtn.o, not just the directory, because sometimes the
5818 ## directory exists but does not have the relevant files (bug#1287).
5819 ## FIXME better to test for binary compatibility somehow.
5820 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5823 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5824 esac
5826 case "$opsys" in
5827 hpux10-20) CRT_DIR=/lib ;;
5828 esac
5830 ## Default is /usr/lib.
5831 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5833 else
5835 ## Some platforms don't use any of these files, so it is not
5836 ## appropriate to put this test outside the if block.
5837 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5838 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5844 LIB_MATH=-lm
5845 LIB_STANDARD=
5846 START_FILES=
5848 case $opsys in
5849 cygwin )
5850 LIB_MATH=
5851 START_FILES='ecrt0.o'
5853 darwin )
5854 ## Adding -lm confuses the dynamic linker, so omit it.
5855 LIB_MATH=
5856 START_FILES='pre-crt0.o'
5858 freebsd )
5859 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5860 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5862 gnu-linux | gnu-kfreebsd )
5863 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5864 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5866 hpux10-20 | hpux11 )
5867 LIB_STANDARD=-lc
5868 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5870 netbsd | openbsd )
5871 if test -f $CRT_DIR/crti.o; then
5872 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5873 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5874 else
5875 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5876 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5879 esac
5887 if test "${with_sound}" != "no"; then
5888 # Sound support for GNU/Linux and the free BSDs.
5889 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5890 do :
5891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5893 eval as_val=\$$as_ac_Header
5894 if test "x$as_val" = x""yes; then :
5895 cat >>confdefs.h <<_ACEOF
5896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5897 _ACEOF
5898 have_sound_header=yes
5901 done
5903 # Emulation library used on NetBSD.
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5905 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5906 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 ac_check_lib_save_LIBS=$LIBS
5910 LIBS="-lossaudio $LIBS"
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5914 /* Override any GCC internal prototype to avoid an error.
5915 Use char because int might match the return type of a GCC
5916 builtin and then its argument prototype would still apply. */
5917 #ifdef __cplusplus
5918 extern "C"
5919 #endif
5920 char _oss_ioctl ();
5922 main ()
5924 return _oss_ioctl ();
5926 return 0;
5928 _ACEOF
5929 if ac_fn_c_try_link "$LINENO"; then :
5930 ac_cv_lib_ossaudio__oss_ioctl=yes
5931 else
5932 ac_cv_lib_ossaudio__oss_ioctl=no
5934 rm -f core conftest.err conftest.$ac_objext \
5935 conftest$ac_exeext conftest.$ac_ext
5936 LIBS=$ac_check_lib_save_LIBS
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5939 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5940 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5941 LIBSOUND=-lossaudio
5942 else
5943 LIBSOUND=
5948 ALSA_REQUIRED=1.0.0
5949 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5951 succeeded=no
5953 # Extract the first word of "pkg-config", so it can be a program name with args.
5954 set dummy pkg-config; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 case $PKG_CONFIG in
5961 [\\/]* | ?:[\\/]*)
5962 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5976 done
5977 done
5978 IFS=$as_save_IFS
5980 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5982 esac
5984 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5985 if test -n "$PKG_CONFIG"; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5987 $as_echo "$PKG_CONFIG" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5995 if test "$PKG_CONFIG" = "no" ; then
5996 HAVE_ALSA=no
5997 else
5998 PKG_CONFIG_MIN_VERSION=0.9.0
5999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6001 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6003 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 $as_echo "yes" >&6; }
6006 succeeded=yes
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6009 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6010 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6012 $as_echo "$ALSA_CFLAGS" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6015 $as_echo_n "checking ALSA_LIBS... " >&6; }
6016 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6018 $as_echo "$ALSA_LIBS" >&6; }
6019 else
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6022 ALSA_CFLAGS=""
6023 ALSA_LIBS=""
6024 ## If we have a custom action on failure, don't print errors, but
6025 ## do set a variable so people can do so.
6026 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6032 else
6033 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6034 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6038 if test $succeeded = yes; then
6039 HAVE_ALSA=yes
6040 else
6041 HAVE_ALSA=no
6044 if test $HAVE_ALSA = yes; then
6045 SAVE_CFLAGS="$CFLAGS"
6046 SAVE_LDFLAGS="$LDFLAGS"
6047 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6048 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <asoundlib.h>
6053 main ()
6055 snd_lib_error_set_handler (0);
6057 return 0;
6059 _ACEOF
6060 if ac_fn_c_try_compile "$LINENO"; then :
6061 emacs_alsa_normal=yes
6062 else
6063 emacs_alsa_normal=no
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 if test "$emacs_alsa_normal" != yes; then
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 #include <alsa/asoundlib.h>
6071 main ()
6073 snd_lib_error_set_handler (0);
6075 return 0;
6077 _ACEOF
6078 if ac_fn_c_try_compile "$LINENO"; then :
6079 emacs_alsa_subdir=yes
6080 else
6081 emacs_alsa_subdir=no
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 if test "$emacs_alsa_subdir" != yes; then
6085 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6087 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6090 CFLAGS="$SAVE_CFLAGS"
6091 LDFLAGS="$SAVE_LDFLAGS"
6092 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6093 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6095 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6099 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6100 case "$opsys" in
6101 gnu-linux|freebsd|netbsd)
6103 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6106 esac
6112 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6113 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6114 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6115 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6116 sys/utsname.h pwd.h utmp.h
6117 do :
6118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6120 eval as_val=\$$as_ac_Header
6121 if test "x$as_val" = x""yes; then :
6122 cat >>confdefs.h <<_ACEOF
6123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6124 _ACEOF
6128 done
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6132 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #include <sys/personality.h>
6137 main ()
6139 personality (PER_LINUX32)
6141 return 0;
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 emacs_cv_personality_linux32=yes
6146 else
6147 emacs_cv_personality_linux32=no
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6151 $as_echo "$emacs_cv_personality_linux32" >&6; }
6153 if test $emacs_cv_personality_linux32 = yes; then
6155 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6159 for ac_header in term.h
6160 do :
6161 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6162 if test "x$ac_cv_header_term_h" = x""yes; then :
6163 cat >>confdefs.h <<_ACEOF
6164 #define HAVE_TERM_H 1
6165 _ACEOF
6169 done
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6172 $as_echo_n "checking for ANSI C header files... " >&6; }
6173 if test "${ac_cv_header_stdc+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 #include <stdlib.h>
6179 #include <stdarg.h>
6180 #include <string.h>
6181 #include <float.h>
6184 main ()
6188 return 0;
6190 _ACEOF
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_header_stdc=yes
6193 else
6194 ac_cv_header_stdc=no
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 if test $ac_cv_header_stdc = yes; then
6199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <string.h>
6204 _ACEOF
6205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6206 $EGREP "memchr" >/dev/null 2>&1; then :
6208 else
6209 ac_cv_header_stdc=no
6211 rm -f conftest*
6215 if test $ac_cv_header_stdc = yes; then
6216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 #include <stdlib.h>
6221 _ACEOF
6222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6223 $EGREP "free" >/dev/null 2>&1; then :
6225 else
6226 ac_cv_header_stdc=no
6228 rm -f conftest*
6232 if test $ac_cv_header_stdc = yes; then
6233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6234 if test "$cross_compiling" = yes; then :
6236 else
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 #include <ctype.h>
6240 #include <stdlib.h>
6241 #if ((' ' & 0x0FF) == 0x020)
6242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6244 #else
6245 # define ISLOWER(c) \
6246 (('a' <= (c) && (c) <= 'i') \
6247 || ('j' <= (c) && (c) <= 'r') \
6248 || ('s' <= (c) && (c) <= 'z'))
6249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6250 #endif
6252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6254 main ()
6256 int i;
6257 for (i = 0; i < 256; i++)
6258 if (XOR (islower (i), ISLOWER (i))
6259 || toupper (i) != TOUPPER (i))
6260 return 2;
6261 return 0;
6263 _ACEOF
6264 if ac_fn_c_try_run "$LINENO"; then :
6266 else
6267 ac_cv_header_stdc=no
6269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6270 conftest.$ac_objext conftest.beam conftest.$ac_ext
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6276 $as_echo "$ac_cv_header_stdc" >&6; }
6277 if test $ac_cv_header_stdc = yes; then
6279 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6284 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6285 if test "${ac_cv_header_time+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6290 #include <sys/types.h>
6291 #include <sys/time.h>
6292 #include <time.h>
6295 main ()
6297 if ((struct tm *) 0)
6298 return 0;
6300 return 0;
6302 _ACEOF
6303 if ac_fn_c_try_compile "$LINENO"; then :
6304 ac_cv_header_time=yes
6305 else
6306 ac_cv_header_time=no
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6311 $as_echo "$ac_cv_header_time" >&6; }
6312 if test $ac_cv_header_time = yes; then
6314 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6318 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6319 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6320 ac_have_decl=1
6321 else
6322 ac_have_decl=0
6325 cat >>confdefs.h <<_ACEOF
6326 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6327 _ACEOF
6329 if test $ac_cv_have_decl_sys_siglist != yes; then
6330 # For Tru64, at least:
6331 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6332 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6333 ac_have_decl=1
6334 else
6335 ac_have_decl=0
6338 cat >>confdefs.h <<_ACEOF
6339 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6340 _ACEOF
6342 if test $ac_cv_have_decl___sys_siglist = yes; then
6344 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6349 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6350 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6355 #include <sys/types.h>
6356 #include <sys/wait.h>
6357 #ifndef WEXITSTATUS
6358 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6359 #endif
6360 #ifndef WIFEXITED
6361 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6362 #endif
6365 main ()
6367 int s;
6368 wait (&s);
6369 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6371 return 0;
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 ac_cv_header_sys_wait_h=yes
6376 else
6377 ac_cv_header_sys_wait_h=no
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6382 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6383 if test $ac_cv_header_sys_wait_h = yes; then
6385 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6391 $as_echo_n "checking for struct utimbuf... " >&6; }
6392 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 #ifdef TIME_WITH_SYS_TIME
6398 #include <sys/time.h>
6399 #include <time.h>
6400 #else
6401 #ifdef HAVE_SYS_TIME_H
6402 #include <sys/time.h>
6403 #else
6404 #include <time.h>
6405 #endif
6406 #endif
6407 #ifdef HAVE_UTIME_H
6408 #include <utime.h>
6409 #endif
6411 main ()
6413 static struct utimbuf x; x.actime = x.modtime;
6415 return 0;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"; then :
6419 emacs_cv_struct_utimbuf=yes
6420 else
6421 emacs_cv_struct_utimbuf=no
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6426 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6427 if test $emacs_cv_struct_utimbuf = yes; then
6429 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6434 $as_echo_n "checking return type of signal handlers... " >&6; }
6435 if test "${ac_cv_type_signal+set}" = set; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 #include <sys/types.h>
6441 #include <signal.h>
6444 main ()
6446 return *(signal (0, 0)) (0) == 1;
6448 return 0;
6450 _ACEOF
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 ac_cv_type_signal=int
6453 else
6454 ac_cv_type_signal=void
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6459 $as_echo "$ac_cv_type_signal" >&6; }
6461 cat >>confdefs.h <<_ACEOF
6462 #define RETSIGTYPE $ac_cv_type_signal
6463 _ACEOF
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6468 $as_echo_n "checking for speed_t... " >&6; }
6469 if test "${emacs_cv_speed_t+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 #include <termios.h>
6476 main ()
6478 speed_t x = 1;
6480 return 0;
6482 _ACEOF
6483 if ac_fn_c_try_compile "$LINENO"; then :
6484 emacs_cv_speed_t=yes
6485 else
6486 emacs_cv_speed_t=no
6488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6491 $as_echo "$emacs_cv_speed_t" >&6; }
6492 if test $emacs_cv_speed_t = yes; then
6494 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6499 $as_echo_n "checking for struct timeval... " >&6; }
6500 if test "${emacs_cv_struct_timeval+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #ifdef TIME_WITH_SYS_TIME
6506 #include <sys/time.h>
6507 #include <time.h>
6508 #else
6509 #ifdef HAVE_SYS_TIME_H
6510 #include <sys/time.h>
6511 #else
6512 #include <time.h>
6513 #endif
6514 #endif
6516 main ()
6518 static struct timeval x; x.tv_sec = x.tv_usec;
6520 return 0;
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 emacs_cv_struct_timeval=yes
6525 else
6526 emacs_cv_struct_timeval=no
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6531 $as_echo "$emacs_cv_struct_timeval" >&6; }
6532 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6533 if test $emacs_cv_struct_timeval = yes; then
6535 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6540 $as_echo_n "checking for struct exception... " >&6; }
6541 if test "${emacs_cv_struct_exception+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546 #include <math.h>
6548 main ()
6550 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6552 return 0;
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 emacs_cv_struct_exception=yes
6557 else
6558 emacs_cv_struct_exception=no
6560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6563 $as_echo "$emacs_cv_struct_exception" >&6; }
6564 HAVE_EXCEPTION=$emacs_cv_struct_exception
6565 if test $emacs_cv_struct_exception != yes; then
6567 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6571 for ac_header in sys/socket.h
6572 do :
6573 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6574 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6575 cat >>confdefs.h <<_ACEOF
6576 #define HAVE_SYS_SOCKET_H 1
6577 _ACEOF
6581 done
6583 for ac_header in net/if.h
6584 do :
6585 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6586 #if HAVE_SYS_SOCKET_H
6587 #include <sys/socket.h>
6588 #endif
6590 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6591 cat >>confdefs.h <<_ACEOF
6592 #define HAVE_NET_IF_H 1
6593 _ACEOF
6597 done
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6601 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6602 if test "${ac_cv_struct_tm+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6607 #include <sys/types.h>
6608 #include <time.h>
6611 main ()
6613 struct tm tm;
6614 int *p = &tm.tm_sec;
6615 return !p;
6617 return 0;
6619 _ACEOF
6620 if ac_fn_c_try_compile "$LINENO"; then :
6621 ac_cv_struct_tm=time.h
6622 else
6623 ac_cv_struct_tm=sys/time.h
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6628 $as_echo "$ac_cv_struct_tm" >&6; }
6629 if test $ac_cv_struct_tm = sys/time.h; then
6631 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6635 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6636 #include <$ac_cv_struct_tm>
6639 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6641 cat >>confdefs.h <<_ACEOF
6642 #define HAVE_STRUCT_TM_TM_ZONE 1
6643 _ACEOF
6648 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6650 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6652 else
6653 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6655 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6656 ac_have_decl=1
6657 else
6658 ac_have_decl=0
6661 cat >>confdefs.h <<_ACEOF
6662 #define HAVE_DECL_TZNAME $ac_have_decl
6663 _ACEOF
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6666 $as_echo_n "checking for tzname... " >&6; }
6667 if test "${ac_cv_var_tzname+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #include <time.h>
6673 #if !HAVE_DECL_TZNAME
6674 extern char *tzname[];
6675 #endif
6678 main ()
6680 return tzname[0][0];
6682 return 0;
6684 _ACEOF
6685 if ac_fn_c_try_link "$LINENO"; then :
6686 ac_cv_var_tzname=yes
6687 else
6688 ac_cv_var_tzname=no
6690 rm -f core conftest.err conftest.$ac_objext \
6691 conftest$ac_exeext conftest.$ac_ext
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6694 $as_echo "$ac_cv_var_tzname" >&6; }
6695 if test $ac_cv_var_tzname = yes; then
6697 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6702 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6704 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6706 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6710 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6711 #if HAVE_SYS_SOCKET_H
6712 #include <sys/socket.h>
6713 #endif
6714 #if HAVE_NET_IF_H
6715 #include <net/if.h>
6716 #endif
6718 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6720 cat >>confdefs.h <<_ACEOF
6721 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6722 _ACEOF
6726 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6727 #if HAVE_SYS_SOCKET_H
6728 #include <sys/socket.h>
6729 #endif
6730 #if HAVE_NET_IF_H
6731 #include <net/if.h>
6732 #endif
6734 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6736 cat >>confdefs.h <<_ACEOF
6737 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6738 _ACEOF
6742 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6743 #if HAVE_SYS_SOCKET_H
6744 #include <sys/socket.h>
6745 #endif
6746 #if HAVE_NET_IF_H
6747 #include <net/if.h>
6748 #endif
6750 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6752 cat >>confdefs.h <<_ACEOF
6753 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6754 _ACEOF
6758 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6759 #if HAVE_SYS_SOCKET_H
6760 #include <sys/socket.h>
6761 #endif
6762 #if HAVE_NET_IF_H
6763 #include <net/if.h>
6764 #endif
6766 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6768 cat >>confdefs.h <<_ACEOF
6769 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6770 _ACEOF
6774 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$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_addr" = x""yes; then :
6784 cat >>confdefs.h <<_ACEOF
6785 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6786 _ACEOF
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6794 $as_echo_n "checking for function prototypes... " >&6; }
6795 if test "$ac_cv_prog_cc_c89" != no; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6797 $as_echo "yes" >&6; }
6799 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6802 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6810 $as_echo_n "checking for working volatile... " >&6; }
6811 if test "${ac_cv_c_volatile+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6818 main ()
6821 volatile int x;
6822 int * volatile y = (int *) 0;
6823 return !x && !y;
6825 return 0;
6827 _ACEOF
6828 if ac_fn_c_try_compile "$LINENO"; then :
6829 ac_cv_c_volatile=yes
6830 else
6831 ac_cv_c_volatile=no
6833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6836 $as_echo "$ac_cv_c_volatile" >&6; }
6837 if test $ac_cv_c_volatile = no; then
6839 $as_echo "#define volatile /**/" >>confdefs.h
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6844 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6845 if test "${ac_cv_c_const+set}" = set; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6852 main ()
6854 /* FIXME: Include the comments suggested by Paul. */
6855 #ifndef __cplusplus
6856 /* Ultrix mips cc rejects this. */
6857 typedef int charset[2];
6858 const charset cs;
6859 /* SunOS 4.1.1 cc rejects this. */
6860 char const *const *pcpcc;
6861 char **ppc;
6862 /* NEC SVR4.0.2 mips cc rejects this. */
6863 struct point {int x, y;};
6864 static struct point const zero = {0,0};
6865 /* AIX XL C 1.02.0.0 rejects this.
6866 It does not let you subtract one const X* pointer from another in
6867 an arm of an if-expression whose if-part is not a constant
6868 expression */
6869 const char *g = "string";
6870 pcpcc = &g + (g ? g-g : 0);
6871 /* HPUX 7.0 cc rejects these. */
6872 ++pcpcc;
6873 ppc = (char**) pcpcc;
6874 pcpcc = (char const *const *) ppc;
6875 { /* SCO 3.2v4 cc rejects this. */
6876 char *t;
6877 char const *s = 0 ? (char *) 0 : (char const *) 0;
6879 *t++ = 0;
6880 if (s) return 0;
6882 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6883 int x[] = {25, 17};
6884 const int *foo = &x[0];
6885 ++foo;
6887 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6888 typedef const int *iptr;
6889 iptr p = 0;
6890 ++p;
6892 { /* AIX XL C 1.02.0.0 rejects this saying
6893 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6894 struct s { int j; const int *ap[3]; };
6895 struct s *b; b->j = 5;
6897 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6898 const int foo = 10;
6899 if (!foo) return 0;
6901 return !cs[0] && !zero.x;
6902 #endif
6905 return 0;
6907 _ACEOF
6908 if ac_fn_c_try_compile "$LINENO"; then :
6909 ac_cv_c_const=yes
6910 else
6911 ac_cv_c_const=no
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6916 $as_echo "$ac_cv_c_const" >&6; }
6917 if test $ac_cv_c_const = no; then
6919 $as_echo "#define const /**/" >>confdefs.h
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6924 $as_echo_n "checking for void * support... " >&6; }
6925 if test "${emacs_cv_void_star+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6932 main ()
6934 void * foo;
6936 return 0;
6938 _ACEOF
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940 emacs_cv_void_star=yes
6941 else
6942 emacs_cv_void_star=no
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6947 $as_echo "$emacs_cv_void_star" >&6; }
6948 if test $emacs_cv_void_star = yes; then
6949 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6951 else
6952 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6960 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6961 set x ${MAKE-make}
6962 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6963 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 cat >conftest.make <<\_ACEOF
6967 SHELL = /bin/sh
6968 all:
6969 @echo '@@@%%%=$(MAKE)=@@@%%%'
6970 _ACEOF
6971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6972 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6973 *@@@%%%=?*=@@@%%%*)
6974 eval ac_cv_prog_make_${ac_make}_set=yes;;
6976 eval ac_cv_prog_make_${ac_make}_set=no;;
6977 esac
6978 rm -f conftest.make
6980 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6982 $as_echo "yes" >&6; }
6983 SET_MAKE=
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 SET_MAKE="MAKE=${MAKE-make}"
6991 DEPFLAGS=
6992 MKDEPDIR=":"
6993 deps_frag=deps.mk
6994 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
6996 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6997 HAVE_GNU_MAKE=no
6998 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6999 if test "x$testval" != x; then
7000 HAVE_GNU_MAKE=yes
7001 else
7002 ac_enable_autodepend=no
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7005 $as_echo "$HAVE_GNU_MAKE" >&6; }
7006 if test $HAVE_GNU_MAKE = yes; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7008 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7009 SAVE_CFLAGS="$CFLAGS"
7010 CFLAGS="$CFLAGS -MMD -MF deps.d"
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7015 main ()
7019 return 0;
7021 _ACEOF
7022 if ac_fn_c_try_compile "$LINENO"; then :
7024 else
7025 ac_enable_autodepend=no
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 CFLAGS="$SAVE_CFLAGS"
7029 test -f deps.d || ac_enable_autodepend=no
7030 rm -rf deps.d
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7032 $as_echo "$ac_enable_autodepend" >&6; }
7034 if test $ac_enable_autodepend = yes; then
7035 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7036 ## In parallel builds, another make might create depdir between
7037 ## the first test and mkdir, so stick another test on the end.
7038 ## Or use mkinstalldirs? mkdir -p is not portable.
7039 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7040 deps_frag=autodeps.mk
7043 deps_frag=$srcdir/src/$deps_frag
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7050 $as_echo_n "checking for long file names... " >&6; }
7051 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 ac_cv_sys_long_file_names=yes
7055 # Test for long file names in all the places we know might matter:
7056 # . the current directory, where building will happen
7057 # $prefix/lib where we will be installing things
7058 # $exec_prefix/lib likewise
7059 # $TMPDIR if set, where it might want to write temporary files
7060 # /tmp where it might want to write temporary files
7061 # /var/tmp likewise
7062 # /usr/tmp likewise
7063 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7064 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7065 # in the usual case where exec_prefix is '${prefix}'.
7066 case $ac_dir in #(
7067 . | /* | ?:[\\/]*) ;; #(
7068 *) continue;;
7069 esac
7070 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7071 ac_xdir=$ac_dir/cf$$
7072 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7073 ac_tf1=$ac_xdir/conftest9012345
7074 ac_tf2=$ac_xdir/conftest9012346
7075 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7076 ac_cv_sys_long_file_names=no
7077 rm -f -r "$ac_xdir" 2>/dev/null
7078 test $ac_cv_sys_long_file_names = no && break
7079 done
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7082 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7083 if test $ac_cv_sys_long_file_names = yes; then
7085 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7090 #### Choose a window system.
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7093 $as_echo_n "checking for X... " >&6; }
7096 # Check whether --with-x was given.
7097 if test "${with_x+set}" = set; then :
7098 withval=$with_x;
7101 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7102 if test "x$with_x" = xno; then
7103 # The user explicitly disabled X.
7104 have_x=disabled
7105 else
7106 case $x_includes,$x_libraries in #(
7107 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7108 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 # One or both of the vars are not set, and there is no cached value.
7112 ac_x_includes=no ac_x_libraries=no
7113 rm -f -r conftest.dir
7114 if mkdir conftest.dir; then
7115 cd conftest.dir
7116 cat >Imakefile <<'_ACEOF'
7117 incroot:
7118 @echo incroot='${INCROOT}'
7119 usrlibdir:
7120 @echo usrlibdir='${USRLIBDIR}'
7121 libdir:
7122 @echo libdir='${LIBDIR}'
7123 _ACEOF
7124 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7125 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7126 for ac_var in incroot usrlibdir libdir; do
7127 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7128 done
7129 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7130 for ac_extension in a so sl dylib la dll; do
7131 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7132 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7133 ac_im_usrlibdir=$ac_im_libdir; break
7135 done
7136 # Screen out bogus values from the imake configuration. They are
7137 # bogus both because they are the default anyway, and because
7138 # using them would break gcc on systems where it needs fixed includes.
7139 case $ac_im_incroot in
7140 /usr/include) ac_x_includes= ;;
7141 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7142 esac
7143 case $ac_im_usrlibdir in
7144 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7145 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7146 esac
7148 cd ..
7149 rm -f -r conftest.dir
7152 # Standard set of common directories for X headers.
7153 # Check X11 before X11Rn because it is often a symlink to the current release.
7154 ac_x_header_dirs='
7155 /usr/X11/include
7156 /usr/X11R7/include
7157 /usr/X11R6/include
7158 /usr/X11R5/include
7159 /usr/X11R4/include
7161 /usr/include/X11
7162 /usr/include/X11R7
7163 /usr/include/X11R6
7164 /usr/include/X11R5
7165 /usr/include/X11R4
7167 /usr/local/X11/include
7168 /usr/local/X11R7/include
7169 /usr/local/X11R6/include
7170 /usr/local/X11R5/include
7171 /usr/local/X11R4/include
7173 /usr/local/include/X11
7174 /usr/local/include/X11R7
7175 /usr/local/include/X11R6
7176 /usr/local/include/X11R5
7177 /usr/local/include/X11R4
7179 /usr/X386/include
7180 /usr/x386/include
7181 /usr/XFree86/include/X11
7183 /usr/include
7184 /usr/local/include
7185 /usr/unsupported/include
7186 /usr/athena/include
7187 /usr/local/x11r5/include
7188 /usr/lpp/Xamples/include
7190 /usr/openwin/include
7191 /usr/openwin/share/include'
7193 if test "$ac_x_includes" = no; then
7194 # Guess where to find include files, by looking for Xlib.h.
7195 # First, try using that file with no special directory specified.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #include <X11/Xlib.h>
7199 _ACEOF
7200 if ac_fn_c_try_cpp "$LINENO"; then :
7201 # We can compile using X headers with no special include directory.
7202 ac_x_includes=
7203 else
7204 for ac_dir in $ac_x_header_dirs; do
7205 if test -r "$ac_dir/X11/Xlib.h"; then
7206 ac_x_includes=$ac_dir
7207 break
7209 done
7211 rm -f conftest.err conftest.$ac_ext
7212 fi # $ac_x_includes = no
7214 if test "$ac_x_libraries" = no; then
7215 # Check for the libraries.
7216 # See if we find them without any special options.
7217 # Don't add to $LIBS permanently.
7218 ac_save_LIBS=$LIBS
7219 LIBS="-lX11 $LIBS"
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <X11/Xlib.h>
7224 main ()
7226 XrmInitialize ()
7228 return 0;
7230 _ACEOF
7231 if ac_fn_c_try_link "$LINENO"; then :
7232 LIBS=$ac_save_LIBS
7233 # We can link X programs with no special library path.
7234 ac_x_libraries=
7235 else
7236 LIBS=$ac_save_LIBS
7237 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7239 # Don't even attempt the hair of trying to link an X program!
7240 for ac_extension in a so sl dylib la dll; do
7241 if test -r "$ac_dir/libX11.$ac_extension"; then
7242 ac_x_libraries=$ac_dir
7243 break 2
7245 done
7246 done
7248 rm -f core conftest.err conftest.$ac_objext \
7249 conftest$ac_exeext conftest.$ac_ext
7250 fi # $ac_x_libraries = no
7252 case $ac_x_includes,$ac_x_libraries in #(
7253 no,* | *,no | *\'*)
7254 # Didn't find X, or a directory has "'" in its name.
7255 ac_cv_have_x="have_x=no";; #(
7257 # Record where we found X for the cache.
7258 ac_cv_have_x="have_x=yes\
7259 ac_x_includes='$ac_x_includes'\
7260 ac_x_libraries='$ac_x_libraries'"
7261 esac
7263 ;; #(
7264 *) have_x=yes;;
7265 esac
7266 eval "$ac_cv_have_x"
7267 fi # $with_x != no
7269 if test "$have_x" != yes; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7271 $as_echo "$have_x" >&6; }
7272 no_x=yes
7273 else
7274 # If each of the values was on the command line, it overrides each guess.
7275 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7276 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7277 # Update the cache value to reflect the command line values.
7278 ac_cv_have_x="have_x=yes\
7279 ac_x_includes='$x_includes'\
7280 ac_x_libraries='$x_libraries'"
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7282 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7285 if test "$no_x" = yes; then
7286 window_system=none
7287 else
7288 window_system=x11
7291 ## Workaround for bug in autoconf <= 2.62.
7292 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7293 ## No need to do anything special for these standard directories.
7294 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7296 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7300 LD_SWITCH_X_SITE_AUX=
7301 LD_SWITCH_X_SITE_AUX_RPATH=
7302 if test "${x_libraries}" != NONE; then
7303 if test -n "${x_libraries}"; then
7304 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7305 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7306 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7308 x_default_search_path=""
7309 x_search_path=${x_libraries}
7310 if test -z "${x_search_path}"; then
7311 x_search_path=/usr/lib
7313 for x_library in `echo ${x_search_path}: | \
7314 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7315 x_search_path="\
7316 ${x_library}/X11/%L/%T/%N%C%S:\
7317 ${x_library}/X11/%l/%T/%N%C%S:\
7318 ${x_library}/X11/%T/%N%C%S:\
7319 ${x_library}/X11/%L/%T/%N%S:\
7320 ${x_library}/X11/%l/%T/%N%S:\
7321 ${x_library}/X11/%T/%N%S"
7322 if test x"${x_default_search_path}" = x; then
7323 x_default_search_path=${x_search_path}
7324 else
7325 x_default_search_path="${x_search_path}:${x_default_search_path}"
7327 done
7332 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7333 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7336 if test x"${x_includes}" = x; then
7337 bitmapdir=/usr/include/X11/bitmaps
7338 else
7339 # accumulate include directories that have X11 bitmap subdirectories
7340 bmd_acc="dummyval"
7341 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7342 if test -d "${bmd}/X11/bitmaps"; then
7343 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7345 if test -d "${bmd}/bitmaps"; then
7346 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7348 done
7349 if test ${bmd_acc} != "dummyval"; then
7350 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7354 HAVE_NS=no
7355 NS_IMPL_COCOA=no
7356 NS_IMPL_GNUSTEP=no
7357 tmp_CPPFLAGS="$CPPFLAGS"
7358 tmp_CFLAGS="$CFLAGS"
7359 CPPFLAGS="$CPPFLAGS -x objective-c"
7360 CFLAGS="$CFLAGS -x objective-c"
7361 TEMACS_LDFLAGS2="\${LDFLAGS}"
7362 if test "${with_ns}" != no; then
7363 if test "${opsys}" = darwin; then
7364 NS_IMPL_COCOA=yes
7365 ns_appdir=`pwd`/nextstep/Emacs.app/
7366 ns_appbindir=${ns_appdir}Contents/MacOS/
7367 ns_appresdir=${ns_appdir}Contents/Resources
7368 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7369 elif test -f $GNUSTEP_CONFIG_FILE; then
7370 NS_IMPL_GNUSTEP=yes
7371 ns_appdir=`pwd`/nextstep/Emacs.app/
7372 ns_appbindir=${ns_appdir}
7373 ns_appresdir=${ns_appdir}Resources
7374 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7375 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7376 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7377 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7378 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7379 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7380 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7381 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7382 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7383 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7384 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7385 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7386 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7387 LIB_STANDARD=
7388 START_FILES=
7389 TEMACS_LDFLAGS2=
7391 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7392 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7393 HAVE_NS=yes
7394 else
7395 as_fn_error "\`--with-ns' was specified, but the include
7396 files are missing or cannot be compiled." "$LINENO" 5
7400 NS_HAVE_NSINTEGER=yes
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #include <Foundation/NSObjCRuntime.h>
7405 main ()
7407 NSInteger i;
7409 return 0;
7411 _ACEOF
7412 if ac_fn_c_try_compile "$LINENO"; then :
7413 ns_have_nsinteger=yes
7414 else
7415 ns_have_nsinteger=no
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 if test $ns_have_nsinteger = no; then
7419 NS_HAVE_NSINTEGER=no
7424 ns_frag=/dev/null
7425 NS_OBJ=
7426 NS_SUPPORT=
7427 if test "${HAVE_NS}" = yes; then
7428 window_system=nextstep
7429 with_xft=no
7430 # set up packaging dirs
7431 exec_prefix=${ns_appbindir}
7432 libexecdir=${ns_appbindir}/libexec
7433 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7434 prefix=${ns_appresdir}
7436 ns_frag=$srcdir/src/ns.mk
7437 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7438 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7440 CFLAGS="$tmp_CFLAGS"
7441 CPPFLAGS="$tmp_CPPFLAGS"
7447 case "${window_system}" in
7448 x11 )
7449 HAVE_X_WINDOWS=yes
7450 HAVE_X11=yes
7451 case "${with_x_toolkit}" in
7452 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7453 motif ) USE_X_TOOLKIT=MOTIF ;;
7454 gtk ) with_gtk=yes
7455 USE_X_TOOLKIT=none ;;
7456 gtk3 ) with_gtk3=yes
7457 USE_X_TOOLKIT=none ;;
7458 no ) USE_X_TOOLKIT=none ;;
7459 * ) USE_X_TOOLKIT=maybe ;;
7460 esac
7462 nextstep | none )
7463 HAVE_X_WINDOWS=no
7464 HAVE_X11=no
7465 USE_X_TOOLKIT=none
7467 esac
7469 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7470 # Extract the first word of "X", so it can be a program name with args.
7471 set dummy X; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 if test -n "$HAVE_XSERVER"; then
7478 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_HAVE_XSERVER="true"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 break 2
7491 done
7492 done
7493 IFS=$as_save_IFS
7495 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7498 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7499 if test -n "$HAVE_XSERVER"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7501 $as_echo "$HAVE_XSERVER" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7508 if test "$HAVE_XSERVER" = true ||
7509 test -n "$DISPLAY" ||
7510 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7511 as_fn_error "You seem to be running X, but no X development libraries
7512 were found. You should install the relevant development files for X
7513 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7514 sure you have development files for image handling, i.e.
7515 tiff, gif, jpeg, png and xpm.
7516 If you are sure you want Emacs compiled without X window support, pass
7517 --without-x
7518 to configure." "$LINENO" 5
7522 ### If we're using X11, we should use the X menu package.
7523 HAVE_MENUS=no
7524 case ${HAVE_X11} in
7525 yes ) HAVE_MENUS=yes ;;
7526 esac
7528 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7529 # Assume not, until told otherwise.
7530 GNU_MALLOC=yes
7531 doug_lea_malloc=yes
7532 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7533 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7535 else
7536 doug_lea_malloc=no
7539 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7540 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7542 else
7543 doug_lea_malloc=no
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7547 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7548 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553 extern void (* __after_morecore_hook)();
7555 main ()
7557 __after_morecore_hook = 0
7559 return 0;
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"; then :
7563 emacs_cv_var___after_morecore_hook=yes
7564 else
7565 emacs_cv_var___after_morecore_hook=no
7567 rm -f core conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7571 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7572 if test $emacs_cv_var___after_morecore_hook = no; then
7573 doug_lea_malloc=no
7577 system_malloc=no
7578 case "$opsys" in
7579 ## darwin ld insists on the use of malloc routines in the System framework.
7580 darwin|sol2-10) system_malloc=yes ;;
7581 esac
7583 if test "${system_malloc}" = "yes"; then
7585 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7587 GNU_MALLOC=no
7588 GNU_MALLOC_reason="
7589 (The GNU allocators don't work with this system configuration.)"
7590 GMALLOC_OBJ=
7591 VMLIMIT_OBJ=
7592 else
7593 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7594 VMLIMIT_OBJ=vm-limit.o
7599 if test "$doug_lea_malloc" = "yes" ; then
7600 if test "$GNU_MALLOC" = yes ; then
7601 GNU_MALLOC_reason="
7602 (Using Doug Lea's new malloc from the GNU C Library.)"
7605 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7608 ## Use mmap directly for allocating larger buffers.
7609 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7610 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7611 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7612 case "$opsys" in
7613 gnu*) REL_ALLOC=no ;;
7614 esac
7617 if test x"${REL_ALLOC}" = x; then
7618 REL_ALLOC=${GNU_MALLOC}
7621 use_mmap_for_buffers=no
7622 case "$opsys" in
7623 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7624 esac
7629 for ac_header in $ac_header_list
7630 do :
7631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7634 eval as_val=\$$as_ac_Header
7635 if test "x$as_val" = x""yes; then :
7636 cat >>confdefs.h <<_ACEOF
7637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7638 _ACEOF
7642 done
7651 for ac_func in getpagesize
7652 do :
7653 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7654 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_GETPAGESIZE 1
7657 _ACEOF
7660 done
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7663 $as_echo_n "checking for working mmap... " >&6; }
7664 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7666 else
7667 if test "$cross_compiling" = yes; then :
7668 ac_cv_func_mmap_fixed_mapped=no
7669 else
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672 $ac_includes_default
7673 /* malloc might have been renamed as rpl_malloc. */
7674 #undef malloc
7676 /* Thanks to Mike Haertel and Jim Avera for this test.
7677 Here is a matrix of mmap possibilities:
7678 mmap private not fixed
7679 mmap private fixed at somewhere currently unmapped
7680 mmap private fixed at somewhere already mapped
7681 mmap shared not fixed
7682 mmap shared fixed at somewhere currently unmapped
7683 mmap shared fixed at somewhere already mapped
7684 For private mappings, we should verify that changes cannot be read()
7685 back from the file, nor mmap's back from the file at a different
7686 address. (There have been systems where private was not correctly
7687 implemented like the infamous i386 svr4.0, and systems where the
7688 VM page cache was not coherent with the file system buffer cache
7689 like early versions of FreeBSD and possibly contemporary NetBSD.)
7690 For shared mappings, we should conversely verify that changes get
7691 propagated back to all the places they're supposed to be.
7693 Grep wants private fixed already mapped.
7694 The main things grep needs to know about mmap are:
7695 * does it exist and is it safe to write into the mmap'd area
7696 * how to use it (BSD variants) */
7698 #include <fcntl.h>
7699 #include <sys/mman.h>
7701 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7702 char *malloc ();
7703 #endif
7705 /* This mess was copied from the GNU getpagesize.h. */
7706 #ifndef HAVE_GETPAGESIZE
7707 # ifdef _SC_PAGESIZE
7708 # define getpagesize() sysconf(_SC_PAGESIZE)
7709 # else /* no _SC_PAGESIZE */
7710 # ifdef HAVE_SYS_PARAM_H
7711 # include <sys/param.h>
7712 # ifdef EXEC_PAGESIZE
7713 # define getpagesize() EXEC_PAGESIZE
7714 # else /* no EXEC_PAGESIZE */
7715 # ifdef NBPG
7716 # define getpagesize() NBPG * CLSIZE
7717 # ifndef CLSIZE
7718 # define CLSIZE 1
7719 # endif /* no CLSIZE */
7720 # else /* no NBPG */
7721 # ifdef NBPC
7722 # define getpagesize() NBPC
7723 # else /* no NBPC */
7724 # ifdef PAGESIZE
7725 # define getpagesize() PAGESIZE
7726 # endif /* PAGESIZE */
7727 # endif /* no NBPC */
7728 # endif /* no NBPG */
7729 # endif /* no EXEC_PAGESIZE */
7730 # else /* no HAVE_SYS_PARAM_H */
7731 # define getpagesize() 8192 /* punt totally */
7732 # endif /* no HAVE_SYS_PARAM_H */
7733 # endif /* no _SC_PAGESIZE */
7735 #endif /* no HAVE_GETPAGESIZE */
7738 main ()
7740 char *data, *data2, *data3;
7741 int i, pagesize;
7742 int fd, fd2;
7744 pagesize = getpagesize ();
7746 /* First, make a file with some known garbage in it. */
7747 data = (char *) malloc (pagesize);
7748 if (!data)
7749 return 1;
7750 for (i = 0; i < pagesize; ++i)
7751 *(data + i) = rand ();
7752 umask (0);
7753 fd = creat ("conftest.mmap", 0600);
7754 if (fd < 0)
7755 return 2;
7756 if (write (fd, data, pagesize) != pagesize)
7757 return 3;
7758 close (fd);
7760 /* Next, check that the tail of a page is zero-filled. File must have
7761 non-zero length, otherwise we risk SIGBUS for entire page. */
7762 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7763 if (fd2 < 0)
7764 return 4;
7765 data2 = "";
7766 if (write (fd2, data2, 1) != 1)
7767 return 5;
7768 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7769 if (data2 == MAP_FAILED)
7770 return 6;
7771 for (i = 0; i < pagesize; ++i)
7772 if (*(data2 + i))
7773 return 7;
7774 close (fd2);
7775 if (munmap (data2, pagesize))
7776 return 8;
7778 /* Next, try to mmap the file at a fixed address which already has
7779 something else allocated at it. If we can, also make sure that
7780 we see the same garbage. */
7781 fd = open ("conftest.mmap", O_RDWR);
7782 if (fd < 0)
7783 return 9;
7784 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7785 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7786 return 10;
7787 for (i = 0; i < pagesize; ++i)
7788 if (*(data + i) != *(data2 + i))
7789 return 11;
7791 /* Finally, make sure that changes to the mapped area do not
7792 percolate back to the file as seen by read(). (This is a bug on
7793 some variants of i386 svr4.0.) */
7794 for (i = 0; i < pagesize; ++i)
7795 *(data2 + i) = *(data2 + i) + 1;
7796 data3 = (char *) malloc (pagesize);
7797 if (!data3)
7798 return 12;
7799 if (read (fd, data3, pagesize) != pagesize)
7800 return 13;
7801 for (i = 0; i < pagesize; ++i)
7802 if (*(data + i) != *(data3 + i))
7803 return 14;
7804 close (fd);
7805 return 0;
7807 _ACEOF
7808 if ac_fn_c_try_run "$LINENO"; then :
7809 ac_cv_func_mmap_fixed_mapped=yes
7810 else
7811 ac_cv_func_mmap_fixed_mapped=no
7813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7814 conftest.$ac_objext conftest.beam conftest.$ac_ext
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7819 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7820 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7822 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7825 rm -f conftest.mmap conftest.txt
7827 if test $use_mmap_for_buffers = yes; then
7829 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
7831 REL_ALLOC=no
7834 LIBS="$LIBS_SYSTEM $LIBS"
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7837 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7838 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 ac_check_lib_save_LIBS=$LIBS
7842 LIBS="-ldnet $LIBS"
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7846 /* Override any GCC internal prototype to avoid an error.
7847 Use char because int might match the return type of a GCC
7848 builtin and then its argument prototype would still apply. */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 char dnet_ntoa ();
7854 main ()
7856 return dnet_ntoa ();
7858 return 0;
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 ac_cv_lib_dnet_dnet_ntoa=yes
7863 else
7864 ac_cv_lib_dnet_dnet_ntoa=no
7866 rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7871 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7872 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7873 cat >>confdefs.h <<_ACEOF
7874 #define HAVE_LIBDNET 1
7875 _ACEOF
7877 LIBS="-ldnet $LIBS"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7883 $as_echo_n "checking for main in -lXbsd... " >&6; }
7884 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7885 $as_echo_n "(cached) " >&6
7886 else
7887 ac_check_lib_save_LIBS=$LIBS
7888 LIBS="-lXbsd $LIBS"
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7894 main ()
7896 return main ();
7898 return 0;
7900 _ACEOF
7901 if ac_fn_c_try_link "$LINENO"; then :
7902 ac_cv_lib_Xbsd_main=yes
7903 else
7904 ac_cv_lib_Xbsd_main=no
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7911 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7912 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7913 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7918 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7919 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 ac_check_lib_save_LIBS=$LIBS
7923 LIBS="-lpthreads $LIBS"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7927 /* Override any GCC internal prototype to avoid an error.
7928 Use char because int might match the return type of a GCC
7929 builtin and then its argument prototype would still apply. */
7930 #ifdef __cplusplus
7931 extern "C"
7932 #endif
7933 char cma_open ();
7935 main ()
7937 return cma_open ();
7939 return 0;
7941 _ACEOF
7942 if ac_fn_c_try_link "$LINENO"; then :
7943 ac_cv_lib_pthreads_cma_open=yes
7944 else
7945 ac_cv_lib_pthreads_cma_open=no
7947 rm -f core conftest.err conftest.$ac_objext \
7948 conftest$ac_exeext conftest.$ac_ext
7949 LIBS=$ac_check_lib_save_LIBS
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7952 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7953 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7954 cat >>confdefs.h <<_ACEOF
7955 #define HAVE_LIBPTHREADS 1
7956 _ACEOF
7958 LIBS="-lpthreads $LIBS"
7963 ## Note: when using cpp in s/aix4.2.h, this definition depended on
7964 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
7965 ## the system file was sourced. Hence the value of LIBS_SYSTEM
7966 ## added to LIBS in configure would never contain the pthreads part,
7967 ## but the value used in Makefiles might. FIXME?
7969 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
7970 ## be harmless on older versions of X where it happens to exist.
7971 test "$opsys" = "aix4-2" && \
7972 test $ac_cv_lib_pthreads_cma_open = yes && \
7973 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
7976 case ${host_os} in
7977 aix*)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7979 $as_echo_n "checking for -bbigtoc option... " >&6; }
7980 if test "${gdb_cv_bigtoc+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7984 case $GCC in
7985 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7986 *) gdb_cv_bigtoc=-bbigtoc ;;
7987 esac
7989 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7994 main ()
7996 int i;
7998 return 0;
8000 _ACEOF
8001 if ac_fn_c_try_link "$LINENO"; then :
8003 else
8004 gdb_cv_bigtoc=
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8011 $as_echo "$gdb_cv_bigtoc" >&6; }
8013 esac
8015 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8016 # used for the tests that follow. We set them back to REAL_CFLAGS and
8017 # REAL_CPPFLAGS later on.
8019 REAL_CPPFLAGS="$CPPFLAGS"
8021 if test "${HAVE_X11}" = "yes"; then
8022 DEFS="$C_SWITCH_X_SITE $DEFS"
8023 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8024 LIBS="-lX11 $LIBS"
8025 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8026 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8028 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8029 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8030 # but it's more convenient here to set LD_RUN_PATH
8031 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8032 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8033 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8034 export LD_RUN_PATH
8037 if test "${opsys}" = "gnu-linux"; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8039 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8044 main ()
8046 XOpenDisplay ("foo");
8048 return 0;
8050 _ACEOF
8051 if ac_fn_c_try_link "$LINENO"; then :
8052 xlinux_first_failure=no
8053 else
8054 xlinux_first_failure=yes
8056 rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8058 if test "${xlinux_first_failure}" = "yes"; then
8059 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8060 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8061 OLD_CPPFLAGS="$CPPFLAGS"
8062 OLD_LIBS="$LIBS"
8063 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8064 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8065 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8066 LIBS="$LIBS -b i486-linuxaout"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8071 main ()
8073 XOpenDisplay ("foo");
8075 return 0;
8077 _ACEOF
8078 if ac_fn_c_try_link "$LINENO"; then :
8079 xlinux_second_failure=no
8080 else
8081 xlinux_second_failure=yes
8083 rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
8085 if test "${xlinux_second_failure}" = "yes"; then
8086 # If we get the same failure with -b, there is no use adding -b.
8087 # So take it out. This plays safe.
8088 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8089 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8090 CPPFLAGS="$OLD_CPPFLAGS"
8091 LIBS="$OLD_LIBS"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 else
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 $as_echo "yes" >&6; }
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8104 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8105 # header files included from there.
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8107 $as_echo_n "checking for Xkb... " >&6; }
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 #include <X11/Xlib.h>
8111 #include <X11/XKBlib.h>
8113 main ()
8115 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8117 return 0;
8119 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"; then :
8121 emacs_xkb=yes
8122 else
8123 emacs_xkb=no
8125 rm -f core conftest.err conftest.$ac_objext \
8126 conftest$ac_exeext conftest.$ac_ext
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8128 $as_echo "$emacs_xkb" >&6; }
8129 if test $emacs_xkb = yes; then
8131 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8135 for ac_func in XrmSetDatabase XScreenResourceString \
8136 XScreenNumberOfScreen XSetWMProtocols
8137 do :
8138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8140 eval as_val=\$$as_ac_var
8141 if test "x$as_val" = x""yes; then :
8142 cat >>confdefs.h <<_ACEOF
8143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8144 _ACEOF
8147 done
8151 if test "${window_system}" = "x11"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8153 $as_echo_n "checking X11 version 6... " >&6; }
8154 if test "${emacs_cv_x11_version_6+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 #include <X11/Xlib.h>
8161 main ()
8163 #if XlibSpecificationRelease < 6
8164 fail;
8165 #endif
8168 return 0;
8170 _ACEOF
8171 if ac_fn_c_try_link "$LINENO"; then :
8172 emacs_cv_x11_version_6=yes
8173 else
8174 emacs_cv_x11_version_6=no
8176 rm -f core conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8180 if test $emacs_cv_x11_version_6 = yes; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8182 $as_echo "6 or newer" >&6; }
8184 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8187 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8189 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8190 ## XIM support.
8191 case "$opsys" in
8192 sol2-*) : ;;
8194 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8197 esac
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8200 $as_echo "before 6" >&6; }
8205 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8206 HAVE_RSVG=no
8207 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8208 if test "${with_rsvg}" != "no"; then
8209 RSVG_REQUIRED=2.11.0
8210 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8213 succeeded=no
8215 # Extract the first word of "pkg-config", so it can be a program name with args.
8216 set dummy pkg-config; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 case $PKG_CONFIG in
8223 [\\/]* | ?:[\\/]*)
8224 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8238 done
8239 done
8240 IFS=$as_save_IFS
8242 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8244 esac
8246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8247 if test -n "$PKG_CONFIG"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8249 $as_echo "$PKG_CONFIG" >&6; }
8250 else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8257 if test "$PKG_CONFIG" = "no" ; then
8259 else
8260 PKG_CONFIG_MIN_VERSION=0.9.0
8261 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8263 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8265 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8267 $as_echo "yes" >&6; }
8268 succeeded=yes
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8271 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8272 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8274 $as_echo "$RSVG_CFLAGS" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8277 $as_echo_n "checking RSVG_LIBS... " >&6; }
8278 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8280 $as_echo "$RSVG_LIBS" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8284 RSVG_CFLAGS=""
8285 RSVG_LIBS=""
8286 ## If we have a custom action on failure, don't print errors, but
8287 ## do set a variable so people can do so.
8288 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8294 else
8295 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8296 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8300 if test $succeeded = yes; then
8302 else
8309 if test ".${RSVG_CFLAGS}" != "."; then
8310 HAVE_RSVG=yes
8312 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8314 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8315 LIBS="$RSVG_LIBS $LIBS"
8321 HAVE_GTK=no
8322 if test "${with_gtk3}" = "yes"; then
8323 GLIB_REQUIRED=2.6
8324 GTK_REQUIRED=2.90
8325 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8328 succeeded=no
8330 # Extract the first word of "pkg-config", so it can be a program name with args.
8331 set dummy pkg-config; ac_word=$2
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333 $as_echo_n "checking for $ac_word... " >&6; }
8334 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 case $PKG_CONFIG in
8338 [\\/]* | ?:[\\/]*)
8339 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8349 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8353 done
8354 done
8355 IFS=$as_save_IFS
8357 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8359 esac
8361 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8362 if test -n "$PKG_CONFIG"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8364 $as_echo "$PKG_CONFIG" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8372 if test "$PKG_CONFIG" = "no" ; then
8373 pkg_check_gtk=no
8374 else
8375 PKG_CONFIG_MIN_VERSION=0.9.0
8376 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8378 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8380 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8382 $as_echo "yes" >&6; }
8383 succeeded=yes
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8386 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8387 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8389 $as_echo "$GTK_CFLAGS" >&6; }
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8392 $as_echo_n "checking GTK_LIBS... " >&6; }
8393 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8395 $as_echo "$GTK_LIBS" >&6; }
8396 else
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 GTK_CFLAGS=""
8400 GTK_LIBS=""
8401 ## If we have a custom action on failure, don't print errors, but
8402 ## do set a variable so people can do so.
8403 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8409 else
8410 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8411 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8415 if test $succeeded = yes; then
8416 pkg_check_gtk=yes
8417 else
8418 pkg_check_gtk=no
8421 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8422 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8426 if test "$pkg_check_gtk" != "yes"; then
8427 HAVE_GTK=no
8428 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8429 GLIB_REQUIRED=2.6
8430 GTK_REQUIRED=2.6
8431 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8434 succeeded=no
8436 # Extract the first word of "pkg-config", so it can be a program name with args.
8437 set dummy pkg-config; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 case $PKG_CONFIG in
8444 [\\/]* | ?:[\\/]*)
8445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 for as_dir in $PATH
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 break 2
8459 done
8460 done
8461 IFS=$as_save_IFS
8463 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8465 esac
8467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8468 if test -n "$PKG_CONFIG"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8470 $as_echo "$PKG_CONFIG" >&6; }
8471 else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8478 if test "$PKG_CONFIG" = "no" ; then
8479 pkg_check_gtk=no
8480 else
8481 PKG_CONFIG_MIN_VERSION=0.9.0
8482 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8484 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8486 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8488 $as_echo "yes" >&6; }
8489 succeeded=yes
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8492 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8493 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8495 $as_echo "$GTK_CFLAGS" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8498 $as_echo_n "checking GTK_LIBS... " >&6; }
8499 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8501 $as_echo "$GTK_LIBS" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 GTK_CFLAGS=""
8506 GTK_LIBS=""
8507 ## If we have a custom action on failure, don't print errors, but
8508 ## do set a variable so people can do so.
8509 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8515 else
8516 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8517 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8521 if test $succeeded = yes; then
8522 pkg_check_gtk=yes
8523 else
8524 pkg_check_gtk=no
8527 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8528 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8533 GTK_OBJ=
8534 if test x"$pkg_check_gtk" = xyes; then
8538 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8539 CFLAGS="$CFLAGS $GTK_CFLAGS"
8540 LIBS="$GTK_LIBS $LIBS"
8541 GTK_COMPILES=no
8542 for ac_func in gtk_main
8543 do :
8544 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8545 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_GTK_MAIN 1
8548 _ACEOF
8549 GTK_COMPILES=yes
8551 done
8553 if test "${GTK_COMPILES}" != "yes"; then
8554 if test "$USE_X_TOOLKIT" != "maybe"; then
8555 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8557 else
8558 HAVE_GTK=yes
8560 $as_echo "#define USE_GTK 1" >>confdefs.h
8562 GTK_OBJ=gtkutil.o
8563 USE_X_TOOLKIT=none
8564 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8568 closing open displays. This is no problem if you just use
8569 one display, but if you use more than one and close one of them
8570 Emacs may crash." >&5
8571 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8572 closing open displays. This is no problem if you just use
8573 one display, but if you use more than one and close one of them
8574 Emacs may crash." >&2;}
8575 sleep 3
8583 if test "${HAVE_GTK}" = "yes"; then
8585 if test "$with_toolkit_scroll_bars" != no; then
8586 with_toolkit_scroll_bars=yes
8589 HAVE_GTK_FILE_SELECTION=no
8590 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8591 #include <gtk/gtk.h>
8593 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8594 HAVE_GTK_FILE_SELECTION=yes
8595 else
8596 HAVE_GTK_FILE_SELECTION=no
8599 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8600 for ac_func in gtk_file_selection_new
8601 do :
8602 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8603 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8604 cat >>confdefs.h <<_ACEOF
8605 #define HAVE_GTK_FILE_SELECTION_NEW 1
8606 _ACEOF
8609 done
8613 HAVE_GTK_AND_PTHREAD=no
8614 for ac_header in pthread.h
8615 do :
8616 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8617 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8618 cat >>confdefs.h <<_ACEOF
8619 #define HAVE_PTHREAD_H 1
8620 _ACEOF
8624 done
8626 if test "$ac_cv_header_pthread_h"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8628 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8629 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8630 $as_echo_n "(cached) " >&6
8631 else
8632 ac_check_lib_save_LIBS=$LIBS
8633 LIBS="-lpthread $LIBS"
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8637 /* Override any GCC internal prototype to avoid an error.
8638 Use char because int might match the return type of a GCC
8639 builtin and then its argument prototype would still apply. */
8640 #ifdef __cplusplus
8641 extern "C"
8642 #endif
8643 char pthread_self ();
8645 main ()
8647 return pthread_self ();
8649 return 0;
8651 _ACEOF
8652 if ac_fn_c_try_link "$LINENO"; then :
8653 ac_cv_lib_pthread_pthread_self=yes
8654 else
8655 ac_cv_lib_pthread_pthread_self=no
8657 rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_lib_save_LIBS
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8662 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8663 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8664 HAVE_GTK_AND_PTHREAD=yes
8668 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8669 case "${canonical}" in
8670 *-hpux*) ;;
8671 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8672 esac
8674 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8678 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
8679 gtk_dialog_get_action_area gtk_widget_get_sensitive \
8680 gtk_widget_get_mapped gtk_adjustment_get_page_size \
8681 gtk_orientable_set_orientation
8682 do :
8683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8684 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8685 eval as_val=\$$as_ac_var
8686 if test "x$as_val" = x""yes; then :
8687 cat >>confdefs.h <<_ACEOF
8688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8689 _ACEOF
8692 done
8697 HAVE_DBUS=no
8698 DBUS_OBJ=
8699 if test "${with_dbus}" = "yes"; then
8701 succeeded=no
8703 # Extract the first word of "pkg-config", so it can be a program name with args.
8704 set dummy pkg-config; ac_word=$2
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706 $as_echo_n "checking for $ac_word... " >&6; }
8707 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8708 $as_echo_n "(cached) " >&6
8709 else
8710 case $PKG_CONFIG in
8711 [\\/]* | ?:[\\/]*)
8712 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 for ac_exec_ext in '' $ac_executable_extensions; do
8721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8722 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8724 break 2
8726 done
8727 done
8728 IFS=$as_save_IFS
8730 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8732 esac
8734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8735 if test -n "$PKG_CONFIG"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8737 $as_echo "$PKG_CONFIG" >&6; }
8738 else
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8745 if test "$PKG_CONFIG" = "no" ; then
8746 HAVE_DBUS=no
8747 else
8748 PKG_CONFIG_MIN_VERSION=0.9.0
8749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8751 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8753 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8755 $as_echo "yes" >&6; }
8756 succeeded=yes
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8759 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8760 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8762 $as_echo "$DBUS_CFLAGS" >&6; }
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8765 $as_echo_n "checking DBUS_LIBS... " >&6; }
8766 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8768 $as_echo "$DBUS_LIBS" >&6; }
8769 else
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8772 DBUS_CFLAGS=""
8773 DBUS_LIBS=""
8774 ## If we have a custom action on failure, don't print errors, but
8775 ## do set a variable so people can do so.
8776 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8782 else
8783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8788 if test $succeeded = yes; then
8789 HAVE_DBUS=yes
8790 else
8791 HAVE_DBUS=no
8794 if test "$HAVE_DBUS" = yes; then
8795 LIBS="$LIBS $DBUS_LIBS"
8797 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8799 for ac_func in dbus_watch_get_unix_fd
8800 do :
8801 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8802 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8803 cat >>confdefs.h <<_ACEOF
8804 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8805 _ACEOF
8808 done
8810 DBUS_OBJ=dbusbind.o
8815 HAVE_GCONF=no
8816 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8818 succeeded=no
8820 # Extract the first word of "pkg-config", so it can be a program name with args.
8821 set dummy pkg-config; ac_word=$2
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823 $as_echo_n "checking for $ac_word... " >&6; }
8824 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827 case $PKG_CONFIG in
8828 [\\/]* | ?:[\\/]*)
8829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8843 done
8844 done
8845 IFS=$as_save_IFS
8847 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8849 esac
8851 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8852 if test -n "$PKG_CONFIG"; then
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8854 $as_echo "$PKG_CONFIG" >&6; }
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8857 $as_echo "no" >&6; }
8862 if test "$PKG_CONFIG" = "no" ; then
8863 HAVE_GCONF=no
8864 else
8865 PKG_CONFIG_MIN_VERSION=0.9.0
8866 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8868 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8870 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8872 $as_echo "yes" >&6; }
8873 succeeded=yes
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8876 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8877 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8879 $as_echo "$GCONF_CFLAGS" >&6; }
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8882 $as_echo_n "checking GCONF_LIBS... " >&6; }
8883 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8885 $as_echo "$GCONF_LIBS" >&6; }
8886 else
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8889 GCONF_CFLAGS=""
8890 GCONF_LIBS=""
8891 ## If we have a custom action on failure, don't print errors, but
8892 ## do set a variable so people can do so.
8893 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8899 else
8900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8905 if test $succeeded = yes; then
8906 HAVE_GCONF=yes
8907 else
8908 HAVE_GCONF=no
8911 if test "$HAVE_GCONF" = yes; then
8913 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8918 HAVE_LIBSELINUX=no
8919 LIBSELINUX_LIBS=
8920 if test "${with_selinux}" = "yes"; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8922 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8923 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lselinux $LIBS"
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8931 /* Override any GCC internal prototype to avoid an error.
8932 Use char because int might match the return type of a GCC
8933 builtin and then its argument prototype would still apply. */
8934 #ifdef __cplusplus
8935 extern "C"
8936 #endif
8937 char lgetfilecon ();
8939 main ()
8941 return lgetfilecon ();
8943 return 0;
8945 _ACEOF
8946 if ac_fn_c_try_link "$LINENO"; then :
8947 ac_cv_lib_selinux_lgetfilecon=yes
8948 else
8949 ac_cv_lib_selinux_lgetfilecon=no
8951 rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953 LIBS=$ac_check_lib_save_LIBS
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8956 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8957 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
8958 HAVE_LIBSELINUX=yes
8959 else
8960 HAVE_LIBSELINUX=no
8963 if test "$HAVE_LIBSELINUX" = yes; then
8965 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8967 LIBSELINUX_LIBS=-lselinux
8972 HAVE_XAW3D=no
8973 LUCID_LIBW=
8974 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8975 if test "$with_xaw3d" != no; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8977 $as_echo_n "checking for xaw3d... " >&6; }
8978 if test "${emacs_cv_xaw3d+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8984 #include <X11/Intrinsic.h>
8985 #include <X11/Xaw3d/Simple.h>
8987 main ()
8991 return 0;
8993 _ACEOF
8994 if ac_fn_c_try_link "$LINENO"; then :
8995 emacs_cv_xaw3d=yes
8996 else
8997 emacs_cv_xaw3d=no
8999 rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9003 else
9004 emacs_cv_xaw3d=no
9006 if test $emacs_cv_xaw3d = yes; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9008 $as_echo "yes; using Lucid toolkit" >&6; }
9009 USE_X_TOOLKIT=LUCID
9010 HAVE_XAW3D=yes
9011 LUCID_LIBW=-lXaw3d
9013 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017 $as_echo "no" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9019 $as_echo_n "checking for libXaw... " >&6; }
9020 if test "${emacs_cv_xaw+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9026 #include <X11/Intrinsic.h>
9027 #include <X11/Xaw/Simple.h>
9029 main ()
9033 return 0;
9035 _ACEOF
9036 if ac_fn_c_try_link "$LINENO"; then :
9037 emacs_cv_xaw=yes
9038 else
9039 emacs_cv_xaw=no
9041 rm -f core conftest.err conftest.$ac_objext \
9042 conftest$ac_exeext conftest.$ac_ext
9045 if test $emacs_cv_xaw = yes; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9047 $as_echo "yes; using Lucid toolkit" >&6; }
9048 USE_X_TOOLKIT=LUCID
9049 LUCID_LIBW=-lXaw
9050 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9051 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9052 else
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9054 $as_echo "no; do not use toolkit by default" >&6; }
9055 USE_X_TOOLKIT=none
9060 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9062 LIBXTR6=
9063 if test "${USE_X_TOOLKIT}" != "none"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9065 $as_echo_n "checking X11 toolkit version... " >&6; }
9066 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #include <X11/Intrinsic.h>
9073 main ()
9075 #if XtSpecificationRelease < 6
9076 fail;
9077 #endif
9080 return 0;
9082 _ACEOF
9083 if ac_fn_c_try_link "$LINENO"; then :
9084 emacs_cv_x11_toolkit_version_6=yes
9085 else
9086 emacs_cv_x11_toolkit_version_6=no
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9092 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9093 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9095 $as_echo "6 or newer" >&6; }
9097 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9099 LIBXTR6="-lSM -lICE"
9100 case "$opsys" in
9101 ## Use libw.a along with X11R6 Xt.
9102 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9103 esac
9104 else
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9106 $as_echo "before 6" >&6; }
9109 OLDLIBS="$LIBS"
9110 if test x$HAVE_X11XTR6 = xyes; then
9111 LIBS="-lXt -lSM -lICE $LIBS"
9112 else
9113 LIBS="-lXt $LIBS"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9116 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9117 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 ac_check_lib_save_LIBS=$LIBS
9121 LIBS="-lXmu $LIBS"
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9125 /* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 char XmuConvertStandardSelection ();
9133 main ()
9135 return XmuConvertStandardSelection ();
9137 return 0;
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9142 else
9143 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9145 rm -f core conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147 LIBS=$ac_check_lib_save_LIBS
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9150 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9151 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9152 cat >>confdefs.h <<_ACEOF
9153 #define HAVE_LIBXMU 1
9154 _ACEOF
9156 LIBS="-lXmu $LIBS"
9160 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9164 LIBXMU=-lXmu
9165 case "$machine" in
9166 ## These machines don't supply Xmu.
9167 hpux* | aix4-2 )
9168 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9170 esac
9173 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9174 if test "${HAVE_X11}" = "yes"; then
9175 if test "${USE_X_TOOLKIT}" != "none"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9177 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9178 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9180 else
9181 ac_check_lib_save_LIBS=$LIBS
9182 LIBS="-lXext $LIBS"
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9186 /* Override any GCC internal prototype to avoid an error.
9187 Use char because int might match the return type of a GCC
9188 builtin and then its argument prototype would still apply. */
9189 #ifdef __cplusplus
9190 extern "C"
9191 #endif
9192 char XShapeQueryExtension ();
9194 main ()
9196 return XShapeQueryExtension ();
9198 return 0;
9200 _ACEOF
9201 if ac_fn_c_try_link "$LINENO"; then :
9202 ac_cv_lib_Xext_XShapeQueryExtension=yes
9203 else
9204 ac_cv_lib_Xext_XShapeQueryExtension=no
9206 rm -f core conftest.err conftest.$ac_objext \
9207 conftest$ac_exeext conftest.$ac_ext
9208 LIBS=$ac_check_lib_save_LIBS
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9211 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9212 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_LIBXEXT 1
9215 _ACEOF
9217 LIBS="-lXext $LIBS"
9224 LIBXP=
9225 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9227 $as_echo_n "checking for Motif version 2.1... " >&6; }
9228 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 #include <Xm/Xm.h>
9235 main ()
9237 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9238 int x = 5;
9239 #else
9240 Motif version prior to 2.1.
9241 #endif
9243 return 0;
9245 _ACEOF
9246 if ac_fn_c_try_compile "$LINENO"; then :
9247 emacs_cv_motif_version_2_1=yes
9248 else
9249 emacs_cv_motif_version_2_1=no
9251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9254 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9255 if test $emacs_cv_motif_version_2_1 = yes; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9257 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9258 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 ac_check_lib_save_LIBS=$LIBS
9262 LIBS="-lXp $LIBS"
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9266 /* Override any GCC internal prototype to avoid an error.
9267 Use char because int might match the return type of a GCC
9268 builtin and then its argument prototype would still apply. */
9269 #ifdef __cplusplus
9270 extern "C"
9271 #endif
9272 char XpCreateContext ();
9274 main ()
9276 return XpCreateContext ();
9278 return 0;
9280 _ACEOF
9281 if ac_fn_c_try_link "$LINENO"; then :
9282 ac_cv_lib_Xp_XpCreateContext=yes
9283 else
9284 ac_cv_lib_Xp_XpCreateContext=no
9286 rm -f core conftest.err conftest.$ac_objext \
9287 conftest$ac_exeext conftest.$ac_ext
9288 LIBS=$ac_check_lib_save_LIBS
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9291 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9292 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9293 LIBXP=-lXp
9296 else
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9298 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9299 if test "${emacs_cv_lesstif+set}" = set; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 # We put this in CFLAGS temporarily to precede other -I options
9303 # that might be in CFLAGS temporarily.
9304 # We put this in CPPFLAGS where it precedes the other -I options.
9305 OLD_CPPFLAGS=$CPPFLAGS
9306 OLD_CFLAGS=$CFLAGS
9307 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9308 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9313 main ()
9315 int x = 5;
9317 return 0;
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"; then :
9321 emacs_cv_lesstif=yes
9322 else
9323 emacs_cv_lesstif=no
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9328 $as_echo "$emacs_cv_lesstif" >&6; }
9329 if test $emacs_cv_lesstif = yes; then
9330 # Make sure this -I option remains in CPPFLAGS after it is set
9331 # back to REAL_CPPFLAGS.
9332 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9333 # have those other -I options anyway. Ultimately, having this
9334 # directory ultimately in CPPFLAGS will be enough.
9335 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9336 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9337 else
9338 CFLAGS=$OLD_CFLAGS
9339 CPPFLAGS=$OLD_CPPFLAGS
9345 USE_TOOLKIT_SCROLL_BARS=no
9346 if test "${with_toolkit_scroll_bars}" != "no"; then
9347 if test "${USE_X_TOOLKIT}" != "none"; then
9348 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9349 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9351 HAVE_XAW3D=no
9352 USE_TOOLKIT_SCROLL_BARS=yes
9353 elif test "${HAVE_XAW3D}" = "yes"; then
9354 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9356 USE_TOOLKIT_SCROLL_BARS=yes
9358 elif test "${HAVE_GTK}" = "yes"; then
9359 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9361 USE_TOOLKIT_SCROLL_BARS=yes
9362 elif test "${HAVE_NS}" = "yes"; then
9363 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9365 USE_TOOLKIT_SCROLL_BARS=yes
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9372 #include <X11/Xlib.h>
9373 #include <X11/Xresource.h>
9375 main ()
9377 XIMProc callback;
9379 return 0;
9381 _ACEOF
9382 if ac_fn_c_try_compile "$LINENO"; then :
9383 HAVE_XIM=yes
9385 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9387 else
9388 HAVE_XIM=no
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9393 if test "${with_xim}" != "no"; then
9395 $as_echo "#define USE_XIM 1" >>confdefs.h
9400 if test "${HAVE_XIM}" != "no"; then
9401 late_CFLAGS=$CFLAGS
9402 if test "$GCC" = yes; then
9403 CFLAGS="$CFLAGS --pedantic-errors"
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9408 #include <X11/Xlib.h>
9409 #include <X11/Xresource.h>
9411 main ()
9413 Display *display;
9414 XrmDatabase db;
9415 char *res_name;
9416 char *res_class;
9417 XIMProc callback;
9418 XPointer *client_data;
9419 #ifndef __GNUC__
9420 /* If we're not using GCC, it's probably not XFree86, and this is
9421 probably right, but we can't use something like --pedantic-errors. */
9422 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9423 char*, XIMProc, XPointer*);
9424 #endif
9425 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9426 client_data);
9428 return 0;
9430 _ACEOF
9431 if ac_fn_c_try_compile "$LINENO"; then :
9432 emacs_cv_arg6_star=yes
9434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 if test "$emacs_cv_arg6_star" = yes; then
9436 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9438 else
9439 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9442 CFLAGS=$late_CFLAGS
9445 ### Start of font-backend (under any platform) section.
9446 # (nothing here yet -- this is a placeholder)
9447 ### End of font-backend (under any platform) section.
9449 ### Start of font-backend (under X11) section.
9450 if test "${HAVE_X11}" = "yes"; then
9452 succeeded=no
9454 # Extract the first word of "pkg-config", so it can be a program name with args.
9455 set dummy pkg-config; ac_word=$2
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 case $PKG_CONFIG in
9462 [\\/]* | ?:[\\/]*)
9463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in $PATH
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9477 done
9478 done
9479 IFS=$as_save_IFS
9481 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9483 esac
9485 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9486 if test -n "$PKG_CONFIG"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9488 $as_echo "$PKG_CONFIG" >&6; }
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9496 if test "$PKG_CONFIG" = "no" ; then
9497 HAVE_FC=no
9498 else
9499 PKG_CONFIG_MIN_VERSION=0.9.0
9500 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9502 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9504 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9506 $as_echo "yes" >&6; }
9507 succeeded=yes
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9510 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9511 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9513 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9516 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9517 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9519 $as_echo "$FONTCONFIG_LIBS" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9523 FONTCONFIG_CFLAGS=""
9524 FONTCONFIG_LIBS=""
9525 ## If we have a custom action on failure, don't print errors, but
9526 ## do set a variable so people can do so.
9527 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9533 else
9534 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9535 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9539 if test $succeeded = yes; then
9540 HAVE_FC=yes
9541 else
9542 HAVE_FC=no
9546 ## Use -lXft if available, unless `--with-xft=no'.
9547 HAVE_XFT=maybe
9548 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9549 with_xft="no";
9551 if test "x${with_xft}" != "xno"; then
9554 succeeded=no
9556 # Extract the first word of "pkg-config", so it can be a program name with args.
9557 set dummy pkg-config; ac_word=$2
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 $as_echo_n "checking for $ac_word... " >&6; }
9560 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 case $PKG_CONFIG in
9564 [\\/]* | ?:[\\/]*)
9565 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9569 for as_dir in $PATH
9571 IFS=$as_save_IFS
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 break 2
9579 done
9580 done
9581 IFS=$as_save_IFS
9583 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9585 esac
9587 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9588 if test -n "$PKG_CONFIG"; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9590 $as_echo "$PKG_CONFIG" >&6; }
9591 else
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593 $as_echo "no" >&6; }
9598 if test "$PKG_CONFIG" = "no" ; then
9599 HAVE_XFT=no
9600 else
9601 PKG_CONFIG_MIN_VERSION=0.9.0
9602 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9604 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9606 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9608 $as_echo "yes" >&6; }
9609 succeeded=yes
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9612 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9613 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9615 $as_echo "$XFT_CFLAGS" >&6; }
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9618 $as_echo_n "checking XFT_LIBS... " >&6; }
9619 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9621 $as_echo "$XFT_LIBS" >&6; }
9622 else
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9625 XFT_CFLAGS=""
9626 XFT_LIBS=""
9627 ## If we have a custom action on failure, don't print errors, but
9628 ## do set a variable so people can do so.
9629 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9635 else
9636 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9637 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9641 if test $succeeded = yes; then
9643 else
9644 HAVE_XFT=no
9647 ## Because xftfont.c uses XRenderQueryExtension, we also
9648 ## need to link to -lXrender.
9649 HAVE_XRENDER=no
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9651 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9652 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 ac_check_lib_save_LIBS=$LIBS
9656 LIBS="-lXrender $LIBS"
9657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9660 /* Override any GCC internal prototype to avoid an error.
9661 Use char because int might match the return type of a GCC
9662 builtin and then its argument prototype would still apply. */
9663 #ifdef __cplusplus
9664 extern "C"
9665 #endif
9666 char XRenderQueryExtension ();
9668 main ()
9670 return XRenderQueryExtension ();
9672 return 0;
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"; then :
9676 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9677 else
9678 ac_cv_lib_Xrender_XRenderQueryExtension=no
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 LIBS=$ac_check_lib_save_LIBS
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9685 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9686 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9687 HAVE_XRENDER=yes
9690 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9691 OLD_CPPFLAGS="$CPPFLAGS"
9692 OLD_CFLAGS="$CFLAGS"
9693 OLD_LIBS="$LIBS"
9694 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9695 CFLAGS="$CFLAGS $XFT_CFLAGS"
9696 XFT_LIBS="-lXrender $XFT_LIBS"
9697 LIBS="$XFT_LIBS $LIBS"
9698 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9699 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9701 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9702 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 ac_check_lib_save_LIBS=$LIBS
9706 LIBS="-lXft $XFT_LIBS $LIBS"
9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h. */
9710 /* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9713 #ifdef __cplusplus
9714 extern "C"
9715 #endif
9716 char XftFontOpen ();
9718 main ()
9720 return XftFontOpen ();
9722 return 0;
9724 _ACEOF
9725 if ac_fn_c_try_link "$LINENO"; then :
9726 ac_cv_lib_Xft_XftFontOpen=yes
9727 else
9728 ac_cv_lib_Xft_XftFontOpen=no
9730 rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 LIBS=$ac_check_lib_save_LIBS
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9735 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9736 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9737 HAVE_XFT=yes
9744 if test "${HAVE_XFT}" = "yes"; then
9746 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9749 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9750 else
9751 CPPFLAGS="$OLD_CPPFLAGS"
9752 CFLAGS="$OLD_CFLAGS"
9753 LIBS="$OLD_LIBS"
9754 fi # "${HAVE_XFT}" = "yes"
9755 fi # "$HAVE_XFT" != no
9756 fi # "x${with_xft}" != "xno"
9758 if test "$HAVE_XFT" != "yes"; then
9759 HAVE_XFT=no
9763 HAVE_FREETYPE=no
9764 ## We used to allow building with FreeType and without Xft.
9765 ## However, the ftx font backend driver is not in good shape.
9766 if test "${HAVE_XFT}" = "yes"; then
9767 HAVE_FREETYPE=yes
9768 FONTCONFIG_CFLAGS=
9769 FONTCONFIG_LIBS=
9772 HAVE_LIBOTF=no
9773 if test "${HAVE_FREETYPE}" = "yes"; then
9775 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9777 if test "${with_libotf}" != "no"; then
9779 succeeded=no
9781 # Extract the first word of "pkg-config", so it can be a program name with args.
9782 set dummy pkg-config; ac_word=$2
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784 $as_echo_n "checking for $ac_word... " >&6; }
9785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 case $PKG_CONFIG in
9789 [\\/]* | ?:[\\/]*)
9790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 for as_dir in $PATH
9796 IFS=$as_save_IFS
9797 test -z "$as_dir" && as_dir=.
9798 for ac_exec_ext in '' $ac_executable_extensions; do
9799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 break 2
9804 done
9805 done
9806 IFS=$as_save_IFS
9808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9810 esac
9812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9813 if test -n "$PKG_CONFIG"; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9815 $as_echo "$PKG_CONFIG" >&6; }
9816 else
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818 $as_echo "no" >&6; }
9823 if test "$PKG_CONFIG" = "no" ; then
9824 HAVE_LIBOTF=no
9825 else
9826 PKG_CONFIG_MIN_VERSION=0.9.0
9827 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9829 $as_echo_n "checking for libotf... " >&6; }
9831 if $PKG_CONFIG --exists "libotf" 2>&5; then
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9833 $as_echo "yes" >&6; }
9834 succeeded=yes
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9837 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9838 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9840 $as_echo "$LIBOTF_CFLAGS" >&6; }
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9843 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9844 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9846 $as_echo "$LIBOTF_LIBS" >&6; }
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9850 LIBOTF_CFLAGS=""
9851 LIBOTF_LIBS=""
9852 ## If we have a custom action on failure, don't print errors, but
9853 ## do set a variable so people can do so.
9854 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9860 else
9861 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9862 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9866 if test $succeeded = yes; then
9867 HAVE_LIBOTF=yes
9868 else
9869 HAVE_LIBOTF=no
9872 if test "$HAVE_LIBOTF" = "yes"; then
9874 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9877 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9878 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
9880 else
9881 ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-lotf $LIBS"
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9889 #ifdef __cplusplus
9890 extern "C"
9891 #endif
9892 char OTF_get_variation_glyphs ();
9894 main ()
9896 return OTF_get_variation_glyphs ();
9898 return 0;
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then :
9902 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9903 else
9904 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9906 rm -f core conftest.err conftest.$ac_objext \
9907 conftest$ac_exeext conftest.$ac_ext
9908 LIBS=$ac_check_lib_save_LIBS
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9911 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9912 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9913 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9914 else
9915 HAVE_OTF_GET_VARIATION_GLYPHS=no
9918 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9920 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9927 HAVE_M17N_FLT=no
9928 if test "${HAVE_LIBOTF}" = yes; then
9929 if test "${with_m17n_flt}" != "no"; then
9931 succeeded=no
9933 # Extract the first word of "pkg-config", so it can be a program name with args.
9934 set dummy pkg-config; ac_word=$2
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936 $as_echo_n "checking for $ac_word... " >&6; }
9937 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 case $PKG_CONFIG in
9941 [\\/]* | ?:[\\/]*)
9942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9956 done
9957 done
9958 IFS=$as_save_IFS
9960 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9962 esac
9964 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9965 if test -n "$PKG_CONFIG"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9967 $as_echo "$PKG_CONFIG" >&6; }
9968 else
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9975 if test "$PKG_CONFIG" = "no" ; then
9976 HAVE_M17N_FLT=no
9977 else
9978 PKG_CONFIG_MIN_VERSION=0.9.0
9979 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9981 $as_echo_n "checking for m17n-flt... " >&6; }
9983 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9985 $as_echo "yes" >&6; }
9986 succeeded=yes
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9989 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9990 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9992 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9995 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9996 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9998 $as_echo "$M17N_FLT_LIBS" >&6; }
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10002 M17N_FLT_CFLAGS=""
10003 M17N_FLT_LIBS=""
10004 ## If we have a custom action on failure, don't print errors, but
10005 ## do set a variable so people can do so.
10006 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10012 else
10013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10018 if test $succeeded = yes; then
10019 HAVE_M17N_FLT=yes
10020 else
10021 HAVE_M17N_FLT=no
10024 if test "$HAVE_M17N_FLT" = "yes"; then
10026 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10031 else
10032 HAVE_XFT=no
10033 HAVE_FREETYPE=no
10034 HAVE_LIBOTF=no
10035 HAVE_M17N_FLT=no
10038 ### End of font-backend (under X11) section.
10049 ### Use -lXpm if available, unless `--with-xpm=no'.
10050 HAVE_XPM=no
10051 LIBXPM=
10052 if test "${HAVE_X11}" = "yes"; then
10053 if test "${with_xpm}" != "no"; then
10054 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10055 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10057 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10058 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-lXpm -lX11 $LIBS"
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10066 /* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 char XpmReadFileToPixmap ();
10074 main ()
10076 return XpmReadFileToPixmap ();
10078 return 0;
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"; then :
10082 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10083 else
10084 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10091 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10092 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10093 HAVE_XPM=yes
10099 if test "${HAVE_XPM}" = "yes"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10101 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 #include "X11/xpm.h"
10105 #ifndef XpmReturnAllocPixels
10106 no_return_alloc_pixels
10107 #endif
10109 _ACEOF
10110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10111 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10112 HAVE_XPM=no
10113 else
10114 HAVE_XPM=yes
10116 rm -f conftest*
10119 if test "${HAVE_XPM}" = "yes"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 $as_echo "yes" >&6; }
10122 else
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10129 if test "${HAVE_XPM}" = "yes"; then
10131 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10133 LIBXPM=-lXpm
10138 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10139 HAVE_JPEG=no
10140 LIBJPEG=
10141 if test "${HAVE_X11}" = "yes"; then
10142 if test "${with_jpeg}" != "no"; then
10143 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10144 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10146 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10147 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 ac_check_lib_save_LIBS=$LIBS
10151 LIBS="-ljpeg $LIBS"
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char jpeg_destroy_compress ();
10163 main ()
10165 return jpeg_destroy_compress ();
10167 return 0;
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10172 else
10173 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10175 rm -f core conftest.err conftest.$ac_objext \
10176 conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10180 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10181 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10182 HAVE_JPEG=yes
10190 if test "${HAVE_JPEG}" = "yes"; then
10191 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 #include <jpeglib.h>
10196 version=JPEG_LIB_VERSION
10198 _ACEOF
10199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10200 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10201 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10205 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10206 HAVE_JPEG=no
10208 rm -f conftest*
10211 if test "${HAVE_JPEG}" = "yes"; then
10212 LIBJPEG=-ljpeg
10217 ### Use -lpng if available, unless `--with-png=no'.
10218 HAVE_PNG=no
10219 LIBPNG=
10220 if test "${HAVE_X11}" = "yes"; then
10221 if test "${with_png}" != "no"; then
10222 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10223 # in /usr/include/libpng.
10224 for ac_header in png.h libpng/png.h
10225 do :
10226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10228 eval as_val=\$$as_ac_Header
10229 if test "x$as_val" = x""yes; then :
10230 cat >>confdefs.h <<_ACEOF
10231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10232 _ACEOF
10236 done
10238 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10240 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10241 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 ac_check_lib_save_LIBS=$LIBS
10245 LIBS="-lpng -lz -lm $LIBS"
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char png_get_channels ();
10257 main ()
10259 return png_get_channels ();
10261 return 0;
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10265 ac_cv_lib_png_png_get_channels=yes
10266 else
10267 ac_cv_lib_png_png_get_channels=no
10269 rm -f core conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10274 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10275 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10276 HAVE_PNG=yes
10282 if test "${HAVE_PNG}" = "yes"; then
10284 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10286 LIBPNG="-lpng -lz -lm"
10291 ### Use -ltiff if available, unless `--with-tiff=no'.
10292 HAVE_TIFF=no
10293 LIBTIFF=
10294 if test "${HAVE_X11}" = "yes"; then
10295 if test "${with_tiff}" != "no"; then
10296 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10297 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10298 tifflibs="-lz -lm"
10299 # At least one tiff package requires the jpeg library.
10300 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10302 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10303 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-ltiff $tifflibs $LIBS"
10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309 /* end confdefs.h. */
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 char TIFFGetVersion ();
10319 main ()
10321 return TIFFGetVersion ();
10323 return 0;
10325 _ACEOF
10326 if ac_fn_c_try_link "$LINENO"; then :
10327 ac_cv_lib_tiff_TIFFGetVersion=yes
10328 else
10329 ac_cv_lib_tiff_TIFFGetVersion=no
10331 rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 LIBS=$ac_check_lib_save_LIBS
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10336 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10337 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10338 HAVE_TIFF=yes
10346 if test "${HAVE_TIFF}" = "yes"; then
10348 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10350 LIBTIFF=-ltiff
10355 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10356 HAVE_GIF=no
10357 LIBGIF=
10358 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10359 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10360 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10361 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10362 # Earlier versions can crash Emacs.
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10364 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10365 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lgif $LIBS"
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10373 /* Override any GCC internal prototype to avoid an error.
10374 Use char because int might match the return type of a GCC
10375 builtin and then its argument prototype would still apply. */
10376 #ifdef __cplusplus
10377 extern "C"
10378 #endif
10379 char EGifPutExtensionLast ();
10381 main ()
10383 return EGifPutExtensionLast ();
10385 return 0;
10387 _ACEOF
10388 if ac_fn_c_try_link "$LINENO"; then :
10389 ac_cv_lib_gif_EGifPutExtensionLast=yes
10390 else
10391 ac_cv_lib_gif_EGifPutExtensionLast=no
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10398 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10399 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10400 HAVE_GIF=yes
10401 else
10402 HAVE_GIF=maybe
10409 if test "$HAVE_GIF" = yes; then
10410 LIBGIF=-lgif
10411 elif test "$HAVE_GIF" = maybe; then
10412 # If gif_lib.h but no libgif, try libungif.
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10414 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10415 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 ac_check_lib_save_LIBS=$LIBS
10419 LIBS="-lungif $LIBS"
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char EGifPutExtensionLast ();
10431 main ()
10433 return EGifPutExtensionLast ();
10435 return 0;
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10440 else
10441 ac_cv_lib_ungif_EGifPutExtensionLast=no
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_lib_save_LIBS
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10448 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10449 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10450 HAVE_GIF=yes
10451 else
10452 HAVE_GIF=no
10455 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10458 if test "${HAVE_GIF}" = "yes"; then
10460 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10466 if test "${HAVE_X11}" = "yes"; then
10467 MISSING=""
10468 WITH_NO=""
10469 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10470 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10471 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10472 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10473 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10474 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10475 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10476 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10477 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10478 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10480 if test "X${MISSING}" != X; then
10481 as_fn_error "The following required libraries were not found:
10482 $MISSING
10483 Maybe some development libraries/packages are missing?
10484 If you don't want to link with them give
10485 $WITH_NO
10486 as options to configure" "$LINENO" 5
10490 ### Use -lgpm if available, unless `--with-gpm=no'.
10491 HAVE_GPM=no
10492 LIBGPM=
10493 MOUSE_SUPPORT=
10494 if test "${with_gpm}" != "no"; then
10495 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10496 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10498 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10499 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 ac_check_lib_save_LIBS=$LIBS
10503 LIBS="-lgpm $LIBS"
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10507 /* Override any GCC internal prototype to avoid an error.
10508 Use char because int might match the return type of a GCC
10509 builtin and then its argument prototype would still apply. */
10510 #ifdef __cplusplus
10511 extern "C"
10512 #endif
10513 char Gpm_Open ();
10515 main ()
10517 return Gpm_Open ();
10519 return 0;
10521 _ACEOF
10522 if ac_fn_c_try_link "$LINENO"; then :
10523 ac_cv_lib_gpm_Gpm_Open=yes
10524 else
10525 ac_cv_lib_gpm_Gpm_Open=no
10527 rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LIBS=$ac_check_lib_save_LIBS
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10532 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10533 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10534 HAVE_GPM=yes
10541 if test "${HAVE_GPM}" = "yes"; then
10543 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10545 LIBGPM=-lgpm
10546 ## May be reset below.
10547 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10552 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10553 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10555 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10561 C_SWITCH_X_SYSTEM=
10562 ### Use NeXTstep API to implement GUI.
10563 if test "${HAVE_NS}" = "yes"; then
10565 $as_echo "#define HAVE_NS 1" >>confdefs.h
10567 if test "${NS_IMPL_COCOA}" = "yes"; then
10569 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10571 GNU_OBJC_CFLAGS=
10573 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10575 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10577 # See also .m.o rule in Makefile.in */
10578 # FIXME: are all these flags really needed? Document here why. */
10579 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10580 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10582 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10584 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10587 # We also have mouse menus.
10588 HAVE_MENUS=yes
10589 OTHER_FILES=ns-app
10593 ### Use session management (-lSM -lICE) if available
10594 HAVE_X_SM=no
10595 LIBXSM=
10596 if test "${HAVE_X11}" = "yes"; then
10597 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10598 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10600 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10601 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-lSM -lICE $LIBS"
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char SmcOpenConnection ();
10617 main ()
10619 return SmcOpenConnection ();
10621 return 0;
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ac_cv_lib_SM_SmcOpenConnection=yes
10626 else
10627 ac_cv_lib_SM_SmcOpenConnection=no
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10634 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10635 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10636 HAVE_X_SM=yes
10643 if test "${HAVE_X_SM}" = "yes"; then
10645 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10647 LIBXSM="-lSM -lICE"
10648 case "$LIBS" in
10649 *-lSM*) ;;
10650 *) LIBS="$LIBXSM $LIBS" ;;
10651 esac
10656 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10658 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10659 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
10661 else
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #include <netdb.h>
10666 main ()
10668 return h_errno;
10670 return 0;
10672 _ACEOF
10673 if ac_fn_c_try_link "$LINENO"; then :
10674 emacs_cv_netdb_declares_h_errno=yes
10675 else
10676 emacs_cv_netdb_declares_h_errno=no
10678 rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10682 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10683 if test $emacs_cv_netdb_declares_h_errno = yes; then
10685 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10689 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10690 # for constant arguments. Useless!
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10692 $as_echo_n "checking for working alloca.h... " >&6; }
10693 if test "${ac_cv_working_alloca_h+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698 #include <alloca.h>
10700 main ()
10702 char *p = (char *) alloca (2 * sizeof (int));
10703 if (p) return 0;
10705 return 0;
10707 _ACEOF
10708 if ac_fn_c_try_link "$LINENO"; then :
10709 ac_cv_working_alloca_h=yes
10710 else
10711 ac_cv_working_alloca_h=no
10713 rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10717 $as_echo "$ac_cv_working_alloca_h" >&6; }
10718 if test $ac_cv_working_alloca_h = yes; then
10720 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10725 $as_echo_n "checking for alloca... " >&6; }
10726 if test "${ac_cv_func_alloca_works+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 #ifdef __GNUC__
10732 # define alloca __builtin_alloca
10733 #else
10734 # ifdef _MSC_VER
10735 # include <malloc.h>
10736 # define alloca _alloca
10737 # else
10738 # ifdef HAVE_ALLOCA_H
10739 # include <alloca.h>
10740 # else
10741 # ifdef _AIX
10742 #pragma alloca
10743 # else
10744 # ifndef alloca /* predefined by HP cc +Olibcalls */
10745 char *alloca ();
10746 # endif
10747 # endif
10748 # endif
10749 # endif
10750 #endif
10753 main ()
10755 char *p = (char *) alloca (1);
10756 if (p) return 0;
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_link "$LINENO"; then :
10762 ac_cv_func_alloca_works=yes
10763 else
10764 ac_cv_func_alloca_works=no
10766 rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10770 $as_echo "$ac_cv_func_alloca_works" >&6; }
10772 if test $ac_cv_func_alloca_works = yes; then
10774 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10776 else
10777 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10778 # that cause trouble. Some versions do not even contain alloca or
10779 # contain a buggy version. If you still want to use their alloca,
10780 # use ar to extract alloca.o from them instead of compiling alloca.c.
10782 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10784 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10788 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10789 if test "${ac_cv_os_cray+set}" = set; then :
10790 $as_echo_n "(cached) " >&6
10791 else
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10794 #if defined CRAY && ! defined CRAY2
10795 webecray
10796 #else
10797 wenotbecray
10798 #endif
10800 _ACEOF
10801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10802 $EGREP "webecray" >/dev/null 2>&1; then :
10803 ac_cv_os_cray=yes
10804 else
10805 ac_cv_os_cray=no
10807 rm -f conftest*
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10811 $as_echo "$ac_cv_os_cray" >&6; }
10812 if test $ac_cv_os_cray = yes; then
10813 for ac_func in _getb67 GETB67 getb67; do
10814 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10815 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10816 eval as_val=\$$as_ac_var
10817 if test "x$as_val" = x""yes; then :
10819 cat >>confdefs.h <<_ACEOF
10820 #define CRAY_STACKSEG_END $ac_func
10821 _ACEOF
10823 break
10826 done
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10830 $as_echo_n "checking stack direction for C alloca... " >&6; }
10831 if test "${ac_cv_c_stack_direction+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 if test "$cross_compiling" = yes; then :
10835 ac_cv_c_stack_direction=0
10836 else
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10839 $ac_includes_default
10841 find_stack_direction ()
10843 static char *addr = 0;
10844 auto char dummy;
10845 if (addr == 0)
10847 addr = &dummy;
10848 return find_stack_direction ();
10850 else
10851 return (&dummy > addr) ? 1 : -1;
10855 main ()
10857 return find_stack_direction () < 0;
10859 _ACEOF
10860 if ac_fn_c_try_run "$LINENO"; then :
10861 ac_cv_c_stack_direction=1
10862 else
10863 ac_cv_c_stack_direction=-1
10865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10866 conftest.$ac_objext conftest.beam conftest.$ac_ext
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10871 $as_echo "$ac_cv_c_stack_direction" >&6; }
10872 cat >>confdefs.h <<_ACEOF
10873 #define STACK_DIRECTION $ac_cv_c_stack_direction
10874 _ACEOF
10880 if test x"$ac_cv_func_alloca_works" != xyes; then
10881 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10884 # fmod, logb, and frexp are found in -lm on most systems.
10885 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10887 $as_echo_n "checking for sqrt in -lm... " >&6; }
10888 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-lm $LIBS"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char sqrt ();
10904 main ()
10906 return sqrt ();
10908 return 0;
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ac_cv_lib_m_sqrt=yes
10913 else
10914 ac_cv_lib_m_sqrt=no
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10921 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10922 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_LIBM 1
10925 _ACEOF
10927 LIBS="-lm $LIBS"
10932 # Check for mail-locking functions in a "mail" library. Probably this should
10933 # have the same check as for liblockfile below.
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10935 $as_echo_n "checking for maillock in -lmail... " >&6; }
10936 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-lmail $LIBS"
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10947 #ifdef __cplusplus
10948 extern "C"
10949 #endif
10950 char maillock ();
10952 main ()
10954 return maillock ();
10956 return 0;
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 ac_cv_lib_mail_maillock=yes
10961 else
10962 ac_cv_lib_mail_maillock=no
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10969 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10970 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10971 have_mail=yes
10972 else
10973 have_mail=no
10976 if test $have_mail = yes; then
10977 LIBS_MAIL=-lmail
10978 LIBS="$LIBS_MAIL $LIBS"
10980 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10982 else
10983 LIBS_MAIL=
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10986 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10987 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-llockfile $LIBS"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10995 /* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 char maillock ();
11003 main ()
11005 return maillock ();
11007 return 0;
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 ac_cv_lib_lockfile_maillock=yes
11012 else
11013 ac_cv_lib_lockfile_maillock=no
11015 rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11020 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11021 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11022 have_lockfile=yes
11023 else
11024 have_lockfile=no
11027 if test $have_lockfile = yes; then
11028 LIBS_MAIL=-llockfile
11029 LIBS="$LIBS_MAIL $LIBS"
11031 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11033 else
11034 # If we have the shared liblockfile, assume we must use it for mail
11035 # locking (e.g. Debian). If we couldn't link against liblockfile
11036 # (no liblockfile.a installed), ensure that we don't need to.
11037 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11038 set dummy liblockfile.so; ac_word=$2
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11040 $as_echo_n "checking for $ac_word... " >&6; }
11041 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11043 else
11044 if test -n "$liblockfile"; then
11045 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11046 else
11047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11049 for as_dir in $as_dummy
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_prog_liblockfile="yes"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11059 done
11060 done
11061 IFS=$as_save_IFS
11063 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11066 liblockfile=$ac_cv_prog_liblockfile
11067 if test -n "$liblockfile"; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11069 $as_echo "$liblockfile" >&6; }
11070 else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11076 if test $ac_cv_prog_liblockfile = yes; then
11077 as_fn_error "Shared liblockfile found but can't link against it.
11078 This probably means that movemail could lose mail.
11079 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11082 for ac_func in touchlock
11083 do :
11084 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11085 if test "x$ac_cv_func_touchlock" = x""yes; then :
11086 cat >>confdefs.h <<_ACEOF
11087 #define HAVE_TOUCHLOCK 1
11088 _ACEOF
11091 done
11093 for ac_header in maillock.h
11094 do :
11095 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11096 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11097 cat >>confdefs.h <<_ACEOF
11098 #define HAVE_MAILLOCK_H 1
11099 _ACEOF
11103 done
11107 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11108 ## interlock access to the mail spool. The alternative is a lock file named
11109 ## /usr/spool/mail/$USER.lock.
11110 mail_lock=no
11111 case "$opsys" in
11112 aix4-2) mail_lock="lockf" ;;
11114 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11116 ## On GNU/Linux systems, both methods are used by various mail programs.
11117 ## I assume most people are using newer mailers that have heard of flock.
11118 ## Change this if you need to.
11119 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11120 ## configure gets the right answers, and that means *NOT* using flock.
11121 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11122 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11123 ## Debian maintainer hasn't provided a clean fix for Emacs.
11124 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11125 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11126 ## correct logic. -- fx
11127 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11128 ## liblockfile is a Free Software replacement for libmail, used on
11129 ## Debian systems and elsewhere. -rfr.
11130 gnu-*)
11131 mail_lock="flock"
11132 if test $have_mail = yes || test $have_lockfile = yes; then
11133 test $ac_cv_header_maillock_h = yes && mail_lock=no
11136 esac
11138 BLESSMAIL_TARGET=
11139 case "$mail_lock" in
11140 flock)
11141 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11144 lockf)
11145 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11148 *) BLESSMAIL_TARGET="need-blessmail" ;;
11149 esac
11153 for ac_func in gethostname getdomainname dup2 \
11154 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11155 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
11156 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11157 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11158 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11159 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11160 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
11161 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11162 cfmakeraw cfsetspeed isnan copysign
11163 do :
11164 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11165 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11166 eval as_val=\$$as_ac_var
11167 if test "x$as_val" = x""yes; then :
11168 cat >>confdefs.h <<_ACEOF
11169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11170 _ACEOF
11173 done
11176 for ac_header in sys/un.h
11177 do :
11178 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11179 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11180 cat >>confdefs.h <<_ACEOF
11181 #define HAVE_SYS_UN_H 1
11182 _ACEOF
11186 done
11194 for ac_func in $ac_func_list
11195 do :
11196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11198 eval as_val=\$$as_ac_var
11199 if test "x$as_val" = x""yes; then :
11200 cat >>confdefs.h <<_ACEOF
11201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11202 _ACEOF
11205 done
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11212 $as_echo_n "checking for working mktime... " >&6; }
11213 if test "${ac_cv_func_working_mktime+set}" = set; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 if test "$cross_compiling" = yes; then :
11217 ac_cv_func_working_mktime=no
11218 else
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 /* Test program from Paul Eggert and Tony Leneis. */
11222 #ifdef TIME_WITH_SYS_TIME
11223 # include <sys/time.h>
11224 # include <time.h>
11225 #else
11226 # ifdef HAVE_SYS_TIME_H
11227 # include <sys/time.h>
11228 # else
11229 # include <time.h>
11230 # endif
11231 #endif
11233 #include <limits.h>
11234 #include <stdlib.h>
11236 #ifdef HAVE_UNISTD_H
11237 # include <unistd.h>
11238 #endif
11240 #ifndef HAVE_ALARM
11241 # define alarm(X) /* empty */
11242 #endif
11244 /* Work around redefinition to rpl_putenv by other config tests. */
11245 #undef putenv
11247 static time_t time_t_max;
11248 static time_t time_t_min;
11250 /* Values we'll use to set the TZ environment variable. */
11251 static char *tz_strings[] = {
11252 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11253 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11255 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11257 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11258 Based on a problem report from Andreas Jaeger. */
11259 static int
11260 spring_forward_gap ()
11262 /* glibc (up to about 1998-10-07) failed this test. */
11263 struct tm tm;
11265 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11266 instead of "TZ=America/Vancouver" in order to detect the bug even
11267 on systems that don't support the Olson extension, or don't have the
11268 full zoneinfo tables installed. */
11269 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11271 tm.tm_year = 98;
11272 tm.tm_mon = 3;
11273 tm.tm_mday = 5;
11274 tm.tm_hour = 2;
11275 tm.tm_min = 0;
11276 tm.tm_sec = 0;
11277 tm.tm_isdst = -1;
11278 return mktime (&tm) != (time_t) -1;
11281 static int
11282 mktime_test1 (now)
11283 time_t now;
11285 struct tm *lt;
11286 return ! (lt = localtime (&now)) || mktime (lt) == now;
11289 static int
11290 mktime_test (now)
11291 time_t now;
11293 return (mktime_test1 (now)
11294 && mktime_test1 ((time_t) (time_t_max - now))
11295 && mktime_test1 ((time_t) (time_t_min + now)));
11298 static int
11299 irix_6_4_bug ()
11301 /* Based on code from Ariel Faigon. */
11302 struct tm tm;
11303 tm.tm_year = 96;
11304 tm.tm_mon = 3;
11305 tm.tm_mday = 0;
11306 tm.tm_hour = 0;
11307 tm.tm_min = 0;
11308 tm.tm_sec = 0;
11309 tm.tm_isdst = -1;
11310 mktime (&tm);
11311 return tm.tm_mon == 2 && tm.tm_mday == 31;
11314 static int
11315 bigtime_test (j)
11316 int j;
11318 struct tm tm;
11319 time_t now;
11320 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11321 now = mktime (&tm);
11322 if (now != (time_t) -1)
11324 struct tm *lt = localtime (&now);
11325 if (! (lt
11326 && lt->tm_year == tm.tm_year
11327 && lt->tm_mon == tm.tm_mon
11328 && lt->tm_mday == tm.tm_mday
11329 && lt->tm_hour == tm.tm_hour
11330 && lt->tm_min == tm.tm_min
11331 && lt->tm_sec == tm.tm_sec
11332 && lt->tm_yday == tm.tm_yday
11333 && lt->tm_wday == tm.tm_wday
11334 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11335 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11336 return 0;
11338 return 1;
11341 static int
11342 year_2050_test ()
11344 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11345 ignoring leap seconds. */
11346 unsigned long int answer = 2527315200UL;
11348 struct tm tm;
11349 time_t t;
11350 tm.tm_year = 2050 - 1900;
11351 tm.tm_mon = 2 - 1;
11352 tm.tm_mday = 1;
11353 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11354 tm.tm_isdst = -1;
11356 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11357 instead of "TZ=America/Vancouver" in order to detect the bug even
11358 on systems that don't support the Olson extension, or don't have the
11359 full zoneinfo tables installed. */
11360 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11362 t = mktime (&tm);
11364 /* Check that the result is either a failure, or close enough
11365 to the correct answer that we can assume the discrepancy is
11366 due to leap seconds. */
11367 return (t == (time_t) -1
11368 || (0 < t && answer - 120 <= t && t <= answer + 120));
11372 main ()
11374 time_t t, delta;
11375 int i, j;
11377 /* This test makes some buggy mktime implementations loop.
11378 Give up after 60 seconds; a mktime slower than that
11379 isn't worth using anyway. */
11380 alarm (60);
11382 for (;;)
11384 t = (time_t_max << 1) + 1;
11385 if (t <= time_t_max)
11386 break;
11387 time_t_max = t;
11389 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11391 delta = time_t_max / 997; /* a suitable prime number */
11392 for (i = 0; i < N_STRINGS; i++)
11394 if (tz_strings[i])
11395 putenv (tz_strings[i]);
11397 for (t = 0; t <= time_t_max - delta; t += delta)
11398 if (! mktime_test (t))
11399 return 1;
11400 if (! (mktime_test ((time_t) 1)
11401 && mktime_test ((time_t) (60 * 60))
11402 && mktime_test ((time_t) (60 * 60 * 24))))
11403 return 1;
11405 for (j = 1; ; j <<= 1)
11406 if (! bigtime_test (j))
11407 return 1;
11408 else if (INT_MAX / 2 < j)
11409 break;
11410 if (! bigtime_test (INT_MAX))
11411 return 1;
11413 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11415 _ACEOF
11416 if ac_fn_c_try_run "$LINENO"; then :
11417 ac_cv_func_working_mktime=yes
11418 else
11419 ac_cv_func_working_mktime=no
11421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11422 conftest.$ac_objext conftest.beam conftest.$ac_ext
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11427 $as_echo "$ac_cv_func_working_mktime" >&6; }
11428 if test $ac_cv_func_working_mktime = no; then
11429 case " $LIBOBJS " in
11430 *" mktime.$ac_objext "* ) ;;
11431 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11433 esac
11437 if test "$ac_cv_func_working_mktime" = no; then
11439 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11443 ac_have_func=no # yes means we've found a way to get the load average.
11445 # Make sure getloadavg.c is where it belongs, at configure-time.
11446 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11447 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11449 ac_save_LIBS=$LIBS
11451 # Check for getloadavg, but be sure not to touch the cache variable.
11452 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11453 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11454 exit 0
11455 else
11456 exit 1
11458 ) && ac_have_func=yes
11460 # On HPUX9, an unprivileged user can get load averages through this function.
11461 for ac_func in pstat_getdynamic
11462 do :
11463 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11464 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11465 cat >>confdefs.h <<_ACEOF
11466 #define HAVE_PSTAT_GETDYNAMIC 1
11467 _ACEOF
11470 done
11473 # Solaris has libkstat which does not require root.
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11475 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11476 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 ac_check_lib_save_LIBS=$LIBS
11480 LIBS="-lkstat $LIBS"
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11487 #ifdef __cplusplus
11488 extern "C"
11489 #endif
11490 char kstat_open ();
11492 main ()
11494 return kstat_open ();
11496 return 0;
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_lib_kstat_kstat_open=yes
11501 else
11502 ac_cv_lib_kstat_kstat_open=no
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11509 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11510 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11511 cat >>confdefs.h <<_ACEOF
11512 #define HAVE_LIBKSTAT 1
11513 _ACEOF
11515 LIBS="-lkstat $LIBS"
11519 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11521 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11522 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11523 # to get the right answer into the cache.
11524 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11525 if test $ac_have_func = no; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11527 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11528 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-lelf $LIBS"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 /* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11539 #ifdef __cplusplus
11540 extern "C"
11541 #endif
11542 char elf_begin ();
11544 main ()
11546 return elf_begin ();
11548 return 0;
11550 _ACEOF
11551 if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_elf_elf_begin=yes
11553 else
11554 ac_cv_lib_elf_elf_begin=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11561 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11562 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11563 LIBS="-lelf $LIBS"
11567 if test $ac_have_func = no; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11569 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11570 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-lkvm $LIBS"
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char kvm_open ();
11586 main ()
11588 return kvm_open ();
11590 return 0;
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_kvm_kvm_open=yes
11595 else
11596 ac_cv_lib_kvm_kvm_open=no
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11603 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11604 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11605 LIBS="-lkvm $LIBS"
11608 # Check for the 4.4BSD definition of getloadavg.
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11610 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11611 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 ac_check_lib_save_LIBS=$LIBS
11615 LIBS="-lutil $LIBS"
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11619 /* Override any GCC internal prototype to avoid an error.
11620 Use char because int might match the return type of a GCC
11621 builtin and then its argument prototype would still apply. */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 char getloadavg ();
11627 main ()
11629 return getloadavg ();
11631 return 0;
11633 _ACEOF
11634 if ac_fn_c_try_link "$LINENO"; then :
11635 ac_cv_lib_util_getloadavg=yes
11636 else
11637 ac_cv_lib_util_getloadavg=no
11639 rm -f core conftest.err conftest.$ac_objext \
11640 conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11644 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11645 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11646 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11651 if test $ac_have_func = no; then
11652 # There is a commonly available library for RS/6000 AIX.
11653 # Since it is not a standard part of AIX, it might be installed locally.
11654 ac_getloadavg_LIBS=$LIBS
11655 LIBS="-L/usr/local/lib $LIBS"
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11657 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11658 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 ac_check_lib_save_LIBS=$LIBS
11662 LIBS="-lgetloadavg $LIBS"
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11666 /* Override any GCC internal prototype to avoid an error.
11667 Use char because int might match the return type of a GCC
11668 builtin and then its argument prototype would still apply. */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 char getloadavg ();
11674 main ()
11676 return getloadavg ();
11678 return 0;
11680 _ACEOF
11681 if ac_fn_c_try_link "$LINENO"; then :
11682 ac_cv_lib_getloadavg_getloadavg=yes
11683 else
11684 ac_cv_lib_getloadavg_getloadavg=no
11686 rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11691 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11692 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11693 LIBS="-lgetloadavg $LIBS"
11694 else
11695 LIBS=$ac_getloadavg_LIBS
11700 # Make sure it is really in the library, if we think we found it,
11701 # otherwise set up the replacement function.
11702 for ac_func in getloadavg
11703 do :
11704 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11705 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11706 cat >>confdefs.h <<_ACEOF
11707 #define HAVE_GETLOADAVG 1
11708 _ACEOF
11710 else
11711 case " $LIBOBJS " in
11712 *" getloadavg.$ac_objext "* ) ;;
11713 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11715 esac
11718 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11720 # Figure out what our getloadavg.c needs.
11721 ac_have_func=no
11722 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11723 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11724 ac_have_func=yes
11726 $as_echo "#define DGUX 1" >>confdefs.h
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11729 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11730 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-ldgc $LIBS"
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char dg_sys_info ();
11746 main ()
11748 return dg_sys_info ();
11750 return 0;
11752 _ACEOF
11753 if ac_fn_c_try_link "$LINENO"; then :
11754 ac_cv_lib_dgc_dg_sys_info=yes
11755 else
11756 ac_cv_lib_dgc_dg_sys_info=no
11758 rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760 LIBS=$ac_check_lib_save_LIBS
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11763 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11764 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11765 cat >>confdefs.h <<_ACEOF
11766 #define HAVE_LIBDGC 1
11767 _ACEOF
11769 LIBS="-ldgc $LIBS"
11777 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11778 if test "x$ac_cv_header_locale_h" = x""yes; then :
11783 for ac_func in setlocale
11784 do :
11785 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11786 if test "x$ac_cv_func_setlocale" = x""yes; then :
11787 cat >>confdefs.h <<_ACEOF
11788 #define HAVE_SETLOCALE 1
11789 _ACEOF
11792 done
11795 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11796 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11797 # Irix 4.0.5F has the header but not the library.
11798 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11799 ac_have_func=yes
11801 $as_echo "#define SVR4 1" >>confdefs.h
11805 if test $ac_have_func = no; then
11806 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11807 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11808 ac_have_func=yes
11810 $as_echo "#define UMAX 1" >>confdefs.h
11813 $as_echo "#define UMAX4_3 1" >>confdefs.h
11820 if test $ac_have_func = no; then
11821 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11822 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11823 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11830 if test $ac_have_func = no; then
11831 for ac_header in mach/mach.h
11832 do :
11833 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11834 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11835 cat >>confdefs.h <<_ACEOF
11836 #define HAVE_MACH_MACH_H 1
11837 _ACEOF
11841 done
11845 for ac_header in nlist.h
11846 do :
11847 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11848 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11849 cat >>confdefs.h <<_ACEOF
11850 #define HAVE_NLIST_H 1
11851 _ACEOF
11852 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11854 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11856 cat >>confdefs.h <<_ACEOF
11857 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11858 _ACEOF
11861 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11868 done
11871 done
11874 # Some definitions of getloadavg require that the program be installed setgid.
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11876 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11877 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11878 $as_echo_n "(cached) " >&6
11879 else
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11882 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11883 #ifdef LDAV_PRIVILEGED
11884 Yowza Am I SETGID yet
11885 #endif
11886 _ACEOF
11887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11888 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11889 ac_cv_func_getloadavg_setgid=yes
11890 else
11891 ac_cv_func_getloadavg_setgid=no
11893 rm -f conftest*
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11897 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11898 if test $ac_cv_func_getloadavg_setgid = yes; then
11899 NEED_SETGID=true
11901 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11903 else
11904 NEED_SETGID=false
11907 if test $ac_cv_func_getloadavg_setgid = yes; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11909 $as_echo_n "checking group of /dev/kmem... " >&6; }
11910 if test "${ac_cv_group_kmem+set}" = set; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11914 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11915 # If we got an error (system does not support symlinks), try without -L.
11916 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11917 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11918 | sed -ne 's/[ ][ ]*/ /g;
11919 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11920 / /s/.* //;p;'`
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11924 $as_echo "$ac_cv_group_kmem" >&6; }
11925 KMEM_GROUP=$ac_cv_group_kmem
11927 if test "x$ac_save_LIBS" = x; then
11928 GETLOADAVG_LIBS=$LIBS
11929 else
11930 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11932 LIBS=$ac_save_LIBS
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11937 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11938 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 while :; do
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944 #include <sys/types.h> /* for off_t */
11945 #include <stdio.h>
11947 main ()
11949 int (*fp) (FILE *, off_t, int) = fseeko;
11950 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11952 return 0;
11954 _ACEOF
11955 if ac_fn_c_try_link "$LINENO"; then :
11956 ac_cv_sys_largefile_source=no; break
11958 rm -f core conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #define _LARGEFILE_SOURCE 1
11963 #include <sys/types.h> /* for off_t */
11964 #include <stdio.h>
11966 main ()
11968 int (*fp) (FILE *, off_t, int) = fseeko;
11969 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11971 return 0;
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 ac_cv_sys_largefile_source=1; break
11977 rm -f core conftest.err conftest.$ac_objext \
11978 conftest$ac_exeext conftest.$ac_ext
11979 ac_cv_sys_largefile_source=unknown
11980 break
11981 done
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11984 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11985 case $ac_cv_sys_largefile_source in #(
11986 no | unknown) ;;
11988 cat >>confdefs.h <<_ACEOF
11989 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11990 _ACEOF
11992 esac
11993 rm -rf conftest*
11995 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11996 # in glibc 2.1.3, but that breaks too many other things.
11997 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11998 if test $ac_cv_sys_largefile_source != unknown; then
12000 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12005 # Configure getopt.
12006 # getopt.m4 serial 10
12008 # The getopt module assume you want GNU getopt, with getopt_long etc,
12009 # rather than vanilla POSIX getopt. This means your your code should
12010 # always include <getopt.h> for the getopt prototypes.
12022 # Prerequisites of lib/getopt*.
12027 GETOPT_H=
12028 for ac_header in getopt.h
12029 do :
12030 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12031 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12032 cat >>confdefs.h <<_ACEOF
12033 #define HAVE_GETOPT_H 1
12034 _ACEOF
12036 else
12037 GETOPT_H=getopt.h
12040 done
12042 if test -z "$GETOPT_H"; then
12043 for ac_func in getopt_long_only
12044 do :
12045 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12046 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12047 cat >>confdefs.h <<_ACEOF
12048 #define HAVE_GETOPT_LONG_ONLY 1
12049 _ACEOF
12051 else
12052 GETOPT_H=getopt.h
12054 done
12058 if test -z "$GETOPT_H"; then
12059 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12061 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12062 GETOPT_H=getopt.h
12067 if test -z "$GETOPT_H"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12069 $as_echo_n "checking for working GNU getopt function... " >&6; }
12070 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 if test "$cross_compiling" = yes; then :
12074 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12076 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12077 gl_cv_func_gnu_getopt=no
12078 else
12079 gl_cv_func_gnu_getopt=yes
12082 else
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <getopt.h>
12087 main ()
12090 char *myargv[3];
12091 myargv[0] = "conftest";
12092 myargv[1] = "-+";
12093 myargv[2] = 0;
12094 return getopt (2, myargv, "+a") != '?';
12097 return 0;
12099 _ACEOF
12100 if ac_fn_c_try_run "$LINENO"; then :
12101 gl_cv_func_gnu_getopt=yes
12102 else
12103 gl_cv_func_gnu_getopt=no
12105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12106 conftest.$ac_objext conftest.beam conftest.$ac_ext
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12111 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12112 if test "$gl_cv_func_gnu_getopt" = "no"; then
12113 GETOPT_H=getopt.h
12119 if test -n "$GETOPT_H"; then :
12122 GETOPT_H=getopt.h
12124 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12129 GETOPTOBJS='getopt.o getopt1.o'
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12136 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12137 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 # Use it with a single arg.
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143 $ac_includes_default
12145 main ()
12147 getpgrp (0);
12149 return 0;
12151 _ACEOF
12152 if ac_fn_c_try_compile "$LINENO"; then :
12153 ac_cv_func_getpgrp_void=no
12154 else
12155 ac_cv_func_getpgrp_void=yes
12157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12161 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12162 if test $ac_cv_func_getpgrp_void = yes; then
12164 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12169 for ac_func in strftime
12170 do :
12171 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12172 if test "x$ac_cv_func_strftime" = x""yes; then :
12173 cat >>confdefs.h <<_ACEOF
12174 #define HAVE_STRFTIME 1
12175 _ACEOF
12177 else
12178 # strftime is in -lintl on SCO UNIX.
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12180 $as_echo_n "checking for strftime in -lintl... " >&6; }
12181 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-lintl $LIBS"
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char strftime ();
12197 main ()
12199 return strftime ();
12201 return 0;
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_lib_intl_strftime=yes
12206 else
12207 ac_cv_lib_intl_strftime=no
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 LIBS=$ac_check_lib_save_LIBS
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12214 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12215 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12216 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12218 LIBS="-lintl $LIBS"
12222 done
12225 # UNIX98 PTYs.
12226 for ac_func in grantpt
12227 do :
12228 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12229 if test "x$ac_cv_func_grantpt" = x""yes; then :
12230 cat >>confdefs.h <<_ACEOF
12231 #define HAVE_GRANTPT 1
12232 _ACEOF
12235 done
12238 # PTY-related GNU extensions.
12239 for ac_func in getpt
12240 do :
12241 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12242 if test "x$ac_cv_func_getpt" = x""yes; then :
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_GETPT 1
12245 _ACEOF
12248 done
12251 # Check this now, so that we will NOT find the above functions in ncurses.
12252 # That is because we have not set up to link ncurses in lib-src.
12253 # It's better to believe a function is not available
12254 # than to expect to find it in ncurses.
12255 # Also we need tputs and friends to be able to build at all.
12256 have_tputs_et_al=true
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12258 $as_echo_n "checking for library containing tputs... " >&6; }
12259 if test "${ac_cv_search_tputs+set}" = set; then :
12260 $as_echo_n "(cached) " >&6
12261 else
12262 ac_func_search_save_LIBS=$LIBS
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char tputs ();
12274 main ()
12276 return tputs ();
12278 return 0;
12280 _ACEOF
12281 for ac_lib in '' ncurses terminfo termcap; do
12282 if test -z "$ac_lib"; then
12283 ac_res="none required"
12284 else
12285 ac_res=-l$ac_lib
12286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12288 if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_search_tputs=$ac_res
12291 rm -f core conftest.err conftest.$ac_objext \
12292 conftest$ac_exeext
12293 if test "${ac_cv_search_tputs+set}" = set; then :
12294 break
12296 done
12297 if test "${ac_cv_search_tputs+set}" = set; then :
12299 else
12300 ac_cv_search_tputs=no
12302 rm conftest.$ac_ext
12303 LIBS=$ac_func_search_save_LIBS
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12306 $as_echo "$ac_cv_search_tputs" >&6; }
12307 ac_res=$ac_cv_search_tputs
12308 if test "$ac_res" != no; then :
12309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12311 else
12312 have_tputs_et_al=false
12315 if test "$have_tputs_et_al" != true; then
12316 as_fn_error "I couldn't find termcap functions (tputs and friends).
12317 Maybe some development libraries/packages are missing? Try installing
12318 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12320 # Must define this when any termcap library is found.
12322 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12324 ## FIXME This was the cpp logic, but I am not sure it is right.
12325 ## The above test has not necessarily found libncurses.
12326 HAVE_LIBNCURSES=yes
12328 ## Use terminfo instead of termcap?
12329 ## Note only system files NOT using terminfo are:
12330 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12331 ## darwin|gnu without ncurses.
12332 TERMINFO=no
12333 LIBS_TERMCAP=
12334 case "$opsys" in
12335 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12336 ## hpux10-20: Use the system provided termcap(3) library.
12337 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12338 ## is necessary. Otherwise Emacs dumps core when run -nw.
12339 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
12341 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12342 ## The ncurses library has been moved out of the System framework in
12343 ## Mac OS X 10.2. So if configure detects it, set the command-line
12344 ## option to use it.
12345 darwin|gnu*)
12346 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12347 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12348 TERMINFO=yes
12349 LIBS_TERMCAP="-lncurses"
12353 freebsd)
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12355 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12356 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 #include <osreldate.h>
12363 main ()
12365 #if __FreeBSD_version < 400000
12366 fail;
12367 #endif
12370 return 0;
12372 _ACEOF
12373 if ac_fn_c_try_link "$LINENO"; then :
12374 emacs_cv_freebsd_terminfo=yes
12375 else
12376 emacs_cv_freebsd_terminfo=no
12378 rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12384 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12386 if test $emacs_cv_freebsd_terminfo = yes; then
12387 TERMINFO=yes
12388 LIBS_TERMCAP="-lncurses"
12389 else
12390 LIBS_TERMCAP="-ltermcap"
12394 netbsd)
12395 if test $ac_cv_search_tputs = -lterminfo; then
12396 TERMINFO=yes
12397 LIBS_TERMCAP="-lterminfo"
12398 else
12399 LIBS_TERMCAP="-ltermcap"
12403 esac
12405 case "$opsys" in
12406 ## hpux: Make sure we get select from libc rather than from libcurses
12407 ## because libcurses on HPUX 10.10 has a broken version of select.
12408 ## We used to use -lc -lcurses, but this may be cleaner.
12409 hpux*) LIBS_TERMCAP="-ltermcap" ;;
12411 openbsd) LIBS_TERMCAP="-lncurses" ;;
12413 ## Must use system termcap, if we use any termcap. It does special things.
12414 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12415 esac
12417 TERMCAP_OBJ=tparam.o
12418 if test $TERMINFO = yes; then
12420 $as_echo "#define TERMINFO 1" >>confdefs.h
12423 ## Default used to be -ltermcap. Add a case above if need something else.
12424 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
12426 TERMCAP_OBJ=terminfo.o
12432 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12433 resolv=no
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436 #include <netinet/in.h>
12437 #include <arpa/nameser.h>
12438 #include <resolv.h>
12440 main ()
12442 return res_init();
12444 return 0;
12446 _ACEOF
12447 if ac_fn_c_try_link "$LINENO"; then :
12448 have_res_init=yes
12449 else
12450 have_res_init=no
12452 rm -f core conftest.err conftest.$ac_objext \
12453 conftest$ac_exeext conftest.$ac_ext
12454 if test "$have_res_init" = no; then
12455 OLIBS="$LIBS"
12456 LIBS="$LIBS -lresolv"
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12458 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12461 #include <netinet/in.h>
12462 #include <arpa/nameser.h>
12463 #include <resolv.h>
12465 main ()
12467 return res_init();
12469 return 0;
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12473 have_res_init=yes
12474 else
12475 have_res_init=no
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12480 $as_echo "$have_res_init" >&6; }
12481 if test "$have_res_init" = yes ; then
12482 resolv=yes
12484 LIBS="$OLIBS"
12487 if test "$have_res_init" = yes; then
12489 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12493 # Do we need the Hesiod library to provide the support routines?
12494 LIBHESIOD=
12495 if test "$with_hesiod" != no ; then
12496 # Don't set $LIBS here -- see comments above. FIXME which comments?
12497 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12498 if test "x$ac_cv_func_res_send" = x""yes; then :
12500 else
12501 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12502 if test "x$ac_cv_func___res_send" = x""yes; then :
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12506 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12507 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510 ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-lresolv $LIBS"
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12515 /* Override any GCC internal prototype to avoid an error.
12516 Use char because int might match the return type of a GCC
12517 builtin and then its argument prototype would still apply. */
12518 #ifdef __cplusplus
12519 extern "C"
12520 #endif
12521 char res_send ();
12523 main ()
12525 return res_send ();
12527 return 0;
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 ac_cv_lib_resolv_res_send=yes
12532 else
12533 ac_cv_lib_resolv_res_send=no
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12540 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12541 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12542 resolv=yes
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12545 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12546 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-lresolv $LIBS"
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12554 /* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12557 #ifdef __cplusplus
12558 extern "C"
12559 #endif
12560 char __res_send ();
12562 main ()
12564 return __res_send ();
12566 return 0;
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570 ac_cv_lib_resolv___res_send=yes
12571 else
12572 ac_cv_lib_resolv___res_send=no
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12579 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12580 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12581 resolv=yes
12590 if test "$resolv" = yes ; then
12591 RESOLVLIB=-lresolv
12592 else
12593 RESOLVLIB=
12595 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12596 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12600 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12601 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 ac_check_lib_save_LIBS=$LIBS
12605 LIBS="-lhesiod $RESOLVLIB $LIBS"
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12609 /* Override any GCC internal prototype to avoid an error.
12610 Use char because int might match the return type of a GCC
12611 builtin and then its argument prototype would still apply. */
12612 #ifdef __cplusplus
12613 extern "C"
12614 #endif
12615 char hes_getmailhost ();
12617 main ()
12619 return hes_getmailhost ();
12621 return 0;
12623 _ACEOF
12624 if ac_fn_c_try_link "$LINENO"; then :
12625 ac_cv_lib_hesiod_hes_getmailhost=yes
12626 else
12627 ac_cv_lib_hesiod_hes_getmailhost=no
12629 rm -f core conftest.err conftest.$ac_objext \
12630 conftest$ac_exeext conftest.$ac_ext
12631 LIBS=$ac_check_lib_save_LIBS
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12634 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12635 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12636 hesiod=yes
12637 else
12644 if test x"$hesiod" = xyes; then
12646 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12648 LIBHESIOD=-lhesiod
12653 # Do we need libresolv (due to res_init or Hesiod)?
12654 if test "$resolv" = yes ; then
12656 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12658 LIBRESOLV=-lresolv
12659 else
12660 LIBRESOLV=
12664 # These tell us which Kerberos-related libraries to use.
12665 COM_ERRLIB=
12666 CRYPTOLIB=
12667 KRB5LIB=
12668 DESLIB=
12669 KRB4LIB=
12671 if test "${with_kerberos}" != no; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12673 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12674 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
12676 else
12677 ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-lcom_err $LIBS"
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char com_err ();
12690 main ()
12692 return com_err ();
12694 return 0;
12696 _ACEOF
12697 if ac_fn_c_try_link "$LINENO"; then :
12698 ac_cv_lib_com_err_com_err=yes
12699 else
12700 ac_cv_lib_com_err_com_err=no
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704 LIBS=$ac_check_lib_save_LIBS
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12707 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12708 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12709 have_com_err=yes
12710 else
12711 have_com_err=no
12714 if test $have_com_err = yes; then
12715 COM_ERRLIB=-lcom_err
12716 LIBS="$COM_ERRLIB $LIBS"
12718 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12722 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12723 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 ac_check_lib_save_LIBS=$LIBS
12727 LIBS="-lcrypto $LIBS"
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 char mit_des_cbc_encrypt ();
12739 main ()
12741 return mit_des_cbc_encrypt ();
12743 return 0;
12745 _ACEOF
12746 if ac_fn_c_try_link "$LINENO"; then :
12747 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12748 else
12749 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12751 rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12756 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12757 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12758 have_crypto=yes
12759 else
12760 have_crypto=no
12763 if test $have_crypto = yes; then
12764 CRYPTOLIB=-lcrypto
12765 LIBS="$CRYPTOLIB $LIBS"
12767 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12771 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12772 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 ac_check_lib_save_LIBS=$LIBS
12776 LIBS="-lk5crypto $LIBS"
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12780 /* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12783 #ifdef __cplusplus
12784 extern "C"
12785 #endif
12786 char mit_des_cbc_encrypt ();
12788 main ()
12790 return mit_des_cbc_encrypt ();
12792 return 0;
12794 _ACEOF
12795 if ac_fn_c_try_link "$LINENO"; then :
12796 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12797 else
12798 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12805 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12806 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12807 have_k5crypto=yes
12808 else
12809 have_k5crypto=no
12812 if test $have_k5crypto = yes; then
12813 CRYPTOLIB=-lk5crypto
12814 LIBS="$CRYPTOLIB $LIBS"
12816 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12820 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12821 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-lkrb5 $LIBS"
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12832 #ifdef __cplusplus
12833 extern "C"
12834 #endif
12835 char krb5_init_context ();
12837 main ()
12839 return krb5_init_context ();
12841 return 0;
12843 _ACEOF
12844 if ac_fn_c_try_link "$LINENO"; then :
12845 ac_cv_lib_krb5_krb5_init_context=yes
12846 else
12847 ac_cv_lib_krb5_krb5_init_context=no
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12854 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12855 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12856 have_krb5=yes
12857 else
12858 have_krb5=no
12861 if test $have_krb5=yes; then
12862 KRB5LIB=-lkrb5
12863 LIBS="$KRB5LIB $LIBS"
12865 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12868 if test "${with_kerberos5}" = no; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12870 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12871 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 ac_check_lib_save_LIBS=$LIBS
12875 LIBS="-ldes425 $LIBS"
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12882 #ifdef __cplusplus
12883 extern "C"
12884 #endif
12885 char des_cbc_encrypt ();
12887 main ()
12889 return des_cbc_encrypt ();
12891 return 0;
12893 _ACEOF
12894 if ac_fn_c_try_link "$LINENO"; then :
12895 ac_cv_lib_des425_des_cbc_encrypt=yes
12896 else
12897 ac_cv_lib_des425_des_cbc_encrypt=no
12899 rm -f core conftest.err conftest.$ac_objext \
12900 conftest$ac_exeext conftest.$ac_ext
12901 LIBS=$ac_check_lib_save_LIBS
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12904 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12905 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12906 have_des425=yes
12907 else
12908 have_des425=no
12911 if test $have_des425 = yes; then
12912 DESLIB=-ldes425
12913 LIBS="$DESLIB $LIBS"
12915 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12919 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12920 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 ac_check_lib_save_LIBS=$LIBS
12924 LIBS="-ldes $LIBS"
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12928 /* Override any GCC internal prototype to avoid an error.
12929 Use char because int might match the return type of a GCC
12930 builtin and then its argument prototype would still apply. */
12931 #ifdef __cplusplus
12932 extern "C"
12933 #endif
12934 char des_cbc_encrypt ();
12936 main ()
12938 return des_cbc_encrypt ();
12940 return 0;
12942 _ACEOF
12943 if ac_fn_c_try_link "$LINENO"; then :
12944 ac_cv_lib_des_des_cbc_encrypt=yes
12945 else
12946 ac_cv_lib_des_des_cbc_encrypt=no
12948 rm -f core conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12953 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12954 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12955 have_des=yes
12956 else
12957 have_des=no
12960 if test $have_des = yes; then
12961 DESLIB=-ldes
12962 LIBS="$DESLIB $LIBS"
12964 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12969 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12970 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 ac_check_lib_save_LIBS=$LIBS
12974 LIBS="-lkrb4 $LIBS"
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 char krb_get_cred ();
12986 main ()
12988 return krb_get_cred ();
12990 return 0;
12992 _ACEOF
12993 if ac_fn_c_try_link "$LINENO"; then :
12994 ac_cv_lib_krb4_krb_get_cred=yes
12995 else
12996 ac_cv_lib_krb4_krb_get_cred=no
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext conftest.$ac_ext
13000 LIBS=$ac_check_lib_save_LIBS
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13003 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13004 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13005 have_krb4=yes
13006 else
13007 have_krb4=no
13010 if test $have_krb4 = yes; then
13011 KRB4LIB=-lkrb4
13012 LIBS="$KRB4LIB $LIBS"
13014 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13018 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13019 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-lkrb $LIBS"
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13027 /* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
13030 #ifdef __cplusplus
13031 extern "C"
13032 #endif
13033 char krb_get_cred ();
13035 main ()
13037 return krb_get_cred ();
13039 return 0;
13041 _ACEOF
13042 if ac_fn_c_try_link "$LINENO"; then :
13043 ac_cv_lib_krb_krb_get_cred=yes
13044 else
13045 ac_cv_lib_krb_krb_get_cred=no
13047 rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049 LIBS=$ac_check_lib_save_LIBS
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13052 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13053 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13054 have_krb=yes
13055 else
13056 have_krb=no
13059 if test $have_krb = yes; then
13060 KRB4LIB=-lkrb
13061 LIBS="$KRB4LIB $LIBS"
13063 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13069 if test "${with_kerberos5}" != no; then
13070 for ac_header in krb5.h
13071 do :
13072 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13073 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13074 cat >>confdefs.h <<_ACEOF
13075 #define HAVE_KRB5_H 1
13076 _ACEOF
13077 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13079 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13081 cat >>confdefs.h <<_ACEOF
13082 #define HAVE_KRB5_ERROR_TEXT 1
13083 _ACEOF
13087 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13089 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13091 cat >>confdefs.h <<_ACEOF
13092 #define HAVE_KRB5_ERROR_E_TEXT 1
13093 _ACEOF
13100 done
13102 else
13103 for ac_header in des.h
13104 do :
13105 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13106 if test "x$ac_cv_header_des_h" = x""yes; then :
13107 cat >>confdefs.h <<_ACEOF
13108 #define HAVE_DES_H 1
13109 _ACEOF
13111 else
13112 for ac_header in kerberosIV/des.h
13113 do :
13114 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13115 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13116 cat >>confdefs.h <<_ACEOF
13117 #define HAVE_KERBEROSIV_DES_H 1
13118 _ACEOF
13120 else
13121 for ac_header in kerberos/des.h
13122 do :
13123 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13124 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13125 cat >>confdefs.h <<_ACEOF
13126 #define HAVE_KERBEROS_DES_H 1
13127 _ACEOF
13131 done
13135 done
13139 done
13141 for ac_header in krb.h
13142 do :
13143 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13144 if test "x$ac_cv_header_krb_h" = x""yes; then :
13145 cat >>confdefs.h <<_ACEOF
13146 #define HAVE_KRB_H 1
13147 _ACEOF
13149 else
13150 for ac_header in kerberosIV/krb.h
13151 do :
13152 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13153 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13154 cat >>confdefs.h <<_ACEOF
13155 #define HAVE_KERBEROSIV_KRB_H 1
13156 _ACEOF
13158 else
13159 for ac_header in kerberos/krb.h
13160 do :
13161 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13162 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13163 cat >>confdefs.h <<_ACEOF
13164 #define HAVE_KERBEROS_KRB_H 1
13165 _ACEOF
13169 done
13173 done
13177 done
13180 for ac_header in com_err.h
13181 do :
13182 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13183 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13184 cat >>confdefs.h <<_ACEOF
13185 #define HAVE_COM_ERR_H 1
13186 _ACEOF
13190 done
13200 # Solaris requires -lintl if you want strerror (which calls dgettext)
13201 # to return localized messages.
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13203 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13204 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 ac_check_lib_save_LIBS=$LIBS
13208 LIBS="-lintl $LIBS"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13212 /* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215 #ifdef __cplusplus
13216 extern "C"
13217 #endif
13218 char dgettext ();
13220 main ()
13222 return dgettext ();
13224 return 0;
13226 _ACEOF
13227 if ac_fn_c_try_link "$LINENO"; then :
13228 ac_cv_lib_intl_dgettext=yes
13229 else
13230 ac_cv_lib_intl_dgettext=no
13232 rm -f core conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
13234 LIBS=$ac_check_lib_save_LIBS
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13237 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13238 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13239 cat >>confdefs.h <<_ACEOF
13240 #define HAVE_LIBINTL 1
13241 _ACEOF
13243 LIBS="-lintl $LIBS"
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13249 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13250 if test "${emacs_cv_localtime_cache+set}" = set; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 if test x$ac_cv_func_tzset = xyes; then
13254 if test "$cross_compiling" = yes; then :
13255 # If we have tzset, assume the worst when cross-compiling.
13256 emacs_cv_localtime_cache=yes
13257 else
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260 #include <time.h>
13261 extern char **environ;
13262 unset_TZ ()
13264 char **from, **to;
13265 for (to = from = environ; (*to = *from); from++)
13266 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13267 to++;
13269 char TZ_GMT0[] = "TZ=GMT0";
13270 char TZ_PST8[] = "TZ=PST8";
13271 main()
13273 time_t now = time ((time_t *) 0);
13274 int hour_GMT0, hour_unset;
13275 if (putenv (TZ_GMT0) != 0)
13276 exit (1);
13277 hour_GMT0 = localtime (&now)->tm_hour;
13278 unset_TZ ();
13279 hour_unset = localtime (&now)->tm_hour;
13280 if (putenv (TZ_PST8) != 0)
13281 exit (1);
13282 if (localtime (&now)->tm_hour == hour_GMT0)
13283 exit (1);
13284 unset_TZ ();
13285 if (localtime (&now)->tm_hour != hour_unset)
13286 exit (1);
13287 exit (0);
13289 _ACEOF
13290 if ac_fn_c_try_run "$LINENO"; then :
13291 emacs_cv_localtime_cache=no
13292 else
13293 emacs_cv_localtime_cache=yes
13295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13296 conftest.$ac_objext conftest.beam conftest.$ac_ext
13299 else
13300 # If we lack tzset, report that localtime does not cache TZ,
13301 # since we can't invalidate the cache if we don't have tzset.
13302 emacs_cv_localtime_cache=no
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13306 $as_echo "$emacs_cv_localtime_cache" >&6; }
13307 if test $emacs_cv_localtime_cache = yes; then
13309 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13313 if test "x$HAVE_TIMEVAL" = xyes; then
13314 for ac_func in gettimeofday
13315 do :
13316 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13317 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_GETTIMEOFDAY 1
13320 _ACEOF
13323 done
13325 if test $ac_cv_func_gettimeofday = yes; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13327 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13328 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13329 $as_echo_n "(cached) " >&6
13330 else
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13334 #ifdef TIME_WITH_SYS_TIME
13335 #include <sys/time.h>
13336 #include <time.h>
13337 #else
13338 #ifdef HAVE_SYS_TIME_H
13339 #include <sys/time.h>
13340 #else
13341 #include <time.h>
13342 #endif
13343 #endif
13345 main ()
13347 struct timeval time;
13348 gettimeofday (&time, 0);
13350 return 0;
13352 _ACEOF
13353 if ac_fn_c_try_compile "$LINENO"; then :
13354 emacs_cv_gettimeofday_two_arguments=yes
13355 else
13356 emacs_cv_gettimeofday_two_arguments=no
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13361 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13362 if test $emacs_cv_gettimeofday_two_arguments = no; then
13364 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13370 ok_so_far=yes
13371 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13372 if test "x$ac_cv_func_socket" = x""yes; then :
13374 else
13375 ok_so_far=no
13378 if test $ok_so_far = yes; then
13379 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13380 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13382 else
13383 ok_so_far=no
13388 if test $ok_so_far = yes; then
13389 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13390 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13392 else
13393 ok_so_far=no
13398 if test $ok_so_far = yes; then
13400 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13404 for ac_header in sys/ioctl.h
13405 do :
13406 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13407 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13408 cat >>confdefs.h <<_ACEOF
13409 #define HAVE_SYS_IOCTL_H 1
13410 _ACEOF
13414 done
13417 if test -f /usr/lpp/X11/bin/smt.exp; then
13419 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13424 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13425 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13427 $as_echo "yes" >&6; }
13429 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13431 else
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13433 $as_echo "no" >&6; }
13436 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13437 if test "x$ac_cv_type_pid_t" = x""yes; then :
13439 else
13441 cat >>confdefs.h <<_ACEOF
13442 #define pid_t int
13443 _ACEOF
13447 for ac_header in vfork.h
13448 do :
13449 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13450 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_VFORK_H 1
13453 _ACEOF
13457 done
13459 for ac_func in fork vfork
13460 do :
13461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13462 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13463 eval as_val=\$$as_ac_var
13464 if test "x$as_val" = x""yes; then :
13465 cat >>confdefs.h <<_ACEOF
13466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13467 _ACEOF
13470 done
13472 if test "x$ac_cv_func_fork" = xyes; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13474 $as_echo_n "checking for working fork... " >&6; }
13475 if test "${ac_cv_func_fork_works+set}" = set; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 if test "$cross_compiling" = yes; then :
13479 ac_cv_func_fork_works=cross
13480 else
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13483 $ac_includes_default
13485 main ()
13488 /* By Ruediger Kuhlmann. */
13489 return fork () < 0;
13492 return 0;
13494 _ACEOF
13495 if ac_fn_c_try_run "$LINENO"; then :
13496 ac_cv_func_fork_works=yes
13497 else
13498 ac_cv_func_fork_works=no
13500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13501 conftest.$ac_objext conftest.beam conftest.$ac_ext
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13506 $as_echo "$ac_cv_func_fork_works" >&6; }
13508 else
13509 ac_cv_func_fork_works=$ac_cv_func_fork
13511 if test "x$ac_cv_func_fork_works" = xcross; then
13512 case $host in
13513 *-*-amigaos* | *-*-msdosdjgpp*)
13514 # Override, as these systems have only a dummy fork() stub
13515 ac_cv_func_fork_works=no
13518 ac_cv_func_fork_works=yes
13520 esac
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13522 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13524 ac_cv_func_vfork_works=$ac_cv_func_vfork
13525 if test "x$ac_cv_func_vfork" = xyes; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13527 $as_echo_n "checking for working vfork... " >&6; }
13528 if test "${ac_cv_func_vfork_works+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
13530 else
13531 if test "$cross_compiling" = yes; then :
13532 ac_cv_func_vfork_works=cross
13533 else
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536 /* Thanks to Paul Eggert for this test. */
13537 $ac_includes_default
13538 #include <sys/wait.h>
13539 #ifdef HAVE_VFORK_H
13540 # include <vfork.h>
13541 #endif
13542 /* On some sparc systems, changes by the child to local and incoming
13543 argument registers are propagated back to the parent. The compiler
13544 is told about this with #include <vfork.h>, but some compilers
13545 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13546 static variable whose address is put into a register that is
13547 clobbered by the vfork. */
13548 static void
13549 #ifdef __cplusplus
13550 sparc_address_test (int arg)
13551 # else
13552 sparc_address_test (arg) int arg;
13553 #endif
13555 static pid_t child;
13556 if (!child) {
13557 child = vfork ();
13558 if (child < 0) {
13559 perror ("vfork");
13560 _exit(2);
13562 if (!child) {
13563 arg = getpid();
13564 write(-1, "", 0);
13565 _exit (arg);
13571 main ()
13573 pid_t parent = getpid ();
13574 pid_t child;
13576 sparc_address_test (0);
13578 child = vfork ();
13580 if (child == 0) {
13581 /* Here is another test for sparc vfork register problems. This
13582 test uses lots of local variables, at least as many local
13583 variables as main has allocated so far including compiler
13584 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13585 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13586 reuse the register of parent for one of the local variables,
13587 since it will think that parent can't possibly be used any more
13588 in this routine. Assigning to the local variable will thus
13589 munge parent in the parent process. */
13590 pid_t
13591 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13592 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13593 /* Convince the compiler that p..p7 are live; otherwise, it might
13594 use the same hardware register for all 8 local variables. */
13595 if (p != p1 || p != p2 || p != p3 || p != p4
13596 || p != p5 || p != p6 || p != p7)
13597 _exit(1);
13599 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13600 from child file descriptors. If the child closes a descriptor
13601 before it execs or exits, this munges the parent's descriptor
13602 as well. Test for this by closing stdout in the child. */
13603 _exit(close(fileno(stdout)) != 0);
13604 } else {
13605 int status;
13606 struct stat st;
13608 while (wait(&status) != child)
13610 return (
13611 /* Was there some problem with vforking? */
13612 child < 0
13614 /* Did the child fail? (This shouldn't happen.) */
13615 || status
13617 /* Did the vfork/compiler bug occur? */
13618 || parent != getpid()
13620 /* Did the file descriptor bug occur? */
13621 || fstat(fileno(stdout), &st) != 0
13625 _ACEOF
13626 if ac_fn_c_try_run "$LINENO"; then :
13627 ac_cv_func_vfork_works=yes
13628 else
13629 ac_cv_func_vfork_works=no
13631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13632 conftest.$ac_objext conftest.beam conftest.$ac_ext
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13637 $as_echo "$ac_cv_func_vfork_works" >&6; }
13640 if test "x$ac_cv_func_fork_works" = xcross; then
13641 ac_cv_func_vfork_works=$ac_cv_func_vfork
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13643 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13646 if test "x$ac_cv_func_vfork_works" = xyes; then
13648 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13650 else
13652 $as_echo "#define vfork fork" >>confdefs.h
13655 if test "x$ac_cv_func_fork_works" = xyes; then
13657 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13663 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13664 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13665 $as_echo_n "(cached) " >&6
13666 else
13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13669 #include <langinfo.h>
13671 main ()
13673 char* cs = nl_langinfo(CODESET);
13675 return 0;
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 emacs_cv_langinfo_codeset=yes
13680 else
13681 emacs_cv_langinfo_codeset=no
13683 rm -f core conftest.err conftest.$ac_objext \
13684 conftest$ac_exeext conftest.$ac_ext
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13688 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13689 if test $emacs_cv_langinfo_codeset = yes; then
13691 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13695 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13696 if test "x$ac_cv_type_size_t" = x""yes; then :
13698 cat >>confdefs.h <<_ACEOF
13699 #define HAVE_SIZE_T 1
13700 _ACEOF
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13707 $as_echo_n "checking for mbstate_t... " >&6; }
13708 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13710 else
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13713 $ac_includes_default
13714 # include <wchar.h>
13716 main ()
13718 mbstate_t x; return sizeof x;
13720 return 0;
13722 _ACEOF
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724 ac_cv_type_mbstate_t=yes
13725 else
13726 ac_cv_type_mbstate_t=no
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13731 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13732 if test $ac_cv_type_mbstate_t = yes; then
13734 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13736 else
13738 $as_echo "#define mbstate_t int" >>confdefs.h
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13743 $as_echo_n "checking for C restrict keyword... " >&6; }
13744 if test "${emacs_cv_c_restrict+set}" = set; then :
13745 $as_echo_n "(cached) " >&6
13746 else
13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 void fred (int *restrict x);
13751 main ()
13755 return 0;
13757 _ACEOF
13758 if ac_fn_c_try_compile "$LINENO"; then :
13759 emacs_cv_c_restrict=yes
13760 else
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 void fred (int *__restrict x);
13765 main ()
13769 return 0;
13771 _ACEOF
13772 if ac_fn_c_try_compile "$LINENO"; then :
13773 emacs_cv_c_restrict=__restrict
13774 else
13775 emacs_cv_c_restrict=no
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13782 $as_echo "$emacs_cv_c_restrict" >&6; }
13783 case "$emacs_cv_c_restrict" in
13784 yes) emacs_restrict=restrict;;
13785 no) emacs_restrict="";;
13786 *) emacs_restrict="$emacs_cv_c_restrict";;
13787 esac
13788 if test "$emacs_restrict" != __restrict; then
13790 cat >>confdefs.h <<_ACEOF
13791 #define __restrict $emacs_restrict
13792 _ACEOF
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13797 $as_echo_n "checking for C restricted array declarations... " >&6; }
13798 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 void fred (int x[__restrict]);
13805 main ()
13809 return 0;
13811 _ACEOF
13812 if ac_fn_c_try_compile "$LINENO"; then :
13813 emacs_cv_c_restrict_arr=yes
13814 else
13815 emacs_cv_c_restrict_arr=no
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13820 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13821 if test "$emacs_cv_c_restrict_arr" = yes; then
13823 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13829 # Set up the CFLAGS for real compilation, so we can substitute it.
13830 CFLAGS="$REAL_CFLAGS"
13831 CPPFLAGS="$REAL_CPPFLAGS"
13833 ## Hack to detect a buggy GCC version.
13834 if test "x$GCC" = xyes \
13835 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13836 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13837 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13838 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13841 #### Find out which version of Emacs this is.
13842 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13843 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13844 if test x"${version}" = x; then
13845 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13847 if test x"${version}" != x"$PACKAGE_VERSION"; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13849 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13852 ### Specify what sort of things we'll be editing into Makefile and config.h.
13853 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13856 ## Unused?
13877 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13878 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13879 ## end of LIBX_BASE, but nothing ever set it.
13884 ## Used in lwlib/Makefile.in.
13897 cat >>confdefs.h <<_ACEOF
13898 #define EMACS_CONFIGURATION "${canonical}"
13899 _ACEOF
13902 cat >>confdefs.h <<_ACEOF
13903 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13904 _ACEOF
13907 cat >>confdefs.h <<_ACEOF
13908 #define config_machfile "${machfile}"
13909 _ACEOF
13912 cat >>confdefs.h <<_ACEOF
13913 #define config_opsysfile "${opsysfile}"
13914 _ACEOF
13917 XMENU_OBJ=
13918 XOBJ=
13919 FONT_OBJ=
13920 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13922 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13924 XMENU_OBJ=xmenu.o
13925 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13926 FONT_OBJ=xfont.o
13927 if test "$HAVE_XFT" = "yes"; then
13928 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
13929 elif test "$HAVE_FREETYPE" = "yes"; then
13930 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
13938 WIDGET_OBJ=
13939 MOTIF_LIBW=
13940 if test "${USE_X_TOOLKIT}" != "none" ; then
13941 WIDGET_OBJ=widget.o
13943 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13945 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13947 $as_echo "#define USE_LUCID 1" >>confdefs.h
13949 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13951 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13953 MOTIF_LIBW=-lXm
13954 case "$opsys" in
13955 gnu-linux)
13956 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13957 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
13960 unixware)
13961 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13962 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13963 MOTIF_LIBW="MOTIF_LIBW -lXimp"
13966 aix4-2)
13967 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13968 MOTIF_LIBW="$MOTIF_LIBW -li18n"
13970 esac
13971 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
13976 TOOLKIT_LIBW=
13977 case "$USE_X_TOOLKIT" in
13978 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
13979 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
13980 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
13981 esac
13984 if test "$USE_X_TOOLKIT" = "none"; then
13985 LIBXT_OTHER="\$(LIBXSM)"
13986 OLDXMENU_TARGET="really-oldXMenu"
13987 else
13988 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
13989 OLDXMENU_TARGET="really-lwlib"
13993 ## The X Menu stuff is present in the X10 distribution, but missing
13994 ## from X11. If we have X10, just use the installed library;
13995 ## otherwise, use our own copy.
13996 if test "${HAVE_X11}" = "yes" ; then
13998 $as_echo "#define HAVE_X11 1" >>confdefs.h
14001 if test "$USE_X_TOOLKIT" = "none"; then
14002 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14003 else
14004 OLDXMENU="\${lwlibdir}liblw.a"
14006 LIBXMENU="\$(OLDXMENU)"
14007 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14008 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14009 else
14010 ## For a syntactically valid Makefile; not actually used for anything.
14011 ## See comments in src/Makefile.in.
14012 OLDXMENU=nothing
14013 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14014 if test "${HAVE_X_WINDOWS}" = "yes"; then
14015 LIBXMENU="-lXMenu"
14016 else
14017 LIBXMENU=
14019 LIBX_OTHER=
14020 OLDXMENU_DEPS=
14023 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14024 OLDXMENU_TARGET=
14025 OLDXMENU=nothing
14026 LIBXMENU=
14027 OLDXMENU_DEPS=
14036 if test "${HAVE_MENUS}" = "yes" ; then
14038 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14042 if test "${GNU_MALLOC}" = "yes" ; then
14044 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14048 RALLOC_OBJ=
14049 if test "${REL_ALLOC}" = "yes" ; then
14051 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14054 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14058 if test "$opsys" = "cygwin"; then
14059 CYGWIN_OBJ="sheap.o"
14060 ## Cygwin differs because of its unexec().
14061 PRE_ALLOC_OBJ=
14062 POST_ALLOC_OBJ=lastfile.o
14063 else
14064 CYGWIN_OBJ=
14065 PRE_ALLOC_OBJ=lastfile.o
14066 POST_ALLOC_OBJ=
14073 case "$opsys" in
14074 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14076 darwin)
14077 ## The -headerpad option tells ld (see man page) to leave room at the
14078 ## end of the header for adding load commands. Needed for dumping.
14079 ## 0x690 is the total size of 30 segment load commands (at 56
14080 ## each); under Cocoa 31 commands are required.
14081 if test "$HAVE_NS" = "yes"; then
14082 libs_nsgui="-framework AppKit"
14083 headerpad_extra=6C8
14084 else
14085 libs_nsgui=
14086 headerpad_extra=690
14088 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14090 ## This is here because src/Makefile.in did some extra fiddling around
14091 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14092 ## #ifndef LD_SWITCH_SYSTEM
14093 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14094 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14095 ## not using gcc, darwin system not on an alpha (ie darwin, since
14096 ## darwin + alpha does not occur).
14097 ## Because this was done in src/Makefile.in, the resulting part of
14098 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14099 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14100 ## rather than LD_SWITCH_SYSTEM.
14101 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14102 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14105 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14106 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14107 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14108 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14109 ## had different values in configure (in ac_link) and src/Makefile.in.
14110 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14111 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14113 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14114 esac
14116 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14117 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14123 LINKER=
14124 ORDINARY_LINK=
14125 case "$opsys" in
14126 ## gnu: GNU needs its own crt0.
14127 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14129 cygwin) LINKER="\$(CC)" ;;
14131 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14132 ## library search parth, i.e. it won't search /usr/lib for libc and
14133 ## friends. Using -nostartfiles instead avoids this problem, and
14134 ## will also work on earlier NetBSD releases.
14135 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
14137 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14138 ## MkLinux/LinuxPPC needs this.
14139 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14140 gnu-*)
14141 case "$machine" in
14142 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
14143 esac
14145 esac
14148 PRE_EDIT_LDFLAGS=
14149 POST_EDIT_LDFLAGS=
14150 if test "x$ORDINARY_LINK" = "xyes"; then
14152 LINKER="\$(CC)"
14154 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14157 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14158 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14159 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14161 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14162 ## places that are difficult to figure out at make time. Fortunately,
14163 ## these same versions allow you to pass arbitrary flags on to the
14164 ## linker, so there is no reason not to use it as a linker.
14166 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14167 ## searching for libraries in its internal directories, so we have to
14168 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14169 LINKER="\$(CC) -nostdlib"
14170 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
14171 ## See prefix-args.c for an explanation of why we do not do this with the
14172 ## shell''s ``for'' construct. Note that sane people do not have '.' in
14173 ## their paths, so we must use ./prefix-args.
14174 ## TODO either make prefix-args check ORDINARY_LINK internally,
14175 ## or remove it altogether (bug#6184), removing the need for this hack.
14176 PRE_EDIT_LDFLAGS='`./prefix-args -Xlinker'
14177 POST_EDIT_LDFLAGS='`'
14182 test "x$LINKER" = "x" && LINKER=ld
14183 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14184 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
14189 ## FIXME? The logic here is not precisely the same as that above.
14190 ## There is no check here for a pre-defined LINKER.
14191 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14192 LIB_GCC=
14193 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14195 case "$opsys" in
14196 ## cygwin: don't link against static libgcc.
14197 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
14199 gnu-*)
14200 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14201 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14202 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14203 if test "$machine" = "arm"; then
14204 LIB_GCC="-lgcc_s"
14205 else
14206 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14207 ## immediately undefine it again and redefine it to empty.
14208 ## Was the C_SWITCH_X_SITE part really necessary?
14209 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14210 LIB_GCC=
14214 ## Ask GCC where to find libgcc.a.
14215 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14216 esac
14220 TOOLTIP_SUPPORT=
14221 WINDOW_SUPPORT=
14222 ## If we're using X11/GNUstep, define some consequences.
14223 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14225 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14228 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14230 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14231 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14233 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14234 test "$HAVE_X_WINDOWS" = "yes" && \
14235 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14245 #### Report on what we decided to do.
14246 #### Report GTK as a toolkit, even if it doesn't use Xt.
14247 #### It makes printing result more understandable as using GTK sets
14248 #### toolkit_scroll_bars to yes by default.
14249 if test "${HAVE_GTK}" = "yes"; then
14250 USE_X_TOOLKIT=GTK
14253 echo "
14254 Configured for \`${canonical}'.
14256 Where should the build process find the source code? ${srcdir}
14257 What operating system and machine description files should Emacs use?
14258 \`${opsysfile}' and \`${machfile}'
14259 What compiler should emacs be built with? ${CC} ${CFLAGS}
14260 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14261 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14262 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14263 What window system should Emacs use? ${window_system}
14264 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14266 if test -n "${x_includes}"; then
14267 echo " Where do we find X Windows header files? ${x_includes}"
14268 else
14269 echo " Where do we find X Windows header files? Standard dirs"
14271 if test -n "${x_libraries}"; then
14272 echo " Where do we find X Windows libraries? ${x_libraries}"
14273 else
14274 echo " Where do we find X Windows libraries? Standard dirs"
14277 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14278 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14279 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14280 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14281 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14282 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14283 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14284 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14285 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14286 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14287 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14289 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14290 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14291 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14292 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14294 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14295 echo
14297 if test $USE_XASSERTS = yes; then
14298 echo " Compiling with asserts turned on."
14299 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14302 echo
14304 if test "$HAVE_NS" = "yes"; then
14305 echo
14306 echo "You must run \"make install\" in order to test the built application.
14307 The installed application will go to nextstep/Emacs.app and can be
14308 run or moved from there."
14309 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14310 echo "The application will be fully self-contained."
14311 else
14312 echo "The lisp resources for the application will be installed under ${prefix}.
14313 You may need to run \"make install\" with sudo. The application will fail
14314 to run if these resources are not installed."
14316 echo
14319 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14320 echo "D-Bus integration has been tested for GNU/Linux only."
14321 echo
14325 # Remove any trailing slashes in these variables.
14326 test "${prefix}" != NONE &&
14327 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14328 test "${exec_prefix}" != NONE &&
14329 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14331 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"
14333 ac_config_commands="$ac_config_commands default"
14335 cat >confcache <<\_ACEOF
14336 # This file is a shell script that caches the results of configure
14337 # tests run on this system so they can be shared between configure
14338 # scripts and configure runs, see configure's option --config-cache.
14339 # It is not useful on other systems. If it contains results you don't
14340 # want to keep, you may remove or edit it.
14342 # config.status only pays attention to the cache file if you give it
14343 # the --recheck option to rerun configure.
14345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14347 # following values.
14349 _ACEOF
14351 # The following way of writing the cache mishandles newlines in values,
14352 # but we know of no workaround that is simple, portable, and efficient.
14353 # So, we kill variables containing newlines.
14354 # Ultrix sh set writes to stderr and can't be redirected directly,
14355 # and sets the high bit in the cache file unless we assign to the vars.
14357 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14358 eval ac_val=\$$ac_var
14359 case $ac_val in #(
14360 *${as_nl}*)
14361 case $ac_var in #(
14362 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14363 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14364 esac
14365 case $ac_var in #(
14366 _ | IFS | as_nl) ;; #(
14367 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14368 *) { eval $ac_var=; unset $ac_var;} ;;
14369 esac ;;
14370 esac
14371 done
14373 (set) 2>&1 |
14374 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14375 *${as_nl}ac_space=\ *)
14376 # `set' does not quote correctly, so add quotes: double-quote
14377 # substitution turns \\\\ into \\, and sed turns \\ into \.
14378 sed -n \
14379 "s/'/'\\\\''/g;
14380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14381 ;; #(
14383 # `set' quotes correctly as required by POSIX, so do not add quotes.
14384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14386 esac |
14387 sort
14389 sed '
14390 /^ac_cv_env_/b end
14391 t clear
14392 :clear
14393 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14394 t end
14395 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14396 :end' >>confcache
14397 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14398 if test -w "$cache_file"; then
14399 test "x$cache_file" != "x/dev/null" &&
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14401 $as_echo "$as_me: updating cache $cache_file" >&6;}
14402 cat confcache >$cache_file
14403 else
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14405 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14408 rm -f confcache
14410 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14411 # Let make expand exec_prefix.
14412 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14414 DEFS=-DHAVE_CONFIG_H
14416 ac_libobjs=
14417 ac_ltlibobjs=
14418 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14419 # 1. Remove the extension, and $U if already installed.
14420 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14421 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14422 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14423 # will be set to the directory where LIBOBJS objects are built.
14424 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14425 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14426 done
14427 LIBOBJS=$ac_libobjs
14429 LTLIBOBJS=$ac_ltlibobjs
14433 : ${CONFIG_STATUS=./config.status}
14434 ac_write_fail=0
14435 ac_clean_files_save=$ac_clean_files
14436 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14438 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14439 as_write_fail=0
14440 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14441 #! $SHELL
14442 # Generated by $as_me.
14443 # Run this file to recreate the current configuration.
14444 # Compiler output produced by configure, useful for debugging
14445 # configure, is in config.log if it exists.
14447 debug=false
14448 ac_cs_recheck=false
14449 ac_cs_silent=false
14451 SHELL=\${CONFIG_SHELL-$SHELL}
14452 export SHELL
14453 _ASEOF
14454 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14455 ## -------------------- ##
14456 ## M4sh Initialization. ##
14457 ## -------------------- ##
14459 # Be more Bourne compatible
14460 DUALCASE=1; export DUALCASE # for MKS sh
14461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14462 emulate sh
14463 NULLCMD=:
14464 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14465 # is contrary to our usage. Disable this feature.
14466 alias -g '${1+"$@"}'='"$@"'
14467 setopt NO_GLOB_SUBST
14468 else
14469 case `(set -o) 2>/dev/null` in #(
14470 *posix*) :
14471 set -o posix ;; #(
14472 *) :
14474 esac
14478 as_nl='
14480 export as_nl
14481 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14482 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14483 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14484 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14485 # Prefer a ksh shell builtin over an external printf program on Solaris,
14486 # but without wasting forks for bash or zsh.
14487 if test -z "$BASH_VERSION$ZSH_VERSION" \
14488 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14489 as_echo='print -r --'
14490 as_echo_n='print -rn --'
14491 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14492 as_echo='printf %s\n'
14493 as_echo_n='printf %s'
14494 else
14495 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14496 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14497 as_echo_n='/usr/ucb/echo -n'
14498 else
14499 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14500 as_echo_n_body='eval
14501 arg=$1;
14502 case $arg in #(
14503 *"$as_nl"*)
14504 expr "X$arg" : "X\\(.*\\)$as_nl";
14505 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14506 esac;
14507 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14509 export as_echo_n_body
14510 as_echo_n='sh -c $as_echo_n_body as_echo'
14512 export as_echo_body
14513 as_echo='sh -c $as_echo_body as_echo'
14516 # The user is always right.
14517 if test "${PATH_SEPARATOR+set}" != set; then
14518 PATH_SEPARATOR=:
14519 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14520 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14521 PATH_SEPARATOR=';'
14526 # IFS
14527 # We need space, tab and new line, in precisely that order. Quoting is
14528 # there to prevent editors from complaining about space-tab.
14529 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14530 # splitting by setting IFS to empty value.)
14531 IFS=" "" $as_nl"
14533 # Find who we are. Look in the path if we contain no directory separator.
14534 case $0 in #((
14535 *[\\/]* ) as_myself=$0 ;;
14536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14537 for as_dir in $PATH
14539 IFS=$as_save_IFS
14540 test -z "$as_dir" && as_dir=.
14541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14542 done
14543 IFS=$as_save_IFS
14546 esac
14547 # We did not find ourselves, most probably we were run as `sh COMMAND'
14548 # in which case we are not to be found in the path.
14549 if test "x$as_myself" = x; then
14550 as_myself=$0
14552 if test ! -f "$as_myself"; then
14553 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14554 exit 1
14557 # Unset variables that we do not need and which cause bugs (e.g. in
14558 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14559 # suppresses any "Segmentation fault" message there. '((' could
14560 # trigger a bug in pdksh 5.2.14.
14561 for as_var in BASH_ENV ENV MAIL MAILPATH
14562 do eval test x\${$as_var+set} = xset \
14563 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14564 done
14565 PS1='$ '
14566 PS2='> '
14567 PS4='+ '
14569 # NLS nuisances.
14570 LC_ALL=C
14571 export LC_ALL
14572 LANGUAGE=C
14573 export LANGUAGE
14575 # CDPATH.
14576 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14579 # as_fn_error ERROR [LINENO LOG_FD]
14580 # ---------------------------------
14581 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14582 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14583 # script with status $?, using 1 if that was 0.
14584 as_fn_error ()
14586 as_status=$?; test $as_status -eq 0 && as_status=1
14587 if test "$3"; then
14588 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14589 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14591 $as_echo "$as_me: error: $1" >&2
14592 as_fn_exit $as_status
14593 } # as_fn_error
14596 # as_fn_set_status STATUS
14597 # -----------------------
14598 # Set $? to STATUS, without forking.
14599 as_fn_set_status ()
14601 return $1
14602 } # as_fn_set_status
14604 # as_fn_exit STATUS
14605 # -----------------
14606 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14607 as_fn_exit ()
14609 set +e
14610 as_fn_set_status $1
14611 exit $1
14612 } # as_fn_exit
14614 # as_fn_unset VAR
14615 # ---------------
14616 # Portably unset VAR.
14617 as_fn_unset ()
14619 { eval $1=; unset $1;}
14621 as_unset=as_fn_unset
14622 # as_fn_append VAR VALUE
14623 # ----------------------
14624 # Append the text in VALUE to the end of the definition contained in VAR. Take
14625 # advantage of any shell optimizations that allow amortized linear growth over
14626 # repeated appends, instead of the typical quadratic growth present in naive
14627 # implementations.
14628 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14629 eval 'as_fn_append ()
14631 eval $1+=\$2
14633 else
14634 as_fn_append ()
14636 eval $1=\$$1\$2
14638 fi # as_fn_append
14640 # as_fn_arith ARG...
14641 # ------------------
14642 # Perform arithmetic evaluation on the ARGs, and store the result in the
14643 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14644 # must be portable across $(()) and expr.
14645 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14646 eval 'as_fn_arith ()
14648 as_val=$(( $* ))
14650 else
14651 as_fn_arith ()
14653 as_val=`expr "$@" || test $? -eq 1`
14655 fi # as_fn_arith
14658 if expr a : '\(a\)' >/dev/null 2>&1 &&
14659 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14660 as_expr=expr
14661 else
14662 as_expr=false
14665 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14666 as_basename=basename
14667 else
14668 as_basename=false
14671 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14672 as_dirname=dirname
14673 else
14674 as_dirname=false
14677 as_me=`$as_basename -- "$0" ||
14678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14679 X"$0" : 'X\(//\)$' \| \
14680 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14681 $as_echo X/"$0" |
14682 sed '/^.*\/\([^/][^/]*\)\/*$/{
14683 s//\1/
14686 /^X\/\(\/\/\)$/{
14687 s//\1/
14690 /^X\/\(\/\).*/{
14691 s//\1/
14694 s/.*/./; q'`
14696 # Avoid depending upon Character Ranges.
14697 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14698 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14699 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14700 as_cr_digits='0123456789'
14701 as_cr_alnum=$as_cr_Letters$as_cr_digits
14703 ECHO_C= ECHO_N= ECHO_T=
14704 case `echo -n x` in #(((((
14705 -n*)
14706 case `echo 'xy\c'` in
14707 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14708 xy) ECHO_C='\c';;
14709 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14710 ECHO_T=' ';;
14711 esac;;
14713 ECHO_N='-n';;
14714 esac
14716 rm -f conf$$ conf$$.exe conf$$.file
14717 if test -d conf$$.dir; then
14718 rm -f conf$$.dir/conf$$.file
14719 else
14720 rm -f conf$$.dir
14721 mkdir conf$$.dir 2>/dev/null
14723 if (echo >conf$$.file) 2>/dev/null; then
14724 if ln -s conf$$.file conf$$ 2>/dev/null; then
14725 as_ln_s='ln -s'
14726 # ... but there are two gotchas:
14727 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14728 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14729 # In both cases, we have to default to `cp -p'.
14730 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14731 as_ln_s='cp -p'
14732 elif ln conf$$.file conf$$ 2>/dev/null; then
14733 as_ln_s=ln
14734 else
14735 as_ln_s='cp -p'
14737 else
14738 as_ln_s='cp -p'
14740 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14741 rmdir conf$$.dir 2>/dev/null
14744 # as_fn_mkdir_p
14745 # -------------
14746 # Create "$as_dir" as a directory, including parents if necessary.
14747 as_fn_mkdir_p ()
14750 case $as_dir in #(
14751 -*) as_dir=./$as_dir;;
14752 esac
14753 test -d "$as_dir" || eval $as_mkdir_p || {
14754 as_dirs=
14755 while :; do
14756 case $as_dir in #(
14757 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14758 *) as_qdir=$as_dir;;
14759 esac
14760 as_dirs="'$as_qdir' $as_dirs"
14761 as_dir=`$as_dirname -- "$as_dir" ||
14762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14763 X"$as_dir" : 'X\(//\)[^/]' \| \
14764 X"$as_dir" : 'X\(//\)$' \| \
14765 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14766 $as_echo X"$as_dir" |
14767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14768 s//\1/
14771 /^X\(\/\/\)[^/].*/{
14772 s//\1/
14775 /^X\(\/\/\)$/{
14776 s//\1/
14779 /^X\(\/\).*/{
14780 s//\1/
14783 s/.*/./; q'`
14784 test -d "$as_dir" && break
14785 done
14786 test -z "$as_dirs" || eval "mkdir $as_dirs"
14787 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14790 } # as_fn_mkdir_p
14791 if mkdir -p . 2>/dev/null; then
14792 as_mkdir_p='mkdir -p "$as_dir"'
14793 else
14794 test -d ./-p && rmdir ./-p
14795 as_mkdir_p=false
14798 if test -x / >/dev/null 2>&1; then
14799 as_test_x='test -x'
14800 else
14801 if ls -dL / >/dev/null 2>&1; then
14802 as_ls_L_option=L
14803 else
14804 as_ls_L_option=
14806 as_test_x='
14807 eval sh -c '\''
14808 if test -d "$1"; then
14809 test -d "$1/.";
14810 else
14811 case $1 in #(
14812 -*)set "./$1";;
14813 esac;
14814 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14815 ???[sx]*):;;*)false;;esac;fi
14816 '\'' sh
14819 as_executable_p=$as_test_x
14821 # Sed expression to map a string onto a valid CPP name.
14822 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14824 # Sed expression to map a string onto a valid variable name.
14825 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14828 exec 6>&1
14829 ## ----------------------------------- ##
14830 ## Main body of $CONFIG_STATUS script. ##
14831 ## ----------------------------------- ##
14832 _ASEOF
14833 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14836 # Save the log message, to keep $0 and so on meaningful, and to
14837 # report actual input values of CONFIG_FILES etc. instead of their
14838 # values after options handling.
14839 ac_log="
14840 This file was extended by emacs $as_me 24.0.50, which was
14841 generated by GNU Autoconf 2.65. Invocation command line was
14843 CONFIG_FILES = $CONFIG_FILES
14844 CONFIG_HEADERS = $CONFIG_HEADERS
14845 CONFIG_LINKS = $CONFIG_LINKS
14846 CONFIG_COMMANDS = $CONFIG_COMMANDS
14847 $ $0 $@
14849 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14852 _ACEOF
14854 case $ac_config_files in *"
14855 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14856 esac
14858 case $ac_config_headers in *"
14859 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14860 esac
14863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14864 # Files that config.status was made for.
14865 config_files="$ac_config_files"
14866 config_headers="$ac_config_headers"
14867 config_commands="$ac_config_commands"
14869 _ACEOF
14871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14872 ac_cs_usage="\
14873 \`$as_me' instantiates files and other configuration actions
14874 from templates according to the current configuration. Unless the files
14875 and actions are specified as TAGs, all are instantiated by default.
14877 Usage: $0 [OPTION]... [TAG]...
14879 -h, --help print this help, then exit
14880 -V, --version print version number and configuration settings, then exit
14881 --config print configuration, then exit
14882 -q, --quiet, --silent
14883 do not print progress messages
14884 -d, --debug don't remove temporary files
14885 --recheck update $as_me by reconfiguring in the same conditions
14886 --file=FILE[:TEMPLATE]
14887 instantiate the configuration file FILE
14888 --header=FILE[:TEMPLATE]
14889 instantiate the configuration header FILE
14891 Configuration files:
14892 $config_files
14894 Configuration headers:
14895 $config_headers
14897 Configuration commands:
14898 $config_commands
14900 Report bugs to the package provider."
14902 _ACEOF
14903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14904 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14905 ac_cs_version="\\
14906 emacs config.status 24.0.50
14907 configured by $0, generated by GNU Autoconf 2.65,
14908 with options \\"\$ac_cs_config\\"
14910 Copyright (C) 2009 Free Software Foundation, Inc.
14911 This config.status script is free software; the Free Software Foundation
14912 gives unlimited permission to copy, distribute and modify it."
14914 ac_pwd='$ac_pwd'
14915 srcdir='$srcdir'
14916 INSTALL='$INSTALL'
14917 test -n "\$AWK" || AWK=awk
14918 _ACEOF
14920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14921 # The default lists apply if the user does not specify any file.
14922 ac_need_defaults=:
14923 while test $# != 0
14925 case $1 in
14926 --*=*)
14927 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14929 ac_shift=:
14932 ac_option=$1
14933 ac_optarg=$2
14934 ac_shift=shift
14936 esac
14938 case $ac_option in
14939 # Handling of the options.
14940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14941 ac_cs_recheck=: ;;
14942 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14943 $as_echo "$ac_cs_version"; exit ;;
14944 --config | --confi | --conf | --con | --co | --c )
14945 $as_echo "$ac_cs_config"; exit ;;
14946 --debug | --debu | --deb | --de | --d | -d )
14947 debug=: ;;
14948 --file | --fil | --fi | --f )
14949 $ac_shift
14950 case $ac_optarg in
14951 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14952 esac
14953 as_fn_append CONFIG_FILES " '$ac_optarg'"
14954 ac_need_defaults=false;;
14955 --header | --heade | --head | --hea )
14956 $ac_shift
14957 case $ac_optarg in
14958 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14959 esac
14960 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14961 ac_need_defaults=false;;
14962 --he | --h)
14963 # Conflict between --help and --header
14964 as_fn_error "ambiguous option: \`$1'
14965 Try \`$0 --help' for more information.";;
14966 --help | --hel | -h )
14967 $as_echo "$ac_cs_usage"; exit ;;
14968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14969 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14970 ac_cs_silent=: ;;
14972 # This is an error.
14973 -*) as_fn_error "unrecognized option: \`$1'
14974 Try \`$0 --help' for more information." ;;
14976 *) as_fn_append ac_config_targets " $1"
14977 ac_need_defaults=false ;;
14979 esac
14980 shift
14981 done
14983 ac_configure_extra_args=
14985 if $ac_cs_silent; then
14986 exec 6>/dev/null
14987 ac_configure_extra_args="$ac_configure_extra_args --silent"
14990 _ACEOF
14991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14992 if \$ac_cs_recheck; then
14993 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14994 shift
14995 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14996 CONFIG_SHELL='$SHELL'
14997 export CONFIG_SHELL
14998 exec "\$@"
15001 _ACEOF
15002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15003 exec 5>>config.log
15005 echo
15006 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15007 ## Running $as_me. ##
15008 _ASBOX
15009 $as_echo "$ac_log"
15010 } >&5
15012 _ACEOF
15013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15015 # INIT-COMMANDS
15017 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15019 _ACEOF
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15023 # Handling of arguments.
15024 for ac_config_target in $ac_config_targets
15026 case $ac_config_target in
15027 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15028 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15029 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15030 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15031 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15032 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15033 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15034 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15035 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15036 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15037 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15038 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15039 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15041 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15042 esac
15043 done
15046 # If the user did not use the arguments to specify the items to instantiate,
15047 # then the envvar interface is used. Set only those that are not.
15048 # We use the long form for the default assignment because of an extremely
15049 # bizarre bug on SunOS 4.1.3.
15050 if $ac_need_defaults; then
15051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15056 # Have a temporary directory for convenience. Make it in the build tree
15057 # simply because there is no reason against having it here, and in addition,
15058 # creating and moving files from /tmp can sometimes cause problems.
15059 # Hook for its removal unless debugging.
15060 # Note that there is a small window in which the directory will not be cleaned:
15061 # after its creation but before its name has been assigned to `$tmp'.
15062 $debug ||
15064 tmp=
15065 trap 'exit_status=$?
15066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15068 trap 'as_fn_exit 1' 1 2 13 15
15070 # Create a (secure) tmp directory for tmp files.
15073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15074 test -n "$tmp" && test -d "$tmp"
15075 } ||
15077 tmp=./conf$$-$RANDOM
15078 (umask 077 && mkdir "$tmp")
15079 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15081 # Set up the scripts for CONFIG_FILES section.
15082 # No need to generate them if there are no CONFIG_FILES.
15083 # This happens for instance with `./config.status config.h'.
15084 if test -n "$CONFIG_FILES"; then
15086 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15087 ac_cs_awk_getline=:
15088 ac_cs_awk_pipe_init=
15089 ac_cs_awk_read_file='
15090 while ((getline aline < (F[key])) > 0)
15091 print(aline)
15092 close(F[key])'
15093 ac_cs_awk_pipe_fini=
15094 else
15095 ac_cs_awk_getline=false
15096 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15097 ac_cs_awk_read_file='
15098 print "|#_!!_#|"
15099 print "cat " F[key] " &&"
15100 '$ac_cs_awk_pipe_init
15101 # The final `:' finishes the AND list.
15102 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15104 ac_cr=`echo X | tr X '\015'`
15105 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15106 # But we know of no other shell where ac_cr would be empty at this
15107 # point, so we can use a bashism as a fallback.
15108 if test "x$ac_cr" = x; then
15109 eval ac_cr=\$\'\\r\'
15111 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15112 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15113 ac_cs_awk_cr='\r'
15114 else
15115 ac_cs_awk_cr=$ac_cr
15118 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15119 _ACEOF
15121 # Create commands to substitute file output variables.
15123 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15124 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15125 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15126 echo "_ACAWK" &&
15127 echo "_ACEOF"
15128 } >conf$$files.sh &&
15129 . ./conf$$files.sh ||
15130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15131 rm -f conf$$files.sh
15134 echo "cat >conf$$subs.awk <<_ACEOF" &&
15135 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15136 echo "_ACEOF"
15137 } >conf$$subs.sh ||
15138 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15139 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15140 ac_delim='%!_!# '
15141 for ac_last_try in false false false false false :; do
15142 . ./conf$$subs.sh ||
15143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15145 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15146 if test $ac_delim_n = $ac_delim_num; then
15147 break
15148 elif $ac_last_try; then
15149 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15150 else
15151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15153 done
15154 rm -f conf$$subs.sh
15156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15157 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15158 _ACEOF
15159 sed -n '
15161 s/^/S["/; s/!.*/"]=/
15164 s/^[^!]*!//
15165 :repl
15166 t repl
15167 s/'"$ac_delim"'$//
15168 t delim
15171 s/\(.\{148\}\)..*/\1/
15172 t more1
15173 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15176 b repl
15177 :more1
15178 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15181 s/.\{148\}//
15182 t nl
15183 :delim
15185 s/\(.\{148\}\)..*/\1/
15186 t more2
15187 s/["\\]/\\&/g; s/^/"/; s/$/"/
15190 :more2
15191 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15194 s/.\{148\}//
15195 t delim
15196 ' <conf$$subs.awk | sed '
15197 /^[^""]/{
15199 s/\n//
15201 ' >>$CONFIG_STATUS || ac_write_fail=1
15202 rm -f conf$$subs.awk
15203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15204 _ACAWK
15205 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15206 for (key in S) S_is_set[key] = 1
15207 FS = "\a"
15208 \$ac_cs_awk_pipe_init
15211 line = $ 0
15212 nfields = split(line, field, "@")
15213 substed = 0
15214 len = length(field[1])
15215 for (i = 2; i < nfields; i++) {
15216 key = field[i]
15217 keylen = length(key)
15218 if (S_is_set[key]) {
15219 value = S[key]
15220 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15221 len += length(value) + length(field[++i])
15222 substed = 1
15223 } else
15224 len += 1 + keylen
15226 if (nfields == 3 && !substed) {
15227 key = field[2]
15228 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15229 \$ac_cs_awk_read_file
15230 next
15233 print line
15235 \$ac_cs_awk_pipe_fini
15236 _ACAWK
15237 _ACEOF
15238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15239 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15240 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15241 else
15243 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15244 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15245 _ACEOF
15247 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15248 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15249 # trailing colons and then remove the whole line if VPATH becomes empty
15250 # (actually we leave an empty line to preserve line numbers).
15251 if test "x$srcdir" = x.; then
15252 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15253 s/:*\$(srcdir):*/:/
15254 s/:*\${srcdir}:*/:/
15255 s/:*@srcdir@:*/:/
15256 s/^\([^=]*=[ ]*\):*/\1/
15257 s/:*$//
15258 s/^[^=]*=[ ]*$//
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263 fi # test -n "$CONFIG_FILES"
15265 # Set up the scripts for CONFIG_HEADERS section.
15266 # No need to generate them if there are no CONFIG_HEADERS.
15267 # This happens for instance with `./config.status Makefile'.
15268 if test -n "$CONFIG_HEADERS"; then
15269 cat >"$tmp/defines.awk" <<\_ACAWK ||
15270 BEGIN {
15271 _ACEOF
15273 # Transform confdefs.h into an awk script `defines.awk', embedded as
15274 # here-document in config.status, that substitutes the proper values into
15275 # config.h.in to produce config.h.
15277 # Create a delimiter string that does not exist in confdefs.h, to ease
15278 # handling of long lines.
15279 ac_delim='%!_!# '
15280 for ac_last_try in false false :; do
15281 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15282 if test -z "$ac_t"; then
15283 break
15284 elif $ac_last_try; then
15285 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15286 else
15287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15289 done
15291 # For the awk script, D is an array of macro values keyed by name,
15292 # likewise P contains macro parameters if any. Preserve backslash
15293 # newline sequences.
15295 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15296 sed -n '
15297 s/.\{148\}/&'"$ac_delim"'/g
15298 t rset
15299 :rset
15300 s/^[ ]*#[ ]*define[ ][ ]*/ /
15301 t def
15303 :def
15304 s/\\$//
15305 t bsnl
15306 s/["\\]/\\&/g
15307 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15308 D["\1"]=" \3"/p
15309 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15311 :bsnl
15312 s/["\\]/\\&/g
15313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15314 D["\1"]=" \3\\\\\\n"\\/p
15315 t cont
15316 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15317 t cont
15319 :cont
15321 s/.\{148\}/&'"$ac_delim"'/g
15322 t clear
15323 :clear
15324 s/\\$//
15325 t bsnlc
15326 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15328 :bsnlc
15329 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15330 b cont
15331 ' <confdefs.h | sed '
15332 s/'"$ac_delim"'/"\\\
15333 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15336 for (key in D) D_is_set[key] = 1
15337 FS = "\a"
15339 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15340 line = \$ 0
15341 split(line, arg, " ")
15342 if (arg[1] == "#") {
15343 defundef = arg[2]
15344 mac1 = arg[3]
15345 } else {
15346 defundef = substr(arg[1], 2)
15347 mac1 = arg[2]
15349 split(mac1, mac2, "(") #)
15350 macro = mac2[1]
15351 prefix = substr(line, 1, index(line, defundef) - 1)
15352 if (D_is_set[macro]) {
15353 # Preserve the white space surrounding the "#".
15354 print prefix "define", macro P[macro] D[macro]
15355 next
15356 } else {
15357 # Replace #undef with comments. This is necessary, for example,
15358 # in the case of _POSIX_SOURCE, which is predefined and required
15359 # on some systems where configure will not decide to define it.
15360 if (defundef == "undef") {
15361 print "/*", prefix defundef, macro, "*/"
15362 next
15366 { print }
15367 _ACAWK
15368 _ACEOF
15369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15370 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15371 fi # test -n "$CONFIG_HEADERS"
15374 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15375 shift
15376 for ac_tag
15378 case $ac_tag in
15379 :[FHLC]) ac_mode=$ac_tag; continue;;
15380 esac
15381 case $ac_mode$ac_tag in
15382 :[FHL]*:*);;
15383 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15384 :[FH]-) ac_tag=-:-;;
15385 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15386 esac
15387 ac_save_IFS=$IFS
15388 IFS=:
15389 set x $ac_tag
15390 IFS=$ac_save_IFS
15391 shift
15392 ac_file=$1
15393 shift
15395 case $ac_mode in
15396 :L) ac_source=$1;;
15397 :[FH])
15398 ac_file_inputs=
15399 for ac_f
15401 case $ac_f in
15402 -) ac_f="$tmp/stdin";;
15403 *) # Look for the file first in the build tree, then in the source tree
15404 # (if the path is not absolute). The absolute path cannot be DOS-style,
15405 # because $ac_f cannot contain `:'.
15406 test -f "$ac_f" ||
15407 case $ac_f in
15408 [\\/$]*) false;;
15409 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15410 esac ||
15411 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15412 esac
15413 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15414 as_fn_append ac_file_inputs " '$ac_f'"
15415 done
15417 # Let's still pretend it is `configure' which instantiates (i.e., don't
15418 # use $as_me), people would be surprised to read:
15419 # /* config.h. Generated by config.status. */
15420 configure_input='Generated from '`
15421 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15422 `' by configure.'
15423 if test x"$ac_file" != x-; then
15424 configure_input="$ac_file. $configure_input"
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15426 $as_echo "$as_me: creating $ac_file" >&6;}
15428 # Neutralize special characters interpreted by sed in replacement strings.
15429 case $configure_input in #(
15430 *\&* | *\|* | *\\* )
15431 ac_sed_conf_input=`$as_echo "$configure_input" |
15432 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15433 *) ac_sed_conf_input=$configure_input;;
15434 esac
15436 case $ac_tag in
15437 *:-:* | *:-) cat >"$tmp/stdin" \
15438 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15439 esac
15441 esac
15443 ac_dir=`$as_dirname -- "$ac_file" ||
15444 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15445 X"$ac_file" : 'X\(//\)[^/]' \| \
15446 X"$ac_file" : 'X\(//\)$' \| \
15447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15448 $as_echo X"$ac_file" |
15449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15450 s//\1/
15453 /^X\(\/\/\)[^/].*/{
15454 s//\1/
15457 /^X\(\/\/\)$/{
15458 s//\1/
15461 /^X\(\/\).*/{
15462 s//\1/
15465 s/.*/./; q'`
15466 as_dir="$ac_dir"; as_fn_mkdir_p
15467 ac_builddir=.
15469 case "$ac_dir" in
15470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15473 # A ".." for each directory in $ac_dir_suffix.
15474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15475 case $ac_top_builddir_sub in
15476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15478 esac ;;
15479 esac
15480 ac_abs_top_builddir=$ac_pwd
15481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15482 # for backward compatibility:
15483 ac_top_builddir=$ac_top_build_prefix
15485 case $srcdir in
15486 .) # We are building in place.
15487 ac_srcdir=.
15488 ac_top_srcdir=$ac_top_builddir_sub
15489 ac_abs_top_srcdir=$ac_pwd ;;
15490 [\\/]* | ?:[\\/]* ) # Absolute name.
15491 ac_srcdir=$srcdir$ac_dir_suffix;
15492 ac_top_srcdir=$srcdir
15493 ac_abs_top_srcdir=$srcdir ;;
15494 *) # Relative name.
15495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15496 ac_top_srcdir=$ac_top_build_prefix$srcdir
15497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15498 esac
15499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15502 case $ac_mode in
15505 # CONFIG_FILE
15508 case $INSTALL in
15509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15510 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15511 esac
15512 _ACEOF
15514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15515 # If the template does not know about datarootdir, expand it.
15516 # FIXME: This hack should be removed a few years after 2.60.
15517 ac_datarootdir_hack=; ac_datarootdir_seen=
15518 ac_sed_dataroot='
15519 /datarootdir/ {
15523 /@datadir@/p
15524 /@docdir@/p
15525 /@infodir@/p
15526 /@localedir@/p
15527 /@mandir@/p'
15528 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15529 *datarootdir*) ac_datarootdir_seen=yes;;
15530 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15532 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15533 _ACEOF
15534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535 ac_datarootdir_hack='
15536 s&@datadir@&$datadir&g
15537 s&@docdir@&$docdir&g
15538 s&@infodir@&$infodir&g
15539 s&@localedir@&$localedir&g
15540 s&@mandir@&$mandir&g
15541 s&\\\${datarootdir}&$datarootdir&g' ;;
15542 esac
15543 _ACEOF
15545 # Neutralize VPATH when `$srcdir' = `.'.
15546 # Shell code in configure.ac might set extrasub.
15547 # FIXME: do we really want to maintain this feature?
15548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15549 ac_sed_extra="$ac_vpsub
15550 $extrasub
15551 _ACEOF
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15555 s|@configure_input@|$ac_sed_conf_input|;t t
15556 s&@top_builddir@&$ac_top_builddir_sub&;t t
15557 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15558 s&@srcdir@&$ac_srcdir&;t t
15559 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15560 s&@top_srcdir@&$ac_top_srcdir&;t t
15561 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15562 s&@builddir@&$ac_builddir&;t t
15563 s&@abs_builddir@&$ac_abs_builddir&;t t
15564 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15565 s&@INSTALL@&$ac_INSTALL&;t t
15566 $ac_datarootdir_hack
15568 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15569 if $ac_cs_awk_getline; then
15570 $AWK -f "$tmp/subs.awk"
15571 else
15572 $AWK -f "$tmp/subs.awk" | $SHELL
15573 fi >$tmp/out \
15574 || as_fn_error "could not create $ac_file" "$LINENO" 5
15576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15577 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15580 which seems to be undefined. Please make sure it is defined." >&5
15581 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15582 which seems to be undefined. Please make sure it is defined." >&2;}
15584 rm -f "$tmp/stdin"
15585 case $ac_file in
15586 -) cat "$tmp/out" && rm -f "$tmp/out";;
15587 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15588 esac \
15589 || as_fn_error "could not create $ac_file" "$LINENO" 5
15593 # CONFIG_HEADER
15595 if test x"$ac_file" != x-; then
15597 $as_echo "/* $configure_input */" \
15598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15599 } >"$tmp/config.h" \
15600 || as_fn_error "could not create $ac_file" "$LINENO" 5
15601 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15603 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15604 else
15605 rm -f "$ac_file"
15606 mv "$tmp/config.h" "$ac_file" \
15607 || as_fn_error "could not create $ac_file" "$LINENO" 5
15609 else
15610 $as_echo "/* $configure_input */" \
15611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15612 || as_fn_error "could not create -" "$LINENO" 5
15616 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15617 $as_echo "$as_me: executing $ac_file commands" >&6;}
15619 esac
15622 case $ac_file$ac_mode in
15623 "default":C)
15625 ### Make the necessary directories, if they don't exist.
15626 for dir in etc lisp ; do
15627 test -d ${dir} || mkdir ${dir}
15628 done
15630 echo creating src/epaths.h
15631 ${MAKE-make} epaths-force
15633 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15634 echo creating src/.gdbinit
15635 echo source $srcdir/src/.gdbinit > src/.gdbinit
15640 esac
15641 done # for ac_tag
15644 as_fn_exit 0
15645 _ACEOF
15646 ac_clean_files=$ac_clean_files_save
15648 test $ac_write_fail = 0 ||
15649 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15652 # configure is writing to config.log, and then calls config.status.
15653 # config.status does its own redirection, appending to config.log.
15654 # Unfortunately, on DOS this fails, as config.log is still kept open
15655 # by configure, so config.status won't be able to write to it; its
15656 # output is simply discarded. So we exec the FD to /dev/null,
15657 # effectively closing config.log, so it can be properly (re)opened and
15658 # appended to by config.status. When coming back to configure, we
15659 # need to make the FD available again.
15660 if test "$no_create" != yes; then
15661 ac_cs_success=:
15662 ac_config_status_args=
15663 test "$silent" = yes &&
15664 ac_config_status_args="$ac_config_status_args --quiet"
15665 exec 5>/dev/null
15666 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15667 exec 5>>config.log
15668 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15669 # would make configure fail if this is the last instruction.
15670 $ac_cs_success || as_fn_exit $?
15672 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15674 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}