* bindings.el (global-map): Bind delete and DEL, the former to
[emacs.git] / configure
blob3ced885c3f773e8fe426ae1c4df3cf137984d25e
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 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files='deps_frag
787 ns_frag'
788 ac_user_opts='
789 enable_option_checking
790 with_pop
791 with_kerberos
792 with_kerberos5
793 with_hesiod
794 with_mmdf
795 with_mail_unlink
796 with_mailhost
797 with_sound
798 with_sync_input
799 with_x_toolkit
800 with_xpm
801 with_jpeg
802 with_tiff
803 with_gif
804 with_png
805 with_rsvg
806 with_xft
807 with_libotf
808 with_m17n_flt
809 with_toolkit_scroll_bars
810 with_xaw3d
811 with_xim
812 with_ns
813 with_gpm
814 with_dbus
815 with_gconf
816 with_selinux
817 with_makeinfo
818 with_pkg_config_prog
819 with_crt_dir
820 with_gnustep_conf
821 enable_ns_self_contained
822 enable_asserts
823 enable_maintainer_mode
824 enable_locallisppath
825 enable_checking
826 enable_profiling
827 enable_autodepend
828 enable_largefile
829 with_x
831 ac_precious_vars='build_alias
832 host_alias
833 target_alias
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
840 XMKMF'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information."
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435 _ACEOF
1437 cat <<\_ACEOF
1439 Program names:
1440 --program-prefix=PREFIX prepend PREFIX to installed program names
1441 --program-suffix=SUFFIX append SUFFIX to installed program names
1442 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444 X features:
1445 --x-includes=DIR X include files are in DIR
1446 --x-libraries=DIR X library files are in DIR
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1457 esac
1458 cat <<\_ACEOF
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --disable-ns-self-contained
1465 disable self contained build under NeXTstep
1466 --enable-asserts compile code with asserts enabled
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
1470 --enable-locallisppath=PATH
1471 directories Emacs should search for lisp files
1472 specific to this site
1473 --enable-checking[=LIST]
1474 enable expensive run-time checks. With LIST, enable
1475 only specific categories of checks. Categories are:
1476 all,yes,no. Flags are: stringbytes, stringoverrun,
1477 stringfreelist, xmallocoverrun, conslist
1478 --enable-profiling build emacs with profiling support. This might not
1479 work on all platforms
1480 --enable-autodepend automatically generate dependencies to .h-files.
1481 Requires GNU Make and Gcc. Enabled if GNU Make and
1482 Gcc is found
1483 --disable-largefile omit support for large files
1485 Optional Packages:
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --without-pop don't support POP mail retrieval with movemail
1489 --with-kerberos support Kerberos-authenticated POP
1490 --with-kerberos5 support Kerberos version 5 authenticated POP
1491 --with-hesiod support Hesiod to get the POP server host
1492 --with-mmdf support MMDF mailboxes
1493 --with-mail-unlink unlink, rather than empty, mail spool after reading
1494 --with-mailhost=HOSTNAME
1495 string giving default POP mail host
1496 --without-sound don't compile with sound support
1497 --without-sync-input process async input synchronously
1498 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1499 athena, motif, no)
1500 --without-xpm don't compile with XPM image support
1501 --without-jpeg don't compile with JPEG image support
1502 --without-tiff don't compile with TIFF image support
1503 --without-gif don't compile with GIF image support
1504 --without-png don't compile with PNG image support
1505 --without-rsvg don't compile with SVG image support
1506 --without-xft don't use XFT for anti aliased fonts
1507 --without-libotf don't use libotf for OpenType font support
1508 --without-m17n-flt don't use m17n-flt for text shaping
1509 --without-toolkit-scroll-bars
1510 don't use Motif or Xaw3d scroll bars
1511 --without-xaw3d don't use Xaw3d
1512 --without-xim don't use X11 XIM
1513 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1514 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1515 console
1516 --without-dbus don't compile with D-Bus support
1517 --without-gconf don't compile with GConf support
1518 --without-selinux don't compile with SELinux support
1519 --without-makeinfo don't require makeinfo for building manuals
1520 --with-pkg-config-prog=PATH
1521 path to pkg-config for finding GTK and librsvg
1522 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1523 /usr/lib, or /usr/lib64 on some platforms.
1524 --with-gnustep-conf=PATH
1525 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1526 or /etc/GNUstep/GNUstep.conf
1527 --with-x use the X Window System
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 CPP C preprocessor
1538 XMKMF Path to xmkmf, Makefile generator for X Window System
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to the package provider.
1544 _ACEOF
1545 ac_status=$?
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
1554 ac_builddir=.
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1572 case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605 cat <<\_ACEOF
1606 emacs configure 24.0.50
1607 generated by GNU Autoconf 2.65
1609 Copyright (C) 2009 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613 exit
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1651 ac_retval=1
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 as_fn_set_status $ac_retval
1656 } # ac_fn_c_try_compile
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 $as_test_x conftest$ac_exeext
1686 }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1692 ac_retval=1
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700 as_fn_set_status $ac_retval
1702 } # ac_fn_c_try_link
1704 # ac_fn_c_try_cpp LINENO
1705 # ----------------------
1706 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_cpp ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_cpp conftest.$ac_ext"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } >/dev/null && {
1726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1734 ac_retval=1
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_cpp
1741 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1742 # -------------------------------------------------------
1743 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1744 # the include files in INCLUDES and setting the cache variable VAR
1745 # accordingly.
1746 ac_fn_c_check_header_mongrel ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 else
1759 # Is the header compilable?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1761 $as_echo_n "checking $2 usability... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 ac_header_compiler=yes
1769 else
1770 ac_header_compiler=no
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1774 $as_echo "$ac_header_compiler" >&6; }
1776 # Is the header present?
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1778 $as_echo_n "checking $2 presence... " >&6; }
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_cpp "$LINENO"; then :
1784 ac_header_preproc=yes
1785 else
1786 ac_header_preproc=no
1788 rm -f conftest.err conftest.$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1790 $as_echo "$ac_header_preproc" >&6; }
1792 # So? What about this header?
1793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1794 yes:no: )
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1796 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800 no:yes:* )
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1802 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1804 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1806 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1808 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 esac
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 eval "$3=\$ac_header_compiler"
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 } # ac_fn_c_check_header_mongrel
1828 # ac_fn_c_try_run LINENO
1829 # ----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1831 # that executables *can* be run.
1832 ac_fn_c_try_run ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>&5
1843 ac_status=$?
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1846 { { case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_try") 2>&5
1853 ac_status=$?
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; }; }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: program exited with status $ac_status" >&5
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=$ac_status
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_c_try_run
1870 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists and can be compiled using the include files in
1873 # INCLUDES, setting the cache variable VAR accordingly.
1874 ac_fn_c_check_header_compile ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1885 #include <$2>
1886 _ACEOF
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 eval "$3=yes"
1889 else
1890 eval "$3=no"
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 } # ac_fn_c_check_header_compile
1901 # ac_fn_c_check_decl LINENO SYMBOL VAR
1902 # ------------------------------------
1903 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1904 ac_fn_c_check_decl ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1908 $as_echo_n "checking whether $2 is declared... " >&6; }
1909 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910 $as_echo_n "(cached) " >&6
1911 else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1916 main ()
1918 #ifndef $2
1919 (void) $2;
1920 #endif
1923 return 0;
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 } # ac_fn_c_check_decl
1940 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1941 # ----------------------------------------------
1942 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_preproc ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 #include <$2>
1954 _ACEOF
1955 if ac_fn_c_try_cpp "$LINENO"; then :
1956 eval "$3=yes"
1957 else
1958 eval "$3=no"
1960 rm -f conftest.err conftest.$ac_ext
1962 eval ac_res=\$$3
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 } # ac_fn_c_check_header_preproc
1969 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1970 # ----------------------------------------------------
1971 # Tries to find if the field MEMBER exists in type AGGR, after including
1972 # INCLUDES, setting cache variable VAR accordingly.
1973 ac_fn_c_check_member ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1977 $as_echo_n "checking for $2.$3... " >&6; }
1978 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1979 $as_echo_n "(cached) " >&6
1980 else
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 main ()
1987 static $2 ac_aggr;
1988 if (ac_aggr.$3)
1989 return 0;
1991 return 0;
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 eval "$4=yes"
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2001 main ()
2003 static $2 ac_aggr;
2004 if (sizeof ac_aggr.$3)
2005 return 0;
2007 return 0;
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 eval "$4=yes"
2012 else
2013 eval "$4=no"
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 eval ac_res=\$$4
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2024 } # ac_fn_c_check_member
2026 # ac_fn_c_check_func LINENO FUNC VAR
2027 # ----------------------------------
2028 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2029 ac_fn_c_check_func ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2041 #define $2 innocuous_$2
2043 /* System header to define __stub macros and hopefully few prototypes,
2044 which can conflict with char $2 (); below.
2045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2046 <limits.h> exists even on freestanding compilers. */
2048 #ifdef __STDC__
2049 # include <limits.h>
2050 #else
2051 # include <assert.h>
2052 #endif
2054 #undef $2
2056 /* Override any GCC internal prototype to avoid an error.
2057 Use char because int might match the return type of a GCC
2058 builtin and then its argument prototype would still apply. */
2059 #ifdef __cplusplus
2060 extern "C"
2061 #endif
2062 char $2 ();
2063 /* The GNU C library defines this for functions which it implements
2064 to always fail with ENOSYS. Some functions are actually named
2065 something starting with __ and the normal name is an alias. */
2066 #if defined __stub_$2 || defined __stub___$2
2067 choke me
2068 #endif
2071 main ()
2073 return $2 ();
2075 return 0;
2077 _ACEOF
2078 if ac_fn_c_try_link "$LINENO"; then :
2079 eval "$3=yes"
2080 else
2081 eval "$3=no"
2083 rm -f core conftest.err conftest.$ac_objext \
2084 conftest$ac_exeext conftest.$ac_ext
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 } # ac_fn_c_check_func
2093 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2094 # -------------------------------------------
2095 # Tests whether TYPE exists after having included INCLUDES, setting cache
2096 # variable VAR accordingly.
2097 ac_fn_c_check_type ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2103 $as_echo_n "(cached) " >&6
2104 else
2105 eval "$3=no"
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 if (sizeof ($2))
2113 return 0;
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 if (sizeof (($2)))
2126 return 0;
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2133 else
2134 eval "$3=yes"
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 } # ac_fn_c_check_type
2146 cat >config.log <<_ACEOF
2147 This file contains any messages produced by compilers while
2148 running configure, to aid debugging if configure makes a mistake.
2150 It was created by emacs $as_me 24.0.50, which was
2151 generated by GNU Autoconf 2.65. Invocation command line was
2153 $ $0 $@
2155 _ACEOF
2156 exec 5>>config.log
2158 cat <<_ASUNAME
2159 ## --------- ##
2160 ## Platform. ##
2161 ## --------- ##
2163 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2164 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2165 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2166 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2167 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2169 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2170 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2172 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2173 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2174 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2175 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2176 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2177 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2178 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2180 _ASUNAME
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 $as_echo "PATH: $as_dir"
2188 done
2189 IFS=$as_save_IFS
2191 } >&5
2193 cat >&5 <<_ACEOF
2196 ## ----------- ##
2197 ## Core tests. ##
2198 ## ----------- ##
2200 _ACEOF
2203 # Keep a trace of the command line.
2204 # Strip out --no-create and --no-recursion so they do not pile up.
2205 # Strip out --silent because we don't want to record it for future runs.
2206 # Also quote any args containing shell meta-characters.
2207 # Make two passes to allow for proper duplicate-argument suppression.
2208 ac_configure_args=
2209 ac_configure_args0=
2210 ac_configure_args1=
2211 ac_must_keep_next=false
2212 for ac_pass in 1 2
2214 for ac_arg
2216 case $ac_arg in
2217 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2219 | -silent | --silent | --silen | --sile | --sil)
2220 continue ;;
2221 *\'*)
2222 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2223 esac
2224 case $ac_pass in
2225 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2227 as_fn_append ac_configure_args1 " '$ac_arg'"
2228 if test $ac_must_keep_next = true; then
2229 ac_must_keep_next=false # Got value, back to normal.
2230 else
2231 case $ac_arg in
2232 *=* | --config-cache | -C | -disable-* | --disable-* \
2233 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2234 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2235 | -with-* | --with-* | -without-* | --without-* | --x)
2236 case "$ac_configure_args0 " in
2237 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2238 esac
2240 -* ) ac_must_keep_next=true ;;
2241 esac
2243 as_fn_append ac_configure_args " '$ac_arg'"
2245 esac
2246 done
2247 done
2248 { ac_configure_args0=; unset ac_configure_args0;}
2249 { ac_configure_args1=; unset ac_configure_args1;}
2251 # When interrupted or exit'd, cleanup temporary files, and complete
2252 # config.log. We remove comments because anyway the quotes in there
2253 # would cause problems or look ugly.
2254 # WARNING: Use '\'' to represent an apostrophe within the trap.
2255 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2256 trap 'exit_status=$?
2257 # Save into config.log some information that might help in debugging.
2259 echo
2261 cat <<\_ASBOX
2262 ## ---------------- ##
2263 ## Cache variables. ##
2264 ## ---------------- ##
2265 _ASBOX
2266 echo
2267 # The following way of writing the cache mishandles newlines in values,
2269 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2270 eval ac_val=\$$ac_var
2271 case $ac_val in #(
2272 *${as_nl}*)
2273 case $ac_var in #(
2274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2276 esac
2277 case $ac_var in #(
2278 _ | IFS | as_nl) ;; #(
2279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2280 *) { eval $ac_var=; unset $ac_var;} ;;
2281 esac ;;
2282 esac
2283 done
2284 (set) 2>&1 |
2285 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2286 *${as_nl}ac_space=\ *)
2287 sed -n \
2288 "s/'\''/'\''\\\\'\'''\''/g;
2289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2290 ;; #(
2292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2294 esac |
2295 sort
2297 echo
2299 cat <<\_ASBOX
2300 ## ----------------- ##
2301 ## Output variables. ##
2302 ## ----------------- ##
2303 _ASBOX
2304 echo
2305 for ac_var in $ac_subst_vars
2307 eval ac_val=\$$ac_var
2308 case $ac_val in
2309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 esac
2311 $as_echo "$ac_var='\''$ac_val'\''"
2312 done | sort
2313 echo
2315 if test -n "$ac_subst_files"; then
2316 cat <<\_ASBOX
2317 ## ------------------- ##
2318 ## File substitutions. ##
2319 ## ------------------- ##
2320 _ASBOX
2321 echo
2322 for ac_var in $ac_subst_files
2324 eval ac_val=\$$ac_var
2325 case $ac_val in
2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327 esac
2328 $as_echo "$ac_var='\''$ac_val'\''"
2329 done | sort
2330 echo
2333 if test -s confdefs.h; then
2334 cat <<\_ASBOX
2335 ## ----------- ##
2336 ## confdefs.h. ##
2337 ## ----------- ##
2338 _ASBOX
2339 echo
2340 cat confdefs.h
2341 echo
2343 test "$ac_signal" != 0 &&
2344 $as_echo "$as_me: caught signal $ac_signal"
2345 $as_echo "$as_me: exit $exit_status"
2346 } >&5
2347 rm -f core *.core core.conftest.* &&
2348 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2349 exit $exit_status
2351 for ac_signal in 1 2 13 15; do
2352 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2353 done
2354 ac_signal=0
2356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2357 rm -f -r conftest* confdefs.h
2359 $as_echo "/* confdefs.h */" > confdefs.h
2361 # Predefined preprocessor variables.
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_NAME "$PACKAGE_NAME"
2365 _ACEOF
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2369 _ACEOF
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2373 _ACEOF
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_STRING "$PACKAGE_STRING"
2377 _ACEOF
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2381 _ACEOF
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_URL "$PACKAGE_URL"
2385 _ACEOF
2388 # Let the site file select an alternate cache file if it wants to.
2389 # Prefer an explicitly selected file to automatically selected ones.
2390 ac_site_file1=NONE
2391 ac_site_file2=NONE
2392 if test -n "$CONFIG_SITE"; then
2393 ac_site_file1=$CONFIG_SITE
2394 elif test "x$prefix" != xNONE; then
2395 ac_site_file1=$prefix/share/config.site
2396 ac_site_file2=$prefix/etc/config.site
2397 else
2398 ac_site_file1=$ac_default_prefix/share/config.site
2399 ac_site_file2=$ac_default_prefix/etc/config.site
2401 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2403 test "x$ac_site_file" = xNONE && continue
2404 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2406 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2407 sed 's/^/| /' "$ac_site_file" >&5
2408 . "$ac_site_file"
2410 done
2412 if test -r "$cache_file"; then
2413 # Some versions of bash will fail to source /dev/null (special files
2414 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2415 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2417 $as_echo "$as_me: loading cache $cache_file" >&6;}
2418 case $cache_file in
2419 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2420 *) . "./$cache_file";;
2421 esac
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2425 $as_echo "$as_me: creating cache $cache_file" >&6;}
2426 >$cache_file
2429 as_fn_append ac_header_list " stdlib.h"
2430 as_fn_append ac_header_list " unistd.h"
2431 as_fn_append ac_header_list " sys/param.h"
2432 as_fn_append ac_header_list " sys/time.h"
2433 as_fn_append ac_func_list " alarm"
2434 # Check that the precious variables saved in the cache have kept the same
2435 # value.
2436 ac_cache_corrupted=false
2437 for ac_var in $ac_precious_vars; do
2438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439 eval ac_new_set=\$ac_env_${ac_var}_set
2440 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441 eval ac_new_val=\$ac_env_${ac_var}_value
2442 case $ac_old_set,$ac_new_set in
2443 set,)
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2445 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2446 ac_cache_corrupted=: ;;
2447 ,set)
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2449 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2450 ac_cache_corrupted=: ;;
2451 ,);;
2453 if test "x$ac_old_val" != "x$ac_new_val"; then
2454 # differences in whitespace do not lead to failure.
2455 ac_old_val_w=`echo x $ac_old_val`
2456 ac_new_val_w=`echo x $ac_new_val`
2457 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2459 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2460 ac_cache_corrupted=:
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2463 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464 eval $ac_var=\$ac_old_val
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2467 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2469 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2470 fi;;
2471 esac
2472 # Pass precious variables to config.status.
2473 if test "$ac_new_set" = set; then
2474 case $ac_new_val in
2475 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2476 *) ac_arg=$ac_var=$ac_new_val ;;
2477 esac
2478 case " $ac_configure_args " in
2479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2480 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2481 esac
2483 done
2484 if $ac_cache_corrupted; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2488 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2489 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2491 ## -------------------- ##
2492 ## Main body of script. ##
2493 ## -------------------- ##
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2506 test "$program_prefix" != NONE &&
2507 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2508 # Use a double $ so make ignores it.
2509 test "$program_suffix" != NONE &&
2510 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2511 # Double any \ or $.
2512 # By default was `s,x,x', remove it if useless.
2513 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2514 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2517 lispdir='${datadir}/emacs/${version}/lisp'
2518 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2519 '${datadir}/emacs/site-lisp'
2520 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2521 etcdir='${datadir}/emacs/${version}/etc'
2522 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2523 docdir='${datadir}/emacs/${version}/etc'
2524 gamedir='${localstatedir}/games/emacs'
2526 gameuser=games
2531 # Check whether --with-pop was given.
2532 if test "${with_pop+set}" = set; then :
2533 withval=$with_pop;
2534 else
2535 with_pop=yes
2538 if test "$with_pop" = yes; then
2539 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2544 # Check whether --with-kerberos was given.
2545 if test "${with_kerberos+set}" = set; then :
2546 withval=$with_kerberos;
2547 else
2548 with_kerberos=no
2551 if test "$with_kerberos" != no; then
2552 $as_echo "#define KERBEROS 1" >>confdefs.h
2557 # Check whether --with-kerberos5 was given.
2558 if test "${with_kerberos5+set}" = set; then :
2559 withval=$with_kerberos5;
2560 else
2561 with_kerberos5=no
2564 if test "${with_kerberos5}" != no; then
2565 if test "${with_kerberos}" = no; then
2566 with_kerberos=yes
2567 $as_echo "#define KERBEROS 1" >>confdefs.h
2571 $as_echo "#define KERBEROS5 1" >>confdefs.h
2576 # Check whether --with-hesiod was given.
2577 if test "${with_hesiod+set}" = set; then :
2578 withval=$with_hesiod;
2579 else
2580 with_hesiod=no
2583 if test "$with_hesiod" != no; then
2585 $as_echo "#define HESIOD 1" >>confdefs.h
2590 # Check whether --with-mmdf was given.
2591 if test "${with_mmdf+set}" = set; then :
2592 withval=$with_mmdf;
2593 else
2594 with_mmdf=no
2597 if test "$with_mmdf" != no; then
2599 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2604 # Check whether --with-mail-unlink was given.
2605 if test "${with_mail_unlink+set}" = set; then :
2606 withval=$with_mail_unlink;
2607 else
2608 with_mail_unlink=no
2611 if test "$with_mail_unlink" != no; then
2613 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2618 # Check whether --with-mailhost was given.
2619 if test "${with_mailhost+set}" = set; then :
2620 withval=$with_mailhost;
2621 cat >>confdefs.h <<_ACEOF
2622 #define MAILHOST "$withval"
2623 _ACEOF
2629 # Check whether --with-sound was given.
2630 if test "${with_sound+set}" = set; then :
2631 withval=$with_sound;
2632 else
2633 with_sound=yes
2638 # Check whether --with-sync-input was given.
2639 if test "${with_sync_input+set}" = set; then :
2640 withval=$with_sync_input;
2641 else
2642 with_sync_input=yes
2645 if test "$with_sync_input" = yes; then
2647 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2652 # Check whether --with-x-toolkit was given.
2653 if test "${with_x_toolkit+set}" = set; then :
2654 withval=$with_x_toolkit; case "${withval}" in
2655 y | ye | yes ) val=gtk ;;
2656 n | no ) val=no ;;
2657 l | lu | luc | luci | lucid ) val=lucid ;;
2658 a | at | ath | athe | athen | athena ) val=athena ;;
2659 m | mo | mot | moti | motif ) val=motif ;;
2660 g | gt | gtk ) val=gtk ;;
2662 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2663 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2664 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2666 esac
2667 with_x_toolkit=$val
2673 # Check whether --with-xpm was given.
2674 if test "${with_xpm+set}" = set; then :
2675 withval=$with_xpm;
2676 else
2677 with_xpm=yes
2681 # Check whether --with-jpeg was given.
2682 if test "${with_jpeg+set}" = set; then :
2683 withval=$with_jpeg;
2684 else
2685 with_jpeg=yes
2689 # Check whether --with-tiff was given.
2690 if test "${with_tiff+set}" = set; then :
2691 withval=$with_tiff;
2692 else
2693 with_tiff=yes
2697 # Check whether --with-gif was given.
2698 if test "${with_gif+set}" = set; then :
2699 withval=$with_gif;
2700 else
2701 with_gif=yes
2705 # Check whether --with-png was given.
2706 if test "${with_png+set}" = set; then :
2707 withval=$with_png;
2708 else
2709 with_png=yes
2713 # Check whether --with-rsvg was given.
2714 if test "${with_rsvg+set}" = set; then :
2715 withval=$with_rsvg;
2716 else
2717 with_rsvg=yes
2722 # Check whether --with-xft was given.
2723 if test "${with_xft+set}" = set; then :
2724 withval=$with_xft;
2725 else
2726 with_xft=yes
2730 # Check whether --with-libotf was given.
2731 if test "${with_libotf+set}" = set; then :
2732 withval=$with_libotf;
2733 else
2734 with_libotf=yes
2738 # Check whether --with-m17n-flt was given.
2739 if test "${with_m17n_flt+set}" = set; then :
2740 withval=$with_m17n_flt;
2741 else
2742 with_m17n_flt=yes
2747 # Check whether --with-toolkit-scroll-bars was given.
2748 if test "${with_toolkit_scroll_bars+set}" = set; then :
2749 withval=$with_toolkit_scroll_bars;
2750 else
2751 with_toolkit_scroll_bars=yes
2755 # Check whether --with-xaw3d was given.
2756 if test "${with_xaw3d+set}" = set; then :
2757 withval=$with_xaw3d;
2758 else
2759 with_xaw3d=yes
2763 # Check whether --with-xim was given.
2764 if test "${with_xim+set}" = set; then :
2765 withval=$with_xim;
2766 else
2767 with_xim=yes
2771 # Check whether --with-ns was given.
2772 if test "${with_ns+set}" = set; then :
2773 withval=$with_ns;
2774 else
2775 with_ns=no
2780 # Check whether --with-gpm was given.
2781 if test "${with_gpm+set}" = set; then :
2782 withval=$with_gpm;
2783 else
2784 with_gpm=yes
2788 # Check whether --with-dbus was given.
2789 if test "${with_dbus+set}" = set; then :
2790 withval=$with_dbus;
2791 else
2792 with_dbus=yes
2796 # Check whether --with-gconf was given.
2797 if test "${with_gconf+set}" = set; then :
2798 withval=$with_gconf;
2799 else
2800 with_gconf=yes
2804 # Check whether --with-selinux was given.
2805 if test "${with_selinux+set}" = set; then :
2806 withval=$with_selinux;
2807 else
2808 with_selinux=yes
2812 ## For the times when you want to build Emacs but don't have
2813 ## a suitable makeinfo, and can live without the manuals.
2815 # Check whether --with-makeinfo was given.
2816 if test "${with_makeinfo+set}" = set; then :
2817 withval=$with_makeinfo;
2818 else
2819 with_makeinfo=yes
2824 # Check whether --with-pkg-config-prog was given.
2825 if test "${with_pkg_config_prog+set}" = set; then :
2826 withval=$with_pkg_config_prog;
2829 if test "X${with_pkg_config_prog}" != X; then
2830 if test "${with_pkg_config_prog}" != yes; then
2831 PKG_CONFIG="${with_pkg_config_prog}"
2835 CRT_DIR=
2837 # Check whether --with-crt-dir was given.
2838 if test "${with_crt_dir+set}" = set; then :
2839 withval=$with_crt_dir;
2842 CRT_DIR="${with_crt_dir}"
2845 # Check whether --with-gnustep-conf was given.
2846 if test "${with_gnustep_conf+set}" = set; then :
2847 withval=$with_gnustep_conf;
2850 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2851 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2852 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2853 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2855 # Check whether --enable-ns-self-contained was given.
2856 if test "${enable_ns_self_contained+set}" = set; then :
2857 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2858 else
2859 EN_NS_SELF_CONTAINED=yes
2863 # Check whether --enable-asserts was given.
2864 if test "${enable_asserts+set}" = set; then :
2865 enableval=$enable_asserts; USE_XASSERTS=$enableval
2866 else
2867 USE_XASSERTS=no
2871 # Check whether --enable-maintainer-mode was given.
2872 if test "${enable_maintainer_mode+set}" = set; then :
2873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2874 else
2875 USE_MAINTAINER_MODE=no
2878 if test $USE_MAINTAINER_MODE = yes; then
2879 MAINT=
2880 else
2881 MAINT=#
2885 # Check whether --enable-locallisppath was given.
2886 if test "${enable_locallisppath+set}" = set; then :
2887 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2888 locallisppath=
2889 elif test "${enableval}" != "yes"; then
2890 locallisppath=${enableval}
2895 # Check whether --enable-checking was given.
2896 if test "${enable_checking+set}" = set; then :
2897 enableval=$enable_checking; ac_checking_flags="${enableval}"
2900 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2901 for check in $ac_checking_flags
2903 case $check in
2904 # these set all the flags to specific states
2905 yes) ac_enable_checking=1 ;;
2906 no) ac_enable_checking= ;
2907 ac_gc_check_stringbytes= ;
2908 ac_gc_check_string_overrun= ;
2909 ac_gc_check_string_free_list= ;
2910 ac_xmalloc_overrun= ;
2911 ac_gc_check_cons_list= ;;
2912 all) ac_enable_checking=1 ;
2913 ac_gc_check_stringbytes=1 ;
2914 ac_gc_check_string_overrun=1 ;
2915 ac_gc_check_string_free_list=1 ;
2916 ac_xmalloc_overrun=1 ;
2917 ac_gc_check_cons_list=1 ;;
2918 # these enable particular checks
2919 stringbytes) ac_gc_check_stringbytes=1 ;;
2920 stringoverrun) ac_gc_check_string_overrun=1 ;;
2921 stringfreelist) ac_gc_check_string_free_list=1 ;;
2922 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2923 conslist) ac_gc_check_cons_list=1 ;;
2924 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2925 esac
2926 done
2927 IFS="$ac_save_IFS"
2929 if test x$ac_enable_checking != x ; then
2931 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2934 if test x$ac_gc_check_stringbytes != x ; then
2936 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2939 if test x$ac_gc_check_stringoverrun != x ; then
2941 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2944 if test x$ac_gc_check_string_free_list != x ; then
2946 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2949 if test x$ac_xmalloc_overrun != x ; then
2951 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2954 if test x$ac_gc_check_cons_list != x ; then
2956 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2960 # Check whether --enable-profiling was given.
2961 if test "${enable_profiling+set}" = set; then :
2962 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2965 if test x$ac_enable_profiling != x ; then
2966 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2967 PROFILING_LDFLAGS="-pg"
2968 else
2969 PROFILING_CFLAGS=
2970 PROFILING_LDFLAGS=
2973 # Check whether --enable-autodepend was given.
2974 if test "${enable_autodepend+set}" = set; then :
2975 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2976 else
2977 ac_enable_autodepend=yes
2981 #### Make srcdir absolute, if it isn't already. It's important to
2982 #### avoid running the path through pwd unnecessarily, since pwd can
2983 #### give you automounter prefixes, which can go away. We do all this
2984 #### so Emacs can find its files when run uninstalled.
2985 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2986 unset CDPATH
2987 case "${srcdir}" in
2988 /* ) ;;
2990 ## We may be able to use the $PWD environment variable to make this
2991 ## absolute. But sometimes PWD is inaccurate.
2992 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2993 ## but that tested only for a well-formed and valid PWD,
2994 ## it did not object when PWD was well-formed and valid but just wrong.
2995 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2996 then
2997 srcdir="$PWD"
2998 else
2999 srcdir="`(cd ${srcdir}; pwd)`"
3002 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3003 esac
3005 #### Check if the source directory already has a configured system in it.
3006 if test `pwd` != `(cd ${srcdir} && pwd)` \
3007 && test -f "${srcdir}/src/config.h" ; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3009 as a build directory right now; it has been configured in its own
3010 right. To configure in another directory as well, you MUST
3011 use GNU make. If you do not have GNU make, then you must
3012 now do \`make distclean' in ${srcdir},
3013 and then run $0 again." >&5
3014 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3015 as a build directory right now; it has been configured in its own
3016 right. To configure in another directory as well, you MUST
3017 use GNU make. If you do not have GNU make, then you must
3018 now do \`make distclean' in ${srcdir},
3019 and then run $0 again." >&2;}
3022 #### Given the configuration name, set machfile and opsysfile to the
3023 #### names of the m/*.h and s/*.h files we should use.
3025 ### Canonicalize the configuration name.
3027 ac_aux_dir=
3028 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3029 for ac_t in install-sh install.sh shtool; do
3030 if test -f "$ac_dir/$ac_t"; then
3031 ac_aux_dir=$ac_dir
3032 ac_install_sh="$ac_aux_dir/$ac_t -c"
3033 break 2
3035 done
3036 done
3037 if test -z "$ac_aux_dir"; then
3038 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3041 # These three variables are undocumented and unsupported,
3042 # and are intended to be withdrawn in a future Autoconf release.
3043 # They can cause serious problems if a builder's source tree is in a directory
3044 # whose full name contains unusual characters.
3045 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3046 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3047 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3050 # Make sure we can run config.sub.
3051 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3052 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3055 $as_echo_n "checking build system type... " >&6; }
3056 if test "${ac_cv_build+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 ac_build_alias=$build_alias
3060 test "x$ac_build_alias" = x &&
3061 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3062 test "x$ac_build_alias" = x &&
3063 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3065 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3069 $as_echo "$ac_cv_build" >&6; }
3070 case $ac_cv_build in
3071 *-*-*) ;;
3072 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3073 esac
3074 build=$ac_cv_build
3075 ac_save_IFS=$IFS; IFS='-'
3076 set x $ac_cv_build
3077 shift
3078 build_cpu=$1
3079 build_vendor=$2
3080 shift; shift
3081 # Remember, the first character of IFS is used to create $*,
3082 # except with old shells:
3083 build_os=$*
3084 IFS=$ac_save_IFS
3085 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3089 $as_echo_n "checking host system type... " >&6; }
3090 if test "${ac_cv_host+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test "x$host_alias" = x; then
3094 ac_cv_host=$ac_cv_build
3095 else
3096 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3097 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3102 $as_echo "$ac_cv_host" >&6; }
3103 case $ac_cv_host in
3104 *-*-*) ;;
3105 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3106 esac
3107 host=$ac_cv_host
3108 ac_save_IFS=$IFS; IFS='-'
3109 set x $ac_cv_host
3110 shift
3111 host_cpu=$1
3112 host_vendor=$2
3113 shift; shift
3114 # Remember, the first character of IFS is used to create $*,
3115 # except with old shells:
3116 host_os=$*
3117 IFS=$ac_save_IFS
3118 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3121 canonical=$host
3122 configuration=${host_alias-${build_alias-$host}}
3126 ### If you add support for a new configuration, add code to this
3127 ### switch statement to recognize your configuration name and select
3128 ### the appropriate operating system and machine description files.
3130 ### You would hope that you could choose an m/*.h file pretty much
3131 ### based on the machine portion of the configuration name, and an s/*.h
3132 ### file based on the operating system portion. However, it turns out
3133 ### that each m/*.h file is pretty manufacturer-specific - for
3134 ### example mips.h is MIPS
3135 ### So we basically have to have a special case for each
3136 ### configuration name.
3138 ### As far as handling version numbers on operating systems is
3139 ### concerned, make sure things will fail in a fixable way. If
3140 ### /etc/MACHINES doesn't say anything about version numbers, be
3141 ### prepared to handle anything reasonably. If version numbers
3142 ### matter, be sure /etc/MACHINES says something about it.
3144 machine='' opsys='' unported=no
3145 case "${canonical}" in
3147 ## FreeBSD ports
3148 *-*-freebsd* )
3149 opsys=freebsd
3150 case "${canonical}" in
3151 alpha*) machine=alpha ;;
3152 amd64-*|x86_64-*) machine=amdx86-64 ;;
3153 arm*) machine=arm ;;
3154 ia64-*) machine=ia64 ;;
3155 i[3456]86-*) machine=intel386 ;;
3156 powerpc-*) machine=macppc ;;
3157 sparc-*) machine=sparc ;;
3158 sparc64-*) machine=sparc ;;
3159 esac
3162 ## FreeBSD kernel + glibc based userland
3163 *-*-kfreebsd*gnu* )
3164 opsys=gnu-kfreebsd
3165 case "${canonical}" in
3166 alpha*) machine=alpha ;;
3167 amd64-*|x86_64-*) machine=amdx86-64 ;;
3168 ia64-*) machine=ia64 ;;
3169 i[3456]86-*) machine=intel386 ;;
3170 powerpc-*) machine=macppc ;;
3171 sparc-*) machine=sparc ;;
3172 sparc64-*) machine=sparc ;;
3173 esac
3176 ## NetBSD ports
3177 *-*-netbsd* )
3178 opsys=netbsd
3179 case "${canonical}" in
3180 alpha*) machine=alpha ;;
3181 x86_64-*) machine=amdx86-64 ;;
3182 arm-*) machine=arm ;;
3183 hppa-*) machine=hp800 ;;
3184 i[3456]86-*) machine=intel386 ;;
3185 m68k-*) machine=m68k ;;
3186 powerpc-*) machine=macppc ;;
3187 mips-*) machine=mips ;;
3188 mipse[bl]-*) machine=mips ;;
3189 sparc*-) machine=sparc ;;
3190 vax-*) machine=vax ;;
3191 esac
3194 ## OpenBSD ports
3195 *-*-openbsd* )
3196 opsys=openbsd
3197 case "${canonical}" in
3198 alpha*) machine=alpha ;;
3199 x86_64-*) machine=amdx86-64 ;;
3200 arm-*) machine=arm ;;
3201 hppa-*) machine=hp800 ;;
3202 i386-*) machine=intel386 ;;
3203 powerpc-*) machine=macppc ;;
3204 sparc*) machine=sparc ;;
3205 vax-*) machine=vax ;;
3206 esac
3209 alpha*-*-linux-gnu* )
3210 machine=alpha opsys=gnu-linux
3213 arm*-*-linux-gnu* )
3214 machine=arm opsys=gnu-linux
3217 ## Apple Darwin / Mac OS X
3218 *-apple-darwin* )
3219 case "${canonical}" in
3220 i[3456]86-* ) machine=intel386 ;;
3221 powerpc-* ) machine=macppc ;;
3222 x86_64-* ) machine=amdx86-64 ;;
3223 * ) unported=yes ;;
3224 esac
3225 opsys=darwin
3226 # Define CPP as follows to make autoconf work correctly.
3227 CPP="${CC-cc} -E -no-cpp-precomp"
3228 # Use fink packages if available.
3229 if test -d /sw/include && test -d /sw/lib; then
3230 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3231 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3232 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3236 ## HP 9000 series 700 and 800, running HP/UX
3237 hppa*-hp-hpux10.2* )
3238 machine=hp800 opsys=hpux10-20
3240 hppa*-hp-hpux1[1-9]* )
3241 machine=hp800 opsys=hpux11
3242 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3245 hppa*-*-linux-gnu* )
3246 machine=hp800 opsys=gnu-linux
3249 ## IBM machines
3250 s390-*-linux-gnu* )
3251 machine=ibms390 opsys=gnu-linux
3253 s390x-*-linux-gnu* )
3254 machine=ibms390x opsys=gnu-linux
3256 rs6000-ibm-aix4.[23]* )
3257 machine=ibmrs6000 opsys=aix4-2
3259 powerpc-ibm-aix4.[23]* )
3260 machine=ibmrs6000 opsys=aix4-2
3262 rs6000-ibm-aix[56]* )
3263 machine=ibmrs6000 opsys=aix4-2
3265 powerpc-ibm-aix[56]* )
3266 machine=ibmrs6000 opsys=aix4-2
3269 ## Macintosh PowerPC
3270 powerpc*-*-linux-gnu* )
3271 machine=macppc opsys=gnu-linux
3274 ## Silicon Graphics machines
3275 ## Iris 4D
3276 mips-sgi-irix6.5 )
3277 machine=iris4d opsys=irix6-5
3278 # Without defining _LANGUAGE_C, things get masked out in the headers
3279 # so that, for instance, grepping for `free' in stdlib.h fails and
3280 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3281 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3282 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3285 ## Suns
3286 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3287 machine=sparc opsys=gnu-linux
3290 *-sun-solaris* \
3291 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3292 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3293 case "${canonical}" in
3294 i[3456]86-*-* ) machine=intel386 ;;
3295 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3296 sparc* ) machine=sparc ;;
3297 * ) unported=yes ;;
3298 esac
3299 case "${canonical}" in
3300 *-sunos5.6* | *-solaris2.6* )
3301 opsys=sol2-6
3302 NON_GNU_CPP=/usr/ccs/lib/cpp
3303 RANLIB="ar -ts"
3305 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3306 opsys=sol2-6
3307 emacs_check_sunpro_c=yes
3308 NON_GNU_CPP=/usr/ccs/lib/cpp
3310 *-sunos5* | *-solaris* )
3311 opsys=sol2-10
3312 emacs_check_sunpro_c=yes
3313 NON_GNU_CPP=/usr/ccs/lib/cpp
3315 esac
3316 ## Watch out for a compiler that we know will not work.
3317 case "${canonical}" in
3318 *-solaris* | *-sunos5* )
3319 if [ "x$CC" = x/usr/ucb/cc ]; then
3320 ## /usr/ucb/cc doesn't work;
3321 ## we should find some other compiler that does work.
3322 unset CC
3325 *) ;;
3326 esac
3329 ## IA-64
3330 ia64*-*-linux* )
3331 machine=ia64 opsys=gnu-linux
3334 ## Intel 386 machines where we don't care about the manufacturer.
3335 i[3456]86-*-* )
3336 machine=intel386
3337 case "${canonical}" in
3338 *-cygwin ) opsys=cygwin ;;
3339 *-darwin* ) opsys=darwin
3340 CPP="${CC-cc} -E -no-cpp-precomp"
3342 *-linux-gnu* ) opsys=gnu-linux ;;
3343 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3344 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3345 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3346 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3347 esac
3350 ## m68k Linux-based GNU system
3351 m68k-*-linux-gnu* )
3352 machine=m68k opsys=gnu-linux
3355 ## Mips Linux-based GNU system
3356 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3357 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3358 machine=mips opsys=gnu-linux
3361 ## AMD x86-64 Linux-based GNU system
3362 x86_64-*-linux-gnu* )
3363 machine=amdx86-64 opsys=gnu-linux
3366 ## Tensilica Xtensa Linux-based GNU system
3367 xtensa*-*-linux-gnu* )
3368 machine=xtensa opsys=gnu-linux
3371 ## SuperH Linux-based GNU system
3372 sh[34]*-*-linux-gnu* )
3373 machine=sh3 opsys=gnu-linux
3377 unported=yes
3379 esac
3381 ### If the code above didn't choose an operating system, just choose
3382 ### an operating system based on the configuration name. You really
3383 ### only want to use this when you have no idea what the right
3384 ### operating system is; if you know what operating systems a machine
3385 ### runs, it's cleaner to make it explicit in the case statement
3386 ### above.
3387 if test x"${opsys}" = x; then
3388 case "${canonical}" in
3389 *-gnu* ) opsys=gnu ;;
3391 unported=yes
3393 esac
3398 if test $unported = yes; then
3399 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3400 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3403 machfile="m/${machine}.h"
3404 opsysfile="s/${opsys}.h"
3407 #### Choose a compiler.
3408 test -n "$CC" && cc_specified=yes
3410 # Save the value of CFLAGS that the user specified.
3411 SPECIFIED_CFLAGS="$CFLAGS"
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_CC+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3440 done
3441 done
3442 IFS=$as_save_IFS
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3457 if test -z "$ac_cv_prog_CC"; then
3458 ac_ct_CC=$CC
3459 # Extract the first word of "gcc", so it can be a program name with args.
3460 set dummy gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_ac_ct_CC="gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487 if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489 $as_echo "$ac_ct_CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3495 if test "x$ac_ct_CC" = x; then
3496 CC=""
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499 yes:)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504 CC=$ac_ct_CC
3506 else
3507 CC="$ac_cv_prog_CC"
3510 if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}cc; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if test "${ac_cv_prog_CC+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3529 ac_cv_prog_CC="${ac_tool_prefix}cc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3551 if test -z "$CC"; then
3552 # Extract the first word of "cc", so it can be a program name with args.
3553 set dummy cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 ac_prog_rejected=no
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3571 ac_prog_rejected=yes
3572 continue
3574 ac_cv_prog_CC="cc"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3578 done
3579 done
3580 IFS=$as_save_IFS
3582 if test $ac_prog_rejected = yes; then
3583 # We found a bogon in the path, so make sure we never use it.
3584 set dummy $ac_cv_prog_CC
3585 shift
3586 if test $# != 0; then
3587 # We chose a different compiler from the bogus one.
3588 # However, it has the same basename, so the bogon will be chosen
3589 # first if we set CC to just the basename; use the full file name.
3590 shift
3591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3596 CC=$ac_cv_prog_CC
3597 if test -n "$CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 $as_echo "$CC" >&6; }
3600 else
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3607 if test -z "$CC"; then
3608 if test -n "$ac_tool_prefix"; then
3609 for ac_prog in cl.exe
3611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3648 test -n "$CC" && break
3649 done
3651 if test -z "$CC"; then
3652 ac_ct_CC=$CC
3653 for ac_prog in cl.exe
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656 set dummy $ac_prog; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 if test -n "$ac_ct_CC"; then
3663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3672 ac_cv_prog_ac_ct_CC="$ac_prog"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 break 2
3676 done
3677 done
3678 IFS=$as_save_IFS
3682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3683 if test -n "$ac_ct_CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685 $as_echo "$ac_ct_CC" >&6; }
3686 else
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3692 test -n "$ac_ct_CC" && break
3693 done
3695 if test "x$ac_ct_CC" = x; then
3696 CC=""
3697 else
3698 case $cross_compiling:$ac_tool_warned in
3699 yes:)
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702 ac_tool_warned=yes ;;
3703 esac
3704 CC=$ac_ct_CC
3711 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error "no acceptable C compiler found in \$PATH
3714 See \`config.log' for more details." "$LINENO" 5; }
3716 # Provide some information about the compiler.
3717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3718 set X $ac_compile
3719 ac_compiler=$2
3720 for ac_option in --version -v -V -qversion; do
3721 { { ac_try="$ac_compiler $ac_option >&5"
3722 case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3729 ac_status=$?
3730 if test -s conftest.err; then
3731 sed '10a\
3732 ... rest of stderr output deleted ...
3733 10q' conftest.err >conftest.er1
3734 cat conftest.er1 >&5
3736 rm -f conftest.er1 conftest.err
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }
3739 done
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3745 main ()
3749 return 0;
3751 _ACEOF
3752 ac_clean_files_save=$ac_clean_files
3753 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3754 # Try to create an executable without -o first, disregard a.out.
3755 # It will help us diagnose broken compilers, and finding out an intuition
3756 # of exeext.
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3758 $as_echo_n "checking whether the C compiler works... " >&6; }
3759 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3761 # The possible output files:
3762 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3764 ac_rmfiles=
3765 for ac_file in $ac_files
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3770 esac
3771 done
3772 rm -f $ac_rmfiles
3774 if { { ac_try="$ac_link_default"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link_default") 2>&5
3782 ac_status=$?
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3788 # so that the user can short-circuit this test for compilers unknown to
3789 # Autoconf.
3790 for ac_file in $ac_files ''
3792 test -f "$ac_file" || continue
3793 case $ac_file in
3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3796 [ab].out )
3797 # We found the default executable, but exeext='' is most
3798 # certainly right.
3799 break;;
3800 *.* )
3801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3802 then :; else
3803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 # We set ac_cv_exeext here because the later test for it is not
3806 # safe: cross compilers may not add the suffix if given an `-o'
3807 # argument, so we may need to know it at that point already.
3808 # Even if this section looks crufty: it has the advantage of
3809 # actually working.
3810 break;;
3812 break;;
3813 esac
3814 done
3815 test "$ac_cv_exeext" = no && ac_cv_exeext=
3817 else
3818 ac_file=''
3820 if test -z "$ac_file"; then :
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 $as_echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 { as_fn_set_status 77
3829 as_fn_error "C compiler cannot create executables
3830 See \`config.log' for more details." "$LINENO" 5; }; }
3831 else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3836 $as_echo_n "checking for C compiler default output file name... " >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3838 $as_echo "$ac_file" >&6; }
3839 ac_exeext=$ac_cv_exeext
3841 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3842 ac_clean_files=$ac_clean_files_save
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3844 $as_echo_n "checking for suffix of executables... " >&6; }
3845 if { { ac_try="$ac_link"
3846 case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_link") 2>&5
3853 ac_status=$?
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; then :
3856 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3857 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3858 # work properly (i.e., refer to `conftest.exe'), while it won't with
3859 # `rm'.
3860 for ac_file in conftest.exe conftest conftest.*; do
3861 test -f "$ac_file" || continue
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3865 break;;
3866 * ) break;;
3867 esac
3868 done
3869 else
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error "cannot compute suffix of executables: cannot compile and link
3873 See \`config.log' for more details." "$LINENO" 5; }
3875 rm -f conftest conftest$ac_cv_exeext
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3877 $as_echo "$ac_cv_exeext" >&6; }
3879 rm -f conftest.$ac_ext
3880 EXEEXT=$ac_cv_exeext
3881 ac_exeext=$EXEEXT
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #include <stdio.h>
3886 main ()
3888 FILE *f = fopen ("conftest.out", "w");
3889 return ferror (f) || fclose (f) != 0;
3892 return 0;
3894 _ACEOF
3895 ac_clean_files="$ac_clean_files conftest.out"
3896 # Check that the compiler produces executables we can run. If not, either
3897 # the compiler is broken, or we cross compile.
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3899 $as_echo_n "checking whether we are cross compiling... " >&6; }
3900 if test "$cross_compiling" != yes; then
3901 { { ac_try="$ac_link"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }
3912 if { ac_try='./conftest$ac_cv_exeext'
3913 { { case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 $as_echo "$ac_try_echo"; } >&5
3919 (eval "$ac_try") 2>&5
3920 ac_status=$?
3921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3922 test $ac_status = 0; }; }; then
3923 cross_compiling=no
3924 else
3925 if test "$cross_compiling" = maybe; then
3926 cross_compiling=yes
3927 else
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error "cannot run C compiled programs.
3931 If you meant to cross compile, use \`--host'.
3932 See \`config.log' for more details." "$LINENO" 5; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3937 $as_echo "$cross_compiling" >&6; }
3939 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3940 ac_clean_files=$ac_clean_files_save
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3942 $as_echo_n "checking for suffix of object files... " >&6; }
3943 if test "${ac_cv_objext+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3950 main ()
3954 return 0;
3956 _ACEOF
3957 rm -f conftest.o conftest.obj
3958 if { { ac_try="$ac_compile"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compile") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 for ac_file in conftest.o conftest.obj conftest.*; do
3970 test -f "$ac_file" || continue;
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3974 break;;
3975 esac
3976 done
3977 else
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error "cannot compute suffix of object files: cannot compile
3984 See \`config.log' for more details." "$LINENO" 5; }
3986 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3989 $as_echo "$ac_cv_objext" >&6; }
3990 OBJEXT=$ac_cv_objext
3991 ac_objext=$OBJEXT
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3993 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3994 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 main ()
4003 #ifndef __GNUC__
4004 choke me
4005 #endif
4008 return 0;
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4012 ac_compiler_gnu=yes
4013 else
4014 ac_compiler_gnu=no
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4021 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4022 if test $ac_compiler_gnu = yes; then
4023 GCC=yes
4024 else
4025 GCC=
4027 ac_test_CFLAGS=${CFLAGS+set}
4028 ac_save_CFLAGS=$CFLAGS
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4030 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4031 if test "${ac_cv_prog_cc_g+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 ac_save_c_werror_flag=$ac_c_werror_flag
4035 ac_c_werror_flag=yes
4036 ac_cv_prog_cc_g=no
4037 CFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_g=yes
4051 else
4052 CFLAGS=""
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4057 main ()
4061 return 0;
4063 _ACEOF
4064 if ac_fn_c_try_compile "$LINENO"; then :
4066 else
4067 ac_c_werror_flag=$ac_save_c_werror_flag
4068 CFLAGS="-g"
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4073 main ()
4077 return 0;
4079 _ACEOF
4080 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_cv_prog_cc_g=yes
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4091 $as_echo "$ac_cv_prog_cc_g" >&6; }
4092 if test "$ac_test_CFLAGS" = set; then
4093 CFLAGS=$ac_save_CFLAGS
4094 elif test $ac_cv_prog_cc_g = yes; then
4095 if test "$GCC" = yes; then
4096 CFLAGS="-g -O2"
4097 else
4098 CFLAGS="-g"
4100 else
4101 if test "$GCC" = yes; then
4102 CFLAGS="-O2"
4103 else
4104 CFLAGS=
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4108 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4109 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 ac_cv_prog_cc_c89=no
4113 ac_save_CC=$CC
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <stdarg.h>
4117 #include <stdio.h>
4118 #include <sys/types.h>
4119 #include <sys/stat.h>
4120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4121 struct buf { int x; };
4122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4123 static char *e (p, i)
4124 char **p;
4125 int i;
4127 return p[i];
4129 static char *f (char * (*g) (char **, int), char **p, ...)
4131 char *s;
4132 va_list v;
4133 va_start (v,p);
4134 s = g (p, va_arg (v,int));
4135 va_end (v);
4136 return s;
4139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4140 function prototypes and stuff, but not '\xHH' hex character constants.
4141 These don't provoke an error unfortunately, instead are silently treated
4142 as 'x'. The following induces an error, until -std is added to get
4143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4144 array size at least. It's necessary to write '\x00'==0 to get something
4145 that's true only with -std. */
4146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4149 inside strings and character constants. */
4150 #define FOO(x) 'x'
4151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4153 int test (int i, double x);
4154 struct s1 {int (*f) (int a);};
4155 struct s2 {int (*f) (double a);};
4156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4157 int argc;
4158 char **argv;
4160 main ()
4162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4164 return 0;
4166 _ACEOF
4167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4170 CC="$ac_save_CC $ac_arg"
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 ac_cv_prog_cc_c89=$ac_arg
4174 rm -f core conftest.err conftest.$ac_objext
4175 test "x$ac_cv_prog_cc_c89" != "xno" && break
4176 done
4177 rm -f conftest.$ac_ext
4178 CC=$ac_save_CC
4181 # AC_CACHE_VAL
4182 case "x$ac_cv_prog_cc_c89" in
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 $as_echo "none needed" >&6; } ;;
4186 xno)
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4188 $as_echo "unsupported" >&6; } ;;
4190 CC="$CC $ac_cv_prog_cc_c89"
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4193 esac
4194 if test "x$ac_cv_prog_cc_c89" != xno; then :
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4205 # On Suns, sometimes $CPP names a directory.
4206 if test -n "$CPP" && test -d "$CPP"; then
4207 CPP=
4210 ## If not using gcc, and on Solaris, and no CPP specified, see if
4211 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4212 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4213 test x"$CPP" = x; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4215 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4217 if test "${emacs_cv_sunpro_c+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4224 main ()
4226 #ifndef __SUNPRO_C
4227 fail;
4228 #endif
4231 return 0;
4233 _ACEOF
4234 if ac_fn_c_try_link "$LINENO"; then :
4235 emacs_cv_sunpro_c=yes
4236 else
4237 emacs_cv_sunpro_c=no
4239 rm -f core conftest.err conftest.$ac_objext \
4240 conftest$ac_exeext conftest.$ac_ext
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4244 $as_echo "$emacs_cv_sunpro_c" >&6; }
4246 if test x"$emacs_cv_sunpro_c" = xyes; then
4247 NON_GNU_CPP="$CC -E -Xs"
4251 #### Some systems specify a CPP to use unless we are using GCC.
4252 #### Now that we know whether we are using GCC, we can decide whether
4253 #### to use that one.
4254 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4255 then
4256 CPP="$NON_GNU_CPP"
4259 #### Some systems specify a CC to use unless we are using GCC.
4260 #### Now that we know whether we are using GCC, we can decide whether
4261 #### to use that one.
4262 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4263 test x$cc_specified != xyes
4264 then
4265 CC="$NON_GNU_CC"
4268 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4269 then
4270 CC="$CC $GCC_TEST_OPTIONS"
4273 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4274 then
4275 CC="$CC $NON_GCC_TEST_OPTIONS"
4278 ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4284 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4285 # On Suns, sometimes $CPP names a directory.
4286 if test -n "$CPP" && test -d "$CPP"; then
4287 CPP=
4289 if test -z "$CPP"; then
4290 if test "${ac_cv_prog_CPP+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 # Double quotes because CPP needs to be expanded
4294 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4296 ac_preproc_ok=false
4297 for ac_c_preproc_warn_flag in '' yes
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #ifdef __STDC__
4308 # include <limits.h>
4309 #else
4310 # include <assert.h>
4311 #endif
4312 Syntax error
4313 _ACEOF
4314 if ac_fn_c_try_cpp "$LINENO"; then :
4316 else
4317 # Broken: fails on valid input.
4318 continue
4320 rm -f conftest.err conftest.$ac_ext
4322 # OK, works on sane cases. Now check whether nonexistent headers
4323 # can be detected and how.
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <ac_nonexistent.h>
4327 _ACEOF
4328 if ac_fn_c_try_cpp "$LINENO"; then :
4329 # Broken: success on invalid input.
4330 continue
4331 else
4332 # Passes both tests.
4333 ac_preproc_ok=:
4334 break
4336 rm -f conftest.err conftest.$ac_ext
4338 done
4339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4340 rm -f conftest.err conftest.$ac_ext
4341 if $ac_preproc_ok; then :
4342 break
4345 done
4346 ac_cv_prog_CPP=$CPP
4349 CPP=$ac_cv_prog_CPP
4350 else
4351 ac_cv_prog_CPP=$CPP
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4354 $as_echo "$CPP" >&6; }
4355 ac_preproc_ok=false
4356 for ac_c_preproc_warn_flag in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 # <limits.h> exists even on freestanding compilers.
4362 # On the NeXT, cc -E runs the code through the compiler's parser,
4363 # not just through cpp. "Syntax error" is here to catch this case.
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #ifdef __STDC__
4367 # include <limits.h>
4368 #else
4369 # include <assert.h>
4370 #endif
4371 Syntax error
4372 _ACEOF
4373 if ac_fn_c_try_cpp "$LINENO"; then :
4375 else
4376 # Broken: fails on valid input.
4377 continue
4379 rm -f conftest.err conftest.$ac_ext
4381 # OK, works on sane cases. Now check whether nonexistent headers
4382 # can be detected and how.
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #include <ac_nonexistent.h>
4386 _ACEOF
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4388 # Broken: success on invalid input.
4389 continue
4390 else
4391 # Passes both tests.
4392 ac_preproc_ok=:
4393 break
4395 rm -f conftest.err conftest.$ac_ext
4397 done
4398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4399 rm -f conftest.err conftest.$ac_ext
4400 if $ac_preproc_ok; then :
4402 else
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4406 See \`config.log' for more details." "$LINENO" 5; }
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4417 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4418 if test "${ac_cv_path_GREP+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -z "$GREP"; then
4422 ac_path_GREP_found=false
4423 # Loop through the user's path and test for each of PROGNAME-LIST
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_prog in grep ggrep; do
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4432 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4433 # Check for GNU ac_path_GREP and select it if it is found.
4434 # Check for GNU $ac_path_GREP
4435 case `"$ac_path_GREP" --version 2>&1` in
4436 *GNU*)
4437 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4439 ac_count=0
4440 $as_echo_n 0123456789 >"conftest.in"
4441 while :
4443 cat "conftest.in" "conftest.in" >"conftest.tmp"
4444 mv "conftest.tmp" "conftest.in"
4445 cp "conftest.in" "conftest.nl"
4446 $as_echo 'GREP' >> "conftest.nl"
4447 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4449 as_fn_arith $ac_count + 1 && ac_count=$as_val
4450 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4451 # Best one so far, save it but keep looking for a better one
4452 ac_cv_path_GREP="$ac_path_GREP"
4453 ac_path_GREP_max=$ac_count
4455 # 10*(2^10) chars as input seems more than enough
4456 test $ac_count -gt 10 && break
4457 done
4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459 esac
4461 $ac_path_GREP_found && break 3
4462 done
4463 done
4464 done
4465 IFS=$as_save_IFS
4466 if test -z "$ac_cv_path_GREP"; then
4467 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4469 else
4470 ac_cv_path_GREP=$GREP
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4475 $as_echo "$ac_cv_path_GREP" >&6; }
4476 GREP="$ac_cv_path_GREP"
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4480 $as_echo_n "checking for egrep... " >&6; }
4481 if test "${ac_cv_path_EGREP+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4485 then ac_cv_path_EGREP="$GREP -E"
4486 else
4487 if test -z "$EGREP"; then
4488 ac_path_EGREP_found=false
4489 # Loop through the user's path and test for each of PROGNAME-LIST
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_prog in egrep; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4498 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4499 # Check for GNU ac_path_EGREP and select it if it is found.
4500 # Check for GNU $ac_path_EGREP
4501 case `"$ac_path_EGREP" --version 2>&1` in
4502 *GNU*)
4503 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4505 ac_count=0
4506 $as_echo_n 0123456789 >"conftest.in"
4507 while :
4509 cat "conftest.in" "conftest.in" >"conftest.tmp"
4510 mv "conftest.tmp" "conftest.in"
4511 cp "conftest.in" "conftest.nl"
4512 $as_echo 'EGREP' >> "conftest.nl"
4513 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4515 as_fn_arith $ac_count + 1 && ac_count=$as_val
4516 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4517 # Best one so far, save it but keep looking for a better one
4518 ac_cv_path_EGREP="$ac_path_EGREP"
4519 ac_path_EGREP_max=$ac_count
4521 # 10*(2^10) chars as input seems more than enough
4522 test $ac_count -gt 10 && break
4523 done
4524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4525 esac
4527 $ac_path_EGREP_found && break 3
4528 done
4529 done
4530 done
4531 IFS=$as_save_IFS
4532 if test -z "$ac_cv_path_EGREP"; then
4533 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4535 else
4536 ac_cv_path_EGREP=$EGREP
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4542 $as_echo "$ac_cv_path_EGREP" >&6; }
4543 EGREP="$ac_cv_path_EGREP"
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4547 $as_echo_n "checking for ANSI C header files... " >&6; }
4548 if test "${ac_cv_header_stdc+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 #include <stdlib.h>
4554 #include <stdarg.h>
4555 #include <string.h>
4556 #include <float.h>
4559 main ()
4563 return 0;
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 ac_cv_header_stdc=yes
4568 else
4569 ac_cv_header_stdc=no
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 if test $ac_cv_header_stdc = yes; then
4574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 #include <string.h>
4579 _ACEOF
4580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4581 $EGREP "memchr" >/dev/null 2>&1; then :
4583 else
4584 ac_cv_header_stdc=no
4586 rm -f conftest*
4590 if test $ac_cv_header_stdc = yes; then
4591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4594 #include <stdlib.h>
4596 _ACEOF
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "free" >/dev/null 2>&1; then :
4600 else
4601 ac_cv_header_stdc=no
4603 rm -f conftest*
4607 if test $ac_cv_header_stdc = yes; then
4608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4609 if test "$cross_compiling" = yes; then :
4611 else
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 #include <ctype.h>
4615 #include <stdlib.h>
4616 #if ((' ' & 0x0FF) == 0x020)
4617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4619 #else
4620 # define ISLOWER(c) \
4621 (('a' <= (c) && (c) <= 'i') \
4622 || ('j' <= (c) && (c) <= 'r') \
4623 || ('s' <= (c) && (c) <= 'z'))
4624 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4625 #endif
4627 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4629 main ()
4631 int i;
4632 for (i = 0; i < 256; i++)
4633 if (XOR (islower (i), ISLOWER (i))
4634 || toupper (i) != TOUPPER (i))
4635 return 2;
4636 return 0;
4638 _ACEOF
4639 if ac_fn_c_try_run "$LINENO"; then :
4641 else
4642 ac_cv_header_stdc=no
4644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4645 conftest.$ac_objext conftest.beam conftest.$ac_ext
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4651 $as_echo "$ac_cv_header_stdc" >&6; }
4652 if test $ac_cv_header_stdc = yes; then
4654 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4658 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4660 inttypes.h stdint.h unistd.h
4661 do :
4662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4663 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4665 eval as_val=\$$as_ac_Header
4666 if test "x$as_val" = x""yes; then :
4667 cat >>confdefs.h <<_ACEOF
4668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4669 _ACEOF
4673 done
4677 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4678 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4679 MINIX=yes
4680 else
4681 MINIX=
4685 if test "$MINIX" = yes; then
4687 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4690 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4693 $as_echo "#define _MINIX 1" >>confdefs.h
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4699 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4700 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4706 # define __EXTENSIONS__ 1
4707 $ac_includes_default
4709 main ()
4713 return 0;
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_safe_to_define___extensions__=yes
4718 else
4719 ac_cv_safe_to_define___extensions__=no
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4724 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4725 test $ac_cv_safe_to_define___extensions__ = yes &&
4726 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4728 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4730 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4732 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4734 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4738 ### Use -Wno-pointer-sign if the compiler supports it
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4740 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4741 SAVE_CFLAGS="$CFLAGS"
4742 CFLAGS="$CFLAGS -Wno-pointer-sign"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 main ()
4751 return 0;
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 has_option=yes
4756 else
4757 has_option=no
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760 if test $has_option = yes; then
4761 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4764 $as_echo "$has_option" >&6; }
4765 CFLAGS="$SAVE_CFLAGS"
4766 unset has_option
4767 unset SAVE_CFLAGS
4769 ### Use -Wdeclaration-after-statement if the compiler supports it
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4771 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4772 SAVE_CFLAGS="$CFLAGS"
4773 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4778 main ()
4782 return 0;
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786 has_option=yes
4787 else
4788 has_option=no
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 if test $has_option = yes; then
4792 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4795 $as_echo "$has_option" >&6; }
4796 CFLAGS="$SAVE_CFLAGS"
4797 unset has_option
4798 unset SAVE_CFLAGS
4800 #### Some other nice autoconf tests.
4802 ac_ext=c
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4809 # On Suns, sometimes $CPP names a directory.
4810 if test -n "$CPP" && test -d "$CPP"; then
4811 CPP=
4813 if test -z "$CPP"; then
4814 if test "${ac_cv_prog_CPP+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 # Double quotes because CPP needs to be expanded
4818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4820 ac_preproc_ok=false
4821 for ac_c_preproc_warn_flag in '' yes
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831 #ifdef __STDC__
4832 # include <limits.h>
4833 #else
4834 # include <assert.h>
4835 #endif
4836 Syntax error
4837 _ACEOF
4838 if ac_fn_c_try_cpp "$LINENO"; then :
4840 else
4841 # Broken: fails on valid input.
4842 continue
4844 rm -f conftest.err conftest.$ac_ext
4846 # OK, works on sane cases. Now check whether nonexistent headers
4847 # can be detected and how.
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <ac_nonexistent.h>
4851 _ACEOF
4852 if ac_fn_c_try_cpp "$LINENO"; then :
4853 # Broken: success on invalid input.
4854 continue
4855 else
4856 # Passes both tests.
4857 ac_preproc_ok=:
4858 break
4860 rm -f conftest.err conftest.$ac_ext
4862 done
4863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4864 rm -f conftest.err conftest.$ac_ext
4865 if $ac_preproc_ok; then :
4866 break
4869 done
4870 ac_cv_prog_CPP=$CPP
4873 CPP=$ac_cv_prog_CPP
4874 else
4875 ac_cv_prog_CPP=$CPP
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4878 $as_echo "$CPP" >&6; }
4879 ac_preproc_ok=false
4880 for ac_c_preproc_warn_flag in '' yes
4882 # Use a header file that comes with gcc, so configuring glibc
4883 # with a fresh cross-compiler works.
4884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4885 # <limits.h> exists even on freestanding compilers.
4886 # On the NeXT, cc -E runs the code through the compiler's parser,
4887 # not just through cpp. "Syntax error" is here to catch this case.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #ifdef __STDC__
4891 # include <limits.h>
4892 #else
4893 # include <assert.h>
4894 #endif
4895 Syntax error
4896 _ACEOF
4897 if ac_fn_c_try_cpp "$LINENO"; then :
4899 else
4900 # Broken: fails on valid input.
4901 continue
4903 rm -f conftest.err conftest.$ac_ext
4905 # OK, works on sane cases. Now check whether nonexistent headers
4906 # can be detected and how.
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 #include <ac_nonexistent.h>
4910 _ACEOF
4911 if ac_fn_c_try_cpp "$LINENO"; then :
4912 # Broken: success on invalid input.
4913 continue
4914 else
4915 # Passes both tests.
4916 ac_preproc_ok=:
4917 break
4919 rm -f conftest.err conftest.$ac_ext
4921 done
4922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4923 rm -f conftest.err conftest.$ac_ext
4924 if $ac_preproc_ok; then :
4926 else
4927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4929 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4930 See \`config.log' for more details." "$LINENO" 5; }
4933 ac_ext=c
4934 ac_cpp='$CPP $CPPFLAGS'
4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939 # Find a good install program. We prefer a C program (faster),
4940 # so one script is as good as another. But avoid the broken or
4941 # incompatible versions:
4942 # SysV /etc/install, /usr/sbin/install
4943 # SunOS /usr/etc/install
4944 # IRIX /sbin/install
4945 # AIX /bin/install
4946 # AmigaOS /C/install, which installs bootblocks on floppy discs
4947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950 # OS/2's system install, which has a completely different semantic
4951 # ./install, which can be erroneously created by make from ./install.sh.
4952 # Reject install programs that cannot install multiple files.
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4954 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4955 if test -z "$INSTALL"; then
4956 if test "${ac_cv_path_install+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 # Account for people who put trailing slashes in PATH elements.
4965 case $as_dir/ in #((
4966 ./ | .// | /[cC]/* | \
4967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4968 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4969 /usr/ucb/* ) ;;
4971 # OSF1 and SCO ODT 3.0 have their own names for install.
4972 # Don't use installbsd from OSF since it installs stuff as root
4973 # by default.
4974 for ac_prog in ginstall scoinst install; do
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4977 if test $ac_prog = install &&
4978 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4979 # AIX install. It has an incompatible calling convention.
4981 elif test $ac_prog = install &&
4982 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4983 # program-specific install script used by HP pwplus--don't use.
4985 else
4986 rm -rf conftest.one conftest.two conftest.dir
4987 echo one > conftest.one
4988 echo two > conftest.two
4989 mkdir conftest.dir
4990 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4991 test -s conftest.one && test -s conftest.two &&
4992 test -s conftest.dir/conftest.one &&
4993 test -s conftest.dir/conftest.two
4994 then
4995 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4996 break 3
5000 done
5001 done
5003 esac
5005 done
5006 IFS=$as_save_IFS
5008 rm -rf conftest.one conftest.two conftest.dir
5011 if test "${ac_cv_path_install+set}" = set; then
5012 INSTALL=$ac_cv_path_install
5013 else
5014 # As a last resort, use the slow shell script. Don't cache a
5015 # value for INSTALL within a source directory, because that will
5016 # break other packages using the cache if that directory is
5017 # removed, or if the value is a relative name.
5018 INSTALL=$ac_install_sh
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5022 $as_echo "$INSTALL" >&6; }
5024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5025 # It thinks the first close brace ends the variable substitution.
5026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5032 if test "x$RANLIB" = x; then
5033 if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5035 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$RANLIB"; then
5042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5055 done
5056 done
5057 IFS=$as_save_IFS
5061 RANLIB=$ac_cv_prog_RANLIB
5062 if test -n "$RANLIB"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5064 $as_echo "$RANLIB" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5072 if test -z "$ac_cv_prog_RANLIB"; then
5073 ac_ct_RANLIB=$RANLIB
5074 # Extract the first word of "ranlib", so it can be a program name with args.
5075 set dummy ranlib; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$ac_ct_RANLIB"; then
5082 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_ac_ct_RANLIB="ranlib"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5102 if test -n "$ac_ct_RANLIB"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5104 $as_echo "$ac_ct_RANLIB" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5110 if test "x$ac_ct_RANLIB" = x; then
5111 RANLIB=":"
5112 else
5113 case $cross_compiling:$ac_tool_warned in
5114 yes:)
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117 ac_tool_warned=yes ;;
5118 esac
5119 RANLIB=$ac_ct_RANLIB
5121 else
5122 RANLIB="$ac_cv_prog_RANLIB"
5127 ## Although we're running on an amd64 kernel, we're actually compiling for
5128 ## the x86 architecture. The user should probably have provided an
5129 ## explicit --build to `configure', but if everything else than the kernel
5130 ## is running in i386 mode, we can help them out.
5131 if test "$machine" = "amdx86-64"; then
5132 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5133 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5137 if test "$ac_cv_have_decl_i386" = "yes"; then
5138 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5139 machine=intel386
5140 machfile="m/${machine}.h"
5144 # Extract the first word of "install-info", so it can be a program name with args.
5145 set dummy install-info; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 case $INSTALL_INFO in
5152 [\\/]* | ?:[\\/]*)
5153 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5167 done
5168 done
5169 IFS=$as_save_IFS
5172 esac
5174 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5175 if test -n "$INSTALL_INFO"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5177 $as_echo "$INSTALL_INFO" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5184 # Extract the first word of "install-info", so it can be a program name with args.
5185 set dummy install-info; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 case $INSTALL_INFO in
5192 [\\/]* | ?:[\\/]*)
5193 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in /usr/sbin
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5207 done
5208 done
5209 IFS=$as_save_IFS
5212 esac
5214 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5215 if test -n "$INSTALL_INFO"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5217 $as_echo "$INSTALL_INFO" >&6; }
5218 else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5224 # Extract the first word of "install-info", so it can be a program name with args.
5225 set dummy install-info; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 case $INSTALL_INFO in
5232 [\\/]* | ?:[\\/]*)
5233 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in /sbin
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 break 2
5247 done
5248 done
5249 IFS=$as_save_IFS
5251 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5253 esac
5255 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5256 if test -n "$INSTALL_INFO"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5258 $as_echo "$INSTALL_INFO" >&6; }
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5265 # Extract the first word of "gzip", so it can be a program name with args.
5266 set dummy gzip; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 case $GZIP_PROG in
5273 [\\/]* | ?:[\\/]*)
5274 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5288 done
5289 done
5290 IFS=$as_save_IFS
5293 esac
5295 GZIP_PROG=$ac_cv_path_GZIP_PROG
5296 if test -n "$GZIP_PROG"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5298 $as_echo "$GZIP_PROG" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5307 ## Need makeinfo >= 4.6 (?) to build the manuals.
5308 # Extract the first word of "makeinfo", so it can be a program name with args.
5309 set dummy makeinfo; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 case $MAKEINFO in
5316 [\\/]* | ?:[\\/]*)
5317 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5331 done
5332 done
5333 IFS=$as_save_IFS
5335 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5337 esac
5339 MAKEINFO=$ac_cv_path_MAKEINFO
5340 if test -n "$MAKEINFO"; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5342 $as_echo "$MAKEINFO" >&6; }
5343 else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5349 if test "$MAKEINFO" != "no" && \
5350 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
5351 MAKEINFO=no
5354 ## Makeinfo is unusual. For a released Emacs, the manuals are
5355 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5356 ## therefore in the category of "special tools" not normally required, which
5357 ## configure does not have to check for (eg autoconf itself).
5358 ## In a Bazaar checkout on the other hand, the manuals are not included.
5359 ## So makeinfo is a requirement to build from Bazaar, and configure
5360 ## should test for it as it does for any other build requirement.
5361 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5362 ## with pre-built manuals, from a Bazaar checkout.
5363 if test "$MAKEINFO" = "no"; then
5364 if test "x${with_makeinfo}" = "xno"; then
5365 MAKEINFO=off
5366 elif test ! -e $srcdir/info/emacs; then
5367 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5368 source tree does not seem to have pre-built manuals in the \`info' directory.
5369 Either install a suitable version of makeinfo, or re-run configure
5370 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5375 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5376 then
5377 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5380 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5381 then
5382 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5386 late_LDFLAGS=$LDFLAGS
5387 if test "$GCC" = yes; then
5388 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5389 else
5390 LDFLAGS="$LDFLAGS -znocombreloc"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5394 $as_echo_n "checking for -znocombreloc... " >&6; }
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 main(){return 0;}
5398 _ACEOF
5399 if ac_fn_c_try_link "$LINENO"; then :
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401 $as_echo "yes" >&6; }
5402 else
5403 LDFLAGS=$late_LDFLAGS
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5407 rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5410 #### Extract some information from the operating system and machine files.
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5413 - which libraries the lib-src programs will want, and
5414 - whether the GNU malloc routines are usable..." >&5
5415 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5416 - which libraries the lib-src programs will want, and
5417 - whether the GNU malloc routines are usable..." >&6;}
5419 ### First figure out CFLAGS (which we use for running the compiler here)
5420 ### and REAL_CFLAGS (which we use for real compilation).
5421 ### The two are the same except on a few systems, where they are made
5422 ### different to work around various lossages. For example,
5423 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5424 ### as implying static linking.
5426 ### If the CFLAGS env var is specified, we use that value
5427 ### instead of the default.
5429 ### It's not important that this name contain the PID; you can't run
5430 ### two configures in the same directory and have anything work
5431 ### anyway.
5432 tempcname="conftest.c"
5434 echo '
5435 #include "'${srcdir}'/src/'${opsysfile}'"
5436 #include "'${srcdir}'/src/'${machfile}'"
5438 configure___ LIBX=-lX11
5440 #ifdef CANNOT_DUMP
5441 configure___ cannot_dump=yes
5442 #else
5443 configure___ cannot_dump=no
5444 #endif
5446 #ifdef SYSTEM_MALLOC
5447 configure___ system_malloc=yes
5448 #else
5449 configure___ system_malloc=no
5450 #endif
5452 #ifdef USE_MMAP_FOR_BUFFERS
5453 configure___ use_mmap_for_buffers=yes
5454 #else
5455 configure___ use_mmap_for_buffers=no
5456 #endif
5458 #ifndef C_OPTIMIZE_SWITCH
5459 #ifdef __GNUC__
5460 #define C_OPTIMIZE_SWITCH -O2
5461 #else
5462 #define C_OPTIMIZE_SWITCH -O
5463 #endif
5464 #endif
5466 #ifndef C_WARNINGS_SWITCH
5467 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5468 #endif
5470 #ifdef THIS_IS_CONFIGURE
5472 /* Get the CFLAGS for tests in configure. */
5473 #ifdef __GNUC__
5474 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5475 #else
5476 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5477 #endif
5479 #else /* not THIS_IS_CONFIGURE */
5481 /* Get the CFLAGS for real compilation. */
5482 #ifdef __GNUC__
5483 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5484 #else
5485 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5486 #endif
5488 #endif /* not THIS_IS_CONFIGURE */
5489 ' > ${tempcname}
5491 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5493 # The value of CPP is a quoted variable reference, so we need to do this
5494 # to get its actual value...
5495 CPP=`eval "echo $CPP"`
5496 eval `${CPP} -Isrc ${tempcname} \
5497 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5498 if test "x$SPECIFIED_CFLAGS" = x; then
5499 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5500 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5501 else
5502 REAL_CFLAGS="$CFLAGS"
5504 rm ${tempcname}
5509 UNEXEC_OBJ=unexelf.o
5510 case "$opsys" in
5511 aix4-2)
5512 UNEXEC_OBJ=unexaix.o
5514 cygwin)
5515 UNEXEC_OBJ=unexcw.o
5517 darwin)
5518 UNEXEC_OBJ=unexmacosx.o
5520 hpux10-20 | hpux11)
5521 UNEXEC_OBJ=unexhp9k800.o
5523 sol2-10)
5524 # Use the Solaris dldump() function, called from unexsol.c, to dump
5525 # emacs, instead of the generic ELF dump code found in unexelf.c.
5526 # The resulting binary has a complete symbol table, and is better
5527 # for debugging and other observability tools (debuggers, pstack, etc).
5529 # If you encounter a problem using dldump(), please consider sending
5530 # a message to the OpenSolaris tools-linking mailing list:
5531 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5533 # It is likely that dldump() works with older Solaris too, but this has
5534 # not been tested, so for now this change is for Solaris 10 or newer.
5535 UNEXEC_OBJ=unexsol.o
5537 esac
5539 LD_SWITCH_SYSTEM=
5540 case "$opsys" in
5541 freebsd)
5542 ## Let `ld' find image libs and similar things in /usr/local/lib.
5543 ## The system compiler, GCC, has apparently been modified to not
5544 ## look there, contrary to what a stock GCC would do.
5545 LD_SWITCH_SYSTEM=-L/usr/local/lib
5548 gnu-linux)
5549 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5550 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5553 netbsd)
5554 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5557 openbsd)
5558 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5559 ## otherwise Emacs dumps core on elf systems.
5560 LD_SWITCH_SYSTEM="-Z"
5562 esac
5565 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5567 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5568 ## which has not been defined yet. When this was handled with cpp,
5569 ## it was expanded to null when configure sourced the s/*.h file.
5570 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5571 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5572 ## (or somesuch), but because it is supposed to go at the _front_
5573 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5574 ## Compare with the gnu-linux case below, which added to the end
5575 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5576 ## LD_SWITCH_SYSTEM_TEMACS.
5577 case "$opsys" in
5578 netbsd|openbsd)
5579 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5580 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5581 esac
5584 C_SWITCH_MACHINE=
5585 if test "$machine" = "alpha"; then
5586 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5587 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5591 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5592 ## With ELF, make sure that all common symbols get allocated to in the
5593 ## data section. Otherwise, the dump of temacs may miss variables in
5594 ## the shared library that have been initialized. For example, with
5595 ## GNU libc, __malloc_initialized would normally be resolved to the
5596 ## shared library's .bss section, which is fatal.
5597 if test "x$GCC" = "xyes"; then
5598 C_SWITCH_MACHINE="-fno-common"
5599 else
5600 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5602 else
5603 UNEXEC_OBJ=unexalpha.o
5610 C_SWITCH_SYSTEM=
5611 ## Some programs in src produce warnings saying certain subprograms
5612 ## are too complex and need a MAXMEM value greater than 2000 for
5613 ## additional optimization. --nils@exp-math.uni-essen.de
5614 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5615 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5616 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5617 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5621 LIBS_SYSTEM=
5622 case "$opsys" in
5623 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5624 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5626 freebsd) LIBS_SYSTEM="-lutil" ;;
5628 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5630 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5632 ## Motif needs -lgen.
5633 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5634 esac
5638 ### Make sure subsequent tests use flags consistent with the build flags.
5640 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5641 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5642 else
5643 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5648 # Check whether --enable-largefile was given.
5649 if test "${enable_largefile+set}" = set; then :
5650 enableval=$enable_largefile;
5653 if test "$enable_largefile" != no; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5656 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5657 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 ac_cv_sys_largefile_CC=no
5661 if test "$GCC" != yes; then
5662 ac_save_CC=$CC
5663 while :; do
5664 # IRIX 6.2 and later do not support large files by default,
5665 # so use the C compiler's -n32 option if that helps.
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <sys/types.h>
5669 /* Check that off_t can represent 2**63 - 1 correctly.
5670 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671 since some C++ compilers masquerading as C compilers
5672 incorrectly reject 9223372036854775807. */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675 && LARGE_OFF_T % 2147483647 == 1)
5676 ? 1 : -1];
5678 main ()
5682 return 0;
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686 break
5688 rm -f core conftest.err conftest.$ac_objext
5689 CC="$CC -n32"
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 ac_cv_sys_largefile_CC=' -n32'; break
5693 rm -f core conftest.err conftest.$ac_objext
5694 break
5695 done
5696 CC=$ac_save_CC
5697 rm -f conftest.$ac_ext
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5701 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5702 if test "$ac_cv_sys_largefile_CC" != no; then
5703 CC=$CC$ac_cv_sys_largefile_CC
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5707 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5708 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 while :; do
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include <sys/types.h>
5715 /* Check that off_t can represent 2**63 - 1 correctly.
5716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5717 since some C++ compilers masquerading as C compilers
5718 incorrectly reject 9223372036854775807. */
5719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5721 && LARGE_OFF_T % 2147483647 == 1)
5722 ? 1 : -1];
5724 main ()
5728 return 0;
5730 _ACEOF
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732 ac_cv_sys_file_offset_bits=no; break
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 #define _FILE_OFFSET_BITS 64
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5746 ? 1 : -1];
5748 main ()
5752 return 0;
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 ac_cv_sys_file_offset_bits=64; break
5758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 ac_cv_sys_file_offset_bits=unknown
5760 break
5761 done
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5764 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5765 case $ac_cv_sys_file_offset_bits in #(
5766 no | unknown) ;;
5768 cat >>confdefs.h <<_ACEOF
5769 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5770 _ACEOF
5772 esac
5773 rm -rf conftest*
5774 if test $ac_cv_sys_file_offset_bits = unknown; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5776 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5777 if test "${ac_cv_sys_large_files+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 while :; do
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5791 ? 1 : -1];
5793 main ()
5797 return 0;
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 ac_cv_sys_large_files=no; break
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #define _LARGE_FILES 1
5807 #include <sys/types.h>
5808 /* Check that off_t can represent 2**63 - 1 correctly.
5809 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5810 since some C++ compilers masquerading as C compilers
5811 incorrectly reject 9223372036854775807. */
5812 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5813 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5814 && LARGE_OFF_T % 2147483647 == 1)
5815 ? 1 : -1];
5817 main ()
5821 return 0;
5823 _ACEOF
5824 if ac_fn_c_try_compile "$LINENO"; then :
5825 ac_cv_sys_large_files=1; break
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828 ac_cv_sys_large_files=unknown
5829 break
5830 done
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5833 $as_echo "$ac_cv_sys_large_files" >&6; }
5834 case $ac_cv_sys_large_files in #(
5835 no | unknown) ;;
5837 cat >>confdefs.h <<_ACEOF
5838 #define _LARGE_FILES $ac_cv_sys_large_files
5839 _ACEOF
5841 esac
5842 rm -rf conftest*
5848 ## If user specified a crt-dir, use that unconditionally.
5849 if test "X$CRT_DIR" = "X"; then
5851 case "$canonical" in
5852 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5853 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5854 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5855 ## For anything else (eg /usr/lib32), it is up the user to specify
5856 ## the location (bug#5655).
5857 ## Test for crtn.o, not just the directory, because sometimes the
5858 ## directory exists but does not have the relevant files (bug#1287).
5859 ## FIXME better to test for binary compatibility somehow.
5860 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5863 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5864 esac
5866 case "$opsys" in
5867 hpux10-20) CRT_DIR=/lib ;;
5868 esac
5870 ## Default is /usr/lib.
5871 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5873 else
5875 ## Some platforms don't use any of these files, so it is not
5876 ## appropriate to put this test outside the if block.
5877 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5878 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5884 LIB_MATH=-lm
5885 LIB_STANDARD=
5886 START_FILES=
5888 case $opsys in
5889 cygwin )
5890 LIB_MATH=
5891 START_FILES='ecrt0.o'
5893 darwin )
5894 ## Adding -lm confuses the dynamic linker, so omit it.
5895 LIB_MATH=
5896 START_FILES='pre-crt0.o'
5898 freebsd )
5899 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5900 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5902 gnu-linux | gnu-kfreebsd )
5903 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5904 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5906 hpux10-20 | hpux11 )
5907 LIB_STANDARD=-lc
5908 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5910 netbsd | openbsd )
5911 if test -f $CRT_DIR/crti.o; then
5912 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5913 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5914 else
5915 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5916 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5919 esac
5927 if test "${with_sound}" != "no"; then
5928 # Sound support for GNU/Linux and the free BSDs.
5929 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5930 do :
5931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5932 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5933 eval as_val=\$$as_ac_Header
5934 if test "x$as_val" = x""yes; then :
5935 cat >>confdefs.h <<_ACEOF
5936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5937 _ACEOF
5941 done
5943 # Emulation library used on NetBSD.
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5945 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5946 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 ac_check_lib_save_LIBS=$LIBS
5950 LIBS="-lossaudio $LIBS"
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5954 /* Override any GCC internal prototype to avoid an error.
5955 Use char because int might match the return type of a GCC
5956 builtin and then its argument prototype would still apply. */
5957 #ifdef __cplusplus
5958 extern "C"
5959 #endif
5960 char _oss_ioctl ();
5962 main ()
5964 return _oss_ioctl ();
5966 return 0;
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970 ac_cv_lib_ossaudio__oss_ioctl=yes
5971 else
5972 ac_cv_lib_ossaudio__oss_ioctl=no
5974 rm -f core conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 LIBS=$ac_check_lib_save_LIBS
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5979 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5980 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5981 LIBSOUND=-lossaudio
5982 else
5983 LIBSOUND=
5988 ALSA_REQUIRED=1.0.0
5989 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
5991 succeeded=no
5993 # Extract the first word of "pkg-config", so it can be a program name with args.
5994 set dummy pkg-config; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 case $PKG_CONFIG in
6001 [\\/]* | ?:[\\/]*)
6002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6016 done
6017 done
6018 IFS=$as_save_IFS
6020 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6022 esac
6024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6025 if test -n "$PKG_CONFIG"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6027 $as_echo "$PKG_CONFIG" >&6; }
6028 else
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6035 if test "$PKG_CONFIG" = "no" ; then
6036 HAVE_ALSA=no
6037 else
6038 PKG_CONFIG_MIN_VERSION=0.9.0
6039 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6041 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6043 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6045 $as_echo "yes" >&6; }
6046 succeeded=yes
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6049 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6050 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6052 $as_echo "$ALSA_CFLAGS" >&6; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6055 $as_echo_n "checking ALSA_LIBS... " >&6; }
6056 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6058 $as_echo "$ALSA_LIBS" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 ALSA_CFLAGS=""
6063 ALSA_LIBS=""
6064 ## If we have a custom action on failure, don't print errors, but
6065 ## do set a variable so people can do so.
6066 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6072 else
6073 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6074 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6078 if test $succeeded = yes; then
6079 HAVE_ALSA=yes
6080 else
6081 HAVE_ALSA=no
6084 if test $HAVE_ALSA = yes; then
6085 SAVE_CFLAGS="$CFLAGS"
6086 SAVE_LDFLAGS="$LDFLAGS"
6087 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6088 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #include <asoundlib.h>
6093 main ()
6095 snd_lib_error_set_handler (0);
6097 return 0;
6099 _ACEOF
6100 if ac_fn_c_try_compile "$LINENO"; then :
6101 emacs_alsa_normal=yes
6102 else
6103 emacs_alsa_normal=no
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106 if test "$emacs_alsa_normal" != yes; then
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #include <alsa/asoundlib.h>
6111 main ()
6113 snd_lib_error_set_handler (0);
6115 return 0;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 emacs_alsa_subdir=yes
6120 else
6121 emacs_alsa_subdir=no
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 if test "$emacs_alsa_subdir" != yes; then
6125 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6127 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6130 CFLAGS="$SAVE_CFLAGS"
6131 LDFLAGS="$SAVE_LDFLAGS"
6132 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6133 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6135 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6141 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6142 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6143 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6144 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6145 sys/utsname.h pwd.h utmp.h
6146 do :
6147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6149 eval as_val=\$$as_ac_Header
6150 if test "x$as_val" = x""yes; then :
6151 cat >>confdefs.h <<_ACEOF
6152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6153 _ACEOF
6157 done
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6161 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <sys/personality.h>
6166 main ()
6168 personality (PER_LINUX32)
6170 return 0;
6172 _ACEOF
6173 if ac_fn_c_try_compile "$LINENO"; then :
6174 emacs_cv_personality_linux32=yes
6175 else
6176 emacs_cv_personality_linux32=no
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6180 $as_echo "$emacs_cv_personality_linux32" >&6; }
6182 if test $emacs_cv_personality_linux32 = yes; then
6184 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6188 for ac_header in term.h
6189 do :
6190 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6191 if test "x$ac_cv_header_term_h" = x""yes; then :
6192 cat >>confdefs.h <<_ACEOF
6193 #define HAVE_TERM_H 1
6194 _ACEOF
6198 done
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6201 $as_echo_n "checking for ANSI C header files... " >&6; }
6202 if test "${ac_cv_header_stdc+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207 #include <stdlib.h>
6208 #include <stdarg.h>
6209 #include <string.h>
6210 #include <float.h>
6213 main ()
6217 return 0;
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"; then :
6221 ac_cv_header_stdc=yes
6222 else
6223 ac_cv_header_stdc=no
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 if test $ac_cv_header_stdc = yes; then
6228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231 #include <string.h>
6233 _ACEOF
6234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6235 $EGREP "memchr" >/dev/null 2>&1; then :
6237 else
6238 ac_cv_header_stdc=no
6240 rm -f conftest*
6244 if test $ac_cv_header_stdc = yes; then
6245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #include <stdlib.h>
6250 _ACEOF
6251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6252 $EGREP "free" >/dev/null 2>&1; then :
6254 else
6255 ac_cv_header_stdc=no
6257 rm -f conftest*
6261 if test $ac_cv_header_stdc = yes; then
6262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6263 if test "$cross_compiling" = yes; then :
6265 else
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 #include <ctype.h>
6269 #include <stdlib.h>
6270 #if ((' ' & 0x0FF) == 0x020)
6271 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6272 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6273 #else
6274 # define ISLOWER(c) \
6275 (('a' <= (c) && (c) <= 'i') \
6276 || ('j' <= (c) && (c) <= 'r') \
6277 || ('s' <= (c) && (c) <= 'z'))
6278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6279 #endif
6281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6283 main ()
6285 int i;
6286 for (i = 0; i < 256; i++)
6287 if (XOR (islower (i), ISLOWER (i))
6288 || toupper (i) != TOUPPER (i))
6289 return 2;
6290 return 0;
6292 _ACEOF
6293 if ac_fn_c_try_run "$LINENO"; then :
6295 else
6296 ac_cv_header_stdc=no
6298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6299 conftest.$ac_objext conftest.beam conftest.$ac_ext
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6305 $as_echo "$ac_cv_header_stdc" >&6; }
6306 if test $ac_cv_header_stdc = yes; then
6308 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6313 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6314 if test "${ac_cv_header_time+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 #include <sys/types.h>
6320 #include <sys/time.h>
6321 #include <time.h>
6324 main ()
6326 if ((struct tm *) 0)
6327 return 0;
6329 return 0;
6331 _ACEOF
6332 if ac_fn_c_try_compile "$LINENO"; then :
6333 ac_cv_header_time=yes
6334 else
6335 ac_cv_header_time=no
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6340 $as_echo "$ac_cv_header_time" >&6; }
6341 if test $ac_cv_header_time = yes; then
6343 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6347 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6348 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6349 ac_have_decl=1
6350 else
6351 ac_have_decl=0
6354 cat >>confdefs.h <<_ACEOF
6355 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6356 _ACEOF
6358 if test $ac_cv_have_decl_sys_siglist != yes; then
6359 # For Tru64, at least:
6360 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6361 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6362 ac_have_decl=1
6363 else
6364 ac_have_decl=0
6367 cat >>confdefs.h <<_ACEOF
6368 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6369 _ACEOF
6371 if test $ac_cv_have_decl___sys_siglist = yes; then
6373 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6378 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6379 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6381 else
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384 #include <sys/types.h>
6385 #include <sys/wait.h>
6386 #ifndef WEXITSTATUS
6387 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6388 #endif
6389 #ifndef WIFEXITED
6390 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6391 #endif
6394 main ()
6396 int s;
6397 wait (&s);
6398 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6400 return 0;
6402 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then :
6404 ac_cv_header_sys_wait_h=yes
6405 else
6406 ac_cv_header_sys_wait_h=no
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6411 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6412 if test $ac_cv_header_sys_wait_h = yes; then
6414 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6420 $as_echo_n "checking for struct utimbuf... " >&6; }
6421 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 #ifdef TIME_WITH_SYS_TIME
6427 #include <sys/time.h>
6428 #include <time.h>
6429 #else
6430 #ifdef HAVE_SYS_TIME_H
6431 #include <sys/time.h>
6432 #else
6433 #include <time.h>
6434 #endif
6435 #endif
6436 #ifdef HAVE_UTIME_H
6437 #include <utime.h>
6438 #endif
6440 main ()
6442 static struct utimbuf x; x.actime = x.modtime;
6444 return 0;
6446 _ACEOF
6447 if ac_fn_c_try_compile "$LINENO"; then :
6448 emacs_cv_struct_utimbuf=yes
6449 else
6450 emacs_cv_struct_utimbuf=no
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6455 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6456 if test $emacs_cv_struct_utimbuf = yes; then
6458 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6463 $as_echo_n "checking return type of signal handlers... " >&6; }
6464 if test "${ac_cv_type_signal+set}" = set; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #include <sys/types.h>
6470 #include <signal.h>
6473 main ()
6475 return *(signal (0, 0)) (0) == 1;
6477 return 0;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 ac_cv_type_signal=int
6482 else
6483 ac_cv_type_signal=void
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6488 $as_echo "$ac_cv_type_signal" >&6; }
6490 cat >>confdefs.h <<_ACEOF
6491 #define RETSIGTYPE $ac_cv_type_signal
6492 _ACEOF
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6497 $as_echo_n "checking for speed_t... " >&6; }
6498 if test "${emacs_cv_speed_t+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #include <termios.h>
6505 main ()
6507 speed_t x = 1;
6509 return 0;
6511 _ACEOF
6512 if ac_fn_c_try_compile "$LINENO"; then :
6513 emacs_cv_speed_t=yes
6514 else
6515 emacs_cv_speed_t=no
6517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6520 $as_echo "$emacs_cv_speed_t" >&6; }
6521 if test $emacs_cv_speed_t = yes; then
6523 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6528 $as_echo_n "checking for struct timeval... " >&6; }
6529 if test "${emacs_cv_struct_timeval+set}" = set; then :
6530 $as_echo_n "(cached) " >&6
6531 else
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 #ifdef TIME_WITH_SYS_TIME
6535 #include <sys/time.h>
6536 #include <time.h>
6537 #else
6538 #ifdef HAVE_SYS_TIME_H
6539 #include <sys/time.h>
6540 #else
6541 #include <time.h>
6542 #endif
6543 #endif
6545 main ()
6547 static struct timeval x; x.tv_sec = x.tv_usec;
6549 return 0;
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"; then :
6553 emacs_cv_struct_timeval=yes
6554 else
6555 emacs_cv_struct_timeval=no
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6560 $as_echo "$emacs_cv_struct_timeval" >&6; }
6561 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6562 if test $emacs_cv_struct_timeval = yes; then
6564 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6569 $as_echo_n "checking for struct exception... " >&6; }
6570 if test "${emacs_cv_struct_exception+set}" = set; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <math.h>
6577 main ()
6579 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6581 return 0;
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 emacs_cv_struct_exception=yes
6586 else
6587 emacs_cv_struct_exception=no
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6592 $as_echo "$emacs_cv_struct_exception" >&6; }
6593 HAVE_EXCEPTION=$emacs_cv_struct_exception
6594 if test $emacs_cv_struct_exception != yes; then
6596 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6600 for ac_header in sys/socket.h
6601 do :
6602 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6603 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6604 cat >>confdefs.h <<_ACEOF
6605 #define HAVE_SYS_SOCKET_H 1
6606 _ACEOF
6610 done
6612 for ac_header in net/if.h
6613 do :
6614 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6615 #if HAVE_SYS_SOCKET_H
6616 #include <sys/socket.h>
6617 #endif
6619 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6620 cat >>confdefs.h <<_ACEOF
6621 #define HAVE_NET_IF_H 1
6622 _ACEOF
6626 done
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6630 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6631 if test "${ac_cv_struct_tm+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636 #include <sys/types.h>
6637 #include <time.h>
6640 main ()
6642 struct tm tm;
6643 int *p = &tm.tm_sec;
6644 return !p;
6646 return 0;
6648 _ACEOF
6649 if ac_fn_c_try_compile "$LINENO"; then :
6650 ac_cv_struct_tm=time.h
6651 else
6652 ac_cv_struct_tm=sys/time.h
6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6657 $as_echo "$ac_cv_struct_tm" >&6; }
6658 if test $ac_cv_struct_tm = sys/time.h; then
6660 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6664 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6665 #include <$ac_cv_struct_tm>
6668 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6670 cat >>confdefs.h <<_ACEOF
6671 #define HAVE_STRUCT_TM_TM_ZONE 1
6672 _ACEOF
6677 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6679 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6681 else
6682 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6684 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6685 ac_have_decl=1
6686 else
6687 ac_have_decl=0
6690 cat >>confdefs.h <<_ACEOF
6691 #define HAVE_DECL_TZNAME $ac_have_decl
6692 _ACEOF
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6695 $as_echo_n "checking for tzname... " >&6; }
6696 if test "${ac_cv_var_tzname+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6701 #include <time.h>
6702 #if !HAVE_DECL_TZNAME
6703 extern char *tzname[];
6704 #endif
6707 main ()
6709 return tzname[0][0];
6711 return 0;
6713 _ACEOF
6714 if ac_fn_c_try_link "$LINENO"; then :
6715 ac_cv_var_tzname=yes
6716 else
6717 ac_cv_var_tzname=no
6719 rm -f core conftest.err conftest.$ac_objext \
6720 conftest$ac_exeext conftest.$ac_ext
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6723 $as_echo "$ac_cv_var_tzname" >&6; }
6724 if test $ac_cv_var_tzname = yes; then
6726 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6731 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6733 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6735 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6739 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6740 #if HAVE_SYS_SOCKET_H
6741 #include <sys/socket.h>
6742 #endif
6743 #if HAVE_NET_IF_H
6744 #include <net/if.h>
6745 #endif
6747 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6749 cat >>confdefs.h <<_ACEOF
6750 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6751 _ACEOF
6755 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6756 #if HAVE_SYS_SOCKET_H
6757 #include <sys/socket.h>
6758 #endif
6759 #if HAVE_NET_IF_H
6760 #include <net/if.h>
6761 #endif
6763 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6765 cat >>confdefs.h <<_ACEOF
6766 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6767 _ACEOF
6771 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6772 #if HAVE_SYS_SOCKET_H
6773 #include <sys/socket.h>
6774 #endif
6775 #if HAVE_NET_IF_H
6776 #include <net/if.h>
6777 #endif
6779 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6781 cat >>confdefs.h <<_ACEOF
6782 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6783 _ACEOF
6787 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6788 #if HAVE_SYS_SOCKET_H
6789 #include <sys/socket.h>
6790 #endif
6791 #if HAVE_NET_IF_H
6792 #include <net/if.h>
6793 #endif
6795 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6797 cat >>confdefs.h <<_ACEOF
6798 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6799 _ACEOF
6803 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6804 #if HAVE_SYS_SOCKET_H
6805 #include <sys/socket.h>
6806 #endif
6807 #if HAVE_NET_IF_H
6808 #include <net/if.h>
6809 #endif
6811 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6813 cat >>confdefs.h <<_ACEOF
6814 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6815 _ACEOF
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6823 $as_echo_n "checking for function prototypes... " >&6; }
6824 if test "$ac_cv_prog_cc_c89" != no; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6826 $as_echo "yes" >&6; }
6828 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6831 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6839 $as_echo_n "checking for working volatile... " >&6; }
6840 if test "${ac_cv_c_volatile+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6847 main ()
6850 volatile int x;
6851 int * volatile y = (int *) 0;
6852 return !x && !y;
6854 return 0;
6856 _ACEOF
6857 if ac_fn_c_try_compile "$LINENO"; then :
6858 ac_cv_c_volatile=yes
6859 else
6860 ac_cv_c_volatile=no
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6865 $as_echo "$ac_cv_c_volatile" >&6; }
6866 if test $ac_cv_c_volatile = no; then
6868 $as_echo "#define volatile /**/" >>confdefs.h
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6873 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6874 if test "${ac_cv_c_const+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6881 main ()
6883 /* FIXME: Include the comments suggested by Paul. */
6884 #ifndef __cplusplus
6885 /* Ultrix mips cc rejects this. */
6886 typedef int charset[2];
6887 const charset cs;
6888 /* SunOS 4.1.1 cc rejects this. */
6889 char const *const *pcpcc;
6890 char **ppc;
6891 /* NEC SVR4.0.2 mips cc rejects this. */
6892 struct point {int x, y;};
6893 static struct point const zero = {0,0};
6894 /* AIX XL C 1.02.0.0 rejects this.
6895 It does not let you subtract one const X* pointer from another in
6896 an arm of an if-expression whose if-part is not a constant
6897 expression */
6898 const char *g = "string";
6899 pcpcc = &g + (g ? g-g : 0);
6900 /* HPUX 7.0 cc rejects these. */
6901 ++pcpcc;
6902 ppc = (char**) pcpcc;
6903 pcpcc = (char const *const *) ppc;
6904 { /* SCO 3.2v4 cc rejects this. */
6905 char *t;
6906 char const *s = 0 ? (char *) 0 : (char const *) 0;
6908 *t++ = 0;
6909 if (s) return 0;
6911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6912 int x[] = {25, 17};
6913 const int *foo = &x[0];
6914 ++foo;
6916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6917 typedef const int *iptr;
6918 iptr p = 0;
6919 ++p;
6921 { /* AIX XL C 1.02.0.0 rejects this saying
6922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6923 struct s { int j; const int *ap[3]; };
6924 struct s *b; b->j = 5;
6926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6927 const int foo = 10;
6928 if (!foo) return 0;
6930 return !cs[0] && !zero.x;
6931 #endif
6934 return 0;
6936 _ACEOF
6937 if ac_fn_c_try_compile "$LINENO"; then :
6938 ac_cv_c_const=yes
6939 else
6940 ac_cv_c_const=no
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6945 $as_echo "$ac_cv_c_const" >&6; }
6946 if test $ac_cv_c_const = no; then
6948 $as_echo "#define const /**/" >>confdefs.h
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6953 $as_echo_n "checking for void * support... " >&6; }
6954 if test "${emacs_cv_void_star+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6961 main ()
6963 void * foo;
6965 return 0;
6967 _ACEOF
6968 if ac_fn_c_try_compile "$LINENO"; then :
6969 emacs_cv_void_star=yes
6970 else
6971 emacs_cv_void_star=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6976 $as_echo "$emacs_cv_void_star" >&6; }
6977 if test $emacs_cv_void_star = yes; then
6978 $as_echo "#define POINTER_TYPE void" >>confdefs.h
6980 else
6981 $as_echo "#define POINTER_TYPE char" >>confdefs.h
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6989 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6990 set x ${MAKE-make}
6991 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6992 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 cat >conftest.make <<\_ACEOF
6996 SHELL = /bin/sh
6997 all:
6998 @echo '@@@%%%=$(MAKE)=@@@%%%'
6999 _ACEOF
7000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7001 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7002 *@@@%%%=?*=@@@%%%*)
7003 eval ac_cv_prog_make_${ac_make}_set=yes;;
7005 eval ac_cv_prog_make_${ac_make}_set=no;;
7006 esac
7007 rm -f conftest.make
7009 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7011 $as_echo "yes" >&6; }
7012 SET_MAKE=
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 SET_MAKE="MAKE=${MAKE-make}"
7020 DEPFLAGS=
7021 MKDEPDIR=":"
7022 deps_frag=deps.mk
7023 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7025 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7026 HAVE_GNU_MAKE=no
7027 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7028 if test "x$testval" != x; then
7029 HAVE_GNU_MAKE=yes
7030 else
7031 ac_enable_autodepend=no
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7034 $as_echo "$HAVE_GNU_MAKE" >&6; }
7035 if test $HAVE_GNU_MAKE = yes; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7037 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7038 SAVE_CFLAGS="$CFLAGS"
7039 CFLAGS="$CFLAGS -MMD -MF deps.d"
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7044 main ()
7048 return 0;
7050 _ACEOF
7051 if ac_fn_c_try_compile "$LINENO"; then :
7053 else
7054 ac_enable_autodepend=no
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7057 CFLAGS="$SAVE_CFLAGS"
7058 test -f deps.d || ac_enable_autodepend=no
7059 rm -rf deps.d
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7061 $as_echo "$ac_enable_autodepend" >&6; }
7063 if test $ac_enable_autodepend = yes; then
7064 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7065 ## In parallel builds, another make might create depdir between
7066 ## the first test and mkdir, so stick another test on the end.
7067 ## Or use mkinstalldirs? mkdir -p is not portable.
7068 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7069 deps_frag=autodeps.mk
7072 deps_frag=$srcdir/src/$deps_frag
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7079 $as_echo_n "checking for long file names... " >&6; }
7080 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 ac_cv_sys_long_file_names=yes
7084 # Test for long file names in all the places we know might matter:
7085 # . the current directory, where building will happen
7086 # $prefix/lib where we will be installing things
7087 # $exec_prefix/lib likewise
7088 # $TMPDIR if set, where it might want to write temporary files
7089 # /tmp where it might want to write temporary files
7090 # /var/tmp likewise
7091 # /usr/tmp likewise
7092 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7093 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7094 # in the usual case where exec_prefix is '${prefix}'.
7095 case $ac_dir in #(
7096 . | /* | ?:[\\/]*) ;; #(
7097 *) continue;;
7098 esac
7099 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7100 ac_xdir=$ac_dir/cf$$
7101 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7102 ac_tf1=$ac_xdir/conftest9012345
7103 ac_tf2=$ac_xdir/conftest9012346
7104 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7105 ac_cv_sys_long_file_names=no
7106 rm -f -r "$ac_xdir" 2>/dev/null
7107 test $ac_cv_sys_long_file_names = no && break
7108 done
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7111 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7112 if test $ac_cv_sys_long_file_names = yes; then
7114 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7119 #### Choose a window system.
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7122 $as_echo_n "checking for X... " >&6; }
7125 # Check whether --with-x was given.
7126 if test "${with_x+set}" = set; then :
7127 withval=$with_x;
7130 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7131 if test "x$with_x" = xno; then
7132 # The user explicitly disabled X.
7133 have_x=disabled
7134 else
7135 case $x_includes,$x_libraries in #(
7136 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7137 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 # One or both of the vars are not set, and there is no cached value.
7141 ac_x_includes=no ac_x_libraries=no
7142 rm -f -r conftest.dir
7143 if mkdir conftest.dir; then
7144 cd conftest.dir
7145 cat >Imakefile <<'_ACEOF'
7146 incroot:
7147 @echo incroot='${INCROOT}'
7148 usrlibdir:
7149 @echo usrlibdir='${USRLIBDIR}'
7150 libdir:
7151 @echo libdir='${LIBDIR}'
7152 _ACEOF
7153 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7155 for ac_var in incroot usrlibdir libdir; do
7156 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7157 done
7158 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7159 for ac_extension in a so sl dylib la dll; do
7160 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7161 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7162 ac_im_usrlibdir=$ac_im_libdir; break
7164 done
7165 # Screen out bogus values from the imake configuration. They are
7166 # bogus both because they are the default anyway, and because
7167 # using them would break gcc on systems where it needs fixed includes.
7168 case $ac_im_incroot in
7169 /usr/include) ac_x_includes= ;;
7170 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7171 esac
7172 case $ac_im_usrlibdir in
7173 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7174 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7175 esac
7177 cd ..
7178 rm -f -r conftest.dir
7181 # Standard set of common directories for X headers.
7182 # Check X11 before X11Rn because it is often a symlink to the current release.
7183 ac_x_header_dirs='
7184 /usr/X11/include
7185 /usr/X11R7/include
7186 /usr/X11R6/include
7187 /usr/X11R5/include
7188 /usr/X11R4/include
7190 /usr/include/X11
7191 /usr/include/X11R7
7192 /usr/include/X11R6
7193 /usr/include/X11R5
7194 /usr/include/X11R4
7196 /usr/local/X11/include
7197 /usr/local/X11R7/include
7198 /usr/local/X11R6/include
7199 /usr/local/X11R5/include
7200 /usr/local/X11R4/include
7202 /usr/local/include/X11
7203 /usr/local/include/X11R7
7204 /usr/local/include/X11R6
7205 /usr/local/include/X11R5
7206 /usr/local/include/X11R4
7208 /usr/X386/include
7209 /usr/x386/include
7210 /usr/XFree86/include/X11
7212 /usr/include
7213 /usr/local/include
7214 /usr/unsupported/include
7215 /usr/athena/include
7216 /usr/local/x11r5/include
7217 /usr/lpp/Xamples/include
7219 /usr/openwin/include
7220 /usr/openwin/share/include'
7222 if test "$ac_x_includes" = no; then
7223 # Guess where to find include files, by looking for Xlib.h.
7224 # First, try using that file with no special directory specified.
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <X11/Xlib.h>
7228 _ACEOF
7229 if ac_fn_c_try_cpp "$LINENO"; then :
7230 # We can compile using X headers with no special include directory.
7231 ac_x_includes=
7232 else
7233 for ac_dir in $ac_x_header_dirs; do
7234 if test -r "$ac_dir/X11/Xlib.h"; then
7235 ac_x_includes=$ac_dir
7236 break
7238 done
7240 rm -f conftest.err conftest.$ac_ext
7241 fi # $ac_x_includes = no
7243 if test "$ac_x_libraries" = no; then
7244 # Check for the libraries.
7245 # See if we find them without any special options.
7246 # Don't add to $LIBS permanently.
7247 ac_save_LIBS=$LIBS
7248 LIBS="-lX11 $LIBS"
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <X11/Xlib.h>
7253 main ()
7255 XrmInitialize ()
7257 return 0;
7259 _ACEOF
7260 if ac_fn_c_try_link "$LINENO"; then :
7261 LIBS=$ac_save_LIBS
7262 # We can link X programs with no special library path.
7263 ac_x_libraries=
7264 else
7265 LIBS=$ac_save_LIBS
7266 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7268 # Don't even attempt the hair of trying to link an X program!
7269 for ac_extension in a so sl dylib la dll; do
7270 if test -r "$ac_dir/libX11.$ac_extension"; then
7271 ac_x_libraries=$ac_dir
7272 break 2
7274 done
7275 done
7277 rm -f core conftest.err conftest.$ac_objext \
7278 conftest$ac_exeext conftest.$ac_ext
7279 fi # $ac_x_libraries = no
7281 case $ac_x_includes,$ac_x_libraries in #(
7282 no,* | *,no | *\'*)
7283 # Didn't find X, or a directory has "'" in its name.
7284 ac_cv_have_x="have_x=no";; #(
7286 # Record where we found X for the cache.
7287 ac_cv_have_x="have_x=yes\
7288 ac_x_includes='$ac_x_includes'\
7289 ac_x_libraries='$ac_x_libraries'"
7290 esac
7292 ;; #(
7293 *) have_x=yes;;
7294 esac
7295 eval "$ac_cv_have_x"
7296 fi # $with_x != no
7298 if test "$have_x" != yes; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7300 $as_echo "$have_x" >&6; }
7301 no_x=yes
7302 else
7303 # If each of the values was on the command line, it overrides each guess.
7304 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7305 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7306 # Update the cache value to reflect the command line values.
7307 ac_cv_have_x="have_x=yes\
7308 ac_x_includes='$x_includes'\
7309 ac_x_libraries='$x_libraries'"
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7311 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7314 if test "$no_x" = yes; then
7315 window_system=none
7316 else
7317 window_system=x11
7320 ## Workaround for bug in autoconf <= 2.62.
7321 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7322 ## No need to do anything special for these standard directories.
7323 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7325 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7329 LD_SWITCH_X_SITE_AUX=
7330 LD_SWITCH_X_SITE_AUX_RPATH=
7331 if test "${x_libraries}" != NONE; then
7332 if test -n "${x_libraries}"; then
7333 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7334 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7335 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7337 x_default_search_path=""
7338 x_search_path=${x_libraries}
7339 if test -z "${x_search_path}"; then
7340 x_search_path=/usr/lib
7342 for x_library in `echo ${x_search_path}: | \
7343 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7344 x_search_path="\
7345 ${x_library}/X11/%L/%T/%N%C%S:\
7346 ${x_library}/X11/%l/%T/%N%C%S:\
7347 ${x_library}/X11/%T/%N%C%S:\
7348 ${x_library}/X11/%L/%T/%N%S:\
7349 ${x_library}/X11/%l/%T/%N%S:\
7350 ${x_library}/X11/%T/%N%S"
7351 if test x"${x_default_search_path}" = x; then
7352 x_default_search_path=${x_search_path}
7353 else
7354 x_default_search_path="${x_search_path}:${x_default_search_path}"
7356 done
7361 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7362 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7365 if test x"${x_includes}" = x; then
7366 bitmapdir=/usr/include/X11/bitmaps
7367 else
7368 # accumulate include directories that have X11 bitmap subdirectories
7369 bmd_acc="dummyval"
7370 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7371 if test -d "${bmd}/X11/bitmaps"; then
7372 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7374 if test -d "${bmd}/bitmaps"; then
7375 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7377 done
7378 if test ${bmd_acc} != "dummyval"; then
7379 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7383 HAVE_NS=no
7384 NS_IMPL_COCOA=no
7385 NS_IMPL_GNUSTEP=no
7386 tmp_CPPFLAGS="$CPPFLAGS"
7387 tmp_CFLAGS="$CFLAGS"
7388 CPPFLAGS="$CPPFLAGS -x objective-c"
7389 CFLAGS="$CFLAGS -x objective-c"
7390 TEMACS_LDFLAGS2="\${LDFLAGS}"
7391 if test "${with_ns}" != no; then
7392 if test "${opsys}" = darwin; then
7393 NS_IMPL_COCOA=yes
7394 ns_appdir=`pwd`/nextstep/Emacs.app/
7395 ns_appbindir=${ns_appdir}Contents/MacOS/
7396 ns_appresdir=${ns_appdir}Contents/Resources
7397 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7398 elif test -f $GNUSTEP_CONFIG_FILE; then
7399 NS_IMPL_GNUSTEP=yes
7400 ns_appdir=`pwd`/nextstep/Emacs.app/
7401 ns_appbindir=${ns_appdir}
7402 ns_appresdir=${ns_appdir}Resources
7403 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7404 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7405 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7406 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7407 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7408 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7409 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7410 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7411 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7412 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7413 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7414 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7415 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7416 LIB_STANDARD=
7417 START_FILES=
7418 TEMACS_LDFLAGS2=
7420 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7421 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7422 HAVE_NS=yes
7423 else
7424 as_fn_error "\`--with-ns' was specified, but the include
7425 files are missing or cannot be compiled." "$LINENO" 5
7429 NS_HAVE_NSINTEGER=yes
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432 #include <Foundation/NSObjCRuntime.h>
7434 main ()
7436 NSInteger i;
7438 return 0;
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 ns_have_nsinteger=yes
7443 else
7444 ns_have_nsinteger=no
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 if test $ns_have_nsinteger = no; then
7448 NS_HAVE_NSINTEGER=no
7453 ns_frag=/dev/null
7454 NS_OBJ=
7455 NS_SUPPORT=
7456 if test "${HAVE_NS}" = yes; then
7457 window_system=nextstep
7458 with_xft=no
7459 # set up packaging dirs
7460 exec_prefix=${ns_appbindir}
7461 libexecdir=${ns_appbindir}/libexec
7462 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7463 prefix=${ns_appresdir}
7465 ns_frag=$srcdir/src/ns.mk
7466 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7467 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7469 CFLAGS="$tmp_CFLAGS"
7470 CPPFLAGS="$tmp_CPPFLAGS"
7476 case "${window_system}" in
7477 x11 )
7478 HAVE_X_WINDOWS=yes
7479 HAVE_X11=yes
7480 case "${with_x_toolkit}" in
7481 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7482 motif ) USE_X_TOOLKIT=MOTIF ;;
7483 gtk ) with_gtk=yes
7484 USE_X_TOOLKIT=none ;;
7485 no ) USE_X_TOOLKIT=none ;;
7486 * ) USE_X_TOOLKIT=maybe ;;
7487 esac
7489 nextstep | none )
7490 HAVE_X_WINDOWS=no
7491 HAVE_X11=no
7492 USE_X_TOOLKIT=none
7494 esac
7496 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7497 # Extract the first word of "X", so it can be a program name with args.
7498 set dummy X; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 if test -n "$HAVE_XSERVER"; then
7505 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_prog_HAVE_XSERVER="true"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7518 done
7519 done
7520 IFS=$as_save_IFS
7522 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7525 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7526 if test -n "$HAVE_XSERVER"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7528 $as_echo "$HAVE_XSERVER" >&6; }
7529 else
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7535 if test "$HAVE_XSERVER" = true ||
7536 test -n "$DISPLAY" ||
7537 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7538 as_fn_error "You seem to be running X, but no X development libraries
7539 were found. You should install the relevant development files for X
7540 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7541 sure you have development files for image handling, i.e.
7542 tiff, gif, jpeg, png and xpm.
7543 If you are sure you want Emacs compiled without X window support, pass
7544 --without-x
7545 to configure." "$LINENO" 5
7549 ### If we're using X11, we should use the X menu package.
7550 HAVE_MENUS=no
7551 case ${HAVE_X11} in
7552 yes ) HAVE_MENUS=yes ;;
7553 esac
7555 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7556 # Assume not, until told otherwise.
7557 GNU_MALLOC=yes
7558 doug_lea_malloc=yes
7559 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7560 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7562 else
7563 doug_lea_malloc=no
7566 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7567 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7569 else
7570 doug_lea_malloc=no
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7574 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7575 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h. */
7580 extern void (* __after_morecore_hook)();
7582 main ()
7584 __after_morecore_hook = 0
7586 return 0;
7588 _ACEOF
7589 if ac_fn_c_try_link "$LINENO"; then :
7590 emacs_cv_var___after_morecore_hook=yes
7591 else
7592 emacs_cv_var___after_morecore_hook=no
7594 rm -f core conftest.err conftest.$ac_objext \
7595 conftest$ac_exeext conftest.$ac_ext
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7598 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7599 if test $emacs_cv_var___after_morecore_hook = no; then
7600 doug_lea_malloc=no
7603 if test "${system_malloc}" = "yes"; then
7604 GNU_MALLOC=no
7605 GNU_MALLOC_reason="
7606 (The GNU allocators don't work with this system configuration.)"
7607 GMALLOC_OBJ=
7608 VMLIMIT_OBJ=
7609 else
7610 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7611 VMLIMIT_OBJ=vm-limit.o
7616 if test "$doug_lea_malloc" = "yes" ; then
7617 if test "$GNU_MALLOC" = yes ; then
7618 GNU_MALLOC_reason="
7619 (Using Doug Lea's new malloc from the GNU C Library.)"
7622 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7625 ## Use mmap directly for allocating larger buffers.
7626 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7627 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7628 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7629 case "$opsys" in
7630 gnu*) REL_ALLOC=no ;;
7631 esac
7634 if test x"${REL_ALLOC}" = x; then
7635 REL_ALLOC=${GNU_MALLOC}
7642 for ac_header in $ac_header_list
7643 do :
7644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7647 eval as_val=\$$as_ac_Header
7648 if test "x$as_val" = x""yes; then :
7649 cat >>confdefs.h <<_ACEOF
7650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7651 _ACEOF
7655 done
7664 for ac_func in getpagesize
7665 do :
7666 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7667 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7668 cat >>confdefs.h <<_ACEOF
7669 #define HAVE_GETPAGESIZE 1
7670 _ACEOF
7673 done
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7676 $as_echo_n "checking for working mmap... " >&6; }
7677 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 if test "$cross_compiling" = yes; then :
7681 ac_cv_func_mmap_fixed_mapped=no
7682 else
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 $ac_includes_default
7686 /* malloc might have been renamed as rpl_malloc. */
7687 #undef malloc
7689 /* Thanks to Mike Haertel and Jim Avera for this test.
7690 Here is a matrix of mmap possibilities:
7691 mmap private not fixed
7692 mmap private fixed at somewhere currently unmapped
7693 mmap private fixed at somewhere already mapped
7694 mmap shared not fixed
7695 mmap shared fixed at somewhere currently unmapped
7696 mmap shared fixed at somewhere already mapped
7697 For private mappings, we should verify that changes cannot be read()
7698 back from the file, nor mmap's back from the file at a different
7699 address. (There have been systems where private was not correctly
7700 implemented like the infamous i386 svr4.0, and systems where the
7701 VM page cache was not coherent with the file system buffer cache
7702 like early versions of FreeBSD and possibly contemporary NetBSD.)
7703 For shared mappings, we should conversely verify that changes get
7704 propagated back to all the places they're supposed to be.
7706 Grep wants private fixed already mapped.
7707 The main things grep needs to know about mmap are:
7708 * does it exist and is it safe to write into the mmap'd area
7709 * how to use it (BSD variants) */
7711 #include <fcntl.h>
7712 #include <sys/mman.h>
7714 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7715 char *malloc ();
7716 #endif
7718 /* This mess was copied from the GNU getpagesize.h. */
7719 #ifndef HAVE_GETPAGESIZE
7720 # ifdef _SC_PAGESIZE
7721 # define getpagesize() sysconf(_SC_PAGESIZE)
7722 # else /* no _SC_PAGESIZE */
7723 # ifdef HAVE_SYS_PARAM_H
7724 # include <sys/param.h>
7725 # ifdef EXEC_PAGESIZE
7726 # define getpagesize() EXEC_PAGESIZE
7727 # else /* no EXEC_PAGESIZE */
7728 # ifdef NBPG
7729 # define getpagesize() NBPG * CLSIZE
7730 # ifndef CLSIZE
7731 # define CLSIZE 1
7732 # endif /* no CLSIZE */
7733 # else /* no NBPG */
7734 # ifdef NBPC
7735 # define getpagesize() NBPC
7736 # else /* no NBPC */
7737 # ifdef PAGESIZE
7738 # define getpagesize() PAGESIZE
7739 # endif /* PAGESIZE */
7740 # endif /* no NBPC */
7741 # endif /* no NBPG */
7742 # endif /* no EXEC_PAGESIZE */
7743 # else /* no HAVE_SYS_PARAM_H */
7744 # define getpagesize() 8192 /* punt totally */
7745 # endif /* no HAVE_SYS_PARAM_H */
7746 # endif /* no _SC_PAGESIZE */
7748 #endif /* no HAVE_GETPAGESIZE */
7751 main ()
7753 char *data, *data2, *data3;
7754 int i, pagesize;
7755 int fd, fd2;
7757 pagesize = getpagesize ();
7759 /* First, make a file with some known garbage in it. */
7760 data = (char *) malloc (pagesize);
7761 if (!data)
7762 return 1;
7763 for (i = 0; i < pagesize; ++i)
7764 *(data + i) = rand ();
7765 umask (0);
7766 fd = creat ("conftest.mmap", 0600);
7767 if (fd < 0)
7768 return 2;
7769 if (write (fd, data, pagesize) != pagesize)
7770 return 3;
7771 close (fd);
7773 /* Next, check that the tail of a page is zero-filled. File must have
7774 non-zero length, otherwise we risk SIGBUS for entire page. */
7775 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7776 if (fd2 < 0)
7777 return 4;
7778 data2 = "";
7779 if (write (fd2, data2, 1) != 1)
7780 return 5;
7781 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7782 if (data2 == MAP_FAILED)
7783 return 6;
7784 for (i = 0; i < pagesize; ++i)
7785 if (*(data2 + i))
7786 return 7;
7787 close (fd2);
7788 if (munmap (data2, pagesize))
7789 return 8;
7791 /* Next, try to mmap the file at a fixed address which already has
7792 something else allocated at it. If we can, also make sure that
7793 we see the same garbage. */
7794 fd = open ("conftest.mmap", O_RDWR);
7795 if (fd < 0)
7796 return 9;
7797 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7798 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7799 return 10;
7800 for (i = 0; i < pagesize; ++i)
7801 if (*(data + i) != *(data2 + i))
7802 return 11;
7804 /* Finally, make sure that changes to the mapped area do not
7805 percolate back to the file as seen by read(). (This is a bug on
7806 some variants of i386 svr4.0.) */
7807 for (i = 0; i < pagesize; ++i)
7808 *(data2 + i) = *(data2 + i) + 1;
7809 data3 = (char *) malloc (pagesize);
7810 if (!data3)
7811 return 12;
7812 if (read (fd, data3, pagesize) != pagesize)
7813 return 13;
7814 for (i = 0; i < pagesize; ++i)
7815 if (*(data + i) != *(data3 + i))
7816 return 14;
7817 close (fd);
7818 return 0;
7820 _ACEOF
7821 if ac_fn_c_try_run "$LINENO"; then :
7822 ac_cv_func_mmap_fixed_mapped=yes
7823 else
7824 ac_cv_func_mmap_fixed_mapped=no
7826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7827 conftest.$ac_objext conftest.beam conftest.$ac_ext
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7832 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7833 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7835 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7838 rm -f conftest.mmap conftest.txt
7840 if test $use_mmap_for_buffers = yes; then
7841 REL_ALLOC=no
7844 LIBS="$LIBS_SYSTEM $LIBS"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7847 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7848 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 ac_check_lib_save_LIBS=$LIBS
7852 LIBS="-ldnet $LIBS"
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7856 /* Override any GCC internal prototype to avoid an error.
7857 Use char because int might match the return type of a GCC
7858 builtin and then its argument prototype would still apply. */
7859 #ifdef __cplusplus
7860 extern "C"
7861 #endif
7862 char dnet_ntoa ();
7864 main ()
7866 return dnet_ntoa ();
7868 return 0;
7870 _ACEOF
7871 if ac_fn_c_try_link "$LINENO"; then :
7872 ac_cv_lib_dnet_dnet_ntoa=yes
7873 else
7874 ac_cv_lib_dnet_dnet_ntoa=no
7876 rm -f core conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7878 LIBS=$ac_check_lib_save_LIBS
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7881 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7882 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7883 cat >>confdefs.h <<_ACEOF
7884 #define HAVE_LIBDNET 1
7885 _ACEOF
7887 LIBS="-ldnet $LIBS"
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7893 $as_echo_n "checking for main in -lXbsd... " >&6; }
7894 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 ac_check_lib_save_LIBS=$LIBS
7898 LIBS="-lXbsd $LIBS"
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7904 main ()
7906 return main ();
7908 return 0;
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"; then :
7912 ac_cv_lib_Xbsd_main=yes
7913 else
7914 ac_cv_lib_Xbsd_main=no
7916 rm -f core conftest.err conftest.$ac_objext \
7917 conftest$ac_exeext conftest.$ac_ext
7918 LIBS=$ac_check_lib_save_LIBS
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7921 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7922 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7923 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7928 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7929 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 ac_check_lib_save_LIBS=$LIBS
7933 LIBS="-lpthreads $LIBS"
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7937 /* Override any GCC internal prototype to avoid an error.
7938 Use char because int might match the return type of a GCC
7939 builtin and then its argument prototype would still apply. */
7940 #ifdef __cplusplus
7941 extern "C"
7942 #endif
7943 char cma_open ();
7945 main ()
7947 return cma_open ();
7949 return 0;
7951 _ACEOF
7952 if ac_fn_c_try_link "$LINENO"; then :
7953 ac_cv_lib_pthreads_cma_open=yes
7954 else
7955 ac_cv_lib_pthreads_cma_open=no
7957 rm -f core conftest.err conftest.$ac_objext \
7958 conftest$ac_exeext conftest.$ac_ext
7959 LIBS=$ac_check_lib_save_LIBS
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7962 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7963 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7964 cat >>confdefs.h <<_ACEOF
7965 #define HAVE_LIBPTHREADS 1
7966 _ACEOF
7968 LIBS="-lpthreads $LIBS"
7973 ## Note: when using cpp in s/aix4.2.h, this definition depended on
7974 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
7975 ## the system file was sourced. Hence the value of LIBS_SYSTEM
7976 ## added to LIBS in configure would never contain the pthreads part,
7977 ## but the value used in Makefiles might. FIXME?
7979 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
7980 ## be harmless on older versions of X where it happens to exist.
7981 test "$opsys" = "aix4-2" && \
7982 test $ac_cv_lib_pthreads_cma_open = yes && \
7983 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
7986 case ${host_os} in
7987 aix*)
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
7989 $as_echo_n "checking for -bbigtoc option... " >&6; }
7990 if test "${gdb_cv_bigtoc+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7994 case $GCC in
7995 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7996 *) gdb_cv_bigtoc=-bbigtoc ;;
7997 esac
7999 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8004 main ()
8006 int i;
8008 return 0;
8010 _ACEOF
8011 if ac_fn_c_try_link "$LINENO"; then :
8013 else
8014 gdb_cv_bigtoc=
8016 rm -f core conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8021 $as_echo "$gdb_cv_bigtoc" >&6; }
8023 esac
8025 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8026 # used for the tests that follow. We set them back to REAL_CFLAGS and
8027 # REAL_CPPFLAGS later on.
8029 REAL_CPPFLAGS="$CPPFLAGS"
8031 if test "${HAVE_X11}" = "yes"; then
8032 DEFS="$C_SWITCH_X_SITE $DEFS"
8033 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8034 LIBS="$LIBX $LIBS"
8035 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8036 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8038 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8039 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8040 # but it's more convenient here to set LD_RUN_PATH
8041 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8042 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8043 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8044 export LD_RUN_PATH
8047 if test "${opsys}" = "gnu-linux"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8049 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8054 main ()
8056 XOpenDisplay ("foo");
8058 return 0;
8060 _ACEOF
8061 if ac_fn_c_try_link "$LINENO"; then :
8062 xlinux_first_failure=no
8063 else
8064 xlinux_first_failure=yes
8066 rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 if test "${xlinux_first_failure}" = "yes"; then
8069 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8070 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8071 OLD_CPPFLAGS="$CPPFLAGS"
8072 OLD_LIBS="$LIBS"
8073 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8074 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8075 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8076 LIBS="$LIBS -b i486-linuxaout"
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8081 main ()
8083 XOpenDisplay ("foo");
8085 return 0;
8087 _ACEOF
8088 if ac_fn_c_try_link "$LINENO"; then :
8089 xlinux_second_failure=no
8090 else
8091 xlinux_second_failure=yes
8093 rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 if test "${xlinux_second_failure}" = "yes"; then
8096 # If we get the same failure with -b, there is no use adding -b.
8097 # So take it out. This plays safe.
8098 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8099 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8100 CPPFLAGS="$OLD_CPPFLAGS"
8101 LIBS="$OLD_LIBS"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8106 $as_echo "yes" >&6; }
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8114 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8115 # header files included from there.
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8117 $as_echo_n "checking for Xkb... " >&6; }
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #include <X11/Xlib.h>
8121 #include <X11/XKBlib.h>
8123 main ()
8125 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8127 return 0;
8129 _ACEOF
8130 if ac_fn_c_try_link "$LINENO"; then :
8131 emacs_xkb=yes
8132 else
8133 emacs_xkb=no
8135 rm -f core conftest.err conftest.$ac_objext \
8136 conftest$ac_exeext conftest.$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8138 $as_echo "$emacs_xkb" >&6; }
8139 if test $emacs_xkb = yes; then
8141 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8145 for ac_func in XrmSetDatabase XScreenResourceString \
8146 XScreenNumberOfScreen XSetWMProtocols
8147 do :
8148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8150 eval as_val=\$$as_ac_var
8151 if test "x$as_val" = x""yes; then :
8152 cat >>confdefs.h <<_ACEOF
8153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8154 _ACEOF
8157 done
8161 if test "${window_system}" = "x11"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8163 $as_echo_n "checking X11 version 6... " >&6; }
8164 if test "${emacs_cv_x11_version_6+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 #include <X11/Xlib.h>
8171 main ()
8173 #if XlibSpecificationRelease < 6
8174 fail;
8175 #endif
8178 return 0;
8180 _ACEOF
8181 if ac_fn_c_try_link "$LINENO"; then :
8182 emacs_cv_x11_version_6=yes
8183 else
8184 emacs_cv_x11_version_6=no
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8190 if test $emacs_cv_x11_version_6 = yes; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8192 $as_echo "6 or newer" >&6; }
8194 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8198 $as_echo "before 6" >&6; }
8203 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8204 HAVE_RSVG=no
8205 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8206 if test "${with_rsvg}" != "no"; then
8207 RSVG_REQUIRED=2.11.0
8208 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8211 succeeded=no
8213 # Extract the first word of "pkg-config", so it can be a program name with args.
8214 set dummy pkg-config; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 case $PKG_CONFIG in
8221 [\\/]* | ?:[\\/]*)
8222 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8242 esac
8244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8245 if test -n "$PKG_CONFIG"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8247 $as_echo "$PKG_CONFIG" >&6; }
8248 else
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8255 if test "$PKG_CONFIG" = "no" ; then
8257 else
8258 PKG_CONFIG_MIN_VERSION=0.9.0
8259 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8261 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8263 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8265 $as_echo "yes" >&6; }
8266 succeeded=yes
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8269 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8270 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8272 $as_echo "$RSVG_CFLAGS" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8275 $as_echo_n "checking RSVG_LIBS... " >&6; }
8276 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8278 $as_echo "$RSVG_LIBS" >&6; }
8279 else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8282 RSVG_CFLAGS=""
8283 RSVG_LIBS=""
8284 ## If we have a custom action on failure, don't print errors, but
8285 ## do set a variable so people can do so.
8286 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8292 else
8293 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8294 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8298 if test $succeeded = yes; then
8300 else
8307 if test ".${RSVG_CFLAGS}" != "."; then
8308 HAVE_RSVG=yes
8310 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8312 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8313 LIBS="$RSVG_LIBS $LIBS"
8319 HAVE_GTK=no
8320 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8321 GLIB_REQUIRED=2.6
8322 GTK_REQUIRED=2.6
8323 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8326 succeeded=no
8328 # Extract the first word of "pkg-config", so it can be a program name with args.
8329 set dummy pkg-config; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 case $PKG_CONFIG in
8336 [\\/]* | ?:[\\/]*)
8337 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341 for as_dir in $PATH
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 break 2
8351 done
8352 done
8353 IFS=$as_save_IFS
8355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8357 esac
8359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8360 if test -n "$PKG_CONFIG"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8362 $as_echo "$PKG_CONFIG" >&6; }
8363 else
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8370 if test "$PKG_CONFIG" = "no" ; then
8371 pkg_check_gtk=no
8372 else
8373 PKG_CONFIG_MIN_VERSION=0.9.0
8374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8376 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8378 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8380 $as_echo "yes" >&6; }
8381 succeeded=yes
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8384 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8385 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8387 $as_echo "$GTK_CFLAGS" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8390 $as_echo_n "checking GTK_LIBS... " >&6; }
8391 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8393 $as_echo "$GTK_LIBS" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396 $as_echo "no" >&6; }
8397 GTK_CFLAGS=""
8398 GTK_LIBS=""
8399 ## If we have a custom action on failure, don't print errors, but
8400 ## do set a variable so people can do so.
8401 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8407 else
8408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8413 if test $succeeded = yes; then
8414 pkg_check_gtk=yes
8415 else
8416 pkg_check_gtk=no
8419 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8420 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8425 GTK_OBJ=
8426 if test x"$pkg_check_gtk" = xyes; then
8430 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8431 CFLAGS="$CFLAGS $GTK_CFLAGS"
8432 LIBS="$GTK_LIBS $LIBS"
8433 GTK_COMPILES=no
8434 for ac_func in gtk_main
8435 do :
8436 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8437 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_GTK_MAIN 1
8440 _ACEOF
8441 GTK_COMPILES=yes
8443 done
8445 if test "${GTK_COMPILES}" != "yes"; then
8446 if test "$USE_X_TOOLKIT" != "maybe"; then
8447 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8449 else
8450 HAVE_GTK=yes
8452 $as_echo "#define USE_GTK 1" >>confdefs.h
8454 GTK_OBJ=gtkutil.o
8455 USE_X_TOOLKIT=none
8456 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8460 closing open displays. This is no problem if you just use
8461 one display, but if you use more than one and close one of them
8462 Emacs may crash." >&5
8463 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8464 closing open displays. This is no problem if you just use
8465 one display, but if you use more than one and close one of them
8466 Emacs may crash." >&2;}
8467 sleep 3
8475 if test "${HAVE_GTK}" = "yes"; then
8477 if test "$with_toolkit_scroll_bars" != no; then
8478 with_toolkit_scroll_bars=yes
8481 HAVE_GTK_MULTIDISPLAY=no
8482 for ac_func in gdk_display_open
8483 do :
8484 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8485 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8486 cat >>confdefs.h <<_ACEOF
8487 #define HAVE_GDK_DISPLAY_OPEN 1
8488 _ACEOF
8489 HAVE_GTK_MULTIDISPLAY=yes
8491 done
8493 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8495 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8499 HAVE_GTK_FILE_SELECTION=no
8500 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8501 #include <gtk/gtk.h>
8503 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8504 HAVE_GTK_FILE_SELECTION=yes
8505 else
8506 HAVE_GTK_FILE_SELECTION=no
8509 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8510 for ac_func in gtk_file_selection_new
8511 do :
8512 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8513 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8514 cat >>confdefs.h <<_ACEOF
8515 #define HAVE_GTK_FILE_SELECTION_NEW 1
8516 _ACEOF
8517 HAVE_GTK_FILE_SELECTION=yes
8518 else
8519 HAVE_GTK_FILE_SELECTION=no
8521 done
8525 HAVE_GTK_FILE_CHOOSER=no
8526 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8527 #include <gtk/gtk.h>
8529 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8530 HAVE_GTK_FILE_CHOOSER=yes
8531 else
8532 HAVE_GTK_FILE_CHOOSER=no
8535 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8536 for ac_func in gtk_file_chooser_dialog_new
8537 do :
8538 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8539 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8540 cat >>confdefs.h <<_ACEOF
8541 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8542 _ACEOF
8543 HAVE_GTK_FILE_CHOOSER=yes
8544 else
8545 HAVE_GTK_FILE_CHOOSER=no
8547 done
8551 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8552 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8554 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8558 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8559 HAVE_GTK_AND_PTHREAD=no
8560 for ac_header in pthread.h
8561 do :
8562 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8563 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_PTHREAD_H 1
8566 _ACEOF
8570 done
8572 if test "$ac_cv_header_pthread_h"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8574 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8575 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lpthread $LIBS"
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8583 /* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 char pthread_self ();
8591 main ()
8593 return pthread_self ();
8595 return 0;
8597 _ACEOF
8598 if ac_fn_c_try_link "$LINENO"; then :
8599 ac_cv_lib_pthread_pthread_self=yes
8600 else
8601 ac_cv_lib_pthread_pthread_self=no
8603 rm -f core conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 LIBS=$ac_check_lib_save_LIBS
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8608 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8609 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8610 HAVE_GTK_AND_PTHREAD=yes
8614 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8615 case "${canonical}" in
8616 *-hpux*) ;;
8617 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8618 esac
8620 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8626 HAVE_DBUS=no
8627 DBUS_OBJ=
8628 if test "${with_dbus}" = "yes"; then
8630 succeeded=no
8632 # Extract the first word of "pkg-config", so it can be a program name with args.
8633 set dummy pkg-config; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 case $PKG_CONFIG in
8640 [\\/]* | ?:[\\/]*)
8641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8655 done
8656 done
8657 IFS=$as_save_IFS
8659 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8661 esac
8663 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8664 if test -n "$PKG_CONFIG"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8666 $as_echo "$PKG_CONFIG" >&6; }
8667 else
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8674 if test "$PKG_CONFIG" = "no" ; then
8675 HAVE_DBUS=no
8676 else
8677 PKG_CONFIG_MIN_VERSION=0.9.0
8678 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8680 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8682 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8684 $as_echo "yes" >&6; }
8685 succeeded=yes
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8688 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8689 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8691 $as_echo "$DBUS_CFLAGS" >&6; }
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8694 $as_echo_n "checking DBUS_LIBS... " >&6; }
8695 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8697 $as_echo "$DBUS_LIBS" >&6; }
8698 else
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8701 DBUS_CFLAGS=""
8702 DBUS_LIBS=""
8703 ## If we have a custom action on failure, don't print errors, but
8704 ## do set a variable so people can do so.
8705 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8711 else
8712 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8713 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8717 if test $succeeded = yes; then
8718 HAVE_DBUS=yes
8719 else
8720 HAVE_DBUS=no
8723 if test "$HAVE_DBUS" = yes; then
8724 LIBS="$LIBS $DBUS_LIBS"
8726 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8728 for ac_func in dbus_watch_get_unix_fd
8729 do :
8730 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8731 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8734 _ACEOF
8737 done
8739 DBUS_OBJ=dbusbind.o
8744 HAVE_GCONF=no
8745 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8747 succeeded=no
8749 # Extract the first word of "pkg-config", so it can be a program name with args.
8750 set dummy pkg-config; ac_word=$2
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752 $as_echo_n "checking for $ac_word... " >&6; }
8753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8754 $as_echo_n "(cached) " >&6
8755 else
8756 case $PKG_CONFIG in
8757 [\\/]* | ?:[\\/]*)
8758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8770 break 2
8772 done
8773 done
8774 IFS=$as_save_IFS
8776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8778 esac
8780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8781 if test -n "$PKG_CONFIG"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8783 $as_echo "$PKG_CONFIG" >&6; }
8784 else
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786 $as_echo "no" >&6; }
8791 if test "$PKG_CONFIG" = "no" ; then
8792 HAVE_GCONF=no
8793 else
8794 PKG_CONFIG_MIN_VERSION=0.9.0
8795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8797 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8799 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8802 succeeded=yes
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8805 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8806 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8808 $as_echo "$GCONF_CFLAGS" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8811 $as_echo_n "checking GCONF_LIBS... " >&6; }
8812 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8814 $as_echo "$GCONF_LIBS" >&6; }
8815 else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8818 GCONF_CFLAGS=""
8819 GCONF_LIBS=""
8820 ## If we have a custom action on failure, don't print errors, but
8821 ## do set a variable so people can do so.
8822 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8828 else
8829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8834 if test $succeeded = yes; then
8835 HAVE_GCONF=yes
8836 else
8837 HAVE_GCONF=no
8840 if test "$HAVE_GCONF" = yes; then
8842 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8847 HAVE_LIBSELINUX=no
8848 LIBSELINUX_LIBS=
8849 if test "${with_selinux}" = "yes"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8851 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8852 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lselinux $LIBS"
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8860 /* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 char lgetfilecon ();
8868 main ()
8870 return lgetfilecon ();
8872 return 0;
8874 _ACEOF
8875 if ac_fn_c_try_link "$LINENO"; then :
8876 ac_cv_lib_selinux_lgetfilecon=yes
8877 else
8878 ac_cv_lib_selinux_lgetfilecon=no
8880 rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882 LIBS=$ac_check_lib_save_LIBS
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8885 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8886 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
8887 HAVE_LIBSELINUX=yes
8888 else
8889 HAVE_LIBSELINUX=no
8892 if test "$HAVE_LIBSELINUX" = yes; then
8894 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
8896 LIBSELINUX_LIBS=-lselinux
8901 HAVE_XAW3D=no
8902 LUCID_LIBW=
8903 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8904 if test "$with_xaw3d" != no; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
8906 $as_echo_n "checking for xaw3d... " >&6; }
8907 if test "${emacs_cv_xaw3d+set}" = set; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8913 #include <X11/Intrinsic.h>
8914 #include <X11/Xaw3d/Simple.h>
8916 main ()
8920 return 0;
8922 _ACEOF
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 emacs_cv_xaw3d=yes
8925 else
8926 emacs_cv_xaw3d=no
8928 rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
8932 else
8933 emacs_cv_xaw3d=no
8935 if test $emacs_cv_xaw3d = yes; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8937 $as_echo "yes; using Lucid toolkit" >&6; }
8938 USE_X_TOOLKIT=LUCID
8939 HAVE_XAW3D=yes
8940 LUCID_LIBW=-lXaw3d
8942 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
8944 else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
8948 $as_echo_n "checking for libXaw... " >&6; }
8949 if test "${emacs_cv_xaw+set}" = set; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8955 #include <X11/Intrinsic.h>
8956 #include <X11/Xaw/Simple.h>
8958 main ()
8962 return 0;
8964 _ACEOF
8965 if ac_fn_c_try_link "$LINENO"; then :
8966 emacs_cv_xaw=yes
8967 else
8968 emacs_cv_xaw=no
8970 rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8974 if test $emacs_cv_xaw = yes; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
8976 $as_echo "yes; using Lucid toolkit" >&6; }
8977 USE_X_TOOLKIT=LUCID
8978 LUCID_LIBW=-lXaw
8979 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8980 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
8981 else
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
8983 $as_echo "no; do not use toolkit by default" >&6; }
8984 USE_X_TOOLKIT=none
8989 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8991 LIBXTR6=
8992 if test "${USE_X_TOOLKIT}" != "none"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
8994 $as_echo_n "checking X11 toolkit version... " >&6; }
8995 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000 #include <X11/Intrinsic.h>
9002 main ()
9004 #if XtSpecificationRelease < 6
9005 fail;
9006 #endif
9009 return 0;
9011 _ACEOF
9012 if ac_fn_c_try_link "$LINENO"; then :
9013 emacs_cv_x11_toolkit_version_6=yes
9014 else
9015 emacs_cv_x11_toolkit_version_6=no
9017 rm -f core conftest.err conftest.$ac_objext \
9018 conftest$ac_exeext conftest.$ac_ext
9021 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9022 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9024 $as_echo "6 or newer" >&6; }
9026 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9028 LIBXTR6="-lSM -lICE"
9029 case "$opsys" in
9030 ## Use libw.a along with X11R6 Xt.
9031 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9032 esac
9033 else
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9035 $as_echo "before 6" >&6; }
9038 OLDLIBS="$LIBS"
9039 if test x$HAVE_X11XTR6 = xyes; then
9040 LIBS="-lXt -lSM -lICE $LIBS"
9041 else
9042 LIBS="-lXt $LIBS"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9045 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9046 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 ac_check_lib_save_LIBS=$LIBS
9050 LIBS="-lXmu $LIBS"
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9054 /* Override any GCC internal prototype to avoid an error.
9055 Use char because int might match the return type of a GCC
9056 builtin and then its argument prototype would still apply. */
9057 #ifdef __cplusplus
9058 extern "C"
9059 #endif
9060 char XmuConvertStandardSelection ();
9062 main ()
9064 return XmuConvertStandardSelection ();
9066 return 0;
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"; then :
9070 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9071 else
9072 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9074 rm -f core conftest.err conftest.$ac_objext \
9075 conftest$ac_exeext conftest.$ac_ext
9076 LIBS=$ac_check_lib_save_LIBS
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9079 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9080 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9081 cat >>confdefs.h <<_ACEOF
9082 #define HAVE_LIBXMU 1
9083 _ACEOF
9085 LIBS="-lXmu $LIBS"
9089 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9093 LIBXMU=-lXmu
9094 case "$machine" in
9095 ## These machines don't supply Xmu.
9096 hpux* | aix4-2 )
9097 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9099 esac
9102 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9103 if test "${HAVE_X11}" = "yes"; then
9104 if test "${USE_X_TOOLKIT}" != "none"; then
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9106 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9107 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 ac_check_lib_save_LIBS=$LIBS
9111 LIBS="-lXext $LIBS"
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9115 /* Override any GCC internal prototype to avoid an error.
9116 Use char because int might match the return type of a GCC
9117 builtin and then its argument prototype would still apply. */
9118 #ifdef __cplusplus
9119 extern "C"
9120 #endif
9121 char XShapeQueryExtension ();
9123 main ()
9125 return XShapeQueryExtension ();
9127 return 0;
9129 _ACEOF
9130 if ac_fn_c_try_link "$LINENO"; then :
9131 ac_cv_lib_Xext_XShapeQueryExtension=yes
9132 else
9133 ac_cv_lib_Xext_XShapeQueryExtension=no
9135 rm -f core conftest.err conftest.$ac_objext \
9136 conftest$ac_exeext conftest.$ac_ext
9137 LIBS=$ac_check_lib_save_LIBS
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9140 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9141 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9142 cat >>confdefs.h <<_ACEOF
9143 #define HAVE_LIBXEXT 1
9144 _ACEOF
9146 LIBS="-lXext $LIBS"
9153 LIBXP=
9154 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9156 $as_echo_n "checking for Motif version 2.1... " >&6; }
9157 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9162 #include <Xm/Xm.h>
9164 main ()
9166 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9167 int x = 5;
9168 #else
9169 Motif version prior to 2.1.
9170 #endif
9172 return 0;
9174 _ACEOF
9175 if ac_fn_c_try_compile "$LINENO"; then :
9176 emacs_cv_motif_version_2_1=yes
9177 else
9178 emacs_cv_motif_version_2_1=no
9180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9183 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9184 if test $emacs_cv_motif_version_2_1 = yes; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9186 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9187 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 ac_check_lib_save_LIBS=$LIBS
9191 LIBS="-lXp $LIBS"
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9198 #ifdef __cplusplus
9199 extern "C"
9200 #endif
9201 char XpCreateContext ();
9203 main ()
9205 return XpCreateContext ();
9207 return 0;
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211 ac_cv_lib_Xp_XpCreateContext=yes
9212 else
9213 ac_cv_lib_Xp_XpCreateContext=no
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_lib_save_LIBS
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9220 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9221 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9222 LIBXP=-lXp
9225 else
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9227 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9228 if test "${emacs_cv_lesstif+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230 else
9231 # We put this in CFLAGS temporarily to precede other -I options
9232 # that might be in CFLAGS temporarily.
9233 # We put this in CPPFLAGS where it precedes the other -I options.
9234 OLD_CPPFLAGS=$CPPFLAGS
9235 OLD_CFLAGS=$CFLAGS
9236 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9237 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9242 main ()
9244 int x = 5;
9246 return 0;
9248 _ACEOF
9249 if ac_fn_c_try_compile "$LINENO"; then :
9250 emacs_cv_lesstif=yes
9251 else
9252 emacs_cv_lesstif=no
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9257 $as_echo "$emacs_cv_lesstif" >&6; }
9258 if test $emacs_cv_lesstif = yes; then
9259 # Make sure this -I option remains in CPPFLAGS after it is set
9260 # back to REAL_CPPFLAGS.
9261 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9262 # have those other -I options anyway. Ultimately, having this
9263 # directory ultimately in CPPFLAGS will be enough.
9264 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9265 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9266 else
9267 CFLAGS=$OLD_CFLAGS
9268 CPPFLAGS=$OLD_CPPFLAGS
9274 USE_TOOLKIT_SCROLL_BARS=no
9275 if test "${with_toolkit_scroll_bars}" != "no"; then
9276 if test "${USE_X_TOOLKIT}" != "none"; then
9277 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9278 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9280 HAVE_XAW3D=no
9281 USE_TOOLKIT_SCROLL_BARS=yes
9282 elif test "${HAVE_XAW3D}" = "yes"; then
9283 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9285 USE_TOOLKIT_SCROLL_BARS=yes
9287 elif test "${HAVE_GTK}" = "yes"; then
9288 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9290 USE_TOOLKIT_SCROLL_BARS=yes
9291 elif test "${HAVE_NS}" = "yes"; then
9292 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9294 USE_TOOLKIT_SCROLL_BARS=yes
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9301 #include <X11/Xlib.h>
9302 #include <X11/Xresource.h>
9304 main ()
9306 XIMProc callback;
9308 return 0;
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"; then :
9312 HAVE_XIM=yes
9314 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9316 else
9317 HAVE_XIM=no
9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 if test "${with_xim}" != "no"; then
9324 $as_echo "#define USE_XIM 1" >>confdefs.h
9329 if test "${HAVE_XIM}" != "no"; then
9330 late_CFLAGS=$CFLAGS
9331 if test "$GCC" = yes; then
9332 CFLAGS="$CFLAGS --pedantic-errors"
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9337 #include <X11/Xlib.h>
9338 #include <X11/Xresource.h>
9340 main ()
9342 Display *display;
9343 XrmDatabase db;
9344 char *res_name;
9345 char *res_class;
9346 XIMProc callback;
9347 XPointer *client_data;
9348 #ifndef __GNUC__
9349 /* If we're not using GCC, it's probably not XFree86, and this is
9350 probably right, but we can't use something like --pedantic-errors. */
9351 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9352 char*, XIMProc, XPointer*);
9353 #endif
9354 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9355 client_data);
9357 return 0;
9359 _ACEOF
9360 if ac_fn_c_try_compile "$LINENO"; then :
9361 emacs_cv_arg6_star=yes
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 if test "$emacs_cv_arg6_star" = yes; then
9365 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9367 else
9368 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9371 CFLAGS=$late_CFLAGS
9374 ### Start of font-backend (under any platform) section.
9375 # (nothing here yet -- this is a placeholder)
9376 ### End of font-backend (under any platform) section.
9378 ### Start of font-backend (under X11) section.
9379 if test "${HAVE_X11}" = "yes"; then
9381 succeeded=no
9383 # Extract the first word of "pkg-config", so it can be a program name with args.
9384 set dummy pkg-config; ac_word=$2
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386 $as_echo_n "checking for $ac_word... " >&6; }
9387 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 case $PKG_CONFIG in
9391 [\\/]* | ?:[\\/]*)
9392 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396 for as_dir in $PATH
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9402 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9404 break 2
9406 done
9407 done
9408 IFS=$as_save_IFS
9410 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9412 esac
9414 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9415 if test -n "$PKG_CONFIG"; then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9417 $as_echo "$PKG_CONFIG" >&6; }
9418 else
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9425 if test "$PKG_CONFIG" = "no" ; then
9426 HAVE_FC=no
9427 else
9428 PKG_CONFIG_MIN_VERSION=0.9.0
9429 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9431 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9433 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9435 $as_echo "yes" >&6; }
9436 succeeded=yes
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9439 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9440 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9442 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9445 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9446 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9448 $as_echo "$FONTCONFIG_LIBS" >&6; }
9449 else
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9452 FONTCONFIG_CFLAGS=""
9453 FONTCONFIG_LIBS=""
9454 ## If we have a custom action on failure, don't print errors, but
9455 ## do set a variable so people can do so.
9456 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9462 else
9463 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9464 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9468 if test $succeeded = yes; then
9469 HAVE_FC=yes
9470 else
9471 HAVE_FC=no
9475 ## Use -lXft if available, unless `--with-xft=no'.
9476 HAVE_XFT=maybe
9477 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9478 with_xft="no";
9480 if test "x${with_xft}" != "xno"; then
9483 succeeded=no
9485 # Extract the first word of "pkg-config", so it can be a program name with args.
9486 set dummy pkg-config; ac_word=$2
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488 $as_echo_n "checking for $ac_word... " >&6; }
9489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 case $PKG_CONFIG in
9493 [\\/]* | ?:[\\/]*)
9494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498 for as_dir in $PATH
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 break 2
9508 done
9509 done
9510 IFS=$as_save_IFS
9512 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9514 esac
9516 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9517 if test -n "$PKG_CONFIG"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9519 $as_echo "$PKG_CONFIG" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9527 if test "$PKG_CONFIG" = "no" ; then
9528 HAVE_XFT=no
9529 else
9530 PKG_CONFIG_MIN_VERSION=0.9.0
9531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9533 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9535 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9537 $as_echo "yes" >&6; }
9538 succeeded=yes
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9541 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9542 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9544 $as_echo "$XFT_CFLAGS" >&6; }
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9547 $as_echo_n "checking XFT_LIBS... " >&6; }
9548 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9550 $as_echo "$XFT_LIBS" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 XFT_CFLAGS=""
9555 XFT_LIBS=""
9556 ## If we have a custom action on failure, don't print errors, but
9557 ## do set a variable so people can do so.
9558 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9564 else
9565 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9566 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9570 if test $succeeded = yes; then
9572 else
9573 HAVE_XFT=no
9576 ## Because xftfont.c uses XRenderQueryExtension, we also
9577 ## need to link to -lXrender.
9578 HAVE_XRENDER=no
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9580 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9581 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 ac_check_lib_save_LIBS=$LIBS
9585 LIBS="-lXrender $LIBS"
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9589 /* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 char XRenderQueryExtension ();
9597 main ()
9599 return XRenderQueryExtension ();
9601 return 0;
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9606 else
9607 ac_cv_lib_Xrender_XRenderQueryExtension=no
9609 rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611 LIBS=$ac_check_lib_save_LIBS
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9614 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9615 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9616 HAVE_XRENDER=yes
9619 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9620 OLD_CPPFLAGS="$CPPFLAGS"
9621 OLD_CFLAGS="$CFLAGS"
9622 OLD_LIBS="$LIBS"
9623 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9624 CFLAGS="$CFLAGS $XFT_CFLAGS"
9625 XFT_LIBS="-lXrender $XFT_LIBS"
9626 LIBS="$XFT_LIBS $LIBS"
9627 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9628 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9630 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9631 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9633 else
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-lXft $XFT_LIBS $LIBS"
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 char XftFontOpen ();
9647 main ()
9649 return XftFontOpen ();
9651 return 0;
9653 _ACEOF
9654 if ac_fn_c_try_link "$LINENO"; then :
9655 ac_cv_lib_Xft_XftFontOpen=yes
9656 else
9657 ac_cv_lib_Xft_XftFontOpen=no
9659 rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 LIBS=$ac_check_lib_save_LIBS
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9664 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9665 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9666 HAVE_XFT=yes
9673 if test "${HAVE_XFT}" = "yes"; then
9675 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9678 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9679 else
9680 CPPFLAGS="$OLD_CPPFLAGS"
9681 CFLAGS="$OLD_CFLAGS"
9682 LIBS="$OLD_LIBS"
9683 fi # "${HAVE_XFT}" = "yes"
9684 fi # "$HAVE_XFT" != no
9685 fi # "x${with_xft}" != "xno"
9687 if test "$HAVE_XFT" != "yes"; then
9688 HAVE_XFT=no
9692 HAVE_FREETYPE=no
9693 ## We used to allow building with FreeType and without Xft.
9694 ## However, the ftx font backend driver is not in good shape.
9695 if test "${HAVE_XFT}" = "yes"; then
9696 HAVE_FREETYPE=yes
9697 FONTCONFIG_CFLAGS=
9698 FONTCONFIG_LIBS=
9701 HAVE_LIBOTF=no
9702 if test "${HAVE_FREETYPE}" = "yes"; then
9704 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9706 if test "${with_libotf}" != "no"; then
9708 succeeded=no
9710 # Extract the first word of "pkg-config", so it can be a program name with args.
9711 set dummy pkg-config; ac_word=$2
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9713 $as_echo_n "checking for $ac_word... " >&6; }
9714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 case $PKG_CONFIG in
9718 [\\/]* | ?:[\\/]*)
9719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 break 2
9733 done
9734 done
9735 IFS=$as_save_IFS
9737 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9739 esac
9741 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9742 if test -n "$PKG_CONFIG"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9744 $as_echo "$PKG_CONFIG" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9752 if test "$PKG_CONFIG" = "no" ; then
9753 HAVE_LIBOTF=no
9754 else
9755 PKG_CONFIG_MIN_VERSION=0.9.0
9756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9758 $as_echo_n "checking for libotf... " >&6; }
9760 if $PKG_CONFIG --exists "libotf" 2>&5; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9762 $as_echo "yes" >&6; }
9763 succeeded=yes
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9766 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9767 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9769 $as_echo "$LIBOTF_CFLAGS" >&6; }
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9772 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9773 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9775 $as_echo "$LIBOTF_LIBS" >&6; }
9776 else
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778 $as_echo "no" >&6; }
9779 LIBOTF_CFLAGS=""
9780 LIBOTF_LIBS=""
9781 ## If we have a custom action on failure, don't print errors, but
9782 ## do set a variable so people can do so.
9783 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9789 else
9790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9795 if test $succeeded = yes; then
9796 HAVE_LIBOTF=yes
9797 else
9798 HAVE_LIBOTF=no
9801 if test "$HAVE_LIBOTF" = "yes"; then
9803 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9806 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9807 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9808 $as_echo_n "(cached) " >&6
9809 else
9810 ac_check_lib_save_LIBS=$LIBS
9811 LIBS="-lotf $LIBS"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 char OTF_get_variation_glyphs ();
9823 main ()
9825 return OTF_get_variation_glyphs ();
9827 return 0;
9829 _ACEOF
9830 if ac_fn_c_try_link "$LINENO"; then :
9831 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9832 else
9833 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9835 rm -f core conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_check_lib_save_LIBS
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9840 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9841 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9842 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9843 else
9844 HAVE_OTF_GET_VARIATION_GLYPHS=no
9847 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9849 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9856 HAVE_M17N_FLT=no
9857 if test "${HAVE_LIBOTF}" = yes; then
9858 if test "${with_m17n_flt}" != "no"; then
9860 succeeded=no
9862 # Extract the first word of "pkg-config", so it can be a program name with args.
9863 set dummy pkg-config; ac_word=$2
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9865 $as_echo_n "checking for $ac_word... " >&6; }
9866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 case $PKG_CONFIG in
9870 [\\/]* | ?:[\\/]*)
9871 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 for as_dir in $PATH
9877 IFS=$as_save_IFS
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9883 break 2
9885 done
9886 done
9887 IFS=$as_save_IFS
9889 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9891 esac
9893 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9894 if test -n "$PKG_CONFIG"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9896 $as_echo "$PKG_CONFIG" >&6; }
9897 else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9904 if test "$PKG_CONFIG" = "no" ; then
9905 HAVE_M17N_FLT=no
9906 else
9907 PKG_CONFIG_MIN_VERSION=0.9.0
9908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
9910 $as_echo_n "checking for m17n-flt... " >&6; }
9912 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9914 $as_echo "yes" >&6; }
9915 succeeded=yes
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
9918 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9919 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
9921 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
9924 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9925 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
9927 $as_echo "$M17N_FLT_LIBS" >&6; }
9928 else
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9931 M17N_FLT_CFLAGS=""
9932 M17N_FLT_LIBS=""
9933 ## If we have a custom action on failure, don't print errors, but
9934 ## do set a variable so people can do so.
9935 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
9941 else
9942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9947 if test $succeeded = yes; then
9948 HAVE_M17N_FLT=yes
9949 else
9950 HAVE_M17N_FLT=no
9953 if test "$HAVE_M17N_FLT" = "yes"; then
9955 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
9960 else
9961 HAVE_XFT=no
9962 HAVE_FREETYPE=no
9963 HAVE_LIBOTF=no
9964 HAVE_M17N_FLT=no
9967 ### End of font-backend (under X11) section.
9978 ### Use -lXpm if available, unless `--with-xpm=no'.
9979 HAVE_XPM=no
9980 LIBXPM=
9981 if test "${HAVE_X11}" = "yes"; then
9982 if test "${with_xpm}" != "no"; then
9983 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
9984 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
9986 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9987 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 ac_check_lib_save_LIBS=$LIBS
9991 LIBS="-lXpm -lX11 $LIBS"
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9995 /* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
9998 #ifdef __cplusplus
9999 extern "C"
10000 #endif
10001 char XpmReadFileToPixmap ();
10003 main ()
10005 return XpmReadFileToPixmap ();
10007 return 0;
10009 _ACEOF
10010 if ac_fn_c_try_link "$LINENO"; then :
10011 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10012 else
10013 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10020 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10021 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10022 HAVE_XPM=yes
10028 if test "${HAVE_XPM}" = "yes"; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10030 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 #include "X11/xpm.h"
10034 #ifndef XpmReturnAllocPixels
10035 no_return_alloc_pixels
10036 #endif
10038 _ACEOF
10039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10040 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10041 HAVE_XPM=no
10042 else
10043 HAVE_XPM=yes
10045 rm -f conftest*
10048 if test "${HAVE_XPM}" = "yes"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10050 $as_echo "yes" >&6; }
10051 else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10058 if test "${HAVE_XPM}" = "yes"; then
10060 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10062 LIBXPM=-lXpm
10067 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10068 HAVE_JPEG=no
10069 LIBJPEG=
10070 if test "${HAVE_X11}" = "yes"; then
10071 if test "${with_jpeg}" != "no"; then
10072 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10073 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10075 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10076 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10077 $as_echo_n "(cached) " >&6
10078 else
10079 ac_check_lib_save_LIBS=$LIBS
10080 LIBS="-ljpeg $LIBS"
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 char jpeg_destroy_compress ();
10092 main ()
10094 return jpeg_destroy_compress ();
10096 return 0;
10098 _ACEOF
10099 if ac_fn_c_try_link "$LINENO"; then :
10100 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10101 else
10102 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10104 rm -f core conftest.err conftest.$ac_objext \
10105 conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10109 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10110 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10111 HAVE_JPEG=yes
10119 if test "${HAVE_JPEG}" = "yes"; then
10120 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 #include <jpeglib.h>
10125 version=JPEG_LIB_VERSION
10127 _ACEOF
10128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10129 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10130 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10134 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10135 HAVE_JPEG=no
10137 rm -f conftest*
10140 if test "${HAVE_JPEG}" = "yes"; then
10141 LIBJPEG=-ljpeg
10146 ### Use -lpng if available, unless `--with-png=no'.
10147 HAVE_PNG=no
10148 LIBPNG=
10149 if test "${HAVE_X11}" = "yes"; then
10150 if test "${with_png}" != "no"; then
10151 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10152 # in /usr/include/libpng.
10153 for ac_header in png.h libpng/png.h
10154 do :
10155 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10156 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10157 eval as_val=\$$as_ac_Header
10158 if test "x$as_val" = x""yes; then :
10159 cat >>confdefs.h <<_ACEOF
10160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10161 _ACEOF
10165 done
10167 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10169 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10170 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 ac_check_lib_save_LIBS=$LIBS
10174 LIBS="-lpng -lz -lm $LIBS"
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char png_get_channels ();
10186 main ()
10188 return png_get_channels ();
10190 return 0;
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"; then :
10194 ac_cv_lib_png_png_get_channels=yes
10195 else
10196 ac_cv_lib_png_png_get_channels=no
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10203 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10204 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10205 HAVE_PNG=yes
10211 if test "${HAVE_PNG}" = "yes"; then
10213 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10215 LIBPNG="-lpng -lz -lm"
10220 ### Use -ltiff if available, unless `--with-tiff=no'.
10221 HAVE_TIFF=no
10222 LIBTIFF=
10223 if test "${HAVE_X11}" = "yes"; then
10224 if test "${with_tiff}" != "no"; then
10225 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10226 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10227 tifflibs="-lz -lm"
10228 # At least one tiff package requires the jpeg library.
10229 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10231 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10232 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-ltiff $tifflibs $LIBS"
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char TIFFGetVersion ();
10248 main ()
10250 return TIFFGetVersion ();
10252 return 0;
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 ac_cv_lib_tiff_TIFFGetVersion=yes
10257 else
10258 ac_cv_lib_tiff_TIFFGetVersion=no
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10265 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10266 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10267 HAVE_TIFF=yes
10275 if test "${HAVE_TIFF}" = "yes"; then
10277 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10279 LIBTIFF=-ltiff
10284 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10285 HAVE_GIF=no
10286 LIBGIF=
10287 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10288 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10289 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10290 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10291 # Earlier versions can crash Emacs.
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10293 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10294 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
10296 else
10297 ac_check_lib_save_LIBS=$LIBS
10298 LIBS="-lgif $LIBS"
10299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300 /* end confdefs.h. */
10302 /* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char EGifPutExtensionLast ();
10310 main ()
10312 return EGifPutExtensionLast ();
10314 return 0;
10316 _ACEOF
10317 if ac_fn_c_try_link "$LINENO"; then :
10318 ac_cv_lib_gif_EGifPutExtensionLast=yes
10319 else
10320 ac_cv_lib_gif_EGifPutExtensionLast=no
10322 rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10324 LIBS=$ac_check_lib_save_LIBS
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10327 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10328 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10329 HAVE_GIF=yes
10330 else
10331 HAVE_GIF=maybe
10338 if test "$HAVE_GIF" = yes; then
10339 LIBGIF=-lgif
10340 elif test "$HAVE_GIF" = maybe; then
10341 # If gif_lib.h but no libgif, try libungif.
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10343 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10344 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 ac_check_lib_save_LIBS=$LIBS
10348 LIBS="-lungif $LIBS"
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 char EGifPutExtensionLast ();
10360 main ()
10362 return EGifPutExtensionLast ();
10364 return 0;
10366 _ACEOF
10367 if ac_fn_c_try_link "$LINENO"; then :
10368 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10369 else
10370 ac_cv_lib_ungif_EGifPutExtensionLast=no
10372 rm -f core conftest.err conftest.$ac_objext \
10373 conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10377 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10378 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10379 HAVE_GIF=yes
10380 else
10381 HAVE_GIF=no
10384 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10387 if test "${HAVE_GIF}" = "yes"; then
10389 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10395 if test "${HAVE_X11}" = "yes"; then
10396 MISSING=""
10397 WITH_NO=""
10398 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10399 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10400 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10401 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10402 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10403 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10404 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10405 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10406 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10407 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10409 if test "X${MISSING}" != X; then
10410 as_fn_error "The following required libraries were not found:
10411 $MISSING
10412 Maybe some development libraries/packages are missing?
10413 If you don't want to link with them give
10414 $WITH_NO
10415 as options to configure" "$LINENO" 5
10419 ### Use -lgpm if available, unless `--with-gpm=no'.
10420 HAVE_GPM=no
10421 LIBGPM=
10422 MOUSE_SUPPORT=
10423 if test "${with_gpm}" != "no"; then
10424 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10425 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10427 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10428 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-lgpm $LIBS"
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char Gpm_Open ();
10444 main ()
10446 return Gpm_Open ();
10448 return 0;
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452 ac_cv_lib_gpm_Gpm_Open=yes
10453 else
10454 ac_cv_lib_gpm_Gpm_Open=no
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LIBS=$ac_check_lib_save_LIBS
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10461 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10462 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10463 HAVE_GPM=yes
10470 if test "${HAVE_GPM}" = "yes"; then
10472 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10474 LIBGPM=-lgpm
10475 ## May be reset below.
10476 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10481 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10482 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10484 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10490 C_SWITCH_X_SYSTEM=
10491 ### Use NeXTstep API to implement GUI.
10492 if test "${HAVE_NS}" = "yes"; then
10494 $as_echo "#define HAVE_NS 1" >>confdefs.h
10496 if test "${NS_IMPL_COCOA}" = "yes"; then
10498 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10500 GNU_OBJC_CFLAGS=
10502 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10504 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10506 # See also .m.o rule in Makefile.in */
10507 # FIXME: are all these flags really needed? Document here why. */
10508 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10509 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10511 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10513 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10516 # We also have mouse menus.
10517 HAVE_MENUS=yes
10518 OTHER_FILES=ns-app
10522 ### Use session management (-lSM -lICE) if available
10523 HAVE_X_SM=no
10524 LIBXSM=
10525 if test "${HAVE_X11}" = "yes"; then
10526 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10527 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10529 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10530 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533 ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-lSM -lICE $LIBS"
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10538 /* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 char SmcOpenConnection ();
10546 main ()
10548 return SmcOpenConnection ();
10550 return 0;
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 ac_cv_lib_SM_SmcOpenConnection=yes
10555 else
10556 ac_cv_lib_SM_SmcOpenConnection=no
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10563 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10564 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10565 HAVE_X_SM=yes
10572 if test "${HAVE_X_SM}" = "yes"; then
10574 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10576 LIBXSM="-lSM -lICE"
10577 case "$LIBS" in
10578 *-lSM*) ;;
10579 *) LIBS="$LIBXSM $LIBS" ;;
10580 esac
10585 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10587 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10588 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 #include <netdb.h>
10595 main ()
10597 return h_errno;
10599 return 0;
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"; then :
10603 emacs_cv_netdb_declares_h_errno=yes
10604 else
10605 emacs_cv_netdb_declares_h_errno=no
10607 rm -f core conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10611 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10612 if test $emacs_cv_netdb_declares_h_errno = yes; then
10614 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10619 # for constant arguments. Useless!
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10621 $as_echo_n "checking for working alloca.h... " >&6; }
10622 if test "${ac_cv_working_alloca_h+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627 #include <alloca.h>
10629 main ()
10631 char *p = (char *) alloca (2 * sizeof (int));
10632 if (p) return 0;
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_working_alloca_h=yes
10639 else
10640 ac_cv_working_alloca_h=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10646 $as_echo "$ac_cv_working_alloca_h" >&6; }
10647 if test $ac_cv_working_alloca_h = yes; then
10649 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10654 $as_echo_n "checking for alloca... " >&6; }
10655 if test "${ac_cv_func_alloca_works+set}" = set; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h. */
10660 #ifdef __GNUC__
10661 # define alloca __builtin_alloca
10662 #else
10663 # ifdef _MSC_VER
10664 # include <malloc.h>
10665 # define alloca _alloca
10666 # else
10667 # ifdef HAVE_ALLOCA_H
10668 # include <alloca.h>
10669 # else
10670 # ifdef _AIX
10671 #pragma alloca
10672 # else
10673 # ifndef alloca /* predefined by HP cc +Olibcalls */
10674 char *alloca ();
10675 # endif
10676 # endif
10677 # endif
10678 # endif
10679 #endif
10682 main ()
10684 char *p = (char *) alloca (1);
10685 if (p) return 0;
10687 return 0;
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_func_alloca_works=yes
10692 else
10693 ac_cv_func_alloca_works=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10699 $as_echo "$ac_cv_func_alloca_works" >&6; }
10701 if test $ac_cv_func_alloca_works = yes; then
10703 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10705 else
10706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10707 # that cause trouble. Some versions do not even contain alloca or
10708 # contain a buggy version. If you still want to use their alloca,
10709 # use ar to extract alloca.o from them instead of compiling alloca.c.
10711 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10713 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10717 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10718 if test "${ac_cv_os_cray+set}" = set; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10723 #if defined CRAY && ! defined CRAY2
10724 webecray
10725 #else
10726 wenotbecray
10727 #endif
10729 _ACEOF
10730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10731 $EGREP "webecray" >/dev/null 2>&1; then :
10732 ac_cv_os_cray=yes
10733 else
10734 ac_cv_os_cray=no
10736 rm -f conftest*
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10740 $as_echo "$ac_cv_os_cray" >&6; }
10741 if test $ac_cv_os_cray = yes; then
10742 for ac_func in _getb67 GETB67 getb67; do
10743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10745 eval as_val=\$$as_ac_var
10746 if test "x$as_val" = x""yes; then :
10748 cat >>confdefs.h <<_ACEOF
10749 #define CRAY_STACKSEG_END $ac_func
10750 _ACEOF
10752 break
10755 done
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10759 $as_echo_n "checking stack direction for C alloca... " >&6; }
10760 if test "${ac_cv_c_stack_direction+set}" = set; then :
10761 $as_echo_n "(cached) " >&6
10762 else
10763 if test "$cross_compiling" = yes; then :
10764 ac_cv_c_stack_direction=0
10765 else
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 $ac_includes_default
10770 find_stack_direction ()
10772 static char *addr = 0;
10773 auto char dummy;
10774 if (addr == 0)
10776 addr = &dummy;
10777 return find_stack_direction ();
10779 else
10780 return (&dummy > addr) ? 1 : -1;
10784 main ()
10786 return find_stack_direction () < 0;
10788 _ACEOF
10789 if ac_fn_c_try_run "$LINENO"; then :
10790 ac_cv_c_stack_direction=1
10791 else
10792 ac_cv_c_stack_direction=-1
10794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10795 conftest.$ac_objext conftest.beam conftest.$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10800 $as_echo "$ac_cv_c_stack_direction" >&6; }
10801 cat >>confdefs.h <<_ACEOF
10802 #define STACK_DIRECTION $ac_cv_c_stack_direction
10803 _ACEOF
10809 if test x"$ac_cv_func_alloca_works" != xyes; then
10810 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10813 # fmod, logb, and frexp are found in -lm on most systems.
10814 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10816 $as_echo_n "checking for sqrt in -lm... " >&6; }
10817 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10818 $as_echo_n "(cached) " >&6
10819 else
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-lm $LIBS"
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10828 #ifdef __cplusplus
10829 extern "C"
10830 #endif
10831 char sqrt ();
10833 main ()
10835 return sqrt ();
10837 return 0;
10839 _ACEOF
10840 if ac_fn_c_try_link "$LINENO"; then :
10841 ac_cv_lib_m_sqrt=yes
10842 else
10843 ac_cv_lib_m_sqrt=no
10845 rm -f core conftest.err conftest.$ac_objext \
10846 conftest$ac_exeext conftest.$ac_ext
10847 LIBS=$ac_check_lib_save_LIBS
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10850 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10851 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10852 cat >>confdefs.h <<_ACEOF
10853 #define HAVE_LIBM 1
10854 _ACEOF
10856 LIBS="-lm $LIBS"
10861 # Check for mail-locking functions in a "mail" library. Probably this should
10862 # have the same check as for liblockfile below.
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10864 $as_echo_n "checking for maillock in -lmail... " >&6; }
10865 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10866 $as_echo_n "(cached) " >&6
10867 else
10868 ac_check_lib_save_LIBS=$LIBS
10869 LIBS="-lmail $LIBS"
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10876 #ifdef __cplusplus
10877 extern "C"
10878 #endif
10879 char maillock ();
10881 main ()
10883 return maillock ();
10885 return 0;
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 ac_cv_lib_mail_maillock=yes
10890 else
10891 ac_cv_lib_mail_maillock=no
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LIBS=$ac_check_lib_save_LIBS
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
10898 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10899 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
10900 have_mail=yes
10901 else
10902 have_mail=no
10905 if test $have_mail = yes; then
10906 LIBS_MAIL=-lmail
10907 LIBS="$LIBS_MAIL $LIBS"
10909 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
10911 else
10912 LIBS_MAIL=
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10915 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10916 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-llockfile $LIBS"
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10924 /* Override any GCC internal prototype to avoid an error.
10925 Use char because int might match the return type of a GCC
10926 builtin and then its argument prototype would still apply. */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 char maillock ();
10932 main ()
10934 return maillock ();
10936 return 0;
10938 _ACEOF
10939 if ac_fn_c_try_link "$LINENO"; then :
10940 ac_cv_lib_lockfile_maillock=yes
10941 else
10942 ac_cv_lib_lockfile_maillock=no
10944 rm -f core conftest.err conftest.$ac_objext \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
10949 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10950 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
10951 have_lockfile=yes
10952 else
10953 have_lockfile=no
10956 if test $have_lockfile = yes; then
10957 LIBS_MAIL=-llockfile
10958 LIBS="$LIBS_MAIL $LIBS"
10960 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
10962 else
10963 # If we have the shared liblockfile, assume we must use it for mail
10964 # locking (e.g. Debian). If we couldn't link against liblockfile
10965 # (no liblockfile.a installed), ensure that we don't need to.
10966 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10967 set dummy liblockfile.so; ac_word=$2
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969 $as_echo_n "checking for $ac_word... " >&6; }
10970 if test "${ac_cv_prog_liblockfile+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 if test -n "$liblockfile"; then
10974 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10975 else
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10978 for as_dir in $as_dummy
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10984 ac_cv_prog_liblockfile="yes"
10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 break 2
10988 done
10989 done
10990 IFS=$as_save_IFS
10992 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10995 liblockfile=$ac_cv_prog_liblockfile
10996 if test -n "$liblockfile"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
10998 $as_echo "$liblockfile" >&6; }
10999 else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11005 if test $ac_cv_prog_liblockfile = yes; then
11006 as_fn_error "Shared liblockfile found but can't link against it.
11007 This probably means that movemail could lose mail.
11008 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11011 for ac_func in touchlock
11012 do :
11013 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11014 if test "x$ac_cv_func_touchlock" = x""yes; then :
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_TOUCHLOCK 1
11017 _ACEOF
11020 done
11022 for ac_header in maillock.h
11023 do :
11024 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11025 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11026 cat >>confdefs.h <<_ACEOF
11027 #define HAVE_MAILLOCK_H 1
11028 _ACEOF
11032 done
11036 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11037 ## interlock access to the mail spool. The alternative is a lock file named
11038 ## /usr/spool/mail/$USER.lock.
11039 mail_lock=no
11040 case "$opsys" in
11041 aix4-2) mail_lock="lockf" ;;
11043 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11045 ## On GNU/Linux systems, both methods are used by various mail programs.
11046 ## I assume most people are using newer mailers that have heard of flock.
11047 ## Change this if you need to.
11048 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11049 ## configure gets the right answers, and that means *NOT* using flock.
11050 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11051 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11052 ## Debian maintainer hasn't provided a clean fix for Emacs.
11053 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11054 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11055 ## correct logic. -- fx
11056 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11057 ## liblockfile is a Free Software replacement for libmail, used on
11058 ## Debian systems and elsewhere. -rfr.
11059 gnu-*)
11060 mail_lock="flock"
11061 if test $have_mail = yes || test $have_lockfile = yes; then
11062 test $ac_cv_header_maillock_h = yes && mail_lock=no
11065 esac
11067 BLESSMAIL_TARGET=
11068 case "$mail_lock" in
11069 flock)
11070 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11073 lockf)
11074 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11077 *) BLESSMAIL_TARGET="need-blessmail" ;;
11078 esac
11082 for ac_func in gethostname getdomainname dup2 \
11083 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11084 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
11085 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11086 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11087 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11088 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11089 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
11090 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11091 cfmakeraw cfsetspeed isnan copysign
11092 do :
11093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11095 eval as_val=\$$as_ac_var
11096 if test "x$as_val" = x""yes; then :
11097 cat >>confdefs.h <<_ACEOF
11098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11099 _ACEOF
11102 done
11105 for ac_header in sys/un.h
11106 do :
11107 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11108 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11109 cat >>confdefs.h <<_ACEOF
11110 #define HAVE_SYS_UN_H 1
11111 _ACEOF
11115 done
11123 for ac_func in $ac_func_list
11124 do :
11125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11127 eval as_val=\$$as_ac_var
11128 if test "x$as_val" = x""yes; then :
11129 cat >>confdefs.h <<_ACEOF
11130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11131 _ACEOF
11134 done
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11141 $as_echo_n "checking for working mktime... " >&6; }
11142 if test "${ac_cv_func_working_mktime+set}" = set; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 if test "$cross_compiling" = yes; then :
11146 ac_cv_func_working_mktime=no
11147 else
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150 /* Test program from Paul Eggert and Tony Leneis. */
11151 #ifdef TIME_WITH_SYS_TIME
11152 # include <sys/time.h>
11153 # include <time.h>
11154 #else
11155 # ifdef HAVE_SYS_TIME_H
11156 # include <sys/time.h>
11157 # else
11158 # include <time.h>
11159 # endif
11160 #endif
11162 #include <limits.h>
11163 #include <stdlib.h>
11165 #ifdef HAVE_UNISTD_H
11166 # include <unistd.h>
11167 #endif
11169 #ifndef HAVE_ALARM
11170 # define alarm(X) /* empty */
11171 #endif
11173 /* Work around redefinition to rpl_putenv by other config tests. */
11174 #undef putenv
11176 static time_t time_t_max;
11177 static time_t time_t_min;
11179 /* Values we'll use to set the TZ environment variable. */
11180 static char *tz_strings[] = {
11181 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11182 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11184 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11186 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11187 Based on a problem report from Andreas Jaeger. */
11188 static int
11189 spring_forward_gap ()
11191 /* glibc (up to about 1998-10-07) failed this test. */
11192 struct tm tm;
11194 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11195 instead of "TZ=America/Vancouver" in order to detect the bug even
11196 on systems that don't support the Olson extension, or don't have the
11197 full zoneinfo tables installed. */
11198 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11200 tm.tm_year = 98;
11201 tm.tm_mon = 3;
11202 tm.tm_mday = 5;
11203 tm.tm_hour = 2;
11204 tm.tm_min = 0;
11205 tm.tm_sec = 0;
11206 tm.tm_isdst = -1;
11207 return mktime (&tm) != (time_t) -1;
11210 static int
11211 mktime_test1 (now)
11212 time_t now;
11214 struct tm *lt;
11215 return ! (lt = localtime (&now)) || mktime (lt) == now;
11218 static int
11219 mktime_test (now)
11220 time_t now;
11222 return (mktime_test1 (now)
11223 && mktime_test1 ((time_t) (time_t_max - now))
11224 && mktime_test1 ((time_t) (time_t_min + now)));
11227 static int
11228 irix_6_4_bug ()
11230 /* Based on code from Ariel Faigon. */
11231 struct tm tm;
11232 tm.tm_year = 96;
11233 tm.tm_mon = 3;
11234 tm.tm_mday = 0;
11235 tm.tm_hour = 0;
11236 tm.tm_min = 0;
11237 tm.tm_sec = 0;
11238 tm.tm_isdst = -1;
11239 mktime (&tm);
11240 return tm.tm_mon == 2 && tm.tm_mday == 31;
11243 static int
11244 bigtime_test (j)
11245 int j;
11247 struct tm tm;
11248 time_t now;
11249 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11250 now = mktime (&tm);
11251 if (now != (time_t) -1)
11253 struct tm *lt = localtime (&now);
11254 if (! (lt
11255 && lt->tm_year == tm.tm_year
11256 && lt->tm_mon == tm.tm_mon
11257 && lt->tm_mday == tm.tm_mday
11258 && lt->tm_hour == tm.tm_hour
11259 && lt->tm_min == tm.tm_min
11260 && lt->tm_sec == tm.tm_sec
11261 && lt->tm_yday == tm.tm_yday
11262 && lt->tm_wday == tm.tm_wday
11263 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11264 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11265 return 0;
11267 return 1;
11270 static int
11271 year_2050_test ()
11273 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11274 ignoring leap seconds. */
11275 unsigned long int answer = 2527315200UL;
11277 struct tm tm;
11278 time_t t;
11279 tm.tm_year = 2050 - 1900;
11280 tm.tm_mon = 2 - 1;
11281 tm.tm_mday = 1;
11282 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11283 tm.tm_isdst = -1;
11285 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11286 instead of "TZ=America/Vancouver" in order to detect the bug even
11287 on systems that don't support the Olson extension, or don't have the
11288 full zoneinfo tables installed. */
11289 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11291 t = mktime (&tm);
11293 /* Check that the result is either a failure, or close enough
11294 to the correct answer that we can assume the discrepancy is
11295 due to leap seconds. */
11296 return (t == (time_t) -1
11297 || (0 < t && answer - 120 <= t && t <= answer + 120));
11301 main ()
11303 time_t t, delta;
11304 int i, j;
11306 /* This test makes some buggy mktime implementations loop.
11307 Give up after 60 seconds; a mktime slower than that
11308 isn't worth using anyway. */
11309 alarm (60);
11311 for (;;)
11313 t = (time_t_max << 1) + 1;
11314 if (t <= time_t_max)
11315 break;
11316 time_t_max = t;
11318 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11320 delta = time_t_max / 997; /* a suitable prime number */
11321 for (i = 0; i < N_STRINGS; i++)
11323 if (tz_strings[i])
11324 putenv (tz_strings[i]);
11326 for (t = 0; t <= time_t_max - delta; t += delta)
11327 if (! mktime_test (t))
11328 return 1;
11329 if (! (mktime_test ((time_t) 1)
11330 && mktime_test ((time_t) (60 * 60))
11331 && mktime_test ((time_t) (60 * 60 * 24))))
11332 return 1;
11334 for (j = 1; ; j <<= 1)
11335 if (! bigtime_test (j))
11336 return 1;
11337 else if (INT_MAX / 2 < j)
11338 break;
11339 if (! bigtime_test (INT_MAX))
11340 return 1;
11342 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11344 _ACEOF
11345 if ac_fn_c_try_run "$LINENO"; then :
11346 ac_cv_func_working_mktime=yes
11347 else
11348 ac_cv_func_working_mktime=no
11350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11351 conftest.$ac_objext conftest.beam conftest.$ac_ext
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11356 $as_echo "$ac_cv_func_working_mktime" >&6; }
11357 if test $ac_cv_func_working_mktime = no; then
11358 case " $LIBOBJS " in
11359 *" mktime.$ac_objext "* ) ;;
11360 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11362 esac
11366 if test "$ac_cv_func_working_mktime" = no; then
11368 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11372 ac_have_func=no # yes means we've found a way to get the load average.
11374 # Make sure getloadavg.c is where it belongs, at configure-time.
11375 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11376 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11378 ac_save_LIBS=$LIBS
11380 # Check for getloadavg, but be sure not to touch the cache variable.
11381 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11382 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11383 exit 0
11384 else
11385 exit 1
11387 ) && ac_have_func=yes
11389 # On HPUX9, an unprivileged user can get load averages through this function.
11390 for ac_func in pstat_getdynamic
11391 do :
11392 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11393 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11394 cat >>confdefs.h <<_ACEOF
11395 #define HAVE_PSTAT_GETDYNAMIC 1
11396 _ACEOF
11399 done
11402 # Solaris has libkstat which does not require root.
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11404 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11405 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-lkstat $LIBS"
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char kstat_open ();
11421 main ()
11423 return kstat_open ();
11425 return 0;
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 ac_cv_lib_kstat_kstat_open=yes
11430 else
11431 ac_cv_lib_kstat_kstat_open=no
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11438 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11439 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441 #define HAVE_LIBKSTAT 1
11442 _ACEOF
11444 LIBS="-lkstat $LIBS"
11448 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11450 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11451 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11452 # to get the right answer into the cache.
11453 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11454 if test $ac_have_func = no; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11456 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11457 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-lelf $LIBS"
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char elf_begin ();
11473 main ()
11475 return elf_begin ();
11477 return 0;
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 ac_cv_lib_elf_elf_begin=yes
11482 else
11483 ac_cv_lib_elf_elf_begin=no
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11490 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11491 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11492 LIBS="-lelf $LIBS"
11496 if test $ac_have_func = no; then
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11498 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11499 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 ac_check_lib_save_LIBS=$LIBS
11503 LIBS="-lkvm $LIBS"
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 char kvm_open ();
11515 main ()
11517 return kvm_open ();
11519 return 0;
11521 _ACEOF
11522 if ac_fn_c_try_link "$LINENO"; then :
11523 ac_cv_lib_kvm_kvm_open=yes
11524 else
11525 ac_cv_lib_kvm_kvm_open=no
11527 rm -f core conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11529 LIBS=$ac_check_lib_save_LIBS
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11532 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11533 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11534 LIBS="-lkvm $LIBS"
11537 # Check for the 4.4BSD definition of getloadavg.
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11539 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11540 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
11542 else
11543 ac_check_lib_save_LIBS=$LIBS
11544 LIBS="-lutil $LIBS"
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11548 /* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 char getloadavg ();
11556 main ()
11558 return getloadavg ();
11560 return 0;
11562 _ACEOF
11563 if ac_fn_c_try_link "$LINENO"; then :
11564 ac_cv_lib_util_getloadavg=yes
11565 else
11566 ac_cv_lib_util_getloadavg=no
11568 rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11570 LIBS=$ac_check_lib_save_LIBS
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11573 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11574 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11575 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11580 if test $ac_have_func = no; then
11581 # There is a commonly available library for RS/6000 AIX.
11582 # Since it is not a standard part of AIX, it might be installed locally.
11583 ac_getloadavg_LIBS=$LIBS
11584 LIBS="-L/usr/local/lib $LIBS"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11586 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11587 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-lgetloadavg $LIBS"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 char getloadavg ();
11603 main ()
11605 return getloadavg ();
11607 return 0;
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611 ac_cv_lib_getloadavg_getloadavg=yes
11612 else
11613 ac_cv_lib_getloadavg_getloadavg=no
11615 rm -f core conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11620 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11621 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11622 LIBS="-lgetloadavg $LIBS"
11623 else
11624 LIBS=$ac_getloadavg_LIBS
11629 # Make sure it is really in the library, if we think we found it,
11630 # otherwise set up the replacement function.
11631 for ac_func in getloadavg
11632 do :
11633 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11634 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11635 cat >>confdefs.h <<_ACEOF
11636 #define HAVE_GETLOADAVG 1
11637 _ACEOF
11639 else
11640 case " $LIBOBJS " in
11641 *" getloadavg.$ac_objext "* ) ;;
11642 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11644 esac
11647 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11649 # Figure out what our getloadavg.c needs.
11650 ac_have_func=no
11651 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11652 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11653 ac_have_func=yes
11655 $as_echo "#define DGUX 1" >>confdefs.h
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11658 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11659 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 ac_check_lib_save_LIBS=$LIBS
11663 LIBS="-ldgc $LIBS"
11664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11667 /* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11670 #ifdef __cplusplus
11671 extern "C"
11672 #endif
11673 char dg_sys_info ();
11675 main ()
11677 return dg_sys_info ();
11679 return 0;
11681 _ACEOF
11682 if ac_fn_c_try_link "$LINENO"; then :
11683 ac_cv_lib_dgc_dg_sys_info=yes
11684 else
11685 ac_cv_lib_dgc_dg_sys_info=no
11687 rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_lib_save_LIBS
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11692 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11693 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11694 cat >>confdefs.h <<_ACEOF
11695 #define HAVE_LIBDGC 1
11696 _ACEOF
11698 LIBS="-ldgc $LIBS"
11706 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11707 if test "x$ac_cv_header_locale_h" = x""yes; then :
11712 for ac_func in setlocale
11713 do :
11714 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11715 if test "x$ac_cv_func_setlocale" = x""yes; then :
11716 cat >>confdefs.h <<_ACEOF
11717 #define HAVE_SETLOCALE 1
11718 _ACEOF
11721 done
11724 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11725 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11726 # Irix 4.0.5F has the header but not the library.
11727 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11728 ac_have_func=yes
11730 $as_echo "#define SVR4 1" >>confdefs.h
11734 if test $ac_have_func = no; then
11735 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11736 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11737 ac_have_func=yes
11739 $as_echo "#define UMAX 1" >>confdefs.h
11742 $as_echo "#define UMAX4_3 1" >>confdefs.h
11749 if test $ac_have_func = no; then
11750 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11751 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11752 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11759 if test $ac_have_func = no; then
11760 for ac_header in mach/mach.h
11761 do :
11762 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11763 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11764 cat >>confdefs.h <<_ACEOF
11765 #define HAVE_MACH_MACH_H 1
11766 _ACEOF
11770 done
11774 for ac_header in nlist.h
11775 do :
11776 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11777 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11778 cat >>confdefs.h <<_ACEOF
11779 #define HAVE_NLIST_H 1
11780 _ACEOF
11781 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11783 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11785 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11787 _ACEOF
11790 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11797 done
11800 done
11803 # Some definitions of getloadavg require that the program be installed setgid.
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11805 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11806 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11812 #ifdef LDAV_PRIVILEGED
11813 Yowza Am I SETGID yet
11814 #endif
11815 _ACEOF
11816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11817 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11818 ac_cv_func_getloadavg_setgid=yes
11819 else
11820 ac_cv_func_getloadavg_setgid=no
11822 rm -f conftest*
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11826 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11827 if test $ac_cv_func_getloadavg_setgid = yes; then
11828 NEED_SETGID=true
11830 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11832 else
11833 NEED_SETGID=false
11836 if test $ac_cv_func_getloadavg_setgid = yes; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11838 $as_echo_n "checking group of /dev/kmem... " >&6; }
11839 if test "${ac_cv_group_kmem+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11843 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11844 # If we got an error (system does not support symlinks), try without -L.
11845 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11846 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11847 | sed -ne 's/[ ][ ]*/ /g;
11848 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11849 / /s/.* //;p;'`
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11853 $as_echo "$ac_cv_group_kmem" >&6; }
11854 KMEM_GROUP=$ac_cv_group_kmem
11856 if test "x$ac_save_LIBS" = x; then
11857 GETLOADAVG_LIBS=$LIBS
11858 else
11859 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11861 LIBS=$ac_save_LIBS
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11866 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11867 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 while :; do
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #include <sys/types.h> /* for off_t */
11874 #include <stdio.h>
11876 main ()
11878 int (*fp) (FILE *, off_t, int) = fseeko;
11879 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11881 return 0;
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_sys_largefile_source=no; break
11887 rm -f core conftest.err conftest.$ac_objext \
11888 conftest$ac_exeext conftest.$ac_ext
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891 #define _LARGEFILE_SOURCE 1
11892 #include <sys/types.h> /* for off_t */
11893 #include <stdio.h>
11895 main ()
11897 int (*fp) (FILE *, off_t, int) = fseeko;
11898 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11900 return 0;
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_sys_largefile_source=1; break
11906 rm -f core conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 ac_cv_sys_largefile_source=unknown
11909 break
11910 done
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11913 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11914 case $ac_cv_sys_largefile_source in #(
11915 no | unknown) ;;
11917 cat >>confdefs.h <<_ACEOF
11918 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11919 _ACEOF
11921 esac
11922 rm -rf conftest*
11924 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11925 # in glibc 2.1.3, but that breaks too many other things.
11926 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11927 if test $ac_cv_sys_largefile_source != unknown; then
11929 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11934 # Configure getopt.
11935 # getopt.m4 serial 10
11937 # The getopt module assume you want GNU getopt, with getopt_long etc,
11938 # rather than vanilla POSIX getopt. This means your your code should
11939 # always include <getopt.h> for the getopt prototypes.
11951 # Prerequisites of lib/getopt*.
11956 GETOPT_H=
11957 for ac_header in getopt.h
11958 do :
11959 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11960 if test "x$ac_cv_header_getopt_h" = x""yes; then :
11961 cat >>confdefs.h <<_ACEOF
11962 #define HAVE_GETOPT_H 1
11963 _ACEOF
11965 else
11966 GETOPT_H=getopt.h
11969 done
11971 if test -z "$GETOPT_H"; then
11972 for ac_func in getopt_long_only
11973 do :
11974 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11975 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11976 cat >>confdefs.h <<_ACEOF
11977 #define HAVE_GETOPT_LONG_ONLY 1
11978 _ACEOF
11980 else
11981 GETOPT_H=getopt.h
11983 done
11987 if test -z "$GETOPT_H"; then
11988 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11990 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11991 GETOPT_H=getopt.h
11996 if test -z "$GETOPT_H"; then
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11998 $as_echo_n "checking for working GNU getopt function... " >&6; }
11999 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 if test "$cross_compiling" = yes; then :
12003 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12005 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12006 gl_cv_func_gnu_getopt=no
12007 else
12008 gl_cv_func_gnu_getopt=yes
12011 else
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 #include <getopt.h>
12016 main ()
12019 char *myargv[3];
12020 myargv[0] = "conftest";
12021 myargv[1] = "-+";
12022 myargv[2] = 0;
12023 return getopt (2, myargv, "+a") != '?';
12026 return 0;
12028 _ACEOF
12029 if ac_fn_c_try_run "$LINENO"; then :
12030 gl_cv_func_gnu_getopt=yes
12031 else
12032 gl_cv_func_gnu_getopt=no
12034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12035 conftest.$ac_objext conftest.beam conftest.$ac_ext
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12040 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12041 if test "$gl_cv_func_gnu_getopt" = "no"; then
12042 GETOPT_H=getopt.h
12048 if test -n "$GETOPT_H"; then :
12051 GETOPT_H=getopt.h
12053 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12058 GETOPTOBJS='getopt.o getopt1.o'
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12065 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12066 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 # Use it with a single arg.
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 $ac_includes_default
12074 main ()
12076 getpgrp (0);
12078 return 0;
12080 _ACEOF
12081 if ac_fn_c_try_compile "$LINENO"; then :
12082 ac_cv_func_getpgrp_void=no
12083 else
12084 ac_cv_func_getpgrp_void=yes
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12090 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12091 if test $ac_cv_func_getpgrp_void = yes; then
12093 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12098 for ac_func in strftime
12099 do :
12100 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12101 if test "x$ac_cv_func_strftime" = x""yes; then :
12102 cat >>confdefs.h <<_ACEOF
12103 #define HAVE_STRFTIME 1
12104 _ACEOF
12106 else
12107 # strftime is in -lintl on SCO UNIX.
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12109 $as_echo_n "checking for strftime in -lintl... " >&6; }
12110 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 ac_check_lib_save_LIBS=$LIBS
12114 LIBS="-lintl $LIBS"
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12121 #ifdef __cplusplus
12122 extern "C"
12123 #endif
12124 char strftime ();
12126 main ()
12128 return strftime ();
12130 return 0;
12132 _ACEOF
12133 if ac_fn_c_try_link "$LINENO"; then :
12134 ac_cv_lib_intl_strftime=yes
12135 else
12136 ac_cv_lib_intl_strftime=no
12138 rm -f core conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12143 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12144 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12145 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12147 LIBS="-lintl $LIBS"
12151 done
12154 # UNIX98 PTYs.
12155 for ac_func in grantpt
12156 do :
12157 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12158 if test "x$ac_cv_func_grantpt" = x""yes; then :
12159 cat >>confdefs.h <<_ACEOF
12160 #define HAVE_GRANTPT 1
12161 _ACEOF
12164 done
12167 # PTY-related GNU extensions.
12168 for ac_func in getpt
12169 do :
12170 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12171 if test "x$ac_cv_func_getpt" = x""yes; then :
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_GETPT 1
12174 _ACEOF
12177 done
12180 # Check this now, so that we will NOT find the above functions in ncurses.
12181 # That is because we have not set up to link ncurses in lib-src.
12182 # It's better to believe a function is not available
12183 # than to expect to find it in ncurses.
12184 # Also we need tputs and friends to be able to build at all.
12185 have_tputs_et_al=true
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12187 $as_echo_n "checking for library containing tputs... " >&6; }
12188 if test "${ac_cv_search_tputs+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12190 else
12191 ac_func_search_save_LIBS=$LIBS
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193 /* end confdefs.h. */
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 char tputs ();
12203 main ()
12205 return tputs ();
12207 return 0;
12209 _ACEOF
12210 for ac_lib in '' ncurses terminfo termcap; do
12211 if test -z "$ac_lib"; then
12212 ac_res="none required"
12213 else
12214 ac_res=-l$ac_lib
12215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_search_tputs=$ac_res
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext
12222 if test "${ac_cv_search_tputs+set}" = set; then :
12223 break
12225 done
12226 if test "${ac_cv_search_tputs+set}" = set; then :
12228 else
12229 ac_cv_search_tputs=no
12231 rm conftest.$ac_ext
12232 LIBS=$ac_func_search_save_LIBS
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12235 $as_echo "$ac_cv_search_tputs" >&6; }
12236 ac_res=$ac_cv_search_tputs
12237 if test "$ac_res" != no; then :
12238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12240 else
12241 have_tputs_et_al=false
12244 if test "$have_tputs_et_al" != true; then
12245 as_fn_error "I couldn't find termcap functions (tputs and friends).
12246 Maybe some development libraries/packages are missing? Try installing
12247 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12249 # Must define this when any termcap library is found.
12251 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12253 ## FIXME This was the cpp logic, but I am not sure it is right.
12254 ## The above test has not necessarily found libncurses.
12255 HAVE_LIBNCURSES=yes
12257 ## Use terminfo instead of termcap?
12258 ## Note only system files NOT using terminfo are:
12259 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12260 ## darwin|gnu without ncurses.
12261 TERMINFO=no
12262 LIBS_TERMCAP=
12263 case "$opsys" in
12264 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12265 ## hpux10-20: Use the system provided termcap(3) library.
12266 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12267 ## is necessary. Otherwise Emacs dumps core when run -nw.
12268 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
12270 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12271 ## The ncurses library has been moved out of the System framework in
12272 ## Mac OS X 10.2. So if configure detects it, set the command-line
12273 ## option to use it.
12274 darwin|gnu*)
12275 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12276 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12277 TERMINFO=yes
12278 LIBS_TERMCAP="-lncurses"
12282 freebsd)
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12284 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12285 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12286 $as_echo_n "(cached) " >&6
12287 else
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290 #include <osreldate.h>
12292 main ()
12294 #if __FreeBSD_version < 400000
12295 fail;
12296 #endif
12299 return 0;
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 emacs_cv_freebsd_terminfo=yes
12304 else
12305 emacs_cv_freebsd_terminfo=no
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12313 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12315 if test $emacs_cv_freebsd_terminfo = yes; then
12316 TERMINFO=yes
12317 LIBS_TERMCAP="-lncurses"
12318 else
12319 LIBS_TERMCAP="-ltermcap"
12323 netbsd)
12324 if test $ac_cv_search_tputs = -lterminfo; then
12325 TERMINFO=yes
12326 LIBS_TERMCAP="-lterminfo"
12327 else
12328 LIBS_TERMCAP="-ltermcap"
12332 esac
12334 case "$opsys" in
12335 ## hpux: Make sure we get select from libc rather than from libcurses
12336 ## because libcurses on HPUX 10.10 has a broken version of select.
12337 ## We used to use -lc -lcurses, but this may be cleaner.
12338 hpux*) LIBS_TERMCAP="-ltermcap" ;;
12340 openbsd) LIBS_TERMCAP="-lncurses" ;;
12342 ## Must use system termcap, if we use any termcap. It does special things.
12343 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12344 esac
12346 TERMCAP_OBJ=tparam.o
12347 if test $TERMINFO = yes; then
12349 $as_echo "#define TERMINFO 1" >>confdefs.h
12352 ## Default used to be -ltermcap. Add a case above if need something else.
12353 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
12355 TERMCAP_OBJ=terminfo.o
12361 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12362 resolv=no
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365 #include <netinet/in.h>
12366 #include <arpa/nameser.h>
12367 #include <resolv.h>
12369 main ()
12371 return res_init();
12373 return 0;
12375 _ACEOF
12376 if ac_fn_c_try_link "$LINENO"; then :
12377 have_res_init=yes
12378 else
12379 have_res_init=no
12381 rm -f core conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383 if test "$have_res_init" = no; then
12384 OLIBS="$LIBS"
12385 LIBS="$LIBS -lresolv"
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12387 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12390 #include <netinet/in.h>
12391 #include <arpa/nameser.h>
12392 #include <resolv.h>
12394 main ()
12396 return res_init();
12398 return 0;
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 have_res_init=yes
12403 else
12404 have_res_init=no
12406 rm -f core conftest.err conftest.$ac_objext \
12407 conftest$ac_exeext conftest.$ac_ext
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12409 $as_echo "$have_res_init" >&6; }
12410 if test "$have_res_init" = yes ; then
12411 resolv=yes
12413 LIBS="$OLIBS"
12416 if test "$have_res_init" = yes; then
12418 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12422 # Do we need the Hesiod library to provide the support routines?
12423 LIBHESIOD=
12424 if test "$with_hesiod" != no ; then
12425 # Don't set $LIBS here -- see comments above. FIXME which comments?
12426 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12427 if test "x$ac_cv_func_res_send" = x""yes; then :
12429 else
12430 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12431 if test "x$ac_cv_func___res_send" = x""yes; then :
12433 else
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12435 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12436 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 ac_check_lib_save_LIBS=$LIBS
12440 LIBS="-lresolv $LIBS"
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12444 /* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
12447 #ifdef __cplusplus
12448 extern "C"
12449 #endif
12450 char res_send ();
12452 main ()
12454 return res_send ();
12456 return 0;
12458 _ACEOF
12459 if ac_fn_c_try_link "$LINENO"; then :
12460 ac_cv_lib_resolv_res_send=yes
12461 else
12462 ac_cv_lib_resolv_res_send=no
12464 rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12466 LIBS=$ac_check_lib_save_LIBS
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12469 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12470 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12471 resolv=yes
12472 else
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12474 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12475 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 ac_check_lib_save_LIBS=$LIBS
12479 LIBS="-lresolv $LIBS"
12480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h. */
12483 /* Override any GCC internal prototype to avoid an error.
12484 Use char because int might match the return type of a GCC
12485 builtin and then its argument prototype would still apply. */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 char __res_send ();
12491 main ()
12493 return __res_send ();
12495 return 0;
12497 _ACEOF
12498 if ac_fn_c_try_link "$LINENO"; then :
12499 ac_cv_lib_resolv___res_send=yes
12500 else
12501 ac_cv_lib_resolv___res_send=no
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12508 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12509 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12510 resolv=yes
12519 if test "$resolv" = yes ; then
12520 RESOLVLIB=-lresolv
12521 else
12522 RESOLVLIB=
12524 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12525 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12529 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12530 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 ac_check_lib_save_LIBS=$LIBS
12534 LIBS="-lhesiod $RESOLVLIB $LIBS"
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12541 #ifdef __cplusplus
12542 extern "C"
12543 #endif
12544 char hes_getmailhost ();
12546 main ()
12548 return hes_getmailhost ();
12550 return 0;
12552 _ACEOF
12553 if ac_fn_c_try_link "$LINENO"; then :
12554 ac_cv_lib_hesiod_hes_getmailhost=yes
12555 else
12556 ac_cv_lib_hesiod_hes_getmailhost=no
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12563 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12564 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12565 hesiod=yes
12566 else
12573 if test x"$hesiod" = xyes; then
12575 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12577 LIBHESIOD=-lhesiod
12582 # Do we need libresolv (due to res_init or Hesiod)?
12583 if test "$resolv" = yes ; then
12585 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12587 LIBRESOLV=-lresolv
12588 else
12589 LIBRESOLV=
12593 # These tell us which Kerberos-related libraries to use.
12594 COM_ERRLIB=
12595 CRYPTOLIB=
12596 KRB5LIB=
12597 DESLIB=
12598 KRB4LIB=
12600 if test "${with_kerberos}" != no; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12602 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12603 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 ac_check_lib_save_LIBS=$LIBS
12607 LIBS="-lcom_err $LIBS"
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 char com_err ();
12619 main ()
12621 return com_err ();
12623 return 0;
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12627 ac_cv_lib_com_err_com_err=yes
12628 else
12629 ac_cv_lib_com_err_com_err=no
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 LIBS=$ac_check_lib_save_LIBS
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12636 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12637 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12638 have_com_err=yes
12639 else
12640 have_com_err=no
12643 if test $have_com_err = yes; then
12644 COM_ERRLIB=-lcom_err
12645 LIBS="$COM_ERRLIB $LIBS"
12647 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12651 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12652 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12653 $as_echo_n "(cached) " >&6
12654 else
12655 ac_check_lib_save_LIBS=$LIBS
12656 LIBS="-lcrypto $LIBS"
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12660 /* Override any GCC internal prototype to avoid an error.
12661 Use char because int might match the return type of a GCC
12662 builtin and then its argument prototype would still apply. */
12663 #ifdef __cplusplus
12664 extern "C"
12665 #endif
12666 char mit_des_cbc_encrypt ();
12668 main ()
12670 return mit_des_cbc_encrypt ();
12672 return 0;
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12677 else
12678 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12680 rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12682 LIBS=$ac_check_lib_save_LIBS
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12685 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12686 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12687 have_crypto=yes
12688 else
12689 have_crypto=no
12692 if test $have_crypto = yes; then
12693 CRYPTOLIB=-lcrypto
12694 LIBS="$CRYPTOLIB $LIBS"
12696 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12700 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12701 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12703 else
12704 ac_check_lib_save_LIBS=$LIBS
12705 LIBS="-lk5crypto $LIBS"
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12709 /* Override any GCC internal prototype to avoid an error.
12710 Use char because int might match the return type of a GCC
12711 builtin and then its argument prototype would still apply. */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char mit_des_cbc_encrypt ();
12717 main ()
12719 return mit_des_cbc_encrypt ();
12721 return 0;
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12726 else
12727 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12729 rm -f core conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12734 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12735 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12736 have_k5crypto=yes
12737 else
12738 have_k5crypto=no
12741 if test $have_k5crypto = yes; then
12742 CRYPTOLIB=-lk5crypto
12743 LIBS="$CRYPTOLIB $LIBS"
12745 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12749 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12750 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 ac_check_lib_save_LIBS=$LIBS
12754 LIBS="-lkrb5 $LIBS"
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char krb5_init_context ();
12766 main ()
12768 return krb5_init_context ();
12770 return 0;
12772 _ACEOF
12773 if ac_fn_c_try_link "$LINENO"; then :
12774 ac_cv_lib_krb5_krb5_init_context=yes
12775 else
12776 ac_cv_lib_krb5_krb5_init_context=no
12778 rm -f core conftest.err conftest.$ac_objext \
12779 conftest$ac_exeext conftest.$ac_ext
12780 LIBS=$ac_check_lib_save_LIBS
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12783 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12784 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12785 have_krb5=yes
12786 else
12787 have_krb5=no
12790 if test $have_krb5=yes; then
12791 KRB5LIB=-lkrb5
12792 LIBS="$KRB5LIB $LIBS"
12794 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12797 if test "${with_kerberos5}" = no; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12799 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12800 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 ac_check_lib_save_LIBS=$LIBS
12804 LIBS="-ldes425 $LIBS"
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12808 /* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
12811 #ifdef __cplusplus
12812 extern "C"
12813 #endif
12814 char des_cbc_encrypt ();
12816 main ()
12818 return des_cbc_encrypt ();
12820 return 0;
12822 _ACEOF
12823 if ac_fn_c_try_link "$LINENO"; then :
12824 ac_cv_lib_des425_des_cbc_encrypt=yes
12825 else
12826 ac_cv_lib_des425_des_cbc_encrypt=no
12828 rm -f core conftest.err conftest.$ac_objext \
12829 conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12833 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12834 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12835 have_des425=yes
12836 else
12837 have_des425=no
12840 if test $have_des425 = yes; then
12841 DESLIB=-ldes425
12842 LIBS="$DESLIB $LIBS"
12844 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12846 else
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12848 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12849 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 ac_check_lib_save_LIBS=$LIBS
12853 LIBS="-ldes $LIBS"
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char des_cbc_encrypt ();
12865 main ()
12867 return des_cbc_encrypt ();
12869 return 0;
12871 _ACEOF
12872 if ac_fn_c_try_link "$LINENO"; then :
12873 ac_cv_lib_des_des_cbc_encrypt=yes
12874 else
12875 ac_cv_lib_des_des_cbc_encrypt=no
12877 rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12882 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12883 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
12884 have_des=yes
12885 else
12886 have_des=no
12889 if test $have_des = yes; then
12890 DESLIB=-ldes
12891 LIBS="$DESLIB $LIBS"
12893 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
12898 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12899 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
12900 $as_echo_n "(cached) " >&6
12901 else
12902 ac_check_lib_save_LIBS=$LIBS
12903 LIBS="-lkrb4 $LIBS"
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12910 #ifdef __cplusplus
12911 extern "C"
12912 #endif
12913 char krb_get_cred ();
12915 main ()
12917 return krb_get_cred ();
12919 return 0;
12921 _ACEOF
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_lib_krb4_krb_get_cred=yes
12924 else
12925 ac_cv_lib_krb4_krb_get_cred=no
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12932 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12933 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
12934 have_krb4=yes
12935 else
12936 have_krb4=no
12939 if test $have_krb4 = yes; then
12940 KRB4LIB=-lkrb4
12941 LIBS="$KRB4LIB $LIBS"
12943 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
12945 else
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12947 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12948 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
12949 $as_echo_n "(cached) " >&6
12950 else
12951 ac_check_lib_save_LIBS=$LIBS
12952 LIBS="-lkrb $LIBS"
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12956 /* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12959 #ifdef __cplusplus
12960 extern "C"
12961 #endif
12962 char krb_get_cred ();
12964 main ()
12966 return krb_get_cred ();
12968 return 0;
12970 _ACEOF
12971 if ac_fn_c_try_link "$LINENO"; then :
12972 ac_cv_lib_krb_krb_get_cred=yes
12973 else
12974 ac_cv_lib_krb_krb_get_cred=no
12976 rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
12978 LIBS=$ac_check_lib_save_LIBS
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
12981 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12982 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
12983 have_krb=yes
12984 else
12985 have_krb=no
12988 if test $have_krb = yes; then
12989 KRB4LIB=-lkrb
12990 LIBS="$KRB4LIB $LIBS"
12992 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
12998 if test "${with_kerberos5}" != no; then
12999 for ac_header in krb5.h
13000 do :
13001 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13002 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13003 cat >>confdefs.h <<_ACEOF
13004 #define HAVE_KRB5_H 1
13005 _ACEOF
13006 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13008 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define HAVE_KRB5_ERROR_TEXT 1
13012 _ACEOF
13016 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13018 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13020 cat >>confdefs.h <<_ACEOF
13021 #define HAVE_KRB5_ERROR_E_TEXT 1
13022 _ACEOF
13029 done
13031 else
13032 for ac_header in des.h
13033 do :
13034 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13035 if test "x$ac_cv_header_des_h" = x""yes; then :
13036 cat >>confdefs.h <<_ACEOF
13037 #define HAVE_DES_H 1
13038 _ACEOF
13040 else
13041 for ac_header in kerberosIV/des.h
13042 do :
13043 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13044 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13045 cat >>confdefs.h <<_ACEOF
13046 #define HAVE_KERBEROSIV_DES_H 1
13047 _ACEOF
13049 else
13050 for ac_header in kerberos/des.h
13051 do :
13052 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13053 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13054 cat >>confdefs.h <<_ACEOF
13055 #define HAVE_KERBEROS_DES_H 1
13056 _ACEOF
13060 done
13064 done
13068 done
13070 for ac_header in krb.h
13071 do :
13072 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13073 if test "x$ac_cv_header_krb_h" = x""yes; then :
13074 cat >>confdefs.h <<_ACEOF
13075 #define HAVE_KRB_H 1
13076 _ACEOF
13078 else
13079 for ac_header in kerberosIV/krb.h
13080 do :
13081 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13082 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13083 cat >>confdefs.h <<_ACEOF
13084 #define HAVE_KERBEROSIV_KRB_H 1
13085 _ACEOF
13087 else
13088 for ac_header in kerberos/krb.h
13089 do :
13090 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13091 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13092 cat >>confdefs.h <<_ACEOF
13093 #define HAVE_KERBEROS_KRB_H 1
13094 _ACEOF
13098 done
13102 done
13106 done
13109 for ac_header in com_err.h
13110 do :
13111 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13112 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13113 cat >>confdefs.h <<_ACEOF
13114 #define HAVE_COM_ERR_H 1
13115 _ACEOF
13119 done
13129 # Solaris requires -lintl if you want strerror (which calls dgettext)
13130 # to return localized messages.
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13132 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13133 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-lintl $LIBS"
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13144 #ifdef __cplusplus
13145 extern "C"
13146 #endif
13147 char dgettext ();
13149 main ()
13151 return dgettext ();
13153 return 0;
13155 _ACEOF
13156 if ac_fn_c_try_link "$LINENO"; then :
13157 ac_cv_lib_intl_dgettext=yes
13158 else
13159 ac_cv_lib_intl_dgettext=no
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163 LIBS=$ac_check_lib_save_LIBS
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13166 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13167 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13168 cat >>confdefs.h <<_ACEOF
13169 #define HAVE_LIBINTL 1
13170 _ACEOF
13172 LIBS="-lintl $LIBS"
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13178 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13179 if test "${emacs_cv_localtime_cache+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 if test x$ac_cv_func_tzset = xyes; then
13183 if test "$cross_compiling" = yes; then :
13184 # If we have tzset, assume the worst when cross-compiling.
13185 emacs_cv_localtime_cache=yes
13186 else
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189 #include <time.h>
13190 extern char **environ;
13191 unset_TZ ()
13193 char **from, **to;
13194 for (to = from = environ; (*to = *from); from++)
13195 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13196 to++;
13198 char TZ_GMT0[] = "TZ=GMT0";
13199 char TZ_PST8[] = "TZ=PST8";
13200 main()
13202 time_t now = time ((time_t *) 0);
13203 int hour_GMT0, hour_unset;
13204 if (putenv (TZ_GMT0) != 0)
13205 exit (1);
13206 hour_GMT0 = localtime (&now)->tm_hour;
13207 unset_TZ ();
13208 hour_unset = localtime (&now)->tm_hour;
13209 if (putenv (TZ_PST8) != 0)
13210 exit (1);
13211 if (localtime (&now)->tm_hour == hour_GMT0)
13212 exit (1);
13213 unset_TZ ();
13214 if (localtime (&now)->tm_hour != hour_unset)
13215 exit (1);
13216 exit (0);
13218 _ACEOF
13219 if ac_fn_c_try_run "$LINENO"; then :
13220 emacs_cv_localtime_cache=no
13221 else
13222 emacs_cv_localtime_cache=yes
13224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13225 conftest.$ac_objext conftest.beam conftest.$ac_ext
13228 else
13229 # If we lack tzset, report that localtime does not cache TZ,
13230 # since we can't invalidate the cache if we don't have tzset.
13231 emacs_cv_localtime_cache=no
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13235 $as_echo "$emacs_cv_localtime_cache" >&6; }
13236 if test $emacs_cv_localtime_cache = yes; then
13238 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13242 if test "x$HAVE_TIMEVAL" = xyes; then
13243 for ac_func in gettimeofday
13244 do :
13245 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13246 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_GETTIMEOFDAY 1
13249 _ACEOF
13252 done
13254 if test $ac_cv_func_gettimeofday = yes; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13256 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13257 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
13259 else
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 #ifdef TIME_WITH_SYS_TIME
13264 #include <sys/time.h>
13265 #include <time.h>
13266 #else
13267 #ifdef HAVE_SYS_TIME_H
13268 #include <sys/time.h>
13269 #else
13270 #include <time.h>
13271 #endif
13272 #endif
13274 main ()
13276 struct timeval time;
13277 gettimeofday (&time, 0);
13279 return 0;
13281 _ACEOF
13282 if ac_fn_c_try_compile "$LINENO"; then :
13283 emacs_cv_gettimeofday_two_arguments=yes
13284 else
13285 emacs_cv_gettimeofday_two_arguments=no
13287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13290 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13291 if test $emacs_cv_gettimeofday_two_arguments = no; then
13293 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13299 ok_so_far=yes
13300 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13301 if test "x$ac_cv_func_socket" = x""yes; then :
13303 else
13304 ok_so_far=no
13307 if test $ok_so_far = yes; then
13308 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13309 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13311 else
13312 ok_so_far=no
13317 if test $ok_so_far = yes; then
13318 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13319 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13321 else
13322 ok_so_far=no
13327 if test $ok_so_far = yes; then
13329 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13333 for ac_header in sys/ioctl.h
13334 do :
13335 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13336 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13337 cat >>confdefs.h <<_ACEOF
13338 #define HAVE_SYS_IOCTL_H 1
13339 _ACEOF
13343 done
13346 if test -f /usr/lpp/X11/bin/smt.exp; then
13348 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13353 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13354 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13358 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13360 else
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13365 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13366 if test "x$ac_cv_type_pid_t" = x""yes; then :
13368 else
13370 cat >>confdefs.h <<_ACEOF
13371 #define pid_t int
13372 _ACEOF
13376 for ac_header in vfork.h
13377 do :
13378 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13379 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13380 cat >>confdefs.h <<_ACEOF
13381 #define HAVE_VFORK_H 1
13382 _ACEOF
13386 done
13388 for ac_func in fork vfork
13389 do :
13390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13392 eval as_val=\$$as_ac_var
13393 if test "x$as_val" = x""yes; then :
13394 cat >>confdefs.h <<_ACEOF
13395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13396 _ACEOF
13399 done
13401 if test "x$ac_cv_func_fork" = xyes; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13403 $as_echo_n "checking for working fork... " >&6; }
13404 if test "${ac_cv_func_fork_works+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407 if test "$cross_compiling" = yes; then :
13408 ac_cv_func_fork_works=cross
13409 else
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 $ac_includes_default
13414 main ()
13417 /* By Ruediger Kuhlmann. */
13418 return fork () < 0;
13421 return 0;
13423 _ACEOF
13424 if ac_fn_c_try_run "$LINENO"; then :
13425 ac_cv_func_fork_works=yes
13426 else
13427 ac_cv_func_fork_works=no
13429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13430 conftest.$ac_objext conftest.beam conftest.$ac_ext
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13435 $as_echo "$ac_cv_func_fork_works" >&6; }
13437 else
13438 ac_cv_func_fork_works=$ac_cv_func_fork
13440 if test "x$ac_cv_func_fork_works" = xcross; then
13441 case $host in
13442 *-*-amigaos* | *-*-msdosdjgpp*)
13443 # Override, as these systems have only a dummy fork() stub
13444 ac_cv_func_fork_works=no
13447 ac_cv_func_fork_works=yes
13449 esac
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13451 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13453 ac_cv_func_vfork_works=$ac_cv_func_vfork
13454 if test "x$ac_cv_func_vfork" = xyes; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13456 $as_echo_n "checking for working vfork... " >&6; }
13457 if test "${ac_cv_func_vfork_works+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 if test "$cross_compiling" = yes; then :
13461 ac_cv_func_vfork_works=cross
13462 else
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 /* Thanks to Paul Eggert for this test. */
13466 $ac_includes_default
13467 #include <sys/wait.h>
13468 #ifdef HAVE_VFORK_H
13469 # include <vfork.h>
13470 #endif
13471 /* On some sparc systems, changes by the child to local and incoming
13472 argument registers are propagated back to the parent. The compiler
13473 is told about this with #include <vfork.h>, but some compilers
13474 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13475 static variable whose address is put into a register that is
13476 clobbered by the vfork. */
13477 static void
13478 #ifdef __cplusplus
13479 sparc_address_test (int arg)
13480 # else
13481 sparc_address_test (arg) int arg;
13482 #endif
13484 static pid_t child;
13485 if (!child) {
13486 child = vfork ();
13487 if (child < 0) {
13488 perror ("vfork");
13489 _exit(2);
13491 if (!child) {
13492 arg = getpid();
13493 write(-1, "", 0);
13494 _exit (arg);
13500 main ()
13502 pid_t parent = getpid ();
13503 pid_t child;
13505 sparc_address_test (0);
13507 child = vfork ();
13509 if (child == 0) {
13510 /* Here is another test for sparc vfork register problems. This
13511 test uses lots of local variables, at least as many local
13512 variables as main has allocated so far including compiler
13513 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13514 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13515 reuse the register of parent for one of the local variables,
13516 since it will think that parent can't possibly be used any more
13517 in this routine. Assigning to the local variable will thus
13518 munge parent in the parent process. */
13519 pid_t
13520 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13521 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13522 /* Convince the compiler that p..p7 are live; otherwise, it might
13523 use the same hardware register for all 8 local variables. */
13524 if (p != p1 || p != p2 || p != p3 || p != p4
13525 || p != p5 || p != p6 || p != p7)
13526 _exit(1);
13528 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13529 from child file descriptors. If the child closes a descriptor
13530 before it execs or exits, this munges the parent's descriptor
13531 as well. Test for this by closing stdout in the child. */
13532 _exit(close(fileno(stdout)) != 0);
13533 } else {
13534 int status;
13535 struct stat st;
13537 while (wait(&status) != child)
13539 return (
13540 /* Was there some problem with vforking? */
13541 child < 0
13543 /* Did the child fail? (This shouldn't happen.) */
13544 || status
13546 /* Did the vfork/compiler bug occur? */
13547 || parent != getpid()
13549 /* Did the file descriptor bug occur? */
13550 || fstat(fileno(stdout), &st) != 0
13554 _ACEOF
13555 if ac_fn_c_try_run "$LINENO"; then :
13556 ac_cv_func_vfork_works=yes
13557 else
13558 ac_cv_func_vfork_works=no
13560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13561 conftest.$ac_objext conftest.beam conftest.$ac_ext
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13566 $as_echo "$ac_cv_func_vfork_works" >&6; }
13569 if test "x$ac_cv_func_fork_works" = xcross; then
13570 ac_cv_func_vfork_works=$ac_cv_func_vfork
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13572 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13575 if test "x$ac_cv_func_vfork_works" = xyes; then
13577 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13579 else
13581 $as_echo "#define vfork fork" >>confdefs.h
13584 if test "x$ac_cv_func_fork_works" = xyes; then
13586 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13592 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13593 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13594 $as_echo_n "(cached) " >&6
13595 else
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13598 #include <langinfo.h>
13600 main ()
13602 char* cs = nl_langinfo(CODESET);
13604 return 0;
13606 _ACEOF
13607 if ac_fn_c_try_link "$LINENO"; then :
13608 emacs_cv_langinfo_codeset=yes
13609 else
13610 emacs_cv_langinfo_codeset=no
13612 rm -f core conftest.err conftest.$ac_objext \
13613 conftest$ac_exeext conftest.$ac_ext
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13617 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13618 if test $emacs_cv_langinfo_codeset = yes; then
13620 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13624 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13625 if test "x$ac_cv_type_size_t" = x""yes; then :
13627 cat >>confdefs.h <<_ACEOF
13628 #define HAVE_SIZE_T 1
13629 _ACEOF
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13636 $as_echo_n "checking for mbstate_t... " >&6; }
13637 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 $ac_includes_default
13643 # include <wchar.h>
13645 main ()
13647 mbstate_t x; return sizeof x;
13649 return 0;
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 ac_cv_type_mbstate_t=yes
13654 else
13655 ac_cv_type_mbstate_t=no
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13660 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13661 if test $ac_cv_type_mbstate_t = yes; then
13663 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13665 else
13667 $as_echo "#define mbstate_t int" >>confdefs.h
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13672 $as_echo_n "checking for C restrict keyword... " >&6; }
13673 if test "${emacs_cv_c_restrict+set}" = set; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678 void fred (int *restrict x);
13680 main ()
13684 return 0;
13686 _ACEOF
13687 if ac_fn_c_try_compile "$LINENO"; then :
13688 emacs_cv_c_restrict=yes
13689 else
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 void fred (int *__restrict x);
13694 main ()
13698 return 0;
13700 _ACEOF
13701 if ac_fn_c_try_compile "$LINENO"; then :
13702 emacs_cv_c_restrict=__restrict
13703 else
13704 emacs_cv_c_restrict=no
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13711 $as_echo "$emacs_cv_c_restrict" >&6; }
13712 case "$emacs_cv_c_restrict" in
13713 yes) emacs_restrict=restrict;;
13714 no) emacs_restrict="";;
13715 *) emacs_restrict="$emacs_cv_c_restrict";;
13716 esac
13717 if test "$emacs_restrict" != __restrict; then
13719 cat >>confdefs.h <<_ACEOF
13720 #define __restrict $emacs_restrict
13721 _ACEOF
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13726 $as_echo_n "checking for C restricted array declarations... " >&6; }
13727 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13732 void fred (int x[__restrict]);
13734 main ()
13738 return 0;
13740 _ACEOF
13741 if ac_fn_c_try_compile "$LINENO"; then :
13742 emacs_cv_c_restrict_arr=yes
13743 else
13744 emacs_cv_c_restrict_arr=no
13746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13749 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13750 if test "$emacs_cv_c_restrict_arr" = yes; then
13752 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13758 # Set up the CFLAGS for real compilation, so we can substitute it.
13759 CFLAGS="$REAL_CFLAGS"
13760 CPPFLAGS="$REAL_CPPFLAGS"
13762 ## Hack to detect a buggy GCC version.
13763 if test "x$GCC" = xyes \
13764 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13765 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13766 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13767 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13770 #### Find out which version of Emacs this is.
13771 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13772 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13773 if test x"${version}" = x; then
13774 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13776 if test x"${version}" != x"$PACKAGE_VERSION"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13778 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13781 ### Specify what sort of things we'll be editing into Makefile and config.h.
13782 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13785 ## Unused?
13806 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13807 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13808 ## end of LIBX_BASE, but nothing ever set it.
13813 ## Used in lwlib/Makefile.in.
13826 cat >>confdefs.h <<_ACEOF
13827 #define EMACS_CONFIGURATION "${canonical}"
13828 _ACEOF
13831 cat >>confdefs.h <<_ACEOF
13832 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13833 _ACEOF
13836 cat >>confdefs.h <<_ACEOF
13837 #define config_machfile "${machfile}"
13838 _ACEOF
13841 cat >>confdefs.h <<_ACEOF
13842 #define config_opsysfile "${opsysfile}"
13843 _ACEOF
13846 XMENU_OBJ=
13847 XOBJ=
13848 FONT_OBJ=
13849 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13851 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13853 XMENU_OBJ=xmenu.o
13854 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13855 FONT_OBJ=xfont.o
13856 if test "$HAVE_XFT" = "yes"; then
13857 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
13858 elif test "$HAVE_FREETYPE" = "yes"; then
13859 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
13867 WIDGET_OBJ=
13868 MOTIF_LIBW=
13869 if test "${USE_X_TOOLKIT}" != "none" ; then
13870 WIDGET_OBJ=widget.o
13872 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13874 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13876 $as_echo "#define USE_LUCID 1" >>confdefs.h
13878 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13880 $as_echo "#define USE_MOTIF 1" >>confdefs.h
13882 MOTIF_LIBW=-lXm
13883 case "$opsys" in
13884 gnu-linux)
13885 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13886 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
13889 unixware)
13890 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
13891 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
13892 MOTIF_LIBW="MOTIF_LIBW -lXimp"
13895 aix4-2)
13896 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
13897 MOTIF_LIBW="$MOTIF_LIBW -li18n"
13899 esac
13900 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
13905 TOOLKIT_LIBW=
13906 case "$USE_X_TOOLKIT" in
13907 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
13908 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
13909 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
13910 esac
13913 if test "$USE_X_TOOLKIT" = "none"; then
13914 LIBXT_OTHER="\$(LIBXSM)"
13915 OLDXMENU_TARGET="really-oldXMenu"
13916 else
13917 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
13918 OLDXMENU_TARGET="really-lwlib"
13922 ## The X Menu stuff is present in the X10 distribution, but missing
13923 ## from X11. If we have X10, just use the installed library;
13924 ## otherwise, use our own copy.
13925 if test "${HAVE_X11}" = "yes" ; then
13927 $as_echo "#define HAVE_X11 1" >>confdefs.h
13930 if test "$USE_X_TOOLKIT" = "none"; then
13931 OLDXMENU="\${oldXMenudir}libXMenu11.a"
13932 else
13933 OLDXMENU="\${lwlibdir}liblw.a"
13935 LIBXMENU="\$(OLDXMENU)"
13936 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
13937 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
13938 else
13939 ## For a syntactically valid Makefile; not actually used for anything.
13940 ## See comments in src/Makefile.in.
13941 OLDXMENU=nothing
13942 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
13943 if test "${HAVE_X_WINDOWS}" = "yes"; then
13944 LIBXMENU="-lXMenu"
13945 else
13946 LIBXMENU=
13948 LIBX_OTHER=
13949 OLDXMENU_DEPS=
13952 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
13953 OLDXMENU_TARGET=
13954 OLDXMENU=nothing
13955 LIBXMENU=
13956 OLDXMENU_DEPS=
13965 if test "${HAVE_MENUS}" = "yes" ; then
13967 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
13971 if test "${GNU_MALLOC}" = "yes" ; then
13973 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
13977 RALLOC_OBJ=
13978 if test "${REL_ALLOC}" = "yes" ; then
13980 $as_echo "#define REL_ALLOC 1" >>confdefs.h
13983 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
13987 if test "$opsys" = "cygwin"; then
13988 CYGWIN_OBJ="sheap.o"
13989 ## Cygwin differs because of its unexec().
13990 PRE_ALLOC_OBJ=
13991 POST_ALLOC_OBJ=lastfile.o
13992 else
13993 CYGWIN_OBJ=
13994 PRE_ALLOC_OBJ=lastfile.o
13995 POST_ALLOC_OBJ=
14002 case "$opsys" in
14003 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14005 darwin)
14006 ## The -headerpad option tells ld (see man page) to leave room at the
14007 ## end of the header for adding load commands. Needed for dumping.
14008 ## 0x690 is the total size of 30 segment load commands (at 56
14009 ## each); under Cocoa 31 commands are required.
14010 if test "$HAVE_NS" = "yes"; then
14011 libs_nsgui="-framework AppKit"
14012 headerpad_extra=6C8
14013 else
14014 libs_nsgui=
14015 headerpad_extra=690
14017 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14019 ## This is here because src/Makefile.in did some extra fiddling around
14020 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14021 ## #ifndef LD_SWITCH_SYSTEM
14022 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14023 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14024 ## not using gcc, darwin system not on an alpha (ie darwin, since
14025 ## darwin + alpha does not occur).
14026 ## Because this was done in src/Makefile.in, the resulting part of
14027 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14028 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14029 ## rather than LD_SWITCH_SYSTEM.
14030 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14031 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14034 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14035 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14036 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14037 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14038 ## had different values in configure (in ac_link) and src/Makefile.in.
14039 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14040 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14042 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14043 esac
14045 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14046 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14052 LINKER=
14053 ORDINARY_LINK=
14054 case "$opsys" in
14055 ## gnu: GNU needs its own crt0.
14056 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14058 cygwin) LINKER="\$(CC)" ;;
14060 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14061 ## library search parth, i.e. it won't search /usr/lib for libc and
14062 ## friends. Using -nostartfiles instead avoids this problem, and
14063 ## will also work on earlier NetBSD releases.
14064 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
14066 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14067 ## MkLinux/LinuxPPC needs this.
14068 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14069 gnu-*)
14070 case "$machine" in
14071 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
14072 esac
14074 esac
14077 PRE_EDIT_LDFLAGS=
14078 POST_EDIT_LDFLAGS=
14079 if test "x$ORDINARY_LINK" = "xyes"; then
14081 LINKER="\$(CC)"
14083 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14086 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14087 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14088 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14090 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14091 ## places that are difficult to figure out at make time. Fortunately,
14092 ## these same versions allow you to pass arbitrary flags on to the
14093 ## linker, so there is no reason not to use it as a linker.
14095 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14096 ## searching for libraries in its internal directories, so we have to
14097 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14098 LINKER="\$(CC) -nostdlib"
14099 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
14100 ## See prefix-args.c for an explanation of why we do not do this with the
14101 ## shell''s ``for'' construct. Note that sane people do not have '.' in
14102 ## their paths, so we must use ./prefix-args.
14103 ## TODO either make prefix-args check ORDINARY_LINK internally,
14104 ## or remove it altogether (bug#6184), removing the need for this hack.
14105 PRE_EDIT_LDFLAGS='`./prefix-args -Xlinker'
14106 POST_EDIT_LDFLAGS='`'
14111 test "x$LINKER" = "x" && LINKER=ld
14112 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14113 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
14118 ## FIXME? The logic here is not precisely the same as that above.
14119 ## There is no check here for a pre-defined LINKER.
14120 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14121 LIB_GCC=
14122 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14124 case "$opsys" in
14125 ## cygwin: don't link against static libgcc.
14126 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
14128 gnu-*)
14129 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14130 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14131 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14132 if test "$machine" = "arm"; then
14133 LIB_GCC="-lgcc_s"
14134 else
14135 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14136 ## immediately undefine it again and redefine it to empty.
14137 ## Was the C_SWITCH_X_SITE part really necessary?
14138 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14139 LIB_GCC=
14143 ## Ask GCC where to find libgcc.a.
14144 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14145 esac
14149 TOOLTIP_SUPPORT=
14150 WINDOW_SUPPORT=
14151 ## If we're using X11/GNUstep, define some consequences.
14152 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14154 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14157 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14159 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14160 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14162 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14163 test "$HAVE_X_WINDOWS" = "yes" && \
14164 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14174 #### Report on what we decided to do.
14175 #### Report GTK as a toolkit, even if it doesn't use Xt.
14176 #### It makes printing result more understandable as using GTK sets
14177 #### toolkit_scroll_bars to yes by default.
14178 if test "${HAVE_GTK}" = "yes"; then
14179 USE_X_TOOLKIT=GTK
14182 echo "
14183 Configured for \`${canonical}'.
14185 Where should the build process find the source code? ${srcdir}
14186 What operating system and machine description files should Emacs use?
14187 \`${opsysfile}' and \`${machfile}'
14188 What compiler should emacs be built with? ${CC} ${CFLAGS}
14189 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14190 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14191 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14192 What window system should Emacs use? ${window_system}
14193 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14195 if test -n "${x_includes}"; then
14196 echo " Where do we find X Windows header files? ${x_includes}"
14197 else
14198 echo " Where do we find X Windows header files? Standard dirs"
14200 if test -n "${x_libraries}"; then
14201 echo " Where do we find X Windows libraries? ${x_libraries}"
14202 else
14203 echo " Where do we find X Windows libraries? Standard dirs"
14206 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14207 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14208 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14209 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14210 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14211 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14212 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14213 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14214 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14215 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14216 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14218 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14219 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14220 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14221 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14223 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14224 echo
14226 if test $USE_XASSERTS = yes; then
14227 echo " Compiling with asserts turned on."
14228 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14231 echo
14233 if test "$HAVE_NS" = "yes"; then
14234 echo
14235 echo "You must run \"make install\" in order to test the built application.
14236 The installed application will go to nextstep/Emacs.app and can be
14237 run or moved from there."
14238 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14239 echo "The application will be fully self-contained."
14240 else
14241 echo "The lisp resources for the application will be installed under ${prefix}.
14242 You may need to run \"make install\" with sudo. The application will fail
14243 to run if these resources are not installed."
14245 echo
14248 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14249 echo "D-Bus integration has been tested for GNU/Linux only."
14250 echo
14254 # Remove any trailing slashes in these variables.
14255 test "${prefix}" != NONE &&
14256 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14257 test "${exec_prefix}" != NONE &&
14258 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14260 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"
14262 ac_config_commands="$ac_config_commands default"
14264 cat >confcache <<\_ACEOF
14265 # This file is a shell script that caches the results of configure
14266 # tests run on this system so they can be shared between configure
14267 # scripts and configure runs, see configure's option --config-cache.
14268 # It is not useful on other systems. If it contains results you don't
14269 # want to keep, you may remove or edit it.
14271 # config.status only pays attention to the cache file if you give it
14272 # the --recheck option to rerun configure.
14274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14276 # following values.
14278 _ACEOF
14280 # The following way of writing the cache mishandles newlines in values,
14281 # but we know of no workaround that is simple, portable, and efficient.
14282 # So, we kill variables containing newlines.
14283 # Ultrix sh set writes to stderr and can't be redirected directly,
14284 # and sets the high bit in the cache file unless we assign to the vars.
14286 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14287 eval ac_val=\$$ac_var
14288 case $ac_val in #(
14289 *${as_nl}*)
14290 case $ac_var in #(
14291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14293 esac
14294 case $ac_var in #(
14295 _ | IFS | as_nl) ;; #(
14296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14297 *) { eval $ac_var=; unset $ac_var;} ;;
14298 esac ;;
14299 esac
14300 done
14302 (set) 2>&1 |
14303 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14304 *${as_nl}ac_space=\ *)
14305 # `set' does not quote correctly, so add quotes: double-quote
14306 # substitution turns \\\\ into \\, and sed turns \\ into \.
14307 sed -n \
14308 "s/'/'\\\\''/g;
14309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14310 ;; #(
14312 # `set' quotes correctly as required by POSIX, so do not add quotes.
14313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14315 esac |
14316 sort
14318 sed '
14319 /^ac_cv_env_/b end
14320 t clear
14321 :clear
14322 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14323 t end
14324 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14325 :end' >>confcache
14326 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14327 if test -w "$cache_file"; then
14328 test "x$cache_file" != "x/dev/null" &&
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14330 $as_echo "$as_me: updating cache $cache_file" >&6;}
14331 cat confcache >$cache_file
14332 else
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14334 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14337 rm -f confcache
14339 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14340 # Let make expand exec_prefix.
14341 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14343 DEFS=-DHAVE_CONFIG_H
14345 ac_libobjs=
14346 ac_ltlibobjs=
14347 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14348 # 1. Remove the extension, and $U if already installed.
14349 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14350 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14352 # will be set to the directory where LIBOBJS objects are built.
14353 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14354 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14355 done
14356 LIBOBJS=$ac_libobjs
14358 LTLIBOBJS=$ac_ltlibobjs
14362 : ${CONFIG_STATUS=./config.status}
14363 ac_write_fail=0
14364 ac_clean_files_save=$ac_clean_files
14365 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14367 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14368 as_write_fail=0
14369 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14370 #! $SHELL
14371 # Generated by $as_me.
14372 # Run this file to recreate the current configuration.
14373 # Compiler output produced by configure, useful for debugging
14374 # configure, is in config.log if it exists.
14376 debug=false
14377 ac_cs_recheck=false
14378 ac_cs_silent=false
14380 SHELL=\${CONFIG_SHELL-$SHELL}
14381 export SHELL
14382 _ASEOF
14383 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14384 ## -------------------- ##
14385 ## M4sh Initialization. ##
14386 ## -------------------- ##
14388 # Be more Bourne compatible
14389 DUALCASE=1; export DUALCASE # for MKS sh
14390 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14391 emulate sh
14392 NULLCMD=:
14393 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14394 # is contrary to our usage. Disable this feature.
14395 alias -g '${1+"$@"}'='"$@"'
14396 setopt NO_GLOB_SUBST
14397 else
14398 case `(set -o) 2>/dev/null` in #(
14399 *posix*) :
14400 set -o posix ;; #(
14401 *) :
14403 esac
14407 as_nl='
14409 export as_nl
14410 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14411 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14412 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14413 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14414 # Prefer a ksh shell builtin over an external printf program on Solaris,
14415 # but without wasting forks for bash or zsh.
14416 if test -z "$BASH_VERSION$ZSH_VERSION" \
14417 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14418 as_echo='print -r --'
14419 as_echo_n='print -rn --'
14420 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14421 as_echo='printf %s\n'
14422 as_echo_n='printf %s'
14423 else
14424 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14425 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14426 as_echo_n='/usr/ucb/echo -n'
14427 else
14428 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14429 as_echo_n_body='eval
14430 arg=$1;
14431 case $arg in #(
14432 *"$as_nl"*)
14433 expr "X$arg" : "X\\(.*\\)$as_nl";
14434 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14435 esac;
14436 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14438 export as_echo_n_body
14439 as_echo_n='sh -c $as_echo_n_body as_echo'
14441 export as_echo_body
14442 as_echo='sh -c $as_echo_body as_echo'
14445 # The user is always right.
14446 if test "${PATH_SEPARATOR+set}" != set; then
14447 PATH_SEPARATOR=:
14448 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14449 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14450 PATH_SEPARATOR=';'
14455 # IFS
14456 # We need space, tab and new line, in precisely that order. Quoting is
14457 # there to prevent editors from complaining about space-tab.
14458 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14459 # splitting by setting IFS to empty value.)
14460 IFS=" "" $as_nl"
14462 # Find who we are. Look in the path if we contain no directory separator.
14463 case $0 in #((
14464 *[\\/]* ) as_myself=$0 ;;
14465 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14468 IFS=$as_save_IFS
14469 test -z "$as_dir" && as_dir=.
14470 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14471 done
14472 IFS=$as_save_IFS
14475 esac
14476 # We did not find ourselves, most probably we were run as `sh COMMAND'
14477 # in which case we are not to be found in the path.
14478 if test "x$as_myself" = x; then
14479 as_myself=$0
14481 if test ! -f "$as_myself"; then
14482 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14483 exit 1
14486 # Unset variables that we do not need and which cause bugs (e.g. in
14487 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14488 # suppresses any "Segmentation fault" message there. '((' could
14489 # trigger a bug in pdksh 5.2.14.
14490 for as_var in BASH_ENV ENV MAIL MAILPATH
14491 do eval test x\${$as_var+set} = xset \
14492 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14493 done
14494 PS1='$ '
14495 PS2='> '
14496 PS4='+ '
14498 # NLS nuisances.
14499 LC_ALL=C
14500 export LC_ALL
14501 LANGUAGE=C
14502 export LANGUAGE
14504 # CDPATH.
14505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14508 # as_fn_error ERROR [LINENO LOG_FD]
14509 # ---------------------------------
14510 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14511 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14512 # script with status $?, using 1 if that was 0.
14513 as_fn_error ()
14515 as_status=$?; test $as_status -eq 0 && as_status=1
14516 if test "$3"; then
14517 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14518 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14520 $as_echo "$as_me: error: $1" >&2
14521 as_fn_exit $as_status
14522 } # as_fn_error
14525 # as_fn_set_status STATUS
14526 # -----------------------
14527 # Set $? to STATUS, without forking.
14528 as_fn_set_status ()
14530 return $1
14531 } # as_fn_set_status
14533 # as_fn_exit STATUS
14534 # -----------------
14535 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14536 as_fn_exit ()
14538 set +e
14539 as_fn_set_status $1
14540 exit $1
14541 } # as_fn_exit
14543 # as_fn_unset VAR
14544 # ---------------
14545 # Portably unset VAR.
14546 as_fn_unset ()
14548 { eval $1=; unset $1;}
14550 as_unset=as_fn_unset
14551 # as_fn_append VAR VALUE
14552 # ----------------------
14553 # Append the text in VALUE to the end of the definition contained in VAR. Take
14554 # advantage of any shell optimizations that allow amortized linear growth over
14555 # repeated appends, instead of the typical quadratic growth present in naive
14556 # implementations.
14557 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14558 eval 'as_fn_append ()
14560 eval $1+=\$2
14562 else
14563 as_fn_append ()
14565 eval $1=\$$1\$2
14567 fi # as_fn_append
14569 # as_fn_arith ARG...
14570 # ------------------
14571 # Perform arithmetic evaluation on the ARGs, and store the result in the
14572 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14573 # must be portable across $(()) and expr.
14574 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14575 eval 'as_fn_arith ()
14577 as_val=$(( $* ))
14579 else
14580 as_fn_arith ()
14582 as_val=`expr "$@" || test $? -eq 1`
14584 fi # as_fn_arith
14587 if expr a : '\(a\)' >/dev/null 2>&1 &&
14588 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14589 as_expr=expr
14590 else
14591 as_expr=false
14594 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14595 as_basename=basename
14596 else
14597 as_basename=false
14600 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14601 as_dirname=dirname
14602 else
14603 as_dirname=false
14606 as_me=`$as_basename -- "$0" ||
14607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14608 X"$0" : 'X\(//\)$' \| \
14609 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14610 $as_echo X/"$0" |
14611 sed '/^.*\/\([^/][^/]*\)\/*$/{
14612 s//\1/
14615 /^X\/\(\/\/\)$/{
14616 s//\1/
14619 /^X\/\(\/\).*/{
14620 s//\1/
14623 s/.*/./; q'`
14625 # Avoid depending upon Character Ranges.
14626 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14627 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14628 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14629 as_cr_digits='0123456789'
14630 as_cr_alnum=$as_cr_Letters$as_cr_digits
14632 ECHO_C= ECHO_N= ECHO_T=
14633 case `echo -n x` in #(((((
14634 -n*)
14635 case `echo 'xy\c'` in
14636 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14637 xy) ECHO_C='\c';;
14638 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14639 ECHO_T=' ';;
14640 esac;;
14642 ECHO_N='-n';;
14643 esac
14645 rm -f conf$$ conf$$.exe conf$$.file
14646 if test -d conf$$.dir; then
14647 rm -f conf$$.dir/conf$$.file
14648 else
14649 rm -f conf$$.dir
14650 mkdir conf$$.dir 2>/dev/null
14652 if (echo >conf$$.file) 2>/dev/null; then
14653 if ln -s conf$$.file conf$$ 2>/dev/null; then
14654 as_ln_s='ln -s'
14655 # ... but there are two gotchas:
14656 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14657 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14658 # In both cases, we have to default to `cp -p'.
14659 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14660 as_ln_s='cp -p'
14661 elif ln conf$$.file conf$$ 2>/dev/null; then
14662 as_ln_s=ln
14663 else
14664 as_ln_s='cp -p'
14666 else
14667 as_ln_s='cp -p'
14669 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14670 rmdir conf$$.dir 2>/dev/null
14673 # as_fn_mkdir_p
14674 # -------------
14675 # Create "$as_dir" as a directory, including parents if necessary.
14676 as_fn_mkdir_p ()
14679 case $as_dir in #(
14680 -*) as_dir=./$as_dir;;
14681 esac
14682 test -d "$as_dir" || eval $as_mkdir_p || {
14683 as_dirs=
14684 while :; do
14685 case $as_dir in #(
14686 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14687 *) as_qdir=$as_dir;;
14688 esac
14689 as_dirs="'$as_qdir' $as_dirs"
14690 as_dir=`$as_dirname -- "$as_dir" ||
14691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14692 X"$as_dir" : 'X\(//\)[^/]' \| \
14693 X"$as_dir" : 'X\(//\)$' \| \
14694 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14695 $as_echo X"$as_dir" |
14696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14697 s//\1/
14700 /^X\(\/\/\)[^/].*/{
14701 s//\1/
14704 /^X\(\/\/\)$/{
14705 s//\1/
14708 /^X\(\/\).*/{
14709 s//\1/
14712 s/.*/./; q'`
14713 test -d "$as_dir" && break
14714 done
14715 test -z "$as_dirs" || eval "mkdir $as_dirs"
14716 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14719 } # as_fn_mkdir_p
14720 if mkdir -p . 2>/dev/null; then
14721 as_mkdir_p='mkdir -p "$as_dir"'
14722 else
14723 test -d ./-p && rmdir ./-p
14724 as_mkdir_p=false
14727 if test -x / >/dev/null 2>&1; then
14728 as_test_x='test -x'
14729 else
14730 if ls -dL / >/dev/null 2>&1; then
14731 as_ls_L_option=L
14732 else
14733 as_ls_L_option=
14735 as_test_x='
14736 eval sh -c '\''
14737 if test -d "$1"; then
14738 test -d "$1/.";
14739 else
14740 case $1 in #(
14741 -*)set "./$1";;
14742 esac;
14743 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14744 ???[sx]*):;;*)false;;esac;fi
14745 '\'' sh
14748 as_executable_p=$as_test_x
14750 # Sed expression to map a string onto a valid CPP name.
14751 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14753 # Sed expression to map a string onto a valid variable name.
14754 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14757 exec 6>&1
14758 ## ----------------------------------- ##
14759 ## Main body of $CONFIG_STATUS script. ##
14760 ## ----------------------------------- ##
14761 _ASEOF
14762 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14765 # Save the log message, to keep $0 and so on meaningful, and to
14766 # report actual input values of CONFIG_FILES etc. instead of their
14767 # values after options handling.
14768 ac_log="
14769 This file was extended by emacs $as_me 24.0.50, which was
14770 generated by GNU Autoconf 2.65. Invocation command line was
14772 CONFIG_FILES = $CONFIG_FILES
14773 CONFIG_HEADERS = $CONFIG_HEADERS
14774 CONFIG_LINKS = $CONFIG_LINKS
14775 CONFIG_COMMANDS = $CONFIG_COMMANDS
14776 $ $0 $@
14778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14781 _ACEOF
14783 case $ac_config_files in *"
14784 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14785 esac
14787 case $ac_config_headers in *"
14788 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14789 esac
14792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14793 # Files that config.status was made for.
14794 config_files="$ac_config_files"
14795 config_headers="$ac_config_headers"
14796 config_commands="$ac_config_commands"
14798 _ACEOF
14800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14801 ac_cs_usage="\
14802 \`$as_me' instantiates files and other configuration actions
14803 from templates according to the current configuration. Unless the files
14804 and actions are specified as TAGs, all are instantiated by default.
14806 Usage: $0 [OPTION]... [TAG]...
14808 -h, --help print this help, then exit
14809 -V, --version print version number and configuration settings, then exit
14810 --config print configuration, then exit
14811 -q, --quiet, --silent
14812 do not print progress messages
14813 -d, --debug don't remove temporary files
14814 --recheck update $as_me by reconfiguring in the same conditions
14815 --file=FILE[:TEMPLATE]
14816 instantiate the configuration file FILE
14817 --header=FILE[:TEMPLATE]
14818 instantiate the configuration header FILE
14820 Configuration files:
14821 $config_files
14823 Configuration headers:
14824 $config_headers
14826 Configuration commands:
14827 $config_commands
14829 Report bugs to the package provider."
14831 _ACEOF
14832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14833 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14834 ac_cs_version="\\
14835 emacs config.status 24.0.50
14836 configured by $0, generated by GNU Autoconf 2.65,
14837 with options \\"\$ac_cs_config\\"
14839 Copyright (C) 2009 Free Software Foundation, Inc.
14840 This config.status script is free software; the Free Software Foundation
14841 gives unlimited permission to copy, distribute and modify it."
14843 ac_pwd='$ac_pwd'
14844 srcdir='$srcdir'
14845 INSTALL='$INSTALL'
14846 test -n "\$AWK" || AWK=awk
14847 _ACEOF
14849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14850 # The default lists apply if the user does not specify any file.
14851 ac_need_defaults=:
14852 while test $# != 0
14854 case $1 in
14855 --*=*)
14856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14858 ac_shift=:
14861 ac_option=$1
14862 ac_optarg=$2
14863 ac_shift=shift
14865 esac
14867 case $ac_option in
14868 # Handling of the options.
14869 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14870 ac_cs_recheck=: ;;
14871 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14872 $as_echo "$ac_cs_version"; exit ;;
14873 --config | --confi | --conf | --con | --co | --c )
14874 $as_echo "$ac_cs_config"; exit ;;
14875 --debug | --debu | --deb | --de | --d | -d )
14876 debug=: ;;
14877 --file | --fil | --fi | --f )
14878 $ac_shift
14879 case $ac_optarg in
14880 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14881 esac
14882 as_fn_append CONFIG_FILES " '$ac_optarg'"
14883 ac_need_defaults=false;;
14884 --header | --heade | --head | --hea )
14885 $ac_shift
14886 case $ac_optarg in
14887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14888 esac
14889 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14890 ac_need_defaults=false;;
14891 --he | --h)
14892 # Conflict between --help and --header
14893 as_fn_error "ambiguous option: \`$1'
14894 Try \`$0 --help' for more information.";;
14895 --help | --hel | -h )
14896 $as_echo "$ac_cs_usage"; exit ;;
14897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14898 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14899 ac_cs_silent=: ;;
14901 # This is an error.
14902 -*) as_fn_error "unrecognized option: \`$1'
14903 Try \`$0 --help' for more information." ;;
14905 *) as_fn_append ac_config_targets " $1"
14906 ac_need_defaults=false ;;
14908 esac
14909 shift
14910 done
14912 ac_configure_extra_args=
14914 if $ac_cs_silent; then
14915 exec 6>/dev/null
14916 ac_configure_extra_args="$ac_configure_extra_args --silent"
14919 _ACEOF
14920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14921 if \$ac_cs_recheck; then
14922 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14923 shift
14924 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14925 CONFIG_SHELL='$SHELL'
14926 export CONFIG_SHELL
14927 exec "\$@"
14930 _ACEOF
14931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14932 exec 5>>config.log
14934 echo
14935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14936 ## Running $as_me. ##
14937 _ASBOX
14938 $as_echo "$ac_log"
14939 } >&5
14941 _ACEOF
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14944 # INIT-COMMANDS
14946 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
14948 _ACEOF
14950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14952 # Handling of arguments.
14953 for ac_config_target in $ac_config_targets
14955 case $ac_config_target in
14956 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
14957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14958 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
14959 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
14960 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
14961 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
14962 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
14963 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
14964 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14965 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14966 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14967 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14968 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14970 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14971 esac
14972 done
14975 # If the user did not use the arguments to specify the items to instantiate,
14976 # then the envvar interface is used. Set only those that are not.
14977 # We use the long form for the default assignment because of an extremely
14978 # bizarre bug on SunOS 4.1.3.
14979 if $ac_need_defaults; then
14980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14982 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14985 # Have a temporary directory for convenience. Make it in the build tree
14986 # simply because there is no reason against having it here, and in addition,
14987 # creating and moving files from /tmp can sometimes cause problems.
14988 # Hook for its removal unless debugging.
14989 # Note that there is a small window in which the directory will not be cleaned:
14990 # after its creation but before its name has been assigned to `$tmp'.
14991 $debug ||
14993 tmp=
14994 trap 'exit_status=$?
14995 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14997 trap 'as_fn_exit 1' 1 2 13 15
14999 # Create a (secure) tmp directory for tmp files.
15002 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15003 test -n "$tmp" && test -d "$tmp"
15004 } ||
15006 tmp=./conf$$-$RANDOM
15007 (umask 077 && mkdir "$tmp")
15008 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15010 # Set up the scripts for CONFIG_FILES section.
15011 # No need to generate them if there are no CONFIG_FILES.
15012 # This happens for instance with `./config.status config.h'.
15013 if test -n "$CONFIG_FILES"; then
15015 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15016 ac_cs_awk_getline=:
15017 ac_cs_awk_pipe_init=
15018 ac_cs_awk_read_file='
15019 while ((getline aline < (F[key])) > 0)
15020 print(aline)
15021 close(F[key])'
15022 ac_cs_awk_pipe_fini=
15023 else
15024 ac_cs_awk_getline=false
15025 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15026 ac_cs_awk_read_file='
15027 print "|#_!!_#|"
15028 print "cat " F[key] " &&"
15029 '$ac_cs_awk_pipe_init
15030 # The final `:' finishes the AND list.
15031 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15033 ac_cr=`echo X | tr X '\015'`
15034 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15035 # But we know of no other shell where ac_cr would be empty at this
15036 # point, so we can use a bashism as a fallback.
15037 if test "x$ac_cr" = x; then
15038 eval ac_cr=\$\'\\r\'
15040 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15041 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15042 ac_cs_awk_cr='\r'
15043 else
15044 ac_cs_awk_cr=$ac_cr
15047 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15048 _ACEOF
15050 # Create commands to substitute file output variables.
15052 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15053 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15054 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15055 echo "_ACAWK" &&
15056 echo "_ACEOF"
15057 } >conf$$files.sh &&
15058 . ./conf$$files.sh ||
15059 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15060 rm -f conf$$files.sh
15063 echo "cat >conf$$subs.awk <<_ACEOF" &&
15064 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15065 echo "_ACEOF"
15066 } >conf$$subs.sh ||
15067 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15068 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15069 ac_delim='%!_!# '
15070 for ac_last_try in false false false false false :; do
15071 . ./conf$$subs.sh ||
15072 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15074 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15075 if test $ac_delim_n = $ac_delim_num; then
15076 break
15077 elif $ac_last_try; then
15078 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15079 else
15080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15082 done
15083 rm -f conf$$subs.sh
15085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15086 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15087 _ACEOF
15088 sed -n '
15090 s/^/S["/; s/!.*/"]=/
15093 s/^[^!]*!//
15094 :repl
15095 t repl
15096 s/'"$ac_delim"'$//
15097 t delim
15100 s/\(.\{148\}\)..*/\1/
15101 t more1
15102 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15105 b repl
15106 :more1
15107 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15110 s/.\{148\}//
15111 t nl
15112 :delim
15114 s/\(.\{148\}\)..*/\1/
15115 t more2
15116 s/["\\]/\\&/g; s/^/"/; s/$/"/
15119 :more2
15120 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15123 s/.\{148\}//
15124 t delim
15125 ' <conf$$subs.awk | sed '
15126 /^[^""]/{
15128 s/\n//
15130 ' >>$CONFIG_STATUS || ac_write_fail=1
15131 rm -f conf$$subs.awk
15132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15133 _ACAWK
15134 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15135 for (key in S) S_is_set[key] = 1
15136 FS = "\a"
15137 \$ac_cs_awk_pipe_init
15140 line = $ 0
15141 nfields = split(line, field, "@")
15142 substed = 0
15143 len = length(field[1])
15144 for (i = 2; i < nfields; i++) {
15145 key = field[i]
15146 keylen = length(key)
15147 if (S_is_set[key]) {
15148 value = S[key]
15149 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15150 len += length(value) + length(field[++i])
15151 substed = 1
15152 } else
15153 len += 1 + keylen
15155 if (nfields == 3 && !substed) {
15156 key = field[2]
15157 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15158 \$ac_cs_awk_read_file
15159 next
15162 print line
15164 \$ac_cs_awk_pipe_fini
15165 _ACAWK
15166 _ACEOF
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15169 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15170 else
15172 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15173 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15174 _ACEOF
15176 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15177 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15178 # trailing colons and then remove the whole line if VPATH becomes empty
15179 # (actually we leave an empty line to preserve line numbers).
15180 if test "x$srcdir" = x.; then
15181 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15182 s/:*\$(srcdir):*/:/
15183 s/:*\${srcdir}:*/:/
15184 s/:*@srcdir@:*/:/
15185 s/^\([^=]*=[ ]*\):*/\1/
15186 s/:*$//
15187 s/^[^=]*=[ ]*$//
15191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15192 fi # test -n "$CONFIG_FILES"
15194 # Set up the scripts for CONFIG_HEADERS section.
15195 # No need to generate them if there are no CONFIG_HEADERS.
15196 # This happens for instance with `./config.status Makefile'.
15197 if test -n "$CONFIG_HEADERS"; then
15198 cat >"$tmp/defines.awk" <<\_ACAWK ||
15199 BEGIN {
15200 _ACEOF
15202 # Transform confdefs.h into an awk script `defines.awk', embedded as
15203 # here-document in config.status, that substitutes the proper values into
15204 # config.h.in to produce config.h.
15206 # Create a delimiter string that does not exist in confdefs.h, to ease
15207 # handling of long lines.
15208 ac_delim='%!_!# '
15209 for ac_last_try in false false :; do
15210 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15211 if test -z "$ac_t"; then
15212 break
15213 elif $ac_last_try; then
15214 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15215 else
15216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15218 done
15220 # For the awk script, D is an array of macro values keyed by name,
15221 # likewise P contains macro parameters if any. Preserve backslash
15222 # newline sequences.
15224 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15225 sed -n '
15226 s/.\{148\}/&'"$ac_delim"'/g
15227 t rset
15228 :rset
15229 s/^[ ]*#[ ]*define[ ][ ]*/ /
15230 t def
15232 :def
15233 s/\\$//
15234 t bsnl
15235 s/["\\]/\\&/g
15236 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15237 D["\1"]=" \3"/p
15238 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15240 :bsnl
15241 s/["\\]/\\&/g
15242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15243 D["\1"]=" \3\\\\\\n"\\/p
15244 t cont
15245 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15246 t cont
15248 :cont
15250 s/.\{148\}/&'"$ac_delim"'/g
15251 t clear
15252 :clear
15253 s/\\$//
15254 t bsnlc
15255 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15257 :bsnlc
15258 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15259 b cont
15260 ' <confdefs.h | sed '
15261 s/'"$ac_delim"'/"\\\
15262 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15265 for (key in D) D_is_set[key] = 1
15266 FS = "\a"
15268 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15269 line = \$ 0
15270 split(line, arg, " ")
15271 if (arg[1] == "#") {
15272 defundef = arg[2]
15273 mac1 = arg[3]
15274 } else {
15275 defundef = substr(arg[1], 2)
15276 mac1 = arg[2]
15278 split(mac1, mac2, "(") #)
15279 macro = mac2[1]
15280 prefix = substr(line, 1, index(line, defundef) - 1)
15281 if (D_is_set[macro]) {
15282 # Preserve the white space surrounding the "#".
15283 print prefix "define", macro P[macro] D[macro]
15284 next
15285 } else {
15286 # Replace #undef with comments. This is necessary, for example,
15287 # in the case of _POSIX_SOURCE, which is predefined and required
15288 # on some systems where configure will not decide to define it.
15289 if (defundef == "undef") {
15290 print "/*", prefix defundef, macro, "*/"
15291 next
15295 { print }
15296 _ACAWK
15297 _ACEOF
15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15299 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15300 fi # test -n "$CONFIG_HEADERS"
15303 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15304 shift
15305 for ac_tag
15307 case $ac_tag in
15308 :[FHLC]) ac_mode=$ac_tag; continue;;
15309 esac
15310 case $ac_mode$ac_tag in
15311 :[FHL]*:*);;
15312 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15313 :[FH]-) ac_tag=-:-;;
15314 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15315 esac
15316 ac_save_IFS=$IFS
15317 IFS=:
15318 set x $ac_tag
15319 IFS=$ac_save_IFS
15320 shift
15321 ac_file=$1
15322 shift
15324 case $ac_mode in
15325 :L) ac_source=$1;;
15326 :[FH])
15327 ac_file_inputs=
15328 for ac_f
15330 case $ac_f in
15331 -) ac_f="$tmp/stdin";;
15332 *) # Look for the file first in the build tree, then in the source tree
15333 # (if the path is not absolute). The absolute path cannot be DOS-style,
15334 # because $ac_f cannot contain `:'.
15335 test -f "$ac_f" ||
15336 case $ac_f in
15337 [\\/$]*) false;;
15338 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15339 esac ||
15340 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15341 esac
15342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15343 as_fn_append ac_file_inputs " '$ac_f'"
15344 done
15346 # Let's still pretend it is `configure' which instantiates (i.e., don't
15347 # use $as_me), people would be surprised to read:
15348 # /* config.h. Generated by config.status. */
15349 configure_input='Generated from '`
15350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15351 `' by configure.'
15352 if test x"$ac_file" != x-; then
15353 configure_input="$ac_file. $configure_input"
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15355 $as_echo "$as_me: creating $ac_file" >&6;}
15357 # Neutralize special characters interpreted by sed in replacement strings.
15358 case $configure_input in #(
15359 *\&* | *\|* | *\\* )
15360 ac_sed_conf_input=`$as_echo "$configure_input" |
15361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15362 *) ac_sed_conf_input=$configure_input;;
15363 esac
15365 case $ac_tag in
15366 *:-:* | *:-) cat >"$tmp/stdin" \
15367 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15368 esac
15370 esac
15372 ac_dir=`$as_dirname -- "$ac_file" ||
15373 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15374 X"$ac_file" : 'X\(//\)[^/]' \| \
15375 X"$ac_file" : 'X\(//\)$' \| \
15376 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15377 $as_echo X"$ac_file" |
15378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15379 s//\1/
15382 /^X\(\/\/\)[^/].*/{
15383 s//\1/
15386 /^X\(\/\/\)$/{
15387 s//\1/
15390 /^X\(\/\).*/{
15391 s//\1/
15394 s/.*/./; q'`
15395 as_dir="$ac_dir"; as_fn_mkdir_p
15396 ac_builddir=.
15398 case "$ac_dir" in
15399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15402 # A ".." for each directory in $ac_dir_suffix.
15403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15404 case $ac_top_builddir_sub in
15405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15407 esac ;;
15408 esac
15409 ac_abs_top_builddir=$ac_pwd
15410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15411 # for backward compatibility:
15412 ac_top_builddir=$ac_top_build_prefix
15414 case $srcdir in
15415 .) # We are building in place.
15416 ac_srcdir=.
15417 ac_top_srcdir=$ac_top_builddir_sub
15418 ac_abs_top_srcdir=$ac_pwd ;;
15419 [\\/]* | ?:[\\/]* ) # Absolute name.
15420 ac_srcdir=$srcdir$ac_dir_suffix;
15421 ac_top_srcdir=$srcdir
15422 ac_abs_top_srcdir=$srcdir ;;
15423 *) # Relative name.
15424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15425 ac_top_srcdir=$ac_top_build_prefix$srcdir
15426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15427 esac
15428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15431 case $ac_mode in
15434 # CONFIG_FILE
15437 case $INSTALL in
15438 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15439 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15440 esac
15441 _ACEOF
15443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15444 # If the template does not know about datarootdir, expand it.
15445 # FIXME: This hack should be removed a few years after 2.60.
15446 ac_datarootdir_hack=; ac_datarootdir_seen=
15447 ac_sed_dataroot='
15448 /datarootdir/ {
15452 /@datadir@/p
15453 /@docdir@/p
15454 /@infodir@/p
15455 /@localedir@/p
15456 /@mandir@/p'
15457 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15458 *datarootdir*) ac_datarootdir_seen=yes;;
15459 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15461 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15462 _ACEOF
15463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15464 ac_datarootdir_hack='
15465 s&@datadir@&$datadir&g
15466 s&@docdir@&$docdir&g
15467 s&@infodir@&$infodir&g
15468 s&@localedir@&$localedir&g
15469 s&@mandir@&$mandir&g
15470 s&\\\${datarootdir}&$datarootdir&g' ;;
15471 esac
15472 _ACEOF
15474 # Neutralize VPATH when `$srcdir' = `.'.
15475 # Shell code in configure.ac might set extrasub.
15476 # FIXME: do we really want to maintain this feature?
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478 ac_sed_extra="$ac_vpsub
15479 $extrasub
15480 _ACEOF
15481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15484 s|@configure_input@|$ac_sed_conf_input|;t t
15485 s&@top_builddir@&$ac_top_builddir_sub&;t t
15486 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15487 s&@srcdir@&$ac_srcdir&;t t
15488 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15489 s&@top_srcdir@&$ac_top_srcdir&;t t
15490 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15491 s&@builddir@&$ac_builddir&;t t
15492 s&@abs_builddir@&$ac_abs_builddir&;t t
15493 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15494 s&@INSTALL@&$ac_INSTALL&;t t
15495 $ac_datarootdir_hack
15497 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15498 if $ac_cs_awk_getline; then
15499 $AWK -f "$tmp/subs.awk"
15500 else
15501 $AWK -f "$tmp/subs.awk" | $SHELL
15502 fi >$tmp/out \
15503 || as_fn_error "could not create $ac_file" "$LINENO" 5
15505 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15506 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15507 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15509 which seems to be undefined. Please make sure it is defined." >&5
15510 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15511 which seems to be undefined. Please make sure it is defined." >&2;}
15513 rm -f "$tmp/stdin"
15514 case $ac_file in
15515 -) cat "$tmp/out" && rm -f "$tmp/out";;
15516 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15517 esac \
15518 || as_fn_error "could not create $ac_file" "$LINENO" 5
15522 # CONFIG_HEADER
15524 if test x"$ac_file" != x-; then
15526 $as_echo "/* $configure_input */" \
15527 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15528 } >"$tmp/config.h" \
15529 || as_fn_error "could not create $ac_file" "$LINENO" 5
15530 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15532 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15533 else
15534 rm -f "$ac_file"
15535 mv "$tmp/config.h" "$ac_file" \
15536 || as_fn_error "could not create $ac_file" "$LINENO" 5
15538 else
15539 $as_echo "/* $configure_input */" \
15540 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15541 || as_fn_error "could not create -" "$LINENO" 5
15545 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15546 $as_echo "$as_me: executing $ac_file commands" >&6;}
15548 esac
15551 case $ac_file$ac_mode in
15552 "default":C)
15554 ### Make the necessary directories, if they don't exist.
15555 for dir in etc lisp ; do
15556 test -d ${dir} || mkdir ${dir}
15557 done
15559 echo creating src/epaths.h
15560 ${MAKE-make} epaths-force
15562 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15563 echo creating src/.gdbinit
15564 echo source $srcdir/src/.gdbinit > src/.gdbinit
15569 esac
15570 done # for ac_tag
15573 as_fn_exit 0
15574 _ACEOF
15575 ac_clean_files=$ac_clean_files_save
15577 test $ac_write_fail = 0 ||
15578 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15581 # configure is writing to config.log, and then calls config.status.
15582 # config.status does its own redirection, appending to config.log.
15583 # Unfortunately, on DOS this fails, as config.log is still kept open
15584 # by configure, so config.status won't be able to write to it; its
15585 # output is simply discarded. So we exec the FD to /dev/null,
15586 # effectively closing config.log, so it can be properly (re)opened and
15587 # appended to by config.status. When coming back to configure, we
15588 # need to make the FD available again.
15589 if test "$no_create" != yes; then
15590 ac_cs_success=:
15591 ac_config_status_args=
15592 test "$silent" = yes &&
15593 ac_config_status_args="$ac_config_status_args --quiet"
15594 exec 5>/dev/null
15595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15596 exec 5>>config.log
15597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15598 # would make configure fail if this is the last instruction.
15599 $ac_cs_success || as_fn_exit $?
15601 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15603 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}