improved lisp interface to scaling, doc changed acordingly
[emacs.git] / configure
blobd1f5f6cde784cf7d4e9c9dffeb6130acf0d11bc9
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_config_libobj_dir=src
595 ac_header_list=
596 ac_func_list=
597 ac_subst_vars='LTLIBOBJS
598 WINDOW_SUPPORT
599 TOOLTIP_SUPPORT
600 MOUSE_SUPPORT
601 LIB_GCC
602 LINKER
603 POST_EDIT_LDFLAGS
604 PRE_EDIT_LDFLAGS
605 LD_SWITCH_SYSTEM_TEMACS
606 POST_ALLOC_OBJ
607 PRE_ALLOC_OBJ
608 CYGWIN_OBJ
609 RALLOC_OBJ
610 OLDXMENU_DEPS
611 LIBX_OTHER
612 LIBXMENU
613 OLDXMENU
614 OLDXMENU_TARGET
615 LIBXT_OTHER
616 TOOLKIT_LIBW
617 WIDGET_OBJ
618 XOBJ
619 XMENU_OBJ
620 FONT_OBJ
621 OTHER_FILES
622 GNU_OBJC_CFLAGS
623 ns_appsrc
624 ns_appresdir
625 ns_appbindir
626 ns_appdir
627 opsysfile
628 machfile
629 X_TOOLKIT_TYPE
630 C_SWITCH_X_SYSTEM
631 C_SWITCH_X_SITE
632 LD_SWITCH_X_SITE
633 gameuser
634 gamedir
635 bitmapdir
636 archlibdir
637 etcdir
638 x_default_search_path
639 lisppath
640 locallisppath
641 lispdir
642 srcdir
643 canonical
644 configuration
645 version
646 KRB4LIB
647 DESLIB
648 KRB5LIB
649 CRYPTOLIB
650 COM_ERRLIB
651 LIBRESOLV
652 LIBHESIOD
653 TERMCAP_OBJ
654 LIBS_TERMCAP
655 GETOPTOBJS
656 GETOPT_H
657 GETLOADAVG_LIBS
658 KMEM_GROUP
659 NEED_SETGID
660 LIBOBJS
661 BLESSMAIL_TARGET
662 LIBS_MAIL
663 liblockfile
664 ALLOCA
665 LIBXSM
666 LIBGPM
667 LIBGIF
668 LIBTIFF
669 LIBPNG
670 LIBJPEG
671 LIBXPM
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 M17N_FLT_LIBS
675 M17N_FLT_CFLAGS
676 LIBOTF_LIBS
677 LIBOTF_CFLAGS
678 XFT_LIBS
679 XFT_CFLAGS
680 FONTCONFIG_LIBS
681 FONTCONFIG_CFLAGS
682 LIBXMU
683 LIBXTR6
684 LIBSELINUX_LIBS
685 GCONF_LIBS
686 GCONF_CFLAGS
687 DBUS_OBJ
688 DBUS_LIBS
689 DBUS_CFLAGS
690 GTK_OBJ
691 GTK_LIBS
692 GTK_CFLAGS
693 IMAGEMAGICK_LIBS
694 IMAGEMAGICK_CFLAGS
695 RSVG_LIBS
696 RSVG_CFLAGS
697 VMLIMIT_OBJ
698 GMALLOC_OBJ
699 HAVE_XSERVER
700 LIB_STANDARD
701 NS_SUPPORT
702 NS_OBJ
703 TEMACS_LDFLAGS2
704 LD_SWITCH_X_SITE_AUX_RPATH
705 LD_SWITCH_X_SITE_AUX
706 XMKMF
707 DEPFLAGS
708 MKDEPDIR
709 SET_MAKE
710 CFLAGS_SOUND
711 ALSA_LIBS
712 ALSA_CFLAGS
713 PKG_CONFIG
714 LIBSOUND
715 START_FILES
716 LIB_MATH
717 CRT_DIR
718 LIBS_SYSTEM
719 C_SWITCH_SYSTEM
720 UNEXEC_OBJ
721 C_SWITCH_MACHINE
722 LD_SWITCH_SYSTEM
723 cannot_dump
724 MAKEINFO
725 GZIP_PROG
726 INSTALL_INFO
727 RANLIB
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 EGREP
732 GREP
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 MAINT
750 GZIP_INFO
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files='deps_frag
790 ns_frag'
791 ac_user_opts='
792 enable_option_checking
793 with_pop
794 with_kerberos
795 with_kerberos5
796 with_hesiod
797 with_mmdf
798 with_mail_unlink
799 with_mailhost
800 with_sound
801 with_sync_input
802 with_x_toolkit
803 with_xpm
804 with_jpeg
805 with_tiff
806 with_gif
807 with_png
808 with_rsvg
809 with_imagemagick
810 with_xft
811 with_libotf
812 with_m17n_flt
813 with_toolkit_scroll_bars
814 with_xaw3d
815 with_xim
816 with_ns
817 with_gpm
818 with_dbus
819 with_gconf
820 with_selinux
821 with_makeinfo
822 with_compress_info
823 with_pkg_config_prog
824 with_crt_dir
825 with_gnustep_conf
826 enable_ns_self_contained
827 enable_asserts
828 enable_maintainer_mode
829 enable_locallisppath
830 enable_checking
831 enable_profiling
832 enable_autodepend
833 enable_largefile
834 with_x
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
845 XMKMF'
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
896 ac_prev=
897 ac_dashdash=
898 for ac_option
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
916 ac_dashdash=yes ;;
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
935 --config-cache | -C)
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) as_fn_error "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information."
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 esac
1253 done
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error "missing argument to $ac_option"
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301 If a cross compiler is detected then cross compile mode will be used." >&2
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310 test "$silent" = yes && exec 6>/dev/null
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error "pwd does not report name of working directory"
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 $as_echo X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1339 /^X\(\/\/\)$/{
1340 s//\1/
1343 /^X\(\/\).*/{
1344 s//\1/
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1352 else
1353 ac_srcdir_defaulted=no
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1381 # Report the --help message.
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1394 Defaults for the options are specified in brackets.
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1418 For better control, use the options below.
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1442 cat <<\_ACEOF
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449 X features:
1450 --x-includes=DIR X include files are in DIR
1451 --x-libraries=DIR X library files are in DIR
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1462 esac
1463 cat <<\_ACEOF
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --disable-ns-self-contained
1470 disable self contained build under NeXTstep
1471 --enable-asserts compile code with asserts enabled
1472 --enable-maintainer-mode
1473 enable make rules and dependencies not useful (and
1474 sometimes confusing) to the casual installer
1475 --enable-locallisppath=PATH
1476 directories Emacs should search for lisp files
1477 specific to this site
1478 --enable-checking[=LIST]
1479 enable expensive run-time checks. With LIST, enable
1480 only specific categories of checks. Categories are:
1481 all,yes,no. Flags are: stringbytes, stringoverrun,
1482 stringfreelist, xmallocoverrun, conslist
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, lucid or
1504 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 --with-imagemagick compile with ImageMagick image support
1512 --without-xft don't use XFT for anti aliased fonts
1513 --without-libotf don't use libotf for OpenType font support
1514 --without-m17n-flt don't use m17n-flt for text shaping
1515 --without-toolkit-scroll-bars
1516 don't use Motif or Xaw3d scroll bars
1517 --without-xaw3d don't use Xaw3d
1518 --without-xim don't use X11 XIM
1519 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1520 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1521 console
1522 --without-dbus don't compile with D-Bus support
1523 --without-gconf don't compile with GConf support
1524 --without-selinux don't compile with SELinux support
1525 --without-makeinfo don't require makeinfo for building manuals
1526 --without-compress-info don't compress the installed Info pages
1527 --with-pkg-config-prog=PATH
1528 path to pkg-config for finding GTK and librsvg
1529 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1530 /usr/lib, or /usr/lib64 on some platforms.
1531 --with-gnustep-conf=PATH
1532 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1533 or /etc/GNUstep/GNUstep.conf
1534 --with-x use the X Window System
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1544 CPP C preprocessor
1545 XMKMF Path to xmkmf, Makefile generator for X Window System
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to the package provider.
1551 _ACEOF
1552 ac_status=$?
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1601 echo &&
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1603 else
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 fi || ac_status=$?
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1607 done
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1612 cat <<\_ACEOF
1613 emacs configure 24.0.50
1614 generated by GNU Autoconf 2.65
1616 Copyright (C) 2009 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1619 _ACEOF
1620 exit
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_c_try_compile
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_link ()
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 $as_test_x conftest$ac_exeext
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=1
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_c_try_link
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_cpp ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } >/dev/null && {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1741 ac_retval=1
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_cpp
1748 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1751 # the include files in INCLUDES and setting the cache variable VAR
1752 # accordingly.
1753 ac_fn_c_check_header_mongrel ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1762 eval ac_res=\$$3
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764 $as_echo "$ac_res" >&6; }
1765 else
1766 # Is the header compilable?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1768 $as_echo_n "checking $2 usability... " >&6; }
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1772 #include <$2>
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
1775 ac_header_compiler=yes
1776 else
1777 ac_header_compiler=no
1779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1781 $as_echo "$ac_header_compiler" >&6; }
1783 # Is the header present?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1785 $as_echo_n "checking $2 presence... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_cpp "$LINENO"; then :
1791 ac_header_preproc=yes
1792 else
1793 ac_header_preproc=no
1795 rm -f conftest.err conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1797 $as_echo "$ac_header_preproc" >&6; }
1799 # So? What about this header?
1800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1801 yes:no: )
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1803 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1805 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 no:yes:* )
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1809 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1811 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1813 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1815 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1817 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1819 esac
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 eval "$3=\$ac_header_compiler"
1827 eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 } # ac_fn_c_check_header_mongrel
1835 # ac_fn_c_try_run LINENO
1836 # ----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1838 # that executables *can* be run.
1839 ac_fn_c_try_run ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>&5
1850 ac_status=$?
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1853 { { case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_try") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; }; }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: program exited with status $ac_status" >&5
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1869 ac_retval=$ac_status
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 as_fn_set_status $ac_retval
1875 } # ac_fn_c_try_run
1877 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1878 # -------------------------------------------------------
1879 # Tests whether HEADER exists and can be compiled using the include files in
1880 # INCLUDES, setting the cache variable VAR accordingly.
1881 ac_fn_c_check_header_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1888 else
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1892 #include <$2>
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895 eval "$3=yes"
1896 else
1897 eval "$3=no"
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 } # ac_fn_c_check_header_compile
1908 # ac_fn_c_check_decl LINENO SYMBOL VAR
1909 # ------------------------------------
1910 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1911 ac_fn_c_check_decl ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1915 $as_echo_n "checking whether $2 is declared... " >&6; }
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1923 main ()
1925 #ifndef $2
1926 (void) $2;
1927 #endif
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 eval "$3=yes"
1935 else
1936 eval "$3=no"
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 } # ac_fn_c_check_decl
1947 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1948 # ----------------------------------------------
1949 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1950 ac_fn_c_check_header_preproc ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 #include <$2>
1961 _ACEOF
1962 if ac_fn_c_try_cpp "$LINENO"; then :
1963 eval "$3=yes"
1964 else
1965 eval "$3=no"
1967 rm -f conftest.err conftest.$ac_ext
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974 } # ac_fn_c_check_header_preproc
1976 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1977 # ----------------------------------------------------
1978 # Tries to find if the field MEMBER exists in type AGGR, after including
1979 # INCLUDES, setting cache variable VAR accordingly.
1980 ac_fn_c_check_member ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1984 $as_echo_n "checking for $2.$3... " >&6; }
1985 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1986 $as_echo_n "(cached) " >&6
1987 else
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 main ()
1994 static $2 ac_aggr;
1995 if (ac_aggr.$3)
1996 return 0;
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$4=yes"
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 main ()
2010 static $2 ac_aggr;
2011 if (sizeof ac_aggr.$3)
2012 return 0;
2014 return 0;
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$4=yes"
2019 else
2020 eval "$4=no"
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 eval ac_res=\$$4
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 } # ac_fn_c_check_member
2033 # ac_fn_c_check_func LINENO FUNC VAR
2034 # ----------------------------------
2035 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2036 ac_fn_c_check_func ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2048 #define $2 innocuous_$2
2050 /* System header to define __stub macros and hopefully few prototypes,
2051 which can conflict with char $2 (); below.
2052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2053 <limits.h> exists even on freestanding compilers. */
2055 #ifdef __STDC__
2056 # include <limits.h>
2057 #else
2058 # include <assert.h>
2059 #endif
2061 #undef $2
2063 /* Override any GCC internal prototype to avoid an error.
2064 Use char because int might match the return type of a GCC
2065 builtin and then its argument prototype would still apply. */
2066 #ifdef __cplusplus
2067 extern "C"
2068 #endif
2069 char $2 ();
2070 /* The GNU C library defines this for functions which it implements
2071 to always fail with ENOSYS. Some functions are actually named
2072 something starting with __ and the normal name is an alias. */
2073 #if defined __stub_$2 || defined __stub___$2
2074 choke me
2075 #endif
2078 main ()
2080 return $2 ();
2082 return 0;
2084 _ACEOF
2085 if ac_fn_c_try_link "$LINENO"; then :
2086 eval "$3=yes"
2087 else
2088 eval "$3=no"
2090 rm -f core conftest.err conftest.$ac_objext \
2091 conftest$ac_exeext conftest.$ac_ext
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098 } # ac_fn_c_check_func
2100 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2101 # -------------------------------------------
2102 # Tests whether TYPE exists after having included INCLUDES, setting cache
2103 # variable VAR accordingly.
2104 ac_fn_c_check_type ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 eval "$3=no"
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2117 main ()
2119 if (sizeof ($2))
2120 return 0;
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2130 main ()
2132 if (sizeof (($2)))
2133 return 0;
2135 return 0;
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2140 else
2141 eval "$3=yes"
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 eval ac_res=\$$3
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152 } # ac_fn_c_check_type
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by emacs $as_me 24.0.50, which was
2158 generated by GNU Autoconf 2.65. Invocation command line was
2160 $ $0 $@
2162 _ACEOF
2163 exec 5>>config.log
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2187 _ASUNAME
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 $as_echo "PATH: $as_dir"
2195 done
2196 IFS=$as_save_IFS
2198 } >&5
2200 cat >&5 <<_ACEOF
2203 ## ----------- ##
2204 ## Core tests. ##
2205 ## ----------- ##
2207 _ACEOF
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_configure_args=
2216 ac_configure_args0=
2217 ac_configure_args1=
2218 ac_must_keep_next=false
2219 for ac_pass in 1 2
2221 for ac_arg
2223 case $ac_arg in
2224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226 | -silent | --silent | --silen | --sile | --sil)
2227 continue ;;
2228 *\'*)
2229 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 esac
2231 case $ac_pass in
2232 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1 " '$ac_arg'"
2235 if test $ac_must_keep_next = true; then
2236 ac_must_keep_next=false # Got value, back to normal.
2237 else
2238 case $ac_arg in
2239 *=* | --config-cache | -C | -disable-* | --disable-* \
2240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242 | -with-* | --with-* | -without-* | --without-* | --x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245 esac
2247 -* ) ac_must_keep_next=true ;;
2248 esac
2250 as_fn_append ac_configure_args " '$ac_arg'"
2252 esac
2253 done
2254 done
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2266 echo
2268 cat <<\_ASBOX
2269 ## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##
2272 _ASBOX
2273 echo
2274 # The following way of writing the cache mishandles newlines in values,
2276 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in #(
2279 *${as_nl}*)
2280 case $ac_var in #(
2281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2282 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2283 esac
2284 case $ac_var in #(
2285 _ | IFS | as_nl) ;; #(
2286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2287 *) { eval $ac_var=; unset $ac_var;} ;;
2288 esac ;;
2289 esac
2290 done
2291 (set) 2>&1 |
2292 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2293 *${as_nl}ac_space=\ *)
2294 sed -n \
2295 "s/'\''/'\''\\\\'\'''\''/g;
2296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2297 ;; #(
2299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301 esac |
2302 sort
2304 echo
2306 cat <<\_ASBOX
2307 ## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##
2310 _ASBOX
2311 echo
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2315 case $ac_val in
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 esac
2318 $as_echo "$ac_var='\''$ac_val'\''"
2319 done | sort
2320 echo
2322 if test -n "$ac_subst_files"; then
2323 cat <<\_ASBOX
2324 ## ------------------- ##
2325 ## File substitutions. ##
2326 ## ------------------- ##
2327 _ASBOX
2328 echo
2329 for ac_var in $ac_subst_files
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2340 if test -s confdefs.h; then
2341 cat <<\_ASBOX
2342 ## ----------- ##
2343 ## confdefs.h. ##
2344 ## ----------- ##
2345 _ASBOX
2346 echo
2347 cat confdefs.h
2348 echo
2350 test "$ac_signal" != 0 &&
2351 $as_echo "$as_me: caught signal $ac_signal"
2352 $as_echo "$as_me: exit $exit_status"
2353 } >&5
2354 rm -f core *.core core.conftest.* &&
2355 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2356 exit $exit_status
2358 for ac_signal in 1 2 13 15; do
2359 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2360 done
2361 ac_signal=0
2363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2364 rm -f -r conftest* confdefs.h
2366 $as_echo "/* confdefs.h */" > confdefs.h
2368 # Predefined preprocessor variables.
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_NAME "$PACKAGE_NAME"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_STRING "$PACKAGE_STRING"
2384 _ACEOF
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2388 _ACEOF
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_URL "$PACKAGE_URL"
2392 _ACEOF
2395 # Let the site file select an alternate cache file if it wants to.
2396 # Prefer an explicitly selected file to automatically selected ones.
2397 ac_site_file1=NONE
2398 ac_site_file2=NONE
2399 if test -n "$CONFIG_SITE"; then
2400 ac_site_file1=$CONFIG_SITE
2401 elif test "x$prefix" != xNONE; then
2402 ac_site_file1=$prefix/share/config.site
2403 ac_site_file2=$prefix/etc/config.site
2404 else
2405 ac_site_file1=$ac_default_prefix/share/config.site
2406 ac_site_file2=$ac_default_prefix/etc/config.site
2408 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410 test "x$ac_site_file" = xNONE && continue
2411 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
2415 . "$ac_site_file"
2417 done
2419 if test -r "$cache_file"; then
2420 # Some versions of bash will fail to source /dev/null (special files
2421 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2422 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424 $as_echo "$as_me: loading cache $cache_file" >&6;}
2425 case $cache_file in
2426 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427 *) . "./$cache_file";;
2428 esac
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432 $as_echo "$as_me: creating cache $cache_file" >&6;}
2433 >$cache_file
2436 as_fn_append ac_header_list " stdlib.h"
2437 as_fn_append ac_header_list " unistd.h"
2438 as_fn_append ac_header_list " sys/param.h"
2439 as_fn_append ac_func_list " MagickExportImagePixels"
2440 as_fn_append ac_header_list " sys/time.h"
2441 as_fn_append ac_func_list " alarm"
2442 # Check that the precious variables saved in the cache have kept the same
2443 # value.
2444 ac_cache_corrupted=false
2445 for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2451 set,)
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2455 ,set)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,);;
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x $ac_old_val`
2464 ac_new_val_w=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2467 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted=:
2469 else
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2475 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2477 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 fi;;
2479 esac
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2482 case $ac_new_val in
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2485 esac
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2489 esac
2491 done
2492 if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2496 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2499 ## -------------------- ##
2500 ## Main body of script. ##
2501 ## -------------------- ##
2503 ac_ext=c
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2514 test "$program_prefix" != NONE &&
2515 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2516 # Use a double $ so make ignores it.
2517 test "$program_suffix" != NONE &&
2518 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2519 # Double any \ or $.
2520 # By default was `s,x,x', remove it if useless.
2521 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2522 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2525 lispdir='${datadir}/emacs/${version}/lisp'
2526 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2527 '${datadir}/emacs/site-lisp'
2528 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2529 etcdir='${datadir}/emacs/${version}/etc'
2530 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2531 docdir='${datadir}/emacs/${version}/etc'
2532 gamedir='${localstatedir}/games/emacs'
2534 gameuser=games
2539 # Check whether --with-pop was given.
2540 if test "${with_pop+set}" = set; then :
2541 withval=$with_pop;
2542 else
2543 with_pop=yes
2546 if test "$with_pop" = yes; then
2547 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2552 # Check whether --with-kerberos was given.
2553 if test "${with_kerberos+set}" = set; then :
2554 withval=$with_kerberos;
2555 else
2556 with_kerberos=no
2559 if test "$with_kerberos" != no; then
2560 $as_echo "#define KERBEROS 1" >>confdefs.h
2565 # Check whether --with-kerberos5 was given.
2566 if test "${with_kerberos5+set}" = set; then :
2567 withval=$with_kerberos5;
2568 else
2569 with_kerberos5=no
2572 if test "${with_kerberos5}" != no; then
2573 if test "${with_kerberos}" = no; then
2574 with_kerberos=yes
2575 $as_echo "#define KERBEROS 1" >>confdefs.h
2579 $as_echo "#define KERBEROS5 1" >>confdefs.h
2584 # Check whether --with-hesiod was given.
2585 if test "${with_hesiod+set}" = set; then :
2586 withval=$with_hesiod;
2587 else
2588 with_hesiod=no
2591 if test "$with_hesiod" != no; then
2593 $as_echo "#define HESIOD 1" >>confdefs.h
2598 # Check whether --with-mmdf was given.
2599 if test "${with_mmdf+set}" = set; then :
2600 withval=$with_mmdf;
2601 else
2602 with_mmdf=no
2605 if test "$with_mmdf" != no; then
2607 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2612 # Check whether --with-mail-unlink was given.
2613 if test "${with_mail_unlink+set}" = set; then :
2614 withval=$with_mail_unlink;
2615 else
2616 with_mail_unlink=no
2619 if test "$with_mail_unlink" != no; then
2621 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2626 # Check whether --with-mailhost was given.
2627 if test "${with_mailhost+set}" = set; then :
2628 withval=$with_mailhost;
2629 cat >>confdefs.h <<_ACEOF
2630 #define MAILHOST "$withval"
2631 _ACEOF
2637 # Check whether --with-sound was given.
2638 if test "${with_sound+set}" = set; then :
2639 withval=$with_sound;
2640 else
2641 with_sound=yes
2646 # Check whether --with-sync-input was given.
2647 if test "${with_sync_input+set}" = set; then :
2648 withval=$with_sync_input;
2649 else
2650 with_sync_input=yes
2653 if test "$with_sync_input" = yes; then
2655 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2660 # Check whether --with-x-toolkit was given.
2661 if test "${with_x_toolkit+set}" = set; then :
2662 withval=$with_x_toolkit; case "${withval}" in
2663 y | ye | yes ) val=gtk ;;
2664 n | no ) val=no ;;
2665 l | lu | luc | luci | lucid ) val=lucid ;;
2666 a | at | ath | athe | athen | athena ) val=athena ;;
2667 m | mo | mot | moti | motif ) val=motif ;;
2668 g | gt | gtk ) val=gtk ;;
2670 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2671 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2672 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2674 esac
2675 with_x_toolkit=$val
2681 # Check whether --with-xpm was given.
2682 if test "${with_xpm+set}" = set; then :
2683 withval=$with_xpm;
2684 else
2685 with_xpm=yes
2689 # Check whether --with-jpeg was given.
2690 if test "${with_jpeg+set}" = set; then :
2691 withval=$with_jpeg;
2692 else
2693 with_jpeg=yes
2697 # Check whether --with-tiff was given.
2698 if test "${with_tiff+set}" = set; then :
2699 withval=$with_tiff;
2700 else
2701 with_tiff=yes
2705 # Check whether --with-gif was given.
2706 if test "${with_gif+set}" = set; then :
2707 withval=$with_gif;
2708 else
2709 with_gif=yes
2713 # Check whether --with-png was given.
2714 if test "${with_png+set}" = set; then :
2715 withval=$with_png;
2716 else
2717 with_png=yes
2721 # Check whether --with-rsvg was given.
2722 if test "${with_rsvg+set}" = set; then :
2723 withval=$with_rsvg;
2724 else
2725 with_rsvg=yes
2729 # Check whether --with-imagemagick was given.
2730 if test "${with_imagemagick+set}" = set; then :
2731 withval=$with_imagemagick;
2732 else
2733 with_imagemagick=no
2738 # Check whether --with-xft was given.
2739 if test "${with_xft+set}" = set; then :
2740 withval=$with_xft;
2741 else
2742 with_xft=yes
2746 # Check whether --with-libotf was given.
2747 if test "${with_libotf+set}" = set; then :
2748 withval=$with_libotf;
2749 else
2750 with_libotf=yes
2754 # Check whether --with-m17n-flt was given.
2755 if test "${with_m17n_flt+set}" = set; then :
2756 withval=$with_m17n_flt;
2757 else
2758 with_m17n_flt=yes
2763 # Check whether --with-toolkit-scroll-bars was given.
2764 if test "${with_toolkit_scroll_bars+set}" = set; then :
2765 withval=$with_toolkit_scroll_bars;
2766 else
2767 with_toolkit_scroll_bars=yes
2771 # Check whether --with-xaw3d was given.
2772 if test "${with_xaw3d+set}" = set; then :
2773 withval=$with_xaw3d;
2774 else
2775 with_xaw3d=yes
2779 # Check whether --with-xim was given.
2780 if test "${with_xim+set}" = set; then :
2781 withval=$with_xim;
2782 else
2783 with_xim=yes
2787 # Check whether --with-ns was given.
2788 if test "${with_ns+set}" = set; then :
2789 withval=$with_ns;
2790 else
2791 with_ns=no
2796 # Check whether --with-gpm was given.
2797 if test "${with_gpm+set}" = set; then :
2798 withval=$with_gpm;
2799 else
2800 with_gpm=yes
2804 # Check whether --with-dbus was given.
2805 if test "${with_dbus+set}" = set; then :
2806 withval=$with_dbus;
2807 else
2808 with_dbus=yes
2812 # Check whether --with-gconf was given.
2813 if test "${with_gconf+set}" = set; then :
2814 withval=$with_gconf;
2815 else
2816 with_gconf=yes
2820 # Check whether --with-selinux was given.
2821 if test "${with_selinux+set}" = set; then :
2822 withval=$with_selinux;
2823 else
2824 with_selinux=yes
2828 ## For the times when you want to build Emacs but don't have
2829 ## a suitable makeinfo, and can live without the manuals.
2831 # Check whether --with-makeinfo was given.
2832 if test "${with_makeinfo+set}" = set; then :
2833 withval=$with_makeinfo;
2834 else
2835 with_makeinfo=yes
2839 ## This is an option because I do not know if all info/man support
2840 ## compressed files, nor how to test if they do so.
2842 # Check whether --with-compress-info was given.
2843 if test "${with_compress_info+set}" = set; then :
2844 withval=$with_compress_info;
2845 else
2846 with_compress_info=yes
2849 if test $with_compress_info = yes; then
2850 GZIP_INFO=yes
2851 else
2852 GZIP_INFO=
2857 # Check whether --with-pkg-config-prog was given.
2858 if test "${with_pkg_config_prog+set}" = set; then :
2859 withval=$with_pkg_config_prog;
2862 if test "X${with_pkg_config_prog}" != X; then
2863 if test "${with_pkg_config_prog}" != yes; then
2864 PKG_CONFIG="${with_pkg_config_prog}"
2868 CRT_DIR=
2870 # Check whether --with-crt-dir was given.
2871 if test "${with_crt_dir+set}" = set; then :
2872 withval=$with_crt_dir;
2875 CRT_DIR="${with_crt_dir}"
2878 # Check whether --with-gnustep-conf was given.
2879 if test "${with_gnustep_conf+set}" = set; then :
2880 withval=$with_gnustep_conf;
2883 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2884 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2885 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2886 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2888 # Check whether --enable-ns-self-contained was given.
2889 if test "${enable_ns_self_contained+set}" = set; then :
2890 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2891 else
2892 EN_NS_SELF_CONTAINED=yes
2896 # Check whether --enable-asserts was given.
2897 if test "${enable_asserts+set}" = set; then :
2898 enableval=$enable_asserts; USE_XASSERTS=$enableval
2899 else
2900 USE_XASSERTS=no
2904 # Check whether --enable-maintainer-mode was given.
2905 if test "${enable_maintainer_mode+set}" = set; then :
2906 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2907 else
2908 USE_MAINTAINER_MODE=no
2911 if test $USE_MAINTAINER_MODE = yes; then
2912 MAINT=
2913 else
2914 MAINT=#
2918 # Check whether --enable-locallisppath was given.
2919 if test "${enable_locallisppath+set}" = set; then :
2920 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2921 locallisppath=
2922 elif test "${enableval}" != "yes"; then
2923 locallisppath=${enableval}
2928 # Check whether --enable-checking was given.
2929 if test "${enable_checking+set}" = set; then :
2930 enableval=$enable_checking; ac_checking_flags="${enableval}"
2933 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2934 for check in $ac_checking_flags
2936 case $check in
2937 # these set all the flags to specific states
2938 yes) ac_enable_checking=1 ;;
2939 no) ac_enable_checking= ;
2940 ac_gc_check_stringbytes= ;
2941 ac_gc_check_string_overrun= ;
2942 ac_gc_check_string_free_list= ;
2943 ac_xmalloc_overrun= ;
2944 ac_gc_check_cons_list= ;;
2945 all) ac_enable_checking=1 ;
2946 ac_gc_check_stringbytes=1 ;
2947 ac_gc_check_string_overrun=1 ;
2948 ac_gc_check_string_free_list=1 ;
2949 ac_xmalloc_overrun=1 ;
2950 ac_gc_check_cons_list=1 ;;
2951 # these enable particular checks
2952 stringbytes) ac_gc_check_stringbytes=1 ;;
2953 stringoverrun) ac_gc_check_string_overrun=1 ;;
2954 stringfreelist) ac_gc_check_string_free_list=1 ;;
2955 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2956 conslist) ac_gc_check_cons_list=1 ;;
2957 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2958 esac
2959 done
2960 IFS="$ac_save_IFS"
2962 if test x$ac_enable_checking != x ; then
2964 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2967 if test x$ac_gc_check_stringbytes != x ; then
2969 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2972 if test x$ac_gc_check_stringoverrun != x ; then
2974 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2977 if test x$ac_gc_check_string_free_list != x ; then
2979 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2982 if test x$ac_xmalloc_overrun != x ; then
2984 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2987 if test x$ac_gc_check_cons_list != x ; then
2989 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2993 # Check whether --enable-profiling was given.
2994 if test "${enable_profiling+set}" = set; then :
2995 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2998 if test x$ac_enable_profiling != x ; then
2999 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3000 PROFILING_LDFLAGS="-pg"
3001 else
3002 PROFILING_CFLAGS=
3003 PROFILING_LDFLAGS=
3006 # Check whether --enable-autodepend was given.
3007 if test "${enable_autodepend+set}" = set; then :
3008 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3009 else
3010 ac_enable_autodepend=yes
3014 #### Make srcdir absolute, if it isn't already. It's important to
3015 #### avoid running the path through pwd unnecessarily, since pwd can
3016 #### give you automounter prefixes, which can go away. We do all this
3017 #### so Emacs can find its files when run uninstalled.
3018 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3019 unset CDPATH
3020 case "${srcdir}" in
3021 /* ) ;;
3023 ## We may be able to use the $PWD environment variable to make this
3024 ## absolute. But sometimes PWD is inaccurate.
3025 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3026 ## but that tested only for a well-formed and valid PWD,
3027 ## it did not object when PWD was well-formed and valid but just wrong.
3028 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3029 then
3030 srcdir="$PWD"
3031 else
3032 srcdir="`(cd ${srcdir}; pwd)`"
3035 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3036 esac
3038 #### Check if the source directory already has a configured system in it.
3039 if test `pwd` != `(cd ${srcdir} && pwd)` \
3040 && test -f "${srcdir}/src/config.h" ; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3042 as a build directory right now; it has been configured in its own
3043 right. To configure in another directory as well, you MUST
3044 use GNU make. If you do not have GNU make, then you must
3045 now do \`make distclean' in ${srcdir},
3046 and then run $0 again." >&5
3047 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3048 as a build directory right now; it has been configured in its own
3049 right. To configure in another directory as well, you MUST
3050 use GNU make. If you do not have GNU make, then you must
3051 now do \`make distclean' in ${srcdir},
3052 and then run $0 again." >&2;}
3055 #### Given the configuration name, set machfile and opsysfile to the
3056 #### names of the m/*.h and s/*.h files we should use.
3058 ### Canonicalize the configuration name.
3060 ac_aux_dir=
3061 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3062 for ac_t in install-sh install.sh shtool; do
3063 if test -f "$ac_dir/$ac_t"; then
3064 ac_aux_dir=$ac_dir
3065 ac_install_sh="$ac_aux_dir/$ac_t -c"
3066 break 2
3068 done
3069 done
3070 if test -z "$ac_aux_dir"; then
3071 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3074 # These three variables are undocumented and unsupported,
3075 # and are intended to be withdrawn in a future Autoconf release.
3076 # They can cause serious problems if a builder's source tree is in a directory
3077 # whose full name contains unusual characters.
3078 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3079 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3080 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3083 # Make sure we can run config.sub.
3084 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3085 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3088 $as_echo_n "checking build system type... " >&6; }
3089 if test "${ac_cv_build+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 ac_build_alias=$build_alias
3093 test "x$ac_build_alias" = x &&
3094 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3095 test "x$ac_build_alias" = x &&
3096 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3097 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3098 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3102 $as_echo "$ac_cv_build" >&6; }
3103 case $ac_cv_build in
3104 *-*-*) ;;
3105 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3106 esac
3107 build=$ac_cv_build
3108 ac_save_IFS=$IFS; IFS='-'
3109 set x $ac_cv_build
3110 shift
3111 build_cpu=$1
3112 build_vendor=$2
3113 shift; shift
3114 # Remember, the first character of IFS is used to create $*,
3115 # except with old shells:
3116 build_os=$*
3117 IFS=$ac_save_IFS
3118 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3122 $as_echo_n "checking host system type... " >&6; }
3123 if test "${ac_cv_host+set}" = set; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if test "x$host_alias" = x; then
3127 ac_cv_host=$ac_cv_build
3128 else
3129 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3130 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3135 $as_echo "$ac_cv_host" >&6; }
3136 case $ac_cv_host in
3137 *-*-*) ;;
3138 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3139 esac
3140 host=$ac_cv_host
3141 ac_save_IFS=$IFS; IFS='-'
3142 set x $ac_cv_host
3143 shift
3144 host_cpu=$1
3145 host_vendor=$2
3146 shift; shift
3147 # Remember, the first character of IFS is used to create $*,
3148 # except with old shells:
3149 host_os=$*
3150 IFS=$ac_save_IFS
3151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3154 canonical=$host
3155 configuration=${host_alias-${build_alias-$host}}
3159 ### If you add support for a new configuration, add code to this
3160 ### switch statement to recognize your configuration name and select
3161 ### the appropriate operating system and machine description files.
3163 ### You would hope that you could choose an m/*.h file pretty much
3164 ### based on the machine portion of the configuration name, and an s/*.h
3165 ### file based on the operating system portion. However, it turns out
3166 ### that each m/*.h file is pretty manufacturer-specific - for
3167 ### example mips.h is MIPS
3168 ### So we basically have to have a special case for each
3169 ### configuration name.
3171 ### As far as handling version numbers on operating systems is
3172 ### concerned, make sure things will fail in a fixable way. If
3173 ### /etc/MACHINES doesn't say anything about version numbers, be
3174 ### prepared to handle anything reasonably. If version numbers
3175 ### matter, be sure /etc/MACHINES says something about it.
3177 machine='' opsys='' unported=no
3178 case "${canonical}" in
3180 ## FreeBSD ports
3181 *-*-freebsd* )
3182 opsys=freebsd
3183 case "${canonical}" in
3184 alpha*) machine=alpha ;;
3185 amd64-*|x86_64-*) machine=amdx86-64 ;;
3186 arm*) machine=arm ;;
3187 ia64-*) machine=ia64 ;;
3188 i[3456]86-*) machine=intel386 ;;
3189 powerpc-*) machine=macppc ;;
3190 sparc-*) machine=sparc ;;
3191 sparc64-*) machine=sparc ;;
3192 esac
3195 ## FreeBSD kernel + glibc based userland
3196 *-*-kfreebsd*gnu* )
3197 opsys=gnu-kfreebsd
3198 case "${canonical}" in
3199 alpha*) machine=alpha ;;
3200 amd64-*|x86_64-*) machine=amdx86-64 ;;
3201 ia64-*) machine=ia64 ;;
3202 i[3456]86-*) machine=intel386 ;;
3203 powerpc-*) machine=macppc ;;
3204 sparc-*) machine=sparc ;;
3205 sparc64-*) machine=sparc ;;
3206 esac
3209 ## NetBSD ports
3210 *-*-netbsd* )
3211 opsys=netbsd
3212 case "${canonical}" in
3213 alpha*) machine=alpha ;;
3214 x86_64-*) machine=amdx86-64 ;;
3215 arm-*) machine=arm ;;
3216 hppa-*) machine=hp800 ;;
3217 i[3456]86-*) machine=intel386 ;;
3218 m68k-*) machine=m68k ;;
3219 powerpc-*) machine=macppc ;;
3220 mips-*) machine=mips ;;
3221 mipse[bl]-*) machine=mips ;;
3222 sparc*-) machine=sparc ;;
3223 vax-*) machine=vax ;;
3224 esac
3227 ## OpenBSD ports
3228 *-*-openbsd* )
3229 opsys=openbsd
3230 case "${canonical}" in
3231 alpha*) machine=alpha ;;
3232 x86_64-*) machine=amdx86-64 ;;
3233 arm-*) machine=arm ;;
3234 hppa-*) machine=hp800 ;;
3235 i386-*) machine=intel386 ;;
3236 powerpc-*) machine=macppc ;;
3237 sparc*) machine=sparc ;;
3238 vax-*) machine=vax ;;
3239 esac
3242 alpha*-*-linux-gnu* )
3243 machine=alpha opsys=gnu-linux
3246 arm*-*-linux-gnu* )
3247 machine=arm opsys=gnu-linux
3250 ## Apple Darwin / Mac OS X
3251 *-apple-darwin* )
3252 case "${canonical}" in
3253 i[3456]86-* ) machine=intel386 ;;
3254 powerpc-* ) machine=macppc ;;
3255 x86_64-* ) machine=amdx86-64 ;;
3256 * ) unported=yes ;;
3257 esac
3258 opsys=darwin
3259 # Define CPP as follows to make autoconf work correctly.
3260 CPP="${CC-cc} -E -no-cpp-precomp"
3261 # Use fink packages if available.
3262 if test -d /sw/include && test -d /sw/lib; then
3263 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3264 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3265 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3269 ## HP 9000 series 700 and 800, running HP/UX
3270 hppa*-hp-hpux10.2* )
3271 machine=hp800 opsys=hpux10-20
3273 hppa*-hp-hpux1[1-9]* )
3274 machine=hp800 opsys=hpux11
3275 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
3278 hppa*-*-linux-gnu* )
3279 machine=hp800 opsys=gnu-linux
3282 ## IBM machines
3283 s390-*-linux-gnu* )
3284 machine=ibms390 opsys=gnu-linux
3286 s390x-*-linux-gnu* )
3287 machine=ibms390x opsys=gnu-linux
3289 rs6000-ibm-aix4.[23]* )
3290 machine=ibmrs6000 opsys=aix4-2
3292 powerpc-ibm-aix4.[23]* )
3293 machine=ibmrs6000 opsys=aix4-2
3295 rs6000-ibm-aix[56]* )
3296 machine=ibmrs6000 opsys=aix4-2
3298 powerpc-ibm-aix[56]* )
3299 machine=ibmrs6000 opsys=aix4-2
3302 ## Macintosh PowerPC
3303 powerpc*-*-linux-gnu* )
3304 machine=macppc opsys=gnu-linux
3307 ## Silicon Graphics machines
3308 ## Iris 4D
3309 mips-sgi-irix6.5 )
3310 machine=iris4d opsys=irix6-5
3311 # Without defining _LANGUAGE_C, things get masked out in the headers
3312 # so that, for instance, grepping for `free' in stdlib.h fails and
3313 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
3314 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
3315 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
3318 ## Suns
3319 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3320 machine=sparc opsys=gnu-linux
3323 *-sun-solaris* \
3324 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
3325 | x86_64-*-solaris2* | x86_64-*-sunos5*)
3326 case "${canonical}" in
3327 i[3456]86-*-* ) machine=intel386 ;;
3328 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3329 sparc* ) machine=sparc ;;
3330 * ) unported=yes ;;
3331 esac
3332 case "${canonical}" in
3333 *-sunos5.6* | *-solaris2.6* )
3334 opsys=sol2-6
3335 NON_GNU_CPP=/usr/ccs/lib/cpp
3336 RANLIB="ar -ts"
3338 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
3339 opsys=sol2-6
3340 emacs_check_sunpro_c=yes
3341 NON_GNU_CPP=/usr/ccs/lib/cpp
3343 *-sunos5* | *-solaris* )
3344 opsys=sol2-10
3345 emacs_check_sunpro_c=yes
3346 NON_GNU_CPP=/usr/ccs/lib/cpp
3348 esac
3349 ## Watch out for a compiler that we know will not work.
3350 case "${canonical}" in
3351 *-solaris* | *-sunos5* )
3352 if [ "x$CC" = x/usr/ucb/cc ]; then
3353 ## /usr/ucb/cc doesn't work;
3354 ## we should find some other compiler that does work.
3355 unset CC
3358 *) ;;
3359 esac
3362 ## IA-64
3363 ia64*-*-linux* )
3364 machine=ia64 opsys=gnu-linux
3367 ## Intel 386 machines where we don't care about the manufacturer.
3368 i[3456]86-*-* )
3369 machine=intel386
3370 case "${canonical}" in
3371 *-cygwin ) opsys=cygwin ;;
3372 *-darwin* ) opsys=darwin
3373 CPP="${CC-cc} -E -no-cpp-precomp"
3375 *-linux-gnu* ) opsys=gnu-linux ;;
3376 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3377 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3378 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3379 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3380 esac
3383 ## m68k Linux-based GNU system
3384 m68k-*-linux-gnu* )
3385 machine=m68k opsys=gnu-linux
3388 ## Mips Linux-based GNU system
3389 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
3390 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
3391 machine=mips opsys=gnu-linux
3394 ## AMD x86-64 Linux-based GNU system
3395 x86_64-*-linux-gnu* )
3396 machine=amdx86-64 opsys=gnu-linux
3399 ## Tensilica Xtensa Linux-based GNU system
3400 xtensa*-*-linux-gnu* )
3401 machine=xtensa opsys=gnu-linux
3404 ## SuperH Linux-based GNU system
3405 sh[34]*-*-linux-gnu* )
3406 machine=sh3 opsys=gnu-linux
3410 unported=yes
3412 esac
3414 ### If the code above didn't choose an operating system, just choose
3415 ### an operating system based on the configuration name. You really
3416 ### only want to use this when you have no idea what the right
3417 ### operating system is; if you know what operating systems a machine
3418 ### runs, it's cleaner to make it explicit in the case statement
3419 ### above.
3420 if test x"${opsys}" = x; then
3421 case "${canonical}" in
3422 *-gnu* ) opsys=gnu ;;
3424 unported=yes
3426 esac
3431 if test $unported = yes; then
3432 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3433 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3436 machfile="m/${machine}.h"
3437 opsysfile="s/${opsys}.h"
3440 #### Choose a compiler.
3441 test -n "$CC" && cc_specified=yes
3443 # Save the value of CFLAGS that the user specified.
3444 SPECIFIED_CFLAGS="$CFLAGS"
3446 ac_ext=c
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3473 done
3474 done
3475 IFS=$as_save_IFS
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3490 if test -z "$ac_cv_prog_CC"; then
3491 ac_ct_CC=$CC
3492 # Extract the first word of "gcc", so it can be a program name with args.
3493 set dummy gcc; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC="gcc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3513 done
3514 done
3515 IFS=$as_save_IFS
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3528 if test "x$ac_ct_CC" = x; then
3529 CC=""
3530 else
3531 case $cross_compiling:$ac_tool_warned in
3532 yes:)
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537 CC=$ac_ct_CC
3539 else
3540 CC="$ac_cv_prog_CC"
3543 if test -z "$CC"; then
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}cc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_CC="${ac_tool_prefix}cc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3566 done
3567 done
3568 IFS=$as_save_IFS
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3584 if test -z "$CC"; then
3585 # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 ac_prog_rejected=no
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3604 ac_prog_rejected=yes
3605 continue
3607 ac_cv_prog_CC="cc"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3615 if test $ac_prog_rejected = yes; then
3616 # We found a bogon in the path, so make sure we never use it.
3617 set dummy $ac_cv_prog_CC
3618 shift
3619 if test $# != 0; then
3620 # We chose a different compiler from the bogus one.
3621 # However, it has the same basename, so the bogon will be chosen
3622 # first if we set CC to just the basename; use the full file name.
3623 shift
3624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog in cl.exe
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$CC" && break
3682 done
3684 if test -z "$CC"; then
3685 ac_ct_CC=$CC
3686 for ac_prog in cl.exe
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 if test -n "$ac_ct_CC"; then
3696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_ac_ct_CC="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3711 IFS=$as_save_IFS
3715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3718 $as_echo "$ac_ct_CC" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$ac_ct_CC" && break
3726 done
3728 if test "x$ac_ct_CC" = x; then
3729 CC=""
3730 else
3731 case $cross_compiling:$ac_tool_warned in
3732 yes:)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3736 esac
3737 CC=$ac_ct_CC
3744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error "no acceptable C compiler found in \$PATH
3747 See \`config.log' for more details." "$LINENO" 5; }
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3751 set X $ac_compile
3752 ac_compiler=$2
3753 for ac_option in --version -v -V -qversion; do
3754 { { ac_try="$ac_compiler $ac_option >&5"
3755 case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3762 ac_status=$?
3763 if test -s conftest.err; then
3764 sed '10a\
3765 ... rest of stderr output deleted ...
3766 10q' conftest.err >conftest.er1
3767 cat conftest.er1 >&5
3769 rm -f conftest.er1 conftest.err
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }
3772 done
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3778 main ()
3782 return 0;
3784 _ACEOF
3785 ac_clean_files_save=$ac_clean_files
3786 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3787 # Try to create an executable without -o first, disregard a.out.
3788 # It will help us diagnose broken compilers, and finding out an intuition
3789 # of exeext.
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3791 $as_echo_n "checking whether the C compiler works... " >&6; }
3792 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3794 # The possible output files:
3795 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3797 ac_rmfiles=
3798 for ac_file in $ac_files
3800 case $ac_file in
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3803 esac
3804 done
3805 rm -f $ac_rmfiles
3807 if { { ac_try="$ac_link_default"
3808 case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_link_default") 2>&5
3815 ac_status=$?
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3820 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3821 # so that the user can short-circuit this test for compilers unknown to
3822 # Autoconf.
3823 for ac_file in $ac_files ''
3825 test -f "$ac_file" || continue
3826 case $ac_file in
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3829 [ab].out )
3830 # We found the default executable, but exeext='' is most
3831 # certainly right.
3832 break;;
3833 *.* )
3834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3835 then :; else
3836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 # We set ac_cv_exeext here because the later test for it is not
3839 # safe: cross compilers may not add the suffix if given an `-o'
3840 # argument, so we may need to know it at that point already.
3841 # Even if this section looks crufty: it has the advantage of
3842 # actually working.
3843 break;;
3845 break;;
3846 esac
3847 done
3848 test "$ac_cv_exeext" = no && ac_cv_exeext=
3850 else
3851 ac_file=''
3853 if test -z "$ac_file"; then :
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 { as_fn_set_status 77
3862 as_fn_error "C compiler cannot create executables
3863 See \`config.log' for more details." "$LINENO" 5; }; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3866 $as_echo "yes" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3869 $as_echo_n "checking for C compiler default output file name... " >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3871 $as_echo "$ac_file" >&6; }
3872 ac_exeext=$ac_cv_exeext
3874 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3875 ac_clean_files=$ac_clean_files_save
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3877 $as_echo_n "checking for suffix of executables... " >&6; }
3878 if { { ac_try="$ac_link"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3884 $as_echo "$ac_try_echo"; } >&5
3885 (eval "$ac_link") 2>&5
3886 ac_status=$?
3887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3888 test $ac_status = 0; }; then :
3889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3890 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3891 # work properly (i.e., refer to `conftest.exe'), while it won't with
3892 # `rm'.
3893 for ac_file in conftest.exe conftest conftest.*; do
3894 test -f "$ac_file" || continue
3895 case $ac_file in
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3898 break;;
3899 * ) break;;
3900 esac
3901 done
3902 else
3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3905 as_fn_error "cannot compute suffix of executables: cannot compile and link
3906 See \`config.log' for more details." "$LINENO" 5; }
3908 rm -f conftest conftest$ac_cv_exeext
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3910 $as_echo "$ac_cv_exeext" >&6; }
3912 rm -f conftest.$ac_ext
3913 EXEEXT=$ac_cv_exeext
3914 ac_exeext=$EXEEXT
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917 #include <stdio.h>
3919 main ()
3921 FILE *f = fopen ("conftest.out", "w");
3922 return ferror (f) || fclose (f) != 0;
3925 return 0;
3927 _ACEOF
3928 ac_clean_files="$ac_clean_files conftest.out"
3929 # Check that the compiler produces executables we can run. If not, either
3930 # the compiler is broken, or we cross compile.
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3932 $as_echo_n "checking whether we are cross compiling... " >&6; }
3933 if test "$cross_compiling" != yes; then
3934 { { ac_try="$ac_link"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_link") 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }
3945 if { ac_try='./conftest$ac_cv_exeext'
3946 { { case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951 $as_echo "$ac_try_echo"; } >&5
3952 (eval "$ac_try") 2>&5
3953 ac_status=$?
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }; }; then
3956 cross_compiling=no
3957 else
3958 if test "$cross_compiling" = maybe; then
3959 cross_compiling=yes
3960 else
3961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963 as_fn_error "cannot run C compiled programs.
3964 If you meant to cross compile, use \`--host'.
3965 See \`config.log' for more details." "$LINENO" 5; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3970 $as_echo "$cross_compiling" >&6; }
3972 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3973 ac_clean_files=$ac_clean_files_save
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3975 $as_echo_n "checking for suffix of object files... " >&6; }
3976 if test "${ac_cv_objext+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3983 main ()
3987 return 0;
3989 _ACEOF
3990 rm -f conftest.o conftest.obj
3991 if { { ac_try="$ac_compile"
3992 case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_compile") 2>&5
3999 ac_status=$?
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; then :
4002 for ac_file in conftest.o conftest.obj conftest.*; do
4003 test -f "$ac_file" || continue;
4004 case $ac_file in
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4006 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4007 break;;
4008 esac
4009 done
4010 else
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error "cannot compute suffix of object files: cannot compile
4017 See \`config.log' for more details." "$LINENO" 5; }
4019 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4022 $as_echo "$ac_cv_objext" >&6; }
4023 OBJEXT=$ac_cv_objext
4024 ac_objext=$OBJEXT
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4026 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4027 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4034 main ()
4036 #ifndef __GNUC__
4037 choke me
4038 #endif
4041 return 0;
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_compiler_gnu=yes
4046 else
4047 ac_compiler_gnu=no
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4054 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4055 if test $ac_compiler_gnu = yes; then
4056 GCC=yes
4057 else
4058 GCC=
4060 ac_test_CFLAGS=${CFLAGS+set}
4061 ac_save_CFLAGS=$CFLAGS
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4063 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4064 if test "${ac_cv_prog_cc_g+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 ac_save_c_werror_flag=$ac_c_werror_flag
4068 ac_c_werror_flag=yes
4069 ac_cv_prog_cc_g=no
4070 CFLAGS="-g"
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4075 main ()
4079 return 0;
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4083 ac_cv_prog_cc_g=yes
4084 else
4085 CFLAGS=""
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4090 main ()
4094 return 0;
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4099 else
4100 ac_c_werror_flag=$ac_save_c_werror_flag
4101 CFLAGS="-g"
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4106 main ()
4110 return 0;
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_cv_prog_cc_g=yes
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4124 $as_echo "$ac_cv_prog_cc_g" >&6; }
4125 if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127 elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4129 CFLAGS="-g -O2"
4130 else
4131 CFLAGS="-g"
4133 else
4134 if test "$GCC" = yes; then
4135 CFLAGS="-O2"
4136 else
4137 CFLAGS=
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4141 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4142 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 ac_cv_prog_cc_c89=no
4146 ac_save_CC=$CC
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #include <stdarg.h>
4150 #include <stdio.h>
4151 #include <sys/types.h>
4152 #include <sys/stat.h>
4153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4154 struct buf { int x; };
4155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4156 static char *e (p, i)
4157 char **p;
4158 int i;
4160 return p[i];
4162 static char *f (char * (*g) (char **, int), char **p, ...)
4164 char *s;
4165 va_list v;
4166 va_start (v,p);
4167 s = g (p, va_arg (v,int));
4168 va_end (v);
4169 return s;
4172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4173 function prototypes and stuff, but not '\xHH' hex character constants.
4174 These don't provoke an error unfortunately, instead are silently treated
4175 as 'x'. The following induces an error, until -std is added to get
4176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4177 array size at least. It's necessary to write '\x00'==0 to get something
4178 that's true only with -std. */
4179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4182 inside strings and character constants. */
4183 #define FOO(x) 'x'
4184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4186 int test (int i, double x);
4187 struct s1 {int (*f) (int a);};
4188 struct s2 {int (*f) (double a);};
4189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4190 int argc;
4191 char **argv;
4193 main ()
4195 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4197 return 0;
4199 _ACEOF
4200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4201 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4203 CC="$ac_save_CC $ac_arg"
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_prog_cc_c89=$ac_arg
4207 rm -f core conftest.err conftest.$ac_objext
4208 test "x$ac_cv_prog_cc_c89" != "xno" && break
4209 done
4210 rm -f conftest.$ac_ext
4211 CC=$ac_save_CC
4214 # AC_CACHE_VAL
4215 case "x$ac_cv_prog_cc_c89" in
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4218 $as_echo "none needed" >&6; } ;;
4219 xno)
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4221 $as_echo "unsupported" >&6; } ;;
4223 CC="$CC $ac_cv_prog_cc_c89"
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4225 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4226 esac
4227 if test "x$ac_cv_prog_cc_c89" != xno; then :
4231 ac_ext=c
4232 ac_cpp='$CPP $CPPFLAGS'
4233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238 # On Suns, sometimes $CPP names a directory.
4239 if test -n "$CPP" && test -d "$CPP"; then
4240 CPP=
4243 ## If not using gcc, and on Solaris, and no CPP specified, see if
4244 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4245 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4246 test x"$CPP" = x; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
4248 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4250 if test "${emacs_cv_sunpro_c+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4257 main ()
4259 #ifndef __SUNPRO_C
4260 fail;
4261 #endif
4264 return 0;
4266 _ACEOF
4267 if ac_fn_c_try_link "$LINENO"; then :
4268 emacs_cv_sunpro_c=yes
4269 else
4270 emacs_cv_sunpro_c=no
4272 rm -f core conftest.err conftest.$ac_objext \
4273 conftest$ac_exeext conftest.$ac_ext
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4277 $as_echo "$emacs_cv_sunpro_c" >&6; }
4279 if test x"$emacs_cv_sunpro_c" = xyes; then
4280 NON_GNU_CPP="$CC -E -Xs"
4284 #### Some systems specify a CPP to use unless we are using GCC.
4285 #### Now that we know whether we are using GCC, we can decide whether
4286 #### to use that one.
4287 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4288 then
4289 CPP="$NON_GNU_CPP"
4292 #### Some systems specify a CC to use unless we are using GCC.
4293 #### Now that we know whether we are using GCC, we can decide whether
4294 #### to use that one.
4295 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4296 test x$cc_specified != xyes
4297 then
4298 CC="$NON_GNU_CC"
4301 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4302 then
4303 CC="$CC $GCC_TEST_OPTIONS"
4306 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4307 then
4308 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 #### Some other nice autoconf tests.
4835 ac_ext=c
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4841 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4842 # On Suns, sometimes $CPP names a directory.
4843 if test -n "$CPP" && test -d "$CPP"; then
4844 CPP=
4846 if test -z "$CPP"; then
4847 if test "${ac_cv_prog_CPP+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 # Double quotes because CPP needs to be expanded
4851 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4853 ac_preproc_ok=false
4854 for ac_c_preproc_warn_flag in '' yes
4856 # Use a header file that comes with gcc, so configuring glibc
4857 # with a fresh cross-compiler works.
4858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4859 # <limits.h> exists even on freestanding compilers.
4860 # On the NeXT, cc -E runs the code through the compiler's parser,
4861 # not just through cpp. "Syntax error" is here to catch this case.
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864 #ifdef __STDC__
4865 # include <limits.h>
4866 #else
4867 # include <assert.h>
4868 #endif
4869 Syntax error
4870 _ACEOF
4871 if ac_fn_c_try_cpp "$LINENO"; then :
4873 else
4874 # Broken: fails on valid input.
4875 continue
4877 rm -f conftest.err conftest.$ac_ext
4879 # OK, works on sane cases. Now check whether nonexistent headers
4880 # can be detected and how.
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <ac_nonexistent.h>
4884 _ACEOF
4885 if ac_fn_c_try_cpp "$LINENO"; then :
4886 # Broken: success on invalid input.
4887 continue
4888 else
4889 # Passes both tests.
4890 ac_preproc_ok=:
4891 break
4893 rm -f conftest.err conftest.$ac_ext
4895 done
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.$ac_ext
4898 if $ac_preproc_ok; then :
4899 break
4902 done
4903 ac_cv_prog_CPP=$CPP
4906 CPP=$ac_cv_prog_CPP
4907 else
4908 ac_cv_prog_CPP=$CPP
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4911 $as_echo "$CPP" >&6; }
4912 ac_preproc_ok=false
4913 for ac_c_preproc_warn_flag in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #ifdef __STDC__
4924 # include <limits.h>
4925 #else
4926 # include <assert.h>
4927 #endif
4928 Syntax error
4929 _ACEOF
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4932 else
4933 # Broken: fails on valid input.
4934 continue
4936 rm -f conftest.err conftest.$ac_ext
4938 # OK, works on sane cases. Now check whether nonexistent headers
4939 # can be detected and how.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #include <ac_nonexistent.h>
4943 _ACEOF
4944 if ac_fn_c_try_cpp "$LINENO"; then :
4945 # Broken: success on invalid input.
4946 continue
4947 else
4948 # Passes both tests.
4949 ac_preproc_ok=:
4950 break
4952 rm -f conftest.err conftest.$ac_ext
4954 done
4955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956 rm -f conftest.err conftest.$ac_ext
4957 if $ac_preproc_ok; then :
4959 else
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4963 See \`config.log' for more details." "$LINENO" 5; }
4966 ac_ext=c
4967 ac_cpp='$CPP $CPPFLAGS'
4968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972 # Find a good install program. We prefer a C program (faster),
4973 # so one script is as good as another. But avoid the broken or
4974 # incompatible versions:
4975 # SysV /etc/install, /usr/sbin/install
4976 # SunOS /usr/etc/install
4977 # IRIX /sbin/install
4978 # AIX /bin/install
4979 # AmigaOS /C/install, which installs bootblocks on floppy discs
4980 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4981 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4982 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4983 # OS/2's system install, which has a completely different semantic
4984 # ./install, which can be erroneously created by make from ./install.sh.
4985 # Reject install programs that cannot install multiple files.
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4987 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4988 if test -z "$INSTALL"; then
4989 if test "${ac_cv_path_install+set}" = set; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 # Account for people who put trailing slashes in PATH elements.
4998 case $as_dir/ in #((
4999 ./ | .// | /[cC]/* | \
5000 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5001 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5002 /usr/ucb/* ) ;;
5004 # OSF1 and SCO ODT 3.0 have their own names for install.
5005 # Don't use installbsd from OSF since it installs stuff as root
5006 # by default.
5007 for ac_prog in ginstall scoinst install; do
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5010 if test $ac_prog = install &&
5011 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5012 # AIX install. It has an incompatible calling convention.
5014 elif test $ac_prog = install &&
5015 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5016 # program-specific install script used by HP pwplus--don't use.
5018 else
5019 rm -rf conftest.one conftest.two conftest.dir
5020 echo one > conftest.one
5021 echo two > conftest.two
5022 mkdir conftest.dir
5023 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5024 test -s conftest.one && test -s conftest.two &&
5025 test -s conftest.dir/conftest.one &&
5026 test -s conftest.dir/conftest.two
5027 then
5028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5029 break 3
5033 done
5034 done
5036 esac
5038 done
5039 IFS=$as_save_IFS
5041 rm -rf conftest.one conftest.two conftest.dir
5044 if test "${ac_cv_path_install+set}" = set; then
5045 INSTALL=$ac_cv_path_install
5046 else
5047 # As a last resort, use the slow shell script. Don't cache a
5048 # value for INSTALL within a source directory, because that will
5049 # break other packages using the cache if that directory is
5050 # removed, or if the value is a relative name.
5051 INSTALL=$ac_install_sh
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5055 $as_echo "$INSTALL" >&6; }
5057 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5058 # It thinks the first close brace ends the variable substitution.
5059 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5061 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5063 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5065 if test "x$RANLIB" = x; then
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5068 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 if test -n "$RANLIB"; then
5075 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5088 done
5089 done
5090 IFS=$as_save_IFS
5094 RANLIB=$ac_cv_prog_RANLIB
5095 if test -n "$RANLIB"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5097 $as_echo "$RANLIB" >&6; }
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5105 if test -z "$ac_cv_prog_RANLIB"; then
5106 ac_ct_RANLIB=$RANLIB
5107 # Extract the first word of "ranlib", so it can be a program name with args.
5108 set dummy ranlib; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$ac_ct_RANLIB"; then
5115 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_prog_ac_ct_RANLIB="ranlib"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5134 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5135 if test -n "$ac_ct_RANLIB"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5137 $as_echo "$ac_ct_RANLIB" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5143 if test "x$ac_ct_RANLIB" = x; then
5144 RANLIB=":"
5145 else
5146 case $cross_compiling:$ac_tool_warned in
5147 yes:)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5151 esac
5152 RANLIB=$ac_ct_RANLIB
5154 else
5155 RANLIB="$ac_cv_prog_RANLIB"
5160 ## Although we're running on an amd64 kernel, we're actually compiling for
5161 ## the x86 architecture. The user should probably have provided an
5162 ## explicit --build to `configure', but if everything else than the kernel
5163 ## is running in i386 mode, we can help them out.
5164 if test "$machine" = "amdx86-64"; then
5165 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
5166 if test "x$ac_cv_have_decl_i386" = x""yes; then :
5170 if test "$ac_cv_have_decl_i386" = "yes"; then
5171 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5172 machine=intel386
5173 machfile="m/${machine}.h"
5177 # Extract the first word of "install-info", so it can be a program name with args.
5178 set dummy install-info; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 case $INSTALL_INFO in
5185 [\\/]* | ?:[\\/]*)
5186 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5205 esac
5207 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5208 if test -n "$INSTALL_INFO"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5210 $as_echo "$INSTALL_INFO" >&6; }
5211 else
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5217 # Extract the first word of "install-info", so it can be a program name with args.
5218 set dummy install-info; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 case $INSTALL_INFO in
5225 [\\/]* | ?:[\\/]*)
5226 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in /usr/sbin
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5242 IFS=$as_save_IFS
5245 esac
5247 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5248 if test -n "$INSTALL_INFO"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5250 $as_echo "$INSTALL_INFO" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5257 # Extract the first word of "install-info", so it can be a program name with args.
5258 set dummy install-info; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 case $INSTALL_INFO in
5265 [\\/]* | ?:[\\/]*)
5266 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in /sbin
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5280 done
5281 done
5282 IFS=$as_save_IFS
5284 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5286 esac
5288 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5289 if test -n "$INSTALL_INFO"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5291 $as_echo "$INSTALL_INFO" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5298 # Extract the first word of "gzip", so it can be a program name with args.
5299 set dummy gzip; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 case $GZIP_PROG in
5306 [\\/]* | ?:[\\/]*)
5307 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5323 IFS=$as_save_IFS
5326 esac
5328 GZIP_PROG=$ac_cv_path_GZIP_PROG
5329 if test -n "$GZIP_PROG"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5331 $as_echo "$GZIP_PROG" >&6; }
5332 else
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5340 ## Need makeinfo >= 4.6 (?) to build the manuals.
5341 # Extract the first word of "makeinfo", so it can be a program name with args.
5342 set dummy makeinfo; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5347 else
5348 case $MAKEINFO in
5349 [\\/]* | ?:[\\/]*)
5350 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5368 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5370 esac
5372 MAKEINFO=$ac_cv_path_MAKEINFO
5373 if test -n "$MAKEINFO"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5375 $as_echo "$MAKEINFO" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5382 if test "$MAKEINFO" != "no" && \
5383 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
5384 MAKEINFO=no
5387 ## Makeinfo is unusual. For a released Emacs, the manuals are
5388 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5389 ## therefore in the category of "special tools" not normally required, which
5390 ## configure does not have to check for (eg autoconf itself).
5391 ## In a Bazaar checkout on the other hand, the manuals are not included.
5392 ## So makeinfo is a requirement to build from Bazaar, and configure
5393 ## should test for it as it does for any other build requirement.
5394 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5395 ## with pre-built manuals, from a Bazaar checkout.
5396 if test "$MAKEINFO" = "no"; then
5397 if test "x${with_makeinfo}" = "xno"; then
5398 MAKEINFO=off
5399 elif test ! -e $srcdir/info/emacs; then
5400 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5401 source tree does not seem to have pre-built manuals in the \`info' directory.
5402 Either install a suitable version of makeinfo, or re-run configure
5403 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5408 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5409 then
5410 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5413 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5414 then
5415 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5419 late_LDFLAGS=$LDFLAGS
5420 if test "$GCC" = yes; then
5421 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5422 else
5423 LDFLAGS="$LDFLAGS -znocombreloc"
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5427 $as_echo_n "checking for -znocombreloc... " >&6; }
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 main(){return 0;}
5431 _ACEOF
5432 if ac_fn_c_try_link "$LINENO"; then :
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5434 $as_echo "yes" >&6; }
5435 else
5436 LDFLAGS=$late_LDFLAGS
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5440 rm -f core conftest.err conftest.$ac_objext \
5441 conftest$ac_exeext conftest.$ac_ext
5443 #### Extract some information from the operating system and machine files.
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5446 - which libraries the lib-src programs will want, and
5447 - whether the GNU malloc routines are usable..." >&5
5448 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5449 - which libraries the lib-src programs will want, and
5450 - whether the GNU malloc routines are usable..." >&6;}
5452 ### First figure out CFLAGS (which we use for running the compiler here)
5453 ### and REAL_CFLAGS (which we use for real compilation).
5454 ### The two are the same except on a few systems, where they are made
5455 ### different to work around various lossages. For example,
5456 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5457 ### as implying static linking.
5459 ### If the CFLAGS env var is specified, we use that value
5460 ### instead of the default.
5462 ### It's not important that this name contain the PID; you can't run
5463 ### two configures in the same directory and have anything work
5464 ### anyway.
5465 tempcname="conftest.c"
5467 echo '
5468 #include "'${srcdir}'/src/'${opsysfile}'"
5469 #include "'${srcdir}'/src/'${machfile}'"
5471 configure___ LIBX=-lX11
5473 #ifdef CANNOT_DUMP
5474 configure___ cannot_dump=yes
5475 #else
5476 configure___ cannot_dump=no
5477 #endif
5479 #ifdef SYSTEM_MALLOC
5480 configure___ system_malloc=yes
5481 #else
5482 configure___ system_malloc=no
5483 #endif
5485 #ifdef USE_MMAP_FOR_BUFFERS
5486 configure___ use_mmap_for_buffers=yes
5487 #else
5488 configure___ use_mmap_for_buffers=no
5489 #endif
5491 #ifndef C_OPTIMIZE_SWITCH
5492 #ifdef __GNUC__
5493 #define C_OPTIMIZE_SWITCH -O2
5494 #else
5495 #define C_OPTIMIZE_SWITCH -O
5496 #endif
5497 #endif
5499 #ifndef C_WARNINGS_SWITCH
5500 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5501 #endif
5503 #ifdef THIS_IS_CONFIGURE
5505 /* Get the CFLAGS for tests in configure. */
5506 #ifdef __GNUC__
5507 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5508 #else
5509 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5510 #endif
5512 #else /* not THIS_IS_CONFIGURE */
5514 /* Get the CFLAGS for real compilation. */
5515 #ifdef __GNUC__
5516 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5517 #else
5518 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5519 #endif
5521 #endif /* not THIS_IS_CONFIGURE */
5522 ' > ${tempcname}
5524 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5526 # The value of CPP is a quoted variable reference, so we need to do this
5527 # to get its actual value...
5528 CPP=`eval "echo $CPP"`
5529 eval `${CPP} -Isrc ${tempcname} \
5530 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5531 if test "x$SPECIFIED_CFLAGS" = x; then
5532 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5533 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5534 else
5535 REAL_CFLAGS="$CFLAGS"
5537 rm ${tempcname}
5542 UNEXEC_OBJ=unexelf.o
5543 case "$opsys" in
5544 aix4-2)
5545 UNEXEC_OBJ=unexaix.o
5547 cygwin)
5548 UNEXEC_OBJ=unexcw.o
5550 darwin)
5551 UNEXEC_OBJ=unexmacosx.o
5553 hpux10-20 | hpux11)
5554 UNEXEC_OBJ=unexhp9k800.o
5556 sol2-10)
5557 # Use the Solaris dldump() function, called from unexsol.c, to dump
5558 # emacs, instead of the generic ELF dump code found in unexelf.c.
5559 # The resulting binary has a complete symbol table, and is better
5560 # for debugging and other observability tools (debuggers, pstack, etc).
5562 # If you encounter a problem using dldump(), please consider sending
5563 # a message to the OpenSolaris tools-linking mailing list:
5564 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
5566 # It is likely that dldump() works with older Solaris too, but this has
5567 # not been tested, so for now this change is for Solaris 10 or newer.
5568 UNEXEC_OBJ=unexsol.o
5570 esac
5572 LD_SWITCH_SYSTEM=
5573 case "$opsys" in
5574 freebsd)
5575 ## Let `ld' find image libs and similar things in /usr/local/lib.
5576 ## The system compiler, GCC, has apparently been modified to not
5577 ## look there, contrary to what a stock GCC would do.
5578 LD_SWITCH_SYSTEM=-L/usr/local/lib
5581 gnu-linux)
5582 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5583 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5586 netbsd)
5587 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5590 openbsd)
5591 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5592 ## otherwise Emacs dumps core on elf systems.
5593 LD_SWITCH_SYSTEM="-Z"
5595 esac
5598 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5600 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
5601 ## which has not been defined yet. When this was handled with cpp,
5602 ## it was expanded to null when configure sourced the s/*.h file.
5603 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
5604 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
5605 ## (or somesuch), but because it is supposed to go at the _front_
5606 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
5607 ## Compare with the gnu-linux case below, which added to the end
5608 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
5609 ## LD_SWITCH_SYSTEM_TEMACS.
5610 case "$opsys" in
5611 netbsd|openbsd)
5612 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5613 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5614 esac
5617 C_SWITCH_MACHINE=
5618 if test "$machine" = "alpha"; then
5619 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
5620 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
5624 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5625 ## With ELF, make sure that all common symbols get allocated to in the
5626 ## data section. Otherwise, the dump of temacs may miss variables in
5627 ## the shared library that have been initialized. For example, with
5628 ## GNU libc, __malloc_initialized would normally be resolved to the
5629 ## shared library's .bss section, which is fatal.
5630 if test "x$GCC" = "xyes"; then
5631 C_SWITCH_MACHINE="-fno-common"
5632 else
5633 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
5635 else
5636 UNEXEC_OBJ=unexalpha.o
5643 C_SWITCH_SYSTEM=
5644 ## Some programs in src produce warnings saying certain subprograms
5645 ## are too complex and need a MAXMEM value greater than 2000 for
5646 ## additional optimization. --nils@exp-math.uni-essen.de
5647 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
5648 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
5649 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
5650 ## It is redundant in glibc2, since we define _GNU_SOURCE.
5654 LIBS_SYSTEM=
5655 case "$opsys" in
5656 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
5657 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
5659 freebsd) LIBS_SYSTEM="-lutil" ;;
5661 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
5663 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
5665 ## Motif needs -lgen.
5666 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
5667 esac
5671 ### Make sure subsequent tests use flags consistent with the build flags.
5673 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5674 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5675 else
5676 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
5681 # Check whether --enable-largefile was given.
5682 if test "${enable_largefile+set}" = set; then :
5683 enableval=$enable_largefile;
5686 if test "$enable_largefile" != no; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5689 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5690 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5692 else
5693 ac_cv_sys_largefile_CC=no
5694 if test "$GCC" != yes; then
5695 ac_save_CC=$CC
5696 while :; do
5697 # IRIX 6.2 and later do not support large files by default,
5698 # so use the C compiler's -n32 option if that helps.
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 #include <sys/types.h>
5702 /* Check that off_t can represent 2**63 - 1 correctly.
5703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5704 since some C++ compilers masquerading as C compilers
5705 incorrectly reject 9223372036854775807. */
5706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5708 && LARGE_OFF_T % 2147483647 == 1)
5709 ? 1 : -1];
5711 main ()
5715 return 0;
5717 _ACEOF
5718 if ac_fn_c_try_compile "$LINENO"; then :
5719 break
5721 rm -f core conftest.err conftest.$ac_objext
5722 CC="$CC -n32"
5723 if ac_fn_c_try_compile "$LINENO"; then :
5724 ac_cv_sys_largefile_CC=' -n32'; break
5726 rm -f core conftest.err conftest.$ac_objext
5727 break
5728 done
5729 CC=$ac_save_CC
5730 rm -f conftest.$ac_ext
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5734 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5735 if test "$ac_cv_sys_largefile_CC" != no; then
5736 CC=$CC$ac_cv_sys_largefile_CC
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5740 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 while :; do
5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
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=no; break
5767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #define _FILE_OFFSET_BITS 64
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5779 ? 1 : -1];
5781 main ()
5785 return 0;
5787 _ACEOF
5788 if ac_fn_c_try_compile "$LINENO"; then :
5789 ac_cv_sys_file_offset_bits=64; break
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 ac_cv_sys_file_offset_bits=unknown
5793 break
5794 done
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5797 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5798 case $ac_cv_sys_file_offset_bits in #(
5799 no | unknown) ;;
5801 cat >>confdefs.h <<_ACEOF
5802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5803 _ACEOF
5805 esac
5806 rm -rf conftest*
5807 if test $ac_cv_sys_file_offset_bits = unknown; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5809 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5810 if test "${ac_cv_sys_large_files+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 while :; do
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
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=no; break
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5839 #define _LARGE_FILES 1
5840 #include <sys/types.h>
5841 /* Check that off_t can represent 2**63 - 1 correctly.
5842 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5843 since some C++ compilers masquerading as C compilers
5844 incorrectly reject 9223372036854775807. */
5845 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5846 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5847 && LARGE_OFF_T % 2147483647 == 1)
5848 ? 1 : -1];
5850 main ()
5854 return 0;
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"; then :
5858 ac_cv_sys_large_files=1; break
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_sys_large_files=unknown
5862 break
5863 done
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5866 $as_echo "$ac_cv_sys_large_files" >&6; }
5867 case $ac_cv_sys_large_files in #(
5868 no | unknown) ;;
5870 cat >>confdefs.h <<_ACEOF
5871 #define _LARGE_FILES $ac_cv_sys_large_files
5872 _ACEOF
5874 esac
5875 rm -rf conftest*
5881 ## If user specified a crt-dir, use that unconditionally.
5882 if test "X$CRT_DIR" = "X"; then
5884 case "$canonical" in
5885 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
5886 ## On x86-64 and s390x GNU/Linux distributions, the standard library
5887 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
5888 ## For anything else (eg /usr/lib32), it is up the user to specify
5889 ## the location (bug#5655).
5890 ## Test for crtn.o, not just the directory, because sometimes the
5891 ## directory exists but does not have the relevant files (bug#1287).
5892 ## FIXME better to test for binary compatibility somehow.
5893 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
5896 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
5897 esac
5899 case "$opsys" in
5900 hpux10-20) CRT_DIR=/lib ;;
5901 esac
5903 ## Default is /usr/lib.
5904 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
5906 else
5908 ## Some platforms don't use any of these files, so it is not
5909 ## appropriate to put this test outside the if block.
5910 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5911 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
5917 LIB_MATH=-lm
5918 LIB_STANDARD=
5919 START_FILES=
5921 case $opsys in
5922 cygwin )
5923 LIB_MATH=
5924 START_FILES='ecrt0.o'
5926 darwin )
5927 ## Adding -lm confuses the dynamic linker, so omit it.
5928 LIB_MATH=
5929 START_FILES='pre-crt0.o'
5931 freebsd )
5932 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5933 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5935 gnu-linux | gnu-kfreebsd )
5936 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
5937 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
5939 hpux10-20 | hpux11 )
5940 LIB_STANDARD=-lc
5941 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
5943 netbsd | openbsd )
5944 if test -f $CRT_DIR/crti.o; then
5945 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
5946 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
5947 else
5948 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
5949 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
5952 esac
5960 if test "${with_sound}" != "no"; then
5961 # Sound support for GNU/Linux and the free BSDs.
5962 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5963 do :
5964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5966 eval as_val=\$$as_ac_Header
5967 if test "x$as_val" = x""yes; then :
5968 cat >>confdefs.h <<_ACEOF
5969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5970 _ACEOF
5974 done
5976 # Emulation library used on NetBSD.
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5978 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5979 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 ac_check_lib_save_LIBS=$LIBS
5983 LIBS="-lossaudio $LIBS"
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5987 /* Override any GCC internal prototype to avoid an error.
5988 Use char because int might match the return type of a GCC
5989 builtin and then its argument prototype would still apply. */
5990 #ifdef __cplusplus
5991 extern "C"
5992 #endif
5993 char _oss_ioctl ();
5995 main ()
5997 return _oss_ioctl ();
5999 return 0;
6001 _ACEOF
6002 if ac_fn_c_try_link "$LINENO"; then :
6003 ac_cv_lib_ossaudio__oss_ioctl=yes
6004 else
6005 ac_cv_lib_ossaudio__oss_ioctl=no
6007 rm -f core conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009 LIBS=$ac_check_lib_save_LIBS
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6012 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6013 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6014 LIBSOUND=-lossaudio
6015 else
6016 LIBSOUND=
6021 ALSA_REQUIRED=1.0.0
6022 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6024 succeeded=no
6026 # Extract the first word of "pkg-config", so it can be a program name with args.
6027 set dummy pkg-config; ac_word=$2
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029 $as_echo_n "checking for $ac_word... " >&6; }
6030 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6032 else
6033 case $PKG_CONFIG in
6034 [\\/]* | ?:[\\/]*)
6035 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6049 done
6050 done
6051 IFS=$as_save_IFS
6053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6055 esac
6057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6058 if test -n "$PKG_CONFIG"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6060 $as_echo "$PKG_CONFIG" >&6; }
6061 else
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6068 if test "$PKG_CONFIG" = "no" ; then
6069 HAVE_ALSA=no
6070 else
6071 PKG_CONFIG_MIN_VERSION=0.9.0
6072 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6074 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6076 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6078 $as_echo "yes" >&6; }
6079 succeeded=yes
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6082 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6083 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6085 $as_echo "$ALSA_CFLAGS" >&6; }
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6088 $as_echo_n "checking ALSA_LIBS... " >&6; }
6089 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6091 $as_echo "$ALSA_LIBS" >&6; }
6092 else
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6095 ALSA_CFLAGS=""
6096 ALSA_LIBS=""
6097 ## If we have a custom action on failure, don't print errors, but
6098 ## do set a variable so people can do so.
6099 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6105 else
6106 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6107 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6111 if test $succeeded = yes; then
6112 HAVE_ALSA=yes
6113 else
6114 HAVE_ALSA=no
6117 if test $HAVE_ALSA = yes; then
6118 SAVE_CFLAGS="$CFLAGS"
6119 SAVE_LDFLAGS="$LDFLAGS"
6120 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6121 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 #include <asoundlib.h>
6126 main ()
6128 snd_lib_error_set_handler (0);
6130 return 0;
6132 _ACEOF
6133 if ac_fn_c_try_compile "$LINENO"; then :
6134 emacs_alsa_normal=yes
6135 else
6136 emacs_alsa_normal=no
6138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 if test "$emacs_alsa_normal" != yes; then
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 #include <alsa/asoundlib.h>
6144 main ()
6146 snd_lib_error_set_handler (0);
6148 return 0;
6150 _ACEOF
6151 if ac_fn_c_try_compile "$LINENO"; then :
6152 emacs_alsa_subdir=yes
6153 else
6154 emacs_alsa_subdir=no
6156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 if test "$emacs_alsa_subdir" != yes; then
6158 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6160 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6163 CFLAGS="$SAVE_CFLAGS"
6164 LDFLAGS="$SAVE_LDFLAGS"
6165 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6166 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6168 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6174 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6175 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6176 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6177 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6178 sys/utsname.h pwd.h utmp.h
6179 do :
6180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6181 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6182 eval as_val=\$$as_ac_Header
6183 if test "x$as_val" = x""yes; then :
6184 cat >>confdefs.h <<_ACEOF
6185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6186 _ACEOF
6190 done
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6194 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #include <sys/personality.h>
6199 main ()
6201 personality (PER_LINUX32)
6203 return 0;
6205 _ACEOF
6206 if ac_fn_c_try_compile "$LINENO"; then :
6207 emacs_cv_personality_linux32=yes
6208 else
6209 emacs_cv_personality_linux32=no
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6213 $as_echo "$emacs_cv_personality_linux32" >&6; }
6215 if test $emacs_cv_personality_linux32 = yes; then
6217 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6221 for ac_header in term.h
6222 do :
6223 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6224 if test "x$ac_cv_header_term_h" = x""yes; then :
6225 cat >>confdefs.h <<_ACEOF
6226 #define HAVE_TERM_H 1
6227 _ACEOF
6231 done
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6234 $as_echo_n "checking for ANSI C header files... " >&6; }
6235 if test "${ac_cv_header_stdc+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6240 #include <stdlib.h>
6241 #include <stdarg.h>
6242 #include <string.h>
6243 #include <float.h>
6246 main ()
6250 return 0;
6252 _ACEOF
6253 if ac_fn_c_try_compile "$LINENO"; then :
6254 ac_cv_header_stdc=yes
6255 else
6256 ac_cv_header_stdc=no
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 #include <string.h>
6266 _ACEOF
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "memchr" >/dev/null 2>&1; then :
6270 else
6271 ac_cv_header_stdc=no
6273 rm -f conftest*
6277 if test $ac_cv_header_stdc = yes; then
6278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281 #include <stdlib.h>
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "free" >/dev/null 2>&1; then :
6287 else
6288 ac_cv_header_stdc=no
6290 rm -f conftest*
6294 if test $ac_cv_header_stdc = yes; then
6295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6296 if test "$cross_compiling" = yes; then :
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <ctype.h>
6302 #include <stdlib.h>
6303 #if ((' ' & 0x0FF) == 0x020)
6304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306 #else
6307 # define ISLOWER(c) \
6308 (('a' <= (c) && (c) <= 'i') \
6309 || ('j' <= (c) && (c) <= 'r') \
6310 || ('s' <= (c) && (c) <= 'z'))
6311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312 #endif
6314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6316 main ()
6318 int i;
6319 for (i = 0; i < 256; i++)
6320 if (XOR (islower (i), ISLOWER (i))
6321 || toupper (i) != TOUPPER (i))
6322 return 2;
6323 return 0;
6325 _ACEOF
6326 if ac_fn_c_try_run "$LINENO"; then :
6328 else
6329 ac_cv_header_stdc=no
6331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6332 conftest.$ac_objext conftest.beam conftest.$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6338 $as_echo "$ac_cv_header_stdc" >&6; }
6339 if test $ac_cv_header_stdc = yes; then
6341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6346 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6347 if test "${ac_cv_header_time+set}" = set; then :
6348 $as_echo_n "(cached) " >&6
6349 else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 #include <sys/types.h>
6353 #include <sys/time.h>
6354 #include <time.h>
6357 main ()
6359 if ((struct tm *) 0)
6360 return 0;
6362 return 0;
6364 _ACEOF
6365 if ac_fn_c_try_compile "$LINENO"; then :
6366 ac_cv_header_time=yes
6367 else
6368 ac_cv_header_time=no
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6373 $as_echo "$ac_cv_header_time" >&6; }
6374 if test $ac_cv_header_time = yes; then
6376 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
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
6392 # For Tru64, at least:
6393 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
6394 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
6395 ac_have_decl=1
6396 else
6397 ac_have_decl=0
6400 cat >>confdefs.h <<_ACEOF
6401 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6402 _ACEOF
6404 if test $ac_cv_have_decl___sys_siglist = yes; then
6406 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6411 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6412 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <sys/types.h>
6418 #include <sys/wait.h>
6419 #ifndef WEXITSTATUS
6420 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6421 #endif
6422 #ifndef WIFEXITED
6423 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6424 #endif
6427 main ()
6429 int s;
6430 wait (&s);
6431 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6433 return 0;
6435 _ACEOF
6436 if ac_fn_c_try_compile "$LINENO"; then :
6437 ac_cv_header_sys_wait_h=yes
6438 else
6439 ac_cv_header_sys_wait_h=no
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6444 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6445 if test $ac_cv_header_sys_wait_h = yes; then
6447 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
6453 $as_echo_n "checking for struct utimbuf... " >&6; }
6454 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h. */
6459 #ifdef TIME_WITH_SYS_TIME
6460 #include <sys/time.h>
6461 #include <time.h>
6462 #else
6463 #ifdef HAVE_SYS_TIME_H
6464 #include <sys/time.h>
6465 #else
6466 #include <time.h>
6467 #endif
6468 #endif
6469 #ifdef HAVE_UTIME_H
6470 #include <utime.h>
6471 #endif
6473 main ()
6475 static struct utimbuf x; x.actime = x.modtime;
6477 return 0;
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"; then :
6481 emacs_cv_struct_utimbuf=yes
6482 else
6483 emacs_cv_struct_utimbuf=no
6485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
6488 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6489 if test $emacs_cv_struct_utimbuf = yes; then
6491 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6496 $as_echo_n "checking return type of signal handlers... " >&6; }
6497 if test "${ac_cv_type_signal+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6503 #include <signal.h>
6506 main ()
6508 return *(signal (0, 0)) (0) == 1;
6510 return 0;
6512 _ACEOF
6513 if ac_fn_c_try_compile "$LINENO"; then :
6514 ac_cv_type_signal=int
6515 else
6516 ac_cv_type_signal=void
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6521 $as_echo "$ac_cv_type_signal" >&6; }
6523 cat >>confdefs.h <<_ACEOF
6524 #define RETSIGTYPE $ac_cv_type_signal
6525 _ACEOF
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
6530 $as_echo_n "checking for speed_t... " >&6; }
6531 if test "${emacs_cv_speed_t+set}" = set; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6536 #include <termios.h>
6538 main ()
6540 speed_t x = 1;
6542 return 0;
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 emacs_cv_speed_t=yes
6547 else
6548 emacs_cv_speed_t=no
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
6553 $as_echo "$emacs_cv_speed_t" >&6; }
6554 if test $emacs_cv_speed_t = yes; then
6556 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
6561 $as_echo_n "checking for struct timeval... " >&6; }
6562 if test "${emacs_cv_struct_timeval+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 #ifdef TIME_WITH_SYS_TIME
6568 #include <sys/time.h>
6569 #include <time.h>
6570 #else
6571 #ifdef HAVE_SYS_TIME_H
6572 #include <sys/time.h>
6573 #else
6574 #include <time.h>
6575 #endif
6576 #endif
6578 main ()
6580 static struct timeval x; x.tv_sec = x.tv_usec;
6582 return 0;
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"; then :
6586 emacs_cv_struct_timeval=yes
6587 else
6588 emacs_cv_struct_timeval=no
6590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
6593 $as_echo "$emacs_cv_struct_timeval" >&6; }
6594 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6595 if test $emacs_cv_struct_timeval = yes; then
6597 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
6602 $as_echo_n "checking for struct exception... " >&6; }
6603 if test "${emacs_cv_struct_exception+set}" = set; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608 #include <math.h>
6610 main ()
6612 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6614 return 0;
6616 _ACEOF
6617 if ac_fn_c_try_compile "$LINENO"; then :
6618 emacs_cv_struct_exception=yes
6619 else
6620 emacs_cv_struct_exception=no
6622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
6625 $as_echo "$emacs_cv_struct_exception" >&6; }
6626 HAVE_EXCEPTION=$emacs_cv_struct_exception
6627 if test $emacs_cv_struct_exception != yes; then
6629 $as_echo "#define NO_MATHERR 1" >>confdefs.h
6633 for ac_header in sys/socket.h
6634 do :
6635 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
6636 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
6637 cat >>confdefs.h <<_ACEOF
6638 #define HAVE_SYS_SOCKET_H 1
6639 _ACEOF
6643 done
6645 for ac_header in net/if.h
6646 do :
6647 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
6648 #if HAVE_SYS_SOCKET_H
6649 #include <sys/socket.h>
6650 #endif
6652 if test "x$ac_cv_header_net_if_h" = x""yes; then :
6653 cat >>confdefs.h <<_ACEOF
6654 #define HAVE_NET_IF_H 1
6655 _ACEOF
6659 done
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6663 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6664 if test "${ac_cv_struct_tm+set}" = set; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669 #include <sys/types.h>
6670 #include <time.h>
6673 main ()
6675 struct tm tm;
6676 int *p = &tm.tm_sec;
6677 return !p;
6679 return 0;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"; then :
6683 ac_cv_struct_tm=time.h
6684 else
6685 ac_cv_struct_tm=sys/time.h
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6690 $as_echo "$ac_cv_struct_tm" >&6; }
6691 if test $ac_cv_struct_tm = sys/time.h; then
6693 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6697 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6698 #include <$ac_cv_struct_tm>
6701 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6703 cat >>confdefs.h <<_ACEOF
6704 #define HAVE_STRUCT_TM_TM_ZONE 1
6705 _ACEOF
6710 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6712 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6714 else
6715 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6717 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6718 ac_have_decl=1
6719 else
6720 ac_have_decl=0
6723 cat >>confdefs.h <<_ACEOF
6724 #define HAVE_DECL_TZNAME $ac_have_decl
6725 _ACEOF
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6728 $as_echo_n "checking for tzname... " >&6; }
6729 if test "${ac_cv_var_tzname+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #include <time.h>
6735 #if !HAVE_DECL_TZNAME
6736 extern char *tzname[];
6737 #endif
6740 main ()
6742 return tzname[0][0];
6744 return 0;
6746 _ACEOF
6747 if ac_fn_c_try_link "$LINENO"; then :
6748 ac_cv_var_tzname=yes
6749 else
6750 ac_cv_var_tzname=no
6752 rm -f core conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6756 $as_echo "$ac_cv_var_tzname" >&6; }
6757 if test $ac_cv_var_tzname = yes; then
6759 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6764 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
6766 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6768 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6772 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
6773 #if HAVE_SYS_SOCKET_H
6774 #include <sys/socket.h>
6775 #endif
6776 #if HAVE_NET_IF_H
6777 #include <net/if.h>
6778 #endif
6780 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
6782 cat >>confdefs.h <<_ACEOF
6783 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6784 _ACEOF
6788 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
6789 #if HAVE_SYS_SOCKET_H
6790 #include <sys/socket.h>
6791 #endif
6792 #if HAVE_NET_IF_H
6793 #include <net/if.h>
6794 #endif
6796 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
6798 cat >>confdefs.h <<_ACEOF
6799 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6800 _ACEOF
6804 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
6805 #if HAVE_SYS_SOCKET_H
6806 #include <sys/socket.h>
6807 #endif
6808 #if HAVE_NET_IF_H
6809 #include <net/if.h>
6810 #endif
6812 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
6814 cat >>confdefs.h <<_ACEOF
6815 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
6816 _ACEOF
6820 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
6821 #if HAVE_SYS_SOCKET_H
6822 #include <sys/socket.h>
6823 #endif
6824 #if HAVE_NET_IF_H
6825 #include <net/if.h>
6826 #endif
6828 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
6830 cat >>confdefs.h <<_ACEOF
6831 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
6832 _ACEOF
6836 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
6837 #if HAVE_SYS_SOCKET_H
6838 #include <sys/socket.h>
6839 #endif
6840 #if HAVE_NET_IF_H
6841 #include <net/if.h>
6842 #endif
6844 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
6846 cat >>confdefs.h <<_ACEOF
6847 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6848 _ACEOF
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
6856 $as_echo_n "checking for function prototypes... " >&6; }
6857 if test "$ac_cv_prog_cc_c89" != no; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6859 $as_echo "yes" >&6; }
6861 $as_echo "#define PROTOTYPES 1" >>confdefs.h
6864 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6872 $as_echo_n "checking for working volatile... " >&6; }
6873 if test "${ac_cv_c_volatile+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6880 main ()
6883 volatile int x;
6884 int * volatile y = (int *) 0;
6885 return !x && !y;
6887 return 0;
6889 _ACEOF
6890 if ac_fn_c_try_compile "$LINENO"; then :
6891 ac_cv_c_volatile=yes
6892 else
6893 ac_cv_c_volatile=no
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6898 $as_echo "$ac_cv_c_volatile" >&6; }
6899 if test $ac_cv_c_volatile = no; then
6901 $as_echo "#define volatile /**/" >>confdefs.h
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6906 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6907 if test "${ac_cv_c_const+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6914 main ()
6916 /* FIXME: Include the comments suggested by Paul. */
6917 #ifndef __cplusplus
6918 /* Ultrix mips cc rejects this. */
6919 typedef int charset[2];
6920 const charset cs;
6921 /* SunOS 4.1.1 cc rejects this. */
6922 char const *const *pcpcc;
6923 char **ppc;
6924 /* NEC SVR4.0.2 mips cc rejects this. */
6925 struct point {int x, y;};
6926 static struct point const zero = {0,0};
6927 /* AIX XL C 1.02.0.0 rejects this.
6928 It does not let you subtract one const X* pointer from another in
6929 an arm of an if-expression whose if-part is not a constant
6930 expression */
6931 const char *g = "string";
6932 pcpcc = &g + (g ? g-g : 0);
6933 /* HPUX 7.0 cc rejects these. */
6934 ++pcpcc;
6935 ppc = (char**) pcpcc;
6936 pcpcc = (char const *const *) ppc;
6937 { /* SCO 3.2v4 cc rejects this. */
6938 char *t;
6939 char const *s = 0 ? (char *) 0 : (char const *) 0;
6941 *t++ = 0;
6942 if (s) return 0;
6944 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6945 int x[] = {25, 17};
6946 const int *foo = &x[0];
6947 ++foo;
6949 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6950 typedef const int *iptr;
6951 iptr p = 0;
6952 ++p;
6954 { /* AIX XL C 1.02.0.0 rejects this saying
6955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6956 struct s { int j; const int *ap[3]; };
6957 struct s *b; b->j = 5;
6959 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6960 const int foo = 10;
6961 if (!foo) return 0;
6963 return !cs[0] && !zero.x;
6964 #endif
6967 return 0;
6969 _ACEOF
6970 if ac_fn_c_try_compile "$LINENO"; then :
6971 ac_cv_c_const=yes
6972 else
6973 ac_cv_c_const=no
6975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6978 $as_echo "$ac_cv_c_const" >&6; }
6979 if test $ac_cv_c_const = no; then
6981 $as_echo "#define const /**/" >>confdefs.h
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
6986 $as_echo_n "checking for void * support... " >&6; }
6987 if test "${emacs_cv_void_star+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6994 main ()
6996 void * foo;
6998 return 0;
7000 _ACEOF
7001 if ac_fn_c_try_compile "$LINENO"; then :
7002 emacs_cv_void_star=yes
7003 else
7004 emacs_cv_void_star=no
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
7009 $as_echo "$emacs_cv_void_star" >&6; }
7010 if test $emacs_cv_void_star = yes; then
7011 $as_echo "#define POINTER_TYPE void" >>confdefs.h
7013 else
7014 $as_echo "#define POINTER_TYPE char" >>confdefs.h
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7022 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7023 set x ${MAKE-make}
7024 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7025 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 cat >conftest.make <<\_ACEOF
7029 SHELL = /bin/sh
7030 all:
7031 @echo '@@@%%%=$(MAKE)=@@@%%%'
7032 _ACEOF
7033 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7034 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7035 *@@@%%%=?*=@@@%%%*)
7036 eval ac_cv_prog_make_${ac_make}_set=yes;;
7038 eval ac_cv_prog_make_${ac_make}_set=no;;
7039 esac
7040 rm -f conftest.make
7042 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7044 $as_echo "yes" >&6; }
7045 SET_MAKE=
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 SET_MAKE="MAKE=${MAKE-make}"
7053 DEPFLAGS=
7054 MKDEPDIR=":"
7055 deps_frag=deps.mk
7056 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
7058 $as_echo_n "checking whether we are using GNU Make... " >&6; }
7059 HAVE_GNU_MAKE=no
7060 testval=`make --version 2>/dev/null | grep 'GNU Make'`
7061 if test "x$testval" != x; then
7062 HAVE_GNU_MAKE=yes
7063 else
7064 ac_enable_autodepend=no
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
7067 $as_echo "$HAVE_GNU_MAKE" >&6; }
7068 if test $HAVE_GNU_MAKE = yes; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
7070 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
7071 SAVE_CFLAGS="$CFLAGS"
7072 CFLAGS="$CFLAGS -MMD -MF deps.d"
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7077 main ()
7081 return 0;
7083 _ACEOF
7084 if ac_fn_c_try_compile "$LINENO"; then :
7086 else
7087 ac_enable_autodepend=no
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 CFLAGS="$SAVE_CFLAGS"
7091 test -f deps.d || ac_enable_autodepend=no
7092 rm -rf deps.d
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
7094 $as_echo "$ac_enable_autodepend" >&6; }
7096 if test $ac_enable_autodepend = yes; then
7097 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
7098 ## In parallel builds, another make might create depdir between
7099 ## the first test and mkdir, so stick another test on the end.
7100 ## Or use mkinstalldirs? mkdir -p is not portable.
7101 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
7102 deps_frag=autodeps.mk
7105 deps_frag=$srcdir/src/$deps_frag
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
7112 $as_echo_n "checking for long file names... " >&6; }
7113 if test "${ac_cv_sys_long_file_names+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 ac_cv_sys_long_file_names=yes
7117 # Test for long file names in all the places we know might matter:
7118 # . the current directory, where building will happen
7119 # $prefix/lib where we will be installing things
7120 # $exec_prefix/lib likewise
7121 # $TMPDIR if set, where it might want to write temporary files
7122 # /tmp where it might want to write temporary files
7123 # /var/tmp likewise
7124 # /usr/tmp likewise
7125 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
7126 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
7127 # in the usual case where exec_prefix is '${prefix}'.
7128 case $ac_dir in #(
7129 . | /* | ?:[\\/]*) ;; #(
7130 *) continue;;
7131 esac
7132 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
7133 ac_xdir=$ac_dir/cf$$
7134 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
7135 ac_tf1=$ac_xdir/conftest9012345
7136 ac_tf2=$ac_xdir/conftest9012346
7137 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
7138 ac_cv_sys_long_file_names=no
7139 rm -f -r "$ac_xdir" 2>/dev/null
7140 test $ac_cv_sys_long_file_names = no && break
7141 done
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
7144 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7145 if test $ac_cv_sys_long_file_names = yes; then
7147 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
7152 #### Choose a window system.
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7155 $as_echo_n "checking for X... " >&6; }
7158 # Check whether --with-x was given.
7159 if test "${with_x+set}" = set; then :
7160 withval=$with_x;
7163 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7164 if test "x$with_x" = xno; then
7165 # The user explicitly disabled X.
7166 have_x=disabled
7167 else
7168 case $x_includes,$x_libraries in #(
7169 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7170 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 # One or both of the vars are not set, and there is no cached value.
7174 ac_x_includes=no ac_x_libraries=no
7175 rm -f -r conftest.dir
7176 if mkdir conftest.dir; then
7177 cd conftest.dir
7178 cat >Imakefile <<'_ACEOF'
7179 incroot:
7180 @echo incroot='${INCROOT}'
7181 usrlibdir:
7182 @echo usrlibdir='${USRLIBDIR}'
7183 libdir:
7184 @echo libdir='${LIBDIR}'
7185 _ACEOF
7186 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7188 for ac_var in incroot usrlibdir libdir; do
7189 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7190 done
7191 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7192 for ac_extension in a so sl dylib la dll; do
7193 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7194 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7195 ac_im_usrlibdir=$ac_im_libdir; break
7197 done
7198 # Screen out bogus values from the imake configuration. They are
7199 # bogus both because they are the default anyway, and because
7200 # using them would break gcc on systems where it needs fixed includes.
7201 case $ac_im_incroot in
7202 /usr/include) ac_x_includes= ;;
7203 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7204 esac
7205 case $ac_im_usrlibdir in
7206 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7207 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7208 esac
7210 cd ..
7211 rm -f -r conftest.dir
7214 # Standard set of common directories for X headers.
7215 # Check X11 before X11Rn because it is often a symlink to the current release.
7216 ac_x_header_dirs='
7217 /usr/X11/include
7218 /usr/X11R7/include
7219 /usr/X11R6/include
7220 /usr/X11R5/include
7221 /usr/X11R4/include
7223 /usr/include/X11
7224 /usr/include/X11R7
7225 /usr/include/X11R6
7226 /usr/include/X11R5
7227 /usr/include/X11R4
7229 /usr/local/X11/include
7230 /usr/local/X11R7/include
7231 /usr/local/X11R6/include
7232 /usr/local/X11R5/include
7233 /usr/local/X11R4/include
7235 /usr/local/include/X11
7236 /usr/local/include/X11R7
7237 /usr/local/include/X11R6
7238 /usr/local/include/X11R5
7239 /usr/local/include/X11R4
7241 /usr/X386/include
7242 /usr/x386/include
7243 /usr/XFree86/include/X11
7245 /usr/include
7246 /usr/local/include
7247 /usr/unsupported/include
7248 /usr/athena/include
7249 /usr/local/x11r5/include
7250 /usr/lpp/Xamples/include
7252 /usr/openwin/include
7253 /usr/openwin/share/include'
7255 if test "$ac_x_includes" = no; then
7256 # Guess where to find include files, by looking for Xlib.h.
7257 # First, try using that file with no special directory specified.
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 #include <X11/Xlib.h>
7261 _ACEOF
7262 if ac_fn_c_try_cpp "$LINENO"; then :
7263 # We can compile using X headers with no special include directory.
7264 ac_x_includes=
7265 else
7266 for ac_dir in $ac_x_header_dirs; do
7267 if test -r "$ac_dir/X11/Xlib.h"; then
7268 ac_x_includes=$ac_dir
7269 break
7271 done
7273 rm -f conftest.err conftest.$ac_ext
7274 fi # $ac_x_includes = no
7276 if test "$ac_x_libraries" = no; then
7277 # Check for the libraries.
7278 # See if we find them without any special options.
7279 # Don't add to $LIBS permanently.
7280 ac_save_LIBS=$LIBS
7281 LIBS="-lX11 $LIBS"
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #include <X11/Xlib.h>
7286 main ()
7288 XrmInitialize ()
7290 return 0;
7292 _ACEOF
7293 if ac_fn_c_try_link "$LINENO"; then :
7294 LIBS=$ac_save_LIBS
7295 # We can link X programs with no special library path.
7296 ac_x_libraries=
7297 else
7298 LIBS=$ac_save_LIBS
7299 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7301 # Don't even attempt the hair of trying to link an X program!
7302 for ac_extension in a so sl dylib la dll; do
7303 if test -r "$ac_dir/libX11.$ac_extension"; then
7304 ac_x_libraries=$ac_dir
7305 break 2
7307 done
7308 done
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7312 fi # $ac_x_libraries = no
7314 case $ac_x_includes,$ac_x_libraries in #(
7315 no,* | *,no | *\'*)
7316 # Didn't find X, or a directory has "'" in its name.
7317 ac_cv_have_x="have_x=no";; #(
7319 # Record where we found X for the cache.
7320 ac_cv_have_x="have_x=yes\
7321 ac_x_includes='$ac_x_includes'\
7322 ac_x_libraries='$ac_x_libraries'"
7323 esac
7325 ;; #(
7326 *) have_x=yes;;
7327 esac
7328 eval "$ac_cv_have_x"
7329 fi # $with_x != no
7331 if test "$have_x" != yes; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7333 $as_echo "$have_x" >&6; }
7334 no_x=yes
7335 else
7336 # If each of the values was on the command line, it overrides each guess.
7337 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7338 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7339 # Update the cache value to reflect the command line values.
7340 ac_cv_have_x="have_x=yes\
7341 ac_x_includes='$x_includes'\
7342 ac_x_libraries='$x_libraries'"
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7344 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7347 if test "$no_x" = yes; then
7348 window_system=none
7349 else
7350 window_system=x11
7353 ## Workaround for bug in autoconf <= 2.62.
7354 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
7355 ## No need to do anything special for these standard directories.
7356 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
7358 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
7362 LD_SWITCH_X_SITE_AUX=
7363 LD_SWITCH_X_SITE_AUX_RPATH=
7364 if test "${x_libraries}" != NONE; then
7365 if test -n "${x_libraries}"; then
7366 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
7367 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
7368 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
7370 x_default_search_path=""
7371 x_search_path=${x_libraries}
7372 if test -z "${x_search_path}"; then
7373 x_search_path=/usr/lib
7375 for x_library in `echo ${x_search_path}: | \
7376 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
7377 x_search_path="\
7378 ${x_library}/X11/%L/%T/%N%C%S:\
7379 ${x_library}/X11/%l/%T/%N%C%S:\
7380 ${x_library}/X11/%T/%N%C%S:\
7381 ${x_library}/X11/%L/%T/%N%S:\
7382 ${x_library}/X11/%l/%T/%N%S:\
7383 ${x_library}/X11/%T/%N%S"
7384 if test x"${x_default_search_path}" = x; then
7385 x_default_search_path=${x_search_path}
7386 else
7387 x_default_search_path="${x_search_path}:${x_default_search_path}"
7389 done
7394 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
7395 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
7398 if test x"${x_includes}" = x; then
7399 bitmapdir=/usr/include/X11/bitmaps
7400 else
7401 # accumulate include directories that have X11 bitmap subdirectories
7402 bmd_acc="dummyval"
7403 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
7404 if test -d "${bmd}/X11/bitmaps"; then
7405 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
7407 if test -d "${bmd}/bitmaps"; then
7408 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
7410 done
7411 if test ${bmd_acc} != "dummyval"; then
7412 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
7416 HAVE_NS=no
7417 NS_IMPL_COCOA=no
7418 NS_IMPL_GNUSTEP=no
7419 tmp_CPPFLAGS="$CPPFLAGS"
7420 tmp_CFLAGS="$CFLAGS"
7421 CPPFLAGS="$CPPFLAGS -x objective-c"
7422 CFLAGS="$CFLAGS -x objective-c"
7423 TEMACS_LDFLAGS2="\${LDFLAGS}"
7424 if test "${with_ns}" != no; then
7425 if test "${opsys}" = darwin; then
7426 NS_IMPL_COCOA=yes
7427 ns_appdir=`pwd`/nextstep/Emacs.app/
7428 ns_appbindir=${ns_appdir}Contents/MacOS/
7429 ns_appresdir=${ns_appdir}Contents/Resources
7430 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
7431 elif test -f $GNUSTEP_CONFIG_FILE; then
7432 NS_IMPL_GNUSTEP=yes
7433 ns_appdir=`pwd`/nextstep/Emacs.app/
7434 ns_appbindir=${ns_appdir}
7435 ns_appresdir=${ns_appdir}Resources
7436 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
7437 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
7438 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
7439 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
7440 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
7441 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
7442 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
7443 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
7444 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
7445 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7446 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7447 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
7448 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
7449 LIB_STANDARD=
7450 START_FILES=
7451 TEMACS_LDFLAGS2=
7453 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
7454 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
7455 HAVE_NS=yes
7456 else
7457 as_fn_error "\`--with-ns' was specified, but the include
7458 files are missing or cannot be compiled." "$LINENO" 5
7462 NS_HAVE_NSINTEGER=yes
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7465 #include <Foundation/NSObjCRuntime.h>
7467 main ()
7469 NSInteger i;
7471 return 0;
7473 _ACEOF
7474 if ac_fn_c_try_compile "$LINENO"; then :
7475 ns_have_nsinteger=yes
7476 else
7477 ns_have_nsinteger=no
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480 if test $ns_have_nsinteger = no; then
7481 NS_HAVE_NSINTEGER=no
7486 ns_frag=/dev/null
7487 NS_OBJ=
7488 NS_SUPPORT=
7489 if test "${HAVE_NS}" = yes; then
7490 window_system=nextstep
7491 with_xft=no
7492 # set up packaging dirs
7493 exec_prefix=${ns_appbindir}
7494 libexecdir=${ns_appbindir}/libexec
7495 if test "${EN_NS_SELF_CONTAINED}" = yes; then
7496 prefix=${ns_appresdir}
7498 ns_frag=$srcdir/src/ns.mk
7499 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
7500 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
7502 CFLAGS="$tmp_CFLAGS"
7503 CPPFLAGS="$tmp_CPPFLAGS"
7509 case "${window_system}" in
7510 x11 )
7511 HAVE_X_WINDOWS=yes
7512 HAVE_X11=yes
7513 case "${with_x_toolkit}" in
7514 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
7515 motif ) USE_X_TOOLKIT=MOTIF ;;
7516 gtk ) with_gtk=yes
7517 USE_X_TOOLKIT=none ;;
7518 no ) USE_X_TOOLKIT=none ;;
7519 * ) USE_X_TOOLKIT=maybe ;;
7520 esac
7522 nextstep | none )
7523 HAVE_X_WINDOWS=no
7524 HAVE_X11=no
7525 USE_X_TOOLKIT=none
7527 esac
7529 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7530 # Extract the first word of "X", so it can be a program name with args.
7531 set dummy X; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 if test -n "$HAVE_XSERVER"; then
7538 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547 ac_cv_prog_HAVE_XSERVER="true"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 break 2
7551 done
7552 done
7553 IFS=$as_save_IFS
7555 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7558 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7559 if test -n "$HAVE_XSERVER"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
7561 $as_echo "$HAVE_XSERVER" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7568 if test "$HAVE_XSERVER" = true ||
7569 test -n "$DISPLAY" ||
7570 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7571 as_fn_error "You seem to be running X, but no X development libraries
7572 were found. You should install the relevant development files for X
7573 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7574 sure you have development files for image handling, i.e.
7575 tiff, gif, jpeg, png and xpm.
7576 If you are sure you want Emacs compiled without X window support, pass
7577 --without-x
7578 to configure." "$LINENO" 5
7582 ### If we're using X11, we should use the X menu package.
7583 HAVE_MENUS=no
7584 case ${HAVE_X11} in
7585 yes ) HAVE_MENUS=yes ;;
7586 esac
7588 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7589 # Assume not, until told otherwise.
7590 GNU_MALLOC=yes
7591 doug_lea_malloc=yes
7592 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
7593 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
7595 else
7596 doug_lea_malloc=no
7599 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7600 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7602 else
7603 doug_lea_malloc=no
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7607 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7608 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* end confdefs.h. */
7613 extern void (* __after_morecore_hook)();
7615 main ()
7617 __after_morecore_hook = 0
7619 return 0;
7621 _ACEOF
7622 if ac_fn_c_try_link "$LINENO"; then :
7623 emacs_cv_var___after_morecore_hook=yes
7624 else
7625 emacs_cv_var___after_morecore_hook=no
7627 rm -f core conftest.err conftest.$ac_objext \
7628 conftest$ac_exeext conftest.$ac_ext
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
7631 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7632 if test $emacs_cv_var___after_morecore_hook = no; then
7633 doug_lea_malloc=no
7636 if test "${system_malloc}" = "yes"; then
7637 GNU_MALLOC=no
7638 GNU_MALLOC_reason="
7639 (The GNU allocators don't work with this system configuration.)"
7640 GMALLOC_OBJ=
7641 VMLIMIT_OBJ=
7642 else
7643 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
7644 VMLIMIT_OBJ=vm-limit.o
7649 if test "$doug_lea_malloc" = "yes" ; then
7650 if test "$GNU_MALLOC" = yes ; then
7651 GNU_MALLOC_reason="
7652 (Using Doug Lea's new malloc from the GNU C Library.)"
7655 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
7658 ## Use mmap directly for allocating larger buffers.
7659 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
7660 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
7661 ## Does the AC_FUNC_MMAP test below make this check unecessary?
7662 case "$opsys" in
7663 gnu*) REL_ALLOC=no ;;
7664 esac
7667 if test x"${REL_ALLOC}" = x; then
7668 REL_ALLOC=${GNU_MALLOC}
7675 for ac_header in $ac_header_list
7676 do :
7677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7680 eval as_val=\$$as_ac_Header
7681 if test "x$as_val" = x""yes; then :
7682 cat >>confdefs.h <<_ACEOF
7683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7684 _ACEOF
7688 done
7697 for ac_func in getpagesize
7698 do :
7699 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7700 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7701 cat >>confdefs.h <<_ACEOF
7702 #define HAVE_GETPAGESIZE 1
7703 _ACEOF
7706 done
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7709 $as_echo_n "checking for working mmap... " >&6; }
7710 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 if test "$cross_compiling" = yes; then :
7714 ac_cv_func_mmap_fixed_mapped=no
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 /* malloc might have been renamed as rpl_malloc. */
7720 #undef malloc
7722 /* Thanks to Mike Haertel and Jim Avera for this test.
7723 Here is a matrix of mmap possibilities:
7724 mmap private not fixed
7725 mmap private fixed at somewhere currently unmapped
7726 mmap private fixed at somewhere already mapped
7727 mmap shared not fixed
7728 mmap shared fixed at somewhere currently unmapped
7729 mmap shared fixed at somewhere already mapped
7730 For private mappings, we should verify that changes cannot be read()
7731 back from the file, nor mmap's back from the file at a different
7732 address. (There have been systems where private was not correctly
7733 implemented like the infamous i386 svr4.0, and systems where the
7734 VM page cache was not coherent with the file system buffer cache
7735 like early versions of FreeBSD and possibly contemporary NetBSD.)
7736 For shared mappings, we should conversely verify that changes get
7737 propagated back to all the places they're supposed to be.
7739 Grep wants private fixed already mapped.
7740 The main things grep needs to know about mmap are:
7741 * does it exist and is it safe to write into the mmap'd area
7742 * how to use it (BSD variants) */
7744 #include <fcntl.h>
7745 #include <sys/mman.h>
7747 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7748 char *malloc ();
7749 #endif
7751 /* This mess was copied from the GNU getpagesize.h. */
7752 #ifndef HAVE_GETPAGESIZE
7753 # ifdef _SC_PAGESIZE
7754 # define getpagesize() sysconf(_SC_PAGESIZE)
7755 # else /* no _SC_PAGESIZE */
7756 # ifdef HAVE_SYS_PARAM_H
7757 # include <sys/param.h>
7758 # ifdef EXEC_PAGESIZE
7759 # define getpagesize() EXEC_PAGESIZE
7760 # else /* no EXEC_PAGESIZE */
7761 # ifdef NBPG
7762 # define getpagesize() NBPG * CLSIZE
7763 # ifndef CLSIZE
7764 # define CLSIZE 1
7765 # endif /* no CLSIZE */
7766 # else /* no NBPG */
7767 # ifdef NBPC
7768 # define getpagesize() NBPC
7769 # else /* no NBPC */
7770 # ifdef PAGESIZE
7771 # define getpagesize() PAGESIZE
7772 # endif /* PAGESIZE */
7773 # endif /* no NBPC */
7774 # endif /* no NBPG */
7775 # endif /* no EXEC_PAGESIZE */
7776 # else /* no HAVE_SYS_PARAM_H */
7777 # define getpagesize() 8192 /* punt totally */
7778 # endif /* no HAVE_SYS_PARAM_H */
7779 # endif /* no _SC_PAGESIZE */
7781 #endif /* no HAVE_GETPAGESIZE */
7784 main ()
7786 char *data, *data2, *data3;
7787 const char *cdata2;
7788 int i, pagesize;
7789 int fd, fd2;
7791 pagesize = getpagesize ();
7793 /* First, make a file with some known garbage in it. */
7794 data = (char *) malloc (pagesize);
7795 if (!data)
7796 return 1;
7797 for (i = 0; i < pagesize; ++i)
7798 *(data + i) = rand ();
7799 umask (0);
7800 fd = creat ("conftest.mmap", 0600);
7801 if (fd < 0)
7802 return 2;
7803 if (write (fd, data, pagesize) != pagesize)
7804 return 3;
7805 close (fd);
7807 /* Next, check that the tail of a page is zero-filled. File must have
7808 non-zero length, otherwise we risk SIGBUS for entire page. */
7809 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7810 if (fd2 < 0)
7811 return 4;
7812 cdata2 = "";
7813 if (write (fd2, cdata2, 1) != 1)
7814 return 5;
7815 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7816 if (data2 == MAP_FAILED)
7817 return 6;
7818 for (i = 0; i < pagesize; ++i)
7819 if (*(data2 + i))
7820 return 7;
7821 close (fd2);
7822 if (munmap (data2, pagesize))
7823 return 8;
7825 /* Next, try to mmap the file at a fixed address which already has
7826 something else allocated at it. If we can, also make sure that
7827 we see the same garbage. */
7828 fd = open ("conftest.mmap", O_RDWR);
7829 if (fd < 0)
7830 return 9;
7831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7833 return 10;
7834 for (i = 0; i < pagesize; ++i)
7835 if (*(data + i) != *(data2 + i))
7836 return 11;
7838 /* Finally, make sure that changes to the mapped area do not
7839 percolate back to the file as seen by read(). (This is a bug on
7840 some variants of i386 svr4.0.) */
7841 for (i = 0; i < pagesize; ++i)
7842 *(data2 + i) = *(data2 + i) + 1;
7843 data3 = (char *) malloc (pagesize);
7844 if (!data3)
7845 return 12;
7846 if (read (fd, data3, pagesize) != pagesize)
7847 return 13;
7848 for (i = 0; i < pagesize; ++i)
7849 if (*(data + i) != *(data3 + i))
7850 return 14;
7851 close (fd);
7852 return 0;
7854 _ACEOF
7855 if ac_fn_c_try_run "$LINENO"; then :
7856 ac_cv_func_mmap_fixed_mapped=yes
7857 else
7858 ac_cv_func_mmap_fixed_mapped=no
7860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7861 conftest.$ac_objext conftest.beam conftest.$ac_ext
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7866 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7867 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7869 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7872 rm -f conftest.mmap conftest.txt
7874 if test $use_mmap_for_buffers = yes; then
7875 REL_ALLOC=no
7878 LIBS="$LIBS_SYSTEM $LIBS"
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7881 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7882 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 ac_check_lib_save_LIBS=$LIBS
7886 LIBS="-ldnet $LIBS"
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7890 /* Override any GCC internal prototype to avoid an error.
7891 Use char because int might match the return type of a GCC
7892 builtin and then its argument prototype would still apply. */
7893 #ifdef __cplusplus
7894 extern "C"
7895 #endif
7896 char dnet_ntoa ();
7898 main ()
7900 return dnet_ntoa ();
7902 return 0;
7904 _ACEOF
7905 if ac_fn_c_try_link "$LINENO"; then :
7906 ac_cv_lib_dnet_dnet_ntoa=yes
7907 else
7908 ac_cv_lib_dnet_dnet_ntoa=no
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7915 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7916 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_LIBDNET 1
7919 _ACEOF
7921 LIBS="-ldnet $LIBS"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
7927 $as_echo_n "checking for main in -lXbsd... " >&6; }
7928 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 ac_check_lib_save_LIBS=$LIBS
7932 LIBS="-lXbsd $LIBS"
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7938 main ()
7940 return main ();
7942 return 0;
7944 _ACEOF
7945 if ac_fn_c_try_link "$LINENO"; then :
7946 ac_cv_lib_Xbsd_main=yes
7947 else
7948 ac_cv_lib_Xbsd_main=no
7950 rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext
7952 LIBS=$ac_check_lib_save_LIBS
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
7955 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7956 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
7957 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
7962 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7963 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 ac_check_lib_save_LIBS=$LIBS
7967 LIBS="-lpthreads $LIBS"
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7971 /* Override any GCC internal prototype to avoid an error.
7972 Use char because int might match the return type of a GCC
7973 builtin and then its argument prototype would still apply. */
7974 #ifdef __cplusplus
7975 extern "C"
7976 #endif
7977 char cma_open ();
7979 main ()
7981 return cma_open ();
7983 return 0;
7985 _ACEOF
7986 if ac_fn_c_try_link "$LINENO"; then :
7987 ac_cv_lib_pthreads_cma_open=yes
7988 else
7989 ac_cv_lib_pthreads_cma_open=no
7991 rm -f core conftest.err conftest.$ac_objext \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
7996 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7997 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
7998 cat >>confdefs.h <<_ACEOF
7999 #define HAVE_LIBPTHREADS 1
8000 _ACEOF
8002 LIBS="-lpthreads $LIBS"
8007 ## Note: when using cpp in s/aix4.2.h, this definition depended on
8008 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
8009 ## the system file was sourced. Hence the value of LIBS_SYSTEM
8010 ## added to LIBS in configure would never contain the pthreads part,
8011 ## but the value used in Makefiles might. FIXME?
8013 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
8014 ## be harmless on older versions of X where it happens to exist.
8015 test "$opsys" = "aix4-2" && \
8016 test $ac_cv_lib_pthreads_cma_open = yes && \
8017 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
8020 case ${host_os} in
8021 aix*)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
8023 $as_echo_n "checking for -bbigtoc option... " >&6; }
8024 if test "${gdb_cv_bigtoc+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8026 else
8028 case $GCC in
8029 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
8030 *) gdb_cv_bigtoc=-bbigtoc ;;
8031 esac
8033 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8038 main ()
8040 int i;
8042 return 0;
8044 _ACEOF
8045 if ac_fn_c_try_link "$LINENO"; then :
8047 else
8048 gdb_cv_bigtoc=
8050 rm -f core conftest.err conftest.$ac_objext \
8051 conftest$ac_exeext conftest.$ac_ext
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
8055 $as_echo "$gdb_cv_bigtoc" >&6; }
8057 esac
8059 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
8060 # used for the tests that follow. We set them back to REAL_CFLAGS and
8061 # REAL_CPPFLAGS later on.
8063 REAL_CPPFLAGS="$CPPFLAGS"
8065 if test "${HAVE_X11}" = "yes"; then
8066 DEFS="$C_SWITCH_X_SITE $DEFS"
8067 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
8068 LIBS="$LIBX $LIBS"
8069 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
8070 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
8072 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
8073 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
8074 # but it's more convenient here to set LD_RUN_PATH
8075 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
8076 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
8077 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
8078 export LD_RUN_PATH
8081 if test "${opsys}" = "gnu-linux"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
8083 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8088 main ()
8090 XOpenDisplay ("foo");
8092 return 0;
8094 _ACEOF
8095 if ac_fn_c_try_link "$LINENO"; then :
8096 xlinux_first_failure=no
8097 else
8098 xlinux_first_failure=yes
8100 rm -f core conftest.err conftest.$ac_objext \
8101 conftest$ac_exeext conftest.$ac_ext
8102 if test "${xlinux_first_failure}" = "yes"; then
8103 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
8104 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
8105 OLD_CPPFLAGS="$CPPFLAGS"
8106 OLD_LIBS="$LIBS"
8107 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
8108 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
8109 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
8110 LIBS="$LIBS -b i486-linuxaout"
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8115 main ()
8117 XOpenDisplay ("foo");
8119 return 0;
8121 _ACEOF
8122 if ac_fn_c_try_link "$LINENO"; then :
8123 xlinux_second_failure=no
8124 else
8125 xlinux_second_failure=yes
8127 rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
8129 if test "${xlinux_second_failure}" = "yes"; then
8130 # If we get the same failure with -b, there is no use adding -b.
8131 # So take it out. This plays safe.
8132 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8133 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8134 CPPFLAGS="$OLD_CPPFLAGS"
8135 LIBS="$OLD_LIBS"
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 else
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8140 $as_echo "yes" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8148 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8149 # header files included from there.
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
8151 $as_echo_n "checking for Xkb... " >&6; }
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 #include <X11/Xlib.h>
8155 #include <X11/XKBlib.h>
8157 main ()
8159 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8161 return 0;
8163 _ACEOF
8164 if ac_fn_c_try_link "$LINENO"; then :
8165 emacs_xkb=yes
8166 else
8167 emacs_xkb=no
8169 rm -f core conftest.err conftest.$ac_objext \
8170 conftest$ac_exeext conftest.$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
8172 $as_echo "$emacs_xkb" >&6; }
8173 if test $emacs_xkb = yes; then
8175 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
8179 for ac_func in XrmSetDatabase XScreenResourceString \
8180 XScreenNumberOfScreen XSetWMProtocols
8181 do :
8182 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8184 eval as_val=\$$as_ac_var
8185 if test "x$as_val" = x""yes; then :
8186 cat >>confdefs.h <<_ACEOF
8187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8188 _ACEOF
8191 done
8195 if test "${window_system}" = "x11"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
8197 $as_echo_n "checking X11 version 6... " >&6; }
8198 if test "${emacs_cv_x11_version_6+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8200 else
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203 #include <X11/Xlib.h>
8205 main ()
8207 #if XlibSpecificationRelease < 6
8208 fail;
8209 #endif
8212 return 0;
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 emacs_cv_x11_version_6=yes
8217 else
8218 emacs_cv_x11_version_6=no
8220 rm -f core conftest.err conftest.$ac_objext \
8221 conftest$ac_exeext conftest.$ac_ext
8224 if test $emacs_cv_x11_version_6 = yes; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
8226 $as_echo "6 or newer" >&6; }
8228 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
8230 else
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
8232 $as_echo "before 6" >&6; }
8237 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
8238 HAVE_RSVG=no
8239 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8240 if test "${with_rsvg}" != "no"; then
8241 RSVG_REQUIRED=2.11.0
8242 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
8245 succeeded=no
8247 # Extract the first word of "pkg-config", so it can be a program name with args.
8248 set dummy pkg-config; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 case $PKG_CONFIG in
8255 [\\/]* | ?:[\\/]*)
8256 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 for as_dir in $PATH
8262 IFS=$as_save_IFS
8263 test -z "$as_dir" && as_dir=.
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8266 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 break 2
8270 done
8271 done
8272 IFS=$as_save_IFS
8274 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8276 esac
8278 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8279 if test -n "$PKG_CONFIG"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8281 $as_echo "$PKG_CONFIG" >&6; }
8282 else
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8289 if test "$PKG_CONFIG" = "no" ; then
8291 else
8292 PKG_CONFIG_MIN_VERSION=0.9.0
8293 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
8295 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8297 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8299 $as_echo "yes" >&6; }
8300 succeeded=yes
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
8303 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8304 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
8306 $as_echo "$RSVG_CFLAGS" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
8309 $as_echo_n "checking RSVG_LIBS... " >&6; }
8310 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
8312 $as_echo "$RSVG_LIBS" >&6; }
8313 else
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8316 RSVG_CFLAGS=""
8317 RSVG_LIBS=""
8318 ## If we have a custom action on failure, don't print errors, but
8319 ## do set a variable so people can do so.
8320 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
8326 else
8327 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8328 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8332 if test $succeeded = yes; then
8334 else
8341 if test ".${RSVG_CFLAGS}" != "."; then
8342 HAVE_RSVG=yes
8344 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
8346 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8347 LIBS="$RSVG_LIBS $LIBS"
8352 HAVE_IMAGEMAGICK=no
8353 if test "${with_imagemagick}" != "no"; then
8354 IMAGEMAGICK_MODULE="Wand"
8356 succeeded=no
8358 # Extract the first word of "pkg-config", so it can be a program name with args.
8359 set dummy pkg-config; ac_word=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 case $PKG_CONFIG in
8366 [\\/]* | ?:[\\/]*)
8367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8381 done
8382 done
8383 IFS=$as_save_IFS
8385 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8387 esac
8389 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8390 if test -n "$PKG_CONFIG"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8392 $as_echo "$PKG_CONFIG" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8400 if test "$PKG_CONFIG" = "no" ; then
8402 else
8403 PKG_CONFIG_MIN_VERSION=0.9.0
8404 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
8406 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
8408 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410 $as_echo "yes" >&6; }
8411 succeeded=yes
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
8414 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
8415 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
8417 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
8420 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
8421 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
8423 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 IMAGEMAGICK_CFLAGS=""
8428 IMAGEMAGICK_LIBS=""
8429 ## If we have a custom action on failure, don't print errors, but
8430 ## do set a variable so people can do so.
8431 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
8437 else
8438 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8439 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8443 if test $succeeded = yes; then
8445 else
8452 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
8453 HAVE_IMAGEMAGICK=yes
8455 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
8457 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
8458 LIBS="$IMAGEMAGICK_LIBS $LIBS"
8462 $as_echo "#define HAVE_MAGICKEXPORTIMAGEPIXELS 1" >>confdefs.h
8467 for ac_func in $ac_func_list
8468 do :
8469 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8470 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8471 eval as_val=\$$as_ac_var
8472 if test "x$as_val" = x""yes; then :
8473 cat >>confdefs.h <<_ACEOF
8474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8475 _ACEOF
8478 done
8487 HAVE_GTK=no
8488 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8489 GLIB_REQUIRED=2.6
8490 GTK_REQUIRED=2.6
8491 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
8494 succeeded=no
8496 # Extract the first word of "pkg-config", so it can be a program name with args.
8497 set dummy pkg-config; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 case $PKG_CONFIG in
8504 [\\/]* | ?:[\\/]*)
8505 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8519 done
8520 done
8521 IFS=$as_save_IFS
8523 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8525 esac
8527 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8528 if test -n "$PKG_CONFIG"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8530 $as_echo "$PKG_CONFIG" >&6; }
8531 else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8538 if test "$PKG_CONFIG" = "no" ; then
8539 pkg_check_gtk=no
8540 else
8541 PKG_CONFIG_MIN_VERSION=0.9.0
8542 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
8544 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8546 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8548 $as_echo "yes" >&6; }
8549 succeeded=yes
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
8552 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8553 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
8555 $as_echo "$GTK_CFLAGS" >&6; }
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
8558 $as_echo_n "checking GTK_LIBS... " >&6; }
8559 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
8561 $as_echo "$GTK_LIBS" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8565 GTK_CFLAGS=""
8566 GTK_LIBS=""
8567 ## If we have a custom action on failure, don't print errors, but
8568 ## do set a variable so people can do so.
8569 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
8575 else
8576 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8577 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8581 if test $succeeded = yes; then
8582 pkg_check_gtk=yes
8583 else
8584 pkg_check_gtk=no
8587 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8588 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
8593 GTK_OBJ=
8594 if test x"$pkg_check_gtk" = xyes; then
8598 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8599 CFLAGS="$CFLAGS $GTK_CFLAGS"
8600 LIBS="$GTK_LIBS $LIBS"
8601 GTK_COMPILES=no
8602 for ac_func in gtk_main
8603 do :
8604 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
8605 if test "x$ac_cv_func_gtk_main" = x""yes; then :
8606 cat >>confdefs.h <<_ACEOF
8607 #define HAVE_GTK_MAIN 1
8608 _ACEOF
8609 GTK_COMPILES=yes
8611 done
8613 if test "${GTK_COMPILES}" != "yes"; then
8614 if test "$USE_X_TOOLKIT" != "maybe"; then
8615 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
8617 else
8618 HAVE_GTK=yes
8620 $as_echo "#define USE_GTK 1" >>confdefs.h
8622 GTK_OBJ=gtkutil.o
8623 USE_X_TOOLKIT=none
8624 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
8628 closing open displays. This is no problem if you just use
8629 one display, but if you use more than one and close one of them
8630 Emacs may crash." >&5
8631 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8632 closing open displays. This is no problem if you just use
8633 one display, but if you use more than one and close one of them
8634 Emacs may crash." >&2;}
8635 sleep 3
8643 if test "${HAVE_GTK}" = "yes"; then
8645 if test "$with_toolkit_scroll_bars" != no; then
8646 with_toolkit_scroll_bars=yes
8649 HAVE_GTK_MULTIDISPLAY=no
8650 for ac_func in gdk_display_open
8651 do :
8652 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
8653 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
8654 cat >>confdefs.h <<_ACEOF
8655 #define HAVE_GDK_DISPLAY_OPEN 1
8656 _ACEOF
8657 HAVE_GTK_MULTIDISPLAY=yes
8659 done
8661 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8663 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
8667 HAVE_GTK_FILE_SELECTION=no
8668 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
8669 #include <gtk/gtk.h>
8671 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
8672 HAVE_GTK_FILE_SELECTION=yes
8673 else
8674 HAVE_GTK_FILE_SELECTION=no
8677 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8678 for ac_func in gtk_file_selection_new
8679 do :
8680 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
8681 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
8682 cat >>confdefs.h <<_ACEOF
8683 #define HAVE_GTK_FILE_SELECTION_NEW 1
8684 _ACEOF
8685 HAVE_GTK_FILE_SELECTION=yes
8686 else
8687 HAVE_GTK_FILE_SELECTION=no
8689 done
8693 HAVE_GTK_FILE_CHOOSER=no
8694 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
8695 #include <gtk/gtk.h>
8697 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
8698 HAVE_GTK_FILE_CHOOSER=yes
8699 else
8700 HAVE_GTK_FILE_CHOOSER=no
8703 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8704 for ac_func in gtk_file_chooser_dialog_new
8705 do :
8706 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
8707 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
8710 _ACEOF
8711 HAVE_GTK_FILE_CHOOSER=yes
8712 else
8713 HAVE_GTK_FILE_CHOOSER=no
8715 done
8719 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8720 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8722 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
8726 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8727 HAVE_GTK_AND_PTHREAD=no
8728 for ac_header in pthread.h
8729 do :
8730 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8731 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_PTHREAD_H 1
8734 _ACEOF
8738 done
8740 if test "$ac_cv_header_pthread_h"; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
8742 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8743 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 ac_check_lib_save_LIBS=$LIBS
8747 LIBS="-lpthread $LIBS"
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8751 /* Override any GCC internal prototype to avoid an error.
8752 Use char because int might match the return type of a GCC
8753 builtin and then its argument prototype would still apply. */
8754 #ifdef __cplusplus
8755 extern "C"
8756 #endif
8757 char pthread_self ();
8759 main ()
8761 return pthread_self ();
8763 return 0;
8765 _ACEOF
8766 if ac_fn_c_try_link "$LINENO"; then :
8767 ac_cv_lib_pthread_pthread_self=yes
8768 else
8769 ac_cv_lib_pthread_pthread_self=no
8771 rm -f core conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8773 LIBS=$ac_check_lib_save_LIBS
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
8776 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8777 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
8778 HAVE_GTK_AND_PTHREAD=yes
8782 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8783 case "${canonical}" in
8784 *-hpux*) ;;
8785 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8786 esac
8788 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
8794 HAVE_DBUS=no
8795 DBUS_OBJ=
8796 if test "${with_dbus}" = "yes"; then
8798 succeeded=no
8800 # Extract the first word of "pkg-config", so it can be a program name with args.
8801 set dummy pkg-config; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 case $PKG_CONFIG in
8808 [\\/]* | ?:[\\/]*)
8809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813 for as_dir in $PATH
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8823 done
8824 done
8825 IFS=$as_save_IFS
8827 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8829 esac
8831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8832 if test -n "$PKG_CONFIG"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8834 $as_echo "$PKG_CONFIG" >&6; }
8835 else
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8842 if test "$PKG_CONFIG" = "no" ; then
8843 HAVE_DBUS=no
8844 else
8845 PKG_CONFIG_MIN_VERSION=0.9.0
8846 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
8848 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8850 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8852 $as_echo "yes" >&6; }
8853 succeeded=yes
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
8856 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8857 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
8859 $as_echo "$DBUS_CFLAGS" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
8862 $as_echo_n "checking DBUS_LIBS... " >&6; }
8863 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
8865 $as_echo "$DBUS_LIBS" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8869 DBUS_CFLAGS=""
8870 DBUS_LIBS=""
8871 ## If we have a custom action on failure, don't print errors, but
8872 ## do set a variable so people can do so.
8873 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
8879 else
8880 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8881 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8885 if test $succeeded = yes; then
8886 HAVE_DBUS=yes
8887 else
8888 HAVE_DBUS=no
8891 if test "$HAVE_DBUS" = yes; then
8892 LIBS="$LIBS $DBUS_LIBS"
8894 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
8896 for ac_func in dbus_watch_get_unix_fd
8897 do :
8898 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
8899 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
8900 cat >>confdefs.h <<_ACEOF
8901 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
8902 _ACEOF
8905 done
8907 DBUS_OBJ=dbusbind.o
8912 HAVE_GCONF=no
8913 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8915 succeeded=no
8917 # Extract the first word of "pkg-config", so it can be a program name with args.
8918 set dummy pkg-config; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 case $PKG_CONFIG in
8925 [\\/]* | ?:[\\/]*)
8926 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8940 done
8941 done
8942 IFS=$as_save_IFS
8944 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8946 esac
8948 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8949 if test -n "$PKG_CONFIG"; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8951 $as_echo "$PKG_CONFIG" >&6; }
8952 else
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8954 $as_echo "no" >&6; }
8959 if test "$PKG_CONFIG" = "no" ; then
8960 HAVE_GCONF=no
8961 else
8962 PKG_CONFIG_MIN_VERSION=0.9.0
8963 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
8965 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8967 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8969 $as_echo "yes" >&6; }
8970 succeeded=yes
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
8973 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8974 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
8976 $as_echo "$GCONF_CFLAGS" >&6; }
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
8979 $as_echo_n "checking GCONF_LIBS... " >&6; }
8980 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
8982 $as_echo "$GCONF_LIBS" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8986 GCONF_CFLAGS=""
8987 GCONF_LIBS=""
8988 ## If we have a custom action on failure, don't print errors, but
8989 ## do set a variable so people can do so.
8990 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
8996 else
8997 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8998 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9002 if test $succeeded = yes; then
9003 HAVE_GCONF=yes
9004 else
9005 HAVE_GCONF=no
9008 if test "$HAVE_GCONF" = yes; then
9010 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
9015 HAVE_LIBSELINUX=no
9016 LIBSELINUX_LIBS=
9017 if test "${with_selinux}" = "yes"; then
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
9019 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
9020 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 ac_check_lib_save_LIBS=$LIBS
9024 LIBS="-lselinux $LIBS"
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9028 /* Override any GCC internal prototype to avoid an error.
9029 Use char because int might match the return type of a GCC
9030 builtin and then its argument prototype would still apply. */
9031 #ifdef __cplusplus
9032 extern "C"
9033 #endif
9034 char lgetfilecon ();
9036 main ()
9038 return lgetfilecon ();
9040 return 0;
9042 _ACEOF
9043 if ac_fn_c_try_link "$LINENO"; then :
9044 ac_cv_lib_selinux_lgetfilecon=yes
9045 else
9046 ac_cv_lib_selinux_lgetfilecon=no
9048 rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9050 LIBS=$ac_check_lib_save_LIBS
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
9053 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
9054 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
9055 HAVE_LIBSELINUX=yes
9056 else
9057 HAVE_LIBSELINUX=no
9060 if test "$HAVE_LIBSELINUX" = yes; then
9062 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
9064 LIBSELINUX_LIBS=-lselinux
9069 HAVE_XAW3D=no
9070 LUCID_LIBW=
9071 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
9072 if test "$with_xaw3d" != no; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
9074 $as_echo_n "checking for xaw3d... " >&6; }
9075 if test "${emacs_cv_xaw3d+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9081 #include <X11/Intrinsic.h>
9082 #include <X11/Xaw3d/Simple.h>
9084 main ()
9088 return 0;
9090 _ACEOF
9091 if ac_fn_c_try_link "$LINENO"; then :
9092 emacs_cv_xaw3d=yes
9093 else
9094 emacs_cv_xaw3d=no
9096 rm -f core conftest.err conftest.$ac_objext \
9097 conftest$ac_exeext conftest.$ac_ext
9100 else
9101 emacs_cv_xaw3d=no
9103 if test $emacs_cv_xaw3d = yes; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9105 $as_echo "yes; using Lucid toolkit" >&6; }
9106 USE_X_TOOLKIT=LUCID
9107 HAVE_XAW3D=yes
9108 LUCID_LIBW=-lXaw3d
9110 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
9112 else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
9116 $as_echo_n "checking for libXaw... " >&6; }
9117 if test "${emacs_cv_xaw+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9123 #include <X11/Intrinsic.h>
9124 #include <X11/Xaw/Simple.h>
9126 main ()
9130 return 0;
9132 _ACEOF
9133 if ac_fn_c_try_link "$LINENO"; then :
9134 emacs_cv_xaw=yes
9135 else
9136 emacs_cv_xaw=no
9138 rm -f core conftest.err conftest.$ac_objext \
9139 conftest$ac_exeext conftest.$ac_ext
9142 if test $emacs_cv_xaw = yes; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
9144 $as_echo "yes; using Lucid toolkit" >&6; }
9145 USE_X_TOOLKIT=LUCID
9146 LUCID_LIBW=-lXaw
9147 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
9148 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
9151 $as_echo "no; do not use toolkit by default" >&6; }
9152 USE_X_TOOLKIT=none
9157 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
9159 LIBXTR6=
9160 if test "${USE_X_TOOLKIT}" != "none"; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
9162 $as_echo_n "checking X11 toolkit version... " >&6; }
9163 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168 #include <X11/Intrinsic.h>
9170 main ()
9172 #if XtSpecificationRelease < 6
9173 fail;
9174 #endif
9177 return 0;
9179 _ACEOF
9180 if ac_fn_c_try_link "$LINENO"; then :
9181 emacs_cv_x11_toolkit_version_6=yes
9182 else
9183 emacs_cv_x11_toolkit_version_6=no
9185 rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9189 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
9190 if test $emacs_cv_x11_toolkit_version_6 = yes; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9192 $as_echo "6 or newer" >&6; }
9194 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
9196 LIBXTR6="-lSM -lICE"
9197 case "$opsys" in
9198 ## Use libw.a along with X11R6 Xt.
9199 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
9200 esac
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9203 $as_echo "before 6" >&6; }
9206 OLDLIBS="$LIBS"
9207 if test x$HAVE_X11XTR6 = xyes; then
9208 LIBS="-lXt -lSM -lICE $LIBS"
9209 else
9210 LIBS="-lXt $LIBS"
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
9213 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
9214 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 ac_check_lib_save_LIBS=$LIBS
9218 LIBS="-lXmu $LIBS"
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 char XmuConvertStandardSelection ();
9230 main ()
9232 return XmuConvertStandardSelection ();
9234 return 0;
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"; then :
9238 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
9239 else
9240 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
9242 rm -f core conftest.err conftest.$ac_objext \
9243 conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
9247 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
9248 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
9249 cat >>confdefs.h <<_ACEOF
9250 #define HAVE_LIBXMU 1
9251 _ACEOF
9253 LIBS="-lXmu $LIBS"
9257 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
9261 LIBXMU=-lXmu
9262 case "$machine" in
9263 ## These machines don't supply Xmu.
9264 hpux* | aix4-2 )
9265 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
9267 esac
9270 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9271 if test "${HAVE_X11}" = "yes"; then
9272 if test "${USE_X_TOOLKIT}" != "none"; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9274 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9275 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 ac_check_lib_save_LIBS=$LIBS
9279 LIBS="-lXext $LIBS"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 char XShapeQueryExtension ();
9291 main ()
9293 return XShapeQueryExtension ();
9295 return 0;
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 ac_cv_lib_Xext_XShapeQueryExtension=yes
9300 else
9301 ac_cv_lib_Xext_XShapeQueryExtension=no
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9308 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9309 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
9310 cat >>confdefs.h <<_ACEOF
9311 #define HAVE_LIBXEXT 1
9312 _ACEOF
9314 LIBS="-lXext $LIBS"
9321 LIBXP=
9322 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
9324 $as_echo_n "checking for Motif version 2.1... " >&6; }
9325 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330 #include <Xm/Xm.h>
9332 main ()
9334 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
9335 int x = 5;
9336 #else
9337 Motif version prior to 2.1.
9338 #endif
9340 return 0;
9342 _ACEOF
9343 if ac_fn_c_try_compile "$LINENO"; then :
9344 emacs_cv_motif_version_2_1=yes
9345 else
9346 emacs_cv_motif_version_2_1=no
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
9351 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9352 if test $emacs_cv_motif_version_2_1 = yes; then
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
9354 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9355 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
9356 $as_echo_n "(cached) " >&6
9357 else
9358 ac_check_lib_save_LIBS=$LIBS
9359 LIBS="-lXp $LIBS"
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 char XpCreateContext ();
9371 main ()
9373 return XpCreateContext ();
9375 return 0;
9377 _ACEOF
9378 if ac_fn_c_try_link "$LINENO"; then :
9379 ac_cv_lib_Xp_XpCreateContext=yes
9380 else
9381 ac_cv_lib_Xp_XpCreateContext=no
9383 rm -f core conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
9385 LIBS=$ac_check_lib_save_LIBS
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9388 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9389 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
9390 LIBXP=-lXp
9393 else
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
9395 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9396 if test "${emacs_cv_lesstif+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 # We put this in CFLAGS temporarily to precede other -I options
9400 # that might be in CFLAGS temporarily.
9401 # We put this in CPPFLAGS where it precedes the other -I options.
9402 OLD_CPPFLAGS=$CPPFLAGS
9403 OLD_CFLAGS=$CFLAGS
9404 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9405 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9410 main ()
9412 int x = 5;
9414 return 0;
9416 _ACEOF
9417 if ac_fn_c_try_compile "$LINENO"; then :
9418 emacs_cv_lesstif=yes
9419 else
9420 emacs_cv_lesstif=no
9422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
9425 $as_echo "$emacs_cv_lesstif" >&6; }
9426 if test $emacs_cv_lesstif = yes; then
9427 # Make sure this -I option remains in CPPFLAGS after it is set
9428 # back to REAL_CPPFLAGS.
9429 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9430 # have those other -I options anyway. Ultimately, having this
9431 # directory ultimately in CPPFLAGS will be enough.
9432 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
9433 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
9434 else
9435 CFLAGS=$OLD_CFLAGS
9436 CPPFLAGS=$OLD_CPPFLAGS
9442 USE_TOOLKIT_SCROLL_BARS=no
9443 if test "${with_toolkit_scroll_bars}" != "no"; then
9444 if test "${USE_X_TOOLKIT}" != "none"; then
9445 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9446 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9448 HAVE_XAW3D=no
9449 USE_TOOLKIT_SCROLL_BARS=yes
9450 elif test "${HAVE_XAW3D}" = "yes"; then
9451 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9453 USE_TOOLKIT_SCROLL_BARS=yes
9455 elif test "${HAVE_GTK}" = "yes"; then
9456 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9458 USE_TOOLKIT_SCROLL_BARS=yes
9459 elif test "${HAVE_NS}" = "yes"; then
9460 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
9462 USE_TOOLKIT_SCROLL_BARS=yes
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9469 #include <X11/Xlib.h>
9470 #include <X11/Xresource.h>
9472 main ()
9474 XIMProc callback;
9476 return 0;
9478 _ACEOF
9479 if ac_fn_c_try_compile "$LINENO"; then :
9480 HAVE_XIM=yes
9482 $as_echo "#define HAVE_XIM 1" >>confdefs.h
9484 else
9485 HAVE_XIM=no
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 if test "${with_xim}" != "no"; then
9492 $as_echo "#define USE_XIM 1" >>confdefs.h
9497 if test "${HAVE_XIM}" != "no"; then
9498 late_CFLAGS=$CFLAGS
9499 if test "$GCC" = yes; then
9500 CFLAGS="$CFLAGS --pedantic-errors"
9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 /* end confdefs.h. */
9505 #include <X11/Xlib.h>
9506 #include <X11/Xresource.h>
9508 main ()
9510 Display *display;
9511 XrmDatabase db;
9512 char *res_name;
9513 char *res_class;
9514 XIMProc callback;
9515 XPointer *client_data;
9516 #ifndef __GNUC__
9517 /* If we're not using GCC, it's probably not XFree86, and this is
9518 probably right, but we can't use something like --pedantic-errors. */
9519 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9520 char*, XIMProc, XPointer*);
9521 #endif
9522 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
9523 client_data);
9525 return 0;
9527 _ACEOF
9528 if ac_fn_c_try_compile "$LINENO"; then :
9529 emacs_cv_arg6_star=yes
9531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9532 if test "$emacs_cv_arg6_star" = yes; then
9533 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
9535 else
9536 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
9539 CFLAGS=$late_CFLAGS
9542 ### Start of font-backend (under any platform) section.
9543 # (nothing here yet -- this is a placeholder)
9544 ### End of font-backend (under any platform) section.
9546 ### Start of font-backend (under X11) section.
9547 if test "${HAVE_X11}" = "yes"; then
9549 succeeded=no
9551 # Extract the first word of "pkg-config", so it can be a program name with args.
9552 set dummy pkg-config; ac_word=$2
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 $as_echo_n "checking for $ac_word... " >&6; }
9555 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 case $PKG_CONFIG in
9559 [\\/]* | ?:[\\/]*)
9560 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 for as_dir in $PATH
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 break 2
9574 done
9575 done
9576 IFS=$as_save_IFS
9578 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9580 esac
9582 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9583 if test -n "$PKG_CONFIG"; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9585 $as_echo "$PKG_CONFIG" >&6; }
9586 else
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588 $as_echo "no" >&6; }
9593 if test "$PKG_CONFIG" = "no" ; then
9594 HAVE_FC=no
9595 else
9596 PKG_CONFIG_MIN_VERSION=0.9.0
9597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
9599 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9601 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9603 $as_echo "yes" >&6; }
9604 succeeded=yes
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
9607 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9608 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
9610 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
9613 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9614 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
9616 $as_echo "$FONTCONFIG_LIBS" >&6; }
9617 else
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 FONTCONFIG_CFLAGS=""
9621 FONTCONFIG_LIBS=""
9622 ## If we have a custom action on failure, don't print errors, but
9623 ## do set a variable so people can do so.
9624 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
9630 else
9631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9636 if test $succeeded = yes; then
9637 HAVE_FC=yes
9638 else
9639 HAVE_FC=no
9643 ## Use -lXft if available, unless `--with-xft=no'.
9644 HAVE_XFT=maybe
9645 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
9646 with_xft="no";
9648 if test "x${with_xft}" != "xno"; then
9651 succeeded=no
9653 # Extract the first word of "pkg-config", so it can be a program name with args.
9654 set dummy pkg-config; ac_word=$2
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 $as_echo_n "checking for $ac_word... " >&6; }
9657 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 case $PKG_CONFIG in
9661 [\\/]* | ?:[\\/]*)
9662 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 for as_dir in $PATH
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9672 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674 break 2
9676 done
9677 done
9678 IFS=$as_save_IFS
9680 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9682 esac
9684 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9685 if test -n "$PKG_CONFIG"; then
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9687 $as_echo "$PKG_CONFIG" >&6; }
9688 else
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9695 if test "$PKG_CONFIG" = "no" ; then
9696 HAVE_XFT=no
9697 else
9698 PKG_CONFIG_MIN_VERSION=0.9.0
9699 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
9701 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9703 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9705 $as_echo "yes" >&6; }
9706 succeeded=yes
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
9709 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9710 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
9712 $as_echo "$XFT_CFLAGS" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
9715 $as_echo_n "checking XFT_LIBS... " >&6; }
9716 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
9718 $as_echo "$XFT_LIBS" >&6; }
9719 else
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721 $as_echo "no" >&6; }
9722 XFT_CFLAGS=""
9723 XFT_LIBS=""
9724 ## If we have a custom action on failure, don't print errors, but
9725 ## do set a variable so people can do so.
9726 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
9732 else
9733 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9734 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9738 if test $succeeded = yes; then
9740 else
9741 HAVE_XFT=no
9744 ## Because xftfont.c uses XRenderQueryExtension, we also
9745 ## need to link to -lXrender.
9746 HAVE_XRENDER=no
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
9748 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9749 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 ac_check_lib_save_LIBS=$LIBS
9753 LIBS="-lXrender $LIBS"
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char XRenderQueryExtension ();
9765 main ()
9767 return XRenderQueryExtension ();
9769 return 0;
9771 _ACEOF
9772 if ac_fn_c_try_link "$LINENO"; then :
9773 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9774 else
9775 ac_cv_lib_Xrender_XRenderQueryExtension=no
9777 rm -f core conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9779 LIBS=$ac_check_lib_save_LIBS
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9782 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9783 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
9784 HAVE_XRENDER=yes
9787 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9788 OLD_CPPFLAGS="$CPPFLAGS"
9789 OLD_CFLAGS="$CFLAGS"
9790 OLD_LIBS="$LIBS"
9791 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9792 CFLAGS="$CFLAGS $XFT_CFLAGS"
9793 XFT_LIBS="-lXrender $XFT_LIBS"
9794 LIBS="$XFT_LIBS $LIBS"
9795 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
9796 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
9798 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9799 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9801 else
9802 ac_check_lib_save_LIBS=$LIBS
9803 LIBS="-lXft $XFT_LIBS $LIBS"
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9807 /* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9810 #ifdef __cplusplus
9811 extern "C"
9812 #endif
9813 char XftFontOpen ();
9815 main ()
9817 return XftFontOpen ();
9819 return 0;
9821 _ACEOF
9822 if ac_fn_c_try_link "$LINENO"; then :
9823 ac_cv_lib_Xft_XftFontOpen=yes
9824 else
9825 ac_cv_lib_Xft_XftFontOpen=no
9827 rm -f core conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829 LIBS=$ac_check_lib_save_LIBS
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9832 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9833 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
9834 HAVE_XFT=yes
9841 if test "${HAVE_XFT}" = "yes"; then
9843 $as_echo "#define HAVE_XFT 1" >>confdefs.h
9846 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9847 else
9848 CPPFLAGS="$OLD_CPPFLAGS"
9849 CFLAGS="$OLD_CFLAGS"
9850 LIBS="$OLD_LIBS"
9851 fi # "${HAVE_XFT}" = "yes"
9852 fi # "$HAVE_XFT" != no
9853 fi # "x${with_xft}" != "xno"
9855 if test "$HAVE_XFT" != "yes"; then
9856 HAVE_XFT=no
9860 HAVE_FREETYPE=no
9861 ## We used to allow building with FreeType and without Xft.
9862 ## However, the ftx font backend driver is not in good shape.
9863 if test "${HAVE_XFT}" = "yes"; then
9864 HAVE_FREETYPE=yes
9865 FONTCONFIG_CFLAGS=
9866 FONTCONFIG_LIBS=
9869 HAVE_LIBOTF=no
9870 if test "${HAVE_FREETYPE}" = "yes"; then
9872 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9874 if test "${with_libotf}" != "no"; then
9876 succeeded=no
9878 # Extract the first word of "pkg-config", so it can be a program name with args.
9879 set dummy pkg-config; ac_word=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 case $PKG_CONFIG in
9886 [\\/]* | ?:[\\/]*)
9887 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 for as_dir in $PATH
9893 IFS=$as_save_IFS
9894 test -z "$as_dir" && as_dir=.
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9897 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 break 2
9901 done
9902 done
9903 IFS=$as_save_IFS
9905 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9907 esac
9909 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9910 if test -n "$PKG_CONFIG"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9912 $as_echo "$PKG_CONFIG" >&6; }
9913 else
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9920 if test "$PKG_CONFIG" = "no" ; then
9921 HAVE_LIBOTF=no
9922 else
9923 PKG_CONFIG_MIN_VERSION=0.9.0
9924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
9926 $as_echo_n "checking for libotf... " >&6; }
9928 if $PKG_CONFIG --exists "libotf" 2>&5; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9930 $as_echo "yes" >&6; }
9931 succeeded=yes
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
9934 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9935 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
9937 $as_echo "$LIBOTF_CFLAGS" >&6; }
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
9940 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9941 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
9943 $as_echo "$LIBOTF_LIBS" >&6; }
9944 else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9947 LIBOTF_CFLAGS=""
9948 LIBOTF_LIBS=""
9949 ## If we have a custom action on failure, don't print errors, but
9950 ## do set a variable so people can do so.
9951 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
9957 else
9958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9963 if test $succeeded = yes; then
9964 HAVE_LIBOTF=yes
9965 else
9966 HAVE_LIBOTF=no
9969 if test "$HAVE_LIBOTF" = "yes"; then
9971 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
9974 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9975 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 ac_check_lib_save_LIBS=$LIBS
9979 LIBS="-lotf $LIBS"
9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9983 /* Override any GCC internal prototype to avoid an error.
9984 Use char because int might match the return type of a GCC
9985 builtin and then its argument prototype would still apply. */
9986 #ifdef __cplusplus
9987 extern "C"
9988 #endif
9989 char OTF_get_variation_glyphs ();
9991 main ()
9993 return OTF_get_variation_glyphs ();
9995 return 0;
9997 _ACEOF
9998 if ac_fn_c_try_link "$LINENO"; then :
9999 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
10000 else
10001 ac_cv_lib_otf_OTF_get_variation_glyphs=no
10003 rm -f core conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005 LIBS=$ac_check_lib_save_LIBS
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
10008 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
10009 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
10010 HAVE_OTF_GET_VARIATION_GLYPHS=yes
10011 else
10012 HAVE_OTF_GET_VARIATION_GLYPHS=no
10015 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
10017 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
10024 HAVE_M17N_FLT=no
10025 if test "${HAVE_LIBOTF}" = yes; then
10026 if test "${with_m17n_flt}" != "no"; then
10028 succeeded=no
10030 # Extract the first word of "pkg-config", so it can be a program name with args.
10031 set dummy pkg-config; ac_word=$2
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033 $as_echo_n "checking for $ac_word... " >&6; }
10034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 case $PKG_CONFIG in
10038 [\\/]* | ?:[\\/]*)
10039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $PATH
10045 IFS=$as_save_IFS
10046 test -z "$as_dir" && as_dir=.
10047 for ac_exec_ext in '' $ac_executable_extensions; do
10048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051 break 2
10053 done
10054 done
10055 IFS=$as_save_IFS
10057 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10059 esac
10061 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10062 if test -n "$PKG_CONFIG"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10064 $as_echo "$PKG_CONFIG" >&6; }
10065 else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10072 if test "$PKG_CONFIG" = "no" ; then
10073 HAVE_M17N_FLT=no
10074 else
10075 PKG_CONFIG_MIN_VERSION=0.9.0
10076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
10078 $as_echo_n "checking for m17n-flt... " >&6; }
10080 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10082 $as_echo "yes" >&6; }
10083 succeeded=yes
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
10086 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
10087 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
10089 $as_echo "$M17N_FLT_CFLAGS" >&6; }
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
10092 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
10093 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
10095 $as_echo "$M17N_FLT_LIBS" >&6; }
10096 else
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098 $as_echo "no" >&6; }
10099 M17N_FLT_CFLAGS=""
10100 M17N_FLT_LIBS=""
10101 ## If we have a custom action on failure, don't print errors, but
10102 ## do set a variable so people can do so.
10103 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
10109 else
10110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10115 if test $succeeded = yes; then
10116 HAVE_M17N_FLT=yes
10117 else
10118 HAVE_M17N_FLT=no
10121 if test "$HAVE_M17N_FLT" = "yes"; then
10123 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
10128 else
10129 HAVE_XFT=no
10130 HAVE_FREETYPE=no
10131 HAVE_LIBOTF=no
10132 HAVE_M17N_FLT=no
10135 ### End of font-backend (under X11) section.
10146 ### Use -lXpm if available, unless `--with-xpm=no'.
10147 HAVE_XPM=no
10148 LIBXPM=
10149 if test "${HAVE_X11}" = "yes"; then
10150 if test "${with_xpm}" != "no"; then
10151 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
10152 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
10154 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
10155 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-lXpm -lX11 $LIBS"
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 char XpmReadFileToPixmap ();
10171 main ()
10173 return XpmReadFileToPixmap ();
10175 return 0;
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
10180 else
10181 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LIBS=$ac_check_lib_save_LIBS
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
10188 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
10189 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
10190 HAVE_XPM=yes
10196 if test "${HAVE_XPM}" = "yes"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
10198 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201 #include "X11/xpm.h"
10202 #ifndef XpmReturnAllocPixels
10203 no_return_alloc_pixels
10204 #endif
10206 _ACEOF
10207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10208 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
10209 HAVE_XPM=no
10210 else
10211 HAVE_XPM=yes
10213 rm -f conftest*
10216 if test "${HAVE_XPM}" = "yes"; then
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10218 $as_echo "yes" >&6; }
10219 else
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10226 if test "${HAVE_XPM}" = "yes"; then
10228 $as_echo "#define HAVE_XPM 1" >>confdefs.h
10230 LIBXPM=-lXpm
10235 ### Use -ljpeg if available, unless `--with-jpeg=no'.
10236 HAVE_JPEG=no
10237 LIBJPEG=
10238 if test "${HAVE_X11}" = "yes"; then
10239 if test "${with_jpeg}" != "no"; then
10240 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
10241 if test "x$ac_cv_header_jerror_h" = x""yes; then :
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
10243 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
10244 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-ljpeg $LIBS"
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10252 /* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
10255 #ifdef __cplusplus
10256 extern "C"
10257 #endif
10258 char jpeg_destroy_compress ();
10260 main ()
10262 return jpeg_destroy_compress ();
10264 return 0;
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10269 else
10270 ac_cv_lib_jpeg_jpeg_destroy_compress=no
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS=$ac_check_lib_save_LIBS
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10277 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10278 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
10279 HAVE_JPEG=yes
10287 if test "${HAVE_JPEG}" = "yes"; then
10288 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <jpeglib.h>
10293 version=JPEG_LIB_VERSION
10295 _ACEOF
10296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10297 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
10298 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
10300 else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
10302 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10303 HAVE_JPEG=no
10305 rm -f conftest*
10308 if test "${HAVE_JPEG}" = "yes"; then
10309 LIBJPEG=-ljpeg
10314 ### Use -lpng if available, unless `--with-png=no'.
10315 HAVE_PNG=no
10316 LIBPNG=
10317 if test "${HAVE_X11}" = "yes"; then
10318 if test "${with_png}" != "no"; then
10319 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10320 # in /usr/include/libpng.
10321 for ac_header in png.h libpng/png.h
10322 do :
10323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10324 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10325 eval as_val=\$$as_ac_Header
10326 if test "x$as_val" = x""yes; then :
10327 cat >>confdefs.h <<_ACEOF
10328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329 _ACEOF
10333 done
10335 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
10337 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10338 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 ac_check_lib_save_LIBS=$LIBS
10342 LIBS="-lpng -lz -lm $LIBS"
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10346 /* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10349 #ifdef __cplusplus
10350 extern "C"
10351 #endif
10352 char png_get_channels ();
10354 main ()
10356 return png_get_channels ();
10358 return 0;
10360 _ACEOF
10361 if ac_fn_c_try_link "$LINENO"; then :
10362 ac_cv_lib_png_png_get_channels=yes
10363 else
10364 ac_cv_lib_png_png_get_channels=no
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10368 LIBS=$ac_check_lib_save_LIBS
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
10371 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10372 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
10373 HAVE_PNG=yes
10379 if test "${HAVE_PNG}" = "yes"; then
10381 $as_echo "#define HAVE_PNG 1" >>confdefs.h
10383 LIBPNG="-lpng -lz -lm"
10388 ### Use -ltiff if available, unless `--with-tiff=no'.
10389 HAVE_TIFF=no
10390 LIBTIFF=
10391 if test "${HAVE_X11}" = "yes"; then
10392 if test "${with_tiff}" != "no"; then
10393 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
10394 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
10395 tifflibs="-lz -lm"
10396 # At least one tiff package requires the jpeg library.
10397 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
10399 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10400 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
10401 $as_echo_n "(cached) " >&6
10402 else
10403 ac_check_lib_save_LIBS=$LIBS
10404 LIBS="-ltiff $tifflibs $LIBS"
10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10411 #ifdef __cplusplus
10412 extern "C"
10413 #endif
10414 char TIFFGetVersion ();
10416 main ()
10418 return TIFFGetVersion ();
10420 return 0;
10422 _ACEOF
10423 if ac_fn_c_try_link "$LINENO"; then :
10424 ac_cv_lib_tiff_TIFFGetVersion=yes
10425 else
10426 ac_cv_lib_tiff_TIFFGetVersion=no
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 LIBS=$ac_check_lib_save_LIBS
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10433 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10434 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
10435 HAVE_TIFF=yes
10443 if test "${HAVE_TIFF}" = "yes"; then
10445 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
10447 LIBTIFF=-ltiff
10452 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10453 HAVE_GIF=no
10454 LIBGIF=
10455 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10456 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
10457 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
10458 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10459 # Earlier versions can crash Emacs.
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
10461 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10462 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 ac_check_lib_save_LIBS=$LIBS
10466 LIBS="-lgif $LIBS"
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10470 /* Override any GCC internal prototype to avoid an error.
10471 Use char because int might match the return type of a GCC
10472 builtin and then its argument prototype would still apply. */
10473 #ifdef __cplusplus
10474 extern "C"
10475 #endif
10476 char EGifPutExtensionLast ();
10478 main ()
10480 return EGifPutExtensionLast ();
10482 return 0;
10484 _ACEOF
10485 if ac_fn_c_try_link "$LINENO"; then :
10486 ac_cv_lib_gif_EGifPutExtensionLast=yes
10487 else
10488 ac_cv_lib_gif_EGifPutExtensionLast=no
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10492 LIBS=$ac_check_lib_save_LIBS
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10495 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10496 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
10497 HAVE_GIF=yes
10498 else
10499 HAVE_GIF=maybe
10506 if test "$HAVE_GIF" = yes; then
10507 LIBGIF=-lgif
10508 elif test "$HAVE_GIF" = maybe; then
10509 # If gif_lib.h but no libgif, try libungif.
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
10511 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10512 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-lungif $LIBS"
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10523 #ifdef __cplusplus
10524 extern "C"
10525 #endif
10526 char EGifPutExtensionLast ();
10528 main ()
10530 return EGifPutExtensionLast ();
10532 return 0;
10534 _ACEOF
10535 if ac_fn_c_try_link "$LINENO"; then :
10536 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10537 else
10538 ac_cv_lib_ungif_EGifPutExtensionLast=no
10540 rm -f core conftest.err conftest.$ac_objext \
10541 conftest$ac_exeext conftest.$ac_ext
10542 LIBS=$ac_check_lib_save_LIBS
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10545 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10546 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
10547 HAVE_GIF=yes
10548 else
10549 HAVE_GIF=no
10552 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10555 if test "${HAVE_GIF}" = "yes"; then
10557 $as_echo "#define HAVE_GIF 1" >>confdefs.h
10563 if test "${HAVE_X11}" = "yes"; then
10564 MISSING=""
10565 WITH_NO=""
10566 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
10567 MISSING="libXpm" && WITH_NO="--with-xpm=no"
10568 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
10569 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
10570 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
10571 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
10572 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
10573 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10574 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10575 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10577 if test "X${MISSING}" != X; then
10578 as_fn_error "The following required libraries were not found:
10579 $MISSING
10580 Maybe some development libraries/packages are missing?
10581 If you don't want to link with them give
10582 $WITH_NO
10583 as options to configure" "$LINENO" 5
10587 ### Use -lgpm if available, unless `--with-gpm=no'.
10588 HAVE_GPM=no
10589 LIBGPM=
10590 MOUSE_SUPPORT=
10591 if test "${with_gpm}" != "no"; then
10592 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
10593 if test "x$ac_cv_header_gpm_h" = x""yes; then :
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
10595 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10596 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
10597 $as_echo_n "(cached) " >&6
10598 else
10599 ac_check_lib_save_LIBS=$LIBS
10600 LIBS="-lgpm $LIBS"
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10604 /* Override any GCC internal prototype to avoid an error.
10605 Use char because int might match the return type of a GCC
10606 builtin and then its argument prototype would still apply. */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 char Gpm_Open ();
10612 main ()
10614 return Gpm_Open ();
10616 return 0;
10618 _ACEOF
10619 if ac_fn_c_try_link "$LINENO"; then :
10620 ac_cv_lib_gpm_Gpm_Open=yes
10621 else
10622 ac_cv_lib_gpm_Gpm_Open=no
10624 rm -f core conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10629 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10630 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
10631 HAVE_GPM=yes
10638 if test "${HAVE_GPM}" = "yes"; then
10640 $as_echo "#define HAVE_GPM 1" >>confdefs.h
10642 LIBGPM=-lgpm
10643 ## May be reset below.
10644 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
10649 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
10650 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
10652 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
10658 C_SWITCH_X_SYSTEM=
10659 ### Use NeXTstep API to implement GUI.
10660 if test "${HAVE_NS}" = "yes"; then
10662 $as_echo "#define HAVE_NS 1" >>confdefs.h
10664 if test "${NS_IMPL_COCOA}" = "yes"; then
10666 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
10668 GNU_OBJC_CFLAGS=
10670 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10672 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10674 # See also .m.o rule in Makefile.in */
10675 # FIXME: are all these flags really needed? Document here why. */
10676 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10677 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10679 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10681 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
10684 # We also have mouse menus.
10685 HAVE_MENUS=yes
10686 OTHER_FILES=ns-app
10690 ### Use session management (-lSM -lICE) if available
10691 HAVE_X_SM=no
10692 LIBXSM=
10693 if test "${HAVE_X11}" = "yes"; then
10694 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
10695 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
10697 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10698 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-lSM -lICE $LIBS"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char SmcOpenConnection ();
10714 main ()
10716 return SmcOpenConnection ();
10718 return 0;
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722 ac_cv_lib_SM_SmcOpenConnection=yes
10723 else
10724 ac_cv_lib_SM_SmcOpenConnection=no
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10731 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10732 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
10733 HAVE_X_SM=yes
10740 if test "${HAVE_X_SM}" = "yes"; then
10742 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10744 LIBXSM="-lSM -lICE"
10745 case "$LIBS" in
10746 *-lSM*) ;;
10747 *) LIBS="$LIBXSM $LIBS" ;;
10748 esac
10753 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
10755 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10756 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 #include <netdb.h>
10763 main ()
10765 return h_errno;
10767 return 0;
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 emacs_cv_netdb_declares_h_errno=yes
10772 else
10773 emacs_cv_netdb_declares_h_errno=no
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
10779 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10780 if test $emacs_cv_netdb_declares_h_errno = yes; then
10782 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
10786 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10787 # for constant arguments. Useless!
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10789 $as_echo_n "checking for working alloca.h... " >&6; }
10790 if test "${ac_cv_working_alloca_h+set}" = set; then :
10791 $as_echo_n "(cached) " >&6
10792 else
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 #include <alloca.h>
10797 main ()
10799 char *p = (char *) alloca (2 * sizeof (int));
10800 if (p) return 0;
10802 return 0;
10804 _ACEOF
10805 if ac_fn_c_try_link "$LINENO"; then :
10806 ac_cv_working_alloca_h=yes
10807 else
10808 ac_cv_working_alloca_h=no
10810 rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10814 $as_echo "$ac_cv_working_alloca_h" >&6; }
10815 if test $ac_cv_working_alloca_h = yes; then
10817 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10822 $as_echo_n "checking for alloca... " >&6; }
10823 if test "${ac_cv_func_alloca_works+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828 #ifdef __GNUC__
10829 # define alloca __builtin_alloca
10830 #else
10831 # ifdef _MSC_VER
10832 # include <malloc.h>
10833 # define alloca _alloca
10834 # else
10835 # ifdef HAVE_ALLOCA_H
10836 # include <alloca.h>
10837 # else
10838 # ifdef _AIX
10839 #pragma alloca
10840 # else
10841 # ifndef alloca /* predefined by HP cc +Olibcalls */
10842 char *alloca ();
10843 # endif
10844 # endif
10845 # endif
10846 # endif
10847 #endif
10850 main ()
10852 char *p = (char *) alloca (1);
10853 if (p) return 0;
10855 return 0;
10857 _ACEOF
10858 if ac_fn_c_try_link "$LINENO"; then :
10859 ac_cv_func_alloca_works=yes
10860 else
10861 ac_cv_func_alloca_works=no
10863 rm -f core conftest.err conftest.$ac_objext \
10864 conftest$ac_exeext conftest.$ac_ext
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10867 $as_echo "$ac_cv_func_alloca_works" >&6; }
10869 if test $ac_cv_func_alloca_works = yes; then
10871 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10873 else
10874 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10875 # that cause trouble. Some versions do not even contain alloca or
10876 # contain a buggy version. If you still want to use their alloca,
10877 # use ar to extract alloca.o from them instead of compiling alloca.c.
10879 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10881 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10885 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10886 if test "${ac_cv_os_cray+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 #if defined CRAY && ! defined CRAY2
10892 webecray
10893 #else
10894 wenotbecray
10895 #endif
10897 _ACEOF
10898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10899 $EGREP "webecray" >/dev/null 2>&1; then :
10900 ac_cv_os_cray=yes
10901 else
10902 ac_cv_os_cray=no
10904 rm -f conftest*
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10908 $as_echo "$ac_cv_os_cray" >&6; }
10909 if test $ac_cv_os_cray = yes; then
10910 for ac_func in _getb67 GETB67 getb67; do
10911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10912 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10913 eval as_val=\$$as_ac_var
10914 if test "x$as_val" = x""yes; then :
10916 cat >>confdefs.h <<_ACEOF
10917 #define CRAY_STACKSEG_END $ac_func
10918 _ACEOF
10920 break
10923 done
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10927 $as_echo_n "checking stack direction for C alloca... " >&6; }
10928 if test "${ac_cv_c_stack_direction+set}" = set; then :
10929 $as_echo_n "(cached) " >&6
10930 else
10931 if test "$cross_compiling" = yes; then :
10932 ac_cv_c_stack_direction=0
10933 else
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10936 $ac_includes_default
10938 find_stack_direction ()
10940 static char *addr = 0;
10941 auto char dummy;
10942 if (addr == 0)
10944 addr = &dummy;
10945 return find_stack_direction ();
10947 else
10948 return (&dummy > addr) ? 1 : -1;
10952 main ()
10954 return find_stack_direction () < 0;
10956 _ACEOF
10957 if ac_fn_c_try_run "$LINENO"; then :
10958 ac_cv_c_stack_direction=1
10959 else
10960 ac_cv_c_stack_direction=-1
10962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10963 conftest.$ac_objext conftest.beam conftest.$ac_ext
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10968 $as_echo "$ac_cv_c_stack_direction" >&6; }
10969 cat >>confdefs.h <<_ACEOF
10970 #define STACK_DIRECTION $ac_cv_c_stack_direction
10971 _ACEOF
10977 if test x"$ac_cv_func_alloca_works" != xyes; then
10978 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
10981 # fmod, logb, and frexp are found in -lm on most systems.
10982 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
10984 $as_echo_n "checking for sqrt in -lm... " >&6; }
10985 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-lm $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 sqrt ();
11001 main ()
11003 return sqrt ();
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_m_sqrt=yes
11010 else
11011 ac_cv_lib_m_sqrt=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_m_sqrt" >&5
11018 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
11019 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
11020 cat >>confdefs.h <<_ACEOF
11021 #define HAVE_LIBM 1
11022 _ACEOF
11024 LIBS="-lm $LIBS"
11029 # Check for mail-locking functions in a "mail" library. Probably this should
11030 # have the same check as for liblockfile below.
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
11032 $as_echo_n "checking for maillock in -lmail... " >&6; }
11033 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 ac_check_lib_save_LIBS=$LIBS
11037 LIBS="-lmail $LIBS"
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11041 /* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 char maillock ();
11049 main ()
11051 return maillock ();
11053 return 0;
11055 _ACEOF
11056 if ac_fn_c_try_link "$LINENO"; then :
11057 ac_cv_lib_mail_maillock=yes
11058 else
11059 ac_cv_lib_mail_maillock=no
11061 rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063 LIBS=$ac_check_lib_save_LIBS
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
11066 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
11067 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
11068 have_mail=yes
11069 else
11070 have_mail=no
11073 if test $have_mail = yes; then
11074 LIBS_MAIL=-lmail
11075 LIBS="$LIBS_MAIL $LIBS"
11077 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
11079 else
11080 LIBS_MAIL=
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
11083 $as_echo_n "checking for maillock in -llockfile... " >&6; }
11084 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
11086 else
11087 ac_check_lib_save_LIBS=$LIBS
11088 LIBS="-llockfile $LIBS"
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11092 /* Override any GCC internal prototype to avoid an error.
11093 Use char because int might match the return type of a GCC
11094 builtin and then its argument prototype would still apply. */
11095 #ifdef __cplusplus
11096 extern "C"
11097 #endif
11098 char maillock ();
11100 main ()
11102 return maillock ();
11104 return 0;
11106 _ACEOF
11107 if ac_fn_c_try_link "$LINENO"; then :
11108 ac_cv_lib_lockfile_maillock=yes
11109 else
11110 ac_cv_lib_lockfile_maillock=no
11112 rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext conftest.$ac_ext
11114 LIBS=$ac_check_lib_save_LIBS
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
11117 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
11118 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
11119 have_lockfile=yes
11120 else
11121 have_lockfile=no
11124 if test $have_lockfile = yes; then
11125 LIBS_MAIL=-llockfile
11126 LIBS="$LIBS_MAIL $LIBS"
11128 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
11130 else
11131 # If we have the shared liblockfile, assume we must use it for mail
11132 # locking (e.g. Debian). If we couldn't link against liblockfile
11133 # (no liblockfile.a installed), ensure that we don't need to.
11134 # Extract the first word of "liblockfile.so", so it can be a program name with args.
11135 set dummy liblockfile.so; ac_word=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137 $as_echo_n "checking for $ac_word... " >&6; }
11138 if test "${ac_cv_prog_liblockfile+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test -n "$liblockfile"; then
11142 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
11143 else
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
11146 for as_dir in $as_dummy
11148 IFS=$as_save_IFS
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11152 ac_cv_prog_liblockfile="yes"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 break 2
11156 done
11157 done
11158 IFS=$as_save_IFS
11160 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
11163 liblockfile=$ac_cv_prog_liblockfile
11164 if test -n "$liblockfile"; then
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
11166 $as_echo "$liblockfile" >&6; }
11167 else
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11173 if test $ac_cv_prog_liblockfile = yes; then
11174 as_fn_error "Shared liblockfile found but can't link against it.
11175 This probably means that movemail could lose mail.
11176 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
11179 for ac_func in touchlock
11180 do :
11181 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
11182 if test "x$ac_cv_func_touchlock" = x""yes; then :
11183 cat >>confdefs.h <<_ACEOF
11184 #define HAVE_TOUCHLOCK 1
11185 _ACEOF
11188 done
11190 for ac_header in maillock.h
11191 do :
11192 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
11193 if test "x$ac_cv_header_maillock_h" = x""yes; then :
11194 cat >>confdefs.h <<_ACEOF
11195 #define HAVE_MAILLOCK_H 1
11196 _ACEOF
11200 done
11204 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
11205 ## interlock access to the mail spool. The alternative is a lock file named
11206 ## /usr/spool/mail/$USER.lock.
11207 mail_lock=no
11208 case "$opsys" in
11209 aix4-2) mail_lock="lockf" ;;
11211 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
11213 ## On GNU/Linux systems, both methods are used by various mail programs.
11214 ## I assume most people are using newer mailers that have heard of flock.
11215 ## Change this if you need to.
11216 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
11217 ## configure gets the right answers, and that means *NOT* using flock.
11218 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
11219 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
11220 ## Debian maintainer hasn't provided a clean fix for Emacs.
11221 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
11222 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
11223 ## correct logic. -- fx
11224 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
11225 ## liblockfile is a Free Software replacement for libmail, used on
11226 ## Debian systems and elsewhere. -rfr.
11227 gnu-*)
11228 mail_lock="flock"
11229 if test $have_mail = yes || test $have_lockfile = yes; then
11230 test $ac_cv_header_maillock_h = yes && mail_lock=no
11233 esac
11235 BLESSMAIL_TARGET=
11236 case "$mail_lock" in
11237 flock)
11238 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
11241 lockf)
11242 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
11245 *) BLESSMAIL_TARGET="need-blessmail" ;;
11246 esac
11250 for ac_func in gethostname getdomainname dup2 \
11251 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
11252 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
11253 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
11254 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
11255 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
11256 sendto recvfrom getsockopt setsockopt getsockname getpeername \
11257 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
11258 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
11259 cfmakeraw cfsetspeed isnan copysign
11260 do :
11261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11262 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11263 eval as_val=\$$as_ac_var
11264 if test "x$as_val" = x""yes; then :
11265 cat >>confdefs.h <<_ACEOF
11266 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 _ACEOF
11270 done
11273 for ac_header in sys/un.h
11274 do :
11275 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11276 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
11277 cat >>confdefs.h <<_ACEOF
11278 #define HAVE_SYS_UN_H 1
11279 _ACEOF
11283 done
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11293 $as_echo_n "checking for working mktime... " >&6; }
11294 if test "${ac_cv_func_working_mktime+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 if test "$cross_compiling" = yes; then :
11298 ac_cv_func_working_mktime=no
11299 else
11300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h. */
11302 /* Test program from Paul Eggert and Tony Leneis. */
11303 #ifdef TIME_WITH_SYS_TIME
11304 # include <sys/time.h>
11305 # include <time.h>
11306 #else
11307 # ifdef HAVE_SYS_TIME_H
11308 # include <sys/time.h>
11309 # else
11310 # include <time.h>
11311 # endif
11312 #endif
11314 #include <limits.h>
11315 #include <stdlib.h>
11317 #ifdef HAVE_UNISTD_H
11318 # include <unistd.h>
11319 #endif
11321 #ifndef HAVE_ALARM
11322 # define alarm(X) /* empty */
11323 #endif
11325 /* Work around redefinition to rpl_putenv by other config tests. */
11326 #undef putenv
11328 static time_t time_t_max;
11329 static time_t time_t_min;
11331 /* Values we'll use to set the TZ environment variable. */
11332 static char *tz_strings[] = {
11333 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11334 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11336 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11338 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11339 Based on a problem report from Andreas Jaeger. */
11340 static int
11341 spring_forward_gap ()
11343 /* glibc (up to about 1998-10-07) failed this test. */
11344 struct tm tm;
11346 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11347 instead of "TZ=America/Vancouver" in order to detect the bug even
11348 on systems that don't support the Olson extension, or don't have the
11349 full zoneinfo tables installed. */
11350 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11352 tm.tm_year = 98;
11353 tm.tm_mon = 3;
11354 tm.tm_mday = 5;
11355 tm.tm_hour = 2;
11356 tm.tm_min = 0;
11357 tm.tm_sec = 0;
11358 tm.tm_isdst = -1;
11359 return mktime (&tm) != (time_t) -1;
11362 static int
11363 mktime_test1 (now)
11364 time_t now;
11366 struct tm *lt;
11367 return ! (lt = localtime (&now)) || mktime (lt) == now;
11370 static int
11371 mktime_test (now)
11372 time_t now;
11374 return (mktime_test1 (now)
11375 && mktime_test1 ((time_t) (time_t_max - now))
11376 && mktime_test1 ((time_t) (time_t_min + now)));
11379 static int
11380 irix_6_4_bug ()
11382 /* Based on code from Ariel Faigon. */
11383 struct tm tm;
11384 tm.tm_year = 96;
11385 tm.tm_mon = 3;
11386 tm.tm_mday = 0;
11387 tm.tm_hour = 0;
11388 tm.tm_min = 0;
11389 tm.tm_sec = 0;
11390 tm.tm_isdst = -1;
11391 mktime (&tm);
11392 return tm.tm_mon == 2 && tm.tm_mday == 31;
11395 static int
11396 bigtime_test (j)
11397 int j;
11399 struct tm tm;
11400 time_t now;
11401 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11402 now = mktime (&tm);
11403 if (now != (time_t) -1)
11405 struct tm *lt = localtime (&now);
11406 if (! (lt
11407 && lt->tm_year == tm.tm_year
11408 && lt->tm_mon == tm.tm_mon
11409 && lt->tm_mday == tm.tm_mday
11410 && lt->tm_hour == tm.tm_hour
11411 && lt->tm_min == tm.tm_min
11412 && lt->tm_sec == tm.tm_sec
11413 && lt->tm_yday == tm.tm_yday
11414 && lt->tm_wday == tm.tm_wday
11415 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11416 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11417 return 0;
11419 return 1;
11422 static int
11423 year_2050_test ()
11425 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11426 ignoring leap seconds. */
11427 unsigned long int answer = 2527315200UL;
11429 struct tm tm;
11430 time_t t;
11431 tm.tm_year = 2050 - 1900;
11432 tm.tm_mon = 2 - 1;
11433 tm.tm_mday = 1;
11434 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11435 tm.tm_isdst = -1;
11437 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11438 instead of "TZ=America/Vancouver" in order to detect the bug even
11439 on systems that don't support the Olson extension, or don't have the
11440 full zoneinfo tables installed. */
11441 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11443 t = mktime (&tm);
11445 /* Check that the result is either a failure, or close enough
11446 to the correct answer that we can assume the discrepancy is
11447 due to leap seconds. */
11448 return (t == (time_t) -1
11449 || (0 < t && answer - 120 <= t && t <= answer + 120));
11453 main ()
11455 time_t t, delta;
11456 int i, j;
11458 /* This test makes some buggy mktime implementations loop.
11459 Give up after 60 seconds; a mktime slower than that
11460 isn't worth using anyway. */
11461 alarm (60);
11463 for (;;)
11465 t = (time_t_max << 1) + 1;
11466 if (t <= time_t_max)
11467 break;
11468 time_t_max = t;
11470 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11472 delta = time_t_max / 997; /* a suitable prime number */
11473 for (i = 0; i < N_STRINGS; i++)
11475 if (tz_strings[i])
11476 putenv (tz_strings[i]);
11478 for (t = 0; t <= time_t_max - delta; t += delta)
11479 if (! mktime_test (t))
11480 return 1;
11481 if (! (mktime_test ((time_t) 1)
11482 && mktime_test ((time_t) (60 * 60))
11483 && mktime_test ((time_t) (60 * 60 * 24))))
11484 return 1;
11486 for (j = 1; ; j <<= 1)
11487 if (! bigtime_test (j))
11488 return 1;
11489 else if (INT_MAX / 2 < j)
11490 break;
11491 if (! bigtime_test (INT_MAX))
11492 return 1;
11494 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11496 _ACEOF
11497 if ac_fn_c_try_run "$LINENO"; then :
11498 ac_cv_func_working_mktime=yes
11499 else
11500 ac_cv_func_working_mktime=no
11502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11503 conftest.$ac_objext conftest.beam conftest.$ac_ext
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11508 $as_echo "$ac_cv_func_working_mktime" >&6; }
11509 if test $ac_cv_func_working_mktime = no; then
11510 case " $LIBOBJS " in
11511 *" mktime.$ac_objext "* ) ;;
11512 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11514 esac
11518 if test "$ac_cv_func_working_mktime" = no; then
11520 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
11524 ac_have_func=no # yes means we've found a way to get the load average.
11526 # Make sure getloadavg.c is where it belongs, at configure-time.
11527 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11528 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
11530 ac_save_LIBS=$LIBS
11532 # Check for getloadavg, but be sure not to touch the cache variable.
11533 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11534 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11535 exit 0
11536 else
11537 exit 1
11539 ) && ac_have_func=yes
11541 # On HPUX9, an unprivileged user can get load averages through this function.
11542 for ac_func in pstat_getdynamic
11543 do :
11544 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11545 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
11546 cat >>confdefs.h <<_ACEOF
11547 #define HAVE_PSTAT_GETDYNAMIC 1
11548 _ACEOF
11551 done
11554 # Solaris has libkstat which does not require root.
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11556 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11557 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-lkstat $LIBS"
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 char kstat_open ();
11573 main ()
11575 return kstat_open ();
11577 return 0;
11579 _ACEOF
11580 if ac_fn_c_try_link "$LINENO"; then :
11581 ac_cv_lib_kstat_kstat_open=yes
11582 else
11583 ac_cv_lib_kstat_kstat_open=no
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11590 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11591 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11592 cat >>confdefs.h <<_ACEOF
11593 #define HAVE_LIBKSTAT 1
11594 _ACEOF
11596 LIBS="-lkstat $LIBS"
11600 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11602 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11603 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11604 # to get the right answer into the cache.
11605 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11606 if test $ac_have_func = no; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
11608 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11609 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11611 else
11612 ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-lelf $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char elf_begin ();
11625 main ()
11627 return elf_begin ();
11629 return 0;
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_elf_elf_begin=yes
11634 else
11635 ac_cv_lib_elf_elf_begin=no
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
11642 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11643 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
11644 LIBS="-lelf $LIBS"
11648 if test $ac_have_func = no; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
11650 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11651 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lkvm $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char kvm_open ();
11667 main ()
11669 return kvm_open ();
11671 return 0;
11673 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then :
11675 ac_cv_lib_kvm_kvm_open=yes
11676 else
11677 ac_cv_lib_kvm_kvm_open=no
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
11684 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11685 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
11686 LIBS="-lkvm $LIBS"
11689 # Check for the 4.4BSD definition of getloadavg.
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
11691 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11692 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 ac_check_lib_save_LIBS=$LIBS
11696 LIBS="-lutil $LIBS"
11697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11698 /* end confdefs.h. */
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 char getloadavg ();
11708 main ()
11710 return getloadavg ();
11712 return 0;
11714 _ACEOF
11715 if ac_fn_c_try_link "$LINENO"; then :
11716 ac_cv_lib_util_getloadavg=yes
11717 else
11718 ac_cv_lib_util_getloadavg=no
11720 rm -f core conftest.err conftest.$ac_objext \
11721 conftest$ac_exeext conftest.$ac_ext
11722 LIBS=$ac_check_lib_save_LIBS
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
11725 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11726 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
11727 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11732 if test $ac_have_func = no; then
11733 # There is a commonly available library for RS/6000 AIX.
11734 # Since it is not a standard part of AIX, it might be installed locally.
11735 ac_getloadavg_LIBS=$LIBS
11736 LIBS="-L/usr/local/lib $LIBS"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
11738 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11739 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
11740 $as_echo_n "(cached) " >&6
11741 else
11742 ac_check_lib_save_LIBS=$LIBS
11743 LIBS="-lgetloadavg $LIBS"
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char getloadavg ();
11755 main ()
11757 return getloadavg ();
11759 return 0;
11761 _ACEOF
11762 if ac_fn_c_try_link "$LINENO"; then :
11763 ac_cv_lib_getloadavg_getloadavg=yes
11764 else
11765 ac_cv_lib_getloadavg_getloadavg=no
11767 rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11769 LIBS=$ac_check_lib_save_LIBS
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11772 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11773 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
11774 LIBS="-lgetloadavg $LIBS"
11775 else
11776 LIBS=$ac_getloadavg_LIBS
11781 # Make sure it is really in the library, if we think we found it,
11782 # otherwise set up the replacement function.
11783 for ac_func in getloadavg
11784 do :
11785 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
11786 if test "x$ac_cv_func_getloadavg" = x""yes; then :
11787 cat >>confdefs.h <<_ACEOF
11788 #define HAVE_GETLOADAVG 1
11789 _ACEOF
11791 else
11792 case " $LIBOBJS " in
11793 *" getloadavg.$ac_objext "* ) ;;
11794 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11796 esac
11799 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
11801 # Figure out what our getloadavg.c needs.
11802 ac_have_func=no
11803 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11804 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
11805 ac_have_func=yes
11807 $as_echo "#define DGUX 1" >>confdefs.h
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11810 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11811 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-ldgc $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char dg_sys_info ();
11827 main ()
11829 return dg_sys_info ();
11831 return 0;
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_dgc_dg_sys_info=yes
11836 else
11837 ac_cv_lib_dgc_dg_sys_info=no
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11844 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11845 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
11846 cat >>confdefs.h <<_ACEOF
11847 #define HAVE_LIBDGC 1
11848 _ACEOF
11850 LIBS="-ldgc $LIBS"
11858 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11859 if test "x$ac_cv_header_locale_h" = x""yes; then :
11864 for ac_func in setlocale
11865 do :
11866 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11867 if test "x$ac_cv_func_setlocale" = x""yes; then :
11868 cat >>confdefs.h <<_ACEOF
11869 #define HAVE_SETLOCALE 1
11870 _ACEOF
11873 done
11876 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11877 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11878 # Irix 4.0.5F has the header but not the library.
11879 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11880 ac_have_func=yes
11882 $as_echo "#define SVR4 1" >>confdefs.h
11886 if test $ac_have_func = no; then
11887 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11888 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
11889 ac_have_func=yes
11891 $as_echo "#define UMAX 1" >>confdefs.h
11894 $as_echo "#define UMAX4_3 1" >>confdefs.h
11901 if test $ac_have_func = no; then
11902 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11903 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
11904 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
11911 if test $ac_have_func = no; then
11912 for ac_header in mach/mach.h
11913 do :
11914 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11915 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_MACH_MACH_H 1
11918 _ACEOF
11922 done
11926 for ac_header in nlist.h
11927 do :
11928 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11929 if test "x$ac_cv_header_nlist_h" = x""yes; then :
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_NLIST_H 1
11932 _ACEOF
11933 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11935 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
11937 cat >>confdefs.h <<_ACEOF
11938 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11939 _ACEOF
11942 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
11949 done
11952 done
11955 # Some definitions of getloadavg require that the program be installed setgid.
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
11957 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11958 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11963 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11964 #ifdef LDAV_PRIVILEGED
11965 Yowza Am I SETGID yet
11966 #endif
11967 _ACEOF
11968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11969 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
11970 ac_cv_func_getloadavg_setgid=yes
11971 else
11972 ac_cv_func_getloadavg_setgid=no
11974 rm -f conftest*
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
11978 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11979 if test $ac_cv_func_getloadavg_setgid = yes; then
11980 NEED_SETGID=true
11982 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
11984 else
11985 NEED_SETGID=false
11988 if test $ac_cv_func_getloadavg_setgid = yes; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
11990 $as_echo_n "checking group of /dev/kmem... " >&6; }
11991 if test "${ac_cv_group_kmem+set}" = set; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11995 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11996 # If we got an error (system does not support symlinks), try without -L.
11997 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
11998 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
11999 | sed -ne 's/[ ][ ]*/ /g;
12000 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12001 / /s/.* //;p;'`
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
12005 $as_echo "$ac_cv_group_kmem" >&6; }
12006 KMEM_GROUP=$ac_cv_group_kmem
12008 if test "x$ac_save_LIBS" = x; then
12009 GETLOADAVG_LIBS=$LIBS
12010 else
12011 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
12013 LIBS=$ac_save_LIBS
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12018 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12019 if test "${ac_cv_sys_largefile_source+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 while :; do
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025 #include <sys/types.h> /* for off_t */
12026 #include <stdio.h>
12028 main ()
12030 int (*fp) (FILE *, off_t, int) = fseeko;
12031 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12033 return 0;
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 ac_cv_sys_largefile_source=no; break
12039 rm -f core conftest.err conftest.$ac_objext \
12040 conftest$ac_exeext conftest.$ac_ext
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 #define _LARGEFILE_SOURCE 1
12044 #include <sys/types.h> /* for off_t */
12045 #include <stdio.h>
12047 main ()
12049 int (*fp) (FILE *, off_t, int) = fseeko;
12050 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12052 return 0;
12054 _ACEOF
12055 if ac_fn_c_try_link "$LINENO"; then :
12056 ac_cv_sys_largefile_source=1; break
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 ac_cv_sys_largefile_source=unknown
12061 break
12062 done
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12065 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12066 case $ac_cv_sys_largefile_source in #(
12067 no | unknown) ;;
12069 cat >>confdefs.h <<_ACEOF
12070 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12071 _ACEOF
12073 esac
12074 rm -rf conftest*
12076 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12077 # in glibc 2.1.3, but that breaks too many other things.
12078 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12079 if test $ac_cv_sys_largefile_source != unknown; then
12081 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12086 # Configure getopt.
12087 # getopt.m4 serial 10
12089 # The getopt module assume you want GNU getopt, with getopt_long etc,
12090 # rather than vanilla POSIX getopt. This means your your code should
12091 # always include <getopt.h> for the getopt prototypes.
12103 # Prerequisites of lib/getopt*.
12108 GETOPT_H=
12109 for ac_header in getopt.h
12110 do :
12111 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12112 if test "x$ac_cv_header_getopt_h" = x""yes; then :
12113 cat >>confdefs.h <<_ACEOF
12114 #define HAVE_GETOPT_H 1
12115 _ACEOF
12117 else
12118 GETOPT_H=getopt.h
12121 done
12123 if test -z "$GETOPT_H"; then
12124 for ac_func in getopt_long_only
12125 do :
12126 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12127 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
12128 cat >>confdefs.h <<_ACEOF
12129 #define HAVE_GETOPT_LONG_ONLY 1
12130 _ACEOF
12132 else
12133 GETOPT_H=getopt.h
12135 done
12139 if test -z "$GETOPT_H"; then
12140 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
12142 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
12143 GETOPT_H=getopt.h
12148 if test -z "$GETOPT_H"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12150 $as_echo_n "checking for working GNU getopt function... " >&6; }
12151 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 if test "$cross_compiling" = yes; then :
12155 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
12157 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
12158 gl_cv_func_gnu_getopt=no
12159 else
12160 gl_cv_func_gnu_getopt=yes
12163 else
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <getopt.h>
12168 main ()
12171 char *myargv[3];
12172 myargv[0] = "conftest";
12173 myargv[1] = "-+";
12174 myargv[2] = 0;
12175 return getopt (2, myargv, "+a") != '?';
12178 return 0;
12180 _ACEOF
12181 if ac_fn_c_try_run "$LINENO"; then :
12182 gl_cv_func_gnu_getopt=yes
12183 else
12184 gl_cv_func_gnu_getopt=no
12186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12187 conftest.$ac_objext conftest.beam conftest.$ac_ext
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
12192 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
12193 if test "$gl_cv_func_gnu_getopt" = "no"; then
12194 GETOPT_H=getopt.h
12200 if test -n "$GETOPT_H"; then :
12203 GETOPT_H=getopt.h
12205 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
12210 GETOPTOBJS='getopt.o getopt1.o'
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12217 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
12218 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 # Use it with a single arg.
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224 $ac_includes_default
12226 main ()
12228 getpgrp (0);
12230 return 0;
12232 _ACEOF
12233 if ac_fn_c_try_compile "$LINENO"; then :
12234 ac_cv_func_getpgrp_void=no
12235 else
12236 ac_cv_func_getpgrp_void=yes
12238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12242 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
12243 if test $ac_cv_func_getpgrp_void = yes; then
12245 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
12250 for ac_func in strftime
12251 do :
12252 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12253 if test "x$ac_cv_func_strftime" = x""yes; then :
12254 cat >>confdefs.h <<_ACEOF
12255 #define HAVE_STRFTIME 1
12256 _ACEOF
12258 else
12259 # strftime is in -lintl on SCO UNIX.
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12261 $as_echo_n "checking for strftime in -lintl... " >&6; }
12262 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-lintl $LIBS"
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12270 /* Override any GCC internal prototype to avoid an error.
12271 Use char because int might match the return type of a GCC
12272 builtin and then its argument prototype would still apply. */
12273 #ifdef __cplusplus
12274 extern "C"
12275 #endif
12276 char strftime ();
12278 main ()
12280 return strftime ();
12282 return 0;
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286 ac_cv_lib_intl_strftime=yes
12287 else
12288 ac_cv_lib_intl_strftime=no
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext conftest.$ac_ext
12292 LIBS=$ac_check_lib_save_LIBS
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12295 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12296 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12297 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12299 LIBS="-lintl $LIBS"
12303 done
12306 # UNIX98 PTYs.
12307 for ac_func in grantpt
12308 do :
12309 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
12310 if test "x$ac_cv_func_grantpt" = x""yes; then :
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_GRANTPT 1
12313 _ACEOF
12316 done
12319 # PTY-related GNU extensions.
12320 for ac_func in getpt
12321 do :
12322 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
12323 if test "x$ac_cv_func_getpt" = x""yes; then :
12324 cat >>confdefs.h <<_ACEOF
12325 #define HAVE_GETPT 1
12326 _ACEOF
12329 done
12332 # Check this now, so that we will NOT find the above functions in ncurses.
12333 # That is because we have not set up to link ncurses in lib-src.
12334 # It's better to believe a function is not available
12335 # than to expect to find it in ncurses.
12336 # Also we need tputs and friends to be able to build at all.
12337 have_tputs_et_al=true
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
12339 $as_echo_n "checking for library containing tputs... " >&6; }
12340 if test "${ac_cv_search_tputs+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 ac_func_search_save_LIBS=$LIBS
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12347 /* Override any GCC internal prototype to avoid an error.
12348 Use char because int might match the return type of a GCC
12349 builtin and then its argument prototype would still apply. */
12350 #ifdef __cplusplus
12351 extern "C"
12352 #endif
12353 char tputs ();
12355 main ()
12357 return tputs ();
12359 return 0;
12361 _ACEOF
12362 for ac_lib in '' ncurses terminfo termcap; do
12363 if test -z "$ac_lib"; then
12364 ac_res="none required"
12365 else
12366 ac_res=-l$ac_lib
12367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12369 if ac_fn_c_try_link "$LINENO"; then :
12370 ac_cv_search_tputs=$ac_res
12372 rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext
12374 if test "${ac_cv_search_tputs+set}" = set; then :
12375 break
12377 done
12378 if test "${ac_cv_search_tputs+set}" = set; then :
12380 else
12381 ac_cv_search_tputs=no
12383 rm conftest.$ac_ext
12384 LIBS=$ac_func_search_save_LIBS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
12387 $as_echo "$ac_cv_search_tputs" >&6; }
12388 ac_res=$ac_cv_search_tputs
12389 if test "$ac_res" != no; then :
12390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12392 else
12393 have_tputs_et_al=false
12396 if test "$have_tputs_et_al" != true; then
12397 as_fn_error "I couldn't find termcap functions (tputs and friends).
12398 Maybe some development libraries/packages are missing? Try installing
12399 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
12401 # Must define this when any termcap library is found.
12403 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
12405 ## FIXME This was the cpp logic, but I am not sure it is right.
12406 ## The above test has not necessarily found libncurses.
12407 HAVE_LIBNCURSES=yes
12409 ## Use terminfo instead of termcap?
12410 ## Note only system files NOT using terminfo are:
12411 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
12412 ## darwin|gnu without ncurses.
12413 TERMINFO=no
12414 LIBS_TERMCAP=
12415 case "$opsys" in
12416 ## cygwin: Fewer environment variables to go wrong, more terminal types.
12417 ## hpux10-20: Use the system provided termcap(3) library.
12418 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
12419 ## is necessary. Otherwise Emacs dumps core when run -nw.
12420 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
12422 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
12423 ## The ncurses library has been moved out of the System framework in
12424 ## Mac OS X 10.2. So if configure detects it, set the command-line
12425 ## option to use it.
12426 darwin|gnu*)
12427 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
12428 if test "x$HAVE_LIBNCURSES" = "xyes"; then
12429 TERMINFO=yes
12430 LIBS_TERMCAP="-lncurses"
12434 freebsd)
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
12436 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
12437 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <osreldate.h>
12444 main ()
12446 #if __FreeBSD_version < 400000
12447 fail;
12448 #endif
12451 return 0;
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 emacs_cv_freebsd_terminfo=yes
12456 else
12457 emacs_cv_freebsd_terminfo=no
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
12465 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
12467 if test $emacs_cv_freebsd_terminfo = yes; then
12468 TERMINFO=yes
12469 LIBS_TERMCAP="-lncurses"
12470 else
12471 LIBS_TERMCAP="-ltermcap"
12475 netbsd)
12476 if test $ac_cv_search_tputs = -lterminfo; then
12477 TERMINFO=yes
12478 LIBS_TERMCAP="-lterminfo"
12479 else
12480 LIBS_TERMCAP="-ltermcap"
12484 esac
12486 case "$opsys" in
12487 ## hpux: Make sure we get select from libc rather than from libcurses
12488 ## because libcurses on HPUX 10.10 has a broken version of select.
12489 ## We used to use -lc -lcurses, but this may be cleaner.
12490 hpux*) LIBS_TERMCAP="-ltermcap" ;;
12492 openbsd) LIBS_TERMCAP="-lncurses" ;;
12494 ## Must use system termcap, if we use any termcap. It does special things.
12495 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
12496 esac
12498 TERMCAP_OBJ=tparam.o
12499 if test $TERMINFO = yes; then
12501 $as_echo "#define TERMINFO 1" >>confdefs.h
12504 ## Default used to be -ltermcap. Add a case above if need something else.
12505 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
12507 TERMCAP_OBJ=terminfo.o
12513 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12514 resolv=no
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517 #include <netinet/in.h>
12518 #include <arpa/nameser.h>
12519 #include <resolv.h>
12521 main ()
12523 return res_init();
12525 return 0;
12527 _ACEOF
12528 if ac_fn_c_try_link "$LINENO"; then :
12529 have_res_init=yes
12530 else
12531 have_res_init=no
12533 rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535 if test "$have_res_init" = no; then
12536 OLIBS="$LIBS"
12537 LIBS="$LIBS -lresolv"
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
12539 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12542 #include <netinet/in.h>
12543 #include <arpa/nameser.h>
12544 #include <resolv.h>
12546 main ()
12548 return res_init();
12550 return 0;
12552 _ACEOF
12553 if ac_fn_c_try_link "$LINENO"; then :
12554 have_res_init=yes
12555 else
12556 have_res_init=no
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
12561 $as_echo "$have_res_init" >&6; }
12562 if test "$have_res_init" = yes ; then
12563 resolv=yes
12565 LIBS="$OLIBS"
12568 if test "$have_res_init" = yes; then
12570 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
12574 # Do we need the Hesiod library to provide the support routines?
12575 LIBHESIOD=
12576 if test "$with_hesiod" != no ; then
12577 # Don't set $LIBS here -- see comments above. FIXME which comments?
12578 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
12579 if test "x$ac_cv_func_res_send" = x""yes; then :
12581 else
12582 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
12583 if test "x$ac_cv_func___res_send" = x""yes; then :
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
12587 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12588 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 ac_check_lib_save_LIBS=$LIBS
12592 LIBS="-lresolv $LIBS"
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12596 /* Override any GCC internal prototype to avoid an error.
12597 Use char because int might match the return type of a GCC
12598 builtin and then its argument prototype would still apply. */
12599 #ifdef __cplusplus
12600 extern "C"
12601 #endif
12602 char res_send ();
12604 main ()
12606 return res_send ();
12608 return 0;
12610 _ACEOF
12611 if ac_fn_c_try_link "$LINENO"; then :
12612 ac_cv_lib_resolv_res_send=yes
12613 else
12614 ac_cv_lib_resolv_res_send=no
12616 rm -f core conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
12621 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12622 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
12623 resolv=yes
12624 else
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
12626 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12627 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12629 else
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-lresolv $LIBS"
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12638 #ifdef __cplusplus
12639 extern "C"
12640 #endif
12641 char __res_send ();
12643 main ()
12645 return __res_send ();
12647 return 0;
12649 _ACEOF
12650 if ac_fn_c_try_link "$LINENO"; then :
12651 ac_cv_lib_resolv___res_send=yes
12652 else
12653 ac_cv_lib_resolv___res_send=no
12655 rm -f core conftest.err conftest.$ac_objext \
12656 conftest$ac_exeext conftest.$ac_ext
12657 LIBS=$ac_check_lib_save_LIBS
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
12660 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12661 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
12662 resolv=yes
12671 if test "$resolv" = yes ; then
12672 RESOLVLIB=-lresolv
12673 else
12674 RESOLVLIB=
12676 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
12677 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
12681 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12682 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12684 else
12685 ac_check_lib_save_LIBS=$LIBS
12686 LIBS="-lhesiod $RESOLVLIB $LIBS"
12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h. */
12690 /* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693 #ifdef __cplusplus
12694 extern "C"
12695 #endif
12696 char hes_getmailhost ();
12698 main ()
12700 return hes_getmailhost ();
12702 return 0;
12704 _ACEOF
12705 if ac_fn_c_try_link "$LINENO"; then :
12706 ac_cv_lib_hesiod_hes_getmailhost=yes
12707 else
12708 ac_cv_lib_hesiod_hes_getmailhost=no
12710 rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LIBS=$ac_check_lib_save_LIBS
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12715 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12716 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
12717 hesiod=yes
12718 else
12725 if test x"$hesiod" = xyes; then
12727 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
12729 LIBHESIOD=-lhesiod
12734 # Do we need libresolv (due to res_init or Hesiod)?
12735 if test "$resolv" = yes ; then
12737 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
12739 LIBRESOLV=-lresolv
12740 else
12741 LIBRESOLV=
12745 # These tell us which Kerberos-related libraries to use.
12746 COM_ERRLIB=
12747 CRYPTOLIB=
12748 KRB5LIB=
12749 DESLIB=
12750 KRB4LIB=
12752 if test "${with_kerberos}" != no; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
12754 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12755 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-lcom_err $LIBS"
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char com_err ();
12771 main ()
12773 return com_err ();
12775 return 0;
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_lib_com_err_com_err=yes
12780 else
12781 ac_cv_lib_com_err_com_err=no
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
12788 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12789 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
12790 have_com_err=yes
12791 else
12792 have_com_err=no
12795 if test $have_com_err = yes; then
12796 COM_ERRLIB=-lcom_err
12797 LIBS="$COM_ERRLIB $LIBS"
12799 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12803 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12804 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807 ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lcrypto $LIBS"
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12812 /* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12815 #ifdef __cplusplus
12816 extern "C"
12817 #endif
12818 char mit_des_cbc_encrypt ();
12820 main ()
12822 return mit_des_cbc_encrypt ();
12824 return 0;
12826 _ACEOF
12827 if ac_fn_c_try_link "$LINENO"; then :
12828 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12829 else
12830 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12832 rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12837 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12838 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
12839 have_crypto=yes
12840 else
12841 have_crypto=no
12844 if test $have_crypto = yes; then
12845 CRYPTOLIB=-lcrypto
12846 LIBS="$CRYPTOLIB $LIBS"
12848 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12852 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12853 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 ac_check_lib_save_LIBS=$LIBS
12857 LIBS="-lk5crypto $LIBS"
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char mit_des_cbc_encrypt ();
12869 main ()
12871 return mit_des_cbc_encrypt ();
12873 return 0;
12875 _ACEOF
12876 if ac_fn_c_try_link "$LINENO"; then :
12877 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12878 else
12879 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12881 rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12883 LIBS=$ac_check_lib_save_LIBS
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12886 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12887 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
12888 have_k5crypto=yes
12889 else
12890 have_k5crypto=no
12893 if test $have_k5crypto = yes; then
12894 CRYPTOLIB=-lk5crypto
12895 LIBS="$CRYPTOLIB $LIBS"
12897 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12901 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12902 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 ac_check_lib_save_LIBS=$LIBS
12906 LIBS="-lkrb5 $LIBS"
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12910 /* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12913 #ifdef __cplusplus
12914 extern "C"
12915 #endif
12916 char krb5_init_context ();
12918 main ()
12920 return krb5_init_context ();
12922 return 0;
12924 _ACEOF
12925 if ac_fn_c_try_link "$LINENO"; then :
12926 ac_cv_lib_krb5_krb5_init_context=yes
12927 else
12928 ac_cv_lib_krb5_krb5_init_context=no
12930 rm -f core conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
12932 LIBS=$ac_check_lib_save_LIBS
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12935 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12936 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
12937 have_krb5=yes
12938 else
12939 have_krb5=no
12942 if test $have_krb5=yes; then
12943 KRB5LIB=-lkrb5
12944 LIBS="$KRB5LIB $LIBS"
12946 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
12949 if test "${with_kerberos5}" = no; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
12951 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12952 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12954 else
12955 ac_check_lib_save_LIBS=$LIBS
12956 LIBS="-ldes425 $LIBS"
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12960 /* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12963 #ifdef __cplusplus
12964 extern "C"
12965 #endif
12966 char des_cbc_encrypt ();
12968 main ()
12970 return des_cbc_encrypt ();
12972 return 0;
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976 ac_cv_lib_des425_des_cbc_encrypt=yes
12977 else
12978 ac_cv_lib_des425_des_cbc_encrypt=no
12980 rm -f core conftest.err conftest.$ac_objext \
12981 conftest$ac_exeext conftest.$ac_ext
12982 LIBS=$ac_check_lib_save_LIBS
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12985 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12986 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
12987 have_des425=yes
12988 else
12989 have_des425=no
12992 if test $have_des425 = yes; then
12993 DESLIB=-ldes425
12994 LIBS="$DESLIB $LIBS"
12996 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
12998 else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
13000 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
13001 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 ac_check_lib_save_LIBS=$LIBS
13005 LIBS="-ldes $LIBS"
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13009 /* Override any GCC internal prototype to avoid an error.
13010 Use char because int might match the return type of a GCC
13011 builtin and then its argument prototype would still apply. */
13012 #ifdef __cplusplus
13013 extern "C"
13014 #endif
13015 char des_cbc_encrypt ();
13017 main ()
13019 return des_cbc_encrypt ();
13021 return 0;
13023 _ACEOF
13024 if ac_fn_c_try_link "$LINENO"; then :
13025 ac_cv_lib_des_des_cbc_encrypt=yes
13026 else
13027 ac_cv_lib_des_des_cbc_encrypt=no
13029 rm -f core conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 LIBS=$ac_check_lib_save_LIBS
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13034 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
13035 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
13036 have_des=yes
13037 else
13038 have_des=no
13041 if test $have_des = yes; then
13042 DESLIB=-ldes
13043 LIBS="$DESLIB $LIBS"
13045 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
13050 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
13051 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 ac_check_lib_save_LIBS=$LIBS
13055 LIBS="-lkrb4 $LIBS"
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13062 #ifdef __cplusplus
13063 extern "C"
13064 #endif
13065 char krb_get_cred ();
13067 main ()
13069 return krb_get_cred ();
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 ac_cv_lib_krb4_krb_get_cred=yes
13076 else
13077 ac_cv_lib_krb4_krb_get_cred=no
13079 rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 LIBS=$ac_check_lib_save_LIBS
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13084 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
13085 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
13086 have_krb4=yes
13087 else
13088 have_krb4=no
13091 if test $have_krb4 = yes; then
13092 KRB4LIB=-lkrb4
13093 LIBS="$KRB4LIB $LIBS"
13095 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
13099 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
13100 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 ac_check_lib_save_LIBS=$LIBS
13104 LIBS="-lkrb $LIBS"
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13108 /* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13111 #ifdef __cplusplus
13112 extern "C"
13113 #endif
13114 char krb_get_cred ();
13116 main ()
13118 return krb_get_cred ();
13120 return 0;
13122 _ACEOF
13123 if ac_fn_c_try_link "$LINENO"; then :
13124 ac_cv_lib_krb_krb_get_cred=yes
13125 else
13126 ac_cv_lib_krb_krb_get_cred=no
13128 rm -f core conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
13133 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
13134 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
13135 have_krb=yes
13136 else
13137 have_krb=no
13140 if test $have_krb = yes; then
13141 KRB4LIB=-lkrb
13142 LIBS="$KRB4LIB $LIBS"
13144 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
13150 if test "${with_kerberos5}" != no; then
13151 for ac_header in krb5.h
13152 do :
13153 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
13154 if test "x$ac_cv_header_krb5_h" = x""yes; then :
13155 cat >>confdefs.h <<_ACEOF
13156 #define HAVE_KRB5_H 1
13157 _ACEOF
13158 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
13160 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
13162 cat >>confdefs.h <<_ACEOF
13163 #define HAVE_KRB5_ERROR_TEXT 1
13164 _ACEOF
13168 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
13170 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_KRB5_ERROR_E_TEXT 1
13174 _ACEOF
13181 done
13183 else
13184 for ac_header in des.h
13185 do :
13186 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
13187 if test "x$ac_cv_header_des_h" = x""yes; then :
13188 cat >>confdefs.h <<_ACEOF
13189 #define HAVE_DES_H 1
13190 _ACEOF
13192 else
13193 for ac_header in kerberosIV/des.h
13194 do :
13195 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
13196 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
13197 cat >>confdefs.h <<_ACEOF
13198 #define HAVE_KERBEROSIV_DES_H 1
13199 _ACEOF
13201 else
13202 for ac_header in kerberos/des.h
13203 do :
13204 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
13205 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
13206 cat >>confdefs.h <<_ACEOF
13207 #define HAVE_KERBEROS_DES_H 1
13208 _ACEOF
13212 done
13216 done
13220 done
13222 for ac_header in krb.h
13223 do :
13224 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
13225 if test "x$ac_cv_header_krb_h" = x""yes; then :
13226 cat >>confdefs.h <<_ACEOF
13227 #define HAVE_KRB_H 1
13228 _ACEOF
13230 else
13231 for ac_header in kerberosIV/krb.h
13232 do :
13233 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
13234 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
13235 cat >>confdefs.h <<_ACEOF
13236 #define HAVE_KERBEROSIV_KRB_H 1
13237 _ACEOF
13239 else
13240 for ac_header in kerberos/krb.h
13241 do :
13242 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
13243 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
13244 cat >>confdefs.h <<_ACEOF
13245 #define HAVE_KERBEROS_KRB_H 1
13246 _ACEOF
13250 done
13254 done
13258 done
13261 for ac_header in com_err.h
13262 do :
13263 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
13264 if test "x$ac_cv_header_com_err_h" = x""yes; then :
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_COM_ERR_H 1
13267 _ACEOF
13271 done
13281 # Solaris requires -lintl if you want strerror (which calls dgettext)
13282 # to return localized messages.
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
13284 $as_echo_n "checking for dgettext in -lintl... " >&6; }
13285 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13288 ac_check_lib_save_LIBS=$LIBS
13289 LIBS="-lintl $LIBS"
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13293 /* Override any GCC internal prototype to avoid an error.
13294 Use char because int might match the return type of a GCC
13295 builtin and then its argument prototype would still apply. */
13296 #ifdef __cplusplus
13297 extern "C"
13298 #endif
13299 char dgettext ();
13301 main ()
13303 return dgettext ();
13305 return 0;
13307 _ACEOF
13308 if ac_fn_c_try_link "$LINENO"; then :
13309 ac_cv_lib_intl_dgettext=yes
13310 else
13311 ac_cv_lib_intl_dgettext=no
13313 rm -f core conftest.err conftest.$ac_objext \
13314 conftest$ac_exeext conftest.$ac_ext
13315 LIBS=$ac_check_lib_save_LIBS
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
13318 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
13319 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
13320 cat >>confdefs.h <<_ACEOF
13321 #define HAVE_LIBINTL 1
13322 _ACEOF
13324 LIBS="-lintl $LIBS"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
13330 $as_echo_n "checking whether localtime caches TZ... " >&6; }
13331 if test "${emacs_cv_localtime_cache+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 if test x$ac_cv_func_tzset = xyes; then
13335 if test "$cross_compiling" = yes; then :
13336 # If we have tzset, assume the worst when cross-compiling.
13337 emacs_cv_localtime_cache=yes
13338 else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341 #include <time.h>
13342 extern char **environ;
13343 unset_TZ ()
13345 char **from, **to;
13346 for (to = from = environ; (*to = *from); from++)
13347 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
13348 to++;
13350 char TZ_GMT0[] = "TZ=GMT0";
13351 char TZ_PST8[] = "TZ=PST8";
13352 main()
13354 time_t now = time ((time_t *) 0);
13355 int hour_GMT0, hour_unset;
13356 if (putenv (TZ_GMT0) != 0)
13357 exit (1);
13358 hour_GMT0 = localtime (&now)->tm_hour;
13359 unset_TZ ();
13360 hour_unset = localtime (&now)->tm_hour;
13361 if (putenv (TZ_PST8) != 0)
13362 exit (1);
13363 if (localtime (&now)->tm_hour == hour_GMT0)
13364 exit (1);
13365 unset_TZ ();
13366 if (localtime (&now)->tm_hour != hour_unset)
13367 exit (1);
13368 exit (0);
13370 _ACEOF
13371 if ac_fn_c_try_run "$LINENO"; then :
13372 emacs_cv_localtime_cache=no
13373 else
13374 emacs_cv_localtime_cache=yes
13376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13377 conftest.$ac_objext conftest.beam conftest.$ac_ext
13380 else
13381 # If we lack tzset, report that localtime does not cache TZ,
13382 # since we can't invalidate the cache if we don't have tzset.
13383 emacs_cv_localtime_cache=no
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
13387 $as_echo "$emacs_cv_localtime_cache" >&6; }
13388 if test $emacs_cv_localtime_cache = yes; then
13390 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
13394 if test "x$HAVE_TIMEVAL" = xyes; then
13395 for ac_func in gettimeofday
13396 do :
13397 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13398 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
13399 cat >>confdefs.h <<_ACEOF
13400 #define HAVE_GETTIMEOFDAY 1
13401 _ACEOF
13404 done
13406 if test $ac_cv_func_gettimeofday = yes; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
13408 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13409 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13415 #ifdef TIME_WITH_SYS_TIME
13416 #include <sys/time.h>
13417 #include <time.h>
13418 #else
13419 #ifdef HAVE_SYS_TIME_H
13420 #include <sys/time.h>
13421 #else
13422 #include <time.h>
13423 #endif
13424 #endif
13426 main ()
13428 struct timeval time;
13429 gettimeofday (&time, 0);
13431 return 0;
13433 _ACEOF
13434 if ac_fn_c_try_compile "$LINENO"; then :
13435 emacs_cv_gettimeofday_two_arguments=yes
13436 else
13437 emacs_cv_gettimeofday_two_arguments=no
13439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
13442 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13443 if test $emacs_cv_gettimeofday_two_arguments = no; then
13445 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
13451 ok_so_far=yes
13452 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13453 if test "x$ac_cv_func_socket" = x""yes; then :
13455 else
13456 ok_so_far=no
13459 if test $ok_so_far = yes; then
13460 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13461 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
13463 else
13464 ok_so_far=no
13469 if test $ok_so_far = yes; then
13470 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13471 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
13473 else
13474 ok_so_far=no
13479 if test $ok_so_far = yes; then
13481 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
13485 for ac_header in sys/ioctl.h
13486 do :
13487 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13488 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
13489 cat >>confdefs.h <<_ACEOF
13490 #define HAVE_SYS_IOCTL_H 1
13491 _ACEOF
13495 done
13498 if test -f /usr/lpp/X11/bin/smt.exp; then
13500 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
13505 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13506 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13508 $as_echo "yes" >&6; }
13510 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
13512 else
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514 $as_echo "no" >&6; }
13517 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13518 if test "x$ac_cv_type_pid_t" = x""yes; then :
13520 else
13522 cat >>confdefs.h <<_ACEOF
13523 #define pid_t int
13524 _ACEOF
13528 for ac_header in vfork.h
13529 do :
13530 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13531 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13532 cat >>confdefs.h <<_ACEOF
13533 #define HAVE_VFORK_H 1
13534 _ACEOF
13538 done
13540 for ac_func in fork vfork
13541 do :
13542 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13544 eval as_val=\$$as_ac_var
13545 if test "x$as_val" = x""yes; then :
13546 cat >>confdefs.h <<_ACEOF
13547 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13548 _ACEOF
13551 done
13553 if test "x$ac_cv_func_fork" = xyes; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13555 $as_echo_n "checking for working fork... " >&6; }
13556 if test "${ac_cv_func_fork_works+set}" = set; then :
13557 $as_echo_n "(cached) " >&6
13558 else
13559 if test "$cross_compiling" = yes; then :
13560 ac_cv_func_fork_works=cross
13561 else
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564 $ac_includes_default
13566 main ()
13569 /* By Ruediger Kuhlmann. */
13570 return fork () < 0;
13573 return 0;
13575 _ACEOF
13576 if ac_fn_c_try_run "$LINENO"; then :
13577 ac_cv_func_fork_works=yes
13578 else
13579 ac_cv_func_fork_works=no
13581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13582 conftest.$ac_objext conftest.beam conftest.$ac_ext
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13587 $as_echo "$ac_cv_func_fork_works" >&6; }
13589 else
13590 ac_cv_func_fork_works=$ac_cv_func_fork
13592 if test "x$ac_cv_func_fork_works" = xcross; then
13593 case $host in
13594 *-*-amigaos* | *-*-msdosdjgpp*)
13595 # Override, as these systems have only a dummy fork() stub
13596 ac_cv_func_fork_works=no
13599 ac_cv_func_fork_works=yes
13601 esac
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13603 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13605 ac_cv_func_vfork_works=$ac_cv_func_vfork
13606 if test "x$ac_cv_func_vfork" = xyes; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13608 $as_echo_n "checking for working vfork... " >&6; }
13609 if test "${ac_cv_func_vfork_works+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 if test "$cross_compiling" = yes; then :
13613 ac_cv_func_vfork_works=cross
13614 else
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13617 /* Thanks to Paul Eggert for this test. */
13618 $ac_includes_default
13619 #include <sys/wait.h>
13620 #ifdef HAVE_VFORK_H
13621 # include <vfork.h>
13622 #endif
13623 /* On some sparc systems, changes by the child to local and incoming
13624 argument registers are propagated back to the parent. The compiler
13625 is told about this with #include <vfork.h>, but some compilers
13626 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13627 static variable whose address is put into a register that is
13628 clobbered by the vfork. */
13629 static void
13630 #ifdef __cplusplus
13631 sparc_address_test (int arg)
13632 # else
13633 sparc_address_test (arg) int arg;
13634 #endif
13636 static pid_t child;
13637 if (!child) {
13638 child = vfork ();
13639 if (child < 0) {
13640 perror ("vfork");
13641 _exit(2);
13643 if (!child) {
13644 arg = getpid();
13645 write(-1, "", 0);
13646 _exit (arg);
13652 main ()
13654 pid_t parent = getpid ();
13655 pid_t child;
13657 sparc_address_test (0);
13659 child = vfork ();
13661 if (child == 0) {
13662 /* Here is another test for sparc vfork register problems. This
13663 test uses lots of local variables, at least as many local
13664 variables as main has allocated so far including compiler
13665 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13666 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13667 reuse the register of parent for one of the local variables,
13668 since it will think that parent can't possibly be used any more
13669 in this routine. Assigning to the local variable will thus
13670 munge parent in the parent process. */
13671 pid_t
13672 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13673 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13674 /* Convince the compiler that p..p7 are live; otherwise, it might
13675 use the same hardware register for all 8 local variables. */
13676 if (p != p1 || p != p2 || p != p3 || p != p4
13677 || p != p5 || p != p6 || p != p7)
13678 _exit(1);
13680 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13681 from child file descriptors. If the child closes a descriptor
13682 before it execs or exits, this munges the parent's descriptor
13683 as well. Test for this by closing stdout in the child. */
13684 _exit(close(fileno(stdout)) != 0);
13685 } else {
13686 int status;
13687 struct stat st;
13689 while (wait(&status) != child)
13691 return (
13692 /* Was there some problem with vforking? */
13693 child < 0
13695 /* Did the child fail? (This shouldn't happen.) */
13696 || status
13698 /* Did the vfork/compiler bug occur? */
13699 || parent != getpid()
13701 /* Did the file descriptor bug occur? */
13702 || fstat(fileno(stdout), &st) != 0
13706 _ACEOF
13707 if ac_fn_c_try_run "$LINENO"; then :
13708 ac_cv_func_vfork_works=yes
13709 else
13710 ac_cv_func_vfork_works=no
13712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13713 conftest.$ac_objext conftest.beam conftest.$ac_ext
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13718 $as_echo "$ac_cv_func_vfork_works" >&6; }
13721 if test "x$ac_cv_func_fork_works" = xcross; then
13722 ac_cv_func_vfork_works=$ac_cv_func_vfork
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13724 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13727 if test "x$ac_cv_func_vfork_works" = xyes; then
13729 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13731 else
13733 $as_echo "#define vfork fork" >>confdefs.h
13736 if test "x$ac_cv_func_fork_works" = xyes; then
13738 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13744 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13745 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
13747 else
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #include <langinfo.h>
13752 main ()
13754 char* cs = nl_langinfo(CODESET);
13756 return 0;
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"; then :
13760 emacs_cv_langinfo_codeset=yes
13761 else
13762 emacs_cv_langinfo_codeset=no
13764 rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
13769 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13770 if test $emacs_cv_langinfo_codeset = yes; then
13772 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13776 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13777 if test "x$ac_cv_type_size_t" = x""yes; then :
13779 cat >>confdefs.h <<_ACEOF
13780 #define HAVE_SIZE_T 1
13781 _ACEOF
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13788 $as_echo_n "checking for mbstate_t... " >&6; }
13789 if test "${ac_cv_type_mbstate_t+set}" = set; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794 $ac_includes_default
13795 # include <wchar.h>
13797 main ()
13799 mbstate_t x; return sizeof x;
13801 return 0;
13803 _ACEOF
13804 if ac_fn_c_try_compile "$LINENO"; then :
13805 ac_cv_type_mbstate_t=yes
13806 else
13807 ac_cv_type_mbstate_t=no
13809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
13812 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13813 if test $ac_cv_type_mbstate_t = yes; then
13815 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13817 else
13819 $as_echo "#define mbstate_t int" >>confdefs.h
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
13824 $as_echo_n "checking for C restrict keyword... " >&6; }
13825 if test "${emacs_cv_c_restrict+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 void fred (int *restrict x);
13832 main ()
13836 return 0;
13838 _ACEOF
13839 if ac_fn_c_try_compile "$LINENO"; then :
13840 emacs_cv_c_restrict=yes
13841 else
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 void fred (int *__restrict x);
13846 main ()
13850 return 0;
13852 _ACEOF
13853 if ac_fn_c_try_compile "$LINENO"; then :
13854 emacs_cv_c_restrict=__restrict
13855 else
13856 emacs_cv_c_restrict=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
13863 $as_echo "$emacs_cv_c_restrict" >&6; }
13864 case "$emacs_cv_c_restrict" in
13865 yes) emacs_restrict=restrict;;
13866 no) emacs_restrict="";;
13867 *) emacs_restrict="$emacs_cv_c_restrict";;
13868 esac
13869 if test "$emacs_restrict" != __restrict; then
13871 cat >>confdefs.h <<_ACEOF
13872 #define __restrict $emacs_restrict
13873 _ACEOF
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
13878 $as_echo_n "checking for C restricted array declarations... " >&6; }
13879 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884 void fred (int x[__restrict]);
13886 main ()
13890 return 0;
13892 _ACEOF
13893 if ac_fn_c_try_compile "$LINENO"; then :
13894 emacs_cv_c_restrict_arr=yes
13895 else
13896 emacs_cv_c_restrict_arr=no
13898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
13901 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13902 if test "$emacs_cv_c_restrict_arr" = yes; then
13904 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
13910 # Set up the CFLAGS for real compilation, so we can substitute it.
13911 CFLAGS="$REAL_CFLAGS"
13912 CPPFLAGS="$REAL_CPPFLAGS"
13914 ## Hack to detect a buggy GCC version.
13915 if test "x$GCC" = xyes \
13916 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
13917 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
13918 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
13919 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
13922 #### Find out which version of Emacs this is.
13923 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
13924 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13925 if test x"${version}" = x; then
13926 as_fn_error "can't find current emacs version in \`${srcdir}/src/emacs.c'." "$LINENO" 5
13928 if test x"${version}" != x"$PACKAGE_VERSION"; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&5
13930 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
13933 ### Specify what sort of things we'll be editing into Makefile and config.h.
13934 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13937 ## Unused?
13958 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
13959 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
13960 ## end of LIBX_BASE, but nothing ever set it.
13965 ## Used in lwlib/Makefile.in.
13978 cat >>confdefs.h <<_ACEOF
13979 #define EMACS_CONFIGURATION "${canonical}"
13980 _ACEOF
13983 cat >>confdefs.h <<_ACEOF
13984 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
13985 _ACEOF
13988 cat >>confdefs.h <<_ACEOF
13989 #define config_machfile "${machfile}"
13990 _ACEOF
13993 cat >>confdefs.h <<_ACEOF
13994 #define config_opsysfile "${opsysfile}"
13995 _ACEOF
13998 XMENU_OBJ=
13999 XOBJ=
14000 FONT_OBJ=
14001 if test "${HAVE_X_WINDOWS}" = "yes" ; then
14003 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
14005 XMENU_OBJ=xmenu.o
14006 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
14007 FONT_OBJ=xfont.o
14008 if test "$HAVE_XFT" = "yes"; then
14009 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14010 elif test "$HAVE_FREETYPE" = "yes"; then
14011 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14019 WIDGET_OBJ=
14020 MOTIF_LIBW=
14021 if test "${USE_X_TOOLKIT}" != "none" ; then
14022 WIDGET_OBJ=widget.o
14024 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
14026 if test "${USE_X_TOOLKIT}" = "LUCID"; then
14028 $as_echo "#define USE_LUCID 1" >>confdefs.h
14030 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
14032 $as_echo "#define USE_MOTIF 1" >>confdefs.h
14034 MOTIF_LIBW=-lXm
14035 case "$opsys" in
14036 gnu-linux)
14037 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
14038 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
14041 unixware)
14042 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
14043 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
14044 MOTIF_LIBW="MOTIF_LIBW -lXimp"
14047 aix4-2)
14048 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
14049 MOTIF_LIBW="$MOTIF_LIBW -li18n"
14051 esac
14052 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
14057 TOOLKIT_LIBW=
14058 case "$USE_X_TOOLKIT" in
14059 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
14060 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
14061 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
14062 esac
14065 if test "$USE_X_TOOLKIT" = "none"; then
14066 LIBXT_OTHER="\$(LIBXSM)"
14067 OLDXMENU_TARGET="really-oldXMenu"
14068 else
14069 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
14070 OLDXMENU_TARGET="really-lwlib"
14074 ## The X Menu stuff is present in the X10 distribution, but missing
14075 ## from X11. If we have X10, just use the installed library;
14076 ## otherwise, use our own copy.
14077 if test "${HAVE_X11}" = "yes" ; then
14079 $as_echo "#define HAVE_X11 1" >>confdefs.h
14082 if test "$USE_X_TOOLKIT" = "none"; then
14083 OLDXMENU="\${oldXMenudir}libXMenu11.a"
14084 else
14085 OLDXMENU="\${lwlibdir}liblw.a"
14087 LIBXMENU="\$(OLDXMENU)"
14088 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
14089 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
14090 else
14091 ## For a syntactically valid Makefile; not actually used for anything.
14092 ## See comments in src/Makefile.in.
14093 OLDXMENU=nothing
14094 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
14095 if test "${HAVE_X_WINDOWS}" = "yes"; then
14096 LIBXMENU="-lXMenu"
14097 else
14098 LIBXMENU=
14100 LIBX_OTHER=
14101 OLDXMENU_DEPS=
14104 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
14105 OLDXMENU_TARGET=
14106 OLDXMENU=nothing
14107 LIBXMENU=
14108 OLDXMENU_DEPS=
14117 if test "${HAVE_MENUS}" = "yes" ; then
14119 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
14123 if test "${GNU_MALLOC}" = "yes" ; then
14125 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
14129 RALLOC_OBJ=
14130 if test "${REL_ALLOC}" = "yes" ; then
14132 $as_echo "#define REL_ALLOC 1" >>confdefs.h
14135 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
14139 if test "$opsys" = "cygwin"; then
14140 CYGWIN_OBJ="sheap.o"
14141 ## Cygwin differs because of its unexec().
14142 PRE_ALLOC_OBJ=
14143 POST_ALLOC_OBJ=lastfile.o
14144 else
14145 CYGWIN_OBJ=
14146 PRE_ALLOC_OBJ=lastfile.o
14147 POST_ALLOC_OBJ=
14154 case "$opsys" in
14155 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
14157 darwin)
14158 ## The -headerpad option tells ld (see man page) to leave room at the
14159 ## end of the header for adding load commands. Needed for dumping.
14160 ## 0x690 is the total size of 30 segment load commands (at 56
14161 ## each); under Cocoa 31 commands are required.
14162 if test "$HAVE_NS" = "yes"; then
14163 libs_nsgui="-framework AppKit"
14164 headerpad_extra=6C8
14165 else
14166 libs_nsgui=
14167 headerpad_extra=690
14169 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
14171 ## This is here because src/Makefile.in did some extra fiddling around
14172 ## with LD_SWITCH_SYSTEM. The cpp logic was:
14173 ## #ifndef LD_SWITCH_SYSTEM
14174 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
14175 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
14176 ## not using gcc, darwin system not on an alpha (ie darwin, since
14177 ## darwin + alpha does not occur).
14178 ## Because this was done in src/Makefile.in, the resulting part of
14179 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
14180 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
14181 ## rather than LD_SWITCH_SYSTEM.
14182 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
14183 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
14186 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
14187 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
14188 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
14189 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
14190 ## had different values in configure (in ac_link) and src/Makefile.in.
14191 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
14192 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
14194 *) LD_SWITCH_SYSTEM_TEMACS= ;;
14195 esac
14197 if test "$NS_IMPL_GNUSTEP" = "yes"; then
14198 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
14204 LINKER=
14205 ORDINARY_LINK=
14206 case "$opsys" in
14207 ## gnu: GNU needs its own crt0.
14208 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
14210 cygwin) LINKER="\$(CC)" ;;
14212 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
14213 ## library search parth, i.e. it won't search /usr/lib for libc and
14214 ## friends. Using -nostartfiles instead avoids this problem, and
14215 ## will also work on earlier NetBSD releases.
14216 netbsd|openbsd) LINKER="\$(CC) -nostartfiles" ;;
14218 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
14219 ## MkLinux/LinuxPPC needs this.
14220 ## ibms390x only supports opsys = gnu-linux so it can be added here.
14221 gnu-*)
14222 case "$machine" in
14223 macppc|ibms390x) LINKER="\$(CC) -nostdlib" ;;
14224 esac
14226 esac
14229 PRE_EDIT_LDFLAGS=
14230 POST_EDIT_LDFLAGS=
14231 if test "x$ORDINARY_LINK" = "xyes"; then
14233 LINKER="\$(CC)"
14235 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
14238 ## The system files defining neither ORDINARY_LINK nor LINKER are:
14239 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
14240 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
14242 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
14243 ## places that are difficult to figure out at make time. Fortunately,
14244 ## these same versions allow you to pass arbitrary flags on to the
14245 ## linker, so there is no reason not to use it as a linker.
14247 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
14248 ## searching for libraries in its internal directories, so we have to
14249 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
14250 LINKER="\$(CC) -nostdlib"
14251 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
14252 ## See prefix-args.c for an explanation of why we do not do this with the
14253 ## shell''s ``for'' construct. Note that sane people do not have '.' in
14254 ## their paths, so we must use ./prefix-args.
14255 ## TODO either make prefix-args check ORDINARY_LINK internally,
14256 ## or remove it altogether (bug#6184), removing the need for this hack.
14257 PRE_EDIT_LDFLAGS='`./prefix-args -Xlinker'
14258 POST_EDIT_LDFLAGS='`'
14263 test "x$LINKER" = "x" && LINKER=ld
14264 ## FIXME? What setting of EDIT_LDFLAGS should this have?
14265 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER="\$(CC) -rdynamic"
14270 ## FIXME? The logic here is not precisely the same as that above.
14271 ## There is no check here for a pre-defined LINKER.
14272 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
14273 LIB_GCC=
14274 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
14276 case "$opsys" in
14277 ## cygwin: don't link against static libgcc.
14278 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
14280 gnu-*)
14281 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
14282 ## build on ARM EABI under GNU/Linux. (Bug#5518)
14283 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
14284 if test "$machine" = "arm"; then
14285 LIB_GCC="-lgcc_s"
14286 else
14287 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
14288 ## immediately undefine it again and redefine it to empty.
14289 ## Was the C_SWITCH_X_SITE part really necessary?
14290 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
14291 LIB_GCC=
14295 ## Ask GCC where to find libgcc.a.
14296 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
14297 esac
14301 TOOLTIP_SUPPORT=
14302 WINDOW_SUPPORT=
14303 ## If we're using X11/GNUstep, define some consequences.
14304 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
14306 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
14309 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
14311 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
14312 TOOLTIP_SUPPORT="\${lispsource}mouse.elc"
14314 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
14315 test "$HAVE_X_WINDOWS" = "yes" && \
14316 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
14326 #### Report on what we decided to do.
14327 #### Report GTK as a toolkit, even if it doesn't use Xt.
14328 #### It makes printing result more understandable as using GTK sets
14329 #### toolkit_scroll_bars to yes by default.
14330 if test "${HAVE_GTK}" = "yes"; then
14331 USE_X_TOOLKIT=GTK
14334 echo "
14335 Configured for \`${canonical}'.
14337 Where should the build process find the source code? ${srcdir}
14338 What operating system and machine description files should Emacs use?
14339 \`${opsysfile}' and \`${machfile}'
14340 What compiler should emacs be built with? ${CC} ${CFLAGS}
14341 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
14342 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
14343 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
14344 What window system should Emacs use? ${window_system}
14345 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
14347 if test -n "${x_includes}"; then
14348 echo " Where do we find X Windows header files? ${x_includes}"
14349 else
14350 echo " Where do we find X Windows header files? Standard dirs"
14352 if test -n "${x_libraries}"; then
14353 echo " Where do we find X Windows libraries? ${x_libraries}"
14354 else
14355 echo " Where do we find X Windows libraries? Standard dirs"
14358 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
14359 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
14360 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
14361 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
14362 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
14363 echo " Does Emacs use -lpng? ${HAVE_PNG}"
14364 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
14365 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
14366 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
14367 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
14368 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
14369 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
14371 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
14372 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
14373 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
14374 echo " Does Emacs use -lxft? ${HAVE_XFT}"
14376 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
14377 echo
14379 if test $USE_XASSERTS = yes; then
14380 echo " Compiling with asserts turned on."
14381 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
14384 echo
14386 if test "$HAVE_NS" = "yes"; then
14387 echo
14388 echo "You must run \"make install\" in order to test the built application.
14389 The installed application will go to nextstep/Emacs.app and can be
14390 run or moved from there."
14391 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
14392 echo "The application will be fully self-contained."
14393 else
14394 echo "The lisp resources for the application will be installed under ${prefix}.
14395 You may need to run \"make install\" with sudo. The application will fail
14396 to run if these resources are not installed."
14398 echo
14401 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
14402 echo "D-Bus integration has been tested for GNU/Linux only."
14403 echo
14407 # Remove any trailing slashes in these variables.
14408 test "${prefix}" != NONE &&
14409 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
14410 test "${exec_prefix}" != NONE &&
14411 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
14413 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"
14415 ac_config_commands="$ac_config_commands default"
14417 cat >confcache <<\_ACEOF
14418 # This file is a shell script that caches the results of configure
14419 # tests run on this system so they can be shared between configure
14420 # scripts and configure runs, see configure's option --config-cache.
14421 # It is not useful on other systems. If it contains results you don't
14422 # want to keep, you may remove or edit it.
14424 # config.status only pays attention to the cache file if you give it
14425 # the --recheck option to rerun configure.
14427 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14428 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14429 # following values.
14431 _ACEOF
14433 # The following way of writing the cache mishandles newlines in values,
14434 # but we know of no workaround that is simple, portable, and efficient.
14435 # So, we kill variables containing newlines.
14436 # Ultrix sh set writes to stderr and can't be redirected directly,
14437 # and sets the high bit in the cache file unless we assign to the vars.
14439 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14440 eval ac_val=\$$ac_var
14441 case $ac_val in #(
14442 *${as_nl}*)
14443 case $ac_var in #(
14444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14446 esac
14447 case $ac_var in #(
14448 _ | IFS | as_nl) ;; #(
14449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14450 *) { eval $ac_var=; unset $ac_var;} ;;
14451 esac ;;
14452 esac
14453 done
14455 (set) 2>&1 |
14456 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14457 *${as_nl}ac_space=\ *)
14458 # `set' does not quote correctly, so add quotes: double-quote
14459 # substitution turns \\\\ into \\, and sed turns \\ into \.
14460 sed -n \
14461 "s/'/'\\\\''/g;
14462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14463 ;; #(
14465 # `set' quotes correctly as required by POSIX, so do not add quotes.
14466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14468 esac |
14469 sort
14471 sed '
14472 /^ac_cv_env_/b end
14473 t clear
14474 :clear
14475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14476 t end
14477 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14478 :end' >>confcache
14479 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14480 if test -w "$cache_file"; then
14481 test "x$cache_file" != "x/dev/null" &&
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14483 $as_echo "$as_me: updating cache $cache_file" >&6;}
14484 cat confcache >$cache_file
14485 else
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14487 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14490 rm -f confcache
14492 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14493 # Let make expand exec_prefix.
14494 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14496 DEFS=-DHAVE_CONFIG_H
14498 ac_libobjs=
14499 ac_ltlibobjs=
14500 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14501 # 1. Remove the extension, and $U if already installed.
14502 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14503 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14505 # will be set to the directory where LIBOBJS objects are built.
14506 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14507 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14508 done
14509 LIBOBJS=$ac_libobjs
14511 LTLIBOBJS=$ac_ltlibobjs
14515 : ${CONFIG_STATUS=./config.status}
14516 ac_write_fail=0
14517 ac_clean_files_save=$ac_clean_files
14518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14520 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14521 as_write_fail=0
14522 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14523 #! $SHELL
14524 # Generated by $as_me.
14525 # Run this file to recreate the current configuration.
14526 # Compiler output produced by configure, useful for debugging
14527 # configure, is in config.log if it exists.
14529 debug=false
14530 ac_cs_recheck=false
14531 ac_cs_silent=false
14533 SHELL=\${CONFIG_SHELL-$SHELL}
14534 export SHELL
14535 _ASEOF
14536 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14537 ## -------------------- ##
14538 ## M4sh Initialization. ##
14539 ## -------------------- ##
14541 # Be more Bourne compatible
14542 DUALCASE=1; export DUALCASE # for MKS sh
14543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14544 emulate sh
14545 NULLCMD=:
14546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14547 # is contrary to our usage. Disable this feature.
14548 alias -g '${1+"$@"}'='"$@"'
14549 setopt NO_GLOB_SUBST
14550 else
14551 case `(set -o) 2>/dev/null` in #(
14552 *posix*) :
14553 set -o posix ;; #(
14554 *) :
14556 esac
14560 as_nl='
14562 export as_nl
14563 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14564 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14567 # Prefer a ksh shell builtin over an external printf program on Solaris,
14568 # but without wasting forks for bash or zsh.
14569 if test -z "$BASH_VERSION$ZSH_VERSION" \
14570 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14571 as_echo='print -r --'
14572 as_echo_n='print -rn --'
14573 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14574 as_echo='printf %s\n'
14575 as_echo_n='printf %s'
14576 else
14577 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14578 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14579 as_echo_n='/usr/ucb/echo -n'
14580 else
14581 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14582 as_echo_n_body='eval
14583 arg=$1;
14584 case $arg in #(
14585 *"$as_nl"*)
14586 expr "X$arg" : "X\\(.*\\)$as_nl";
14587 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14588 esac;
14589 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14591 export as_echo_n_body
14592 as_echo_n='sh -c $as_echo_n_body as_echo'
14594 export as_echo_body
14595 as_echo='sh -c $as_echo_body as_echo'
14598 # The user is always right.
14599 if test "${PATH_SEPARATOR+set}" != set; then
14600 PATH_SEPARATOR=:
14601 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14602 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14603 PATH_SEPARATOR=';'
14608 # IFS
14609 # We need space, tab and new line, in precisely that order. Quoting is
14610 # there to prevent editors from complaining about space-tab.
14611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14612 # splitting by setting IFS to empty value.)
14613 IFS=" "" $as_nl"
14615 # Find who we are. Look in the path if we contain no directory separator.
14616 case $0 in #((
14617 *[\\/]* ) as_myself=$0 ;;
14618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14619 for as_dir in $PATH
14621 IFS=$as_save_IFS
14622 test -z "$as_dir" && as_dir=.
14623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14624 done
14625 IFS=$as_save_IFS
14628 esac
14629 # We did not find ourselves, most probably we were run as `sh COMMAND'
14630 # in which case we are not to be found in the path.
14631 if test "x$as_myself" = x; then
14632 as_myself=$0
14634 if test ! -f "$as_myself"; then
14635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14636 exit 1
14639 # Unset variables that we do not need and which cause bugs (e.g. in
14640 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14641 # suppresses any "Segmentation fault" message there. '((' could
14642 # trigger a bug in pdksh 5.2.14.
14643 for as_var in BASH_ENV ENV MAIL MAILPATH
14644 do eval test x\${$as_var+set} = xset \
14645 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14646 done
14647 PS1='$ '
14648 PS2='> '
14649 PS4='+ '
14651 # NLS nuisances.
14652 LC_ALL=C
14653 export LC_ALL
14654 LANGUAGE=C
14655 export LANGUAGE
14657 # CDPATH.
14658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14661 # as_fn_error ERROR [LINENO LOG_FD]
14662 # ---------------------------------
14663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14665 # script with status $?, using 1 if that was 0.
14666 as_fn_error ()
14668 as_status=$?; test $as_status -eq 0 && as_status=1
14669 if test "$3"; then
14670 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14673 $as_echo "$as_me: error: $1" >&2
14674 as_fn_exit $as_status
14675 } # as_fn_error
14678 # as_fn_set_status STATUS
14679 # -----------------------
14680 # Set $? to STATUS, without forking.
14681 as_fn_set_status ()
14683 return $1
14684 } # as_fn_set_status
14686 # as_fn_exit STATUS
14687 # -----------------
14688 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14689 as_fn_exit ()
14691 set +e
14692 as_fn_set_status $1
14693 exit $1
14694 } # as_fn_exit
14696 # as_fn_unset VAR
14697 # ---------------
14698 # Portably unset VAR.
14699 as_fn_unset ()
14701 { eval $1=; unset $1;}
14703 as_unset=as_fn_unset
14704 # as_fn_append VAR VALUE
14705 # ----------------------
14706 # Append the text in VALUE to the end of the definition contained in VAR. Take
14707 # advantage of any shell optimizations that allow amortized linear growth over
14708 # repeated appends, instead of the typical quadratic growth present in naive
14709 # implementations.
14710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14711 eval 'as_fn_append ()
14713 eval $1+=\$2
14715 else
14716 as_fn_append ()
14718 eval $1=\$$1\$2
14720 fi # as_fn_append
14722 # as_fn_arith ARG...
14723 # ------------------
14724 # Perform arithmetic evaluation on the ARGs, and store the result in the
14725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14726 # must be portable across $(()) and expr.
14727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14728 eval 'as_fn_arith ()
14730 as_val=$(( $* ))
14732 else
14733 as_fn_arith ()
14735 as_val=`expr "$@" || test $? -eq 1`
14737 fi # as_fn_arith
14740 if expr a : '\(a\)' >/dev/null 2>&1 &&
14741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14742 as_expr=expr
14743 else
14744 as_expr=false
14747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14748 as_basename=basename
14749 else
14750 as_basename=false
14753 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14754 as_dirname=dirname
14755 else
14756 as_dirname=false
14759 as_me=`$as_basename -- "$0" ||
14760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14761 X"$0" : 'X\(//\)$' \| \
14762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14763 $as_echo X/"$0" |
14764 sed '/^.*\/\([^/][^/]*\)\/*$/{
14765 s//\1/
14768 /^X\/\(\/\/\)$/{
14769 s//\1/
14772 /^X\/\(\/\).*/{
14773 s//\1/
14776 s/.*/./; q'`
14778 # Avoid depending upon Character Ranges.
14779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14782 as_cr_digits='0123456789'
14783 as_cr_alnum=$as_cr_Letters$as_cr_digits
14785 ECHO_C= ECHO_N= ECHO_T=
14786 case `echo -n x` in #(((((
14787 -n*)
14788 case `echo 'xy\c'` in
14789 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14790 xy) ECHO_C='\c';;
14791 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14792 ECHO_T=' ';;
14793 esac;;
14795 ECHO_N='-n';;
14796 esac
14798 rm -f conf$$ conf$$.exe conf$$.file
14799 if test -d conf$$.dir; then
14800 rm -f conf$$.dir/conf$$.file
14801 else
14802 rm -f conf$$.dir
14803 mkdir conf$$.dir 2>/dev/null
14805 if (echo >conf$$.file) 2>/dev/null; then
14806 if ln -s conf$$.file conf$$ 2>/dev/null; then
14807 as_ln_s='ln -s'
14808 # ... but there are two gotchas:
14809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14811 # In both cases, we have to default to `cp -p'.
14812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14813 as_ln_s='cp -p'
14814 elif ln conf$$.file conf$$ 2>/dev/null; then
14815 as_ln_s=ln
14816 else
14817 as_ln_s='cp -p'
14819 else
14820 as_ln_s='cp -p'
14822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14823 rmdir conf$$.dir 2>/dev/null
14826 # as_fn_mkdir_p
14827 # -------------
14828 # Create "$as_dir" as a directory, including parents if necessary.
14829 as_fn_mkdir_p ()
14832 case $as_dir in #(
14833 -*) as_dir=./$as_dir;;
14834 esac
14835 test -d "$as_dir" || eval $as_mkdir_p || {
14836 as_dirs=
14837 while :; do
14838 case $as_dir in #(
14839 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14840 *) as_qdir=$as_dir;;
14841 esac
14842 as_dirs="'$as_qdir' $as_dirs"
14843 as_dir=`$as_dirname -- "$as_dir" ||
14844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14845 X"$as_dir" : 'X\(//\)[^/]' \| \
14846 X"$as_dir" : 'X\(//\)$' \| \
14847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14848 $as_echo X"$as_dir" |
14849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14850 s//\1/
14853 /^X\(\/\/\)[^/].*/{
14854 s//\1/
14857 /^X\(\/\/\)$/{
14858 s//\1/
14861 /^X\(\/\).*/{
14862 s//\1/
14865 s/.*/./; q'`
14866 test -d "$as_dir" && break
14867 done
14868 test -z "$as_dirs" || eval "mkdir $as_dirs"
14869 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14872 } # as_fn_mkdir_p
14873 if mkdir -p . 2>/dev/null; then
14874 as_mkdir_p='mkdir -p "$as_dir"'
14875 else
14876 test -d ./-p && rmdir ./-p
14877 as_mkdir_p=false
14880 if test -x / >/dev/null 2>&1; then
14881 as_test_x='test -x'
14882 else
14883 if ls -dL / >/dev/null 2>&1; then
14884 as_ls_L_option=L
14885 else
14886 as_ls_L_option=
14888 as_test_x='
14889 eval sh -c '\''
14890 if test -d "$1"; then
14891 test -d "$1/.";
14892 else
14893 case $1 in #(
14894 -*)set "./$1";;
14895 esac;
14896 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14897 ???[sx]*):;;*)false;;esac;fi
14898 '\'' sh
14901 as_executable_p=$as_test_x
14903 # Sed expression to map a string onto a valid CPP name.
14904 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14906 # Sed expression to map a string onto a valid variable name.
14907 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14910 exec 6>&1
14911 ## ----------------------------------- ##
14912 ## Main body of $CONFIG_STATUS script. ##
14913 ## ----------------------------------- ##
14914 _ASEOF
14915 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14918 # Save the log message, to keep $0 and so on meaningful, and to
14919 # report actual input values of CONFIG_FILES etc. instead of their
14920 # values after options handling.
14921 ac_log="
14922 This file was extended by emacs $as_me 24.0.50, which was
14923 generated by GNU Autoconf 2.65. Invocation command line was
14925 CONFIG_FILES = $CONFIG_FILES
14926 CONFIG_HEADERS = $CONFIG_HEADERS
14927 CONFIG_LINKS = $CONFIG_LINKS
14928 CONFIG_COMMANDS = $CONFIG_COMMANDS
14929 $ $0 $@
14931 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14934 _ACEOF
14936 case $ac_config_files in *"
14937 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14938 esac
14940 case $ac_config_headers in *"
14941 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14942 esac
14945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14946 # Files that config.status was made for.
14947 config_files="$ac_config_files"
14948 config_headers="$ac_config_headers"
14949 config_commands="$ac_config_commands"
14951 _ACEOF
14953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14954 ac_cs_usage="\
14955 \`$as_me' instantiates files and other configuration actions
14956 from templates according to the current configuration. Unless the files
14957 and actions are specified as TAGs, all are instantiated by default.
14959 Usage: $0 [OPTION]... [TAG]...
14961 -h, --help print this help, then exit
14962 -V, --version print version number and configuration settings, then exit
14963 --config print configuration, then exit
14964 -q, --quiet, --silent
14965 do not print progress messages
14966 -d, --debug don't remove temporary files
14967 --recheck update $as_me by reconfiguring in the same conditions
14968 --file=FILE[:TEMPLATE]
14969 instantiate the configuration file FILE
14970 --header=FILE[:TEMPLATE]
14971 instantiate the configuration header FILE
14973 Configuration files:
14974 $config_files
14976 Configuration headers:
14977 $config_headers
14979 Configuration commands:
14980 $config_commands
14982 Report bugs to the package provider."
14984 _ACEOF
14985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14986 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14987 ac_cs_version="\\
14988 emacs config.status 24.0.50
14989 configured by $0, generated by GNU Autoconf 2.65,
14990 with options \\"\$ac_cs_config\\"
14992 Copyright (C) 2009 Free Software Foundation, Inc.
14993 This config.status script is free software; the Free Software Foundation
14994 gives unlimited permission to copy, distribute and modify it."
14996 ac_pwd='$ac_pwd'
14997 srcdir='$srcdir'
14998 INSTALL='$INSTALL'
14999 test -n "\$AWK" || AWK=awk
15000 _ACEOF
15002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15003 # The default lists apply if the user does not specify any file.
15004 ac_need_defaults=:
15005 while test $# != 0
15007 case $1 in
15008 --*=*)
15009 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15010 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15011 ac_shift=:
15014 ac_option=$1
15015 ac_optarg=$2
15016 ac_shift=shift
15018 esac
15020 case $ac_option in
15021 # Handling of the options.
15022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15023 ac_cs_recheck=: ;;
15024 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15025 $as_echo "$ac_cs_version"; exit ;;
15026 --config | --confi | --conf | --con | --co | --c )
15027 $as_echo "$ac_cs_config"; exit ;;
15028 --debug | --debu | --deb | --de | --d | -d )
15029 debug=: ;;
15030 --file | --fil | --fi | --f )
15031 $ac_shift
15032 case $ac_optarg in
15033 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15034 esac
15035 as_fn_append CONFIG_FILES " '$ac_optarg'"
15036 ac_need_defaults=false;;
15037 --header | --heade | --head | --hea )
15038 $ac_shift
15039 case $ac_optarg in
15040 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15041 esac
15042 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15043 ac_need_defaults=false;;
15044 --he | --h)
15045 # Conflict between --help and --header
15046 as_fn_error "ambiguous option: \`$1'
15047 Try \`$0 --help' for more information.";;
15048 --help | --hel | -h )
15049 $as_echo "$ac_cs_usage"; exit ;;
15050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15052 ac_cs_silent=: ;;
15054 # This is an error.
15055 -*) as_fn_error "unrecognized option: \`$1'
15056 Try \`$0 --help' for more information." ;;
15058 *) as_fn_append ac_config_targets " $1"
15059 ac_need_defaults=false ;;
15061 esac
15062 shift
15063 done
15065 ac_configure_extra_args=
15067 if $ac_cs_silent; then
15068 exec 6>/dev/null
15069 ac_configure_extra_args="$ac_configure_extra_args --silent"
15072 _ACEOF
15073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15074 if \$ac_cs_recheck; then
15075 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15076 shift
15077 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15078 CONFIG_SHELL='$SHELL'
15079 export CONFIG_SHELL
15080 exec "\$@"
15083 _ACEOF
15084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15085 exec 5>>config.log
15087 echo
15088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15089 ## Running $as_me. ##
15090 _ASBOX
15091 $as_echo "$ac_log"
15092 } >&5
15094 _ACEOF
15095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15097 # INIT-COMMANDS
15099 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
15101 _ACEOF
15103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15105 # Handling of arguments.
15106 for ac_config_target in $ac_config_targets
15108 case $ac_config_target in
15109 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
15110 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15111 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
15112 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
15113 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
15114 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
15115 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
15116 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
15117 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15118 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
15119 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
15120 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
15121 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15123 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15124 esac
15125 done
15128 # If the user did not use the arguments to specify the items to instantiate,
15129 # then the envvar interface is used. Set only those that are not.
15130 # We use the long form for the default assignment because of an extremely
15131 # bizarre bug on SunOS 4.1.3.
15132 if $ac_need_defaults; then
15133 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15134 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15135 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15138 # Have a temporary directory for convenience. Make it in the build tree
15139 # simply because there is no reason against having it here, and in addition,
15140 # creating and moving files from /tmp can sometimes cause problems.
15141 # Hook for its removal unless debugging.
15142 # Note that there is a small window in which the directory will not be cleaned:
15143 # after its creation but before its name has been assigned to `$tmp'.
15144 $debug ||
15146 tmp=
15147 trap 'exit_status=$?
15148 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15150 trap 'as_fn_exit 1' 1 2 13 15
15152 # Create a (secure) tmp directory for tmp files.
15155 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15156 test -n "$tmp" && test -d "$tmp"
15157 } ||
15159 tmp=./conf$$-$RANDOM
15160 (umask 077 && mkdir "$tmp")
15161 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15163 # Set up the scripts for CONFIG_FILES section.
15164 # No need to generate them if there are no CONFIG_FILES.
15165 # This happens for instance with `./config.status config.h'.
15166 if test -n "$CONFIG_FILES"; then
15168 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15169 ac_cs_awk_getline=:
15170 ac_cs_awk_pipe_init=
15171 ac_cs_awk_read_file='
15172 while ((getline aline < (F[key])) > 0)
15173 print(aline)
15174 close(F[key])'
15175 ac_cs_awk_pipe_fini=
15176 else
15177 ac_cs_awk_getline=false
15178 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15179 ac_cs_awk_read_file='
15180 print "|#_!!_#|"
15181 print "cat " F[key] " &&"
15182 '$ac_cs_awk_pipe_init
15183 # The final `:' finishes the AND list.
15184 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15186 ac_cr=`echo X | tr X '\015'`
15187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15188 # But we know of no other shell where ac_cr would be empty at this
15189 # point, so we can use a bashism as a fallback.
15190 if test "x$ac_cr" = x; then
15191 eval ac_cr=\$\'\\r\'
15193 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15195 ac_cs_awk_cr='\r'
15196 else
15197 ac_cs_awk_cr=$ac_cr
15200 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15201 _ACEOF
15203 # Create commands to substitute file output variables.
15205 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15206 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15207 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15208 echo "_ACAWK" &&
15209 echo "_ACEOF"
15210 } >conf$$files.sh &&
15211 . ./conf$$files.sh ||
15212 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15213 rm -f conf$$files.sh
15216 echo "cat >conf$$subs.awk <<_ACEOF" &&
15217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15218 echo "_ACEOF"
15219 } >conf$$subs.sh ||
15220 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15222 ac_delim='%!_!# '
15223 for ac_last_try in false false false false false :; do
15224 . ./conf$$subs.sh ||
15225 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15227 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15228 if test $ac_delim_n = $ac_delim_num; then
15229 break
15230 elif $ac_last_try; then
15231 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15232 else
15233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15235 done
15236 rm -f conf$$subs.sh
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15240 _ACEOF
15241 sed -n '
15243 s/^/S["/; s/!.*/"]=/
15246 s/^[^!]*!//
15247 :repl
15248 t repl
15249 s/'"$ac_delim"'$//
15250 t delim
15253 s/\(.\{148\}\)..*/\1/
15254 t more1
15255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15258 b repl
15259 :more1
15260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15263 s/.\{148\}//
15264 t nl
15265 :delim
15267 s/\(.\{148\}\)..*/\1/
15268 t more2
15269 s/["\\]/\\&/g; s/^/"/; s/$/"/
15272 :more2
15273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15276 s/.\{148\}//
15277 t delim
15278 ' <conf$$subs.awk | sed '
15279 /^[^""]/{
15281 s/\n//
15283 ' >>$CONFIG_STATUS || ac_write_fail=1
15284 rm -f conf$$subs.awk
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15286 _ACAWK
15287 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15288 for (key in S) S_is_set[key] = 1
15289 FS = "\a"
15290 \$ac_cs_awk_pipe_init
15293 line = $ 0
15294 nfields = split(line, field, "@")
15295 substed = 0
15296 len = length(field[1])
15297 for (i = 2; i < nfields; i++) {
15298 key = field[i]
15299 keylen = length(key)
15300 if (S_is_set[key]) {
15301 value = S[key]
15302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15303 len += length(value) + length(field[++i])
15304 substed = 1
15305 } else
15306 len += 1 + keylen
15308 if (nfields == 3 && !substed) {
15309 key = field[2]
15310 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15311 \$ac_cs_awk_read_file
15312 next
15315 print line
15317 \$ac_cs_awk_pipe_fini
15318 _ACAWK
15319 _ACEOF
15320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15322 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15323 else
15325 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15326 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15327 _ACEOF
15329 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15330 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15331 # trailing colons and then remove the whole line if VPATH becomes empty
15332 # (actually we leave an empty line to preserve line numbers).
15333 if test "x$srcdir" = x.; then
15334 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15335 s/:*\$(srcdir):*/:/
15336 s/:*\${srcdir}:*/:/
15337 s/:*@srcdir@:*/:/
15338 s/^\([^=]*=[ ]*\):*/\1/
15339 s/:*$//
15340 s/^[^=]*=[ ]*$//
15344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15345 fi # test -n "$CONFIG_FILES"
15347 # Set up the scripts for CONFIG_HEADERS section.
15348 # No need to generate them if there are no CONFIG_HEADERS.
15349 # This happens for instance with `./config.status Makefile'.
15350 if test -n "$CONFIG_HEADERS"; then
15351 cat >"$tmp/defines.awk" <<\_ACAWK ||
15352 BEGIN {
15353 _ACEOF
15355 # Transform confdefs.h into an awk script `defines.awk', embedded as
15356 # here-document in config.status, that substitutes the proper values into
15357 # config.h.in to produce config.h.
15359 # Create a delimiter string that does not exist in confdefs.h, to ease
15360 # handling of long lines.
15361 ac_delim='%!_!# '
15362 for ac_last_try in false false :; do
15363 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15364 if test -z "$ac_t"; then
15365 break
15366 elif $ac_last_try; then
15367 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15368 else
15369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15371 done
15373 # For the awk script, D is an array of macro values keyed by name,
15374 # likewise P contains macro parameters if any. Preserve backslash
15375 # newline sequences.
15377 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15378 sed -n '
15379 s/.\{148\}/&'"$ac_delim"'/g
15380 t rset
15381 :rset
15382 s/^[ ]*#[ ]*define[ ][ ]*/ /
15383 t def
15385 :def
15386 s/\\$//
15387 t bsnl
15388 s/["\\]/\\&/g
15389 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15390 D["\1"]=" \3"/p
15391 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15393 :bsnl
15394 s/["\\]/\\&/g
15395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15396 D["\1"]=" \3\\\\\\n"\\/p
15397 t cont
15398 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15399 t cont
15401 :cont
15403 s/.\{148\}/&'"$ac_delim"'/g
15404 t clear
15405 :clear
15406 s/\\$//
15407 t bsnlc
15408 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15410 :bsnlc
15411 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15412 b cont
15413 ' <confdefs.h | sed '
15414 s/'"$ac_delim"'/"\\\
15415 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15418 for (key in D) D_is_set[key] = 1
15419 FS = "\a"
15421 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15422 line = \$ 0
15423 split(line, arg, " ")
15424 if (arg[1] == "#") {
15425 defundef = arg[2]
15426 mac1 = arg[3]
15427 } else {
15428 defundef = substr(arg[1], 2)
15429 mac1 = arg[2]
15431 split(mac1, mac2, "(") #)
15432 macro = mac2[1]
15433 prefix = substr(line, 1, index(line, defundef) - 1)
15434 if (D_is_set[macro]) {
15435 # Preserve the white space surrounding the "#".
15436 print prefix "define", macro P[macro] D[macro]
15437 next
15438 } else {
15439 # Replace #undef with comments. This is necessary, for example,
15440 # in the case of _POSIX_SOURCE, which is predefined and required
15441 # on some systems where configure will not decide to define it.
15442 if (defundef == "undef") {
15443 print "/*", prefix defundef, macro, "*/"
15444 next
15448 { print }
15449 _ACAWK
15450 _ACEOF
15451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15453 fi # test -n "$CONFIG_HEADERS"
15456 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15457 shift
15458 for ac_tag
15460 case $ac_tag in
15461 :[FHLC]) ac_mode=$ac_tag; continue;;
15462 esac
15463 case $ac_mode$ac_tag in
15464 :[FHL]*:*);;
15465 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15466 :[FH]-) ac_tag=-:-;;
15467 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15468 esac
15469 ac_save_IFS=$IFS
15470 IFS=:
15471 set x $ac_tag
15472 IFS=$ac_save_IFS
15473 shift
15474 ac_file=$1
15475 shift
15477 case $ac_mode in
15478 :L) ac_source=$1;;
15479 :[FH])
15480 ac_file_inputs=
15481 for ac_f
15483 case $ac_f in
15484 -) ac_f="$tmp/stdin";;
15485 *) # Look for the file first in the build tree, then in the source tree
15486 # (if the path is not absolute). The absolute path cannot be DOS-style,
15487 # because $ac_f cannot contain `:'.
15488 test -f "$ac_f" ||
15489 case $ac_f in
15490 [\\/$]*) false;;
15491 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15492 esac ||
15493 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15494 esac
15495 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15496 as_fn_append ac_file_inputs " '$ac_f'"
15497 done
15499 # Let's still pretend it is `configure' which instantiates (i.e., don't
15500 # use $as_me), people would be surprised to read:
15501 # /* config.h. Generated by config.status. */
15502 configure_input='Generated from '`
15503 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15504 `' by configure.'
15505 if test x"$ac_file" != x-; then
15506 configure_input="$ac_file. $configure_input"
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15508 $as_echo "$as_me: creating $ac_file" >&6;}
15510 # Neutralize special characters interpreted by sed in replacement strings.
15511 case $configure_input in #(
15512 *\&* | *\|* | *\\* )
15513 ac_sed_conf_input=`$as_echo "$configure_input" |
15514 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15515 *) ac_sed_conf_input=$configure_input;;
15516 esac
15518 case $ac_tag in
15519 *:-:* | *:-) cat >"$tmp/stdin" \
15520 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15521 esac
15523 esac
15525 ac_dir=`$as_dirname -- "$ac_file" ||
15526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15527 X"$ac_file" : 'X\(//\)[^/]' \| \
15528 X"$ac_file" : 'X\(//\)$' \| \
15529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15530 $as_echo X"$ac_file" |
15531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15532 s//\1/
15535 /^X\(\/\/\)[^/].*/{
15536 s//\1/
15539 /^X\(\/\/\)$/{
15540 s//\1/
15543 /^X\(\/\).*/{
15544 s//\1/
15547 s/.*/./; q'`
15548 as_dir="$ac_dir"; as_fn_mkdir_p
15549 ac_builddir=.
15551 case "$ac_dir" in
15552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15555 # A ".." for each directory in $ac_dir_suffix.
15556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15557 case $ac_top_builddir_sub in
15558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15560 esac ;;
15561 esac
15562 ac_abs_top_builddir=$ac_pwd
15563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15564 # for backward compatibility:
15565 ac_top_builddir=$ac_top_build_prefix
15567 case $srcdir in
15568 .) # We are building in place.
15569 ac_srcdir=.
15570 ac_top_srcdir=$ac_top_builddir_sub
15571 ac_abs_top_srcdir=$ac_pwd ;;
15572 [\\/]* | ?:[\\/]* ) # Absolute name.
15573 ac_srcdir=$srcdir$ac_dir_suffix;
15574 ac_top_srcdir=$srcdir
15575 ac_abs_top_srcdir=$srcdir ;;
15576 *) # Relative name.
15577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15578 ac_top_srcdir=$ac_top_build_prefix$srcdir
15579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15580 esac
15581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15584 case $ac_mode in
15587 # CONFIG_FILE
15590 case $INSTALL in
15591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15592 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15593 esac
15594 _ACEOF
15596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 # If the template does not know about datarootdir, expand it.
15598 # FIXME: This hack should be removed a few years after 2.60.
15599 ac_datarootdir_hack=; ac_datarootdir_seen=
15600 ac_sed_dataroot='
15601 /datarootdir/ {
15605 /@datadir@/p
15606 /@docdir@/p
15607 /@infodir@/p
15608 /@localedir@/p
15609 /@mandir@/p'
15610 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15611 *datarootdir*) ac_datarootdir_seen=yes;;
15612 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15614 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15615 _ACEOF
15616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15617 ac_datarootdir_hack='
15618 s&@datadir@&$datadir&g
15619 s&@docdir@&$docdir&g
15620 s&@infodir@&$infodir&g
15621 s&@localedir@&$localedir&g
15622 s&@mandir@&$mandir&g
15623 s&\\\${datarootdir}&$datarootdir&g' ;;
15624 esac
15625 _ACEOF
15627 # Neutralize VPATH when `$srcdir' = `.'.
15628 # Shell code in configure.ac might set extrasub.
15629 # FIXME: do we really want to maintain this feature?
15630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15631 ac_sed_extra="$ac_vpsub
15632 $extrasub
15633 _ACEOF
15634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15637 s|@configure_input@|$ac_sed_conf_input|;t t
15638 s&@top_builddir@&$ac_top_builddir_sub&;t t
15639 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15640 s&@srcdir@&$ac_srcdir&;t t
15641 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15642 s&@top_srcdir@&$ac_top_srcdir&;t t
15643 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15644 s&@builddir@&$ac_builddir&;t t
15645 s&@abs_builddir@&$ac_abs_builddir&;t t
15646 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15647 s&@INSTALL@&$ac_INSTALL&;t t
15648 $ac_datarootdir_hack
15650 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15651 if $ac_cs_awk_getline; then
15652 $AWK -f "$tmp/subs.awk"
15653 else
15654 $AWK -f "$tmp/subs.awk" | $SHELL
15655 fi >$tmp/out \
15656 || as_fn_error "could not create $ac_file" "$LINENO" 5
15658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15659 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15662 which seems to be undefined. Please make sure it is defined." >&5
15663 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15664 which seems to be undefined. Please make sure it is defined." >&2;}
15666 rm -f "$tmp/stdin"
15667 case $ac_file in
15668 -) cat "$tmp/out" && rm -f "$tmp/out";;
15669 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15670 esac \
15671 || as_fn_error "could not create $ac_file" "$LINENO" 5
15675 # CONFIG_HEADER
15677 if test x"$ac_file" != x-; then
15679 $as_echo "/* $configure_input */" \
15680 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15681 } >"$tmp/config.h" \
15682 || as_fn_error "could not create $ac_file" "$LINENO" 5
15683 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15685 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15686 else
15687 rm -f "$ac_file"
15688 mv "$tmp/config.h" "$ac_file" \
15689 || as_fn_error "could not create $ac_file" "$LINENO" 5
15691 else
15692 $as_echo "/* $configure_input */" \
15693 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15694 || as_fn_error "could not create -" "$LINENO" 5
15698 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15699 $as_echo "$as_me: executing $ac_file commands" >&6;}
15701 esac
15704 case $ac_file$ac_mode in
15705 "default":C)
15707 ### Make the necessary directories, if they don't exist.
15708 for dir in etc lisp ; do
15709 test -d ${dir} || mkdir ${dir}
15710 done
15712 echo creating src/epaths.h
15713 ${MAKE-make} epaths-force
15715 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
15716 echo creating src/.gdbinit
15717 echo source $srcdir/src/.gdbinit > src/.gdbinit
15722 esac
15723 done # for ac_tag
15726 as_fn_exit 0
15727 _ACEOF
15728 ac_clean_files=$ac_clean_files_save
15730 test $ac_write_fail = 0 ||
15731 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15734 # configure is writing to config.log, and then calls config.status.
15735 # config.status does its own redirection, appending to config.log.
15736 # Unfortunately, on DOS this fails, as config.log is still kept open
15737 # by configure, so config.status won't be able to write to it; its
15738 # output is simply discarded. So we exec the FD to /dev/null,
15739 # effectively closing config.log, so it can be properly (re)opened and
15740 # appended to by config.status. When coming back to configure, we
15741 # need to make the FD available again.
15742 if test "$no_create" != yes; then
15743 ac_cs_success=:
15744 ac_config_status_args=
15745 test "$silent" = yes &&
15746 ac_config_status_args="$ac_config_status_args --quiet"
15747 exec 5>/dev/null
15748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15749 exec 5>>config.log
15750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15751 # would make configure fail if this is the last instruction.
15752 $ac_cs_success || as_fn_exit $?
15754 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15756 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}