Fix indentation problem
[emacs.git] / configure
blobc430dec9ee27505aef2cc3511b72b7e9c373eb3b
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 LD_SWITCH_SYSTEM_TEMACS
604 POST_ALLOC_OBJ
605 PRE_ALLOC_OBJ
606 CYGWIN_OBJ
607 RALLOC_OBJ
608 OLDXMENU_DEPS
609 LIBX_OTHER
610 LIBXMENU
611 OLDXMENU
612 OLDXMENU_TARGET
613 LIBXT_OTHER
614 TOOLKIT_LIBW
615 WIDGET_OBJ
616 XOBJ
617 XMENU_OBJ
618 FONT_OBJ
619 OTHER_FILES
620 GNU_OBJC_CFLAGS
621 ns_appsrc
622 ns_appresdir
623 ns_appbindir
624 ns_appdir
625 opsysfile
626 machfile
627 X_TOOLKIT_TYPE
628 C_SWITCH_X_SYSTEM
629 C_SWITCH_X_SITE
630 LD_SWITCH_X_SITE
631 gameuser
632 gamedir
633 bitmapdir
634 archlibdir
635 etcdir
636 x_default_search_path
637 lisppath
638 locallisppath
639 lispdir
640 srcdir
641 canonical
642 configuration
643 version
644 KRB4LIB
645 DESLIB
646 KRB5LIB
647 CRYPTOLIB
648 COM_ERRLIB
649 LIBRESOLV
650 LIBHESIOD
651 TERMCAP_OBJ
652 LIBS_TERMCAP
653 GETOPTOBJS
654 GETOPT_H
655 GETLOADAVG_LIBS
656 KMEM_GROUP
657 NEED_SETGID
658 LIBOBJS
659 BLESSMAIL_TARGET
660 LIBS_MAIL
661 liblockfile
662 ALLOCA
663 LIBXSM
664 LIBGPM
665 LIBGIF
666 LIBTIFF
667 LIBPNG
668 LIBJPEG
669 LIBXPM
670 FREETYPE_LIBS
671 FREETYPE_CFLAGS
672 M17N_FLT_LIBS
673 M17N_FLT_CFLAGS
674 LIBOTF_LIBS
675 LIBOTF_CFLAGS
676 XFT_LIBS
677 XFT_CFLAGS
678 FONTCONFIG_LIBS
679 FONTCONFIG_CFLAGS
680 LIBXMU
681 LIBXTR6
682 LIBSELINUX_LIBS
683 GCONF_LIBS
684 GCONF_CFLAGS
685 DBUS_OBJ
686 DBUS_LIBS
687 DBUS_CFLAGS
688 GTK_OBJ
689 GTK_LIBS
690 GTK_CFLAGS
691 RSVG_LIBS
692 RSVG_CFLAGS
693 VMLIMIT_OBJ
694 GMALLOC_OBJ
695 HAVE_XSERVER
696 LIB_STANDARD
697 NS_SUPPORT
698 NS_OBJ
699 TEMACS_LDFLAGS2
700 LD_SWITCH_X_SITE_AUX_RPATH
701 LD_SWITCH_X_SITE_AUX
702 XMKMF
703 DEPFLAGS
704 MKDEPDIR
705 SET_MAKE
706 CFLAGS_SOUND
707 ALSA_LIBS
708 ALSA_CFLAGS
709 PKG_CONFIG
710 LIBSOUND
711 START_FILES
712 LIB_MATH
713 CRT_DIR
714 LIBS_SYSTEM
715 C_SWITCH_SYSTEM
716 UNEXEC_OBJ
717 C_SWITCH_MACHINE
718 LD_SWITCH_SYSTEM
719 CANNOT_DUMP
720 MAKEINFO
721 GZIP_PROG
722 INSTALL_INFO
723 RANLIB
724 INSTALL_DATA
725 INSTALL_SCRIPT
726 INSTALL_PROGRAM
727 EGREP
728 GREP
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 MAINT
746 GZIP_INFO
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files='deps_frag
786 ns_frag'
787 ac_user_opts='
788 enable_option_checking
789 with_pop
790 with_kerberos
791 with_kerberos5
792 with_hesiod
793 with_mmdf
794 with_mail_unlink
795 with_mailhost
796 with_sound
797 with_sync_input
798 with_x_toolkit
799 with_xpm
800 with_jpeg
801 with_tiff
802 with_gif
803 with_png
804 with_rsvg
805 with_xft
806 with_libotf
807 with_m17n_flt
808 with_toolkit_scroll_bars
809 with_xaw3d
810 with_xim
811 with_ns
812 with_gpm
813 with_dbus
814 with_gconf
815 with_selinux
816 with_makeinfo
817 with_compress_info
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_use_lisp_union_type
827 enable_profiling
828 enable_autodepend
829 enable_largefile
830 with_x
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
841 XMKMF'
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
892 ac_prev=
893 ac_dashdash=
894 for ac_option
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\$ac_option
899 ac_prev=
900 continue
903 case $ac_option in
904 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information."
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used." >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306 test "$silent" = yes && exec 6>/dev/null
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error "pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1335 /^X\(\/\/\)$/{
1336 s//\1/
1339 /^X\(\/\).*/{
1340 s//\1/
1343 s/.*/./; q'`
1344 srcdir=$ac_confdir
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346 srcdir=..
1348 else
1349 ac_srcdir_defaulted=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1358 pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1392 Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 [PREFIX]
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1436 _ACEOF
1438 cat <<\_ACEOF
1440 Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1445 X features:
1446 --x-includes=DIR X include files are in DIR
1447 --x-libraries=DIR X library files are in DIR
1449 System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 _ACEOF
1455 if test -n "$ac_init_help"; then
1456 case $ac_init_help in
1457 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1458 esac
1459 cat <<\_ACEOF
1461 Optional Features:
1462 --disable-option-checking ignore unrecognized --enable/--with options
1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465 --disable-ns-self-contained
1466 disable self contained build under NeXTstep
1467 --enable-asserts compile code with asserts enabled
1468 --enable-maintainer-mode
1469 enable make rules and dependencies not useful (and
1470 sometimes confusing) to the casual installer
1471 --enable-locallisppath=PATH
1472 directories Emacs should search for lisp files
1473 specific to this site
1474 --enable-checking[=LIST]
1475 enable expensive run-time checks. With LIST, enable
1476 only specific categories of checks. Categories are:
1477 all,yes,no. Flags are: stringbytes, stringoverrun,
1478 stringfreelist, xmallocoverrun, conslist
1479 --enable-use-lisp-union-type
1480 use a union for the Lisp_Object data type. This is
1481 only useful for development for catching certain
1482 types of bugs.
1483 --enable-profiling build emacs with profiling support. This might not
1484 work on all platforms
1485 --enable-autodepend automatically generate dependencies to .h-files.
1486 Requires GNU Make and Gcc. Enabled if GNU Make and
1487 Gcc is found
1488 --disable-largefile omit support for large files
1490 Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --without-pop don't support POP mail retrieval with movemail
1494 --with-kerberos support Kerberos-authenticated POP
1495 --with-kerberos5 support Kerberos version 5 authenticated POP
1496 --with-hesiod support Hesiod to get the POP server host
1497 --with-mmdf support MMDF mailboxes
1498 --with-mail-unlink unlink, rather than empty, mail spool after reading
1499 --with-mailhost=HOSTNAME
1500 string giving default POP mail host
1501 --without-sound don't compile with sound support
1502 --without-sync-input process async input synchronously
1503 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1504 lucid or athena, motif, no)
1505 --without-xpm don't compile with XPM image support
1506 --without-jpeg don't compile with JPEG image support
1507 --without-tiff don't compile with TIFF image support
1508 --without-gif don't compile with GIF image support
1509 --without-png don't compile with PNG image support
1510 --without-rsvg don't compile with SVG image support
1511 --without-xft don't use XFT for anti aliased fonts
1512 --without-libotf don't use libotf for OpenType font support
1513 --without-m17n-flt don't use m17n-flt for text shaping
1514 --without-toolkit-scroll-bars
1515 don't use Motif or Xaw3d scroll bars
1516 --without-xaw3d don't use Xaw3d
1517 --without-xim don't use X11 XIM
1518 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1519 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1520 console
1521 --without-dbus don't compile with D-Bus support
1522 --without-gconf don't compile with GConf support
1523 --without-selinux don't compile with SELinux support
1524 --without-makeinfo don't require makeinfo for building manuals
1525 --without-compress-info don't compress the installed Info pages
1526 --with-pkg-config-prog=PATH
1527 path to pkg-config for finding GTK and librsvg
1528 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1529 /usr/lib, or /usr/lib64 on some platforms.
1530 --with-gnustep-conf=PATH
1531 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1532 or /etc/GNUstep/GNUstep.conf
1533 --with-x use the X Window System
1535 Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
1540 LIBS libraries to pass to the linker, e.g. -l<library>
1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542 you have headers in a nonstandard directory <include dir>
1543 CPP C preprocessor
1544 XMKMF Path to xmkmf, Makefile generator for X Window System
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to the package provider.
1550 _ACEOF
1551 ac_status=$?
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 emacs configure 24.0.50
1613 generated by GNU Autoconf 2.65
1615 Copyright (C) 2009 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619 exit
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1657 ac_retval=1
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 as_fn_set_status $ac_retval
1662 } # ac_fn_c_try_compile
1664 # ac_fn_c_try_link LINENO
1665 # -----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_link ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext conftest$ac_exeext
1671 if { { ac_try="$ac_link"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest$ac_exeext && {
1690 test "$cross_compiling" = yes ||
1691 $as_test_x conftest$ac_exeext
1692 }; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=1
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 as_fn_set_status $ac_retval
1708 } # ac_fn_c_try_link
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } >/dev/null && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=1
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_cpp
1747 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1748 # -------------------------------------------------------
1749 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1750 # the include files in INCLUDES and setting the cache variable VAR
1751 # accordingly.
1752 ac_fn_c_check_header_mongrel ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759 $as_echo_n "(cached) " >&6
1761 eval ac_res=\$$3
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 else
1765 # Is the header compilable?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1767 $as_echo_n "checking $2 usability... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 ac_header_compiler=yes
1775 else
1776 ac_header_compiler=no
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1780 $as_echo "$ac_header_compiler" >&6; }
1782 # Is the header present?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1784 $as_echo_n "checking $2 presence... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 #include <$2>
1788 _ACEOF
1789 if ac_fn_c_try_cpp "$LINENO"; then :
1790 ac_header_preproc=yes
1791 else
1792 ac_header_preproc=no
1794 rm -f conftest.err conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1796 $as_echo "$ac_header_preproc" >&6; }
1798 # So? What about this header?
1799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800 yes:no: )
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1802 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 no:yes:* )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1808 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1810 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1812 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1814 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1816 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 esac
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 eval "$3=\$ac_header_compiler"
1826 eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 } # ac_fn_c_check_header_mongrel
1834 # ac_fn_c_try_run LINENO
1835 # ----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837 # that executables *can* be run.
1838 ac_fn_c_try_run ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852 { { case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_try") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; }; }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: program exited with status $ac_status" >&5
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=$ac_status
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_c_try_run
1876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists and can be compiled using the include files in
1879 # INCLUDES, setting the cache variable VAR accordingly.
1880 ac_fn_c_check_header_compile ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 eval "$3=yes"
1895 else
1896 eval "$3=no"
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 } # ac_fn_c_check_header_compile
1907 # ac_fn_c_check_decl LINENO SYMBOL VAR
1908 # ------------------------------------
1909 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1910 ac_fn_c_check_decl ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1914 $as_echo_n "checking whether $2 is declared... " >&6; }
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1922 main ()
1924 #ifndef $2
1925 (void) $2;
1926 #endif
1929 return 0;
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$3=yes"
1934 else
1935 eval "$3=no"
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 } # ac_fn_c_check_decl
1946 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1947 # ----------------------------------------------
1948 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1949 ac_fn_c_check_header_preproc ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 #include <$2>
1960 _ACEOF
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 eval "$3=yes"
1963 else
1964 eval "$3=no"
1966 rm -f conftest.err conftest.$ac_ext
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 } # ac_fn_c_check_header_preproc
1975 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1976 # ----------------------------------------------------
1977 # Tries to find if the field MEMBER exists in type AGGR, after including
1978 # INCLUDES, setting cache variable VAR accordingly.
1979 ac_fn_c_check_member ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1983 $as_echo_n "checking for $2.$3... " >&6; }
1984 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 $as_echo_n "(cached) " >&6
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 static $2 ac_aggr;
1994 if (ac_aggr.$3)
1995 return 0;
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 eval "$4=yes"
2002 else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 main ()
2009 static $2 ac_aggr;
2010 if (sizeof ac_aggr.$3)
2011 return 0;
2013 return 0;
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$4=yes"
2018 else
2019 eval "$4=no"
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 eval ac_res=\$$4
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_c_check_member
2032 # ac_fn_c_check_func LINENO FUNC VAR
2033 # ----------------------------------
2034 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2035 ac_fn_c_check_func ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2041 $as_echo_n "(cached) " >&6
2042 else
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2047 #define $2 innocuous_$2
2049 /* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char $2 (); below.
2051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2052 <limits.h> exists even on freestanding compilers. */
2054 #ifdef __STDC__
2055 # include <limits.h>
2056 #else
2057 # include <assert.h>
2058 #endif
2060 #undef $2
2062 /* Override any GCC internal prototype to avoid an error.
2063 Use char because int might match the return type of a GCC
2064 builtin and then its argument prototype would still apply. */
2065 #ifdef __cplusplus
2066 extern "C"
2067 #endif
2068 char $2 ();
2069 /* The GNU C library defines this for functions which it implements
2070 to always fail with ENOSYS. Some functions are actually named
2071 something starting with __ and the normal name is an alias. */
2072 #if defined __stub_$2 || defined __stub___$2
2073 choke me
2074 #endif
2077 main ()
2079 return $2 ();
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_link "$LINENO"; then :
2085 eval "$3=yes"
2086 else
2087 eval "$3=no"
2089 rm -f core conftest.err conftest.$ac_objext \
2090 conftest$ac_exeext conftest.$ac_ext
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097 } # ac_fn_c_check_func
2099 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2100 # -------------------------------------------
2101 # Tests whether TYPE exists after having included INCLUDES, setting cache
2102 # variable VAR accordingly.
2103 ac_fn_c_check_type ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2109 $as_echo_n "(cached) " >&6
2110 else
2111 eval "$3=no"
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2116 main ()
2118 if (sizeof ($2))
2119 return 0;
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_compile "$LINENO"; then :
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 main ()
2131 if (sizeof (($2)))
2132 return 0;
2134 return 0;
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2139 else
2140 eval "$3=yes"
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 eval ac_res=\$$3
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151 } # ac_fn_c_check_type
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2156 It was created by emacs $as_me 24.0.50, which was
2157 generated by GNU Autoconf 2.65. Invocation command line was
2159 $ $0 $@
2161 _ACEOF
2162 exec 5>>config.log
2164 cat <<_ASUNAME
2165 ## --------- ##
2166 ## Platform. ##
2167 ## --------- ##
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2186 _ASUNAME
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2191 IFS=$as_save_IFS
2192 test -z "$as_dir" && as_dir=.
2193 $as_echo "PATH: $as_dir"
2194 done
2195 IFS=$as_save_IFS
2197 } >&5
2199 cat >&5 <<_ACEOF
2202 ## ----------- ##
2203 ## Core tests. ##
2204 ## ----------- ##
2206 _ACEOF
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2214 ac_configure_args=
2215 ac_configure_args0=
2216 ac_configure_args1=
2217 ac_must_keep_next=false
2218 for ac_pass in 1 2
2220 for ac_arg
2222 case $ac_arg in
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2226 continue ;;
2227 *\'*)
2228 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2229 esac
2230 case $ac_pass in
2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233 as_fn_append ac_configure_args1 " '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2236 else
2237 case $ac_arg in
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244 esac
2246 -* ) ac_must_keep_next=true ;;
2247 esac
2249 as_fn_append ac_configure_args " '$ac_arg'"
2251 esac
2252 done
2253 done
2254 { ac_configure_args0=; unset ac_configure_args0;}
2255 { ac_configure_args1=; unset ac_configure_args1;}
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log. We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2265 echo
2267 cat <<\_ASBOX
2268 ## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##
2271 _ASBOX
2272 echo
2273 # The following way of writing the cache mishandles newlines in values,
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var
2277 case $ac_val in #(
2278 *${as_nl}*)
2279 case $ac_var in #(
2280 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2282 esac
2283 case $ac_var in #(
2284 _ | IFS | as_nl) ;; #(
2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286 *) { eval $ac_var=; unset $ac_var;} ;;
2287 esac ;;
2288 esac
2289 done
2290 (set) 2>&1 |
2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292 *${as_nl}ac_space=\ *)
2293 sed -n \
2294 "s/'\''/'\''\\\\'\'''\''/g;
2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2296 ;; #(
2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2300 esac |
2301 sort
2303 echo
2305 cat <<\_ASBOX
2306 ## ----------------- ##
2307 ## Output variables. ##
2308 ## ----------------- ##
2309 _ASBOX
2310 echo
2311 for ac_var in $ac_subst_vars
2313 eval ac_val=\$$ac_var
2314 case $ac_val in
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 esac
2317 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort
2319 echo
2321 if test -n "$ac_subst_files"; then
2322 cat <<\_ASBOX
2323 ## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##
2326 _ASBOX
2327 echo
2328 for ac_var in $ac_subst_files
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2339 if test -s confdefs.h; then
2340 cat <<\_ASBOX
2341 ## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##
2344 _ASBOX
2345 echo
2346 cat confdefs.h
2347 echo
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2352 } >&5
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2355 exit $exit_status
2357 for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359 done
2360 ac_signal=0
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2365 $as_echo "/* confdefs.h */" > confdefs.h
2367 # Predefined preprocessor variables.
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2371 _ACEOF
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375 _ACEOF
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2391 _ACEOF
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
2396 ac_site_file1=NONE
2397 ac_site_file2=NONE
2398 if test -n "$CONFIG_SITE"; then
2399 ac_site_file1=$CONFIG_SITE
2400 elif test "x$prefix" != xNONE; then
2401 ac_site_file1=$prefix/share/config.site
2402 ac_site_file2=$prefix/etc/config.site
2403 else
2404 ac_site_file1=$ac_default_prefix/share/config.site
2405 ac_site_file2=$ac_default_prefix/etc/config.site
2407 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2409 test "x$ac_site_file" = xNONE && continue
2410 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2413 sed 's/^/| /' "$ac_site_file" >&5
2414 . "$ac_site_file"
2416 done
2418 if test -r "$cache_file"; then
2419 # Some versions of bash will fail to source /dev/null (special files
2420 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2421 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2423 $as_echo "$as_me: loading cache $cache_file" >&6;}
2424 case $cache_file in
2425 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2426 *) . "./$cache_file";;
2427 esac
2429 else
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2431 $as_echo "$as_me: creating cache $cache_file" >&6;}
2432 >$cache_file
2435 as_fn_append ac_header_list " stdlib.h"
2436 as_fn_append ac_header_list " unistd.h"
2437 as_fn_append ac_header_list " sys/param.h"
2438 as_fn_append ac_header_list " sys/time.h"
2439 as_fn_append ac_func_list " alarm"
2440 # Check that the precious variables saved in the cache have kept the same
2441 # value.
2442 ac_cache_corrupted=false
2443 for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2449 set,)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,set)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,);;
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x $ac_old_val`
2462 ac_new_val_w=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted=:
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2476 fi;;
2477 esac
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2480 case $ac_new_val in
2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2483 esac
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487 esac
2489 done
2490 if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2501 ac_ext=c
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2508 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2512 test "$program_prefix" != NONE &&
2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2523 lispdir='${datadir}/emacs/${version}/lisp'
2524 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2525 '${datadir}/emacs/site-lisp'
2526 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2527 etcdir='${datadir}/emacs/${version}/etc'
2528 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2529 docdir='${datadir}/emacs/${version}/etc'
2530 gamedir='${localstatedir}/games/emacs'
2532 gameuser=games
2537 # Check whether --with-pop was given.
2538 if test "${with_pop+set}" = set; then :
2539 withval=$with_pop;
2540 else
2541 with_pop=yes
2544 if test "$with_pop" = yes; then
2545 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2550 # Check whether --with-kerberos was given.
2551 if test "${with_kerberos+set}" = set; then :
2552 withval=$with_kerberos;
2553 else
2554 with_kerberos=no
2557 if test "$with_kerberos" != no; then
2558 $as_echo "#define KERBEROS 1" >>confdefs.h
2563 # Check whether --with-kerberos5 was given.
2564 if test "${with_kerberos5+set}" = set; then :
2565 withval=$with_kerberos5;
2566 else
2567 with_kerberos5=no
2570 if test "${with_kerberos5}" != no; then
2571 if test "${with_kerberos}" = no; then
2572 with_kerberos=yes
2573 $as_echo "#define KERBEROS 1" >>confdefs.h
2577 $as_echo "#define KERBEROS5 1" >>confdefs.h
2582 # Check whether --with-hesiod was given.
2583 if test "${with_hesiod+set}" = set; then :
2584 withval=$with_hesiod;
2585 else
2586 with_hesiod=no
2589 if test "$with_hesiod" != no; then
2591 $as_echo "#define HESIOD 1" >>confdefs.h
2596 # Check whether --with-mmdf was given.
2597 if test "${with_mmdf+set}" = set; then :
2598 withval=$with_mmdf;
2599 else
2600 with_mmdf=no
2603 if test "$with_mmdf" != no; then
2605 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2610 # Check whether --with-mail-unlink was given.
2611 if test "${with_mail_unlink+set}" = set; then :
2612 withval=$with_mail_unlink;
2613 else
2614 with_mail_unlink=no
2617 if test "$with_mail_unlink" != no; then
2619 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2624 # Check whether --with-mailhost was given.
2625 if test "${with_mailhost+set}" = set; then :
2626 withval=$with_mailhost;
2627 cat >>confdefs.h <<_ACEOF
2628 #define MAILHOST "$withval"
2629 _ACEOF
2635 # Check whether --with-sound was given.
2636 if test "${with_sound+set}" = set; then :
2637 withval=$with_sound;
2638 else
2639 with_sound=yes
2644 # Check whether --with-sync-input was given.
2645 if test "${with_sync_input+set}" = set; then :
2646 withval=$with_sync_input;
2647 else
2648 with_sync_input=yes
2651 if test "$with_sync_input" = yes; then
2653 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2658 # Check whether --with-x-toolkit was given.
2659 if test "${with_x_toolkit+set}" = set; then :
2660 withval=$with_x_toolkit; case "${withval}" in
2661 y | ye | yes ) val=gtk ;;
2662 n | no ) val=no ;;
2663 l | lu | luc | luci | lucid ) val=lucid ;;
2664 a | at | ath | athe | athen | athena ) val=athena ;;
2665 m | mo | mot | moti | motif ) val=motif ;;
2666 g | gt | gtk ) val=gtk ;;
2667 gtk3 ) val=gtk3 ;;
2669 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2670 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
2671 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2673 esac
2674 with_x_toolkit=$val
2680 # Check whether --with-xpm was given.
2681 if test "${with_xpm+set}" = set; then :
2682 withval=$with_xpm;
2683 else
2684 with_xpm=yes
2688 # Check whether --with-jpeg was given.
2689 if test "${with_jpeg+set}" = set; then :
2690 withval=$with_jpeg;
2691 else
2692 with_jpeg=yes
2696 # Check whether --with-tiff was given.
2697 if test "${with_tiff+set}" = set; then :
2698 withval=$with_tiff;
2699 else
2700 with_tiff=yes
2704 # Check whether --with-gif was given.
2705 if test "${with_gif+set}" = set; then :
2706 withval=$with_gif;
2707 else
2708 with_gif=yes
2712 # Check whether --with-png was given.
2713 if test "${with_png+set}" = set; then :
2714 withval=$with_png;
2715 else
2716 with_png=yes
2720 # Check whether --with-rsvg was given.
2721 if test "${with_rsvg+set}" = set; then :
2722 withval=$with_rsvg;
2723 else
2724 with_rsvg=yes
2729 # Check whether --with-xft was given.
2730 if test "${with_xft+set}" = set; then :
2731 withval=$with_xft;
2732 else
2733 with_xft=yes
2737 # Check whether --with-libotf was given.
2738 if test "${with_libotf+set}" = set; then :
2739 withval=$with_libotf;
2740 else
2741 with_libotf=yes
2745 # Check whether --with-m17n-flt was given.
2746 if test "${with_m17n_flt+set}" = set; then :
2747 withval=$with_m17n_flt;
2748 else
2749 with_m17n_flt=yes
2754 # Check whether --with-toolkit-scroll-bars was given.
2755 if test "${with_toolkit_scroll_bars+set}" = set; then :
2756 withval=$with_toolkit_scroll_bars;
2757 else
2758 with_toolkit_scroll_bars=yes
2762 # Check whether --with-xaw3d was given.
2763 if test "${with_xaw3d+set}" = set; then :
2764 withval=$with_xaw3d;
2765 else
2766 with_xaw3d=yes
2770 # Check whether --with-xim was given.
2771 if test "${with_xim+set}" = set; then :
2772 withval=$with_xim;
2773 else
2774 with_xim=yes
2778 # Check whether --with-ns was given.
2779 if test "${with_ns+set}" = set; then :
2780 withval=$with_ns;
2781 else
2782 with_ns=no
2787 # Check whether --with-gpm was given.
2788 if test "${with_gpm+set}" = set; then :
2789 withval=$with_gpm;
2790 else
2791 with_gpm=yes
2795 # Check whether --with-dbus was given.
2796 if test "${with_dbus+set}" = set; then :
2797 withval=$with_dbus;
2798 else
2799 with_dbus=yes
2803 # Check whether --with-gconf was given.
2804 if test "${with_gconf+set}" = set; then :
2805 withval=$with_gconf;
2806 else
2807 with_gconf=yes
2811 # Check whether --with-selinux was given.
2812 if test "${with_selinux+set}" = set; then :
2813 withval=$with_selinux;
2814 else
2815 with_selinux=yes
2819 ## For the times when you want to build Emacs but don't have
2820 ## a suitable makeinfo, and can live without the manuals.
2822 # Check whether --with-makeinfo was given.
2823 if test "${with_makeinfo+set}" = set; then :
2824 withval=$with_makeinfo;
2825 else
2826 with_makeinfo=yes
2830 ## This is an option because I do not know if all info/man support
2831 ## compressed files, nor how to test if they do so.
2833 # Check whether --with-compress-info was given.
2834 if test "${with_compress_info+set}" = set; then :
2835 withval=$with_compress_info;
2836 else
2837 with_compress_info=yes
2840 if test $with_compress_info = yes; then
2841 GZIP_INFO=yes
2842 else
2843 GZIP_INFO=
2848 # Check whether --with-pkg-config-prog was given.
2849 if test "${with_pkg_config_prog+set}" = set; then :
2850 withval=$with_pkg_config_prog;
2853 if test "X${with_pkg_config_prog}" != X; then
2854 if test "${with_pkg_config_prog}" != yes; then
2855 PKG_CONFIG="${with_pkg_config_prog}"
2859 CRT_DIR=
2861 # Check whether --with-crt-dir was given.
2862 if test "${with_crt_dir+set}" = set; then :
2863 withval=$with_crt_dir;
2866 CRT_DIR="${with_crt_dir}"
2869 # Check whether --with-gnustep-conf was given.
2870 if test "${with_gnustep_conf+set}" = set; then :
2871 withval=$with_gnustep_conf;
2874 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2875 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2876 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2877 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2879 # Check whether --enable-ns-self-contained was given.
2880 if test "${enable_ns_self_contained+set}" = set; then :
2881 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2882 else
2883 EN_NS_SELF_CONTAINED=yes
2887 # Check whether --enable-asserts was given.
2888 if test "${enable_asserts+set}" = set; then :
2889 enableval=$enable_asserts; USE_XASSERTS=$enableval
2890 else
2891 USE_XASSERTS=no
2895 # Check whether --enable-maintainer-mode was given.
2896 if test "${enable_maintainer_mode+set}" = set; then :
2897 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2898 else
2899 USE_MAINTAINER_MODE=no
2902 if test $USE_MAINTAINER_MODE = yes; then
2903 MAINT=
2904 else
2905 MAINT=#
2909 # Check whether --enable-locallisppath was given.
2910 if test "${enable_locallisppath+set}" = set; then :
2911 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2912 locallisppath=
2913 elif test "${enableval}" != "yes"; then
2914 locallisppath=${enableval}
2919 # Check whether --enable-checking was given.
2920 if test "${enable_checking+set}" = set; then :
2921 enableval=$enable_checking; ac_checking_flags="${enableval}"
2924 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2925 for check in $ac_checking_flags
2927 case $check in
2928 # these set all the flags to specific states
2929 yes) ac_enable_checking=1 ;;
2930 no) ac_enable_checking= ;
2931 ac_gc_check_stringbytes= ;
2932 ac_gc_check_string_overrun= ;
2933 ac_gc_check_string_free_list= ;
2934 ac_xmalloc_overrun= ;
2935 ac_gc_check_cons_list= ;;
2936 all) ac_enable_checking=1 ;
2937 ac_gc_check_stringbytes=1 ;
2938 ac_gc_check_string_overrun=1 ;
2939 ac_gc_check_string_free_list=1 ;
2940 ac_xmalloc_overrun=1 ;
2941 ac_gc_check_cons_list=1 ;;
2942 # these enable particular checks
2943 stringbytes) ac_gc_check_stringbytes=1 ;;
2944 stringoverrun) ac_gc_check_string_overrun=1 ;;
2945 stringfreelist) ac_gc_check_string_free_list=1 ;;
2946 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2947 conslist) ac_gc_check_cons_list=1 ;;
2948 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2949 esac
2950 done
2951 IFS="$ac_save_IFS"
2953 if test x$ac_enable_checking != x ; then
2955 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2958 if test x$ac_gc_check_stringbytes != x ; then
2960 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2963 if test x$ac_gc_check_stringoverrun != x ; then
2965 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2968 if test x$ac_gc_check_string_free_list != x ; then
2970 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2973 if test x$ac_xmalloc_overrun != x ; then
2975 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2978 if test x$ac_gc_check_cons_list != x ; then
2980 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2984 # Check whether --enable-use-lisp-union-type was given.
2985 if test "${enable_use_lisp_union_type+set}" = set; then :
2986 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
2988 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
2995 # Check whether --enable-profiling was given.
2996 if test "${enable_profiling+set}" = set; then :
2997 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3000 if test x$ac_enable_profiling != x ; then
3001 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3002 PROFILING_LDFLAGS="-pg"
3003 else
3004 PROFILING_CFLAGS=
3005 PROFILING_LDFLAGS=
3008 # Check whether --enable-autodepend was given.
3009 if test "${enable_autodepend+set}" = set; then :
3010 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3011 else
3012 ac_enable_autodepend=yes
3016 #### Make srcdir absolute, if it isn't already. It's important to
3017 #### avoid running the path through pwd unnecessarily, since pwd can
3018 #### give you automounter prefixes, which can go away. We do all this
3019 #### so Emacs can find its files when run uninstalled.
3020 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3021 unset CDPATH
3022 case "${srcdir}" in
3023 /* ) ;;
3025 ## We may be able to use the $PWD environment variable to make this
3026 ## absolute. But sometimes PWD is inaccurate.
3027 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3028 ## but that tested only for a well-formed and valid PWD,
3029 ## it did not object when PWD was well-formed and valid but just wrong.
3030 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3031 then
3032 srcdir="$PWD"
3033 else
3034 srcdir="`(cd ${srcdir}; pwd)`"
3037 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3038 esac
3040 #### Check if the source directory already has a configured system in it.
3041 if test `pwd` != `(cd ${srcdir} && pwd)` \
3042 && test -f "${srcdir}/src/config.h" ; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3044 as a build directory right now; it has been configured in its own
3045 right. To configure in another directory as well, you MUST
3046 use GNU make. If you do not have GNU make, then you must
3047 now do \`make distclean' in ${srcdir},
3048 and then run $0 again." >&5
3049 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3050 as a build directory right now; it has been configured in its own
3051 right. To configure in another directory as well, you MUST
3052 use GNU make. If you do not have GNU make, then you must
3053 now do \`make distclean' in ${srcdir},
3054 and then run $0 again." >&2;}
3057 #### Given the configuration name, set machfile and opsysfile to the
3058 #### names of the m/*.h and s/*.h files we should use.
3060 ### Canonicalize the configuration name.
3062 ac_aux_dir=
3063 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3064 for ac_t in install-sh install.sh shtool; do
3065 if test -f "$ac_dir/$ac_t"; then
3066 ac_aux_dir=$ac_dir
3067 ac_install_sh="$ac_aux_dir/$ac_t -c"
3068 break 2
3070 done
3071 done
3072 if test -z "$ac_aux_dir"; then
3073 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3076 # These three variables are undocumented and unsupported,
3077 # and are intended to be withdrawn in a future Autoconf release.
3078 # They can cause serious problems if a builder's source tree is in a directory
3079 # whose full name contains unusual characters.
3080 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3081 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3085 # Make sure we can run config.sub.
3086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3087 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3090 $as_echo_n "checking build system type... " >&6; }
3091 if test "${ac_cv_build+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 ac_build_alias=$build_alias
3095 test "x$ac_build_alias" = x &&
3096 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3097 test "x$ac_build_alias" = x &&
3098 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3099 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3100 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3104 $as_echo "$ac_cv_build" >&6; }
3105 case $ac_cv_build in
3106 *-*-*) ;;
3107 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3108 esac
3109 build=$ac_cv_build
3110 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_build
3112 shift
3113 build_cpu=$1
3114 build_vendor=$2
3115 shift; shift
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3118 build_os=$*
3119 IFS=$ac_save_IFS
3120 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3124 $as_echo_n "checking host system type... " >&6; }
3125 if test "${ac_cv_host+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test "x$host_alias" = x; then
3129 ac_cv_host=$ac_cv_build
3130 else
3131 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3137 $as_echo "$ac_cv_host" >&6; }
3138 case $ac_cv_host in
3139 *-*-*) ;;
3140 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3141 esac
3142 host=$ac_cv_host
3143 ac_save_IFS=$IFS; IFS='-'
3144 set x $ac_cv_host
3145 shift
3146 host_cpu=$1
3147 host_vendor=$2
3148 shift; shift
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3151 host_os=$*
3152 IFS=$ac_save_IFS
3153 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3156 canonical=$host
3157 configuration=${host_alias-${build_alias-$host}}
3161 ### If you add support for a new configuration, add code to this
3162 ### switch statement to recognize your configuration name and select
3163 ### the appropriate operating system and machine description files.
3165 ### You would hope that you could choose an m/*.h file pretty much
3166 ### based on the machine portion of the configuration name, and an s/*.h
3167 ### file based on the operating system portion. However, it turns out
3168 ### that each m/*.h file is pretty manufacturer-specific - for
3169 ### example mips.h is MIPS
3170 ### So we basically have to have a special case for each
3171 ### configuration name.
3173 ### As far as handling version numbers on operating systems is
3174 ### concerned, make sure things will fail in a fixable way. If
3175 ### /etc/MACHINES doesn't say anything about version numbers, be
3176 ### prepared to handle anything reasonably. If version numbers
3177 ### matter, be sure /etc/MACHINES says something about it.
3179 machine='' opsys='' unported=no
3180 case "${canonical}" in
3182 ## FreeBSD ports
3183 *-*-freebsd* )
3184 opsys=freebsd
3185 case "${canonical}" in
3186 alpha*) machine=alpha ;;
3187 amd64-*|x86_64-*) machine=amdx86-64 ;;
3188 arm*) machine=arm ;;
3189 ia64-*) machine=ia64 ;;
3190 i[3456]86-*) machine=intel386 ;;
3191 powerpc-*) machine=macppc ;;
3192 sparc-*) machine=sparc ;;
3193 sparc64-*) machine=sparc ;;
3194 esac
3197 ## FreeBSD kernel + glibc based userland
3198 *-*-kfreebsd*gnu* )
3199 opsys=gnu-kfreebsd
3200 case "${canonical}" in
3201 alpha*) machine=alpha ;;
3202 amd64-*|x86_64-*) machine=amdx86-64 ;;
3203 ia64-*) machine=ia64 ;;
3204 i[3456]86-*) machine=intel386 ;;
3205 powerpc-*) machine=macppc ;;
3206 sparc-*) machine=sparc ;;
3207 sparc64-*) machine=sparc ;;
3208 esac
3211 ## NetBSD ports
3212 *-*-netbsd* )
3213 opsys=netbsd
3214 case "${canonical}" in
3215 alpha*) machine=alpha ;;
3216 x86_64-*) machine=amdx86-64 ;;
3217 arm-*) machine=arm ;;
3218 hppa-*) machine=hp800 ;;
3219 i[3456]86-*) machine=intel386 ;;
3220 m68k-*) machine=m68k ;;
3221 powerpc-*) machine=macppc ;;
3222 mips-*) machine=mips ;;
3223 mipse[bl]-*) machine=mips ;;
3224 sparc*-) machine=sparc ;;
3225 vax-*) machine=vax ;;
3226 esac
3229 ## OpenBSD ports
3230 *-*-openbsd* )
3231 opsys=openbsd
3232 case "${canonical}" in
3233 alpha*) machine=alpha ;;
3234 x86_64-*) machine=amdx86-64 ;;
3235 arm-*) machine=arm ;;
3236 hppa-*) machine=hp800 ;;
3237 i386-*) machine=intel386 ;;
3238 powerpc-*) machine=macppc ;;
3239 sparc*) machine=sparc ;;
3240 vax-*) machine=vax ;;
3241 esac
3244 alpha*-*-linux-gnu* )
3245 machine=alpha opsys=gnu-linux
3248 arm*-*-linux-gnu* )
3249 machine=arm opsys=gnu-linux
3252 ## Apple Darwin / Mac OS X
3253 *-apple-darwin* )
3254 case "${canonical}" in
3255 i[3456]86-* ) machine=intel386 ;;
3256 powerpc-* ) machine=macppc ;;
3257 x86_64-* ) machine=amdx86-64 ;;
3258 * ) unported=yes ;;
3259 esac
3260 opsys=darwin
3261 # Define CPP as follows to make autoconf work correctly.
3262 CPP="${CC-cc} -E -no-cpp-precomp"
3263 # Use fink packages if available.
3264 if test -d /sw/include && test -d /sw/lib; then
3265 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3266 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3267 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3271 ## HP 9000 series 700 and 800, running HP/UX
3272 hppa*-hp-hpux10.2* )
3273 machine=hp800 opsys=hpux10-20
3275 hppa*-hp-hpux1[1-9]* )
3276 machine=hp800 opsys=hpux11
3277 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3280 hppa*-*-linux-gnu* )
3281 machine=hp800 opsys=gnu-linux
3284 ## IBM machines
3285 s390-*-linux-gnu* )
3286 machine=ibms390 opsys=gnu-linux
3288 s390x-*-linux-gnu* )
3289 machine=ibms390x opsys=gnu-linux
3291 rs6000-ibm-aix4.[23]* )
3292 machine=ibmrs6000 opsys=aix4-2
3294 powerpc-ibm-aix4.[23]* )
3295 machine=ibmrs6000 opsys=aix4-2
3297 rs6000-ibm-aix[56]* )
3298 machine=ibmrs6000 opsys=aix4-2
3300 powerpc-ibm-aix[56]* )
3301 machine=ibmrs6000 opsys=aix4-2
3304 ## Macintosh PowerPC
3305 powerpc*-*-linux-gnu* )
3306 machine=macppc opsys=gnu-linux
3309 ## Silicon Graphics machines
3310 ## Iris 4D
3311 mips-sgi-irix6.5 )
3312 machine=iris4d opsys=irix6-5
3313 # Without defining _LANGUAGE_C, things get masked out in the headers
3314 # so that, for instance, grepping for `free' in stdlib.h fails and
3315 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3316 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3317 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3320 ## Suns
3321 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3322 machine=sparc opsys=gnu-linux
3325 *-sun-solaris* \
3326 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3327 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3328 case "${canonical}" in
3329 i[3456]86-*-* ) machine=intel386 ;;
3330 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3331 sparc* ) machine=sparc ;;
3332 * ) unported=yes ;;
3333 esac
3334 case "${canonical}" in
3335 *-sunos5.6* | *-solaris2.6* )
3336 opsys=sol2-6
3337 NON_GNU_CPP=/usr/ccs/lib/cpp
3338 RANLIB="ar -ts"
3340 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3341 opsys=sol2-6
3342 emacs_check_sunpro_c=yes
3343 NON_GNU_CPP=/usr/ccs/lib/cpp
3345 *-sunos5* | *-solaris* )
3346 opsys=sol2-10
3347 emacs_check_sunpro_c=yes
3348 NON_GNU_CPP=/usr/ccs/lib/cpp
3350 esac
3351 ## Watch out for a compiler that we know will not work.
3352 case "${canonical}" in
3353 *-solaris* | *-sunos5* )
3354 if [ "x$CC" = x/usr/ucb/cc ]; then
3355 ## /usr/ucb/cc doesn't work;
3356 ## we should find some other compiler that does work.
3357 unset CC
3360 *) ;;
3361 esac
3364 ## IA-64
3365 ia64*-*-linux* )
3366 machine=ia64 opsys=gnu-linux
3369 ## Intel 386 machines where we don't care about the manufacturer.
3370 i[3456]86-*-* )
3371 machine=intel386
3372 case "${canonical}" in
3373 *-cygwin ) opsys=cygwin ;;
3374 *-darwin* ) opsys=darwin
3375 CPP="${CC-cc} -E -no-cpp-precomp"
3377 *-linux-gnu* ) opsys=gnu-linux ;;
3378 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3379 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3380 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3381 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3382 esac
3385 ## m68k Linux-based GNU system
3386 m68k-*-linux-gnu* )
3387 machine=m68k opsys=gnu-linux
3390 ## Mips Linux-based GNU system
3391 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3392 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3393 machine=mips opsys=gnu-linux
3396 ## AMD x86-64 Linux-based GNU system
3397 x86_64-*-linux-gnu* )
3398 machine=amdx86-64 opsys=gnu-linux
3401 ## Tensilica Xtensa Linux-based GNU system
3402 xtensa*-*-linux-gnu* )
3403 machine=xtensa opsys=gnu-linux
3406 ## SuperH Linux-based GNU system
3407 sh[34]*-*-linux-gnu* )
3408 machine=sh3 opsys=gnu-linux
3412 unported=yes
3414 esac
3416 ### If the code above didn't choose an operating system, just choose
3417 ### an operating system based on the configuration name. You really
3418 ### only want to use this when you have no idea what the right
3419 ### operating system is; if you know what operating systems a machine
3420 ### runs, it's cleaner to make it explicit in the case statement
3421 ### above.
3422 if test x"${opsys}" = x; then
3423 case "${canonical}" in
3424 *-gnu* ) opsys=gnu ;;
3426 unported=yes
3428 esac
3433 if test $unported = yes; then
3434 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3435 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3438 machfile="m/${machine}.h"
3439 opsysfile="s/${opsys}.h"
3442 #### Choose a compiler.
3443 test -n "$CC" && cc_specified=yes
3445 # Save the value of CFLAGS that the user specified.
3446 SPECIFIED_CFLAGS="$CFLAGS"
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_CC+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC="$CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3475 done
3476 done
3477 IFS=$as_save_IFS
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$ac_cv_prog_CC"; then
3493 ac_ct_CC=$CC
3494 # Extract the first word of "gcc", so it can be a program name with args.
3495 set dummy gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_ac_ct_CC="gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3515 done
3516 done
3517 IFS=$as_save_IFS
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3530 if test "x$ac_ct_CC" = x; then
3531 CC=""
3532 else
3533 case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3538 esac
3539 CC=$ac_ct_CC
3541 else
3542 CC="$ac_cv_prog_CC"
3545 if test -z "$CC"; then
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}cc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CC+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_CC="${ac_tool_prefix}cc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3568 done
3569 done
3570 IFS=$as_save_IFS
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3586 if test -z "$CC"; then
3587 # Extract the first word of "cc", so it can be a program name with args.
3588 set dummy cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 ac_prog_rejected=no
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606 ac_prog_rejected=yes
3607 continue
3609 ac_cv_prog_CC="cc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3615 IFS=$as_save_IFS
3617 if test $ac_prog_rejected = yes; then
3618 # We found a bogon in the path, so make sure we never use it.
3619 set dummy $ac_cv_prog_CC
3620 shift
3621 if test $# != 0; then
3622 # We chose a different compiler from the bogus one.
3623 # However, it has the same basename, so the bogon will be chosen
3624 # first if we set CC to just the basename; use the full file name.
3625 shift
3626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 for ac_prog in cl.exe
3646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_CC+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3667 done
3668 done
3669 IFS=$as_save_IFS
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$CC" && break
3684 done
3686 if test -z "$CC"; then
3687 ac_ct_CC=$CC
3688 for ac_prog in cl.exe
3690 # Extract the first word of "$ac_prog", so it can be a program name with args.
3691 set dummy $ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$ac_ct_CC"; then
3698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_ac_ct_CC="$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3720 $as_echo "$ac_ct_CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$ac_ct_CC" && break
3728 done
3730 if test "x$ac_ct_CC" = x; then
3731 CC=""
3732 else
3733 case $cross_compiling:$ac_tool_warned in
3734 yes:)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3738 esac
3739 CC=$ac_ct_CC
3746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." "$LINENO" 5; }
3751 # Provide some information about the compiler.
3752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 set X $ac_compile
3754 ac_compiler=$2
3755 for ac_option in --version -v -V -qversion; do
3756 { { ac_try="$ac_compiler $ac_option >&5"
3757 case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3764 ac_status=$?
3765 if test -s conftest.err; then
3766 sed '10a\
3767 ... rest of stderr output deleted ...
3768 10q' conftest.err >conftest.er1
3769 cat conftest.er1 >&5
3771 rm -f conftest.er1 conftest.err
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }
3774 done
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3780 main ()
3784 return 0;
3786 _ACEOF
3787 ac_clean_files_save=$ac_clean_files
3788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3789 # Try to create an executable without -o first, disregard a.out.
3790 # It will help us diagnose broken compilers, and finding out an intuition
3791 # of exeext.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3793 $as_echo_n "checking whether the C compiler works... " >&6; }
3794 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3796 # The possible output files:
3797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3799 ac_rmfiles=
3800 for ac_file in $ac_files
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3805 esac
3806 done
3807 rm -f $ac_rmfiles
3809 if { { ac_try="$ac_link_default"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_link_default") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3823 # so that the user can short-circuit this test for compilers unknown to
3824 # Autoconf.
3825 for ac_file in $ac_files ''
3827 test -f "$ac_file" || continue
3828 case $ac_file in
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3831 [ab].out )
3832 # We found the default executable, but exeext='' is most
3833 # certainly right.
3834 break;;
3835 *.* )
3836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3837 then :; else
3838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 # We set ac_cv_exeext here because the later test for it is not
3841 # safe: cross compilers may not add the suffix if given an `-o'
3842 # argument, so we may need to know it at that point already.
3843 # Even if this section looks crufty: it has the advantage of
3844 # actually working.
3845 break;;
3847 break;;
3848 esac
3849 done
3850 test "$ac_cv_exeext" = no && ac_cv_exeext=
3852 else
3853 ac_file=''
3855 if test -z "$ac_file"; then :
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 { as_fn_set_status 77
3864 as_fn_error "C compiler cannot create executables
3865 See \`config.log' for more details." "$LINENO" 5; }; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3868 $as_echo "yes" >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3871 $as_echo_n "checking for C compiler default output file name... " >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3873 $as_echo "$ac_file" >&6; }
3874 ac_exeext=$ac_cv_exeext
3876 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3877 ac_clean_files=$ac_clean_files_save
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3879 $as_echo_n "checking for suffix of executables... " >&6; }
3880 if { { ac_try="$ac_link"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; then :
3891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3893 # work properly (i.e., refer to `conftest.exe'), while it won't with
3894 # `rm'.
3895 for ac_file in conftest.exe conftest conftest.*; do
3896 test -f "$ac_file" || continue
3897 case $ac_file in
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 break;;
3901 * ) break;;
3902 esac
3903 done
3904 else
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error "cannot compute suffix of executables: cannot compile and link
3908 See \`config.log' for more details." "$LINENO" 5; }
3910 rm -f conftest conftest$ac_cv_exeext
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3912 $as_echo "$ac_cv_exeext" >&6; }
3914 rm -f conftest.$ac_ext
3915 EXEEXT=$ac_cv_exeext
3916 ac_exeext=$EXEEXT
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919 #include <stdio.h>
3921 main ()
3923 FILE *f = fopen ("conftest.out", "w");
3924 return ferror (f) || fclose (f) != 0;
3927 return 0;
3929 _ACEOF
3930 ac_clean_files="$ac_clean_files conftest.out"
3931 # Check that the compiler produces executables we can run. If not, either
3932 # the compiler is broken, or we cross compile.
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3934 $as_echo_n "checking whether we are cross compiling... " >&6; }
3935 if test "$cross_compiling" != yes; then
3936 { { ac_try="$ac_link"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_link") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }
3947 if { ac_try='./conftest$ac_cv_exeext'
3948 { { case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953 $as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_try") 2>&5
3955 ac_status=$?
3956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3957 test $ac_status = 0; }; }; then
3958 cross_compiling=no
3959 else
3960 if test "$cross_compiling" = maybe; then
3961 cross_compiling=yes
3962 else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error "cannot run C compiled programs.
3966 If you meant to cross compile, use \`--host'.
3967 See \`config.log' for more details." "$LINENO" 5; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3972 $as_echo "$cross_compiling" >&6; }
3974 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3975 ac_clean_files=$ac_clean_files_save
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3977 $as_echo_n "checking for suffix of object files... " >&6; }
3978 if test "${ac_cv_objext+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3985 main ()
3989 return 0;
3991 _ACEOF
3992 rm -f conftest.o conftest.obj
3993 if { { ac_try="$ac_compile"
3994 case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997 esac
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 $as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_compile") 2>&5
4001 ac_status=$?
4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }; then :
4004 for ac_file in conftest.o conftest.obj conftest.*; do
4005 test -f "$ac_file" || continue;
4006 case $ac_file in
4007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4008 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4009 break;;
4010 esac
4011 done
4012 else
4013 $as_echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error "cannot compute suffix of object files: cannot compile
4019 See \`config.log' for more details." "$LINENO" 5; }
4021 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4024 $as_echo "$ac_cv_objext" >&6; }
4025 OBJEXT=$ac_cv_objext
4026 ac_objext=$OBJEXT
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4028 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4029 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4036 main ()
4038 #ifndef __GNUC__
4039 choke me
4040 #endif
4043 return 0;
4045 _ACEOF
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_compiler_gnu=yes
4048 else
4049 ac_compiler_gnu=no
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4056 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4057 if test $ac_compiler_gnu = yes; then
4058 GCC=yes
4059 else
4060 GCC=
4062 ac_test_CFLAGS=${CFLAGS+set}
4063 ac_save_CFLAGS=$CFLAGS
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4065 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4066 if test "${ac_cv_prog_cc_g+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 ac_save_c_werror_flag=$ac_c_werror_flag
4070 ac_c_werror_flag=yes
4071 ac_cv_prog_cc_g=no
4072 CFLAGS="-g"
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4077 main ()
4081 return 0;
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_cv_prog_cc_g=yes
4086 else
4087 CFLAGS=""
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4092 main ()
4096 return 0;
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4101 else
4102 ac_c_werror_flag=$ac_save_c_werror_flag
4103 CFLAGS="-g"
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4108 main ()
4112 return 0;
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_prog_cc_g=yes
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 ac_c_werror_flag=$ac_save_c_werror_flag
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4126 $as_echo "$ac_cv_prog_cc_g" >&6; }
4127 if test "$ac_test_CFLAGS" = set; then
4128 CFLAGS=$ac_save_CFLAGS
4129 elif test $ac_cv_prog_cc_g = yes; then
4130 if test "$GCC" = yes; then
4131 CFLAGS="-g -O2"
4132 else
4133 CFLAGS="-g"
4135 else
4136 if test "$GCC" = yes; then
4137 CFLAGS="-O2"
4138 else
4139 CFLAGS=
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4143 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4144 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 ac_cv_prog_cc_c89=no
4148 ac_save_CC=$CC
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <stdarg.h>
4152 #include <stdio.h>
4153 #include <sys/types.h>
4154 #include <sys/stat.h>
4155 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4156 struct buf { int x; };
4157 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4158 static char *e (p, i)
4159 char **p;
4160 int i;
4162 return p[i];
4164 static char *f (char * (*g) (char **, int), char **p, ...)
4166 char *s;
4167 va_list v;
4168 va_start (v,p);
4169 s = g (p, va_arg (v,int));
4170 va_end (v);
4171 return s;
4174 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4175 function prototypes and stuff, but not '\xHH' hex character constants.
4176 These don't provoke an error unfortunately, instead are silently treated
4177 as 'x'. The following induces an error, until -std is added to get
4178 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4179 array size at least. It's necessary to write '\x00'==0 to get something
4180 that's true only with -std. */
4181 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4183 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4184 inside strings and character constants. */
4185 #define FOO(x) 'x'
4186 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4188 int test (int i, double x);
4189 struct s1 {int (*f) (int a);};
4190 struct s2 {int (*f) (double a);};
4191 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4192 int argc;
4193 char **argv;
4195 main ()
4197 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4199 return 0;
4201 _ACEOF
4202 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4203 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4205 CC="$ac_save_CC $ac_arg"
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_cv_prog_cc_c89=$ac_arg
4209 rm -f core conftest.err conftest.$ac_objext
4210 test "x$ac_cv_prog_cc_c89" != "xno" && break
4211 done
4212 rm -f conftest.$ac_ext
4213 CC=$ac_save_CC
4216 # AC_CACHE_VAL
4217 case "x$ac_cv_prog_cc_c89" in
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4220 $as_echo "none needed" >&6; } ;;
4221 xno)
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4223 $as_echo "unsupported" >&6; } ;;
4225 CC="$CC $ac_cv_prog_cc_c89"
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4227 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4228 esac
4229 if test "x$ac_cv_prog_cc_c89" != xno; then :
4233 ac_ext=c
4234 ac_cpp='$CPP $CPPFLAGS'
4235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 # On Suns, sometimes $CPP names a directory.
4241 if test -n "$CPP" && test -d "$CPP"; then
4242 CPP=
4245 ## If not using gcc, and on Solaris, and no CPP specified, see if
4246 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4247 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4248 test x"$CPP" = x; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4250 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4252 if test "${emacs_cv_sunpro_c+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4259 main ()
4261 #ifndef __SUNPRO_C
4262 fail;
4263 #endif
4266 return 0;
4268 _ACEOF
4269 if ac_fn_c_try_link "$LINENO"; then :
4270 emacs_cv_sunpro_c=yes
4271 else
4272 emacs_cv_sunpro_c=no
4274 rm -f core conftest.err conftest.$ac_objext \
4275 conftest$ac_exeext conftest.$ac_ext
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4279 $as_echo "$emacs_cv_sunpro_c" >&6; }
4281 if test x"$emacs_cv_sunpro_c" = xyes; then
4282 NON_GNU_CPP="$CC -E -Xs"
4286 #### Some systems specify a CPP to use unless we are using GCC.
4287 #### Now that we know whether we are using GCC, we can decide whether
4288 #### to use that one.
4289 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4290 then
4291 CPP="$NON_GNU_CPP"
4294 #### Some systems specify a CC to use unless we are using GCC.
4295 #### Now that we know whether we are using GCC, we can decide whether
4296 #### to use that one.
4297 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4298 test x$cc_specified != xyes
4299 then
4300 CC="$NON_GNU_CC"
4303 if test x$GCC = xyes; then
4304 C_OPTIMIZE_SWITCH=-O2
4305 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
4306 else
4307 C_OPTIMIZE_SWITCH=-O
4308 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4317 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4318 # On Suns, sometimes $CPP names a directory.
4319 if test -n "$CPP" && test -d "$CPP"; then
4320 CPP=
4322 if test -z "$CPP"; then
4323 if test "${ac_cv_prog_CPP+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 # Double quotes because CPP needs to be expanded
4327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329 ac_preproc_ok=false
4330 for ac_c_preproc_warn_flag in '' yes
4332 # Use a header file that comes with gcc, so configuring glibc
4333 # with a fresh cross-compiler works.
4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4335 # <limits.h> exists even on freestanding compilers.
4336 # On the NeXT, cc -E runs the code through the compiler's parser,
4337 # not just through cpp. "Syntax error" is here to catch this case.
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4340 #ifdef __STDC__
4341 # include <limits.h>
4342 #else
4343 # include <assert.h>
4344 #endif
4345 Syntax error
4346 _ACEOF
4347 if ac_fn_c_try_cpp "$LINENO"; then :
4349 else
4350 # Broken: fails on valid input.
4351 continue
4353 rm -f conftest.err conftest.$ac_ext
4355 # OK, works on sane cases. Now check whether nonexistent headers
4356 # can be detected and how.
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359 #include <ac_nonexistent.h>
4360 _ACEOF
4361 if ac_fn_c_try_cpp "$LINENO"; then :
4362 # Broken: success on invalid input.
4363 continue
4364 else
4365 # Passes both tests.
4366 ac_preproc_ok=:
4367 break
4369 rm -f conftest.err conftest.$ac_ext
4371 done
4372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4373 rm -f conftest.err conftest.$ac_ext
4374 if $ac_preproc_ok; then :
4375 break
4378 done
4379 ac_cv_prog_CPP=$CPP
4382 CPP=$ac_cv_prog_CPP
4383 else
4384 ac_cv_prog_CPP=$CPP
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4387 $as_echo "$CPP" >&6; }
4388 ac_preproc_ok=false
4389 for ac_c_preproc_warn_flag in '' yes
4391 # Use a header file that comes with gcc, so configuring glibc
4392 # with a fresh cross-compiler works.
4393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4394 # <limits.h> exists even on freestanding compilers.
4395 # On the NeXT, cc -E runs the code through the compiler's parser,
4396 # not just through cpp. "Syntax error" is here to catch this case.
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #ifdef __STDC__
4400 # include <limits.h>
4401 #else
4402 # include <assert.h>
4403 #endif
4404 Syntax error
4405 _ACEOF
4406 if ac_fn_c_try_cpp "$LINENO"; then :
4408 else
4409 # Broken: fails on valid input.
4410 continue
4412 rm -f conftest.err conftest.$ac_ext
4414 # OK, works on sane cases. Now check whether nonexistent headers
4415 # can be detected and how.
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <ac_nonexistent.h>
4419 _ACEOF
4420 if ac_fn_c_try_cpp "$LINENO"; then :
4421 # Broken: success on invalid input.
4422 continue
4423 else
4424 # Passes both tests.
4425 ac_preproc_ok=:
4426 break
4428 rm -f conftest.err conftest.$ac_ext
4430 done
4431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4432 rm -f conftest.err conftest.$ac_ext
4433 if $ac_preproc_ok; then :
4435 else
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4439 See \`config.log' for more details." "$LINENO" 5; }
4442 ac_ext=c
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451 if test "${ac_cv_path_GREP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -z "$GREP"; then
4455 ac_path_GREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in grep ggrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4465 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4466 # Check for GNU ac_path_GREP and select it if it is found.
4467 # Check for GNU $ac_path_GREP
4468 case `"$ac_path_GREP" --version 2>&1` in
4469 *GNU*)
4470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4472 ac_count=0
4473 $as_echo_n 0123456789 >"conftest.in"
4474 while :
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'GREP' >> "conftest.nl"
4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_GREP="$ac_path_GREP"
4486 ac_path_GREP_max=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4490 done
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492 esac
4494 $ac_path_GREP_found && break 3
4495 done
4496 done
4497 done
4498 IFS=$as_save_IFS
4499 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 else
4503 ac_cv_path_GREP=$GREP
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508 $as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513 $as_echo_n "checking for egrep... " >&6; }
4514 if test "${ac_cv_path_EGREP+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4519 else
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4535 *GNU*)
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4538 ac_count=0
4539 $as_echo_n 0123456789 >"conftest.in"
4540 while :
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558 esac
4560 $ac_path_EGREP_found && break 3
4561 done
4562 done
4563 done
4564 IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568 else
4569 ac_cv_path_EGREP=$EGREP
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575 $as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP="$ac_cv_path_EGREP"
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4580 $as_echo_n "checking for ANSI C header files... " >&6; }
4581 if test "${ac_cv_header_stdc+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #include <stdlib.h>
4587 #include <stdarg.h>
4588 #include <string.h>
4589 #include <float.h>
4592 main ()
4596 return 0;
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_header_stdc=yes
4601 else
4602 ac_cv_header_stdc=no
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 if test $ac_cv_header_stdc = yes; then
4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610 #include <string.h>
4612 _ACEOF
4613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "memchr" >/dev/null 2>&1; then :
4616 else
4617 ac_cv_header_stdc=no
4619 rm -f conftest*
4623 if test $ac_cv_header_stdc = yes; then
4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4627 #include <stdlib.h>
4629 _ACEOF
4630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631 $EGREP "free" >/dev/null 2>&1; then :
4633 else
4634 ac_cv_header_stdc=no
4636 rm -f conftest*
4640 if test $ac_cv_header_stdc = yes; then
4641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642 if test "$cross_compiling" = yes; then :
4644 else
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4647 #include <ctype.h>
4648 #include <stdlib.h>
4649 #if ((' ' & 0x0FF) == 0x020)
4650 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652 #else
4653 # define ISLOWER(c) \
4654 (('a' <= (c) && (c) <= 'i') \
4655 || ('j' <= (c) && (c) <= 'r') \
4656 || ('s' <= (c) && (c) <= 'z'))
4657 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4658 #endif
4660 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662 main ()
4664 int i;
4665 for (i = 0; i < 256; i++)
4666 if (XOR (islower (i), ISLOWER (i))
4667 || toupper (i) != TOUPPER (i))
4668 return 2;
4669 return 0;
4671 _ACEOF
4672 if ac_fn_c_try_run "$LINENO"; then :
4674 else
4675 ac_cv_header_stdc=no
4677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678 conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4684 $as_echo "$ac_cv_header_stdc" >&6; }
4685 if test $ac_cv_header_stdc = yes; then
4687 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4691 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4693 inttypes.h stdint.h unistd.h
4694 do :
4695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4698 eval as_val=\$$as_ac_Header
4699 if test "x$as_val" = x""yes; then :
4700 cat >>confdefs.h <<_ACEOF
4701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702 _ACEOF
4706 done
4710 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4711 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4712 MINIX=yes
4713 else
4714 MINIX=
4718 if test "$MINIX" = yes; then
4720 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4723 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4726 $as_echo "#define _MINIX 1" >>confdefs.h
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4732 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4733 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4739 # define __EXTENSIONS__ 1
4740 $ac_includes_default
4742 main ()
4746 return 0;
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_safe_to_define___extensions__=yes
4751 else
4752 ac_cv_safe_to_define___extensions__=no
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4757 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4758 test $ac_cv_safe_to_define___extensions__ = yes &&
4759 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4761 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4763 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4765 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4767 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4771 ### Use -Wno-pointer-sign if the compiler supports it
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4773 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4774 SAVE_CFLAGS="$CFLAGS"
4775 CFLAGS="$CFLAGS -Wno-pointer-sign"
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4780 main ()
4784 return 0;
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788 has_option=yes
4789 else
4790 has_option=no
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 if test $has_option = yes; then
4794 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4797 $as_echo "$has_option" >&6; }
4798 CFLAGS="$SAVE_CFLAGS"
4799 unset has_option
4800 unset SAVE_CFLAGS
4802 ### Use -Wdeclaration-after-statement if the compiler supports it
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4804 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4805 SAVE_CFLAGS="$CFLAGS"
4806 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4811 main ()
4815 return 0;
4817 _ACEOF
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819 has_option=yes
4820 else
4821 has_option=no
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 if test $has_option = yes; then
4825 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4828 $as_echo "$has_option" >&6; }
4829 CFLAGS="$SAVE_CFLAGS"
4830 unset has_option
4831 unset SAVE_CFLAGS
4833 ### Use -Wold-style-definition if the compiler supports it
4834 # This can be removed when conversion to standard C is finished.
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
4836 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
4837 SAVE_CFLAGS="$CFLAGS"
4838 CFLAGS="$CFLAGS -Wold-style-definition"
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4843 main ()
4847 return 0;
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 has_option=yes
4852 else
4853 has_option=no
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 if test $has_option = yes; then
4857 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4860 $as_echo "$has_option" >&6; }
4861 CFLAGS="$SAVE_CFLAGS"
4862 unset has_option
4863 unset SAVE_CFLAGS
4866 #### Some other nice autoconf tests.
4868 ac_ext=c
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4874 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4875 # On Suns, sometimes $CPP names a directory.
4876 if test -n "$CPP" && test -d "$CPP"; then
4877 CPP=
4879 if test -z "$CPP"; then
4880 if test "${ac_cv_prog_CPP+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 # Double quotes because CPP needs to be expanded
4884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4886 ac_preproc_ok=false
4887 for ac_c_preproc_warn_flag in '' yes
4889 # Use a header file that comes with gcc, so configuring glibc
4890 # with a fresh cross-compiler works.
4891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892 # <limits.h> exists even on freestanding compilers.
4893 # On the NeXT, cc -E runs the code through the compiler's parser,
4894 # not just through cpp. "Syntax error" is here to catch this case.
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 #ifdef __STDC__
4898 # include <limits.h>
4899 #else
4900 # include <assert.h>
4901 #endif
4902 Syntax error
4903 _ACEOF
4904 if ac_fn_c_try_cpp "$LINENO"; then :
4906 else
4907 # Broken: fails on valid input.
4908 continue
4910 rm -f conftest.err conftest.$ac_ext
4912 # OK, works on sane cases. Now check whether nonexistent headers
4913 # can be detected and how.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <ac_nonexistent.h>
4917 _ACEOF
4918 if ac_fn_c_try_cpp "$LINENO"; then :
4919 # Broken: success on invalid input.
4920 continue
4921 else
4922 # Passes both tests.
4923 ac_preproc_ok=:
4924 break
4926 rm -f conftest.err conftest.$ac_ext
4928 done
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.$ac_ext
4931 if $ac_preproc_ok; then :
4932 break
4935 done
4936 ac_cv_prog_CPP=$CPP
4939 CPP=$ac_cv_prog_CPP
4940 else
4941 ac_cv_prog_CPP=$CPP
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4944 $as_echo "$CPP" >&6; }
4945 ac_preproc_ok=false
4946 for ac_c_preproc_warn_flag in '' yes
4948 # Use a header file that comes with gcc, so configuring glibc
4949 # with a fresh cross-compiler works.
4950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4951 # <limits.h> exists even on freestanding compilers.
4952 # On the NeXT, cc -E runs the code through the compiler's parser,
4953 # not just through cpp. "Syntax error" is here to catch this case.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #ifdef __STDC__
4957 # include <limits.h>
4958 #else
4959 # include <assert.h>
4960 #endif
4961 Syntax error
4962 _ACEOF
4963 if ac_fn_c_try_cpp "$LINENO"; then :
4965 else
4966 # Broken: fails on valid input.
4967 continue
4969 rm -f conftest.err conftest.$ac_ext
4971 # OK, works on sane cases. Now check whether nonexistent headers
4972 # can be detected and how.
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975 #include <ac_nonexistent.h>
4976 _ACEOF
4977 if ac_fn_c_try_cpp "$LINENO"; then :
4978 # Broken: success on invalid input.
4979 continue
4980 else
4981 # Passes both tests.
4982 ac_preproc_ok=:
4983 break
4985 rm -f conftest.err conftest.$ac_ext
4987 done
4988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4989 rm -f conftest.err conftest.$ac_ext
4990 if $ac_preproc_ok; then :
4992 else
4993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4996 See \`config.log' for more details." "$LINENO" 5; }
4999 ac_ext=c
5000 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005 # Find a good install program. We prefer a C program (faster),
5006 # so one script is as good as another. But avoid the broken or
5007 # incompatible versions:
5008 # SysV /etc/install, /usr/sbin/install
5009 # SunOS /usr/etc/install
5010 # IRIX /sbin/install
5011 # AIX /bin/install
5012 # AmigaOS /C/install, which installs bootblocks on floppy discs
5013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5016 # OS/2's system install, which has a completely different semantic
5017 # ./install, which can be erroneously created by make from ./install.sh.
5018 # Reject install programs that cannot install multiple files.
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5020 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5021 if test -z "$INSTALL"; then
5022 if test "${ac_cv_path_install+set}" = set; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 # Account for people who put trailing slashes in PATH elements.
5031 case $as_dir/ in #((
5032 ./ | .// | /[cC]/* | \
5033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5034 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5035 /usr/ucb/* ) ;;
5037 # OSF1 and SCO ODT 3.0 have their own names for install.
5038 # Don't use installbsd from OSF since it installs stuff as root
5039 # by default.
5040 for ac_prog in ginstall scoinst install; do
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5043 if test $ac_prog = install &&
5044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5045 # AIX install. It has an incompatible calling convention.
5047 elif test $ac_prog = install &&
5048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5049 # program-specific install script used by HP pwplus--don't use.
5051 else
5052 rm -rf conftest.one conftest.two conftest.dir
5053 echo one > conftest.one
5054 echo two > conftest.two
5055 mkdir conftest.dir
5056 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5057 test -s conftest.one && test -s conftest.two &&
5058 test -s conftest.dir/conftest.one &&
5059 test -s conftest.dir/conftest.two
5060 then
5061 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5062 break 3
5066 done
5067 done
5069 esac
5071 done
5072 IFS=$as_save_IFS
5074 rm -rf conftest.one conftest.two conftest.dir
5077 if test "${ac_cv_path_install+set}" = set; then
5078 INSTALL=$ac_cv_path_install
5079 else
5080 # As a last resort, use the slow shell script. Don't cache a
5081 # value for INSTALL within a source directory, because that will
5082 # break other packages using the cache if that directory is
5083 # removed, or if the value is a relative name.
5084 INSTALL=$ac_install_sh
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5088 $as_echo "$INSTALL" >&6; }
5090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5091 # It thinks the first close brace ends the variable substitution.
5092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5098 if test "x$RANLIB" = x; then
5099 if test -n "$ac_tool_prefix"; then
5100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$RANLIB"; then
5108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5121 done
5122 done
5123 IFS=$as_save_IFS
5127 RANLIB=$ac_cv_prog_RANLIB
5128 if test -n "$RANLIB"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5130 $as_echo "$RANLIB" >&6; }
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5138 if test -z "$ac_cv_prog_RANLIB"; then
5139 ac_ct_RANLIB=$RANLIB
5140 # Extract the first word of "ranlib", so it can be a program name with args.
5141 set dummy ranlib; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$ac_ct_RANLIB"; then
5148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_ac_ct_RANLIB="ranlib"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5161 done
5162 done
5163 IFS=$as_save_IFS
5167 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5168 if test -n "$ac_ct_RANLIB"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5170 $as_echo "$ac_ct_RANLIB" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5176 if test "x$ac_ct_RANLIB" = x; then
5177 RANLIB=":"
5178 else
5179 case $cross_compiling:$ac_tool_warned in
5180 yes:)
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5183 ac_tool_warned=yes ;;
5184 esac
5185 RANLIB=$ac_ct_RANLIB
5187 else
5188 RANLIB="$ac_cv_prog_RANLIB"
5193 ## Although we're running on an amd64 kernel, we're actually compiling for
5194 ## the x86 architecture. The user should probably have provided an
5195 ## explicit --build to `configure', but if everything else than the kernel
5196 ## is running in i386 mode, we can help them out.
5197 if test "$machine" = "amdx86-64"; then
5198 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5199 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5203 if test "$ac_cv_have_decl_i386" = "yes"; then
5204 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5205 machine=intel386
5206 machfile="m/${machine}.h"
5210 # Extract the first word of "install-info", so it can be a program name with args.
5211 set dummy install-info; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 case $INSTALL_INFO in
5218 [\\/]* | ?:[\\/]*)
5219 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5233 done
5234 done
5235 IFS=$as_save_IFS
5238 esac
5240 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5241 if test -n "$INSTALL_INFO"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5243 $as_echo "$INSTALL_INFO" >&6; }
5244 else
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5250 # Extract the first word of "install-info", so it can be a program name with args.
5251 set dummy install-info; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 case $INSTALL_INFO in
5258 [\\/]* | ?:[\\/]*)
5259 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in /usr/sbin
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5275 IFS=$as_save_IFS
5278 esac
5280 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5281 if test -n "$INSTALL_INFO"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5283 $as_echo "$INSTALL_INFO" >&6; }
5284 else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5290 # Extract the first word of "install-info", so it can be a program name with args.
5291 set dummy install-info; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 case $INSTALL_INFO in
5298 [\\/]* | ?:[\\/]*)
5299 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in /sbin
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5313 done
5314 done
5315 IFS=$as_save_IFS
5317 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5319 esac
5321 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5322 if test -n "$INSTALL_INFO"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5324 $as_echo "$INSTALL_INFO" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5331 # Extract the first word of "gzip", so it can be a program name with args.
5332 set dummy gzip; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 case $GZIP_PROG in
5339 [\\/]* | ?:[\\/]*)
5340 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5359 esac
5361 GZIP_PROG=$ac_cv_path_GZIP_PROG
5362 if test -n "$GZIP_PROG"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5364 $as_echo "$GZIP_PROG" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5373 ## Need makeinfo >= 4.6 (?) to build the manuals.
5374 # Extract the first word of "makeinfo", so it can be a program name with args.
5375 set dummy makeinfo; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 case $MAKEINFO in
5382 [\\/]* | ?:[\\/]*)
5383 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5401 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5403 esac
5405 MAKEINFO=$ac_cv_path_MAKEINFO
5406 if test -n "$MAKEINFO"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5408 $as_echo "$MAKEINFO" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5415 if test "$MAKEINFO" != "no" && \
5416 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
5417 MAKEINFO=no
5420 ## Makeinfo is unusual. For a released Emacs, the manuals are
5421 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5422 ## therefore in the category of "special tools" not normally required, which
5423 ## configure does not have to check for (eg autoconf itself).
5424 ## In a Bazaar checkout on the other hand, the manuals are not included.
5425 ## So makeinfo is a requirement to build from Bazaar, and configure
5426 ## should test for it as it does for any other build requirement.
5427 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5428 ## with pre-built manuals, from a Bazaar checkout.
5429 if test "$MAKEINFO" = "no"; then
5430 if test "x${with_makeinfo}" = "xno"; then
5431 MAKEINFO=off
5432 elif test ! -e $srcdir/info/emacs; then
5433 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5434 source tree does not seem to have pre-built manuals in the \`info' directory.
5435 Either install a suitable version of makeinfo, or re-run configure
5436 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5441 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5442 then
5443 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5446 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5447 then
5448 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5452 late_LDFLAGS=$LDFLAGS
5453 if test "$GCC" = yes; then
5454 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5455 else
5456 LDFLAGS="$LDFLAGS -znocombreloc"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5460 $as_echo_n "checking for -znocombreloc... " >&6; }
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 main(){return 0;}
5464 _ACEOF
5465 if ac_fn_c_try_link "$LINENO"; then :
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467 $as_echo "yes" >&6; }
5468 else
5469 LDFLAGS=$late_LDFLAGS
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5473 rm -f core conftest.err conftest.$ac_objext \
5474 conftest$ac_exeext conftest.$ac_ext
5476 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5479 # The value of CPP is a quoted variable reference, so we need to do this
5480 # to get its actual value...
5481 CPP=`eval "echo $CPP"`
5484 ### First figure out CFLAGS (which we use for running the compiler here)
5485 ### and REAL_CFLAGS (which we use for real compilation).
5486 ### The two are the same except when using GCC where we might use
5487 ### extra warning and profiling flags.
5489 ### If the CFLAGS env var is specified, we use that value
5490 ### instead of the default.
5492 if test "x$SPECIFIED_CFLAGS" = x; then
5493 CFLAGS="-g $C_OPTIMIZE_SWITCH"
5494 if test x$GCC = xyes; then
5495 REAL_CFLAGS="$CFLAGS $C_WARNINGS_SWITCH $PROFILING_CFLAGS"
5496 else
5497 REAL_CFLAGS="$CFLAGS"
5499 else
5500 REAL_CFLAGS="$CFLAGS"
5504 CANNOT_DUMP=no
5505 case "$opsys" in
5506 your-opsys-here)
5507 CANNOT_DUMP=yes
5509 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
5512 esac
5516 UNEXEC_OBJ=unexelf.o
5517 case "$opsys" in
5518 # MSDOS uses unexec.o
5519 # MSWindows uses unexw32.o
5520 aix4-2)
5521 UNEXEC_OBJ=unexaix.o
5523 cygwin)
5524 UNEXEC_OBJ=unexcw.o
5526 darwin)
5527 UNEXEC_OBJ=unexmacosx.o
5529 hpux10-20 | hpux11)
5530 UNEXEC_OBJ=unexhp9k800.o
5532 sol2-10)
5533 # Use the Solaris dldump() function, called from unexsol.c, to dump
5534 # emacs, instead of the generic ELF dump code found in unexelf.c.
5535 # The resulting binary has a complete symbol table, and is better
5536 # for debugging and other observability tools (debuggers, pstack, etc).
5538 # If you encounter a problem using dldump(), please consider sending
5539 # a message to the OpenSolaris tools-linking mailing list:
5540 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5542 # It is likely that dldump() works with older Solaris too, but this has
5543 # not been tested, so for now this change is for Solaris 10 or newer.
5544 UNEXEC_OBJ=unexsol.o
5546 esac
5548 LD_SWITCH_SYSTEM=
5549 case "$opsys" in
5550 freebsd)
5551 ## Let `ld' find image libs and similar things in /usr/local/lib.
5552 ## The system compiler, GCC, has apparently been modified to not
5553 ## look there, contrary to what a stock GCC would do.
5554 LD_SWITCH_SYSTEM=-L/usr/local/lib
5557 gnu-linux)
5558 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5559 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5562 netbsd)
5563 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5566 openbsd)
5567 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5568 ## otherwise Emacs dumps core on elf systems.
5569 LD_SWITCH_SYSTEM="-Z"
5571 esac
5574 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5576 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5577 ## which has not been defined yet. When this was handled with cpp,
5578 ## it was expanded to null when configure sourced the s/*.h file.
5579 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5580 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5581 ## (or somesuch), but because it is supposed to go at the _front_
5582 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5583 ## Compare with the gnu-linux case below, which added to the end
5584 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5585 ## LD_SWITCH_SYSTEM_TEMACS.
5586 case "$opsys" in
5587 netbsd|openbsd)
5588 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5589 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5590 esac
5593 C_SWITCH_MACHINE=
5594 if test "$machine" = "alpha"; then
5595 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5596 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5600 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5601 ## With ELF, make sure that all common symbols get allocated to in the
5602 ## data section. Otherwise, the dump of temacs may miss variables in
5603 ## the shared library that have been initialized. For example, with
5604 ## GNU libc, __malloc_initialized would normally be resolved to the
5605 ## shared library's .bss section, which is fatal.
5606 if test "x$GCC" = "xyes"; then
5607 C_SWITCH_MACHINE="-fno-common"
5608 else
5609 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5611 else
5612 UNEXEC_OBJ=unexalpha.o
5619 C_SWITCH_SYSTEM=
5620 ## Some programs in src produce warnings saying certain subprograms
5621 ## are too complex and need a MAXMEM value greater than 2000 for
5622 ## additional optimization. --nils@exp-math.uni-essen.de
5623 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5624 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5625 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5626 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5630 LIBS_SYSTEM=
5631 case "$opsys" in
5632 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5633 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5635 freebsd) LIBS_SYSTEM="-lutil" ;;
5637 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5639 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5641 ## Motif needs -lgen.
5642 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5643 esac
5647 ### Make sure subsequent tests use flags consistent with the build flags.
5649 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5650 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5651 else
5652 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5657 # Check whether --enable-largefile was given.
5658 if test "${enable_largefile+set}" = set; then :
5659 enableval=$enable_largefile;
5662 if test "$enable_largefile" != no; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5665 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5666 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 ac_cv_sys_largefile_CC=no
5670 if test "$GCC" != yes; then
5671 ac_save_CC=$CC
5672 while :; do
5673 # IRIX 6.2 and later do not support large files by default,
5674 # so use the C compiler's -n32 option if that helps.
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #include <sys/types.h>
5678 /* Check that off_t can represent 2**63 - 1 correctly.
5679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5680 since some C++ compilers masquerading as C compilers
5681 incorrectly reject 9223372036854775807. */
5682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5684 && LARGE_OFF_T % 2147483647 == 1)
5685 ? 1 : -1];
5687 main ()
5691 return 0;
5693 _ACEOF
5694 if ac_fn_c_try_compile "$LINENO"; then :
5695 break
5697 rm -f core conftest.err conftest.$ac_objext
5698 CC="$CC -n32"
5699 if ac_fn_c_try_compile "$LINENO"; then :
5700 ac_cv_sys_largefile_CC=' -n32'; break
5702 rm -f core conftest.err conftest.$ac_objext
5703 break
5704 done
5705 CC=$ac_save_CC
5706 rm -f conftest.$ac_ext
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5710 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5711 if test "$ac_cv_sys_largefile_CC" != no; then
5712 CC=$CC$ac_cv_sys_largefile_CC
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5716 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5717 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 while :; do
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <sys/types.h>
5724 /* Check that off_t can represent 2**63 - 1 correctly.
5725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5726 since some C++ compilers masquerading as C compilers
5727 incorrectly reject 9223372036854775807. */
5728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5730 && LARGE_OFF_T % 2147483647 == 1)
5731 ? 1 : -1];
5733 main ()
5737 return 0;
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 ac_cv_sys_file_offset_bits=no; break
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #define _FILE_OFFSET_BITS 64
5747 #include <sys/types.h>
5748 /* Check that off_t can represent 2**63 - 1 correctly.
5749 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5750 since some C++ compilers masquerading as C compilers
5751 incorrectly reject 9223372036854775807. */
5752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5754 && LARGE_OFF_T % 2147483647 == 1)
5755 ? 1 : -1];
5757 main ()
5761 return 0;
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 ac_cv_sys_file_offset_bits=64; break
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 ac_cv_sys_file_offset_bits=unknown
5769 break
5770 done
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5773 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5774 case $ac_cv_sys_file_offset_bits in #(
5775 no | unknown) ;;
5777 cat >>confdefs.h <<_ACEOF
5778 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5779 _ACEOF
5781 esac
5782 rm -rf conftest*
5783 if test $ac_cv_sys_file_offset_bits = unknown; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5785 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5786 if test "${ac_cv_sys_large_files+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 while :; do
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #include <sys/types.h>
5793 /* Check that off_t can represent 2**63 - 1 correctly.
5794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5795 since some C++ compilers masquerading as C compilers
5796 incorrectly reject 9223372036854775807. */
5797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5799 && LARGE_OFF_T % 2147483647 == 1)
5800 ? 1 : -1];
5802 main ()
5806 return 0;
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810 ac_cv_sys_large_files=no; break
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 #define _LARGE_FILES 1
5816 #include <sys/types.h>
5817 /* Check that off_t can represent 2**63 - 1 correctly.
5818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5819 since some C++ compilers masquerading as C compilers
5820 incorrectly reject 9223372036854775807. */
5821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5823 && LARGE_OFF_T % 2147483647 == 1)
5824 ? 1 : -1];
5826 main ()
5830 return 0;
5832 _ACEOF
5833 if ac_fn_c_try_compile "$LINENO"; then :
5834 ac_cv_sys_large_files=1; break
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 ac_cv_sys_large_files=unknown
5838 break
5839 done
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5842 $as_echo "$ac_cv_sys_large_files" >&6; }
5843 case $ac_cv_sys_large_files in #(
5844 no | unknown) ;;
5846 cat >>confdefs.h <<_ACEOF
5847 #define _LARGE_FILES $ac_cv_sys_large_files
5848 _ACEOF
5850 esac
5851 rm -rf conftest*
5857 ## If user specified a crt-dir, use that unconditionally.
5858 if test "X$CRT_DIR" = "X"; then
5860 case "$canonical" in
5861 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5862 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5863 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5864 ## For anything else (eg /usr/lib32), it is up the user to specify
5865 ## the location (bug#5655).
5866 ## Test for crtn.o, not just the directory, because sometimes the
5867 ## directory exists but does not have the relevant files (bug#1287).
5868 ## FIXME better to test for binary compatibility somehow.
5869 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5872 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5873 esac
5875 case "$opsys" in
5876 hpux10-20) CRT_DIR=/lib ;;
5877 esac
5879 ## Default is /usr/lib.
5880 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5882 else
5884 ## Some platforms don't use any of these files, so it is not
5885 ## appropriate to put this test outside the if block.
5886 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5887 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5893 LIB_MATH=-lm
5894 LIB_STANDARD=
5895 START_FILES=
5897 case $opsys in
5898 cygwin )
5899 LIB_MATH=
5900 START_FILES='ecrt0.o'
5902 darwin )
5903 ## Adding -lm confuses the dynamic linker, so omit it.
5904 LIB_MATH=
5905 START_FILES='pre-crt0.o'
5907 freebsd )
5908 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5909 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5911 gnu-linux | gnu-kfreebsd )
5912 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5913 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5915 hpux10-20 | hpux11 )
5916 LIB_STANDARD=-lc
5917 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5919 netbsd | openbsd )
5920 if test -f $CRT_DIR/crti.o; then
5921 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5922 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5923 else
5924 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5925 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5928 esac
5936 if test "${with_sound}" != "no"; then
5937 # Sound support for GNU/Linux and the free BSDs.
5938 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5939 do :
5940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5942 eval as_val=\$$as_ac_Header
5943 if test "x$as_val" = x""yes; then :
5944 cat >>confdefs.h <<_ACEOF
5945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5946 _ACEOF
5947 have_sound_header=yes
5950 done
5952 # Emulation library used on NetBSD.
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5954 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5955 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 ac_check_lib_save_LIBS=$LIBS
5959 LIBS="-lossaudio $LIBS"
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5963 /* Override any GCC internal prototype to avoid an error.
5964 Use char because int might match the return type of a GCC
5965 builtin and then its argument prototype would still apply. */
5966 #ifdef __cplusplus
5967 extern "C"
5968 #endif
5969 char _oss_ioctl ();
5971 main ()
5973 return _oss_ioctl ();
5975 return 0;
5977 _ACEOF
5978 if ac_fn_c_try_link "$LINENO"; then :
5979 ac_cv_lib_ossaudio__oss_ioctl=yes
5980 else
5981 ac_cv_lib_ossaudio__oss_ioctl=no
5983 rm -f core conftest.err conftest.$ac_objext \
5984 conftest$ac_exeext conftest.$ac_ext
5985 LIBS=$ac_check_lib_save_LIBS
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5988 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5989 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5990 LIBSOUND=-lossaudio
5991 else
5992 LIBSOUND=
5997 ALSA_REQUIRED=1.0.0
5998 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6000 succeeded=no
6002 # Extract the first word of "pkg-config", so it can be a program name with args.
6003 set dummy pkg-config; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 case $PKG_CONFIG in
6010 [\\/]* | ?:[\\/]*)
6011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6025 done
6026 done
6027 IFS=$as_save_IFS
6029 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6031 esac
6033 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6034 if test -n "$PKG_CONFIG"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6036 $as_echo "$PKG_CONFIG" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6044 if test "$PKG_CONFIG" = "no" ; then
6045 HAVE_ALSA=no
6046 else
6047 PKG_CONFIG_MIN_VERSION=0.9.0
6048 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6050 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6052 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6054 $as_echo "yes" >&6; }
6055 succeeded=yes
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6058 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6059 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6061 $as_echo "$ALSA_CFLAGS" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6064 $as_echo_n "checking ALSA_LIBS... " >&6; }
6065 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6067 $as_echo "$ALSA_LIBS" >&6; }
6068 else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070 $as_echo "no" >&6; }
6071 ALSA_CFLAGS=""
6072 ALSA_LIBS=""
6073 ## If we have a custom action on failure, don't print errors, but
6074 ## do set a variable so people can do so.
6075 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6081 else
6082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6087 if test $succeeded = yes; then
6088 HAVE_ALSA=yes
6089 else
6090 HAVE_ALSA=no
6093 if test $HAVE_ALSA = yes; then
6094 SAVE_CFLAGS="$CFLAGS"
6095 SAVE_LDFLAGS="$LDFLAGS"
6096 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6097 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #include <asoundlib.h>
6102 main ()
6104 snd_lib_error_set_handler (0);
6106 return 0;
6108 _ACEOF
6109 if ac_fn_c_try_compile "$LINENO"; then :
6110 emacs_alsa_normal=yes
6111 else
6112 emacs_alsa_normal=no
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 if test "$emacs_alsa_normal" != yes; then
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117 /* end confdefs.h. */
6118 #include <alsa/asoundlib.h>
6120 main ()
6122 snd_lib_error_set_handler (0);
6124 return 0;
6126 _ACEOF
6127 if ac_fn_c_try_compile "$LINENO"; then :
6128 emacs_alsa_subdir=yes
6129 else
6130 emacs_alsa_subdir=no
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 if test "$emacs_alsa_subdir" != yes; then
6134 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6136 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6139 CFLAGS="$SAVE_CFLAGS"
6140 LDFLAGS="$SAVE_LDFLAGS"
6141 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6142 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6144 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6148 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
6149 case "$opsys" in
6150 gnu-linux|freebsd|netbsd)
6152 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
6155 esac
6161 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6162 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6163 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6164 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6165 sys/utsname.h pwd.h utmp.h
6166 do :
6167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6168 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6169 eval as_val=\$$as_ac_Header
6170 if test "x$as_val" = x""yes; then :
6171 cat >>confdefs.h <<_ACEOF
6172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6173 _ACEOF
6177 done
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6181 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 #include <sys/personality.h>
6186 main ()
6188 personality (PER_LINUX32)
6190 return 0;
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194 emacs_cv_personality_linux32=yes
6195 else
6196 emacs_cv_personality_linux32=no
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6200 $as_echo "$emacs_cv_personality_linux32" >&6; }
6202 if test $emacs_cv_personality_linux32 = yes; then
6204 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6208 for ac_header in term.h
6209 do :
6210 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6211 if test "x$ac_cv_header_term_h" = x""yes; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_TERM_H 1
6214 _ACEOF
6218 done
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6221 $as_echo_n "checking for ANSI C header files... " >&6; }
6222 if test "${ac_cv_header_stdc+set}" = set; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 #include <stdlib.h>
6228 #include <stdarg.h>
6229 #include <string.h>
6230 #include <float.h>
6233 main ()
6237 return 0;
6239 _ACEOF
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241 ac_cv_header_stdc=yes
6242 else
6243 ac_cv_header_stdc=no
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247 if test $ac_cv_header_stdc = yes; then
6248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 #include <string.h>
6253 _ACEOF
6254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255 $EGREP "memchr" >/dev/null 2>&1; then :
6257 else
6258 ac_cv_header_stdc=no
6260 rm -f conftest*
6264 if test $ac_cv_header_stdc = yes; then
6265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 #include <stdlib.h>
6270 _ACEOF
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272 $EGREP "free" >/dev/null 2>&1; then :
6274 else
6275 ac_cv_header_stdc=no
6277 rm -f conftest*
6281 if test $ac_cv_header_stdc = yes; then
6282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6283 if test "$cross_compiling" = yes; then :
6285 else
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <ctype.h>
6289 #include <stdlib.h>
6290 #if ((' ' & 0x0FF) == 0x020)
6291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6293 #else
6294 # define ISLOWER(c) \
6295 (('a' <= (c) && (c) <= 'i') \
6296 || ('j' <= (c) && (c) <= 'r') \
6297 || ('s' <= (c) && (c) <= 'z'))
6298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6299 #endif
6301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6303 main ()
6305 int i;
6306 for (i = 0; i < 256; i++)
6307 if (XOR (islower (i), ISLOWER (i))
6308 || toupper (i) != TOUPPER (i))
6309 return 2;
6310 return 0;
6312 _ACEOF
6313 if ac_fn_c_try_run "$LINENO"; then :
6315 else
6316 ac_cv_header_stdc=no
6318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6319 conftest.$ac_objext conftest.beam conftest.$ac_ext
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6325 $as_echo "$ac_cv_header_stdc" >&6; }
6326 if test $ac_cv_header_stdc = yes; then
6328 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6333 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6334 if test "${ac_cv_header_time+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6339 #include <sys/types.h>
6340 #include <sys/time.h>
6341 #include <time.h>
6344 main ()
6346 if ((struct tm *) 0)
6347 return 0;
6349 return 0;
6351 _ACEOF
6352 if ac_fn_c_try_compile "$LINENO"; then :
6353 ac_cv_header_time=yes
6354 else
6355 ac_cv_header_time=no
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6360 $as_echo "$ac_cv_header_time" >&6; }
6361 if test $ac_cv_header_time = yes; then
6363 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6367 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
6368 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
6369 ac_have_decl=1
6370 else
6371 ac_have_decl=0
6374 cat >>confdefs.h <<_ACEOF
6375 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
6376 _ACEOF
6378 if test $ac_cv_have_decl_sys_siglist != yes; then
6379 # For Tru64, at least:
6380 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6381 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6382 ac_have_decl=1
6383 else
6384 ac_have_decl=0
6387 cat >>confdefs.h <<_ACEOF
6388 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6389 _ACEOF
6391 if test $ac_cv_have_decl___sys_siglist = yes; then
6393 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6398 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6399 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 #include <sys/types.h>
6405 #include <sys/wait.h>
6406 #ifndef WEXITSTATUS
6407 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6408 #endif
6409 #ifndef WIFEXITED
6410 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6411 #endif
6414 main ()
6416 int s;
6417 wait (&s);
6418 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6420 return 0;
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424 ac_cv_header_sys_wait_h=yes
6425 else
6426 ac_cv_header_sys_wait_h=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6431 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6432 if test $ac_cv_header_sys_wait_h = yes; then
6434 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6440 $as_echo_n "checking for struct utimbuf... " >&6; }
6441 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 #ifdef TIME_WITH_SYS_TIME
6447 #include <sys/time.h>
6448 #include <time.h>
6449 #else
6450 #ifdef HAVE_SYS_TIME_H
6451 #include <sys/time.h>
6452 #else
6453 #include <time.h>
6454 #endif
6455 #endif
6456 #ifdef HAVE_UTIME_H
6457 #include <utime.h>
6458 #endif
6460 main ()
6462 static struct utimbuf x; x.actime = x.modtime;
6464 return 0;
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468 emacs_cv_struct_utimbuf=yes
6469 else
6470 emacs_cv_struct_utimbuf=no
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6475 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6476 if test $emacs_cv_struct_utimbuf = yes; then
6478 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6483 $as_echo_n "checking return type of signal handlers... " >&6; }
6484 if test "${ac_cv_type_signal+set}" = set; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 #include <sys/types.h>
6490 #include <signal.h>
6493 main ()
6495 return *(signal (0, 0)) (0) == 1;
6497 return 0;
6499 _ACEOF
6500 if ac_fn_c_try_compile "$LINENO"; then :
6501 ac_cv_type_signal=int
6502 else
6503 ac_cv_type_signal=void
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6508 $as_echo "$ac_cv_type_signal" >&6; }
6510 cat >>confdefs.h <<_ACEOF
6511 #define RETSIGTYPE $ac_cv_type_signal
6512 _ACEOF
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6517 $as_echo_n "checking for speed_t... " >&6; }
6518 if test "${emacs_cv_speed_t+set}" = set; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6523 #include <termios.h>
6525 main ()
6527 speed_t x = 1;
6529 return 0;
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533 emacs_cv_speed_t=yes
6534 else
6535 emacs_cv_speed_t=no
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6540 $as_echo "$emacs_cv_speed_t" >&6; }
6541 if test $emacs_cv_speed_t = yes; then
6543 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6548 $as_echo_n "checking for struct timeval... " >&6; }
6549 if test "${emacs_cv_struct_timeval+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6554 #ifdef TIME_WITH_SYS_TIME
6555 #include <sys/time.h>
6556 #include <time.h>
6557 #else
6558 #ifdef HAVE_SYS_TIME_H
6559 #include <sys/time.h>
6560 #else
6561 #include <time.h>
6562 #endif
6563 #endif
6565 main ()
6567 static struct timeval x; x.tv_sec = x.tv_usec;
6569 return 0;
6571 _ACEOF
6572 if ac_fn_c_try_compile "$LINENO"; then :
6573 emacs_cv_struct_timeval=yes
6574 else
6575 emacs_cv_struct_timeval=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6580 $as_echo "$emacs_cv_struct_timeval" >&6; }
6581 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6582 if test $emacs_cv_struct_timeval = yes; then
6584 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6589 $as_echo_n "checking for struct exception... " >&6; }
6590 if test "${emacs_cv_struct_exception+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 #include <math.h>
6597 main ()
6599 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6601 return 0;
6603 _ACEOF
6604 if ac_fn_c_try_compile "$LINENO"; then :
6605 emacs_cv_struct_exception=yes
6606 else
6607 emacs_cv_struct_exception=no
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6612 $as_echo "$emacs_cv_struct_exception" >&6; }
6613 HAVE_EXCEPTION=$emacs_cv_struct_exception
6614 if test $emacs_cv_struct_exception != yes; then
6616 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6620 for ac_header in sys/socket.h
6621 do :
6622 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6623 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6624 cat >>confdefs.h <<_ACEOF
6625 #define HAVE_SYS_SOCKET_H 1
6626 _ACEOF
6630 done
6632 for ac_header in net/if.h
6633 do :
6634 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6635 #if HAVE_SYS_SOCKET_H
6636 #include <sys/socket.h>
6637 #endif
6639 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6640 cat >>confdefs.h <<_ACEOF
6641 #define HAVE_NET_IF_H 1
6642 _ACEOF
6646 done
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6650 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6651 if test "${ac_cv_struct_tm+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 #include <sys/types.h>
6657 #include <time.h>
6660 main ()
6662 struct tm tm;
6663 int *p = &tm.tm_sec;
6664 return !p;
6666 return 0;
6668 _ACEOF
6669 if ac_fn_c_try_compile "$LINENO"; then :
6670 ac_cv_struct_tm=time.h
6671 else
6672 ac_cv_struct_tm=sys/time.h
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6677 $as_echo "$ac_cv_struct_tm" >&6; }
6678 if test $ac_cv_struct_tm = sys/time.h; then
6680 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6684 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6685 #include <$ac_cv_struct_tm>
6688 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6690 cat >>confdefs.h <<_ACEOF
6691 #define HAVE_STRUCT_TM_TM_ZONE 1
6692 _ACEOF
6697 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6699 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6701 else
6702 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6704 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6705 ac_have_decl=1
6706 else
6707 ac_have_decl=0
6710 cat >>confdefs.h <<_ACEOF
6711 #define HAVE_DECL_TZNAME $ac_have_decl
6712 _ACEOF
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6715 $as_echo_n "checking for tzname... " >&6; }
6716 if test "${ac_cv_var_tzname+set}" = set; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <time.h>
6722 #if !HAVE_DECL_TZNAME
6723 extern char *tzname[];
6724 #endif
6727 main ()
6729 return tzname[0][0];
6731 return 0;
6733 _ACEOF
6734 if ac_fn_c_try_link "$LINENO"; then :
6735 ac_cv_var_tzname=yes
6736 else
6737 ac_cv_var_tzname=no
6739 rm -f core conftest.err conftest.$ac_objext \
6740 conftest$ac_exeext conftest.$ac_ext
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6743 $as_echo "$ac_cv_var_tzname" >&6; }
6744 if test $ac_cv_var_tzname = yes; then
6746 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6751 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6753 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6755 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6759 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6760 #if HAVE_SYS_SOCKET_H
6761 #include <sys/socket.h>
6762 #endif
6763 #if HAVE_NET_IF_H
6764 #include <net/if.h>
6765 #endif
6767 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6769 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6771 _ACEOF
6775 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6776 #if HAVE_SYS_SOCKET_H
6777 #include <sys/socket.h>
6778 #endif
6779 #if HAVE_NET_IF_H
6780 #include <net/if.h>
6781 #endif
6783 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6785 cat >>confdefs.h <<_ACEOF
6786 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6787 _ACEOF
6791 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6792 #if HAVE_SYS_SOCKET_H
6793 #include <sys/socket.h>
6794 #endif
6795 #if HAVE_NET_IF_H
6796 #include <net/if.h>
6797 #endif
6799 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6801 cat >>confdefs.h <<_ACEOF
6802 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6803 _ACEOF
6807 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6808 #if HAVE_SYS_SOCKET_H
6809 #include <sys/socket.h>
6810 #endif
6811 #if HAVE_NET_IF_H
6812 #include <net/if.h>
6813 #endif
6815 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6819 _ACEOF
6823 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6824 #if HAVE_SYS_SOCKET_H
6825 #include <sys/socket.h>
6826 #endif
6827 #if HAVE_NET_IF_H
6828 #include <net/if.h>
6829 #endif
6831 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6833 cat >>confdefs.h <<_ACEOF
6834 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6835 _ACEOF
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6843 $as_echo_n "checking for function prototypes... " >&6; }
6844 if test "$ac_cv_prog_cc_c89" != no; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6846 $as_echo "yes" >&6; }
6848 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6851 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6859 $as_echo_n "checking for working volatile... " >&6; }
6860 if test "${ac_cv_c_volatile+set}" = set; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6867 main ()
6870 volatile int x;
6871 int * volatile y = (int *) 0;
6872 return !x && !y;
6874 return 0;
6876 _ACEOF
6877 if ac_fn_c_try_compile "$LINENO"; then :
6878 ac_cv_c_volatile=yes
6879 else
6880 ac_cv_c_volatile=no
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6885 $as_echo "$ac_cv_c_volatile" >&6; }
6886 if test $ac_cv_c_volatile = no; then
6888 $as_echo "#define volatile /**/" >>confdefs.h
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6893 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6894 if test "${ac_cv_c_const+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6901 main ()
6903 /* FIXME: Include the comments suggested by Paul. */
6904 #ifndef __cplusplus
6905 /* Ultrix mips cc rejects this. */
6906 typedef int charset[2];
6907 const charset cs;
6908 /* SunOS 4.1.1 cc rejects this. */
6909 char const *const *pcpcc;
6910 char **ppc;
6911 /* NEC SVR4.0.2 mips cc rejects this. */
6912 struct point {int x, y;};
6913 static struct point const zero = {0,0};
6914 /* AIX XL C 1.02.0.0 rejects this.
6915 It does not let you subtract one const X* pointer from another in
6916 an arm of an if-expression whose if-part is not a constant
6917 expression */
6918 const char *g = "string";
6919 pcpcc = &g + (g ? g-g : 0);
6920 /* HPUX 7.0 cc rejects these. */
6921 ++pcpcc;
6922 ppc = (char**) pcpcc;
6923 pcpcc = (char const *const *) ppc;
6924 { /* SCO 3.2v4 cc rejects this. */
6925 char *t;
6926 char const *s = 0 ? (char *) 0 : (char const *) 0;
6928 *t++ = 0;
6929 if (s) return 0;
6931 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6932 int x[] = {25, 17};
6933 const int *foo = &x[0];
6934 ++foo;
6936 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6937 typedef const int *iptr;
6938 iptr p = 0;
6939 ++p;
6941 { /* AIX XL C 1.02.0.0 rejects this saying
6942 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6943 struct s { int j; const int *ap[3]; };
6944 struct s *b; b->j = 5;
6946 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6947 const int foo = 10;
6948 if (!foo) return 0;
6950 return !cs[0] && !zero.x;
6951 #endif
6954 return 0;
6956 _ACEOF
6957 if ac_fn_c_try_compile "$LINENO"; then :
6958 ac_cv_c_const=yes
6959 else
6960 ac_cv_c_const=no
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6965 $as_echo "$ac_cv_c_const" >&6; }
6966 if test $ac_cv_c_const = no; then
6968 $as_echo "#define const /**/" >>confdefs.h
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6973 $as_echo_n "checking for void * support... " >&6; }
6974 if test "${emacs_cv_void_star+set}" = set; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6981 main ()
6983 void * foo;
6985 return 0;
6987 _ACEOF
6988 if ac_fn_c_try_compile "$LINENO"; then :
6989 emacs_cv_void_star=yes
6990 else
6991 emacs_cv_void_star=no
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
6996 $as_echo "$emacs_cv_void_star" >&6; }
6997 if test $emacs_cv_void_star = yes; then
6998 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7000 else
7001 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7009 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7010 set x ${MAKE-make}
7011 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7012 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 cat >conftest.make <<\_ACEOF
7016 SHELL = /bin/sh
7017 all:
7018 @echo '@@@%%%=$(MAKE)=@@@%%%'
7019 _ACEOF
7020 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7021 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7022 *@@@%%%=?*=@@@%%%*)
7023 eval ac_cv_prog_make_${ac_make}_set=yes;;
7025 eval ac_cv_prog_make_${ac_make}_set=no;;
7026 esac
7027 rm -f conftest.make
7029 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7031 $as_echo "yes" >&6; }
7032 SET_MAKE=
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 SET_MAKE="MAKE=${MAKE-make}"
7040 DEPFLAGS=
7041 MKDEPDIR=":"
7042 deps_frag=deps.mk
7043 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7045 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7046 HAVE_GNU_MAKE=no
7047 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7048 if test "x$testval" != x; then
7049 HAVE_GNU_MAKE=yes
7050 else
7051 ac_enable_autodepend=no
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7054 $as_echo "$HAVE_GNU_MAKE" >&6; }
7055 if test $HAVE_GNU_MAKE = yes; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7057 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7058 SAVE_CFLAGS="$CFLAGS"
7059 CFLAGS="$CFLAGS -MMD -MF deps.d"
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7064 main ()
7068 return 0;
7070 _ACEOF
7071 if ac_fn_c_try_compile "$LINENO"; then :
7073 else
7074 ac_enable_autodepend=no
7076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077 CFLAGS="$SAVE_CFLAGS"
7078 test -f deps.d || ac_enable_autodepend=no
7079 rm -rf deps.d
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7081 $as_echo "$ac_enable_autodepend" >&6; }
7083 if test $ac_enable_autodepend = yes; then
7084 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7085 ## In parallel builds, another make might create depdir between
7086 ## the first test and mkdir, so stick another test on the end.
7087 ## Or use mkinstalldirs? mkdir -p is not portable.
7088 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7089 deps_frag=autodeps.mk
7092 deps_frag=$srcdir/src/$deps_frag
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7099 $as_echo_n "checking for long file names... " >&6; }
7100 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7102 else
7103 ac_cv_sys_long_file_names=yes
7104 # Test for long file names in all the places we know might matter:
7105 # . the current directory, where building will happen
7106 # $prefix/lib where we will be installing things
7107 # $exec_prefix/lib likewise
7108 # $TMPDIR if set, where it might want to write temporary files
7109 # /tmp where it might want to write temporary files
7110 # /var/tmp likewise
7111 # /usr/tmp likewise
7112 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7113 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7114 # in the usual case where exec_prefix is '${prefix}'.
7115 case $ac_dir in #(
7116 . | /* | ?:[\\/]*) ;; #(
7117 *) continue;;
7118 esac
7119 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7120 ac_xdir=$ac_dir/cf$$
7121 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7122 ac_tf1=$ac_xdir/conftest9012345
7123 ac_tf2=$ac_xdir/conftest9012346
7124 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7125 ac_cv_sys_long_file_names=no
7126 rm -f -r "$ac_xdir" 2>/dev/null
7127 test $ac_cv_sys_long_file_names = no && break
7128 done
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7131 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7132 if test $ac_cv_sys_long_file_names = yes; then
7134 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7139 #### Choose a window system.
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7142 $as_echo_n "checking for X... " >&6; }
7145 # Check whether --with-x was given.
7146 if test "${with_x+set}" = set; then :
7147 withval=$with_x;
7150 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7151 if test "x$with_x" = xno; then
7152 # The user explicitly disabled X.
7153 have_x=disabled
7154 else
7155 case $x_includes,$x_libraries in #(
7156 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7157 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 # One or both of the vars are not set, and there is no cached value.
7161 ac_x_includes=no ac_x_libraries=no
7162 rm -f -r conftest.dir
7163 if mkdir conftest.dir; then
7164 cd conftest.dir
7165 cat >Imakefile <<'_ACEOF'
7166 incroot:
7167 @echo incroot='${INCROOT}'
7168 usrlibdir:
7169 @echo usrlibdir='${USRLIBDIR}'
7170 libdir:
7171 @echo libdir='${LIBDIR}'
7172 _ACEOF
7173 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7174 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7175 for ac_var in incroot usrlibdir libdir; do
7176 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7177 done
7178 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7179 for ac_extension in a so sl dylib la dll; do
7180 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7181 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7182 ac_im_usrlibdir=$ac_im_libdir; break
7184 done
7185 # Screen out bogus values from the imake configuration. They are
7186 # bogus both because they are the default anyway, and because
7187 # using them would break gcc on systems where it needs fixed includes.
7188 case $ac_im_incroot in
7189 /usr/include) ac_x_includes= ;;
7190 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7191 esac
7192 case $ac_im_usrlibdir in
7193 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7194 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7195 esac
7197 cd ..
7198 rm -f -r conftest.dir
7201 # Standard set of common directories for X headers.
7202 # Check X11 before X11Rn because it is often a symlink to the current release.
7203 ac_x_header_dirs='
7204 /usr/X11/include
7205 /usr/X11R7/include
7206 /usr/X11R6/include
7207 /usr/X11R5/include
7208 /usr/X11R4/include
7210 /usr/include/X11
7211 /usr/include/X11R7
7212 /usr/include/X11R6
7213 /usr/include/X11R5
7214 /usr/include/X11R4
7216 /usr/local/X11/include
7217 /usr/local/X11R7/include
7218 /usr/local/X11R6/include
7219 /usr/local/X11R5/include
7220 /usr/local/X11R4/include
7222 /usr/local/include/X11
7223 /usr/local/include/X11R7
7224 /usr/local/include/X11R6
7225 /usr/local/include/X11R5
7226 /usr/local/include/X11R4
7228 /usr/X386/include
7229 /usr/x386/include
7230 /usr/XFree86/include/X11
7232 /usr/include
7233 /usr/local/include
7234 /usr/unsupported/include
7235 /usr/athena/include
7236 /usr/local/x11r5/include
7237 /usr/lpp/Xamples/include
7239 /usr/openwin/include
7240 /usr/openwin/share/include'
7242 if test "$ac_x_includes" = no; then
7243 # Guess where to find include files, by looking for Xlib.h.
7244 # First, try using that file with no special directory specified.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <X11/Xlib.h>
7248 _ACEOF
7249 if ac_fn_c_try_cpp "$LINENO"; then :
7250 # We can compile using X headers with no special include directory.
7251 ac_x_includes=
7252 else
7253 for ac_dir in $ac_x_header_dirs; do
7254 if test -r "$ac_dir/X11/Xlib.h"; then
7255 ac_x_includes=$ac_dir
7256 break
7258 done
7260 rm -f conftest.err conftest.$ac_ext
7261 fi # $ac_x_includes = no
7263 if test "$ac_x_libraries" = no; then
7264 # Check for the libraries.
7265 # See if we find them without any special options.
7266 # Don't add to $LIBS permanently.
7267 ac_save_LIBS=$LIBS
7268 LIBS="-lX11 $LIBS"
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <X11/Xlib.h>
7273 main ()
7275 XrmInitialize ()
7277 return 0;
7279 _ACEOF
7280 if ac_fn_c_try_link "$LINENO"; then :
7281 LIBS=$ac_save_LIBS
7282 # We can link X programs with no special library path.
7283 ac_x_libraries=
7284 else
7285 LIBS=$ac_save_LIBS
7286 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7288 # Don't even attempt the hair of trying to link an X program!
7289 for ac_extension in a so sl dylib la dll; do
7290 if test -r "$ac_dir/libX11.$ac_extension"; then
7291 ac_x_libraries=$ac_dir
7292 break 2
7294 done
7295 done
7297 rm -f core conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext conftest.$ac_ext
7299 fi # $ac_x_libraries = no
7301 case $ac_x_includes,$ac_x_libraries in #(
7302 no,* | *,no | *\'*)
7303 # Didn't find X, or a directory has "'" in its name.
7304 ac_cv_have_x="have_x=no";; #(
7306 # Record where we found X for the cache.
7307 ac_cv_have_x="have_x=yes\
7308 ac_x_includes='$ac_x_includes'\
7309 ac_x_libraries='$ac_x_libraries'"
7310 esac
7312 ;; #(
7313 *) have_x=yes;;
7314 esac
7315 eval "$ac_cv_have_x"
7316 fi # $with_x != no
7318 if test "$have_x" != yes; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7320 $as_echo "$have_x" >&6; }
7321 no_x=yes
7322 else
7323 # If each of the values was on the command line, it overrides each guess.
7324 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7325 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7326 # Update the cache value to reflect the command line values.
7327 ac_cv_have_x="have_x=yes\
7328 ac_x_includes='$x_includes'\
7329 ac_x_libraries='$x_libraries'"
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7331 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7334 if test "$no_x" = yes; then
7335 window_system=none
7336 else
7337 window_system=x11
7340 ## Workaround for bug in autoconf <= 2.62.
7341 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7342 ## No need to do anything special for these standard directories.
7343 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7345 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7349 LD_SWITCH_X_SITE_AUX=
7350 LD_SWITCH_X_SITE_AUX_RPATH=
7351 if test "${x_libraries}" != NONE; then
7352 if test -n "${x_libraries}"; then
7353 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7354 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7355 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7357 x_default_search_path=""
7358 x_search_path=${x_libraries}
7359 if test -z "${x_search_path}"; then
7360 x_search_path=/usr/lib
7362 for x_library in `echo ${x_search_path}: | \
7363 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7364 x_search_path="\
7365 ${x_library}/X11/%L/%T/%N%C%S:\
7366 ${x_library}/X11/%l/%T/%N%C%S:\
7367 ${x_library}/X11/%T/%N%C%S:\
7368 ${x_library}/X11/%L/%T/%N%S:\
7369 ${x_library}/X11/%l/%T/%N%S:\
7370 ${x_library}/X11/%T/%N%S"
7371 if test x"${x_default_search_path}" = x; then
7372 x_default_search_path=${x_search_path}
7373 else
7374 x_default_search_path="${x_search_path}:${x_default_search_path}"
7376 done
7381 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7382 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7385 if test x"${x_includes}" = x; then
7386 bitmapdir=/usr/include/X11/bitmaps
7387 else
7388 # accumulate include directories that have X11 bitmap subdirectories
7389 bmd_acc="dummyval"
7390 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7391 if test -d "${bmd}/X11/bitmaps"; then
7392 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7394 if test -d "${bmd}/bitmaps"; then
7395 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7397 done
7398 if test ${bmd_acc} != "dummyval"; then
7399 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7403 HAVE_NS=no
7404 NS_IMPL_COCOA=no
7405 NS_IMPL_GNUSTEP=no
7406 tmp_CPPFLAGS="$CPPFLAGS"
7407 tmp_CFLAGS="$CFLAGS"
7408 CPPFLAGS="$CPPFLAGS -x objective-c"
7409 CFLAGS="$CFLAGS -x objective-c"
7410 TEMACS_LDFLAGS2="\${LDFLAGS}"
7411 if test "${with_ns}" != no; then
7412 if test "${opsys}" = darwin; then
7413 NS_IMPL_COCOA=yes
7414 ns_appdir=`pwd`/nextstep/Emacs.app/
7415 ns_appbindir=${ns_appdir}Contents/MacOS/
7416 ns_appresdir=${ns_appdir}Contents/Resources
7417 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7418 elif test -f $GNUSTEP_CONFIG_FILE; then
7419 NS_IMPL_GNUSTEP=yes
7420 ns_appdir=`pwd`/nextstep/Emacs.app/
7421 ns_appbindir=${ns_appdir}
7422 ns_appresdir=${ns_appdir}Resources
7423 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7424 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7425 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7426 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7427 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7428 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7429 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7430 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7431 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7432 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7433 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7434 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7435 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7436 LIB_STANDARD=
7437 START_FILES=
7438 TEMACS_LDFLAGS2=
7440 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7441 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7442 HAVE_NS=yes
7443 else
7444 as_fn_error "\`--with-ns' was specified, but the include
7445 files are missing or cannot be compiled." "$LINENO" 5
7449 NS_HAVE_NSINTEGER=yes
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7452 #include <Foundation/NSObjCRuntime.h>
7454 main ()
7456 NSInteger i;
7458 return 0;
7460 _ACEOF
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 ns_have_nsinteger=yes
7463 else
7464 ns_have_nsinteger=no
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 if test $ns_have_nsinteger = no; then
7468 NS_HAVE_NSINTEGER=no
7473 ns_frag=/dev/null
7474 NS_OBJ=
7475 NS_SUPPORT=
7476 if test "${HAVE_NS}" = yes; then
7477 window_system=nextstep
7478 with_xft=no
7479 # set up packaging dirs
7480 exec_prefix=${ns_appbindir}
7481 libexecdir=${ns_appbindir}/libexec
7482 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7483 prefix=${ns_appresdir}
7485 ns_frag=$srcdir/src/ns.mk
7486 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7487 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7489 CFLAGS="$tmp_CFLAGS"
7490 CPPFLAGS="$tmp_CPPFLAGS"
7496 case "${window_system}" in
7497 x11 )
7498 HAVE_X_WINDOWS=yes
7499 HAVE_X11=yes
7500 case "${with_x_toolkit}" in
7501 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7502 motif ) USE_X_TOOLKIT=MOTIF ;;
7503 gtk ) with_gtk=yes
7504 USE_X_TOOLKIT=none ;;
7505 gtk3 ) with_gtk3=yes
7506 USE_X_TOOLKIT=none ;;
7507 no ) USE_X_TOOLKIT=none ;;
7508 * ) USE_X_TOOLKIT=maybe ;;
7509 esac
7511 nextstep | none )
7512 HAVE_X_WINDOWS=no
7513 HAVE_X11=no
7514 USE_X_TOOLKIT=none
7516 esac
7518 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7519 # Extract the first word of "X", so it can be a program name with args.
7520 set dummy X; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 if test -n "$HAVE_XSERVER"; then
7527 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7528 else
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_prog_HAVE_XSERVER="true"
7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7540 done
7541 done
7542 IFS=$as_save_IFS
7544 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7547 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7548 if test -n "$HAVE_XSERVER"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7550 $as_echo "$HAVE_XSERVER" >&6; }
7551 else
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7557 if test "$HAVE_XSERVER" = true ||
7558 test -n "$DISPLAY" ||
7559 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7560 as_fn_error "You seem to be running X, but no X development libraries
7561 were found. You should install the relevant development files for X
7562 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7563 sure you have development files for image handling, i.e.
7564 tiff, gif, jpeg, png and xpm.
7565 If you are sure you want Emacs compiled without X window support, pass
7566 --without-x
7567 to configure." "$LINENO" 5
7571 ### If we're using X11, we should use the X menu package.
7572 HAVE_MENUS=no
7573 case ${HAVE_X11} in
7574 yes ) HAVE_MENUS=yes ;;
7575 esac
7577 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7578 # Assume not, until told otherwise.
7579 GNU_MALLOC=yes
7580 doug_lea_malloc=yes
7581 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7582 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7584 else
7585 doug_lea_malloc=no
7588 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7589 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7591 else
7592 doug_lea_malloc=no
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7596 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7597 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 extern void (* __after_morecore_hook)();
7604 main ()
7606 __after_morecore_hook = 0
7608 return 0;
7610 _ACEOF
7611 if ac_fn_c_try_link "$LINENO"; then :
7612 emacs_cv_var___after_morecore_hook=yes
7613 else
7614 emacs_cv_var___after_morecore_hook=no
7616 rm -f core conftest.err conftest.$ac_objext \
7617 conftest$ac_exeext conftest.$ac_ext
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7620 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7621 if test $emacs_cv_var___after_morecore_hook = no; then
7622 doug_lea_malloc=no
7626 system_malloc=no
7627 case "$opsys" in
7628 ## darwin ld insists on the use of malloc routines in the System framework.
7629 darwin|sol2-10) system_malloc=yes ;;
7630 esac
7632 if test "${system_malloc}" = "yes"; then
7634 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
7636 GNU_MALLOC=no
7637 GNU_MALLOC_reason="
7638 (The GNU allocators don't work with this system configuration.)"
7639 GMALLOC_OBJ=
7640 VMLIMIT_OBJ=
7641 else
7642 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7643 VMLIMIT_OBJ=vm-limit.o
7648 if test "$doug_lea_malloc" = "yes" ; then
7649 if test "$GNU_MALLOC" = yes ; then
7650 GNU_MALLOC_reason="
7651 (Using Doug Lea's new malloc from the GNU C Library.)"
7654 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7657 ## Use mmap directly for allocating larger buffers.
7658 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7659 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7660 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7661 case "$opsys" in
7662 gnu*) REL_ALLOC=no ;;
7663 esac
7666 if test x"${REL_ALLOC}" = x; then
7667 REL_ALLOC=${GNU_MALLOC}
7670 use_mmap_for_buffers=no
7671 case "$opsys" in
7672 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
7673 esac
7678 for ac_header in $ac_header_list
7679 do :
7680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7681 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7683 eval as_val=\$$as_ac_Header
7684 if test "x$as_val" = x""yes; then :
7685 cat >>confdefs.h <<_ACEOF
7686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7687 _ACEOF
7691 done
7700 for ac_func in getpagesize
7701 do :
7702 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7703 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7704 cat >>confdefs.h <<_ACEOF
7705 #define HAVE_GETPAGESIZE 1
7706 _ACEOF
7709 done
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7712 $as_echo_n "checking for working mmap... " >&6; }
7713 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test "$cross_compiling" = yes; then :
7717 ac_cv_func_mmap_fixed_mapped=no
7718 else
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 /* malloc might have been renamed as rpl_malloc. */
7723 #undef malloc
7725 /* Thanks to Mike Haertel and Jim Avera for this test.
7726 Here is a matrix of mmap possibilities:
7727 mmap private not fixed
7728 mmap private fixed at somewhere currently unmapped
7729 mmap private fixed at somewhere already mapped
7730 mmap shared not fixed
7731 mmap shared fixed at somewhere currently unmapped
7732 mmap shared fixed at somewhere already mapped
7733 For private mappings, we should verify that changes cannot be read()
7734 back from the file, nor mmap's back from the file at a different
7735 address. (There have been systems where private was not correctly
7736 implemented like the infamous i386 svr4.0, and systems where the
7737 VM page cache was not coherent with the file system buffer cache
7738 like early versions of FreeBSD and possibly contemporary NetBSD.)
7739 For shared mappings, we should conversely verify that changes get
7740 propagated back to all the places they're supposed to be.
7742 Grep wants private fixed already mapped.
7743 The main things grep needs to know about mmap are:
7744 * does it exist and is it safe to write into the mmap'd area
7745 * how to use it (BSD variants) */
7747 #include <fcntl.h>
7748 #include <sys/mman.h>
7750 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7751 char *malloc ();
7752 #endif
7754 /* This mess was copied from the GNU getpagesize.h. */
7755 #ifndef HAVE_GETPAGESIZE
7756 # ifdef _SC_PAGESIZE
7757 # define getpagesize() sysconf(_SC_PAGESIZE)
7758 # else /* no _SC_PAGESIZE */
7759 # ifdef HAVE_SYS_PARAM_H
7760 # include <sys/param.h>
7761 # ifdef EXEC_PAGESIZE
7762 # define getpagesize() EXEC_PAGESIZE
7763 # else /* no EXEC_PAGESIZE */
7764 # ifdef NBPG
7765 # define getpagesize() NBPG * CLSIZE
7766 # ifndef CLSIZE
7767 # define CLSIZE 1
7768 # endif /* no CLSIZE */
7769 # else /* no NBPG */
7770 # ifdef NBPC
7771 # define getpagesize() NBPC
7772 # else /* no NBPC */
7773 # ifdef PAGESIZE
7774 # define getpagesize() PAGESIZE
7775 # endif /* PAGESIZE */
7776 # endif /* no NBPC */
7777 # endif /* no NBPG */
7778 # endif /* no EXEC_PAGESIZE */
7779 # else /* no HAVE_SYS_PARAM_H */
7780 # define getpagesize() 8192 /* punt totally */
7781 # endif /* no HAVE_SYS_PARAM_H */
7782 # endif /* no _SC_PAGESIZE */
7784 #endif /* no HAVE_GETPAGESIZE */
7787 main ()
7789 char *data, *data2, *data3;
7790 int i, pagesize;
7791 int fd, fd2;
7793 pagesize = getpagesize ();
7795 /* First, make a file with some known garbage in it. */
7796 data = (char *) malloc (pagesize);
7797 if (!data)
7798 return 1;
7799 for (i = 0; i < pagesize; ++i)
7800 *(data + i) = rand ();
7801 umask (0);
7802 fd = creat ("conftest.mmap", 0600);
7803 if (fd < 0)
7804 return 2;
7805 if (write (fd, data, pagesize) != pagesize)
7806 return 3;
7807 close (fd);
7809 /* Next, check that the tail of a page is zero-filled. File must have
7810 non-zero length, otherwise we risk SIGBUS for entire page. */
7811 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7812 if (fd2 < 0)
7813 return 4;
7814 data2 = "";
7815 if (write (fd2, data2, 1) != 1)
7816 return 5;
7817 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7818 if (data2 == MAP_FAILED)
7819 return 6;
7820 for (i = 0; i < pagesize; ++i)
7821 if (*(data2 + i))
7822 return 7;
7823 close (fd2);
7824 if (munmap (data2, pagesize))
7825 return 8;
7827 /* Next, try to mmap the file at a fixed address which already has
7828 something else allocated at it. If we can, also make sure that
7829 we see the same garbage. */
7830 fd = open ("conftest.mmap", O_RDWR);
7831 if (fd < 0)
7832 return 9;
7833 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7834 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7835 return 10;
7836 for (i = 0; i < pagesize; ++i)
7837 if (*(data + i) != *(data2 + i))
7838 return 11;
7840 /* Finally, make sure that changes to the mapped area do not
7841 percolate back to the file as seen by read(). (This is a bug on
7842 some variants of i386 svr4.0.) */
7843 for (i = 0; i < pagesize; ++i)
7844 *(data2 + i) = *(data2 + i) + 1;
7845 data3 = (char *) malloc (pagesize);
7846 if (!data3)
7847 return 12;
7848 if (read (fd, data3, pagesize) != pagesize)
7849 return 13;
7850 for (i = 0; i < pagesize; ++i)
7851 if (*(data + i) != *(data3 + i))
7852 return 14;
7853 close (fd);
7854 return 0;
7856 _ACEOF
7857 if ac_fn_c_try_run "$LINENO"; then :
7858 ac_cv_func_mmap_fixed_mapped=yes
7859 else
7860 ac_cv_func_mmap_fixed_mapped=no
7862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7863 conftest.$ac_objext conftest.beam conftest.$ac_ext
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7868 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7869 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7871 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7874 rm -f conftest.mmap conftest.txt
7876 if test $use_mmap_for_buffers = yes; then
7878 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
7880 REL_ALLOC=no
7883 LIBS="$LIBS_SYSTEM $LIBS"
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7886 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7887 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 ac_check_lib_save_LIBS=$LIBS
7891 LIBS="-ldnet $LIBS"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7895 /* Override any GCC internal prototype to avoid an error.
7896 Use char because int might match the return type of a GCC
7897 builtin and then its argument prototype would still apply. */
7898 #ifdef __cplusplus
7899 extern "C"
7900 #endif
7901 char dnet_ntoa ();
7903 main ()
7905 return dnet_ntoa ();
7907 return 0;
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_lib_dnet_dnet_ntoa=yes
7912 else
7913 ac_cv_lib_dnet_dnet_ntoa=no
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 LIBS=$ac_check_lib_save_LIBS
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7920 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7921 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7922 cat >>confdefs.h <<_ACEOF
7923 #define HAVE_LIBDNET 1
7924 _ACEOF
7926 LIBS="-ldnet $LIBS"
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7932 $as_echo_n "checking for main in -lXbsd... " >&6; }
7933 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 ac_check_lib_save_LIBS=$LIBS
7937 LIBS="-lXbsd $LIBS"
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7943 main ()
7945 return main ();
7947 return 0;
7949 _ACEOF
7950 if ac_fn_c_try_link "$LINENO"; then :
7951 ac_cv_lib_Xbsd_main=yes
7952 else
7953 ac_cv_lib_Xbsd_main=no
7955 rm -f core conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7957 LIBS=$ac_check_lib_save_LIBS
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7960 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7961 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7962 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7967 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7968 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 ac_check_lib_save_LIBS=$LIBS
7972 LIBS="-lpthreads $LIBS"
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7976 /* Override any GCC internal prototype to avoid an error.
7977 Use char because int might match the return type of a GCC
7978 builtin and then its argument prototype would still apply. */
7979 #ifdef __cplusplus
7980 extern "C"
7981 #endif
7982 char cma_open ();
7984 main ()
7986 return cma_open ();
7988 return 0;
7990 _ACEOF
7991 if ac_fn_c_try_link "$LINENO"; then :
7992 ac_cv_lib_pthreads_cma_open=yes
7993 else
7994 ac_cv_lib_pthreads_cma_open=no
7996 rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7998 LIBS=$ac_check_lib_save_LIBS
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
8001 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
8002 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
8003 cat >>confdefs.h <<_ACEOF
8004 #define HAVE_LIBPTHREADS 1
8005 _ACEOF
8007 LIBS="-lpthreads $LIBS"
8012 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8013 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8014 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8015 ## added to LIBS in configure would never contain the pthreads part,
8016 ## but the value used in Makefiles might. FIXME?
8018 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8019 ## be harmless on older versions of X where it happens to exist.
8020 test "$opsys" = "aix4-2" && \
8021 test $ac_cv_lib_pthreads_cma_open = yes && \
8022 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8025 case ${host_os} in
8026 aix*)
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8028 $as_echo_n "checking for -bbigtoc option... " >&6; }
8029 if test "${gdb_cv_bigtoc+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
8031 else
8033 case $GCC in
8034 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8035 *) gdb_cv_bigtoc=-bbigtoc ;;
8036 esac
8038 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8043 main ()
8045 int i;
8047 return 0;
8049 _ACEOF
8050 if ac_fn_c_try_link "$LINENO"; then :
8052 else
8053 gdb_cv_bigtoc=
8055 rm -f core conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8060 $as_echo "$gdb_cv_bigtoc" >&6; }
8062 esac
8064 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8065 # used for the tests that follow. We set them back to REAL_CFLAGS and
8066 # REAL_CPPFLAGS later on.
8068 REAL_CPPFLAGS="$CPPFLAGS"
8070 if test "${HAVE_X11}" = "yes"; then
8071 DEFS="$C_SWITCH_X_SITE $DEFS"
8072 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8073 LIBS="-lX11 $LIBS"
8074 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8075 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8077 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8078 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8079 # but it's more convenient here to set LD_RUN_PATH
8080 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8081 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8082 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8083 export LD_RUN_PATH
8086 if test "${opsys}" = "gnu-linux"; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8088 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8093 main ()
8095 XOpenDisplay ("foo");
8097 return 0;
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 xlinux_first_failure=no
8102 else
8103 xlinux_first_failure=yes
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 if test "${xlinux_first_failure}" = "yes"; then
8108 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8109 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8110 OLD_CPPFLAGS="$CPPFLAGS"
8111 OLD_LIBS="$LIBS"
8112 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8113 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8114 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8115 LIBS="$LIBS -b i486-linuxaout"
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8120 main ()
8122 XOpenDisplay ("foo");
8124 return 0;
8126 _ACEOF
8127 if ac_fn_c_try_link "$LINENO"; then :
8128 xlinux_second_failure=no
8129 else
8130 xlinux_second_failure=yes
8132 rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134 if test "${xlinux_second_failure}" = "yes"; then
8135 # If we get the same failure with -b, there is no use adding -b.
8136 # So take it out. This plays safe.
8137 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8138 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8139 CPPFLAGS="$OLD_CPPFLAGS"
8140 LIBS="$OLD_LIBS"
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8145 $as_echo "yes" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8153 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8154 # header files included from there.
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8156 $as_echo_n "checking for Xkb... " >&6; }
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8159 #include <X11/Xlib.h>
8160 #include <X11/XKBlib.h>
8162 main ()
8164 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8166 return 0;
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 emacs_xkb=yes
8171 else
8172 emacs_xkb=no
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8177 $as_echo "$emacs_xkb" >&6; }
8178 if test $emacs_xkb = yes; then
8180 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8184 for ac_func in XrmSetDatabase XScreenResourceString \
8185 XScreenNumberOfScreen XSetWMProtocols
8186 do :
8187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8189 eval as_val=\$$as_ac_var
8190 if test "x$as_val" = x""yes; then :
8191 cat >>confdefs.h <<_ACEOF
8192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8193 _ACEOF
8196 done
8200 if test "${window_system}" = "x11"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8202 $as_echo_n "checking X11 version 6... " >&6; }
8203 if test "${emacs_cv_x11_version_6+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 #include <X11/Xlib.h>
8210 main ()
8212 #if XlibSpecificationRelease < 6
8213 fail;
8214 #endif
8217 return 0;
8219 _ACEOF
8220 if ac_fn_c_try_link "$LINENO"; then :
8221 emacs_cv_x11_version_6=yes
8222 else
8223 emacs_cv_x11_version_6=no
8225 rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
8229 if test $emacs_cv_x11_version_6 = yes; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8231 $as_echo "6 or newer" >&6; }
8233 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8236 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
8238 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
8239 ## XIM support.
8240 case "$opsys" in
8241 sol2-*) : ;;
8243 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
8246 esac
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8249 $as_echo "before 6" >&6; }
8254 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8255 HAVE_RSVG=no
8256 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8257 if test "${with_rsvg}" != "no"; then
8258 RSVG_REQUIRED=2.11.0
8259 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8262 succeeded=no
8264 # Extract the first word of "pkg-config", so it can be a program name with args.
8265 set dummy pkg-config; ac_word=$2
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 $as_echo_n "checking for $ac_word... " >&6; }
8268 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 case $PKG_CONFIG in
8272 [\\/]* | ?:[\\/]*)
8273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 for as_dir in $PATH
8279 IFS=$as_save_IFS
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 break 2
8287 done
8288 done
8289 IFS=$as_save_IFS
8291 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8293 esac
8295 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8296 if test -n "$PKG_CONFIG"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8298 $as_echo "$PKG_CONFIG" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8306 if test "$PKG_CONFIG" = "no" ; then
8308 else
8309 PKG_CONFIG_MIN_VERSION=0.9.0
8310 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8312 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8314 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8316 $as_echo "yes" >&6; }
8317 succeeded=yes
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8320 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8321 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8323 $as_echo "$RSVG_CFLAGS" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8326 $as_echo_n "checking RSVG_LIBS... " >&6; }
8327 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8329 $as_echo "$RSVG_LIBS" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 RSVG_CFLAGS=""
8334 RSVG_LIBS=""
8335 ## If we have a custom action on failure, don't print errors, but
8336 ## do set a variable so people can do so.
8337 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8343 else
8344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8349 if test $succeeded = yes; then
8351 else
8358 if test ".${RSVG_CFLAGS}" != "."; then
8359 HAVE_RSVG=yes
8361 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8363 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8364 LIBS="$RSVG_LIBS $LIBS"
8370 HAVE_GTK=no
8371 if test "${with_gtk3}" = "yes"; then
8372 GLIB_REQUIRED=2.6
8373 GTK_REQUIRED=2.90
8374 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8377 succeeded=no
8379 # Extract the first word of "pkg-config", so it can be a program name with args.
8380 set dummy pkg-config; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $PKG_CONFIG in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8402 done
8403 done
8404 IFS=$as_save_IFS
8406 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8408 esac
8410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8411 if test -n "$PKG_CONFIG"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8413 $as_echo "$PKG_CONFIG" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8421 if test "$PKG_CONFIG" = "no" ; then
8422 pkg_check_gtk=no
8423 else
8424 PKG_CONFIG_MIN_VERSION=0.9.0
8425 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8427 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8429 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8431 $as_echo "yes" >&6; }
8432 succeeded=yes
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8435 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8436 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8438 $as_echo "$GTK_CFLAGS" >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8441 $as_echo_n "checking GTK_LIBS... " >&6; }
8442 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8444 $as_echo "$GTK_LIBS" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 GTK_CFLAGS=""
8449 GTK_LIBS=""
8450 ## If we have a custom action on failure, don't print errors, but
8451 ## do set a variable so people can do so.
8452 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8458 else
8459 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8460 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8464 if test $succeeded = yes; then
8465 pkg_check_gtk=yes
8466 else
8467 pkg_check_gtk=no
8470 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8471 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8475 if test "$pkg_check_gtk" != "yes"; then
8476 HAVE_GTK=no
8477 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8478 GLIB_REQUIRED=2.6
8479 GTK_REQUIRED=2.6
8480 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8483 succeeded=no
8485 # Extract the first word of "pkg-config", so it can be a program name with args.
8486 set dummy pkg-config; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 case $PKG_CONFIG in
8493 [\\/]* | ?:[\\/]*)
8494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8512 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8514 esac
8516 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8517 if test -n "$PKG_CONFIG"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8519 $as_echo "$PKG_CONFIG" >&6; }
8520 else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522 $as_echo "no" >&6; }
8527 if test "$PKG_CONFIG" = "no" ; then
8528 pkg_check_gtk=no
8529 else
8530 PKG_CONFIG_MIN_VERSION=0.9.0
8531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8533 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8535 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8537 $as_echo "yes" >&6; }
8538 succeeded=yes
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8541 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8542 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8544 $as_echo "$GTK_CFLAGS" >&6; }
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8547 $as_echo_n "checking GTK_LIBS... " >&6; }
8548 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8550 $as_echo "$GTK_LIBS" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8554 GTK_CFLAGS=""
8555 GTK_LIBS=""
8556 ## If we have a custom action on failure, don't print errors, but
8557 ## do set a variable so people can do so.
8558 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8564 else
8565 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8566 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8570 if test $succeeded = yes; then
8571 pkg_check_gtk=yes
8572 else
8573 pkg_check_gtk=no
8576 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8577 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8582 GTK_OBJ=
8583 if test x"$pkg_check_gtk" = xyes; then
8587 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8588 CFLAGS="$CFLAGS $GTK_CFLAGS"
8589 LIBS="$GTK_LIBS $LIBS"
8590 GTK_COMPILES=no
8591 for ac_func in gtk_main
8592 do :
8593 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8594 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8595 cat >>confdefs.h <<_ACEOF
8596 #define HAVE_GTK_MAIN 1
8597 _ACEOF
8598 GTK_COMPILES=yes
8600 done
8602 if test "${GTK_COMPILES}" != "yes"; then
8603 if test "$USE_X_TOOLKIT" != "maybe"; then
8604 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8606 else
8607 HAVE_GTK=yes
8609 $as_echo "#define USE_GTK 1" >>confdefs.h
8611 GTK_OBJ=gtkutil.o
8612 USE_X_TOOLKIT=none
8613 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8615 else
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8617 closing open displays. This is no problem if you just use
8618 one display, but if you use more than one and close one of them
8619 Emacs may crash." >&5
8620 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8621 closing open displays. This is no problem if you just use
8622 one display, but if you use more than one and close one of them
8623 Emacs may crash." >&2;}
8624 sleep 3
8632 if test "${HAVE_GTK}" = "yes"; then
8634 if test "$with_toolkit_scroll_bars" != no; then
8635 with_toolkit_scroll_bars=yes
8638 HAVE_GTK_FILE_SELECTION=no
8639 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8640 #include <gtk/gtk.h>
8642 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8643 HAVE_GTK_FILE_SELECTION=yes
8644 else
8645 HAVE_GTK_FILE_SELECTION=no
8648 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8649 for ac_func in gtk_file_selection_new
8650 do :
8651 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8652 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_GTK_FILE_SELECTION_NEW 1
8655 _ACEOF
8658 done
8662 HAVE_GTK_AND_PTHREAD=no
8663 for ac_header in pthread.h
8664 do :
8665 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8666 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8667 cat >>confdefs.h <<_ACEOF
8668 #define HAVE_PTHREAD_H 1
8669 _ACEOF
8673 done
8675 if test "$ac_cv_header_pthread_h"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8677 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8678 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 ac_check_lib_save_LIBS=$LIBS
8682 LIBS="-lpthread $LIBS"
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h. */
8686 /* Override any GCC internal prototype to avoid an error.
8687 Use char because int might match the return type of a GCC
8688 builtin and then its argument prototype would still apply. */
8689 #ifdef __cplusplus
8690 extern "C"
8691 #endif
8692 char pthread_self ();
8694 main ()
8696 return pthread_self ();
8698 return 0;
8700 _ACEOF
8701 if ac_fn_c_try_link "$LINENO"; then :
8702 ac_cv_lib_pthread_pthread_self=yes
8703 else
8704 ac_cv_lib_pthread_pthread_self=no
8706 rm -f core conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 LIBS=$ac_check_lib_save_LIBS
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8711 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8712 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8713 HAVE_GTK_AND_PTHREAD=yes
8717 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8718 case "${canonical}" in
8719 *-hpux*) ;;
8720 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8721 esac
8723 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8727 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
8728 gtk_dialog_get_action_area gtk_widget_get_sensitive \
8729 gtk_widget_get_mapped gtk_adjustment_get_page_size \
8730 gtk_orientable_set_orientation
8731 do :
8732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8734 eval as_val=\$$as_ac_var
8735 if test "x$as_val" = x""yes; then :
8736 cat >>confdefs.h <<_ACEOF
8737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8738 _ACEOF
8741 done
8746 HAVE_DBUS=no
8747 DBUS_OBJ=
8748 if test "${with_dbus}" = "yes"; then
8750 succeeded=no
8752 # Extract the first word of "pkg-config", so it can be a program name with args.
8753 set dummy pkg-config; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 case $PKG_CONFIG in
8760 [\\/]* | ?:[\\/]*)
8761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8775 done
8776 done
8777 IFS=$as_save_IFS
8779 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8781 esac
8783 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8784 if test -n "$PKG_CONFIG"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8786 $as_echo "$PKG_CONFIG" >&6; }
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8794 if test "$PKG_CONFIG" = "no" ; then
8795 HAVE_DBUS=no
8796 else
8797 PKG_CONFIG_MIN_VERSION=0.9.0
8798 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8800 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8802 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8804 $as_echo "yes" >&6; }
8805 succeeded=yes
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8808 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8809 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8811 $as_echo "$DBUS_CFLAGS" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8814 $as_echo_n "checking DBUS_LIBS... " >&6; }
8815 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8817 $as_echo "$DBUS_LIBS" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8821 DBUS_CFLAGS=""
8822 DBUS_LIBS=""
8823 ## If we have a custom action on failure, don't print errors, but
8824 ## do set a variable so people can do so.
8825 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8831 else
8832 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8833 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8837 if test $succeeded = yes; then
8838 HAVE_DBUS=yes
8839 else
8840 HAVE_DBUS=no
8843 if test "$HAVE_DBUS" = yes; then
8844 LIBS="$LIBS $DBUS_LIBS"
8846 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8848 for ac_func in dbus_watch_get_unix_fd
8849 do :
8850 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8851 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8852 cat >>confdefs.h <<_ACEOF
8853 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8854 _ACEOF
8857 done
8859 DBUS_OBJ=dbusbind.o
8864 HAVE_GCONF=no
8865 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8867 succeeded=no
8869 # Extract the first word of "pkg-config", so it can be a program name with args.
8870 set dummy pkg-config; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 case $PKG_CONFIG in
8877 [\\/]* | ?:[\\/]*)
8878 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8892 done
8893 done
8894 IFS=$as_save_IFS
8896 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8898 esac
8900 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8901 if test -n "$PKG_CONFIG"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8903 $as_echo "$PKG_CONFIG" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8911 if test "$PKG_CONFIG" = "no" ; then
8912 HAVE_GCONF=no
8913 else
8914 PKG_CONFIG_MIN_VERSION=0.9.0
8915 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8917 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8919 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8921 $as_echo "yes" >&6; }
8922 succeeded=yes
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8925 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8926 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8928 $as_echo "$GCONF_CFLAGS" >&6; }
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8931 $as_echo_n "checking GCONF_LIBS... " >&6; }
8932 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8934 $as_echo "$GCONF_LIBS" >&6; }
8935 else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8938 GCONF_CFLAGS=""
8939 GCONF_LIBS=""
8940 ## If we have a custom action on failure, don't print errors, but
8941 ## do set a variable so people can do so.
8942 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8948 else
8949 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8950 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8954 if test $succeeded = yes; then
8955 HAVE_GCONF=yes
8956 else
8957 HAVE_GCONF=no
8960 if test "$HAVE_GCONF" = yes; then
8962 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
8967 HAVE_LIBSELINUX=no
8968 LIBSELINUX_LIBS=
8969 if test "${with_selinux}" = "yes"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
8971 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8972 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8974 else
8975 ac_check_lib_save_LIBS=$LIBS
8976 LIBS="-lselinux $LIBS"
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978 /* end confdefs.h. */
8980 /* Override any GCC internal prototype to avoid an error.
8981 Use char because int might match the return type of a GCC
8982 builtin and then its argument prototype would still apply. */
8983 #ifdef __cplusplus
8984 extern "C"
8985 #endif
8986 char lgetfilecon ();
8988 main ()
8990 return lgetfilecon ();
8992 return 0;
8994 _ACEOF
8995 if ac_fn_c_try_link "$LINENO"; then :
8996 ac_cv_lib_selinux_lgetfilecon=yes
8997 else
8998 ac_cv_lib_selinux_lgetfilecon=no
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9005 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9006 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9007 HAVE_LIBSELINUX=yes
9008 else
9009 HAVE_LIBSELINUX=no
9012 if test "$HAVE_LIBSELINUX" = yes; then
9014 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9016 LIBSELINUX_LIBS=-lselinux
9021 HAVE_XAW3D=no
9022 LUCID_LIBW=
9023 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9024 if test "$with_xaw3d" != no; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9026 $as_echo_n "checking for xaw3d... " >&6; }
9027 if test "${emacs_cv_xaw3d+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9033 #include <X11/Intrinsic.h>
9034 #include <X11/Xaw3d/Simple.h>
9036 main ()
9040 return 0;
9042 _ACEOF
9043 if ac_fn_c_try_link "$LINENO"; then :
9044 emacs_cv_xaw3d=yes
9045 else
9046 emacs_cv_xaw3d=no
9048 rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9052 else
9053 emacs_cv_xaw3d=no
9055 if test $emacs_cv_xaw3d = yes; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9057 $as_echo "yes; using Lucid toolkit" >&6; }
9058 USE_X_TOOLKIT=LUCID
9059 HAVE_XAW3D=yes
9060 LUCID_LIBW=-lXaw3d
9062 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9068 $as_echo_n "checking for libXaw... " >&6; }
9069 if test "${emacs_cv_xaw+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9075 #include <X11/Intrinsic.h>
9076 #include <X11/Xaw/Simple.h>
9078 main ()
9082 return 0;
9084 _ACEOF
9085 if ac_fn_c_try_link "$LINENO"; then :
9086 emacs_cv_xaw=yes
9087 else
9088 emacs_cv_xaw=no
9090 rm -f core conftest.err conftest.$ac_objext \
9091 conftest$ac_exeext conftest.$ac_ext
9094 if test $emacs_cv_xaw = yes; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9096 $as_echo "yes; using Lucid toolkit" >&6; }
9097 USE_X_TOOLKIT=LUCID
9098 LUCID_LIBW=-lXaw
9099 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9100 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9103 $as_echo "no; do not use toolkit by default" >&6; }
9104 USE_X_TOOLKIT=none
9109 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9111 LIBXTR6=
9112 if test "${USE_X_TOOLKIT}" != "none"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9114 $as_echo_n "checking X11 toolkit version... " >&6; }
9115 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 #include <X11/Intrinsic.h>
9122 main ()
9124 #if XtSpecificationRelease < 6
9125 fail;
9126 #endif
9129 return 0;
9131 _ACEOF
9132 if ac_fn_c_try_link "$LINENO"; then :
9133 emacs_cv_x11_toolkit_version_6=yes
9134 else
9135 emacs_cv_x11_toolkit_version_6=no
9137 rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9141 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9142 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9144 $as_echo "6 or newer" >&6; }
9146 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9148 LIBXTR6="-lSM -lICE"
9149 case "$opsys" in
9150 ## Use libw.a along with X11R6 Xt.
9151 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9152 esac
9153 else
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9155 $as_echo "before 6" >&6; }
9158 OLDLIBS="$LIBS"
9159 if test x$HAVE_X11XTR6 = xyes; then
9160 LIBS="-lXt -lSM -lICE $LIBS"
9161 else
9162 LIBS="-lXt $LIBS"
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9165 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9166 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 ac_check_lib_save_LIBS=$LIBS
9170 LIBS="-lXmu $LIBS"
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9174 /* Override any GCC internal prototype to avoid an error.
9175 Use char because int might match the return type of a GCC
9176 builtin and then its argument prototype would still apply. */
9177 #ifdef __cplusplus
9178 extern "C"
9179 #endif
9180 char XmuConvertStandardSelection ();
9182 main ()
9184 return XmuConvertStandardSelection ();
9186 return 0;
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9190 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9191 else
9192 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9194 rm -f core conftest.err conftest.$ac_objext \
9195 conftest$ac_exeext conftest.$ac_ext
9196 LIBS=$ac_check_lib_save_LIBS
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9199 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9200 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9201 cat >>confdefs.h <<_ACEOF
9202 #define HAVE_LIBXMU 1
9203 _ACEOF
9205 LIBS="-lXmu $LIBS"
9209 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9213 LIBXMU=-lXmu
9214 case "$machine" in
9215 ## These machines don't supply Xmu.
9216 hpux* | aix4-2 )
9217 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9219 esac
9222 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9223 if test "${HAVE_X11}" = "yes"; then
9224 if test "${USE_X_TOOLKIT}" != "none"; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9226 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9227 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 ac_check_lib_save_LIBS=$LIBS
9231 LIBS="-lXext $LIBS"
9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233 /* end confdefs.h. */
9235 /* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238 #ifdef __cplusplus
9239 extern "C"
9240 #endif
9241 char XShapeQueryExtension ();
9243 main ()
9245 return XShapeQueryExtension ();
9247 return 0;
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251 ac_cv_lib_Xext_XShapeQueryExtension=yes
9252 else
9253 ac_cv_lib_Xext_XShapeQueryExtension=no
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 LIBS=$ac_check_lib_save_LIBS
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9260 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9261 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9262 cat >>confdefs.h <<_ACEOF
9263 #define HAVE_LIBXEXT 1
9264 _ACEOF
9266 LIBS="-lXext $LIBS"
9273 LIBXP=
9274 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9276 $as_echo_n "checking for Motif version 2.1... " >&6; }
9277 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 #include <Xm/Xm.h>
9284 main ()
9286 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9287 int x = 5;
9288 #else
9289 Motif version prior to 2.1.
9290 #endif
9292 return 0;
9294 _ACEOF
9295 if ac_fn_c_try_compile "$LINENO"; then :
9296 emacs_cv_motif_version_2_1=yes
9297 else
9298 emacs_cv_motif_version_2_1=no
9300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9303 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9304 if test $emacs_cv_motif_version_2_1 = yes; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9306 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9307 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-lXp $LIBS"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9315 /* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 char XpCreateContext ();
9323 main ()
9325 return XpCreateContext ();
9327 return 0;
9329 _ACEOF
9330 if ac_fn_c_try_link "$LINENO"; then :
9331 ac_cv_lib_Xp_XpCreateContext=yes
9332 else
9333 ac_cv_lib_Xp_XpCreateContext=no
9335 rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 LIBS=$ac_check_lib_save_LIBS
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9340 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9341 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9342 LIBXP=-lXp
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9347 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9348 if test "${emacs_cv_lesstif+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 # We put this in CFLAGS temporarily to precede other -I options
9352 # that might be in CFLAGS temporarily.
9353 # We put this in CPPFLAGS where it precedes the other -I options.
9354 OLD_CPPFLAGS=$CPPFLAGS
9355 OLD_CFLAGS=$CFLAGS
9356 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9357 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9362 main ()
9364 int x = 5;
9366 return 0;
9368 _ACEOF
9369 if ac_fn_c_try_compile "$LINENO"; then :
9370 emacs_cv_lesstif=yes
9371 else
9372 emacs_cv_lesstif=no
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9377 $as_echo "$emacs_cv_lesstif" >&6; }
9378 if test $emacs_cv_lesstif = yes; then
9379 # Make sure this -I option remains in CPPFLAGS after it is set
9380 # back to REAL_CPPFLAGS.
9381 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9382 # have those other -I options anyway. Ultimately, having this
9383 # directory ultimately in CPPFLAGS will be enough.
9384 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9385 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9386 else
9387 CFLAGS=$OLD_CFLAGS
9388 CPPFLAGS=$OLD_CPPFLAGS
9394 USE_TOOLKIT_SCROLL_BARS=no
9395 if test "${with_toolkit_scroll_bars}" != "no"; then
9396 if test "${USE_X_TOOLKIT}" != "none"; then
9397 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9398 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9400 HAVE_XAW3D=no
9401 USE_TOOLKIT_SCROLL_BARS=yes
9402 elif test "${HAVE_XAW3D}" = "yes"; then
9403 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9405 USE_TOOLKIT_SCROLL_BARS=yes
9407 elif test "${HAVE_GTK}" = "yes"; then
9408 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9410 USE_TOOLKIT_SCROLL_BARS=yes
9411 elif test "${HAVE_NS}" = "yes"; then
9412 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9414 USE_TOOLKIT_SCROLL_BARS=yes
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h. */
9421 #include <X11/Xlib.h>
9422 #include <X11/Xresource.h>
9424 main ()
9426 XIMProc callback;
9428 return 0;
9430 _ACEOF
9431 if ac_fn_c_try_compile "$LINENO"; then :
9432 HAVE_XIM=yes
9434 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9436 else
9437 HAVE_XIM=no
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9442 if test "${with_xim}" != "no"; then
9444 $as_echo "#define USE_XIM 1" >>confdefs.h
9449 if test "${HAVE_XIM}" != "no"; then
9450 late_CFLAGS=$CFLAGS
9451 if test "$GCC" = yes; then
9452 CFLAGS="$CFLAGS --pedantic-errors"
9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9457 #include <X11/Xlib.h>
9458 #include <X11/Xresource.h>
9460 main ()
9462 Display *display;
9463 XrmDatabase db;
9464 char *res_name;
9465 char *res_class;
9466 XIMProc callback;
9467 XPointer *client_data;
9468 #ifndef __GNUC__
9469 /* If we're not using GCC, it's probably not XFree86, and this is
9470 probably right, but we can't use something like --pedantic-errors. */
9471 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9472 char*, XIMProc, XPointer*);
9473 #endif
9474 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9475 client_data);
9477 return 0;
9479 _ACEOF
9480 if ac_fn_c_try_compile "$LINENO"; then :
9481 emacs_cv_arg6_star=yes
9483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484 if test "$emacs_cv_arg6_star" = yes; then
9485 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9487 else
9488 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9491 CFLAGS=$late_CFLAGS
9494 ### Start of font-backend (under any platform) section.
9495 # (nothing here yet -- this is a placeholder)
9496 ### End of font-backend (under any platform) section.
9498 ### Start of font-backend (under X11) section.
9499 if test "${HAVE_X11}" = "yes"; then
9501 succeeded=no
9503 # Extract the first word of "pkg-config", so it can be a program name with args.
9504 set dummy pkg-config; ac_word=$2
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 $as_echo_n "checking for $ac_word... " >&6; }
9507 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 case $PKG_CONFIG in
9511 [\\/]* | ?:[\\/]*)
9512 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 for as_dir in $PATH
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9522 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524 break 2
9526 done
9527 done
9528 IFS=$as_save_IFS
9530 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9532 esac
9534 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9535 if test -n "$PKG_CONFIG"; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9537 $as_echo "$PKG_CONFIG" >&6; }
9538 else
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540 $as_echo "no" >&6; }
9545 if test "$PKG_CONFIG" = "no" ; then
9546 HAVE_FC=no
9547 else
9548 PKG_CONFIG_MIN_VERSION=0.9.0
9549 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9551 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9553 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9555 $as_echo "yes" >&6; }
9556 succeeded=yes
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9559 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9560 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9562 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9565 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9566 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9568 $as_echo "$FONTCONFIG_LIBS" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9572 FONTCONFIG_CFLAGS=""
9573 FONTCONFIG_LIBS=""
9574 ## If we have a custom action on failure, don't print errors, but
9575 ## do set a variable so people can do so.
9576 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9582 else
9583 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9584 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9588 if test $succeeded = yes; then
9589 HAVE_FC=yes
9590 else
9591 HAVE_FC=no
9595 ## Use -lXft if available, unless `--with-xft=no'.
9596 HAVE_XFT=maybe
9597 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9598 with_xft="no";
9600 if test "x${with_xft}" != "xno"; then
9603 succeeded=no
9605 # Extract the first word of "pkg-config", so it can be a program name with args.
9606 set dummy pkg-config; ac_word=$2
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9608 $as_echo_n "checking for $ac_word... " >&6; }
9609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 case $PKG_CONFIG in
9613 [\\/]* | ?:[\\/]*)
9614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in $PATH
9620 IFS=$as_save_IFS
9621 test -z "$as_dir" && as_dir=.
9622 for ac_exec_ext in '' $ac_executable_extensions; do
9623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9626 break 2
9628 done
9629 done
9630 IFS=$as_save_IFS
9632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9634 esac
9636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9637 if test -n "$PKG_CONFIG"; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9639 $as_echo "$PKG_CONFIG" >&6; }
9640 else
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9647 if test "$PKG_CONFIG" = "no" ; then
9648 HAVE_XFT=no
9649 else
9650 PKG_CONFIG_MIN_VERSION=0.9.0
9651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9653 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9655 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9657 $as_echo "yes" >&6; }
9658 succeeded=yes
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9661 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9662 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9664 $as_echo "$XFT_CFLAGS" >&6; }
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9667 $as_echo_n "checking XFT_LIBS... " >&6; }
9668 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9670 $as_echo "$XFT_LIBS" >&6; }
9671 else
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9674 XFT_CFLAGS=""
9675 XFT_LIBS=""
9676 ## If we have a custom action on failure, don't print errors, but
9677 ## do set a variable so people can do so.
9678 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9684 else
9685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9690 if test $succeeded = yes; then
9692 else
9693 HAVE_XFT=no
9696 ## Because xftfont.c uses XRenderQueryExtension, we also
9697 ## need to link to -lXrender.
9698 HAVE_XRENDER=no
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9700 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9701 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 ac_check_lib_save_LIBS=$LIBS
9705 LIBS="-lXrender $LIBS"
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9709 /* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
9712 #ifdef __cplusplus
9713 extern "C"
9714 #endif
9715 char XRenderQueryExtension ();
9717 main ()
9719 return XRenderQueryExtension ();
9721 return 0;
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"; then :
9725 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9726 else
9727 ac_cv_lib_Xrender_XRenderQueryExtension=no
9729 rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 LIBS=$ac_check_lib_save_LIBS
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9734 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9735 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9736 HAVE_XRENDER=yes
9739 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9740 OLD_CPPFLAGS="$CPPFLAGS"
9741 OLD_CFLAGS="$CFLAGS"
9742 OLD_LIBS="$LIBS"
9743 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9744 CFLAGS="$CFLAGS $XFT_CFLAGS"
9745 XFT_LIBS="-lXrender $XFT_LIBS"
9746 LIBS="$XFT_LIBS $LIBS"
9747 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9748 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9750 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9751 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 ac_check_lib_save_LIBS=$LIBS
9755 LIBS="-lXft $XFT_LIBS $LIBS"
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char XftFontOpen ();
9767 main ()
9769 return XftFontOpen ();
9771 return 0;
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775 ac_cv_lib_Xft_XftFontOpen=yes
9776 else
9777 ac_cv_lib_Xft_XftFontOpen=no
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_lib_save_LIBS
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9784 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9785 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9786 HAVE_XFT=yes
9793 if test "${HAVE_XFT}" = "yes"; then
9795 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9798 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9799 else
9800 CPPFLAGS="$OLD_CPPFLAGS"
9801 CFLAGS="$OLD_CFLAGS"
9802 LIBS="$OLD_LIBS"
9803 fi # "${HAVE_XFT}" = "yes"
9804 fi # "$HAVE_XFT" != no
9805 fi # "x${with_xft}" != "xno"
9807 if test "$HAVE_XFT" != "yes"; then
9808 HAVE_XFT=no
9812 HAVE_FREETYPE=no
9813 ## We used to allow building with FreeType and without Xft.
9814 ## However, the ftx font backend driver is not in good shape.
9815 if test "${HAVE_XFT}" = "yes"; then
9816 HAVE_FREETYPE=yes
9817 FONTCONFIG_CFLAGS=
9818 FONTCONFIG_LIBS=
9821 HAVE_LIBOTF=no
9822 if test "${HAVE_FREETYPE}" = "yes"; then
9824 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9826 if test "${with_libotf}" != "no"; then
9828 succeeded=no
9830 # Extract the first word of "pkg-config", so it can be a program name with args.
9831 set dummy pkg-config; ac_word=$2
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833 $as_echo_n "checking for $ac_word... " >&6; }
9834 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 case $PKG_CONFIG in
9838 [\\/]* | ?:[\\/]*)
9839 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843 for as_dir in $PATH
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9849 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 break 2
9853 done
9854 done
9855 IFS=$as_save_IFS
9857 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9859 esac
9861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9862 if test -n "$PKG_CONFIG"; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9864 $as_echo "$PKG_CONFIG" >&6; }
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867 $as_echo "no" >&6; }
9872 if test "$PKG_CONFIG" = "no" ; then
9873 HAVE_LIBOTF=no
9874 else
9875 PKG_CONFIG_MIN_VERSION=0.9.0
9876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9878 $as_echo_n "checking for libotf... " >&6; }
9880 if $PKG_CONFIG --exists "libotf" 2>&5; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9882 $as_echo "yes" >&6; }
9883 succeeded=yes
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9886 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9887 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9889 $as_echo "$LIBOTF_CFLAGS" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9892 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9893 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9895 $as_echo "$LIBOTF_LIBS" >&6; }
9896 else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898 $as_echo "no" >&6; }
9899 LIBOTF_CFLAGS=""
9900 LIBOTF_LIBS=""
9901 ## If we have a custom action on failure, don't print errors, but
9902 ## do set a variable so people can do so.
9903 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9909 else
9910 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9911 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9915 if test $succeeded = yes; then
9916 HAVE_LIBOTF=yes
9917 else
9918 HAVE_LIBOTF=no
9921 if test "$HAVE_LIBOTF" = "yes"; then
9923 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9926 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9927 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-lotf $LIBS"
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 char OTF_get_variation_glyphs ();
9943 main ()
9945 return OTF_get_variation_glyphs ();
9947 return 0;
9949 _ACEOF
9950 if ac_fn_c_try_link "$LINENO"; then :
9951 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9952 else
9953 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9955 rm -f core conftest.err conftest.$ac_objext \
9956 conftest$ac_exeext conftest.$ac_ext
9957 LIBS=$ac_check_lib_save_LIBS
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9960 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9961 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
9962 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9963 else
9964 HAVE_OTF_GET_VARIATION_GLYPHS=no
9967 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9969 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9976 HAVE_M17N_FLT=no
9977 if test "${HAVE_LIBOTF}" = yes; then
9978 if test "${with_m17n_flt}" != "no"; then
9980 succeeded=no
9982 # Extract the first word of "pkg-config", so it can be a program name with args.
9983 set dummy pkg-config; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 case $PKG_CONFIG in
9990 [\\/]* | ?:[\\/]*)
9991 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9995 for as_dir in $PATH
9997 IFS=$as_save_IFS
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10001 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 break 2
10005 done
10006 done
10007 IFS=$as_save_IFS
10009 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10011 esac
10013 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10014 if test -n "$PKG_CONFIG"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10016 $as_echo "$PKG_CONFIG" >&6; }
10017 else
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10024 if test "$PKG_CONFIG" = "no" ; then
10025 HAVE_M17N_FLT=no
10026 else
10027 PKG_CONFIG_MIN_VERSION=0.9.0
10028 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10030 $as_echo_n "checking for m17n-flt... " >&6; }
10032 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10034 $as_echo "yes" >&6; }
10035 succeeded=yes
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10038 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10039 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10041 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10044 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10045 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10047 $as_echo "$M17N_FLT_LIBS" >&6; }
10048 else
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10050 $as_echo "no" >&6; }
10051 M17N_FLT_CFLAGS=""
10052 M17N_FLT_LIBS=""
10053 ## If we have a custom action on failure, don't print errors, but
10054 ## do set a variable so people can do so.
10055 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10061 else
10062 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10063 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10067 if test $succeeded = yes; then
10068 HAVE_M17N_FLT=yes
10069 else
10070 HAVE_M17N_FLT=no
10073 if test "$HAVE_M17N_FLT" = "yes"; then
10075 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10080 else
10081 HAVE_XFT=no
10082 HAVE_FREETYPE=no
10083 HAVE_LIBOTF=no
10084 HAVE_M17N_FLT=no
10087 ### End of font-backend (under X11) section.
10098 ### Use -lXpm if available, unless `--with-xpm=no'.
10099 HAVE_XPM=no
10100 LIBXPM=
10101 if test "${HAVE_X11}" = "yes"; then
10102 if test "${with_xpm}" != "no"; then
10103 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10104 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10106 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10107 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110 ac_check_lib_save_LIBS=$LIBS
10111 LIBS="-lXpm -lX11 $LIBS"
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 char XpmReadFileToPixmap ();
10123 main ()
10125 return XpmReadFileToPixmap ();
10127 return 0;
10129 _ACEOF
10130 if ac_fn_c_try_link "$LINENO"; then :
10131 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10132 else
10133 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10135 rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10140 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10141 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10142 HAVE_XPM=yes
10148 if test "${HAVE_XPM}" = "yes"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10150 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10153 #include "X11/xpm.h"
10154 #ifndef XpmReturnAllocPixels
10155 no_return_alloc_pixels
10156 #endif
10158 _ACEOF
10159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10160 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10161 HAVE_XPM=no
10162 else
10163 HAVE_XPM=yes
10165 rm -f conftest*
10168 if test "${HAVE_XPM}" = "yes"; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 $as_echo "yes" >&6; }
10171 else
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173 $as_echo "no" >&6; }
10178 if test "${HAVE_XPM}" = "yes"; then
10180 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10182 LIBXPM=-lXpm
10187 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10188 HAVE_JPEG=no
10189 LIBJPEG=
10190 if test "${HAVE_X11}" = "yes"; then
10191 if test "${with_jpeg}" != "no"; then
10192 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10193 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10195 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10196 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-ljpeg $LIBS"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 /* Override any GCC internal prototype to avoid an error.
10205 Use char because int might match the return type of a GCC
10206 builtin and then its argument prototype would still apply. */
10207 #ifdef __cplusplus
10208 extern "C"
10209 #endif
10210 char jpeg_destroy_compress ();
10212 main ()
10214 return jpeg_destroy_compress ();
10216 return 0;
10218 _ACEOF
10219 if ac_fn_c_try_link "$LINENO"; then :
10220 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10221 else
10222 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10229 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10230 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10231 HAVE_JPEG=yes
10239 if test "${HAVE_JPEG}" = "yes"; then
10240 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 #include <jpeglib.h>
10245 version=JPEG_LIB_VERSION
10247 _ACEOF
10248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10249 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10250 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10252 else
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10254 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10255 HAVE_JPEG=no
10257 rm -f conftest*
10260 if test "${HAVE_JPEG}" = "yes"; then
10261 LIBJPEG=-ljpeg
10266 ### Use -lpng if available, unless `--with-png=no'.
10267 HAVE_PNG=no
10268 LIBPNG=
10269 if test "${HAVE_X11}" = "yes"; then
10270 if test "${with_png}" != "no"; then
10271 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10272 # in /usr/include/libpng.
10273 for ac_header in png.h libpng/png.h
10274 do :
10275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10276 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10277 eval as_val=\$$as_ac_Header
10278 if test "x$as_val" = x""yes; then :
10279 cat >>confdefs.h <<_ACEOF
10280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10281 _ACEOF
10285 done
10287 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10289 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10290 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10291 $as_echo_n "(cached) " >&6
10292 else
10293 ac_check_lib_save_LIBS=$LIBS
10294 LIBS="-lpng -lz -lm $LIBS"
10295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296 /* end confdefs.h. */
10298 /* Override any GCC internal prototype to avoid an error.
10299 Use char because int might match the return type of a GCC
10300 builtin and then its argument prototype would still apply. */
10301 #ifdef __cplusplus
10302 extern "C"
10303 #endif
10304 char png_get_channels ();
10306 main ()
10308 return png_get_channels ();
10310 return 0;
10312 _ACEOF
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 ac_cv_lib_png_png_get_channels=yes
10315 else
10316 ac_cv_lib_png_png_get_channels=no
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LIBS=$ac_check_lib_save_LIBS
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10323 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10324 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10325 HAVE_PNG=yes
10331 if test "${HAVE_PNG}" = "yes"; then
10333 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10335 LIBPNG="-lpng -lz -lm"
10340 ### Use -ltiff if available, unless `--with-tiff=no'.
10341 HAVE_TIFF=no
10342 LIBTIFF=
10343 if test "${HAVE_X11}" = "yes"; then
10344 if test "${with_tiff}" != "no"; then
10345 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10346 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10347 tifflibs="-lz -lm"
10348 # At least one tiff package requires the jpeg library.
10349 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10351 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10352 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 ac_check_lib_save_LIBS=$LIBS
10356 LIBS="-ltiff $tifflibs $LIBS"
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char TIFFGetVersion ();
10368 main ()
10370 return TIFFGetVersion ();
10372 return 0;
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376 ac_cv_lib_tiff_TIFFGetVersion=yes
10377 else
10378 ac_cv_lib_tiff_TIFFGetVersion=no
10380 rm -f core conftest.err conftest.$ac_objext \
10381 conftest$ac_exeext conftest.$ac_ext
10382 LIBS=$ac_check_lib_save_LIBS
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10385 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10386 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10387 HAVE_TIFF=yes
10395 if test "${HAVE_TIFF}" = "yes"; then
10397 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10399 LIBTIFF=-ltiff
10404 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10405 HAVE_GIF=no
10406 LIBGIF=
10407 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10408 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10409 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10410 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10411 # Earlier versions can crash Emacs.
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10413 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10414 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
10416 else
10417 ac_check_lib_save_LIBS=$LIBS
10418 LIBS="-lgif $LIBS"
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420 /* end confdefs.h. */
10422 /* Override any GCC internal prototype to avoid an error.
10423 Use char because int might match the return type of a GCC
10424 builtin and then its argument prototype would still apply. */
10425 #ifdef __cplusplus
10426 extern "C"
10427 #endif
10428 char EGifPutExtensionLast ();
10430 main ()
10432 return EGifPutExtensionLast ();
10434 return 0;
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"; then :
10438 ac_cv_lib_gif_EGifPutExtensionLast=yes
10439 else
10440 ac_cv_lib_gif_EGifPutExtensionLast=no
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LIBS=$ac_check_lib_save_LIBS
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10447 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10448 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10449 HAVE_GIF=yes
10450 else
10451 HAVE_GIF=maybe
10458 if test "$HAVE_GIF" = yes; then
10459 LIBGIF=-lgif
10460 elif test "$HAVE_GIF" = maybe; then
10461 # If gif_lib.h but no libgif, try libungif.
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10463 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10464 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
10466 else
10467 ac_check_lib_save_LIBS=$LIBS
10468 LIBS="-lungif $LIBS"
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10472 /* Override any GCC internal prototype to avoid an error.
10473 Use char because int might match the return type of a GCC
10474 builtin and then its argument prototype would still apply. */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 char EGifPutExtensionLast ();
10480 main ()
10482 return EGifPutExtensionLast ();
10484 return 0;
10486 _ACEOF
10487 if ac_fn_c_try_link "$LINENO"; then :
10488 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10489 else
10490 ac_cv_lib_ungif_EGifPutExtensionLast=no
10492 rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10497 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10498 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10499 HAVE_GIF=yes
10500 else
10501 HAVE_GIF=no
10504 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10507 if test "${HAVE_GIF}" = "yes"; then
10509 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10515 if test "${HAVE_X11}" = "yes"; then
10516 MISSING=""
10517 WITH_NO=""
10518 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10519 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10520 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10521 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10522 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10523 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10524 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10525 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10526 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10527 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10529 if test "X${MISSING}" != X; then
10530 as_fn_error "The following required libraries were not found:
10531 $MISSING
10532 Maybe some development libraries/packages are missing?
10533 If you don't want to link with them give
10534 $WITH_NO
10535 as options to configure" "$LINENO" 5
10539 ### Use -lgpm if available, unless `--with-gpm=no'.
10540 HAVE_GPM=no
10541 LIBGPM=
10542 MOUSE_SUPPORT=
10543 if test "${with_gpm}" != "no"; then
10544 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10545 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10547 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10548 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10549 $as_echo_n "(cached) " >&6
10550 else
10551 ac_check_lib_save_LIBS=$LIBS
10552 LIBS="-lgpm $LIBS"
10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554 /* end confdefs.h. */
10556 /* Override any GCC internal prototype to avoid an error.
10557 Use char because int might match the return type of a GCC
10558 builtin and then its argument prototype would still apply. */
10559 #ifdef __cplusplus
10560 extern "C"
10561 #endif
10562 char Gpm_Open ();
10564 main ()
10566 return Gpm_Open ();
10568 return 0;
10570 _ACEOF
10571 if ac_fn_c_try_link "$LINENO"; then :
10572 ac_cv_lib_gpm_Gpm_Open=yes
10573 else
10574 ac_cv_lib_gpm_Gpm_Open=no
10576 rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578 LIBS=$ac_check_lib_save_LIBS
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10581 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10582 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10583 HAVE_GPM=yes
10590 if test "${HAVE_GPM}" = "yes"; then
10592 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10594 LIBGPM=-lgpm
10595 ## May be reset below.
10596 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10601 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10602 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10604 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10610 C_SWITCH_X_SYSTEM=
10611 ### Use NeXTstep API to implement GUI.
10612 if test "${HAVE_NS}" = "yes"; then
10614 $as_echo "#define HAVE_NS 1" >>confdefs.h
10616 if test "${NS_IMPL_COCOA}" = "yes"; then
10618 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10620 GNU_OBJC_CFLAGS=
10622 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10624 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10626 # See also .m.o rule in Makefile.in */
10627 # FIXME: are all these flags really needed? Document here why. */
10628 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10629 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10631 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10633 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10636 # We also have mouse menus.
10637 HAVE_MENUS=yes
10638 OTHER_FILES=ns-app
10642 ### Use session management (-lSM -lICE) if available
10643 HAVE_X_SM=no
10644 LIBXSM=
10645 if test "${HAVE_X11}" = "yes"; then
10646 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10647 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10649 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10650 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 ac_check_lib_save_LIBS=$LIBS
10654 LIBS="-lSM -lICE $LIBS"
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10658 /* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
10661 #ifdef __cplusplus
10662 extern "C"
10663 #endif
10664 char SmcOpenConnection ();
10666 main ()
10668 return SmcOpenConnection ();
10670 return 0;
10672 _ACEOF
10673 if ac_fn_c_try_link "$LINENO"; then :
10674 ac_cv_lib_SM_SmcOpenConnection=yes
10675 else
10676 ac_cv_lib_SM_SmcOpenConnection=no
10678 rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LIBS=$ac_check_lib_save_LIBS
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10683 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10684 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10685 HAVE_X_SM=yes
10692 if test "${HAVE_X_SM}" = "yes"; then
10694 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10696 LIBXSM="-lSM -lICE"
10697 case "$LIBS" in
10698 *-lSM*) ;;
10699 *) LIBS="$LIBXSM $LIBS" ;;
10700 esac
10705 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10707 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10708 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #include <netdb.h>
10715 main ()
10717 return h_errno;
10719 return 0;
10721 _ACEOF
10722 if ac_fn_c_try_link "$LINENO"; then :
10723 emacs_cv_netdb_declares_h_errno=yes
10724 else
10725 emacs_cv_netdb_declares_h_errno=no
10727 rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10731 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10732 if test $emacs_cv_netdb_declares_h_errno = yes; then
10734 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10738 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10739 # for constant arguments. Useless!
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10741 $as_echo_n "checking for working alloca.h... " >&6; }
10742 if test "${ac_cv_working_alloca_h+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10747 #include <alloca.h>
10749 main ()
10751 char *p = (char *) alloca (2 * sizeof (int));
10752 if (p) return 0;
10754 return 0;
10756 _ACEOF
10757 if ac_fn_c_try_link "$LINENO"; then :
10758 ac_cv_working_alloca_h=yes
10759 else
10760 ac_cv_working_alloca_h=no
10762 rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10766 $as_echo "$ac_cv_working_alloca_h" >&6; }
10767 if test $ac_cv_working_alloca_h = yes; then
10769 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10774 $as_echo_n "checking for alloca... " >&6; }
10775 if test "${ac_cv_func_alloca_works+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
10777 else
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780 #ifdef __GNUC__
10781 # define alloca __builtin_alloca
10782 #else
10783 # ifdef _MSC_VER
10784 # include <malloc.h>
10785 # define alloca _alloca
10786 # else
10787 # ifdef HAVE_ALLOCA_H
10788 # include <alloca.h>
10789 # else
10790 # ifdef _AIX
10791 #pragma alloca
10792 # else
10793 # ifndef alloca /* predefined by HP cc +Olibcalls */
10794 char *alloca ();
10795 # endif
10796 # endif
10797 # endif
10798 # endif
10799 #endif
10802 main ()
10804 char *p = (char *) alloca (1);
10805 if (p) return 0;
10807 return 0;
10809 _ACEOF
10810 if ac_fn_c_try_link "$LINENO"; then :
10811 ac_cv_func_alloca_works=yes
10812 else
10813 ac_cv_func_alloca_works=no
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10819 $as_echo "$ac_cv_func_alloca_works" >&6; }
10821 if test $ac_cv_func_alloca_works = yes; then
10823 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10825 else
10826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10827 # that cause trouble. Some versions do not even contain alloca or
10828 # contain a buggy version. If you still want to use their alloca,
10829 # use ar to extract alloca.o from them instead of compiling alloca.c.
10831 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10833 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10837 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10838 if test "${ac_cv_os_cray+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10843 #if defined CRAY && ! defined CRAY2
10844 webecray
10845 #else
10846 wenotbecray
10847 #endif
10849 _ACEOF
10850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10851 $EGREP "webecray" >/dev/null 2>&1; then :
10852 ac_cv_os_cray=yes
10853 else
10854 ac_cv_os_cray=no
10856 rm -f conftest*
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10860 $as_echo "$ac_cv_os_cray" >&6; }
10861 if test $ac_cv_os_cray = yes; then
10862 for ac_func in _getb67 GETB67 getb67; do
10863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10865 eval as_val=\$$as_ac_var
10866 if test "x$as_val" = x""yes; then :
10868 cat >>confdefs.h <<_ACEOF
10869 #define CRAY_STACKSEG_END $ac_func
10870 _ACEOF
10872 break
10875 done
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10879 $as_echo_n "checking stack direction for C alloca... " >&6; }
10880 if test "${ac_cv_c_stack_direction+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
10882 else
10883 if test "$cross_compiling" = yes; then :
10884 ac_cv_c_stack_direction=0
10885 else
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 $ac_includes_default
10890 find_stack_direction ()
10892 static char *addr = 0;
10893 auto char dummy;
10894 if (addr == 0)
10896 addr = &dummy;
10897 return find_stack_direction ();
10899 else
10900 return (&dummy > addr) ? 1 : -1;
10904 main ()
10906 return find_stack_direction () < 0;
10908 _ACEOF
10909 if ac_fn_c_try_run "$LINENO"; then :
10910 ac_cv_c_stack_direction=1
10911 else
10912 ac_cv_c_stack_direction=-1
10914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10915 conftest.$ac_objext conftest.beam conftest.$ac_ext
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10920 $as_echo "$ac_cv_c_stack_direction" >&6; }
10921 cat >>confdefs.h <<_ACEOF
10922 #define STACK_DIRECTION $ac_cv_c_stack_direction
10923 _ACEOF
10929 if test x"$ac_cv_func_alloca_works" != xyes; then
10930 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10933 # fmod, logb, and frexp are found in -lm on most systems.
10934 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10936 $as_echo_n "checking for sqrt in -lm... " >&6; }
10937 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10938 $as_echo_n "(cached) " >&6
10939 else
10940 ac_check_lib_save_LIBS=$LIBS
10941 LIBS="-lm $LIBS"
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10945 /* Override any GCC internal prototype to avoid an error.
10946 Use char because int might match the return type of a GCC
10947 builtin and then its argument prototype would still apply. */
10948 #ifdef __cplusplus
10949 extern "C"
10950 #endif
10951 char sqrt ();
10953 main ()
10955 return sqrt ();
10957 return 0;
10959 _ACEOF
10960 if ac_fn_c_try_link "$LINENO"; then :
10961 ac_cv_lib_m_sqrt=yes
10962 else
10963 ac_cv_lib_m_sqrt=no
10965 rm -f core conftest.err conftest.$ac_objext \
10966 conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
10970 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10971 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
10972 cat >>confdefs.h <<_ACEOF
10973 #define HAVE_LIBM 1
10974 _ACEOF
10976 LIBS="-lm $LIBS"
10981 # Check for mail-locking functions in a "mail" library. Probably this should
10982 # have the same check as for liblockfile below.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
10984 $as_echo_n "checking for maillock in -lmail... " >&6; }
10985 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-lmail $LIBS"
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char maillock ();
11001 main ()
11003 return maillock ();
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_mail_maillock=yes
11010 else
11011 ac_cv_lib_mail_maillock=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11018 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11019 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11020 have_mail=yes
11021 else
11022 have_mail=no
11025 if test $have_mail = yes; then
11026 LIBS_MAIL=-lmail
11027 LIBS="$LIBS_MAIL $LIBS"
11029 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11031 else
11032 LIBS_MAIL=
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11035 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11036 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11038 else
11039 ac_check_lib_save_LIBS=$LIBS
11040 LIBS="-llockfile $LIBS"
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11044 /* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 #endif
11050 char maillock ();
11052 main ()
11054 return maillock ();
11056 return 0;
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"; then :
11060 ac_cv_lib_lockfile_maillock=yes
11061 else
11062 ac_cv_lib_lockfile_maillock=no
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 LIBS=$ac_check_lib_save_LIBS
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11069 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11070 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11071 have_lockfile=yes
11072 else
11073 have_lockfile=no
11076 if test $have_lockfile = yes; then
11077 LIBS_MAIL=-llockfile
11078 LIBS="$LIBS_MAIL $LIBS"
11080 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11082 else
11083 # If we have the shared liblockfile, assume we must use it for mail
11084 # locking (e.g. Debian). If we couldn't link against liblockfile
11085 # (no liblockfile.a installed), ensure that we don't need to.
11086 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11087 set dummy liblockfile.so; ac_word=$2
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11089 $as_echo_n "checking for $ac_word... " >&6; }
11090 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 if test -n "$liblockfile"; then
11094 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11095 else
11096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11098 for as_dir in $as_dummy
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11104 ac_cv_prog_liblockfile="yes"
11105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11108 done
11109 done
11110 IFS=$as_save_IFS
11112 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11115 liblockfile=$ac_cv_prog_liblockfile
11116 if test -n "$liblockfile"; then
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11118 $as_echo "$liblockfile" >&6; }
11119 else
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121 $as_echo "no" >&6; }
11125 if test $ac_cv_prog_liblockfile = yes; then
11126 as_fn_error "Shared liblockfile found but can't link against it.
11127 This probably means that movemail could lose mail.
11128 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11131 for ac_func in touchlock
11132 do :
11133 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11134 if test "x$ac_cv_func_touchlock" = x""yes; then :
11135 cat >>confdefs.h <<_ACEOF
11136 #define HAVE_TOUCHLOCK 1
11137 _ACEOF
11140 done
11142 for ac_header in maillock.h
11143 do :
11144 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11145 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11146 cat >>confdefs.h <<_ACEOF
11147 #define HAVE_MAILLOCK_H 1
11148 _ACEOF
11152 done
11156 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11157 ## interlock access to the mail spool. The alternative is a lock file named
11158 ## /usr/spool/mail/$USER.lock.
11159 mail_lock=no
11160 case "$opsys" in
11161 aix4-2) mail_lock="lockf" ;;
11163 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11165 ## On GNU/Linux systems, both methods are used by various mail programs.
11166 ## I assume most people are using newer mailers that have heard of flock.
11167 ## Change this if you need to.
11168 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11169 ## configure gets the right answers, and that means *NOT* using flock.
11170 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11171 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11172 ## Debian maintainer hasn't provided a clean fix for Emacs.
11173 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11174 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11175 ## correct logic. -- fx
11176 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11177 ## liblockfile is a Free Software replacement for libmail, used on
11178 ## Debian systems and elsewhere. -rfr.
11179 gnu-*)
11180 mail_lock="flock"
11181 if test $have_mail = yes || test $have_lockfile = yes; then
11182 test $ac_cv_header_maillock_h = yes && mail_lock=no
11185 esac
11187 BLESSMAIL_TARGET=
11188 case "$mail_lock" in
11189 flock)
11190 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11193 lockf)
11194 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11197 *) BLESSMAIL_TARGET="need-blessmail" ;;
11198 esac
11202 for ac_func in gethostname getdomainname dup2 \
11203 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11204 random lrand48 logb frexp fmod rint cbrt ftime setsid \
11205 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11206 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11207 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11208 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11209 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
11210 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11211 cfmakeraw cfsetspeed isnan copysign
11212 do :
11213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11215 eval as_val=\$$as_ac_var
11216 if test "x$as_val" = x""yes; then :
11217 cat >>confdefs.h <<_ACEOF
11218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11219 _ACEOF
11222 done
11225 for ac_header in sys/un.h
11226 do :
11227 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11228 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11229 cat >>confdefs.h <<_ACEOF
11230 #define HAVE_SYS_UN_H 1
11231 _ACEOF
11235 done
11243 for ac_func in $ac_func_list
11244 do :
11245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11247 eval as_val=\$$as_ac_var
11248 if test "x$as_val" = x""yes; then :
11249 cat >>confdefs.h <<_ACEOF
11250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11251 _ACEOF
11254 done
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11261 $as_echo_n "checking for working mktime... " >&6; }
11262 if test "${ac_cv_func_working_mktime+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11264 else
11265 if test "$cross_compiling" = yes; then :
11266 ac_cv_func_working_mktime=no
11267 else
11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11270 /* Test program from Paul Eggert and Tony Leneis. */
11271 #ifdef TIME_WITH_SYS_TIME
11272 # include <sys/time.h>
11273 # include <time.h>
11274 #else
11275 # ifdef HAVE_SYS_TIME_H
11276 # include <sys/time.h>
11277 # else
11278 # include <time.h>
11279 # endif
11280 #endif
11282 #include <limits.h>
11283 #include <stdlib.h>
11285 #ifdef HAVE_UNISTD_H
11286 # include <unistd.h>
11287 #endif
11289 #ifndef HAVE_ALARM
11290 # define alarm(X) /* empty */
11291 #endif
11293 /* Work around redefinition to rpl_putenv by other config tests. */
11294 #undef putenv
11296 static time_t time_t_max;
11297 static time_t time_t_min;
11299 /* Values we'll use to set the TZ environment variable. */
11300 static char *tz_strings[] = {
11301 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11302 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11304 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11306 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11307 Based on a problem report from Andreas Jaeger. */
11308 static int
11309 spring_forward_gap ()
11311 /* glibc (up to about 1998-10-07) failed this test. */
11312 struct tm tm;
11314 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11315 instead of "TZ=America/Vancouver" in order to detect the bug even
11316 on systems that don't support the Olson extension, or don't have the
11317 full zoneinfo tables installed. */
11318 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11320 tm.tm_year = 98;
11321 tm.tm_mon = 3;
11322 tm.tm_mday = 5;
11323 tm.tm_hour = 2;
11324 tm.tm_min = 0;
11325 tm.tm_sec = 0;
11326 tm.tm_isdst = -1;
11327 return mktime (&tm) != (time_t) -1;
11330 static int
11331 mktime_test1 (now)
11332 time_t now;
11334 struct tm *lt;
11335 return ! (lt = localtime (&now)) || mktime (lt) == now;
11338 static int
11339 mktime_test (now)
11340 time_t now;
11342 return (mktime_test1 (now)
11343 && mktime_test1 ((time_t) (time_t_max - now))
11344 && mktime_test1 ((time_t) (time_t_min + now)));
11347 static int
11348 irix_6_4_bug ()
11350 /* Based on code from Ariel Faigon. */
11351 struct tm tm;
11352 tm.tm_year = 96;
11353 tm.tm_mon = 3;
11354 tm.tm_mday = 0;
11355 tm.tm_hour = 0;
11356 tm.tm_min = 0;
11357 tm.tm_sec = 0;
11358 tm.tm_isdst = -1;
11359 mktime (&tm);
11360 return tm.tm_mon == 2 && tm.tm_mday == 31;
11363 static int
11364 bigtime_test (j)
11365 int j;
11367 struct tm tm;
11368 time_t now;
11369 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11370 now = mktime (&tm);
11371 if (now != (time_t) -1)
11373 struct tm *lt = localtime (&now);
11374 if (! (lt
11375 && lt->tm_year == tm.tm_year
11376 && lt->tm_mon == tm.tm_mon
11377 && lt->tm_mday == tm.tm_mday
11378 && lt->tm_hour == tm.tm_hour
11379 && lt->tm_min == tm.tm_min
11380 && lt->tm_sec == tm.tm_sec
11381 && lt->tm_yday == tm.tm_yday
11382 && lt->tm_wday == tm.tm_wday
11383 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11384 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11385 return 0;
11387 return 1;
11390 static int
11391 year_2050_test ()
11393 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11394 ignoring leap seconds. */
11395 unsigned long int answer = 2527315200UL;
11397 struct tm tm;
11398 time_t t;
11399 tm.tm_year = 2050 - 1900;
11400 tm.tm_mon = 2 - 1;
11401 tm.tm_mday = 1;
11402 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11403 tm.tm_isdst = -1;
11405 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11406 instead of "TZ=America/Vancouver" in order to detect the bug even
11407 on systems that don't support the Olson extension, or don't have the
11408 full zoneinfo tables installed. */
11409 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11411 t = mktime (&tm);
11413 /* Check that the result is either a failure, or close enough
11414 to the correct answer that we can assume the discrepancy is
11415 due to leap seconds. */
11416 return (t == (time_t) -1
11417 || (0 < t && answer - 120 <= t && t <= answer + 120));
11421 main ()
11423 time_t t, delta;
11424 int i, j;
11426 /* This test makes some buggy mktime implementations loop.
11427 Give up after 60 seconds; a mktime slower than that
11428 isn't worth using anyway. */
11429 alarm (60);
11431 for (;;)
11433 t = (time_t_max << 1) + 1;
11434 if (t <= time_t_max)
11435 break;
11436 time_t_max = t;
11438 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11440 delta = time_t_max / 997; /* a suitable prime number */
11441 for (i = 0; i < N_STRINGS; i++)
11443 if (tz_strings[i])
11444 putenv (tz_strings[i]);
11446 for (t = 0; t <= time_t_max - delta; t += delta)
11447 if (! mktime_test (t))
11448 return 1;
11449 if (! (mktime_test ((time_t) 1)
11450 && mktime_test ((time_t) (60 * 60))
11451 && mktime_test ((time_t) (60 * 60 * 24))))
11452 return 1;
11454 for (j = 1; ; j <<= 1)
11455 if (! bigtime_test (j))
11456 return 1;
11457 else if (INT_MAX / 2 < j)
11458 break;
11459 if (! bigtime_test (INT_MAX))
11460 return 1;
11462 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11464 _ACEOF
11465 if ac_fn_c_try_run "$LINENO"; then :
11466 ac_cv_func_working_mktime=yes
11467 else
11468 ac_cv_func_working_mktime=no
11470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11471 conftest.$ac_objext conftest.beam conftest.$ac_ext
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11476 $as_echo "$ac_cv_func_working_mktime" >&6; }
11477 if test $ac_cv_func_working_mktime = no; then
11478 case " $LIBOBJS " in
11479 *" mktime.$ac_objext "* ) ;;
11480 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11482 esac
11486 if test "$ac_cv_func_working_mktime" = no; then
11488 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11492 ac_have_func=no # yes means we've found a way to get the load average.
11494 # Make sure getloadavg.c is where it belongs, at configure-time.
11495 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11496 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11498 ac_save_LIBS=$LIBS
11500 # Check for getloadavg, but be sure not to touch the cache variable.
11501 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11502 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11503 exit 0
11504 else
11505 exit 1
11507 ) && ac_have_func=yes
11509 # On HPUX9, an unprivileged user can get load averages through this function.
11510 for ac_func in pstat_getdynamic
11511 do :
11512 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11513 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11514 cat >>confdefs.h <<_ACEOF
11515 #define HAVE_PSTAT_GETDYNAMIC 1
11516 _ACEOF
11519 done
11522 # Solaris has libkstat which does not require root.
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11524 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11525 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-lkstat $LIBS"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char kstat_open ();
11541 main ()
11543 return kstat_open ();
11545 return 0;
11547 _ACEOF
11548 if ac_fn_c_try_link "$LINENO"; then :
11549 ac_cv_lib_kstat_kstat_open=yes
11550 else
11551 ac_cv_lib_kstat_kstat_open=no
11553 rm -f core conftest.err conftest.$ac_objext \
11554 conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11558 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11559 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11560 cat >>confdefs.h <<_ACEOF
11561 #define HAVE_LIBKSTAT 1
11562 _ACEOF
11564 LIBS="-lkstat $LIBS"
11568 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11570 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11571 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11572 # to get the right answer into the cache.
11573 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11574 if test $ac_have_func = no; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11576 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11577 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-lelf $LIBS"
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11585 /* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11588 #ifdef __cplusplus
11589 extern "C"
11590 #endif
11591 char elf_begin ();
11593 main ()
11595 return elf_begin ();
11597 return 0;
11599 _ACEOF
11600 if ac_fn_c_try_link "$LINENO"; then :
11601 ac_cv_lib_elf_elf_begin=yes
11602 else
11603 ac_cv_lib_elf_elf_begin=no
11605 rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
11607 LIBS=$ac_check_lib_save_LIBS
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11610 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11611 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11612 LIBS="-lelf $LIBS"
11616 if test $ac_have_func = no; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11618 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11619 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 ac_check_lib_save_LIBS=$LIBS
11623 LIBS="-lkvm $LIBS"
11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11630 #ifdef __cplusplus
11631 extern "C"
11632 #endif
11633 char kvm_open ();
11635 main ()
11637 return kvm_open ();
11639 return 0;
11641 _ACEOF
11642 if ac_fn_c_try_link "$LINENO"; then :
11643 ac_cv_lib_kvm_kvm_open=yes
11644 else
11645 ac_cv_lib_kvm_kvm_open=no
11647 rm -f core conftest.err conftest.$ac_objext \
11648 conftest$ac_exeext conftest.$ac_ext
11649 LIBS=$ac_check_lib_save_LIBS
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11652 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11653 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11654 LIBS="-lkvm $LIBS"
11657 # Check for the 4.4BSD definition of getloadavg.
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11659 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11660 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11661 $as_echo_n "(cached) " >&6
11662 else
11663 ac_check_lib_save_LIBS=$LIBS
11664 LIBS="-lutil $LIBS"
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11671 #ifdef __cplusplus
11672 extern "C"
11673 #endif
11674 char getloadavg ();
11676 main ()
11678 return getloadavg ();
11680 return 0;
11682 _ACEOF
11683 if ac_fn_c_try_link "$LINENO"; then :
11684 ac_cv_lib_util_getloadavg=yes
11685 else
11686 ac_cv_lib_util_getloadavg=no
11688 rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11693 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11694 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11695 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11700 if test $ac_have_func = no; then
11701 # There is a commonly available library for RS/6000 AIX.
11702 # Since it is not a standard part of AIX, it might be installed locally.
11703 ac_getloadavg_LIBS=$LIBS
11704 LIBS="-L/usr/local/lib $LIBS"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11706 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11707 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11708 $as_echo_n "(cached) " >&6
11709 else
11710 ac_check_lib_save_LIBS=$LIBS
11711 LIBS="-lgetloadavg $LIBS"
11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11715 /* Override any GCC internal prototype to avoid an error.
11716 Use char because int might match the return type of a GCC
11717 builtin and then its argument prototype would still apply. */
11718 #ifdef __cplusplus
11719 extern "C"
11720 #endif
11721 char getloadavg ();
11723 main ()
11725 return getloadavg ();
11727 return 0;
11729 _ACEOF
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 ac_cv_lib_getloadavg_getloadavg=yes
11732 else
11733 ac_cv_lib_getloadavg_getloadavg=no
11735 rm -f core conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 LIBS=$ac_check_lib_save_LIBS
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11740 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11741 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11742 LIBS="-lgetloadavg $LIBS"
11743 else
11744 LIBS=$ac_getloadavg_LIBS
11749 # Make sure it is really in the library, if we think we found it,
11750 # otherwise set up the replacement function.
11751 for ac_func in getloadavg
11752 do :
11753 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11754 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11755 cat >>confdefs.h <<_ACEOF
11756 #define HAVE_GETLOADAVG 1
11757 _ACEOF
11759 else
11760 case " $LIBOBJS " in
11761 *" getloadavg.$ac_objext "* ) ;;
11762 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11764 esac
11767 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11769 # Figure out what our getloadavg.c needs.
11770 ac_have_func=no
11771 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11772 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11773 ac_have_func=yes
11775 $as_echo "#define DGUX 1" >>confdefs.h
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11778 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11779 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 ac_check_lib_save_LIBS=$LIBS
11783 LIBS="-ldgc $LIBS"
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11787 /* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11790 #ifdef __cplusplus
11791 extern "C"
11792 #endif
11793 char dg_sys_info ();
11795 main ()
11797 return dg_sys_info ();
11799 return 0;
11801 _ACEOF
11802 if ac_fn_c_try_link "$LINENO"; then :
11803 ac_cv_lib_dgc_dg_sys_info=yes
11804 else
11805 ac_cv_lib_dgc_dg_sys_info=no
11807 rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11809 LIBS=$ac_check_lib_save_LIBS
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11812 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11813 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11814 cat >>confdefs.h <<_ACEOF
11815 #define HAVE_LIBDGC 1
11816 _ACEOF
11818 LIBS="-ldgc $LIBS"
11826 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11827 if test "x$ac_cv_header_locale_h" = x""yes; then :
11832 for ac_func in setlocale
11833 do :
11834 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11835 if test "x$ac_cv_func_setlocale" = x""yes; then :
11836 cat >>confdefs.h <<_ACEOF
11837 #define HAVE_SETLOCALE 1
11838 _ACEOF
11841 done
11844 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11845 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11846 # Irix 4.0.5F has the header but not the library.
11847 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11848 ac_have_func=yes
11850 $as_echo "#define SVR4 1" >>confdefs.h
11854 if test $ac_have_func = no; then
11855 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11856 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11857 ac_have_func=yes
11859 $as_echo "#define UMAX 1" >>confdefs.h
11862 $as_echo "#define UMAX4_3 1" >>confdefs.h
11869 if test $ac_have_func = no; then
11870 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11871 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11872 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11879 if test $ac_have_func = no; then
11880 for ac_header in mach/mach.h
11881 do :
11882 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11883 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11884 cat >>confdefs.h <<_ACEOF
11885 #define HAVE_MACH_MACH_H 1
11886 _ACEOF
11890 done
11894 for ac_header in nlist.h
11895 do :
11896 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11898 cat >>confdefs.h <<_ACEOF
11899 #define HAVE_NLIST_H 1
11900 _ACEOF
11901 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11903 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11905 cat >>confdefs.h <<_ACEOF
11906 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11907 _ACEOF
11910 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11917 done
11920 done
11923 # Some definitions of getloadavg require that the program be installed setgid.
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11925 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11926 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11931 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11932 #ifdef LDAV_PRIVILEGED
11933 Yowza Am I SETGID yet
11934 #endif
11935 _ACEOF
11936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11937 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11938 ac_cv_func_getloadavg_setgid=yes
11939 else
11940 ac_cv_func_getloadavg_setgid=no
11942 rm -f conftest*
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11946 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11947 if test $ac_cv_func_getloadavg_setgid = yes; then
11948 NEED_SETGID=true
11950 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11952 else
11953 NEED_SETGID=false
11956 if test $ac_cv_func_getloadavg_setgid = yes; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11958 $as_echo_n "checking group of /dev/kmem... " >&6; }
11959 if test "${ac_cv_group_kmem+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11963 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11964 # If we got an error (system does not support symlinks), try without -L.
11965 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11966 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11967 | sed -ne 's/[ ][ ]*/ /g;
11968 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11969 / /s/.* //;p;'`
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
11973 $as_echo "$ac_cv_group_kmem" >&6; }
11974 KMEM_GROUP=$ac_cv_group_kmem
11976 if test "x$ac_save_LIBS" = x; then
11977 GETLOADAVG_LIBS=$LIBS
11978 else
11979 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
11981 LIBS=$ac_save_LIBS
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11986 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11987 if test "${ac_cv_sys_largefile_source+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 while :; do
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include <sys/types.h> /* for off_t */
11994 #include <stdio.h>
11996 main ()
11998 int (*fp) (FILE *, off_t, int) = fseeko;
11999 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12001 return 0;
12003 _ACEOF
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_sys_largefile_source=no; break
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #define _LARGEFILE_SOURCE 1
12012 #include <sys/types.h> /* for off_t */
12013 #include <stdio.h>
12015 main ()
12017 int (*fp) (FILE *, off_t, int) = fseeko;
12018 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12020 return 0;
12022 _ACEOF
12023 if ac_fn_c_try_link "$LINENO"; then :
12024 ac_cv_sys_largefile_source=1; break
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028 ac_cv_sys_largefile_source=unknown
12029 break
12030 done
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12033 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12034 case $ac_cv_sys_largefile_source in #(
12035 no | unknown) ;;
12037 cat >>confdefs.h <<_ACEOF
12038 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12039 _ACEOF
12041 esac
12042 rm -rf conftest*
12044 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12045 # in glibc 2.1.3, but that breaks too many other things.
12046 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12047 if test $ac_cv_sys_largefile_source != unknown; then
12049 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12054 # Configure getopt.
12055 # getopt.m4 serial 10
12057 # The getopt module assume you want GNU getopt, with getopt_long etc,
12058 # rather than vanilla POSIX getopt. This means your your code should
12059 # always include <getopt.h> for the getopt prototypes.
12071 # Prerequisites of lib/getopt*.
12076 GETOPT_H=
12077 for ac_header in getopt.h
12078 do :
12079 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12080 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_GETOPT_H 1
12083 _ACEOF
12085 else
12086 GETOPT_H=getopt.h
12089 done
12091 if test -z "$GETOPT_H"; then
12092 for ac_func in getopt_long_only
12093 do :
12094 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12095 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12096 cat >>confdefs.h <<_ACEOF
12097 #define HAVE_GETOPT_LONG_ONLY 1
12098 _ACEOF
12100 else
12101 GETOPT_H=getopt.h
12103 done
12107 if test -z "$GETOPT_H"; then
12108 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12110 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12111 GETOPT_H=getopt.h
12116 if test -z "$GETOPT_H"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12118 $as_echo_n "checking for working GNU getopt function... " >&6; }
12119 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 if test "$cross_compiling" = yes; then :
12123 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12125 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12126 gl_cv_func_gnu_getopt=no
12127 else
12128 gl_cv_func_gnu_getopt=yes
12131 else
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h. */
12134 #include <getopt.h>
12136 main ()
12139 char *myargv[3];
12140 myargv[0] = "conftest";
12141 myargv[1] = "-+";
12142 myargv[2] = 0;
12143 return getopt (2, myargv, "+a") != '?';
12146 return 0;
12148 _ACEOF
12149 if ac_fn_c_try_run "$LINENO"; then :
12150 gl_cv_func_gnu_getopt=yes
12151 else
12152 gl_cv_func_gnu_getopt=no
12154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12155 conftest.$ac_objext conftest.beam conftest.$ac_ext
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12160 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12161 if test "$gl_cv_func_gnu_getopt" = "no"; then
12162 GETOPT_H=getopt.h
12168 if test -n "$GETOPT_H"; then :
12171 GETOPT_H=getopt.h
12173 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12178 GETOPTOBJS='getopt.o getopt1.o'
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12185 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12186 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189 # Use it with a single arg.
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 $ac_includes_default
12194 main ()
12196 getpgrp (0);
12198 return 0;
12200 _ACEOF
12201 if ac_fn_c_try_compile "$LINENO"; then :
12202 ac_cv_func_getpgrp_void=no
12203 else
12204 ac_cv_func_getpgrp_void=yes
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12210 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12211 if test $ac_cv_func_getpgrp_void = yes; then
12213 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12218 for ac_func in strftime
12219 do :
12220 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12221 if test "x$ac_cv_func_strftime" = x""yes; then :
12222 cat >>confdefs.h <<_ACEOF
12223 #define HAVE_STRFTIME 1
12224 _ACEOF
12226 else
12227 # strftime is in -lintl on SCO UNIX.
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12229 $as_echo_n "checking for strftime in -lintl... " >&6; }
12230 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-lintl $LIBS"
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12238 /* Override any GCC internal prototype to avoid an error.
12239 Use char because int might match the return type of a GCC
12240 builtin and then its argument prototype would still apply. */
12241 #ifdef __cplusplus
12242 extern "C"
12243 #endif
12244 char strftime ();
12246 main ()
12248 return strftime ();
12250 return 0;
12252 _ACEOF
12253 if ac_fn_c_try_link "$LINENO"; then :
12254 ac_cv_lib_intl_strftime=yes
12255 else
12256 ac_cv_lib_intl_strftime=no
12258 rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12263 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12264 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12265 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12267 LIBS="-lintl $LIBS"
12271 done
12274 # UNIX98 PTYs.
12275 for ac_func in grantpt
12276 do :
12277 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12278 if test "x$ac_cv_func_grantpt" = x""yes; then :
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_GRANTPT 1
12281 _ACEOF
12284 done
12287 # PTY-related GNU extensions.
12288 for ac_func in getpt
12289 do :
12290 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12291 if test "x$ac_cv_func_getpt" = x""yes; then :
12292 cat >>confdefs.h <<_ACEOF
12293 #define HAVE_GETPT 1
12294 _ACEOF
12297 done
12300 # Check this now, so that we will NOT find the above functions in ncurses.
12301 # That is because we have not set up to link ncurses in lib-src.
12302 # It's better to believe a function is not available
12303 # than to expect to find it in ncurses.
12304 # Also we need tputs and friends to be able to build at all.
12305 have_tputs_et_al=true
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12307 $as_echo_n "checking for library containing tputs... " >&6; }
12308 if test "${ac_cv_search_tputs+set}" = set; then :
12309 $as_echo_n "(cached) " >&6
12310 else
12311 ac_func_search_save_LIBS=$LIBS
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12318 #ifdef __cplusplus
12319 extern "C"
12320 #endif
12321 char tputs ();
12323 main ()
12325 return tputs ();
12327 return 0;
12329 _ACEOF
12330 for ac_lib in '' ncurses terminfo termcap; do
12331 if test -z "$ac_lib"; then
12332 ac_res="none required"
12333 else
12334 ac_res=-l$ac_lib
12335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12337 if ac_fn_c_try_link "$LINENO"; then :
12338 ac_cv_search_tputs=$ac_res
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext
12342 if test "${ac_cv_search_tputs+set}" = set; then :
12343 break
12345 done
12346 if test "${ac_cv_search_tputs+set}" = set; then :
12348 else
12349 ac_cv_search_tputs=no
12351 rm conftest.$ac_ext
12352 LIBS=$ac_func_search_save_LIBS
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12355 $as_echo "$ac_cv_search_tputs" >&6; }
12356 ac_res=$ac_cv_search_tputs
12357 if test "$ac_res" != no; then :
12358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12360 else
12361 have_tputs_et_al=false
12364 if test "$have_tputs_et_al" != true; then
12365 as_fn_error "I couldn't find termcap functions (tputs and friends).
12366 Maybe some development libraries/packages are missing? Try installing
12367 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12369 # Must define this when any termcap library is found.
12371 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12373 ## FIXME This was the cpp logic, but I am not sure it is right.
12374 ## The above test has not necessarily found libncurses.
12375 HAVE_LIBNCURSES=yes
12377 ## Use terminfo instead of termcap?
12378 ## Note only system files NOT using terminfo are:
12379 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12380 ## darwin|gnu without ncurses.
12381 TERMINFO=no
12382 LIBS_TERMCAP=
12383 case "$opsys" in
12384 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12385 ## hpux10-20: Use the system provided termcap(3) library.
12386 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12387 ## is necessary. Otherwise Emacs dumps core when run -nw.
12388 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
12390 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12391 ## The ncurses library has been moved out of the System framework in
12392 ## Mac OS X 10.2. So if configure detects it, set the command-line
12393 ## option to use it.
12394 darwin|gnu*)
12395 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12396 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12397 TERMINFO=yes
12398 LIBS_TERMCAP="-lncurses"
12402 freebsd)
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12404 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12405 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410 #include <osreldate.h>
12412 main ()
12414 #if __FreeBSD_version < 400000
12415 fail;
12416 #endif
12419 return 0;
12421 _ACEOF
12422 if ac_fn_c_try_link "$LINENO"; then :
12423 emacs_cv_freebsd_terminfo=yes
12424 else
12425 emacs_cv_freebsd_terminfo=no
12427 rm -f core conftest.err conftest.$ac_objext \
12428 conftest$ac_exeext conftest.$ac_ext
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12433 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12435 if test $emacs_cv_freebsd_terminfo = yes; then
12436 TERMINFO=yes
12437 LIBS_TERMCAP="-lncurses"
12438 else
12439 LIBS_TERMCAP="-ltermcap"
12443 netbsd)
12444 if test $ac_cv_search_tputs = -lterminfo; then
12445 TERMINFO=yes
12446 LIBS_TERMCAP="-lterminfo"
12447 else
12448 LIBS_TERMCAP="-ltermcap"
12452 esac
12454 case "$opsys" in
12455 ## hpux: Make sure we get select from libc rather than from libcurses
12456 ## because libcurses on HPUX 10.10 has a broken version of select.
12457 ## We used to use -lc -lcurses, but this may be cleaner.
12458 hpux*) LIBS_TERMCAP="-ltermcap" ;;
12460 openbsd) LIBS_TERMCAP="-lncurses" ;;
12462 ## Must use system termcap, if we use any termcap. It does special things.
12463 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12464 esac
12466 TERMCAP_OBJ=tparam.o
12467 if test $TERMINFO = yes; then
12469 $as_echo "#define TERMINFO 1" >>confdefs.h
12472 ## Default used to be -ltermcap. Add a case above if need something else.
12473 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
12475 TERMCAP_OBJ=terminfo.o
12481 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12482 resolv=no
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12485 #include <netinet/in.h>
12486 #include <arpa/nameser.h>
12487 #include <resolv.h>
12489 main ()
12491 return res_init();
12493 return 0;
12495 _ACEOF
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 have_res_init=yes
12498 else
12499 have_res_init=no
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 if test "$have_res_init" = no; then
12504 OLIBS="$LIBS"
12505 LIBS="$LIBS -lresolv"
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12507 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #include <netinet/in.h>
12511 #include <arpa/nameser.h>
12512 #include <resolv.h>
12514 main ()
12516 return res_init();
12518 return 0;
12520 _ACEOF
12521 if ac_fn_c_try_link "$LINENO"; then :
12522 have_res_init=yes
12523 else
12524 have_res_init=no
12526 rm -f core conftest.err conftest.$ac_objext \
12527 conftest$ac_exeext conftest.$ac_ext
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12529 $as_echo "$have_res_init" >&6; }
12530 if test "$have_res_init" = yes ; then
12531 resolv=yes
12533 LIBS="$OLIBS"
12536 if test "$have_res_init" = yes; then
12538 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12542 # Do we need the Hesiod library to provide the support routines?
12543 LIBHESIOD=
12544 if test "$with_hesiod" != no ; then
12545 # Don't set $LIBS here -- see comments above. FIXME which comments?
12546 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12547 if test "x$ac_cv_func_res_send" = x""yes; then :
12549 else
12550 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12551 if test "x$ac_cv_func___res_send" = x""yes; then :
12553 else
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12555 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12556 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 ac_check_lib_save_LIBS=$LIBS
12560 LIBS="-lresolv $LIBS"
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12564 /* Override any GCC internal prototype to avoid an error.
12565 Use char because int might match the return type of a GCC
12566 builtin and then its argument prototype would still apply. */
12567 #ifdef __cplusplus
12568 extern "C"
12569 #endif
12570 char res_send ();
12572 main ()
12574 return res_send ();
12576 return 0;
12578 _ACEOF
12579 if ac_fn_c_try_link "$LINENO"; then :
12580 ac_cv_lib_resolv_res_send=yes
12581 else
12582 ac_cv_lib_resolv_res_send=no
12584 rm -f core conftest.err conftest.$ac_objext \
12585 conftest$ac_exeext conftest.$ac_ext
12586 LIBS=$ac_check_lib_save_LIBS
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12589 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12590 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12591 resolv=yes
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12594 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12595 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 ac_check_lib_save_LIBS=$LIBS
12599 LIBS="-lresolv $LIBS"
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12603 /* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char __res_send ();
12611 main ()
12613 return __res_send ();
12615 return 0;
12617 _ACEOF
12618 if ac_fn_c_try_link "$LINENO"; then :
12619 ac_cv_lib_resolv___res_send=yes
12620 else
12621 ac_cv_lib_resolv___res_send=no
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12625 LIBS=$ac_check_lib_save_LIBS
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12628 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12629 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12630 resolv=yes
12639 if test "$resolv" = yes ; then
12640 RESOLVLIB=-lresolv
12641 else
12642 RESOLVLIB=
12644 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12645 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12649 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12650 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-lhesiod $RESOLVLIB $LIBS"
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12661 #ifdef __cplusplus
12662 extern "C"
12663 #endif
12664 char hes_getmailhost ();
12666 main ()
12668 return hes_getmailhost ();
12670 return 0;
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 ac_cv_lib_hesiod_hes_getmailhost=yes
12675 else
12676 ac_cv_lib_hesiod_hes_getmailhost=no
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12683 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12684 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12685 hesiod=yes
12686 else
12693 if test x"$hesiod" = xyes; then
12695 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12697 LIBHESIOD=-lhesiod
12702 # Do we need libresolv (due to res_init or Hesiod)?
12703 if test "$resolv" = yes ; then
12705 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12707 LIBRESOLV=-lresolv
12708 else
12709 LIBRESOLV=
12713 # These tell us which Kerberos-related libraries to use.
12714 COM_ERRLIB=
12715 CRYPTOLIB=
12716 KRB5LIB=
12717 DESLIB=
12718 KRB4LIB=
12720 if test "${with_kerberos}" != no; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12722 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12723 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12725 else
12726 ac_check_lib_save_LIBS=$LIBS
12727 LIBS="-lcom_err $LIBS"
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12734 #ifdef __cplusplus
12735 extern "C"
12736 #endif
12737 char com_err ();
12739 main ()
12741 return com_err ();
12743 return 0;
12745 _ACEOF
12746 if ac_fn_c_try_link "$LINENO"; then :
12747 ac_cv_lib_com_err_com_err=yes
12748 else
12749 ac_cv_lib_com_err_com_err=no
12751 rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12756 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12757 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12758 have_com_err=yes
12759 else
12760 have_com_err=no
12763 if test $have_com_err = yes; then
12764 COM_ERRLIB=-lcom_err
12765 LIBS="$COM_ERRLIB $LIBS"
12767 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12771 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12772 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 ac_check_lib_save_LIBS=$LIBS
12776 LIBS="-lcrypto $LIBS"
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12780 /* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12783 #ifdef __cplusplus
12784 extern "C"
12785 #endif
12786 char mit_des_cbc_encrypt ();
12788 main ()
12790 return mit_des_cbc_encrypt ();
12792 return 0;
12794 _ACEOF
12795 if ac_fn_c_try_link "$LINENO"; then :
12796 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12797 else
12798 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12800 rm -f core conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12805 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12806 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12807 have_crypto=yes
12808 else
12809 have_crypto=no
12812 if test $have_crypto = yes; then
12813 CRYPTOLIB=-lcrypto
12814 LIBS="$CRYPTOLIB $LIBS"
12816 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12820 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12821 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-lk5crypto $LIBS"
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12832 #ifdef __cplusplus
12833 extern "C"
12834 #endif
12835 char mit_des_cbc_encrypt ();
12837 main ()
12839 return mit_des_cbc_encrypt ();
12841 return 0;
12843 _ACEOF
12844 if ac_fn_c_try_link "$LINENO"; then :
12845 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12846 else
12847 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12854 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12855 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12856 have_k5crypto=yes
12857 else
12858 have_k5crypto=no
12861 if test $have_k5crypto = yes; then
12862 CRYPTOLIB=-lk5crypto
12863 LIBS="$CRYPTOLIB $LIBS"
12865 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12869 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12870 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 ac_check_lib_save_LIBS=$LIBS
12874 LIBS="-lkrb5 $LIBS"
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char krb5_init_context ();
12886 main ()
12888 return krb5_init_context ();
12890 return 0;
12892 _ACEOF
12893 if ac_fn_c_try_link "$LINENO"; then :
12894 ac_cv_lib_krb5_krb5_init_context=yes
12895 else
12896 ac_cv_lib_krb5_krb5_init_context=no
12898 rm -f core conftest.err conftest.$ac_objext \
12899 conftest$ac_exeext conftest.$ac_ext
12900 LIBS=$ac_check_lib_save_LIBS
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12903 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12904 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12905 have_krb5=yes
12906 else
12907 have_krb5=no
12910 if test $have_krb5=yes; then
12911 KRB5LIB=-lkrb5
12912 LIBS="$KRB5LIB $LIBS"
12914 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12917 if test "${with_kerberos5}" = no; then
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12919 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12920 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 ac_check_lib_save_LIBS=$LIBS
12924 LIBS="-ldes425 $LIBS"
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12928 /* Override any GCC internal prototype to avoid an error.
12929 Use char because int might match the return type of a GCC
12930 builtin and then its argument prototype would still apply. */
12931 #ifdef __cplusplus
12932 extern "C"
12933 #endif
12934 char des_cbc_encrypt ();
12936 main ()
12938 return des_cbc_encrypt ();
12940 return 0;
12942 _ACEOF
12943 if ac_fn_c_try_link "$LINENO"; then :
12944 ac_cv_lib_des425_des_cbc_encrypt=yes
12945 else
12946 ac_cv_lib_des425_des_cbc_encrypt=no
12948 rm -f core conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12953 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12954 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12955 have_des425=yes
12956 else
12957 have_des425=no
12960 if test $have_des425 = yes; then
12961 DESLIB=-ldes425
12962 LIBS="$DESLIB $LIBS"
12964 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12966 else
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12968 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12969 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
12970 $as_echo_n "(cached) " >&6
12971 else
12972 ac_check_lib_save_LIBS=$LIBS
12973 LIBS="-ldes $LIBS"
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975 /* end confdefs.h. */
12977 /* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12980 #ifdef __cplusplus
12981 extern "C"
12982 #endif
12983 char des_cbc_encrypt ();
12985 main ()
12987 return des_cbc_encrypt ();
12989 return 0;
12991 _ACEOF
12992 if ac_fn_c_try_link "$LINENO"; then :
12993 ac_cv_lib_des_des_cbc_encrypt=yes
12994 else
12995 ac_cv_lib_des_des_cbc_encrypt=no
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LIBS=$ac_check_lib_save_LIBS
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13002 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13003 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13004 have_des=yes
13005 else
13006 have_des=no
13009 if test $have_des = yes; then
13010 DESLIB=-ldes
13011 LIBS="$DESLIB $LIBS"
13013 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13018 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13019 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-lkrb4 $LIBS"
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13027 /* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
13030 #ifdef __cplusplus
13031 extern "C"
13032 #endif
13033 char krb_get_cred ();
13035 main ()
13037 return krb_get_cred ();
13039 return 0;
13041 _ACEOF
13042 if ac_fn_c_try_link "$LINENO"; then :
13043 ac_cv_lib_krb4_krb_get_cred=yes
13044 else
13045 ac_cv_lib_krb4_krb_get_cred=no
13047 rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049 LIBS=$ac_check_lib_save_LIBS
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13052 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13053 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13054 have_krb4=yes
13055 else
13056 have_krb4=no
13059 if test $have_krb4 = yes; then
13060 KRB4LIB=-lkrb4
13061 LIBS="$KRB4LIB $LIBS"
13063 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13065 else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13067 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13068 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lkrb $LIBS"
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 char krb_get_cred ();
13084 main ()
13086 return krb_get_cred ();
13088 return 0;
13090 _ACEOF
13091 if ac_fn_c_try_link "$LINENO"; then :
13092 ac_cv_lib_krb_krb_get_cred=yes
13093 else
13094 ac_cv_lib_krb_krb_get_cred=no
13096 rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13101 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13102 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13103 have_krb=yes
13104 else
13105 have_krb=no
13108 if test $have_krb = yes; then
13109 KRB4LIB=-lkrb
13110 LIBS="$KRB4LIB $LIBS"
13112 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13118 if test "${with_kerberos5}" != no; then
13119 for ac_header in krb5.h
13120 do :
13121 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13122 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13123 cat >>confdefs.h <<_ACEOF
13124 #define HAVE_KRB5_H 1
13125 _ACEOF
13126 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13128 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13130 cat >>confdefs.h <<_ACEOF
13131 #define HAVE_KRB5_ERROR_TEXT 1
13132 _ACEOF
13136 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13138 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13140 cat >>confdefs.h <<_ACEOF
13141 #define HAVE_KRB5_ERROR_E_TEXT 1
13142 _ACEOF
13149 done
13151 else
13152 for ac_header in des.h
13153 do :
13154 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13155 if test "x$ac_cv_header_des_h" = x""yes; then :
13156 cat >>confdefs.h <<_ACEOF
13157 #define HAVE_DES_H 1
13158 _ACEOF
13160 else
13161 for ac_header in kerberosIV/des.h
13162 do :
13163 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13164 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13165 cat >>confdefs.h <<_ACEOF
13166 #define HAVE_KERBEROSIV_DES_H 1
13167 _ACEOF
13169 else
13170 for ac_header in kerberos/des.h
13171 do :
13172 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13173 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13174 cat >>confdefs.h <<_ACEOF
13175 #define HAVE_KERBEROS_DES_H 1
13176 _ACEOF
13180 done
13184 done
13188 done
13190 for ac_header in krb.h
13191 do :
13192 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13193 if test "x$ac_cv_header_krb_h" = x""yes; then :
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_KRB_H 1
13196 _ACEOF
13198 else
13199 for ac_header in kerberosIV/krb.h
13200 do :
13201 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13202 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13203 cat >>confdefs.h <<_ACEOF
13204 #define HAVE_KERBEROSIV_KRB_H 1
13205 _ACEOF
13207 else
13208 for ac_header in kerberos/krb.h
13209 do :
13210 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13211 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13212 cat >>confdefs.h <<_ACEOF
13213 #define HAVE_KERBEROS_KRB_H 1
13214 _ACEOF
13218 done
13222 done
13226 done
13229 for ac_header in com_err.h
13230 do :
13231 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13232 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13233 cat >>confdefs.h <<_ACEOF
13234 #define HAVE_COM_ERR_H 1
13235 _ACEOF
13239 done
13249 # Solaris requires -lintl if you want strerror (which calls dgettext)
13250 # to return localized messages.
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13252 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13253 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 ac_check_lib_save_LIBS=$LIBS
13257 LIBS="-lintl $LIBS"
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13261 /* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13264 #ifdef __cplusplus
13265 extern "C"
13266 #endif
13267 char dgettext ();
13269 main ()
13271 return dgettext ();
13273 return 0;
13275 _ACEOF
13276 if ac_fn_c_try_link "$LINENO"; then :
13277 ac_cv_lib_intl_dgettext=yes
13278 else
13279 ac_cv_lib_intl_dgettext=no
13281 rm -f core conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext conftest.$ac_ext
13283 LIBS=$ac_check_lib_save_LIBS
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13286 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13287 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13288 cat >>confdefs.h <<_ACEOF
13289 #define HAVE_LIBINTL 1
13290 _ACEOF
13292 LIBS="-lintl $LIBS"
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13298 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13299 if test "${emacs_cv_localtime_cache+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 if test x$ac_cv_func_tzset = xyes; then
13303 if test "$cross_compiling" = yes; then :
13304 # If we have tzset, assume the worst when cross-compiling.
13305 emacs_cv_localtime_cache=yes
13306 else
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309 #include <time.h>
13310 extern char **environ;
13311 unset_TZ ()
13313 char **from, **to;
13314 for (to = from = environ; (*to = *from); from++)
13315 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13316 to++;
13318 char TZ_GMT0[] = "TZ=GMT0";
13319 char TZ_PST8[] = "TZ=PST8";
13320 main()
13322 time_t now = time ((time_t *) 0);
13323 int hour_GMT0, hour_unset;
13324 if (putenv (TZ_GMT0) != 0)
13325 exit (1);
13326 hour_GMT0 = localtime (&now)->tm_hour;
13327 unset_TZ ();
13328 hour_unset = localtime (&now)->tm_hour;
13329 if (putenv (TZ_PST8) != 0)
13330 exit (1);
13331 if (localtime (&now)->tm_hour == hour_GMT0)
13332 exit (1);
13333 unset_TZ ();
13334 if (localtime (&now)->tm_hour != hour_unset)
13335 exit (1);
13336 exit (0);
13338 _ACEOF
13339 if ac_fn_c_try_run "$LINENO"; then :
13340 emacs_cv_localtime_cache=no
13341 else
13342 emacs_cv_localtime_cache=yes
13344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13345 conftest.$ac_objext conftest.beam conftest.$ac_ext
13348 else
13349 # If we lack tzset, report that localtime does not cache TZ,
13350 # since we can't invalidate the cache if we don't have tzset.
13351 emacs_cv_localtime_cache=no
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13355 $as_echo "$emacs_cv_localtime_cache" >&6; }
13356 if test $emacs_cv_localtime_cache = yes; then
13358 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13362 if test "x$HAVE_TIMEVAL" = xyes; then
13363 for ac_func in gettimeofday
13364 do :
13365 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13366 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13367 cat >>confdefs.h <<_ACEOF
13368 #define HAVE_GETTIMEOFDAY 1
13369 _ACEOF
13372 done
13374 if test $ac_cv_func_gettimeofday = yes; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13376 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13377 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13383 #ifdef TIME_WITH_SYS_TIME
13384 #include <sys/time.h>
13385 #include <time.h>
13386 #else
13387 #ifdef HAVE_SYS_TIME_H
13388 #include <sys/time.h>
13389 #else
13390 #include <time.h>
13391 #endif
13392 #endif
13394 main ()
13396 struct timeval time;
13397 gettimeofday (&time, 0);
13399 return 0;
13401 _ACEOF
13402 if ac_fn_c_try_compile "$LINENO"; then :
13403 emacs_cv_gettimeofday_two_arguments=yes
13404 else
13405 emacs_cv_gettimeofday_two_arguments=no
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13410 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13411 if test $emacs_cv_gettimeofday_two_arguments = no; then
13413 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13419 ok_so_far=yes
13420 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13421 if test "x$ac_cv_func_socket" = x""yes; then :
13423 else
13424 ok_so_far=no
13427 if test $ok_so_far = yes; then
13428 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13429 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13431 else
13432 ok_so_far=no
13437 if test $ok_so_far = yes; then
13438 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13439 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13441 else
13442 ok_so_far=no
13447 if test $ok_so_far = yes; then
13449 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13453 for ac_header in sys/ioctl.h
13454 do :
13455 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13456 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13457 cat >>confdefs.h <<_ACEOF
13458 #define HAVE_SYS_IOCTL_H 1
13459 _ACEOF
13463 done
13466 if test -f /usr/lpp/X11/bin/smt.exp; then
13468 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13473 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13474 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13476 $as_echo "yes" >&6; }
13478 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13485 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13486 if test "x$ac_cv_type_pid_t" = x""yes; then :
13488 else
13490 cat >>confdefs.h <<_ACEOF
13491 #define pid_t int
13492 _ACEOF
13496 for ac_header in vfork.h
13497 do :
13498 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13499 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13500 cat >>confdefs.h <<_ACEOF
13501 #define HAVE_VFORK_H 1
13502 _ACEOF
13506 done
13508 for ac_func in fork vfork
13509 do :
13510 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13511 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13512 eval as_val=\$$as_ac_var
13513 if test "x$as_val" = x""yes; then :
13514 cat >>confdefs.h <<_ACEOF
13515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13516 _ACEOF
13519 done
13521 if test "x$ac_cv_func_fork" = xyes; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13523 $as_echo_n "checking for working fork... " >&6; }
13524 if test "${ac_cv_func_fork_works+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 if test "$cross_compiling" = yes; then :
13528 ac_cv_func_fork_works=cross
13529 else
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 $ac_includes_default
13534 main ()
13537 /* By Ruediger Kuhlmann. */
13538 return fork () < 0;
13541 return 0;
13543 _ACEOF
13544 if ac_fn_c_try_run "$LINENO"; then :
13545 ac_cv_func_fork_works=yes
13546 else
13547 ac_cv_func_fork_works=no
13549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13550 conftest.$ac_objext conftest.beam conftest.$ac_ext
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13555 $as_echo "$ac_cv_func_fork_works" >&6; }
13557 else
13558 ac_cv_func_fork_works=$ac_cv_func_fork
13560 if test "x$ac_cv_func_fork_works" = xcross; then
13561 case $host in
13562 *-*-amigaos* | *-*-msdosdjgpp*)
13563 # Override, as these systems have only a dummy fork() stub
13564 ac_cv_func_fork_works=no
13567 ac_cv_func_fork_works=yes
13569 esac
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13571 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13573 ac_cv_func_vfork_works=$ac_cv_func_vfork
13574 if test "x$ac_cv_func_vfork" = xyes; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13576 $as_echo_n "checking for working vfork... " >&6; }
13577 if test "${ac_cv_func_vfork_works+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 if test "$cross_compiling" = yes; then :
13581 ac_cv_func_vfork_works=cross
13582 else
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 /* Thanks to Paul Eggert for this test. */
13586 $ac_includes_default
13587 #include <sys/wait.h>
13588 #ifdef HAVE_VFORK_H
13589 # include <vfork.h>
13590 #endif
13591 /* On some sparc systems, changes by the child to local and incoming
13592 argument registers are propagated back to the parent. The compiler
13593 is told about this with #include <vfork.h>, but some compilers
13594 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13595 static variable whose address is put into a register that is
13596 clobbered by the vfork. */
13597 static void
13598 #ifdef __cplusplus
13599 sparc_address_test (int arg)
13600 # else
13601 sparc_address_test (arg) int arg;
13602 #endif
13604 static pid_t child;
13605 if (!child) {
13606 child = vfork ();
13607 if (child < 0) {
13608 perror ("vfork");
13609 _exit(2);
13611 if (!child) {
13612 arg = getpid();
13613 write(-1, "", 0);
13614 _exit (arg);
13620 main ()
13622 pid_t parent = getpid ();
13623 pid_t child;
13625 sparc_address_test (0);
13627 child = vfork ();
13629 if (child == 0) {
13630 /* Here is another test for sparc vfork register problems. This
13631 test uses lots of local variables, at least as many local
13632 variables as main has allocated so far including compiler
13633 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13634 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13635 reuse the register of parent for one of the local variables,
13636 since it will think that parent can't possibly be used any more
13637 in this routine. Assigning to the local variable will thus
13638 munge parent in the parent process. */
13639 pid_t
13640 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13641 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13642 /* Convince the compiler that p..p7 are live; otherwise, it might
13643 use the same hardware register for all 8 local variables. */
13644 if (p != p1 || p != p2 || p != p3 || p != p4
13645 || p != p5 || p != p6 || p != p7)
13646 _exit(1);
13648 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13649 from child file descriptors. If the child closes a descriptor
13650 before it execs or exits, this munges the parent's descriptor
13651 as well. Test for this by closing stdout in the child. */
13652 _exit(close(fileno(stdout)) != 0);
13653 } else {
13654 int status;
13655 struct stat st;
13657 while (wait(&status) != child)
13659 return (
13660 /* Was there some problem with vforking? */
13661 child < 0
13663 /* Did the child fail? (This shouldn't happen.) */
13664 || status
13666 /* Did the vfork/compiler bug occur? */
13667 || parent != getpid()
13669 /* Did the file descriptor bug occur? */
13670 || fstat(fileno(stdout), &st) != 0
13674 _ACEOF
13675 if ac_fn_c_try_run "$LINENO"; then :
13676 ac_cv_func_vfork_works=yes
13677 else
13678 ac_cv_func_vfork_works=no
13680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13681 conftest.$ac_objext conftest.beam conftest.$ac_ext
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13686 $as_echo "$ac_cv_func_vfork_works" >&6; }
13689 if test "x$ac_cv_func_fork_works" = xcross; then
13690 ac_cv_func_vfork_works=$ac_cv_func_vfork
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13692 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13695 if test "x$ac_cv_func_vfork_works" = xyes; then
13697 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13699 else
13701 $as_echo "#define vfork fork" >>confdefs.h
13704 if test "x$ac_cv_func_fork_works" = xyes; then
13706 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13712 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13713 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13718 #include <langinfo.h>
13720 main ()
13722 char* cs = nl_langinfo(CODESET);
13724 return 0;
13726 _ACEOF
13727 if ac_fn_c_try_link "$LINENO"; then :
13728 emacs_cv_langinfo_codeset=yes
13729 else
13730 emacs_cv_langinfo_codeset=no
13732 rm -f core conftest.err conftest.$ac_objext \
13733 conftest$ac_exeext conftest.$ac_ext
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13737 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13738 if test $emacs_cv_langinfo_codeset = yes; then
13740 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13744 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13745 if test "x$ac_cv_type_size_t" = x""yes; then :
13747 cat >>confdefs.h <<_ACEOF
13748 #define HAVE_SIZE_T 1
13749 _ACEOF
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13756 $as_echo_n "checking for mbstate_t... " >&6; }
13757 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 $ac_includes_default
13763 # include <wchar.h>
13765 main ()
13767 mbstate_t x; return sizeof x;
13769 return 0;
13771 _ACEOF
13772 if ac_fn_c_try_compile "$LINENO"; then :
13773 ac_cv_type_mbstate_t=yes
13774 else
13775 ac_cv_type_mbstate_t=no
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13780 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13781 if test $ac_cv_type_mbstate_t = yes; then
13783 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13785 else
13787 $as_echo "#define mbstate_t int" >>confdefs.h
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13792 $as_echo_n "checking for C restrict keyword... " >&6; }
13793 if test "${emacs_cv_c_restrict+set}" = set; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13798 void fred (int *restrict x);
13800 main ()
13804 return 0;
13806 _ACEOF
13807 if ac_fn_c_try_compile "$LINENO"; then :
13808 emacs_cv_c_restrict=yes
13809 else
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13812 void fred (int *__restrict x);
13814 main ()
13818 return 0;
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822 emacs_cv_c_restrict=__restrict
13823 else
13824 emacs_cv_c_restrict=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13831 $as_echo "$emacs_cv_c_restrict" >&6; }
13832 case "$emacs_cv_c_restrict" in
13833 yes) emacs_restrict=restrict;;
13834 no) emacs_restrict="";;
13835 *) emacs_restrict="$emacs_cv_c_restrict";;
13836 esac
13837 if test "$emacs_restrict" != __restrict; then
13839 cat >>confdefs.h <<_ACEOF
13840 #define __restrict $emacs_restrict
13841 _ACEOF
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13846 $as_echo_n "checking for C restricted array declarations... " >&6; }
13847 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852 void fred (int x[__restrict]);
13854 main ()
13858 return 0;
13860 _ACEOF
13861 if ac_fn_c_try_compile "$LINENO"; then :
13862 emacs_cv_c_restrict_arr=yes
13863 else
13864 emacs_cv_c_restrict_arr=no
13866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13869 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13870 if test "$emacs_cv_c_restrict_arr" = yes; then
13872 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13878 # Set up the CFLAGS for real compilation, so we can substitute it.
13879 CFLAGS="$REAL_CFLAGS"
13880 CPPFLAGS="$REAL_CPPFLAGS"
13882 ## Hack to detect a buggy GCC version.
13883 if test "x$GCC" = xyes \
13884 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13885 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13886 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13887 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13890 #### Find out which version of Emacs this is.
13891 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13892 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13893 if test x"${version}" = x; then
13894 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13896 if test x"${version}" != x"$PACKAGE_VERSION"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13898 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13901 ### Specify what sort of things we'll be editing into Makefile and config.h.
13902 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13905 ## Unused?
13926 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13927 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13928 ## end of LIBX_BASE, but nothing ever set it.
13933 ## Used in lwlib/Makefile.in.
13946 cat >>confdefs.h <<_ACEOF
13947 #define EMACS_CONFIGURATION "${canonical}"
13948 _ACEOF
13951 cat >>confdefs.h <<_ACEOF
13952 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13953 _ACEOF
13956 cat >>confdefs.h <<_ACEOF
13957 #define config_machfile "${machfile}"
13958 _ACEOF
13961 cat >>confdefs.h <<_ACEOF
13962 #define config_opsysfile "${opsysfile}"
13963 _ACEOF
13966 XMENU_OBJ=
13967 XOBJ=
13968 FONT_OBJ=
13969 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13971 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
13973 XMENU_OBJ=xmenu.o
13974 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13975 FONT_OBJ=xfont.o
13976 if test "$HAVE_XFT" = "yes"; then
13977 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
13978 elif test "$HAVE_FREETYPE" = "yes"; then
13979 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
13987 WIDGET_OBJ=
13988 MOTIF_LIBW=
13989 if test "${USE_X_TOOLKIT}" != "none" ; then
13990 WIDGET_OBJ=widget.o
13992 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
13994 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13996 $as_echo "#define USE_LUCID 1" >>confdefs.h
13998 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14000 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14002 MOTIF_LIBW=-lXm
14003 case "$opsys" in
14004 gnu-linux)
14005 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14006 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14009 unixware)
14010 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14011 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14012 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14015 aix4-2)
14016 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14017 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14019 esac
14020 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14025 TOOLKIT_LIBW=
14026 case "$USE_X_TOOLKIT" in
14027 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14028 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14029 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14030 esac
14033 if test "$USE_X_TOOLKIT" = "none"; then
14034 LIBXT_OTHER="\$(LIBXSM)"
14035 OLDXMENU_TARGET="really-oldXMenu"
14036 else
14037 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14038 OLDXMENU_TARGET="really-lwlib"
14042 ## The X Menu stuff is present in the X10 distribution, but missing
14043 ## from X11. If we have X10, just use the installed library;
14044 ## otherwise, use our own copy.
14045 if test "${HAVE_X11}" = "yes" ; then
14047 $as_echo "#define HAVE_X11 1" >>confdefs.h
14050 if test "$USE_X_TOOLKIT" = "none"; then
14051 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14052 else
14053 OLDXMENU="\${lwlibdir}liblw.a"
14055 LIBXMENU="\$(OLDXMENU)"
14056 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14057 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14058 else
14059 ## For a syntactically valid Makefile; not actually used for anything.
14060 ## See comments in src/Makefile.in.
14061 OLDXMENU=nothing
14062 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14063 if test "${HAVE_X_WINDOWS}" = "yes"; then
14064 LIBXMENU="-lXMenu"
14065 else
14066 LIBXMENU=
14068 LIBX_OTHER=
14069 OLDXMENU_DEPS=
14072 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14073 OLDXMENU_TARGET=
14074 OLDXMENU=nothing
14075 LIBXMENU=
14076 OLDXMENU_DEPS=
14085 if test "${HAVE_MENUS}" = "yes" ; then
14087 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14091 if test "${GNU_MALLOC}" = "yes" ; then
14093 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14097 RALLOC_OBJ=
14098 if test "${REL_ALLOC}" = "yes" ; then
14100 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14103 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14107 if test "$opsys" = "cygwin"; then
14108 CYGWIN_OBJ="sheap.o"
14109 ## Cygwin differs because of its unexec().
14110 PRE_ALLOC_OBJ=
14111 POST_ALLOC_OBJ=lastfile.o
14112 else
14113 CYGWIN_OBJ=
14114 PRE_ALLOC_OBJ=lastfile.o
14115 POST_ALLOC_OBJ=
14122 case "$opsys" in
14123 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14125 darwin)
14126 ## The -headerpad option tells ld (see man page) to leave room at the
14127 ## end of the header for adding load commands. Needed for dumping.
14128 ## 0x690 is the total size of 30 segment load commands (at 56
14129 ## each); under Cocoa 31 commands are required.
14130 if test "$HAVE_NS" = "yes"; then
14131 libs_nsgui="-framework AppKit"
14132 headerpad_extra=6C8
14133 else
14134 libs_nsgui=
14135 headerpad_extra=690
14137 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14139 ## This is here because src/Makefile.in did some extra fiddling around
14140 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14141 ## #ifndef LD_SWITCH_SYSTEM
14142 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14143 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14144 ## not using gcc, darwin system not on an alpha (ie darwin, since
14145 ## darwin + alpha does not occur).
14146 ## Because this was done in src/Makefile.in, the resulting part of
14147 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14148 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14149 ## rather than LD_SWITCH_SYSTEM.
14150 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14151 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14154 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14155 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14156 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14157 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14158 ## had different values in configure (in ac_link) and src/Makefile.in.
14159 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14160 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14162 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14163 esac
14165 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14166 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14172 LINKER=
14173 ORDINARY_LINK=
14174 case "$opsys" in
14175 ## gnu: GNU needs its own crt0.
14176 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14178 cygwin) LINKER="\$(CC)" ;;
14180 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14181 ## library search parth, i.e. it won't search /usr/lib for libc and
14182 ## friends. Using -nostartfiles instead avoids this problem, and
14183 ## will also work on earlier NetBSD releases.
14184 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
14186 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14187 ## MkLinux/LinuxPPC needs this.
14188 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14189 gnu-*)
14190 case "$machine" in
14191 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
14192 esac
14194 esac
14197 if test "x$ORDINARY_LINK" = "xyes"; then
14199 LINKER="\$(CC)"
14201 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14204 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14205 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14206 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14208 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14209 ## places that are difficult to figure out at make time. Fortunately,
14210 ## these same versions allow you to pass arbitrary flags on to the
14211 ## linker, so there is no reason not to use it as a linker.
14213 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14214 ## searching for libraries in its internal directories, so we have to
14215 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14216 LINKER="\$(CC) -nostdlib"
14219 test "x$LINKER" = "x" && LINKER=ld
14220 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14221 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
14226 ## FIXME? The logic here is not precisely the same as that above.
14227 ## There is no check here for a pre-defined LINKER.
14228 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14229 LIB_GCC=
14230 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14232 case "$opsys" in
14233 ## cygwin: don't link against static libgcc.
14234 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
14236 gnu-*)
14237 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14238 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14239 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14240 if test "$machine" = "arm"; then
14241 LIB_GCC="-lgcc_s"
14242 else
14243 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14244 ## immediately undefine it again and redefine it to empty.
14245 ## Was the C_SWITCH_X_SITE part really necessary?
14246 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14247 LIB_GCC=
14251 ## Ask GCC where to find libgcc.a.
14252 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14253 esac
14257 TOOLTIP_SUPPORT=
14258 WINDOW_SUPPORT=
14259 ## If we're using X11/GNUstep, define some consequences.
14260 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14262 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14265 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14267 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14268 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14270 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14271 test "$HAVE_X_WINDOWS" = "yes" && \
14272 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14282 #### Report on what we decided to do.
14283 #### Report GTK as a toolkit, even if it doesn't use Xt.
14284 #### It makes printing result more understandable as using GTK sets
14285 #### toolkit_scroll_bars to yes by default.
14286 if test "${HAVE_GTK}" = "yes"; then
14287 USE_X_TOOLKIT=GTK
14290 echo "
14291 Configured for \`${canonical}'.
14293 Where should the build process find the source code? ${srcdir}
14294 What operating system and machine description files should Emacs use?
14295 \`${opsysfile}' and \`${machfile}'
14296 What compiler should emacs be built with? ${CC} ${CFLAGS}
14297 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14298 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14299 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14300 What window system should Emacs use? ${window_system}
14301 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14303 if test -n "${x_includes}"; then
14304 echo " Where do we find X Windows header files? ${x_includes}"
14305 else
14306 echo " Where do we find X Windows header files? Standard dirs"
14308 if test -n "${x_libraries}"; then
14309 echo " Where do we find X Windows libraries? ${x_libraries}"
14310 else
14311 echo " Where do we find X Windows libraries? Standard dirs"
14314 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14315 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14316 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14317 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14318 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14319 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14320 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14321 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14322 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14323 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14324 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14326 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14327 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14328 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14329 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14331 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14332 echo
14334 if test $USE_XASSERTS = yes; then
14335 echo " Compiling with asserts turned on."
14336 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14339 echo
14341 if test "$HAVE_NS" = "yes"; then
14342 echo
14343 echo "You must run \"make install\" in order to test the built application.
14344 The installed application will go to nextstep/Emacs.app and can be
14345 run or moved from there."
14346 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14347 echo "The application will be fully self-contained."
14348 else
14349 echo "The lisp resources for the application will be installed under ${prefix}.
14350 You may need to run \"make install\" with sudo. The application will fail
14351 to run if these resources are not installed."
14353 echo
14356 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14357 echo "D-Bus integration has been tested for GNU/Linux only."
14358 echo
14362 # Remove any trailing slashes in these variables.
14363 test "${prefix}" != NONE &&
14364 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14365 test "${exec_prefix}" != NONE &&
14366 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14368 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"
14370 ac_config_commands="$ac_config_commands default"
14372 cat >confcache <<\_ACEOF
14373 # This file is a shell script that caches the results of configure
14374 # tests run on this system so they can be shared between configure
14375 # scripts and configure runs, see configure's option --config-cache.
14376 # It is not useful on other systems. If it contains results you don't
14377 # want to keep, you may remove or edit it.
14379 # config.status only pays attention to the cache file if you give it
14380 # the --recheck option to rerun configure.
14382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14384 # following values.
14386 _ACEOF
14388 # The following way of writing the cache mishandles newlines in values,
14389 # but we know of no workaround that is simple, portable, and efficient.
14390 # So, we kill variables containing newlines.
14391 # Ultrix sh set writes to stderr and can't be redirected directly,
14392 # and sets the high bit in the cache file unless we assign to the vars.
14394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14395 eval ac_val=\$$ac_var
14396 case $ac_val in #(
14397 *${as_nl}*)
14398 case $ac_var in #(
14399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14400 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14401 esac
14402 case $ac_var in #(
14403 _ | IFS | as_nl) ;; #(
14404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14405 *) { eval $ac_var=; unset $ac_var;} ;;
14406 esac ;;
14407 esac
14408 done
14410 (set) 2>&1 |
14411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14412 *${as_nl}ac_space=\ *)
14413 # `set' does not quote correctly, so add quotes: double-quote
14414 # substitution turns \\\\ into \\, and sed turns \\ into \.
14415 sed -n \
14416 "s/'/'\\\\''/g;
14417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14418 ;; #(
14420 # `set' quotes correctly as required by POSIX, so do not add quotes.
14421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14423 esac |
14424 sort
14426 sed '
14427 /^ac_cv_env_/b end
14428 t clear
14429 :clear
14430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14431 t end
14432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14433 :end' >>confcache
14434 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14435 if test -w "$cache_file"; then
14436 test "x$cache_file" != "x/dev/null" &&
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14438 $as_echo "$as_me: updating cache $cache_file" >&6;}
14439 cat confcache >$cache_file
14440 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14442 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14445 rm -f confcache
14447 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14448 # Let make expand exec_prefix.
14449 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14451 DEFS=-DHAVE_CONFIG_H
14453 ac_libobjs=
14454 ac_ltlibobjs=
14455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14456 # 1. Remove the extension, and $U if already installed.
14457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14460 # will be set to the directory where LIBOBJS objects are built.
14461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14463 done
14464 LIBOBJS=$ac_libobjs
14466 LTLIBOBJS=$ac_ltlibobjs
14470 : ${CONFIG_STATUS=./config.status}
14471 ac_write_fail=0
14472 ac_clean_files_save=$ac_clean_files
14473 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14475 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14476 as_write_fail=0
14477 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14478 #! $SHELL
14479 # Generated by $as_me.
14480 # Run this file to recreate the current configuration.
14481 # Compiler output produced by configure, useful for debugging
14482 # configure, is in config.log if it exists.
14484 debug=false
14485 ac_cs_recheck=false
14486 ac_cs_silent=false
14488 SHELL=\${CONFIG_SHELL-$SHELL}
14489 export SHELL
14490 _ASEOF
14491 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14492 ## -------------------- ##
14493 ## M4sh Initialization. ##
14494 ## -------------------- ##
14496 # Be more Bourne compatible
14497 DUALCASE=1; export DUALCASE # for MKS sh
14498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14499 emulate sh
14500 NULLCMD=:
14501 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14502 # is contrary to our usage. Disable this feature.
14503 alias -g '${1+"$@"}'='"$@"'
14504 setopt NO_GLOB_SUBST
14505 else
14506 case `(set -o) 2>/dev/null` in #(
14507 *posix*) :
14508 set -o posix ;; #(
14509 *) :
14511 esac
14515 as_nl='
14517 export as_nl
14518 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14519 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14522 # Prefer a ksh shell builtin over an external printf program on Solaris,
14523 # but without wasting forks for bash or zsh.
14524 if test -z "$BASH_VERSION$ZSH_VERSION" \
14525 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14526 as_echo='print -r --'
14527 as_echo_n='print -rn --'
14528 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14529 as_echo='printf %s\n'
14530 as_echo_n='printf %s'
14531 else
14532 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14533 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14534 as_echo_n='/usr/ucb/echo -n'
14535 else
14536 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14537 as_echo_n_body='eval
14538 arg=$1;
14539 case $arg in #(
14540 *"$as_nl"*)
14541 expr "X$arg" : "X\\(.*\\)$as_nl";
14542 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14543 esac;
14544 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14546 export as_echo_n_body
14547 as_echo_n='sh -c $as_echo_n_body as_echo'
14549 export as_echo_body
14550 as_echo='sh -c $as_echo_body as_echo'
14553 # The user is always right.
14554 if test "${PATH_SEPARATOR+set}" != set; then
14555 PATH_SEPARATOR=:
14556 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14557 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14558 PATH_SEPARATOR=';'
14563 # IFS
14564 # We need space, tab and new line, in precisely that order. Quoting is
14565 # there to prevent editors from complaining about space-tab.
14566 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14567 # splitting by setting IFS to empty value.)
14568 IFS=" "" $as_nl"
14570 # Find who we are. Look in the path if we contain no directory separator.
14571 case $0 in #((
14572 *[\\/]* ) as_myself=$0 ;;
14573 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574 for as_dir in $PATH
14576 IFS=$as_save_IFS
14577 test -z "$as_dir" && as_dir=.
14578 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14579 done
14580 IFS=$as_save_IFS
14583 esac
14584 # We did not find ourselves, most probably we were run as `sh COMMAND'
14585 # in which case we are not to be found in the path.
14586 if test "x$as_myself" = x; then
14587 as_myself=$0
14589 if test ! -f "$as_myself"; then
14590 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14591 exit 1
14594 # Unset variables that we do not need and which cause bugs (e.g. in
14595 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14596 # suppresses any "Segmentation fault" message there. '((' could
14597 # trigger a bug in pdksh 5.2.14.
14598 for as_var in BASH_ENV ENV MAIL MAILPATH
14599 do eval test x\${$as_var+set} = xset \
14600 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14601 done
14602 PS1='$ '
14603 PS2='> '
14604 PS4='+ '
14606 # NLS nuisances.
14607 LC_ALL=C
14608 export LC_ALL
14609 LANGUAGE=C
14610 export LANGUAGE
14612 # CDPATH.
14613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14616 # as_fn_error ERROR [LINENO LOG_FD]
14617 # ---------------------------------
14618 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14619 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14620 # script with status $?, using 1 if that was 0.
14621 as_fn_error ()
14623 as_status=$?; test $as_status -eq 0 && as_status=1
14624 if test "$3"; then
14625 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14626 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14628 $as_echo "$as_me: error: $1" >&2
14629 as_fn_exit $as_status
14630 } # as_fn_error
14633 # as_fn_set_status STATUS
14634 # -----------------------
14635 # Set $? to STATUS, without forking.
14636 as_fn_set_status ()
14638 return $1
14639 } # as_fn_set_status
14641 # as_fn_exit STATUS
14642 # -----------------
14643 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14644 as_fn_exit ()
14646 set +e
14647 as_fn_set_status $1
14648 exit $1
14649 } # as_fn_exit
14651 # as_fn_unset VAR
14652 # ---------------
14653 # Portably unset VAR.
14654 as_fn_unset ()
14656 { eval $1=; unset $1;}
14658 as_unset=as_fn_unset
14659 # as_fn_append VAR VALUE
14660 # ----------------------
14661 # Append the text in VALUE to the end of the definition contained in VAR. Take
14662 # advantage of any shell optimizations that allow amortized linear growth over
14663 # repeated appends, instead of the typical quadratic growth present in naive
14664 # implementations.
14665 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14666 eval 'as_fn_append ()
14668 eval $1+=\$2
14670 else
14671 as_fn_append ()
14673 eval $1=\$$1\$2
14675 fi # as_fn_append
14677 # as_fn_arith ARG...
14678 # ------------------
14679 # Perform arithmetic evaluation on the ARGs, and store the result in the
14680 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14681 # must be portable across $(()) and expr.
14682 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14683 eval 'as_fn_arith ()
14685 as_val=$(( $* ))
14687 else
14688 as_fn_arith ()
14690 as_val=`expr "$@" || test $? -eq 1`
14692 fi # as_fn_arith
14695 if expr a : '\(a\)' >/dev/null 2>&1 &&
14696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14697 as_expr=expr
14698 else
14699 as_expr=false
14702 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14703 as_basename=basename
14704 else
14705 as_basename=false
14708 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14709 as_dirname=dirname
14710 else
14711 as_dirname=false
14714 as_me=`$as_basename -- "$0" ||
14715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14716 X"$0" : 'X\(//\)$' \| \
14717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14718 $as_echo X/"$0" |
14719 sed '/^.*\/\([^/][^/]*\)\/*$/{
14720 s//\1/
14723 /^X\/\(\/\/\)$/{
14724 s//\1/
14727 /^X\/\(\/\).*/{
14728 s//\1/
14731 s/.*/./; q'`
14733 # Avoid depending upon Character Ranges.
14734 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14735 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14736 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14737 as_cr_digits='0123456789'
14738 as_cr_alnum=$as_cr_Letters$as_cr_digits
14740 ECHO_C= ECHO_N= ECHO_T=
14741 case `echo -n x` in #(((((
14742 -n*)
14743 case `echo 'xy\c'` in
14744 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14745 xy) ECHO_C='\c';;
14746 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14747 ECHO_T=' ';;
14748 esac;;
14750 ECHO_N='-n';;
14751 esac
14753 rm -f conf$$ conf$$.exe conf$$.file
14754 if test -d conf$$.dir; then
14755 rm -f conf$$.dir/conf$$.file
14756 else
14757 rm -f conf$$.dir
14758 mkdir conf$$.dir 2>/dev/null
14760 if (echo >conf$$.file) 2>/dev/null; then
14761 if ln -s conf$$.file conf$$ 2>/dev/null; then
14762 as_ln_s='ln -s'
14763 # ... but there are two gotchas:
14764 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14765 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14766 # In both cases, we have to default to `cp -p'.
14767 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14768 as_ln_s='cp -p'
14769 elif ln conf$$.file conf$$ 2>/dev/null; then
14770 as_ln_s=ln
14771 else
14772 as_ln_s='cp -p'
14774 else
14775 as_ln_s='cp -p'
14777 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14778 rmdir conf$$.dir 2>/dev/null
14781 # as_fn_mkdir_p
14782 # -------------
14783 # Create "$as_dir" as a directory, including parents if necessary.
14784 as_fn_mkdir_p ()
14787 case $as_dir in #(
14788 -*) as_dir=./$as_dir;;
14789 esac
14790 test -d "$as_dir" || eval $as_mkdir_p || {
14791 as_dirs=
14792 while :; do
14793 case $as_dir in #(
14794 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14795 *) as_qdir=$as_dir;;
14796 esac
14797 as_dirs="'$as_qdir' $as_dirs"
14798 as_dir=`$as_dirname -- "$as_dir" ||
14799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14800 X"$as_dir" : 'X\(//\)[^/]' \| \
14801 X"$as_dir" : 'X\(//\)$' \| \
14802 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14803 $as_echo X"$as_dir" |
14804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14805 s//\1/
14808 /^X\(\/\/\)[^/].*/{
14809 s//\1/
14812 /^X\(\/\/\)$/{
14813 s//\1/
14816 /^X\(\/\).*/{
14817 s//\1/
14820 s/.*/./; q'`
14821 test -d "$as_dir" && break
14822 done
14823 test -z "$as_dirs" || eval "mkdir $as_dirs"
14824 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14827 } # as_fn_mkdir_p
14828 if mkdir -p . 2>/dev/null; then
14829 as_mkdir_p='mkdir -p "$as_dir"'
14830 else
14831 test -d ./-p && rmdir ./-p
14832 as_mkdir_p=false
14835 if test -x / >/dev/null 2>&1; then
14836 as_test_x='test -x'
14837 else
14838 if ls -dL / >/dev/null 2>&1; then
14839 as_ls_L_option=L
14840 else
14841 as_ls_L_option=
14843 as_test_x='
14844 eval sh -c '\''
14845 if test -d "$1"; then
14846 test -d "$1/.";
14847 else
14848 case $1 in #(
14849 -*)set "./$1";;
14850 esac;
14851 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14852 ???[sx]*):;;*)false;;esac;fi
14853 '\'' sh
14856 as_executable_p=$as_test_x
14858 # Sed expression to map a string onto a valid CPP name.
14859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14861 # Sed expression to map a string onto a valid variable name.
14862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14865 exec 6>&1
14866 ## ----------------------------------- ##
14867 ## Main body of $CONFIG_STATUS script. ##
14868 ## ----------------------------------- ##
14869 _ASEOF
14870 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14873 # Save the log message, to keep $0 and so on meaningful, and to
14874 # report actual input values of CONFIG_FILES etc. instead of their
14875 # values after options handling.
14876 ac_log="
14877 This file was extended by emacs $as_me 24.0.50, which was
14878 generated by GNU Autoconf 2.65. Invocation command line was
14880 CONFIG_FILES = $CONFIG_FILES
14881 CONFIG_HEADERS = $CONFIG_HEADERS
14882 CONFIG_LINKS = $CONFIG_LINKS
14883 CONFIG_COMMANDS = $CONFIG_COMMANDS
14884 $ $0 $@
14886 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14889 _ACEOF
14891 case $ac_config_files in *"
14892 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14893 esac
14895 case $ac_config_headers in *"
14896 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14897 esac
14900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14901 # Files that config.status was made for.
14902 config_files="$ac_config_files"
14903 config_headers="$ac_config_headers"
14904 config_commands="$ac_config_commands"
14906 _ACEOF
14908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14909 ac_cs_usage="\
14910 \`$as_me' instantiates files and other configuration actions
14911 from templates according to the current configuration. Unless the files
14912 and actions are specified as TAGs, all are instantiated by default.
14914 Usage: $0 [OPTION]... [TAG]...
14916 -h, --help print this help, then exit
14917 -V, --version print version number and configuration settings, then exit
14918 --config print configuration, then exit
14919 -q, --quiet, --silent
14920 do not print progress messages
14921 -d, --debug don't remove temporary files
14922 --recheck update $as_me by reconfiguring in the same conditions
14923 --file=FILE[:TEMPLATE]
14924 instantiate the configuration file FILE
14925 --header=FILE[:TEMPLATE]
14926 instantiate the configuration header FILE
14928 Configuration files:
14929 $config_files
14931 Configuration headers:
14932 $config_headers
14934 Configuration commands:
14935 $config_commands
14937 Report bugs to the package provider."
14939 _ACEOF
14940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14941 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14942 ac_cs_version="\\
14943 emacs config.status 24.0.50
14944 configured by $0, generated by GNU Autoconf 2.65,
14945 with options \\"\$ac_cs_config\\"
14947 Copyright (C) 2009 Free Software Foundation, Inc.
14948 This config.status script is free software; the Free Software Foundation
14949 gives unlimited permission to copy, distribute and modify it."
14951 ac_pwd='$ac_pwd'
14952 srcdir='$srcdir'
14953 INSTALL='$INSTALL'
14954 test -n "\$AWK" || AWK=awk
14955 _ACEOF
14957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14958 # The default lists apply if the user does not specify any file.
14959 ac_need_defaults=:
14960 while test $# != 0
14962 case $1 in
14963 --*=*)
14964 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14965 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14966 ac_shift=:
14969 ac_option=$1
14970 ac_optarg=$2
14971 ac_shift=shift
14973 esac
14975 case $ac_option in
14976 # Handling of the options.
14977 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14978 ac_cs_recheck=: ;;
14979 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14980 $as_echo "$ac_cs_version"; exit ;;
14981 --config | --confi | --conf | --con | --co | --c )
14982 $as_echo "$ac_cs_config"; exit ;;
14983 --debug | --debu | --deb | --de | --d | -d )
14984 debug=: ;;
14985 --file | --fil | --fi | --f )
14986 $ac_shift
14987 case $ac_optarg in
14988 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14989 esac
14990 as_fn_append CONFIG_FILES " '$ac_optarg'"
14991 ac_need_defaults=false;;
14992 --header | --heade | --head | --hea )
14993 $ac_shift
14994 case $ac_optarg in
14995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14996 esac
14997 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14998 ac_need_defaults=false;;
14999 --he | --h)
15000 # Conflict between --help and --header
15001 as_fn_error "ambiguous option: \`$1'
15002 Try \`$0 --help' for more information.";;
15003 --help | --hel | -h )
15004 $as_echo "$ac_cs_usage"; exit ;;
15005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15007 ac_cs_silent=: ;;
15009 # This is an error.
15010 -*) as_fn_error "unrecognized option: \`$1'
15011 Try \`$0 --help' for more information." ;;
15013 *) as_fn_append ac_config_targets " $1"
15014 ac_need_defaults=false ;;
15016 esac
15017 shift
15018 done
15020 ac_configure_extra_args=
15022 if $ac_cs_silent; then
15023 exec 6>/dev/null
15024 ac_configure_extra_args="$ac_configure_extra_args --silent"
15027 _ACEOF
15028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15029 if \$ac_cs_recheck; then
15030 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15031 shift
15032 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15033 CONFIG_SHELL='$SHELL'
15034 export CONFIG_SHELL
15035 exec "\$@"
15038 _ACEOF
15039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15040 exec 5>>config.log
15042 echo
15043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15044 ## Running $as_me. ##
15045 _ASBOX
15046 $as_echo "$ac_log"
15047 } >&5
15049 _ACEOF
15050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15052 # INIT-COMMANDS
15054 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15056 _ACEOF
15058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15060 # Handling of arguments.
15061 for ac_config_target in $ac_config_targets
15063 case $ac_config_target in
15064 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15065 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15066 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15067 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15068 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15069 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15070 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15071 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15072 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15073 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15074 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15075 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15076 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15078 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15079 esac
15080 done
15083 # If the user did not use the arguments to specify the items to instantiate,
15084 # then the envvar interface is used. Set only those that are not.
15085 # We use the long form for the default assignment because of an extremely
15086 # bizarre bug on SunOS 4.1.3.
15087 if $ac_need_defaults; then
15088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15093 # Have a temporary directory for convenience. Make it in the build tree
15094 # simply because there is no reason against having it here, and in addition,
15095 # creating and moving files from /tmp can sometimes cause problems.
15096 # Hook for its removal unless debugging.
15097 # Note that there is a small window in which the directory will not be cleaned:
15098 # after its creation but before its name has been assigned to `$tmp'.
15099 $debug ||
15101 tmp=
15102 trap 'exit_status=$?
15103 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15105 trap 'as_fn_exit 1' 1 2 13 15
15107 # Create a (secure) tmp directory for tmp files.
15110 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15111 test -n "$tmp" && test -d "$tmp"
15112 } ||
15114 tmp=./conf$$-$RANDOM
15115 (umask 077 && mkdir "$tmp")
15116 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15118 # Set up the scripts for CONFIG_FILES section.
15119 # No need to generate them if there are no CONFIG_FILES.
15120 # This happens for instance with `./config.status config.h'.
15121 if test -n "$CONFIG_FILES"; then
15123 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15124 ac_cs_awk_getline=:
15125 ac_cs_awk_pipe_init=
15126 ac_cs_awk_read_file='
15127 while ((getline aline < (F[key])) > 0)
15128 print(aline)
15129 close(F[key])'
15130 ac_cs_awk_pipe_fini=
15131 else
15132 ac_cs_awk_getline=false
15133 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15134 ac_cs_awk_read_file='
15135 print "|#_!!_#|"
15136 print "cat " F[key] " &&"
15137 '$ac_cs_awk_pipe_init
15138 # The final `:' finishes the AND list.
15139 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15141 ac_cr=`echo X | tr X '\015'`
15142 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15143 # But we know of no other shell where ac_cr would be empty at this
15144 # point, so we can use a bashism as a fallback.
15145 if test "x$ac_cr" = x; then
15146 eval ac_cr=\$\'\\r\'
15148 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15149 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15150 ac_cs_awk_cr='\r'
15151 else
15152 ac_cs_awk_cr=$ac_cr
15155 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15156 _ACEOF
15158 # Create commands to substitute file output variables.
15160 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15161 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15162 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15163 echo "_ACAWK" &&
15164 echo "_ACEOF"
15165 } >conf$$files.sh &&
15166 . ./conf$$files.sh ||
15167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15168 rm -f conf$$files.sh
15171 echo "cat >conf$$subs.awk <<_ACEOF" &&
15172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15173 echo "_ACEOF"
15174 } >conf$$subs.sh ||
15175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15176 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15177 ac_delim='%!_!# '
15178 for ac_last_try in false false false false false :; do
15179 . ./conf$$subs.sh ||
15180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15182 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15183 if test $ac_delim_n = $ac_delim_num; then
15184 break
15185 elif $ac_last_try; then
15186 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15187 else
15188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15190 done
15191 rm -f conf$$subs.sh
15193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15194 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15195 _ACEOF
15196 sed -n '
15198 s/^/S["/; s/!.*/"]=/
15201 s/^[^!]*!//
15202 :repl
15203 t repl
15204 s/'"$ac_delim"'$//
15205 t delim
15208 s/\(.\{148\}\)..*/\1/
15209 t more1
15210 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15213 b repl
15214 :more1
15215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15218 s/.\{148\}//
15219 t nl
15220 :delim
15222 s/\(.\{148\}\)..*/\1/
15223 t more2
15224 s/["\\]/\\&/g; s/^/"/; s/$/"/
15227 :more2
15228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15231 s/.\{148\}//
15232 t delim
15233 ' <conf$$subs.awk | sed '
15234 /^[^""]/{
15236 s/\n//
15238 ' >>$CONFIG_STATUS || ac_write_fail=1
15239 rm -f conf$$subs.awk
15240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15241 _ACAWK
15242 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15243 for (key in S) S_is_set[key] = 1
15244 FS = "\a"
15245 \$ac_cs_awk_pipe_init
15248 line = $ 0
15249 nfields = split(line, field, "@")
15250 substed = 0
15251 len = length(field[1])
15252 for (i = 2; i < nfields; i++) {
15253 key = field[i]
15254 keylen = length(key)
15255 if (S_is_set[key]) {
15256 value = S[key]
15257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15258 len += length(value) + length(field[++i])
15259 substed = 1
15260 } else
15261 len += 1 + keylen
15263 if (nfields == 3 && !substed) {
15264 key = field[2]
15265 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15266 \$ac_cs_awk_read_file
15267 next
15270 print line
15272 \$ac_cs_awk_pipe_fini
15273 _ACAWK
15274 _ACEOF
15275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15276 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15277 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15278 else
15280 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15281 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15282 _ACEOF
15284 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15285 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15286 # trailing colons and then remove the whole line if VPATH becomes empty
15287 # (actually we leave an empty line to preserve line numbers).
15288 if test "x$srcdir" = x.; then
15289 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15290 s/:*\$(srcdir):*/:/
15291 s/:*\${srcdir}:*/:/
15292 s/:*@srcdir@:*/:/
15293 s/^\([^=]*=[ ]*\):*/\1/
15294 s/:*$//
15295 s/^[^=]*=[ ]*$//
15299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15300 fi # test -n "$CONFIG_FILES"
15302 # Set up the scripts for CONFIG_HEADERS section.
15303 # No need to generate them if there are no CONFIG_HEADERS.
15304 # This happens for instance with `./config.status Makefile'.
15305 if test -n "$CONFIG_HEADERS"; then
15306 cat >"$tmp/defines.awk" <<\_ACAWK ||
15307 BEGIN {
15308 _ACEOF
15310 # Transform confdefs.h into an awk script `defines.awk', embedded as
15311 # here-document in config.status, that substitutes the proper values into
15312 # config.h.in to produce config.h.
15314 # Create a delimiter string that does not exist in confdefs.h, to ease
15315 # handling of long lines.
15316 ac_delim='%!_!# '
15317 for ac_last_try in false false :; do
15318 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15319 if test -z "$ac_t"; then
15320 break
15321 elif $ac_last_try; then
15322 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15323 else
15324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15326 done
15328 # For the awk script, D is an array of macro values keyed by name,
15329 # likewise P contains macro parameters if any. Preserve backslash
15330 # newline sequences.
15332 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15333 sed -n '
15334 s/.\{148\}/&'"$ac_delim"'/g
15335 t rset
15336 :rset
15337 s/^[ ]*#[ ]*define[ ][ ]*/ /
15338 t def
15340 :def
15341 s/\\$//
15342 t bsnl
15343 s/["\\]/\\&/g
15344 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15345 D["\1"]=" \3"/p
15346 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15348 :bsnl
15349 s/["\\]/\\&/g
15350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15351 D["\1"]=" \3\\\\\\n"\\/p
15352 t cont
15353 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15354 t cont
15356 :cont
15358 s/.\{148\}/&'"$ac_delim"'/g
15359 t clear
15360 :clear
15361 s/\\$//
15362 t bsnlc
15363 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15365 :bsnlc
15366 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15367 b cont
15368 ' <confdefs.h | sed '
15369 s/'"$ac_delim"'/"\\\
15370 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15373 for (key in D) D_is_set[key] = 1
15374 FS = "\a"
15376 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15377 line = \$ 0
15378 split(line, arg, " ")
15379 if (arg[1] == "#") {
15380 defundef = arg[2]
15381 mac1 = arg[3]
15382 } else {
15383 defundef = substr(arg[1], 2)
15384 mac1 = arg[2]
15386 split(mac1, mac2, "(") #)
15387 macro = mac2[1]
15388 prefix = substr(line, 1, index(line, defundef) - 1)
15389 if (D_is_set[macro]) {
15390 # Preserve the white space surrounding the "#".
15391 print prefix "define", macro P[macro] D[macro]
15392 next
15393 } else {
15394 # Replace #undef with comments. This is necessary, for example,
15395 # in the case of _POSIX_SOURCE, which is predefined and required
15396 # on some systems where configure will not decide to define it.
15397 if (defundef == "undef") {
15398 print "/*", prefix defundef, macro, "*/"
15399 next
15403 { print }
15404 _ACAWK
15405 _ACEOF
15406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15407 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15408 fi # test -n "$CONFIG_HEADERS"
15411 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15412 shift
15413 for ac_tag
15415 case $ac_tag in
15416 :[FHLC]) ac_mode=$ac_tag; continue;;
15417 esac
15418 case $ac_mode$ac_tag in
15419 :[FHL]*:*);;
15420 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15421 :[FH]-) ac_tag=-:-;;
15422 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15423 esac
15424 ac_save_IFS=$IFS
15425 IFS=:
15426 set x $ac_tag
15427 IFS=$ac_save_IFS
15428 shift
15429 ac_file=$1
15430 shift
15432 case $ac_mode in
15433 :L) ac_source=$1;;
15434 :[FH])
15435 ac_file_inputs=
15436 for ac_f
15438 case $ac_f in
15439 -) ac_f="$tmp/stdin";;
15440 *) # Look for the file first in the build tree, then in the source tree
15441 # (if the path is not absolute). The absolute path cannot be DOS-style,
15442 # because $ac_f cannot contain `:'.
15443 test -f "$ac_f" ||
15444 case $ac_f in
15445 [\\/$]*) false;;
15446 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15447 esac ||
15448 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15449 esac
15450 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15451 as_fn_append ac_file_inputs " '$ac_f'"
15452 done
15454 # Let's still pretend it is `configure' which instantiates (i.e., don't
15455 # use $as_me), people would be surprised to read:
15456 # /* config.h. Generated by config.status. */
15457 configure_input='Generated from '`
15458 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15459 `' by configure.'
15460 if test x"$ac_file" != x-; then
15461 configure_input="$ac_file. $configure_input"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15463 $as_echo "$as_me: creating $ac_file" >&6;}
15465 # Neutralize special characters interpreted by sed in replacement strings.
15466 case $configure_input in #(
15467 *\&* | *\|* | *\\* )
15468 ac_sed_conf_input=`$as_echo "$configure_input" |
15469 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15470 *) ac_sed_conf_input=$configure_input;;
15471 esac
15473 case $ac_tag in
15474 *:-:* | *:-) cat >"$tmp/stdin" \
15475 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15476 esac
15478 esac
15480 ac_dir=`$as_dirname -- "$ac_file" ||
15481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15482 X"$ac_file" : 'X\(//\)[^/]' \| \
15483 X"$ac_file" : 'X\(//\)$' \| \
15484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15485 $as_echo X"$ac_file" |
15486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15487 s//\1/
15490 /^X\(\/\/\)[^/].*/{
15491 s//\1/
15494 /^X\(\/\/\)$/{
15495 s//\1/
15498 /^X\(\/\).*/{
15499 s//\1/
15502 s/.*/./; q'`
15503 as_dir="$ac_dir"; as_fn_mkdir_p
15504 ac_builddir=.
15506 case "$ac_dir" in
15507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15510 # A ".." for each directory in $ac_dir_suffix.
15511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15512 case $ac_top_builddir_sub in
15513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15515 esac ;;
15516 esac
15517 ac_abs_top_builddir=$ac_pwd
15518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15519 # for backward compatibility:
15520 ac_top_builddir=$ac_top_build_prefix
15522 case $srcdir in
15523 .) # We are building in place.
15524 ac_srcdir=.
15525 ac_top_srcdir=$ac_top_builddir_sub
15526 ac_abs_top_srcdir=$ac_pwd ;;
15527 [\\/]* | ?:[\\/]* ) # Absolute name.
15528 ac_srcdir=$srcdir$ac_dir_suffix;
15529 ac_top_srcdir=$srcdir
15530 ac_abs_top_srcdir=$srcdir ;;
15531 *) # Relative name.
15532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15533 ac_top_srcdir=$ac_top_build_prefix$srcdir
15534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15535 esac
15536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15539 case $ac_mode in
15542 # CONFIG_FILE
15545 case $INSTALL in
15546 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15547 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15548 esac
15549 _ACEOF
15551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15552 # If the template does not know about datarootdir, expand it.
15553 # FIXME: This hack should be removed a few years after 2.60.
15554 ac_datarootdir_hack=; ac_datarootdir_seen=
15555 ac_sed_dataroot='
15556 /datarootdir/ {
15560 /@datadir@/p
15561 /@docdir@/p
15562 /@infodir@/p
15563 /@localedir@/p
15564 /@mandir@/p'
15565 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15566 *datarootdir*) ac_datarootdir_seen=yes;;
15567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15569 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15570 _ACEOF
15571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572 ac_datarootdir_hack='
15573 s&@datadir@&$datadir&g
15574 s&@docdir@&$docdir&g
15575 s&@infodir@&$infodir&g
15576 s&@localedir@&$localedir&g
15577 s&@mandir@&$mandir&g
15578 s&\\\${datarootdir}&$datarootdir&g' ;;
15579 esac
15580 _ACEOF
15582 # Neutralize VPATH when `$srcdir' = `.'.
15583 # Shell code in configure.ac might set extrasub.
15584 # FIXME: do we really want to maintain this feature?
15585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15586 ac_sed_extra="$ac_vpsub
15587 $extrasub
15588 _ACEOF
15589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15592 s|@configure_input@|$ac_sed_conf_input|;t t
15593 s&@top_builddir@&$ac_top_builddir_sub&;t t
15594 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15595 s&@srcdir@&$ac_srcdir&;t t
15596 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15597 s&@top_srcdir@&$ac_top_srcdir&;t t
15598 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15599 s&@builddir@&$ac_builddir&;t t
15600 s&@abs_builddir@&$ac_abs_builddir&;t t
15601 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15602 s&@INSTALL@&$ac_INSTALL&;t t
15603 $ac_datarootdir_hack
15605 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15606 if $ac_cs_awk_getline; then
15607 $AWK -f "$tmp/subs.awk"
15608 else
15609 $AWK -f "$tmp/subs.awk" | $SHELL
15610 fi >$tmp/out \
15611 || as_fn_error "could not create $ac_file" "$LINENO" 5
15613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15614 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15617 which seems to be undefined. Please make sure it is defined." >&5
15618 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15619 which seems to be undefined. Please make sure it is defined." >&2;}
15621 rm -f "$tmp/stdin"
15622 case $ac_file in
15623 -) cat "$tmp/out" && rm -f "$tmp/out";;
15624 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15625 esac \
15626 || as_fn_error "could not create $ac_file" "$LINENO" 5
15630 # CONFIG_HEADER
15632 if test x"$ac_file" != x-; then
15634 $as_echo "/* $configure_input */" \
15635 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15636 } >"$tmp/config.h" \
15637 || as_fn_error "could not create $ac_file" "$LINENO" 5
15638 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15640 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15641 else
15642 rm -f "$ac_file"
15643 mv "$tmp/config.h" "$ac_file" \
15644 || as_fn_error "could not create $ac_file" "$LINENO" 5
15646 else
15647 $as_echo "/* $configure_input */" \
15648 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15649 || as_fn_error "could not create -" "$LINENO" 5
15653 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15654 $as_echo "$as_me: executing $ac_file commands" >&6;}
15656 esac
15659 case $ac_file$ac_mode in
15660 "default":C)
15662 ### Make the necessary directories, if they don't exist.
15663 for dir in etc lisp ; do
15664 test -d ${dir} || mkdir ${dir}
15665 done
15667 echo creating src/epaths.h
15668 ${MAKE-make} epaths-force
15670 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15671 echo creating src/.gdbinit
15672 echo source $srcdir/src/.gdbinit > src/.gdbinit
15677 esac
15678 done # for ac_tag
15681 as_fn_exit 0
15682 _ACEOF
15683 ac_clean_files=$ac_clean_files_save
15685 test $ac_write_fail = 0 ||
15686 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15689 # configure is writing to config.log, and then calls config.status.
15690 # config.status does its own redirection, appending to config.log.
15691 # Unfortunately, on DOS this fails, as config.log is still kept open
15692 # by configure, so config.status won't be able to write to it; its
15693 # output is simply discarded. So we exec the FD to /dev/null,
15694 # effectively closing config.log, so it can be properly (re)opened and
15695 # appended to by config.status. When coming back to configure, we
15696 # need to make the FD available again.
15697 if test "$no_create" != yes; then
15698 ac_cs_success=:
15699 ac_config_status_args=
15700 test "$silent" = yes &&
15701 ac_config_status_args="$ac_config_status_args --quiet"
15702 exec 5>/dev/null
15703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15704 exec 5>>config.log
15705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15706 # would make configure fail if this is the last instruction.
15707 $ac_cs_success || as_fn_exit $?
15709 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15711 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}