Merge from mainline.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
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"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
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=';'
80 }
81 fi
82
83
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"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_header_list=
603 gl_getopt_required=POSIX
604 gl_getopt_required=POSIX
605 ac_func_list=
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
681 NEXT_STDLIB_H
682 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
683 NEXT_STDDEF_H
684 STDDEF_H
685 HAVE_WCHAR_T
686 REPLACE_NULL
687 HAVE__BOOL
688 STDBOOL_H
689 APPLE_UNIVERSAL_BUILD
690 REPLACE_TIMEGM
691 REPLACE_NANOSLEEP
692 REPLACE_MKTIME
693 REPLACE_LOCALTIME_R
694 HAVE_TIMEGM
695 HAVE_STRPTIME
696 HAVE_NANOSLEEP
697 HAVE_DECL_LOCALTIME_R
698 GNULIB_TIME_R
699 GNULIB_TIMEGM
700 GNULIB_STRPTIME
701 GNULIB_NANOSLEEP
702 GNULIB_MKTIME
703 LTLIBINTL
704 LIBINTL
705 GETOPT_H
706 HAVE_GETOPT_H
707 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
708 NEXT_GETOPT_H
709 PRAGMA_COLUMNS
710 PRAGMA_SYSTEM_HEADER
711 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
712 INCLUDE_NEXT
713 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
714 UNISTD_H_HAVE_WINSOCK2_H
715 REPLACE_WRITE
716 REPLACE_USLEEP
717 REPLACE_UNLINKAT
718 REPLACE_UNLINK
719 REPLACE_TTYNAME_R
720 REPLACE_SYMLINK
721 REPLACE_SLEEP
722 REPLACE_RMDIR
723 REPLACE_READLINK
724 REPLACE_PWRITE
725 REPLACE_PREAD
726 REPLACE_LSEEK
727 REPLACE_LINKAT
728 REPLACE_LINK
729 REPLACE_LCHOWN
730 REPLACE_GETPAGESIZE
731 REPLACE_GETGROUPS
732 REPLACE_GETLOGIN_R
733 REPLACE_GETDOMAINNAME
734 REPLACE_GETCWD
735 REPLACE_FCHOWNAT
736 REPLACE_DUP2
737 REPLACE_DUP
738 REPLACE_CLOSE
739 REPLACE_CHOWN
740 HAVE_SYS_PARAM_H
741 HAVE_OS_H
742 HAVE_DECL_TTYNAME_R
743 HAVE_DECL_GETUSERSHELL
744 HAVE_DECL_GETPAGESIZE
745 HAVE_DECL_GETLOGIN_R
746 HAVE_DECL_GETDOMAINNAME
747 HAVE_DECL_FCHDIR
748 HAVE_DECL_ENVIRON
749 HAVE_USLEEP
750 HAVE_UNLINKAT
751 HAVE_SYMLINKAT
752 HAVE_SYMLINK
753 HAVE_SLEEP
754 HAVE_READLINKAT
755 HAVE_READLINK
756 HAVE_PWRITE
757 HAVE_PREAD
758 HAVE_PIPE2
759 HAVE_PIPE
760 HAVE_LINKAT
761 HAVE_LINK
762 HAVE_LCHOWN
763 HAVE_GETPAGESIZE
764 HAVE_GETLOGIN
765 HAVE_GETHOSTNAME
766 HAVE_GETGROUPS
767 HAVE_GETDTABLESIZE
768 HAVE_FTRUNCATE
769 HAVE_FSYNC
770 HAVE_FCHOWNAT
771 HAVE_FCHDIR
772 HAVE_FACCESSAT
773 HAVE_EUIDACCESS
774 HAVE_DUP3
775 HAVE_DUP2
776 HAVE_CHOWN
777 GNULIB_WRITE
778 GNULIB_USLEEP
779 GNULIB_UNLINKAT
780 GNULIB_UNLINK
781 GNULIB_UNISTD_H_SIGPIPE
782 GNULIB_UNISTD_H_GETOPT
783 GNULIB_TTYNAME_R
784 GNULIB_SYMLINKAT
785 GNULIB_SYMLINK
786 GNULIB_SLEEP
787 GNULIB_RMDIR
788 GNULIB_READLINKAT
789 GNULIB_READLINK
790 GNULIB_PWRITE
791 GNULIB_PREAD
792 GNULIB_PIPE2
793 GNULIB_PIPE
794 GNULIB_LSEEK
795 GNULIB_LINKAT
796 GNULIB_LINK
797 GNULIB_LCHOWN
798 GNULIB_GETUSERSHELL
799 GNULIB_GETPAGESIZE
800 GNULIB_GETLOGIN_R
801 GNULIB_GETLOGIN
802 GNULIB_GETHOSTNAME
803 GNULIB_GETGROUPS
804 GNULIB_GETDTABLESIZE
805 GNULIB_GETDOMAINNAME
806 GNULIB_GETCWD
807 GNULIB_FTRUNCATE
808 GNULIB_FSYNC
809 GNULIB_FCHOWNAT
810 GNULIB_FCHDIR
811 GNULIB_FACCESSAT
812 GNULIB_EUIDACCESS
813 GNULIB_ENVIRON
814 GNULIB_DUP3
815 GNULIB_DUP2
816 GNULIB_CLOSE
817 GNULIB_CHOWN
818 GETLOADAVG_LIBS
819 REPLACE_UNSETENV
820 REPLACE_STRTOD
821 REPLACE_SETENV
822 REPLACE_REALPATH
823 REPLACE_REALLOC
824 REPLACE_PUTENV
825 REPLACE_MKSTEMP
826 REPLACE_MALLOC
827 REPLACE_CANONICALIZE_FILE_NAME
828 REPLACE_CALLOC
829 HAVE_DECL_UNSETENV
830 HAVE_UNLOCKPT
831 HAVE_SYS_LOADAVG_H
832 HAVE_STRUCT_RANDOM_DATA
833 HAVE_STRTOULL
834 HAVE_STRTOLL
835 HAVE_STRTOD
836 HAVE_DECL_SETENV
837 HAVE_SETENV
838 HAVE_RPMATCH
839 HAVE_REALPATH
840 HAVE_RANDOM_R
841 HAVE_RANDOM_H
842 HAVE_PTSNAME
843 HAVE_MKSTEMPS
844 HAVE_MKSTEMP
845 HAVE_MKOSTEMPS
846 HAVE_MKOSTEMP
847 HAVE_MKDTEMP
848 HAVE_GRANTPT
849 HAVE_GETSUBOPT
850 HAVE_DECL_GETLOADAVG
851 HAVE_CANONICALIZE_FILE_NAME
852 HAVE_ATOLL
853 HAVE__EXIT
854 GNULIB_UNSETENV
855 GNULIB_UNLOCKPT
856 GNULIB_SYSTEM_POSIX
857 GNULIB_STRTOULL
858 GNULIB_STRTOLL
859 GNULIB_STRTOD
860 GNULIB_SETENV
861 GNULIB_RPMATCH
862 GNULIB_REALPATH
863 GNULIB_REALLOC_POSIX
864 GNULIB_RANDOM_R
865 GNULIB_PUTENV
866 GNULIB_PTSNAME
867 GNULIB_MKSTEMPS
868 GNULIB_MKSTEMP
869 GNULIB_MKOSTEMPS
870 GNULIB_MKOSTEMP
871 GNULIB_MKDTEMP
872 GNULIB_MALLOC_POSIX
873 GNULIB_GRANTPT
874 GNULIB_GETSUBOPT
875 GNULIB_GETLOADAVG
876 GNULIB_CANONICALIZE_FILE_NAME
877 GNULIB_CALLOC_POSIX
878 GNULIB_ATOLL
879 GNULIB__EXIT
880 GL_COND_LIBTOOL_FALSE
881 GL_COND_LIBTOOL_TRUE
882 BLESSMAIL_TARGET
883 LIBS_MAIL
884 liblockfile
885 ALLOCA
886 LIBXML2_LIBS
887 LIBXML2_CFLAGS
888 LIBXSM
889 LIBGPM
890 LIBGIF
891 LIBTIFF
892 LIBPNG
893 LIBJPEG
894 LIBXPM
895 FREETYPE_LIBS
896 FREETYPE_CFLAGS
897 M17N_FLT_LIBS
898 M17N_FLT_CFLAGS
899 LIBOTF_LIBS
900 LIBOTF_CFLAGS
901 XFT_LIBS
902 XFT_CFLAGS
903 FONTCONFIG_LIBS
904 FONTCONFIG_CFLAGS
905 LIBXMU
906 LIBXTR6
907 LIBGNUTLS_LIBS
908 LIBGNUTLS_CFLAGS
909 LIBSELINUX_LIBS
910 GCONF_LIBS
911 GCONF_CFLAGS
912 DBUS_OBJ
913 DBUS_LIBS
914 DBUS_CFLAGS
915 GTK_OBJ
916 GTK_LIBS
917 GTK_CFLAGS
918 IMAGEMAGICK_LIBS
919 IMAGEMAGICK_CFLAGS
920 RSVG_LIBS
921 RSVG_CFLAGS
922 VMLIMIT_OBJ
923 GMALLOC_OBJ
924 HAVE_XSERVER
925 LIB_STANDARD
926 NS_SUPPORT
927 NS_OBJC_OBJ
928 NS_OBJ
929 TEMACS_LDFLAGS2
930 LD_SWITCH_X_SITE_AUX_RPATH
931 LD_SWITCH_X_SITE_AUX
932 XMKMF
933 DEPFLAGS
934 MKDEPDIR
935 CFLAGS_SOUND
936 ALSA_LIBS
937 ALSA_CFLAGS
938 PKG_CONFIG
939 LIBSOUND
940 START_FILES
941 LIB_MATH
942 CRT_DIR
943 LIBS_SYSTEM
944 C_SWITCH_SYSTEM
945 UNEXEC_OBJ
946 C_SWITCH_MACHINE
947 LD_SWITCH_SYSTEM
948 CANNOT_DUMP
949 HAVE_MAKEINFO
950 GZIP_PROG
951 INSTALL_INFO
952 C_WARNINGS_SWITCH
953 EGREP
954 GREP
955 CPP
956 RANLIB
957 am__fastdepCC_FALSE
958 am__fastdepCC_TRUE
959 CCDEPMODE
960 AMDEPBACKSLASH
961 AMDEP_FALSE
962 AMDEP_TRUE
963 am__quote
964 am__include
965 DEPDIR
966 OBJEXT
967 EXEEXT
968 ac_ct_CC
969 CPPFLAGS
970 LDFLAGS
971 CFLAGS
972 CC
973 host_os
974 host_vendor
975 host_cpu
976 host
977 build_os
978 build_vendor
979 build_cpu
980 build
981 PROFILING_CFLAGS
982 MAINT
983 GZIP_INFO
984 am__untar
985 am__tar
986 AMTAR
987 am__leading_dot
988 SET_MAKE
989 AWK
990 mkdir_p
991 MKDIR_P
992 INSTALL_STRIP_PROGRAM
993 STRIP
994 install_sh
995 MAKEINFO
996 AUTOHEADER
997 AUTOMAKE
998 AUTOCONF
999 ACLOCAL
1000 VERSION
1001 PACKAGE
1002 CYGPATH_W
1003 am__isrc
1004 INSTALL_DATA
1005 INSTALL_SCRIPT
1006 INSTALL_PROGRAM
1007 target_alias
1008 host_alias
1009 build_alias
1010 LIBS
1011 ECHO_T
1012 ECHO_N
1013 ECHO_C
1014 DEFS
1015 mandir
1016 localedir
1017 libdir
1018 psdir
1019 pdfdir
1020 dvidir
1021 htmldir
1022 infodir
1023 docdir
1024 oldincludedir
1025 includedir
1026 localstatedir
1027 sharedstatedir
1028 sysconfdir
1029 datadir
1030 datarootdir
1031 libexecdir
1032 sbindir
1033 bindir
1034 program_transform_name
1035 prefix
1036 exec_prefix
1037 PACKAGE_URL
1038 PACKAGE_BUGREPORT
1039 PACKAGE_STRING
1040 PACKAGE_VERSION
1041 PACKAGE_TARNAME
1042 PACKAGE_NAME
1043 PATH_SEPARATOR
1044 SHELL'
1045 ac_subst_files='deps_frag
1046 ns_frag'
1047 ac_user_opts='
1048 enable_option_checking
1049 with_pop
1050 with_kerberos
1051 with_kerberos5
1052 with_hesiod
1053 with_mmdf
1054 with_mail_unlink
1055 with_mailhost
1056 with_sound
1057 with_sync_input
1058 with_x_toolkit
1059 with_xpm
1060 with_jpeg
1061 with_tiff
1062 with_gif
1063 with_png
1064 with_rsvg
1065 with_xml2
1066 with_imagemagick
1067 with_xft
1068 with_libotf
1069 with_m17n_flt
1070 with_toolkit_scroll_bars
1071 with_xaw3d
1072 with_xim
1073 with_ns
1074 with_gpm
1075 with_dbus
1076 with_gconf
1077 with_selinux
1078 with_gnutls
1079 with_makeinfo
1080 with_compress_info
1081 with_pkg_config_prog
1082 with_crt_dir
1083 with_gameuser
1084 with_gnustep_conf
1085 enable_ns_self_contained
1086 enable_asserts
1087 enable_maintainer_mode
1088 enable_locallisppath
1089 enable_checking
1090 enable_use_lisp_union_type
1091 enable_profiling
1092 enable_autodepend
1093 enable_dependency_tracking
1094 enable_largefile
1095 with_x
1096 '
1097 ac_precious_vars='build_alias
1098 host_alias
1099 target_alias
1100 CC
1101 CFLAGS
1102 LDFLAGS
1103 LIBS
1104 CPPFLAGS
1105 CPP
1106 CPPFLAGS
1107 CPP
1108 CPPFLAGS
1109 XMKMF'
1110
1111
1112 # Initialize some variables set by options.
1113 ac_init_help=
1114 ac_init_version=false
1115 ac_unrecognized_opts=
1116 ac_unrecognized_sep=
1117 # The variables have the same names as the options, with
1118 # dashes changed to underlines.
1119 cache_file=/dev/null
1120 exec_prefix=NONE
1121 no_create=
1122 no_recursion=
1123 prefix=NONE
1124 program_prefix=NONE
1125 program_suffix=NONE
1126 program_transform_name=s,x,x,
1127 silent=
1128 site=
1129 srcdir=
1130 verbose=
1131 x_includes=NONE
1132 x_libraries=NONE
1133
1134 # Installation directory options.
1135 # These are left unexpanded so users can "make install exec_prefix=/foo"
1136 # and all the variables that are supposed to be based on exec_prefix
1137 # by default will actually change.
1138 # Use braces instead of parens because sh, perl, etc. also accept them.
1139 # (The list follows the same order as the GNU Coding Standards.)
1140 bindir='${exec_prefix}/bin'
1141 sbindir='${exec_prefix}/sbin'
1142 libexecdir='${exec_prefix}/libexec'
1143 datarootdir='${prefix}/share'
1144 datadir='${datarootdir}'
1145 sysconfdir='${prefix}/etc'
1146 sharedstatedir='${prefix}/com'
1147 localstatedir='${prefix}/var'
1148 includedir='${prefix}/include'
1149 oldincludedir='/usr/include'
1150 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1151 infodir='${datarootdir}/info'
1152 htmldir='${docdir}'
1153 dvidir='${docdir}'
1154 pdfdir='${docdir}'
1155 psdir='${docdir}'
1156 libdir='${exec_prefix}/lib'
1157 localedir='${datarootdir}/locale'
1158 mandir='${datarootdir}/man'
1159
1160 ac_prev=
1161 ac_dashdash=
1162 for ac_option
1163 do
1164 # If the previous option needs an argument, assign it.
1165 if test -n "$ac_prev"; then
1166 eval $ac_prev=\$ac_option
1167 ac_prev=
1168 continue
1169 fi
1170
1171 case $ac_option in
1172 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1173 *=) ac_optarg= ;;
1174 *) ac_optarg=yes ;;
1175 esac
1176
1177 # Accept the important Cygnus configure options, so we can diagnose typos.
1178
1179 case $ac_dashdash$ac_option in
1180 --)
1181 ac_dashdash=yes ;;
1182
1183 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1184 ac_prev=bindir ;;
1185 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1186 bindir=$ac_optarg ;;
1187
1188 -build | --build | --buil | --bui | --bu)
1189 ac_prev=build_alias ;;
1190 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1191 build_alias=$ac_optarg ;;
1192
1193 -cache-file | --cache-file | --cache-fil | --cache-fi \
1194 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1195 ac_prev=cache_file ;;
1196 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1197 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1198 cache_file=$ac_optarg ;;
1199
1200 --config-cache | -C)
1201 cache_file=config.cache ;;
1202
1203 -datadir | --datadir | --datadi | --datad)
1204 ac_prev=datadir ;;
1205 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1206 datadir=$ac_optarg ;;
1207
1208 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1209 | --dataroo | --dataro | --datar)
1210 ac_prev=datarootdir ;;
1211 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1212 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1213 datarootdir=$ac_optarg ;;
1214
1215 -disable-* | --disable-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid feature name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "enable_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval enable_$ac_useropt=no ;;
1230
1231 -docdir | --docdir | --docdi | --doc | --do)
1232 ac_prev=docdir ;;
1233 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1234 docdir=$ac_optarg ;;
1235
1236 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1237 ac_prev=dvidir ;;
1238 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1239 dvidir=$ac_optarg ;;
1240
1241 -enable-* | --enable-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid feature name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250 "enable_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval enable_$ac_useropt=\$ac_optarg ;;
1256
1257 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1258 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1259 | --exec | --exe | --ex)
1260 ac_prev=exec_prefix ;;
1261 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1262 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1263 | --exec=* | --exe=* | --ex=*)
1264 exec_prefix=$ac_optarg ;;
1265
1266 -gas | --gas | --ga | --g)
1267 # Obsolete; use --with-gas.
1268 with_gas=yes ;;
1269
1270 -help | --help | --hel | --he | -h)
1271 ac_init_help=long ;;
1272 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1273 ac_init_help=recursive ;;
1274 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1275 ac_init_help=short ;;
1276
1277 -host | --host | --hos | --ho)
1278 ac_prev=host_alias ;;
1279 -host=* | --host=* | --hos=* | --ho=*)
1280 host_alias=$ac_optarg ;;
1281
1282 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1283 ac_prev=htmldir ;;
1284 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1285 | --ht=*)
1286 htmldir=$ac_optarg ;;
1287
1288 -includedir | --includedir | --includedi | --included | --include \
1289 | --includ | --inclu | --incl | --inc)
1290 ac_prev=includedir ;;
1291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1292 | --includ=* | --inclu=* | --incl=* | --inc=*)
1293 includedir=$ac_optarg ;;
1294
1295 -infodir | --infodir | --infodi | --infod | --info | --inf)
1296 ac_prev=infodir ;;
1297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1298 infodir=$ac_optarg ;;
1299
1300 -libdir | --libdir | --libdi | --libd)
1301 ac_prev=libdir ;;
1302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1303 libdir=$ac_optarg ;;
1304
1305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1306 | --libexe | --libex | --libe)
1307 ac_prev=libexecdir ;;
1308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1309 | --libexe=* | --libex=* | --libe=*)
1310 libexecdir=$ac_optarg ;;
1311
1312 -localedir | --localedir | --localedi | --localed | --locale)
1313 ac_prev=localedir ;;
1314 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1315 localedir=$ac_optarg ;;
1316
1317 -localstatedir | --localstatedir | --localstatedi | --localstated \
1318 | --localstate | --localstat | --localsta | --localst | --locals)
1319 ac_prev=localstatedir ;;
1320 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1321 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1322 localstatedir=$ac_optarg ;;
1323
1324 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1325 ac_prev=mandir ;;
1326 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1327 mandir=$ac_optarg ;;
1328
1329 -nfp | --nfp | --nf)
1330 # Obsolete; use --without-fp.
1331 with_fp=no ;;
1332
1333 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1334 | --no-cr | --no-c | -n)
1335 no_create=yes ;;
1336
1337 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1338 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1339 no_recursion=yes ;;
1340
1341 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1342 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1343 | --oldin | --oldi | --old | --ol | --o)
1344 ac_prev=oldincludedir ;;
1345 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1346 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1347 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1348 oldincludedir=$ac_optarg ;;
1349
1350 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1351 ac_prev=prefix ;;
1352 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1353 prefix=$ac_optarg ;;
1354
1355 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1356 | --program-pre | --program-pr | --program-p)
1357 ac_prev=program_prefix ;;
1358 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1359 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1360 program_prefix=$ac_optarg ;;
1361
1362 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1363 | --program-suf | --program-su | --program-s)
1364 ac_prev=program_suffix ;;
1365 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1366 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1367 program_suffix=$ac_optarg ;;
1368
1369 -program-transform-name | --program-transform-name \
1370 | --program-transform-nam | --program-transform-na \
1371 | --program-transform-n | --program-transform- \
1372 | --program-transform | --program-transfor \
1373 | --program-transfo | --program-transf \
1374 | --program-trans | --program-tran \
1375 | --progr-tra | --program-tr | --program-t)
1376 ac_prev=program_transform_name ;;
1377 -program-transform-name=* | --program-transform-name=* \
1378 | --program-transform-nam=* | --program-transform-na=* \
1379 | --program-transform-n=* | --program-transform-=* \
1380 | --program-transform=* | --program-transfor=* \
1381 | --program-transfo=* | --program-transf=* \
1382 | --program-trans=* | --program-tran=* \
1383 | --progr-tra=* | --program-tr=* | --program-t=*)
1384 program_transform_name=$ac_optarg ;;
1385
1386 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1387 ac_prev=pdfdir ;;
1388 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1389 pdfdir=$ac_optarg ;;
1390
1391 -psdir | --psdir | --psdi | --psd | --ps)
1392 ac_prev=psdir ;;
1393 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1394 psdir=$ac_optarg ;;
1395
1396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397 | -silent | --silent | --silen | --sile | --sil)
1398 silent=yes ;;
1399
1400 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1401 ac_prev=sbindir ;;
1402 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1403 | --sbi=* | --sb=*)
1404 sbindir=$ac_optarg ;;
1405
1406 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1407 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1408 | --sharedst | --shareds | --shared | --share | --shar \
1409 | --sha | --sh)
1410 ac_prev=sharedstatedir ;;
1411 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1412 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1413 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1414 | --sha=* | --sh=*)
1415 sharedstatedir=$ac_optarg ;;
1416
1417 -site | --site | --sit)
1418 ac_prev=site ;;
1419 -site=* | --site=* | --sit=*)
1420 site=$ac_optarg ;;
1421
1422 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1423 ac_prev=srcdir ;;
1424 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1425 srcdir=$ac_optarg ;;
1426
1427 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1428 | --syscon | --sysco | --sysc | --sys | --sy)
1429 ac_prev=sysconfdir ;;
1430 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1431 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1432 sysconfdir=$ac_optarg ;;
1433
1434 -target | --target | --targe | --targ | --tar | --ta | --t)
1435 ac_prev=target_alias ;;
1436 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1437 target_alias=$ac_optarg ;;
1438
1439 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1440 verbose=yes ;;
1441
1442 -version | --version | --versio | --versi | --vers | -V)
1443 ac_init_version=: ;;
1444
1445 -with-* | --with-*)
1446 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1447 # Reject names that are not valid shell variable names.
1448 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1449 as_fn_error $? "invalid package name: $ac_useropt"
1450 ac_useropt_orig=$ac_useropt
1451 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1452 case $ac_user_opts in
1453 *"
1454 "with_$ac_useropt"
1455 "*) ;;
1456 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1457 ac_unrecognized_sep=', ';;
1458 esac
1459 eval with_$ac_useropt=\$ac_optarg ;;
1460
1461 -without-* | --without-*)
1462 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1463 # Reject names that are not valid shell variable names.
1464 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1465 as_fn_error $? "invalid package name: $ac_useropt"
1466 ac_useropt_orig=$ac_useropt
1467 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1468 case $ac_user_opts in
1469 *"
1470 "with_$ac_useropt"
1471 "*) ;;
1472 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1473 ac_unrecognized_sep=', ';;
1474 esac
1475 eval with_$ac_useropt=no ;;
1476
1477 --x)
1478 # Obsolete; use --with-x.
1479 with_x=yes ;;
1480
1481 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1482 | --x-incl | --x-inc | --x-in | --x-i)
1483 ac_prev=x_includes ;;
1484 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1485 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1486 x_includes=$ac_optarg ;;
1487
1488 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1489 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1490 ac_prev=x_libraries ;;
1491 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1492 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1493 x_libraries=$ac_optarg ;;
1494
1495 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1496 Try \`$0 --help' for more information"
1497 ;;
1498
1499 *=*)
1500 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1501 # Reject names that are not valid shell variable names.
1502 case $ac_envvar in #(
1503 '' | [0-9]* | *[!_$as_cr_alnum]* )
1504 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1505 esac
1506 eval $ac_envvar=\$ac_optarg
1507 export $ac_envvar ;;
1508
1509 *)
1510 # FIXME: should be removed in autoconf 3.0.
1511 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1512 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1513 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1514 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1515 ;;
1516
1517 esac
1518 done
1519
1520 if test -n "$ac_prev"; then
1521 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1522 as_fn_error $? "missing argument to $ac_option"
1523 fi
1524
1525 if test -n "$ac_unrecognized_opts"; then
1526 case $enable_option_checking in
1527 no) ;;
1528 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1529 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1530 esac
1531 fi
1532
1533 # Check all directory arguments for consistency.
1534 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1535 datadir sysconfdir sharedstatedir localstatedir includedir \
1536 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1537 libdir localedir mandir
1538 do
1539 eval ac_val=\$$ac_var
1540 # Remove trailing slashes.
1541 case $ac_val in
1542 */ )
1543 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1544 eval $ac_var=\$ac_val;;
1545 esac
1546 # Be sure to have absolute directory names.
1547 case $ac_val in
1548 [\\/$]* | ?:[\\/]* ) continue;;
1549 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1550 esac
1551 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1552 done
1553
1554 # There might be people who depend on the old broken behavior: `$host'
1555 # used to hold the argument of --host etc.
1556 # FIXME: To remove some day.
1557 build=$build_alias
1558 host=$host_alias
1559 target=$target_alias
1560
1561 # FIXME: To remove some day.
1562 if test "x$host_alias" != x; then
1563 if test "x$build_alias" = x; then
1564 cross_compiling=maybe
1565 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1566 If a cross compiler is detected then cross compile mode will be used" >&2
1567 elif test "x$build_alias" != "x$host_alias"; then
1568 cross_compiling=yes
1569 fi
1570 fi
1571
1572 ac_tool_prefix=
1573 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1574
1575 test "$silent" = yes && exec 6>/dev/null
1576
1577
1578 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1579 ac_ls_di=`ls -di .` &&
1580 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1581 as_fn_error $? "working directory cannot be determined"
1582 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1583 as_fn_error $? "pwd does not report name of working directory"
1584
1585
1586 # Find the source files, if location was not specified.
1587 if test -z "$srcdir"; then
1588 ac_srcdir_defaulted=yes
1589 # Try the directory containing this script, then the parent directory.
1590 ac_confdir=`$as_dirname -- "$as_myself" ||
1591 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1592 X"$as_myself" : 'X\(//\)[^/]' \| \
1593 X"$as_myself" : 'X\(//\)$' \| \
1594 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1595 $as_echo X"$as_myself" |
1596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1597 s//\1/
1598 q
1599 }
1600 /^X\(\/\/\)[^/].*/{
1601 s//\1/
1602 q
1603 }
1604 /^X\(\/\/\)$/{
1605 s//\1/
1606 q
1607 }
1608 /^X\(\/\).*/{
1609 s//\1/
1610 q
1611 }
1612 s/.*/./; q'`
1613 srcdir=$ac_confdir
1614 if test ! -r "$srcdir/$ac_unique_file"; then
1615 srcdir=..
1616 fi
1617 else
1618 ac_srcdir_defaulted=no
1619 fi
1620 if test ! -r "$srcdir/$ac_unique_file"; then
1621 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1622 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1623 fi
1624 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1625 ac_abs_confdir=`(
1626 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1627 pwd)`
1628 # When building in place, set srcdir=.
1629 if test "$ac_abs_confdir" = "$ac_pwd"; then
1630 srcdir=.
1631 fi
1632 # Remove unnecessary trailing slashes from srcdir.
1633 # Double slashes in file names in object file debugging info
1634 # mess up M-x gdb in Emacs.
1635 case $srcdir in
1636 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1637 esac
1638 for ac_var in $ac_precious_vars; do
1639 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1640 eval ac_env_${ac_var}_value=\$${ac_var}
1641 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1642 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1643 done
1644
1645 #
1646 # Report the --help message.
1647 #
1648 if test "$ac_init_help" = "long"; then
1649 # Omit some internal or obsolete options to make the list less imposing.
1650 # This message is too long to be a string in the A/UX 3.1 sh.
1651 cat <<_ACEOF
1652 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1653
1654 Usage: $0 [OPTION]... [VAR=VALUE]...
1655
1656 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1657 VAR=VALUE. See below for descriptions of some of the useful variables.
1658
1659 Defaults for the options are specified in brackets.
1660
1661 Configuration:
1662 -h, --help display this help and exit
1663 --help=short display options specific to this package
1664 --help=recursive display the short help of all the included packages
1665 -V, --version display version information and exit
1666 -q, --quiet, --silent do not print \`checking ...' messages
1667 --cache-file=FILE cache test results in FILE [disabled]
1668 -C, --config-cache alias for \`--cache-file=config.cache'
1669 -n, --no-create do not create output files
1670 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1671
1672 Installation directories:
1673 --prefix=PREFIX install architecture-independent files in PREFIX
1674 [$ac_default_prefix]
1675 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1676 [PREFIX]
1677
1678 By default, \`make install' will install all the files in
1679 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1680 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1681 for instance \`--prefix=\$HOME'.
1682
1683 For better control, use the options below.
1684
1685 Fine tuning of the installation directories:
1686 --bindir=DIR user executables [EPREFIX/bin]
1687 --sbindir=DIR system admin executables [EPREFIX/sbin]
1688 --libexecdir=DIR program executables [EPREFIX/libexec]
1689 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1690 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1691 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1692 --libdir=DIR object code libraries [EPREFIX/lib]
1693 --includedir=DIR C header files [PREFIX/include]
1694 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1695 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1696 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1697 --infodir=DIR info documentation [DATAROOTDIR/info]
1698 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1699 --mandir=DIR man documentation [DATAROOTDIR/man]
1700 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1701 --htmldir=DIR html documentation [DOCDIR]
1702 --dvidir=DIR dvi documentation [DOCDIR]
1703 --pdfdir=DIR pdf documentation [DOCDIR]
1704 --psdir=DIR ps documentation [DOCDIR]
1705 _ACEOF
1706
1707 cat <<\_ACEOF
1708
1709 Program names:
1710 --program-prefix=PREFIX prepend PREFIX to installed program names
1711 --program-suffix=SUFFIX append SUFFIX to installed program names
1712 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1713
1714 X features:
1715 --x-includes=DIR X include files are in DIR
1716 --x-libraries=DIR X library files are in DIR
1717
1718 System types:
1719 --build=BUILD configure for building on BUILD [guessed]
1720 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1721 _ACEOF
1722 fi
1723
1724 if test -n "$ac_init_help"; then
1725 case $ac_init_help in
1726 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1727 esac
1728 cat <<\_ACEOF
1729
1730 Optional Features:
1731 --disable-option-checking ignore unrecognized --enable/--with options
1732 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1733 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1734 --disable-ns-self-contained
1735 disable self contained build under NeXTstep
1736 --enable-asserts compile code with asserts enabled
1737 --enable-maintainer-mode
1738 enable make rules and dependencies not useful (and
1739 sometimes confusing) to the casual installer
1740 --enable-locallisppath=PATH
1741 directories Emacs should search for lisp files
1742 specific to this site
1743 --enable-checking[=LIST]
1744 enable expensive run-time checks. With LIST, enable
1745 only specific categories of checks. Categories are:
1746 all,yes,no. Flags are: stringbytes, stringoverrun,
1747 stringfreelist, xmallocoverrun, conslist
1748 --enable-use-lisp-union-type
1749 use a union for the Lisp_Object data type. This is
1750 only useful for development for catching certain
1751 types of bugs.
1752 --enable-profiling build emacs with profiling support. This might not
1753 work on all platforms
1754 --enable-autodepend automatically generate dependencies to .h-files.
1755 Requires GNU Make and Gcc. Enabled if GNU Make and
1756 Gcc is found
1757 --disable-dependency-tracking speeds up one-time build
1758 --enable-dependency-tracking do not reject slow dependency extractors
1759 --disable-largefile omit support for large files
1760
1761 Optional Packages:
1762 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1763 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1764 --without-pop don't support POP mail retrieval with movemail
1765 --with-kerberos support Kerberos-authenticated POP
1766 --with-kerberos5 support Kerberos version 5 authenticated POP
1767 --with-hesiod support Hesiod to get the POP server host
1768 --with-mmdf support MMDF mailboxes
1769 --with-mail-unlink unlink, rather than empty, mail spool after reading
1770 --with-mailhost=HOSTNAME
1771 string giving default POP mail host
1772 --without-sound don't compile with sound support
1773 --without-sync-input process async input synchronously
1774 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1775 lucid or athena, motif, no)
1776 --without-xpm don't compile with XPM image support
1777 --without-jpeg don't compile with JPEG image support
1778 --without-tiff don't compile with TIFF image support
1779 --without-gif don't compile with GIF image support
1780 --without-png don't compile with PNG image support
1781 --without-rsvg don't compile with SVG image support
1782 --without-xml2 don't compile with XML parsing support
1783 --without-imagemagick don't compile with ImageMagick image support
1784 --without-xft don't use XFT for anti aliased fonts
1785 --without-libotf don't use libotf for OpenType font support
1786 --without-m17n-flt don't use m17n-flt for text shaping
1787 --without-toolkit-scroll-bars
1788 don't use Motif or Xaw3d scroll bars
1789 --without-xaw3d don't use Xaw3d
1790 --without-xim don't use X11 XIM
1791 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1792 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1793 console
1794 --without-dbus don't compile with D-Bus support
1795 --without-gconf don't compile with GConf support
1796 --without-selinux don't compile with SELinux support
1797 --without-gnutls don't use -lgnutls for SSL/TLS support
1798 --without-makeinfo don't require makeinfo for building manuals
1799 --without-compress-info don't compress the installed Info pages
1800 --with-pkg-config-prog=PATH
1801 path to pkg-config for finding GTK and librsvg
1802 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1803 /usr/lib, or /usr/lib64 on some platforms.
1804 --with-gameuser=USER user for shared game score files
1805 --with-gnustep-conf=PATH
1806 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1807 or /etc/GNUstep/GNUstep.conf
1808 --with-x use the X Window System
1809
1810 Some influential environment variables:
1811 CC C compiler command
1812 CFLAGS C compiler flags
1813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1814 nonstandard directory <lib dir>
1815 LIBS libraries to pass to the linker, e.g. -l<library>
1816 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1817 you have headers in a nonstandard directory <include dir>
1818 CPP C preprocessor
1819 XMKMF Path to xmkmf, Makefile generator for X Window System
1820
1821 Use these variables to override the choices made by `configure' or to help
1822 it to find libraries and programs with nonstandard names/locations.
1823
1824 Report bugs to the package provider.
1825 _ACEOF
1826 ac_status=$?
1827 fi
1828
1829 if test "$ac_init_help" = "recursive"; then
1830 # If there are subdirs, report their specific --help.
1831 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1832 test -d "$ac_dir" ||
1833 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1834 continue
1835 ac_builddir=.
1836
1837 case "$ac_dir" in
1838 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1839 *)
1840 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1841 # A ".." for each directory in $ac_dir_suffix.
1842 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1843 case $ac_top_builddir_sub in
1844 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1845 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1846 esac ;;
1847 esac
1848 ac_abs_top_builddir=$ac_pwd
1849 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1850 # for backward compatibility:
1851 ac_top_builddir=$ac_top_build_prefix
1852
1853 case $srcdir in
1854 .) # We are building in place.
1855 ac_srcdir=.
1856 ac_top_srcdir=$ac_top_builddir_sub
1857 ac_abs_top_srcdir=$ac_pwd ;;
1858 [\\/]* | ?:[\\/]* ) # Absolute name.
1859 ac_srcdir=$srcdir$ac_dir_suffix;
1860 ac_top_srcdir=$srcdir
1861 ac_abs_top_srcdir=$srcdir ;;
1862 *) # Relative name.
1863 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1864 ac_top_srcdir=$ac_top_build_prefix$srcdir
1865 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1866 esac
1867 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1868
1869 cd "$ac_dir" || { ac_status=$?; continue; }
1870 # Check for guested configure.
1871 if test -f "$ac_srcdir/configure.gnu"; then
1872 echo &&
1873 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1874 elif test -f "$ac_srcdir/configure"; then
1875 echo &&
1876 $SHELL "$ac_srcdir/configure" --help=recursive
1877 else
1878 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1879 fi || ac_status=$?
1880 cd "$ac_pwd" || { ac_status=$?; break; }
1881 done
1882 fi
1883
1884 test -n "$ac_init_help" && exit $ac_status
1885 if $ac_init_version; then
1886 cat <<\_ACEOF
1887 emacs configure 24.0.50
1888 generated by GNU Autoconf 2.68
1889
1890 Copyright (C) 2010 Free Software Foundation, Inc.
1891 This configure script is free software; the Free Software Foundation
1892 gives unlimited permission to copy, distribute and modify it.
1893 _ACEOF
1894 exit
1895 fi
1896
1897 ## ------------------------ ##
1898 ## Autoconf initialization. ##
1899 ## ------------------------ ##
1900
1901 # ac_fn_c_try_compile LINENO
1902 # --------------------------
1903 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_c_try_compile ()
1905 {
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 rm -f conftest.$ac_objext
1908 if { { ac_try="$ac_compile"
1909 case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_compile") 2>conftest.err
1916 ac_status=$?
1917 if test -s conftest.err; then
1918 grep -v '^ *+' conftest.err >conftest.er1
1919 cat conftest.er1 >&5
1920 mv -f conftest.er1 conftest.err
1921 fi
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; } && {
1924 test -z "$ac_c_werror_flag" ||
1925 test ! -s conftest.err
1926 } && test -s conftest.$ac_objext; then :
1927 ac_retval=0
1928 else
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932 ac_retval=1
1933 fi
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_try_compile
1938
1939 # ac_fn_c_try_cpp LINENO
1940 # ----------------------
1941 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_c_try_cpp ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953 ac_status=$?
1954 if test -s conftest.err; then
1955 grep -v '^ *+' conftest.err >conftest.er1
1956 cat conftest.er1 >&5
1957 mv -f conftest.er1 conftest.err
1958 fi
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } > conftest.i && {
1961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1962 test ! -s conftest.err
1963 }; then :
1964 ac_retval=0
1965 else
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970 fi
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1973
1974 } # ac_fn_c_try_cpp
1975
1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1980 # accordingly.
1981 ac_fn_c_check_header_mongrel ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 else
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004 else
2005 ac_header_compiler=no
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2010
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020 else
2021 ac_header_preproc=no
2022 fi
2023 rm -f conftest.err conftest.i conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2026
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 ;;
2047 esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=\$ac_header_compiler"
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 fi
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_c_check_header_mongrel
2062
2063 # ac_fn_c_try_run LINENO
2064 # ----------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2066 # that executables *can* be run.
2067 ac_fn_c_try_run ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_link"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>&5
2078 ac_status=$?
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2081 { { case "(($ac_try" in
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2084 esac
2085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2086 $as_echo "$ac_try_echo"; } >&5
2087 (eval "$ac_try") 2>&5
2088 ac_status=$?
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; }; }; then :
2091 ac_retval=0
2092 else
2093 $as_echo "$as_me: program exited with status $ac_status" >&5
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_retval=$ac_status
2098 fi
2099 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2102
2103 } # ac_fn_c_try_run
2104
2105 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2106 # -------------------------------------------------------
2107 # Tests whether HEADER exists and can be compiled using the include files in
2108 # INCLUDES, setting the cache variable VAR accordingly.
2109 ac_fn_c_check_header_compile ()
2110 {
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2113 $as_echo_n "checking for $2... " >&6; }
2114 if eval \${$3+:} false; then :
2115 $as_echo_n "(cached) " >&6
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2119 $4
2120 #include <$2>
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 eval "$3=yes"
2124 else
2125 eval "$3=no"
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 fi
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134 } # ac_fn_c_check_header_compile
2135
2136 # ac_fn_c_try_link LINENO
2137 # -----------------------
2138 # Try to link conftest.$ac_ext, and return whether this succeeded.
2139 ac_fn_c_try_link ()
2140 {
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 rm -f conftest.$ac_objext conftest$ac_exeext
2143 if { { ac_try="$ac_link"
2144 case "(($ac_try" in
2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2147 esac
2148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149 $as_echo "$ac_try_echo"; } >&5
2150 (eval "$ac_link") 2>conftest.err
2151 ac_status=$?
2152 if test -s conftest.err; then
2153 grep -v '^ *+' conftest.err >conftest.er1
2154 cat conftest.er1 >&5
2155 mv -f conftest.er1 conftest.err
2156 fi
2157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; } && {
2159 test -z "$ac_c_werror_flag" ||
2160 test ! -s conftest.err
2161 } && test -s conftest$ac_exeext && {
2162 test "$cross_compiling" = yes ||
2163 $as_test_x conftest$ac_exeext
2164 }; then :
2165 ac_retval=0
2166 else
2167 $as_echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_retval=1
2171 fi
2172 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2173 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2174 # interfere with the next link command; also delete a directory that is
2175 # left behind by Apple's compiler. We do this before executing the actions.
2176 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 as_fn_set_status $ac_retval
2179
2180 } # ac_fn_c_try_link
2181
2182 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2183 # ---------------------------------------------
2184 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2185 # accordingly.
2186 ac_fn_c_check_decl ()
2187 {
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 as_decl_name=`echo $2|sed 's/ *(.*//'`
2190 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2192 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2193 if eval \${$3+:} false; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 $4
2199 int
2200 main ()
2201 {
2202 #ifndef $as_decl_name
2203 #ifdef __cplusplus
2204 (void) $as_decl_use;
2205 #else
2206 (void) $as_decl_name;
2207 #endif
2208 #endif
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 eval "$3=yes"
2216 else
2217 eval "$3=no"
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 fi
2221 eval ac_res=\$$3
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223 $as_echo "$ac_res" >&6; }
2224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225
2226 } # ac_fn_c_check_decl
2227
2228 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2229 # ----------------------------------------------
2230 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2231 ac_fn_c_check_header_preproc ()
2232 {
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if eval \${$3+:} false; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 #include <$2>
2242 _ACEOF
2243 if ac_fn_c_try_cpp "$LINENO"; then :
2244 eval "$3=yes"
2245 else
2246 eval "$3=no"
2247 fi
2248 rm -f conftest.err conftest.i conftest.$ac_ext
2249 fi
2250 eval ac_res=\$$3
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254
2255 } # ac_fn_c_check_header_preproc
2256
2257 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2258 # ----------------------------------------------------
2259 # Tries to find if the field MEMBER exists in type AGGR, after including
2260 # INCLUDES, setting cache variable VAR accordingly.
2261 ac_fn_c_check_member ()
2262 {
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2265 $as_echo_n "checking for $2.$3... " >&6; }
2266 if eval \${$4+:} false; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 $5
2272 int
2273 main ()
2274 {
2275 static $2 ac_aggr;
2276 if (ac_aggr.$3)
2277 return 0;
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_compile "$LINENO"; then :
2283 eval "$4=yes"
2284 else
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2287 $5
2288 int
2289 main ()
2290 {
2291 static $2 ac_aggr;
2292 if (sizeof ac_aggr.$3)
2293 return 0;
2294 ;
2295 return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 eval "$4=yes"
2300 else
2301 eval "$4=no"
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 eval ac_res=\$$4
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311
2312 } # ac_fn_c_check_member
2313
2314 # ac_fn_c_check_func LINENO FUNC VAR
2315 # ----------------------------------
2316 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2317 ac_fn_c_check_func ()
2318 {
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if eval \${$3+:} false; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2329 #define $2 innocuous_$2
2330
2331 /* System header to define __stub macros and hopefully few prototypes,
2332 which can conflict with char $2 (); below.
2333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2334 <limits.h> exists even on freestanding compilers. */
2335
2336 #ifdef __STDC__
2337 # include <limits.h>
2338 #else
2339 # include <assert.h>
2340 #endif
2341
2342 #undef $2
2343
2344 /* Override any GCC internal prototype to avoid an error.
2345 Use char because int might match the return type of a GCC
2346 builtin and then its argument prototype would still apply. */
2347 #ifdef __cplusplus
2348 extern "C"
2349 #endif
2350 char $2 ();
2351 /* The GNU C library defines this for functions which it implements
2352 to always fail with ENOSYS. Some functions are actually named
2353 something starting with __ and the normal name is an alias. */
2354 #if defined __stub_$2 || defined __stub___$2
2355 choke me
2356 #endif
2357
2358 int
2359 main ()
2360 {
2361 return $2 ();
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366 if ac_fn_c_try_link "$LINENO"; then :
2367 eval "$3=yes"
2368 else
2369 eval "$3=no"
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext \
2372 conftest$ac_exeext conftest.$ac_ext
2373 fi
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378
2379 } # ac_fn_c_check_func
2380
2381 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2382 # -------------------------------------------
2383 # Tests whether TYPE exists after having included INCLUDES, setting cache
2384 # variable VAR accordingly.
2385 ac_fn_c_check_type ()
2386 {
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2389 $as_echo_n "checking for $2... " >&6; }
2390 if eval \${$3+:} false; then :
2391 $as_echo_n "(cached) " >&6
2392 else
2393 eval "$3=no"
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2396 $4
2397 int
2398 main ()
2399 {
2400 if (sizeof ($2))
2401 return 0;
2402 ;
2403 return 0;
2404 }
2405 _ACEOF
2406 if ac_fn_c_try_compile "$LINENO"; then :
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2409 $4
2410 int
2411 main ()
2412 {
2413 if (sizeof (($2)))
2414 return 0;
2415 ;
2416 return 0;
2417 }
2418 _ACEOF
2419 if ac_fn_c_try_compile "$LINENO"; then :
2420
2421 else
2422 eval "$3=yes"
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 fi
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 fi
2428 eval ac_res=\$$3
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2430 $as_echo "$ac_res" >&6; }
2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432
2433 } # ac_fn_c_check_type
2434 cat >config.log <<_ACEOF
2435 This file contains any messages produced by compilers while
2436 running configure, to aid debugging if configure makes a mistake.
2437
2438 It was created by emacs $as_me 24.0.50, which was
2439 generated by GNU Autoconf 2.68. Invocation command line was
2440
2441 $ $0 $@
2442
2443 _ACEOF
2444 exec 5>>config.log
2445 {
2446 cat <<_ASUNAME
2447 ## --------- ##
2448 ## Platform. ##
2449 ## --------- ##
2450
2451 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2452 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2453 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2454 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2455 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2456
2457 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2458 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2459
2460 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2461 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2462 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2463 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2464 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2465 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2466 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2467
2468 _ASUNAME
2469
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 for as_dir in $PATH
2472 do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 $as_echo "PATH: $as_dir"
2476 done
2477 IFS=$as_save_IFS
2478
2479 } >&5
2480
2481 cat >&5 <<_ACEOF
2482
2483
2484 ## ----------- ##
2485 ## Core tests. ##
2486 ## ----------- ##
2487
2488 _ACEOF
2489
2490
2491 # Keep a trace of the command line.
2492 # Strip out --no-create and --no-recursion so they do not pile up.
2493 # Strip out --silent because we don't want to record it for future runs.
2494 # Also quote any args containing shell meta-characters.
2495 # Make two passes to allow for proper duplicate-argument suppression.
2496 ac_configure_args=
2497 ac_configure_args0=
2498 ac_configure_args1=
2499 ac_must_keep_next=false
2500 for ac_pass in 1 2
2501 do
2502 for ac_arg
2503 do
2504 case $ac_arg in
2505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2507 | -silent | --silent | --silen | --sile | --sil)
2508 continue ;;
2509 *\'*)
2510 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2511 esac
2512 case $ac_pass in
2513 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2514 2)
2515 as_fn_append ac_configure_args1 " '$ac_arg'"
2516 if test $ac_must_keep_next = true; then
2517 ac_must_keep_next=false # Got value, back to normal.
2518 else
2519 case $ac_arg in
2520 *=* | --config-cache | -C | -disable-* | --disable-* \
2521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2523 | -with-* | --with-* | -without-* | --without-* | --x)
2524 case "$ac_configure_args0 " in
2525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2526 esac
2527 ;;
2528 -* ) ac_must_keep_next=true ;;
2529 esac
2530 fi
2531 as_fn_append ac_configure_args " '$ac_arg'"
2532 ;;
2533 esac
2534 done
2535 done
2536 { ac_configure_args0=; unset ac_configure_args0;}
2537 { ac_configure_args1=; unset ac_configure_args1;}
2538
2539 # When interrupted or exit'd, cleanup temporary files, and complete
2540 # config.log. We remove comments because anyway the quotes in there
2541 # would cause problems or look ugly.
2542 # WARNING: Use '\'' to represent an apostrophe within the trap.
2543 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2544 trap 'exit_status=$?
2545 # Save into config.log some information that might help in debugging.
2546 {
2547 echo
2548
2549 $as_echo "## ---------------- ##
2550 ## Cache variables. ##
2551 ## ---------------- ##"
2552 echo
2553 # The following way of writing the cache mishandles newlines in values,
2554 (
2555 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2556 eval ac_val=\$$ac_var
2557 case $ac_val in #(
2558 *${as_nl}*)
2559 case $ac_var in #(
2560 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2561 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2562 esac
2563 case $ac_var in #(
2564 _ | IFS | as_nl) ;; #(
2565 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2566 *) { eval $ac_var=; unset $ac_var;} ;;
2567 esac ;;
2568 esac
2569 done
2570 (set) 2>&1 |
2571 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2572 *${as_nl}ac_space=\ *)
2573 sed -n \
2574 "s/'\''/'\''\\\\'\'''\''/g;
2575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2576 ;; #(
2577 *)
2578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2579 ;;
2580 esac |
2581 sort
2582 )
2583 echo
2584
2585 $as_echo "## ----------------- ##
2586 ## Output variables. ##
2587 ## ----------------- ##"
2588 echo
2589 for ac_var in $ac_subst_vars
2590 do
2591 eval ac_val=\$$ac_var
2592 case $ac_val in
2593 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 esac
2595 $as_echo "$ac_var='\''$ac_val'\''"
2596 done | sort
2597 echo
2598
2599 if test -n "$ac_subst_files"; then
2600 $as_echo "## ------------------- ##
2601 ## File substitutions. ##
2602 ## ------------------- ##"
2603 echo
2604 for ac_var in $ac_subst_files
2605 do
2606 eval ac_val=\$$ac_var
2607 case $ac_val in
2608 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 esac
2610 $as_echo "$ac_var='\''$ac_val'\''"
2611 done | sort
2612 echo
2613 fi
2614
2615 if test -s confdefs.h; then
2616 $as_echo "## ----------- ##
2617 ## confdefs.h. ##
2618 ## ----------- ##"
2619 echo
2620 cat confdefs.h
2621 echo
2622 fi
2623 test "$ac_signal" != 0 &&
2624 $as_echo "$as_me: caught signal $ac_signal"
2625 $as_echo "$as_me: exit $exit_status"
2626 } >&5
2627 rm -f core *.core core.conftest.* &&
2628 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2629 exit $exit_status
2630 ' 0
2631 for ac_signal in 1 2 13 15; do
2632 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2633 done
2634 ac_signal=0
2635
2636 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2637 rm -f -r conftest* confdefs.h
2638
2639 $as_echo "/* confdefs.h */" > confdefs.h
2640
2641 # Predefined preprocessor variables.
2642
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE_NAME "$PACKAGE_NAME"
2645 _ACEOF
2646
2647 cat >>confdefs.h <<_ACEOF
2648 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2649 _ACEOF
2650
2651 cat >>confdefs.h <<_ACEOF
2652 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2653 _ACEOF
2654
2655 cat >>confdefs.h <<_ACEOF
2656 #define PACKAGE_STRING "$PACKAGE_STRING"
2657 _ACEOF
2658
2659 cat >>confdefs.h <<_ACEOF
2660 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2661 _ACEOF
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_URL "$PACKAGE_URL"
2665 _ACEOF
2666
2667
2668 # Let the site file select an alternate cache file if it wants to.
2669 # Prefer an explicitly selected file to automatically selected ones.
2670 ac_site_file1=NONE
2671 ac_site_file2=NONE
2672 if test -n "$CONFIG_SITE"; then
2673 # We do not want a PATH search for config.site.
2674 case $CONFIG_SITE in #((
2675 -*) ac_site_file1=./$CONFIG_SITE;;
2676 */*) ac_site_file1=$CONFIG_SITE;;
2677 *) ac_site_file1=./$CONFIG_SITE;;
2678 esac
2679 elif test "x$prefix" != xNONE; then
2680 ac_site_file1=$prefix/share/config.site
2681 ac_site_file2=$prefix/etc/config.site
2682 else
2683 ac_site_file1=$ac_default_prefix/share/config.site
2684 ac_site_file2=$ac_default_prefix/etc/config.site
2685 fi
2686 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2687 do
2688 test "x$ac_site_file" = xNONE && continue
2689 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2691 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2692 sed 's/^/| /' "$ac_site_file" >&5
2693 . "$ac_site_file" \
2694 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 as_fn_error $? "failed to load site script $ac_site_file
2697 See \`config.log' for more details" "$LINENO" 5; }
2698 fi
2699 done
2700
2701 if test -r "$cache_file"; then
2702 # Some versions of bash will fail to source /dev/null (special files
2703 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2704 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2706 $as_echo "$as_me: loading cache $cache_file" >&6;}
2707 case $cache_file in
2708 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2709 *) . "./$cache_file";;
2710 esac
2711 fi
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2714 $as_echo "$as_me: creating cache $cache_file" >&6;}
2715 >$cache_file
2716 fi
2717
2718 as_fn_append ac_header_list " stdlib.h"
2719 as_fn_append ac_header_list " unistd.h"
2720 as_fn_append ac_header_list " sys/param.h"
2721 gl_getopt_required=GNU
2722 as_fn_append ac_header_list " getopt.h"
2723 as_fn_append ac_func_list " alarm"
2724 as_fn_append ac_func_list " tzset"
2725 as_fn_append ac_header_list " sys/time.h"
2726 as_fn_append ac_func_list " localtime_r"
2727 # Check that the precious variables saved in the cache have kept the same
2728 # value.
2729 ac_cache_corrupted=false
2730 for ac_var in $ac_precious_vars; do
2731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2732 eval ac_new_set=\$ac_env_${ac_var}_set
2733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2734 eval ac_new_val=\$ac_env_${ac_var}_value
2735 case $ac_old_set,$ac_new_set in
2736 set,)
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2738 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2739 ac_cache_corrupted=: ;;
2740 ,set)
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2742 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2743 ac_cache_corrupted=: ;;
2744 ,);;
2745 *)
2746 if test "x$ac_old_val" != "x$ac_new_val"; then
2747 # differences in whitespace do not lead to failure.
2748 ac_old_val_w=`echo x $ac_old_val`
2749 ac_new_val_w=`echo x $ac_new_val`
2750 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2752 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2753 ac_cache_corrupted=:
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2756 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2757 eval $ac_var=\$ac_old_val
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2760 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2762 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2763 fi;;
2764 esac
2765 # Pass precious variables to config.status.
2766 if test "$ac_new_set" = set; then
2767 case $ac_new_val in
2768 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2769 *) ac_arg=$ac_var=$ac_new_val ;;
2770 esac
2771 case " $ac_configure_args " in
2772 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2773 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2774 esac
2775 fi
2776 done
2777 if $ac_cache_corrupted; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2781 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2782 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2783 fi
2784 ## -------------------- ##
2785 ## Main body of script. ##
2786 ## -------------------- ##
2787
2788 ac_ext=c
2789 ac_cpp='$CPP $CPPFLAGS'
2790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2793
2794
2795 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2796
2797
2798 am__api_version='1.11'
2799
2800 ac_aux_dir=
2801 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2802 if test -f "$ac_dir/install-sh"; then
2803 ac_aux_dir=$ac_dir
2804 ac_install_sh="$ac_aux_dir/install-sh -c"
2805 break
2806 elif test -f "$ac_dir/install.sh"; then
2807 ac_aux_dir=$ac_dir
2808 ac_install_sh="$ac_aux_dir/install.sh -c"
2809 break
2810 elif test -f "$ac_dir/shtool"; then
2811 ac_aux_dir=$ac_dir
2812 ac_install_sh="$ac_aux_dir/shtool install -c"
2813 break
2814 fi
2815 done
2816 if test -z "$ac_aux_dir"; then
2817 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2818 fi
2819
2820 # These three variables are undocumented and unsupported,
2821 # and are intended to be withdrawn in a future Autoconf release.
2822 # They can cause serious problems if a builder's source tree is in a directory
2823 # whose full name contains unusual characters.
2824 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2825 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2826 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2827
2828
2829 # Find a good install program. We prefer a C program (faster),
2830 # so one script is as good as another. But avoid the broken or
2831 # incompatible versions:
2832 # SysV /etc/install, /usr/sbin/install
2833 # SunOS /usr/etc/install
2834 # IRIX /sbin/install
2835 # AIX /bin/install
2836 # AmigaOS /C/install, which installs bootblocks on floppy discs
2837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2840 # OS/2's system install, which has a completely different semantic
2841 # ./install, which can be erroneously created by make from ./install.sh.
2842 # Reject install programs that cannot install multiple files.
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2844 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2845 if test -z "$INSTALL"; then
2846 if ${ac_cv_path_install+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 # Account for people who put trailing slashes in PATH elements.
2855 case $as_dir/ in #((
2856 ./ | .// | /[cC]/* | \
2857 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2858 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2859 /usr/ucb/* ) ;;
2860 *)
2861 # OSF1 and SCO ODT 3.0 have their own names for install.
2862 # Don't use installbsd from OSF since it installs stuff as root
2863 # by default.
2864 for ac_prog in ginstall scoinst install; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2867 if test $ac_prog = install &&
2868 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869 # AIX install. It has an incompatible calling convention.
2870 :
2871 elif test $ac_prog = install &&
2872 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2873 # program-specific install script used by HP pwplus--don't use.
2874 :
2875 else
2876 rm -rf conftest.one conftest.two conftest.dir
2877 echo one > conftest.one
2878 echo two > conftest.two
2879 mkdir conftest.dir
2880 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2881 test -s conftest.one && test -s conftest.two &&
2882 test -s conftest.dir/conftest.one &&
2883 test -s conftest.dir/conftest.two
2884 then
2885 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2886 break 3
2887 fi
2888 fi
2889 fi
2890 done
2891 done
2892 ;;
2893 esac
2894
2895 done
2896 IFS=$as_save_IFS
2897
2898 rm -rf conftest.one conftest.two conftest.dir
2899
2900 fi
2901 if test "${ac_cv_path_install+set}" = set; then
2902 INSTALL=$ac_cv_path_install
2903 else
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for INSTALL within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 INSTALL=$ac_install_sh
2909 fi
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2912 $as_echo "$INSTALL" >&6; }
2913
2914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2915 # It thinks the first close brace ends the variable substitution.
2916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2917
2918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2919
2920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2921
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2923 $as_echo_n "checking whether build environment is sane... " >&6; }
2924 # Just in case
2925 sleep 1
2926 echo timestamp > conftest.file
2927 # Reject unsafe characters in $srcdir or the absolute working directory
2928 # name. Accept space and tab only in the latter.
2929 am_lf='
2930 '
2931 case `pwd` in
2932 *[\\\"\#\$\&\'\`$am_lf]*)
2933 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2934 esac
2935 case $srcdir in
2936 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2937 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2938 esac
2939
2940 # Do `set' in a subshell so we don't clobber the current shell's
2941 # arguments. Must try -L first in case configure is actually a
2942 # symlink; some systems play weird games with the mod time of symlinks
2943 # (eg FreeBSD returns the mod time of the symlink's containing
2944 # directory).
2945 if (
2946 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2947 if test "$*" = "X"; then
2948 # -L didn't work.
2949 set X `ls -t "$srcdir/configure" conftest.file`
2950 fi
2951 rm -f conftest.file
2952 if test "$*" != "X $srcdir/configure conftest.file" \
2953 && test "$*" != "X conftest.file $srcdir/configure"; then
2954
2955 # If neither matched, then we have a broken ls. This can happen
2956 # if, for instance, CONFIG_SHELL is bash and it inherits a
2957 # broken ls alias from the environment. This has actually
2958 # happened. Such a system could not be considered "sane".
2959 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2960 alias in your environment" "$LINENO" 5
2961 fi
2962
2963 test "$2" = conftest.file
2964 )
2965 then
2966 # Ok.
2967 :
2968 else
2969 as_fn_error $? "newly created file is older than distributed files!
2970 Check your system clock" "$LINENO" 5
2971 fi
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2974 test "$program_prefix" != NONE &&
2975 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2976 # Use a double $ so make ignores it.
2977 test "$program_suffix" != NONE &&
2978 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2979 # Double any \ or $.
2980 # By default was `s,x,x', remove it if useless.
2981 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2982 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2983
2984 # expand $ac_aux_dir to an absolute path
2985 am_aux_dir=`cd $ac_aux_dir && pwd`
2986
2987 if test x"${MISSING+set}" != xset; then
2988 case $am_aux_dir in
2989 *\ * | *\ *)
2990 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2991 *)
2992 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2993 esac
2994 fi
2995 # Use eval to expand $SHELL
2996 if eval "$MISSING --run true"; then
2997 am_missing_run="$MISSING --run "
2998 else
2999 am_missing_run=
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3001 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3002 fi
3003
3004 if test x"${install_sh}" != xset; then
3005 case $am_aux_dir in
3006 *\ * | *\ *)
3007 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3008 *)
3009 install_sh="\${SHELL} $am_aux_dir/install-sh"
3010 esac
3011 fi
3012
3013 # Installed binaries are usually stripped using `strip' when the user
3014 # run `make install-strip'. However `strip' might not be the right
3015 # tool to use in cross-compilation environments, therefore Automake
3016 # will honor the `STRIP' environment variable to overrule this program.
3017 if test "$cross_compiling" != no; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_STRIP+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$STRIP"; then
3027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 $as_echo "$STRIP" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_STRIP"; then
3058 ac_ct_STRIP=$STRIP
3059 # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$ac_ct_STRIP"; then
3067 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_ac_ct_STRIP="strip"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087 if test -n "$ac_ct_STRIP"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089 $as_echo "$ac_ct_STRIP" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095 if test "x$ac_ct_STRIP" = x; then
3096 STRIP=":"
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104 STRIP=$ac_ct_STRIP
3105 fi
3106 else
3107 STRIP="$ac_cv_prog_STRIP"
3108 fi
3109
3110 fi
3111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3112
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3114 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3115 if test -z "$MKDIR_P"; then
3116 if ${ac_cv_path_mkdir+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_prog in mkdir gmkdir; do
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3128 'mkdir (GNU coreutils) '* | \
3129 'mkdir (coreutils) '* | \
3130 'mkdir (fileutils) '4.1*)
3131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3132 break 3;;
3133 esac
3134 done
3135 done
3136 done
3137 IFS=$as_save_IFS
3138
3139 fi
3140
3141 test -d ./--version && rmdir ./--version
3142 if test "${ac_cv_path_mkdir+set}" = set; then
3143 MKDIR_P="$ac_cv_path_mkdir -p"
3144 else
3145 # As a last resort, use the slow shell script. Don't cache a
3146 # value for MKDIR_P within a source directory, because that will
3147 # break other packages using the cache if that directory is
3148 # removed, or if the value is a relative name.
3149 MKDIR_P="$ac_install_sh -d"
3150 fi
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3153 $as_echo "$MKDIR_P" >&6; }
3154
3155
3156 mkdir_p="$MKDIR_P"
3157 case $mkdir_p in
3158 [\\/$]* | ?:[\\/]*) ;;
3159 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3160 esac
3161
3162 for ac_prog in gawk mawk nawk awk
3163 do
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_prog_AWK+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$AWK"; then
3172 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_AWK="$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 AWK=$ac_cv_prog_AWK
3192 if test -n "$AWK"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3194 $as_echo "$AWK" >&6; }
3195 else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 test -n "$AWK" && break
3202 done
3203
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3206 set x ${MAKE-make}
3207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3208 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3209 $as_echo_n "(cached) " >&6
3210 else
3211 cat >conftest.make <<\_ACEOF
3212 SHELL = /bin/sh
3213 all:
3214 @echo '@@@%%%=$(MAKE)=@@@%%%'
3215 _ACEOF
3216 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3218 *@@@%%%=?*=@@@%%%*)
3219 eval ac_cv_prog_make_${ac_make}_set=yes;;
3220 *)
3221 eval ac_cv_prog_make_${ac_make}_set=no;;
3222 esac
3223 rm -f conftest.make
3224 fi
3225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3227 $as_echo "yes" >&6; }
3228 SET_MAKE=
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 SET_MAKE="MAKE=${MAKE-make}"
3233 fi
3234
3235 rm -rf .tst 2>/dev/null
3236 mkdir .tst 2>/dev/null
3237 if test -d .tst; then
3238 am__leading_dot=.
3239 else
3240 am__leading_dot=_
3241 fi
3242 rmdir .tst 2>/dev/null
3243
3244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3246 # is not polluted with repeated "-I."
3247 am__isrc=' -I$(srcdir)'
3248 # test to see if srcdir already configured
3249 if test -f $srcdir/config.status; then
3250 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3251 fi
3252 fi
3253
3254 # test whether we have cygpath
3255 if test -z "$CYGPATH_W"; then
3256 if (cygpath --version) >/dev/null 2>/dev/null; then
3257 CYGPATH_W='cygpath -w'
3258 else
3259 CYGPATH_W=echo
3260 fi
3261 fi
3262
3263
3264 # Define the identity of the package.
3265 PACKAGE='emacs'
3266 VERSION='24.0.50'
3267
3268
3269 cat >>confdefs.h <<_ACEOF
3270 #define PACKAGE "$PACKAGE"
3271 _ACEOF
3272
3273
3274 cat >>confdefs.h <<_ACEOF
3275 #define VERSION "$VERSION"
3276 _ACEOF
3277
3278 # Some tools Automake needs.
3279
3280 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3281
3282
3283 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3284
3285
3286 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3287
3288
3289 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3290
3291
3292 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3293
3294 # We need awk for the "check" target. The system "awk" is bad on
3295 # some platforms.
3296 # Always define AMTAR for backward compatibility.
3297
3298 AMTAR=${AMTAR-"${am_missing_run}tar"}
3299
3300 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3301
3302
3303
3304
3305
3306
3307
3308
3309 lispdir='${datadir}/emacs/${version}/lisp'
3310 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3311 '${datadir}/emacs/site-lisp'
3312 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3313 etcdir='${datadir}/emacs/${version}/etc'
3314 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3315 docdir='${datadir}/emacs/${version}/etc'
3316 gamedir='${localstatedir}/games/emacs'
3317
3318
3319
3320
3321 # Check whether --with-pop was given.
3322 if test "${with_pop+set}" = set; then :
3323 withval=$with_pop;
3324 else
3325 with_pop=yes
3326 fi
3327
3328 if test "$with_pop" = yes; then
3329 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3330
3331 fi
3332
3333
3334 # Check whether --with-kerberos was given.
3335 if test "${with_kerberos+set}" = set; then :
3336 withval=$with_kerberos;
3337 else
3338 with_kerberos=no
3339 fi
3340
3341 if test "$with_kerberos" != no; then
3342 $as_echo "#define KERBEROS 1" >>confdefs.h
3343
3344 fi
3345
3346
3347 # Check whether --with-kerberos5 was given.
3348 if test "${with_kerberos5+set}" = set; then :
3349 withval=$with_kerberos5;
3350 else
3351 with_kerberos5=no
3352 fi
3353
3354 if test "${with_kerberos5}" != no; then
3355 if test "${with_kerberos}" = no; then
3356 with_kerberos=yes
3357 $as_echo "#define KERBEROS 1" >>confdefs.h
3358
3359 fi
3360
3361 $as_echo "#define KERBEROS5 1" >>confdefs.h
3362
3363 fi
3364
3365
3366 # Check whether --with-hesiod was given.
3367 if test "${with_hesiod+set}" = set; then :
3368 withval=$with_hesiod;
3369 else
3370 with_hesiod=no
3371 fi
3372
3373 if test "$with_hesiod" != no; then
3374
3375 $as_echo "#define HESIOD 1" >>confdefs.h
3376
3377 fi
3378
3379
3380 # Check whether --with-mmdf was given.
3381 if test "${with_mmdf+set}" = set; then :
3382 withval=$with_mmdf;
3383 else
3384 with_mmdf=no
3385 fi
3386
3387 if test "$with_mmdf" != no; then
3388
3389 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3390
3391 fi
3392
3393
3394 # Check whether --with-mail-unlink was given.
3395 if test "${with_mail_unlink+set}" = set; then :
3396 withval=$with_mail_unlink;
3397 else
3398 with_mail_unlink=no
3399 fi
3400
3401 if test "$with_mail_unlink" != no; then
3402
3403 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3404
3405 fi
3406
3407
3408 # Check whether --with-mailhost was given.
3409 if test "${with_mailhost+set}" = set; then :
3410 withval=$with_mailhost;
3411 cat >>confdefs.h <<_ACEOF
3412 #define MAILHOST "$withval"
3413 _ACEOF
3414
3415 fi
3416
3417
3418
3419 # Check whether --with-sound was given.
3420 if test "${with_sound+set}" = set; then :
3421 withval=$with_sound;
3422 else
3423 with_sound=yes
3424 fi
3425
3426
3427
3428 # Check whether --with-sync-input was given.
3429 if test "${with_sync_input+set}" = set; then :
3430 withval=$with_sync_input;
3431 else
3432 with_sync_input=yes
3433 fi
3434
3435 if test "$with_sync_input" = yes; then
3436
3437 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3438
3439 fi
3440
3441
3442 # Check whether --with-x-toolkit was given.
3443 if test "${with_x_toolkit+set}" = set; then :
3444 withval=$with_x_toolkit; case "${withval}" in
3445 y | ye | yes ) val=gtk ;;
3446 n | no ) val=no ;;
3447 l | lu | luc | luci | lucid ) val=lucid ;;
3448 a | at | ath | athe | athen | athena ) val=athena ;;
3449 m | mo | mot | moti | motif ) val=motif ;;
3450 g | gt | gtk ) val=gtk ;;
3451 gtk3 ) val=gtk3 ;;
3452 * )
3453 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3454 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3455 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3456 ;;
3457 esac
3458 with_x_toolkit=$val
3459
3460 fi
3461
3462
3463
3464 # Check whether --with-xpm was given.
3465 if test "${with_xpm+set}" = set; then :
3466 withval=$with_xpm;
3467 else
3468 with_xpm=yes
3469 fi
3470
3471
3472 # Check whether --with-jpeg was given.
3473 if test "${with_jpeg+set}" = set; then :
3474 withval=$with_jpeg;
3475 else
3476 with_jpeg=yes
3477 fi
3478
3479
3480 # Check whether --with-tiff was given.
3481 if test "${with_tiff+set}" = set; then :
3482 withval=$with_tiff;
3483 else
3484 with_tiff=yes
3485 fi
3486
3487
3488 # Check whether --with-gif was given.
3489 if test "${with_gif+set}" = set; then :
3490 withval=$with_gif;
3491 else
3492 with_gif=yes
3493 fi
3494
3495
3496 # Check whether --with-png was given.
3497 if test "${with_png+set}" = set; then :
3498 withval=$with_png;
3499 else
3500 with_png=yes
3501 fi
3502
3503
3504 # Check whether --with-rsvg was given.
3505 if test "${with_rsvg+set}" = set; then :
3506 withval=$with_rsvg;
3507 else
3508 with_rsvg=yes
3509 fi
3510
3511
3512 # Check whether --with-xml2 was given.
3513 if test "${with_xml2+set}" = set; then :
3514 withval=$with_xml2;
3515 else
3516 with_xml2=yes
3517 fi
3518
3519
3520 # Check whether --with-imagemagick was given.
3521 if test "${with_imagemagick+set}" = set; then :
3522 withval=$with_imagemagick;
3523 else
3524 with_imagemagick=yes
3525 fi
3526
3527
3528
3529 # Check whether --with-xft was given.
3530 if test "${with_xft+set}" = set; then :
3531 withval=$with_xft;
3532 else
3533 with_xft=yes
3534 fi
3535
3536
3537 # Check whether --with-libotf was given.
3538 if test "${with_libotf+set}" = set; then :
3539 withval=$with_libotf;
3540 else
3541 with_libotf=yes
3542 fi
3543
3544
3545 # Check whether --with-m17n-flt was given.
3546 if test "${with_m17n_flt+set}" = set; then :
3547 withval=$with_m17n_flt;
3548 else
3549 with_m17n_flt=yes
3550 fi
3551
3552
3553
3554 # Check whether --with-toolkit-scroll-bars was given.
3555 if test "${with_toolkit_scroll_bars+set}" = set; then :
3556 withval=$with_toolkit_scroll_bars;
3557 else
3558 with_toolkit_scroll_bars=yes
3559 fi
3560
3561
3562 # Check whether --with-xaw3d was given.
3563 if test "${with_xaw3d+set}" = set; then :
3564 withval=$with_xaw3d;
3565 else
3566 with_xaw3d=yes
3567 fi
3568
3569
3570 # Check whether --with-xim was given.
3571 if test "${with_xim+set}" = set; then :
3572 withval=$with_xim;
3573 else
3574 with_xim=yes
3575 fi
3576
3577
3578 # Check whether --with-ns was given.
3579 if test "${with_ns+set}" = set; then :
3580 withval=$with_ns;
3581 else
3582 with_ns=no
3583 fi
3584
3585
3586
3587 # Check whether --with-gpm was given.
3588 if test "${with_gpm+set}" = set; then :
3589 withval=$with_gpm;
3590 else
3591 with_gpm=yes
3592 fi
3593
3594
3595 # Check whether --with-dbus was given.
3596 if test "${with_dbus+set}" = set; then :
3597 withval=$with_dbus;
3598 else
3599 with_dbus=yes
3600 fi
3601
3602
3603 # Check whether --with-gconf was given.
3604 if test "${with_gconf+set}" = set; then :
3605 withval=$with_gconf;
3606 else
3607 with_gconf=yes
3608 fi
3609
3610
3611 # Check whether --with-selinux was given.
3612 if test "${with_selinux+set}" = set; then :
3613 withval=$with_selinux;
3614 else
3615 with_selinux=yes
3616 fi
3617
3618
3619 # Check whether --with-gnutls was given.
3620 if test "${with_gnutls+set}" = set; then :
3621 withval=$with_gnutls;
3622 else
3623 with_gnutls=yes
3624 fi
3625
3626
3627 ## For the times when you want to build Emacs but don't have
3628 ## a suitable makeinfo, and can live without the manuals.
3629
3630 # Check whether --with-makeinfo was given.
3631 if test "${with_makeinfo+set}" = set; then :
3632 withval=$with_makeinfo;
3633 else
3634 with_makeinfo=yes
3635 fi
3636
3637
3638 ## This is an option because I do not know if all info/man support
3639 ## compressed files, nor how to test if they do so.
3640
3641 # Check whether --with-compress-info was given.
3642 if test "${with_compress_info+set}" = set; then :
3643 withval=$with_compress_info;
3644 else
3645 with_compress_info=yes
3646 fi
3647
3648 if test $with_compress_info = yes; then
3649 GZIP_INFO=yes
3650 else
3651 GZIP_INFO=
3652 fi
3653
3654
3655
3656 # Check whether --with-pkg-config-prog was given.
3657 if test "${with_pkg_config_prog+set}" = set; then :
3658 withval=$with_pkg_config_prog;
3659 fi
3660
3661 if test "X${with_pkg_config_prog}" != X; then
3662 if test "${with_pkg_config_prog}" != yes; then
3663 PKG_CONFIG="${with_pkg_config_prog}"
3664 fi
3665 fi
3666
3667 CRT_DIR=
3668
3669 # Check whether --with-crt-dir was given.
3670 if test "${with_crt_dir+set}" = set; then :
3671 withval=$with_crt_dir;
3672 fi
3673
3674 CRT_DIR="${with_crt_dir}"
3675
3676
3677 # Check whether --with-gameuser was given.
3678 if test "${with_gameuser+set}" = set; then :
3679 withval=$with_gameuser;
3680 fi
3681
3682 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3683 && gameuser="${with_gameuser}"
3684 test "X$gameuser" = X && gameuser=games
3685
3686
3687 # Check whether --with-gnustep-conf was given.
3688 if test "${with_gnustep_conf+set}" = set; then :
3689 withval=$with_gnustep_conf;
3690 fi
3691
3692 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3693 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3694 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3695 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3696
3697 # Check whether --enable-ns-self-contained was given.
3698 if test "${enable_ns_self_contained+set}" = set; then :
3699 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3700 else
3701 EN_NS_SELF_CONTAINED=yes
3702 fi
3703
3704
3705 # Check whether --enable-asserts was given.
3706 if test "${enable_asserts+set}" = set; then :
3707 enableval=$enable_asserts; USE_XASSERTS=$enableval
3708 else
3709 USE_XASSERTS=no
3710 fi
3711
3712
3713 # Check whether --enable-maintainer-mode was given.
3714 if test "${enable_maintainer_mode+set}" = set; then :
3715 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3716 else
3717 USE_MAINTAINER_MODE=no
3718 fi
3719
3720 if test $USE_MAINTAINER_MODE = yes; then
3721 MAINT=
3722 else
3723 MAINT=#
3724 fi
3725
3726
3727 # Check whether --enable-locallisppath was given.
3728 if test "${enable_locallisppath+set}" = set; then :
3729 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3730 locallisppath=
3731 elif test "${enableval}" != "yes"; then
3732 locallisppath=${enableval}
3733 fi
3734 fi
3735
3736
3737 # Check whether --enable-checking was given.
3738 if test "${enable_checking+set}" = set; then :
3739 enableval=$enable_checking; ac_checking_flags="${enableval}"
3740 fi
3741
3742 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3743 for check in $ac_checking_flags
3744 do
3745 case $check in
3746 # these set all the flags to specific states
3747 yes) ac_enable_checking=1 ;;
3748 no) ac_enable_checking= ;
3749 ac_gc_check_stringbytes= ;
3750 ac_gc_check_string_overrun= ;
3751 ac_gc_check_string_free_list= ;
3752 ac_xmalloc_overrun= ;
3753 ac_gc_check_cons_list= ;;
3754 all) ac_enable_checking=1 ;
3755 ac_gc_check_stringbytes=1 ;
3756 ac_gc_check_string_overrun=1 ;
3757 ac_gc_check_string_free_list=1 ;
3758 ac_xmalloc_overrun=1 ;
3759 ac_gc_check_cons_list=1 ;;
3760 # these enable particular checks
3761 stringbytes) ac_gc_check_stringbytes=1 ;;
3762 stringoverrun) ac_gc_check_string_overrun=1 ;;
3763 stringfreelist) ac_gc_check_string_free_list=1 ;;
3764 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3765 conslist) ac_gc_check_cons_list=1 ;;
3766 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3767 esac
3768 done
3769 IFS="$ac_save_IFS"
3770
3771 if test x$ac_enable_checking != x ; then
3772
3773 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3774
3775 fi
3776 if test x$ac_gc_check_stringbytes != x ; then
3777
3778 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3779
3780 fi
3781 if test x$ac_gc_check_stringoverrun != x ; then
3782
3783 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3784
3785 fi
3786 if test x$ac_gc_check_string_free_list != x ; then
3787
3788 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3789
3790 fi
3791 if test x$ac_xmalloc_overrun != x ; then
3792
3793 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3794
3795 fi
3796 if test x$ac_gc_check_cons_list != x ; then
3797
3798 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3799
3800 fi
3801
3802 # Check whether --enable-use-lisp-union-type was given.
3803 if test "${enable_use_lisp_union_type+set}" = set; then :
3804 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3805
3806 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3807
3808 fi
3809 fi
3810
3811
3812
3813 # Check whether --enable-profiling was given.
3814 if test "${enable_profiling+set}" = set; then :
3815 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3816 fi
3817
3818 if test x$ac_enable_profiling != x ; then
3819 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3820 else
3821 PROFILING_CFLAGS=
3822 fi
3823
3824
3825 # Check whether --enable-autodepend was given.
3826 if test "${enable_autodepend+set}" = set; then :
3827 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3828 else
3829 ac_enable_autodepend=yes
3830 fi
3831
3832
3833 #### Make srcdir absolute, if it isn't already. It's important to
3834 #### avoid running the path through pwd unnecessarily, since pwd can
3835 #### give you automounter prefixes, which can go away. We do all this
3836 #### so Emacs can find its files when run uninstalled.
3837 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3838 unset CDPATH
3839 case "${srcdir}" in
3840 /* ) ;;
3841 . )
3842 ## We may be able to use the $PWD environment variable to make this
3843 ## absolute. But sometimes PWD is inaccurate.
3844 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3845 ## but that tested only for a well-formed and valid PWD,
3846 ## it did not object when PWD was well-formed and valid but just wrong.
3847 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3848 then
3849 srcdir="$PWD"
3850 else
3851 srcdir="`(cd ${srcdir}; pwd)`"
3852 fi
3853 ;;
3854 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3855 esac
3856
3857 #### Check if the source directory already has a configured system in it.
3858 if test `pwd` != `(cd ${srcdir} && pwd)` \
3859 && test -f "${srcdir}/src/config.h" ; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3861 as a build directory right now; it has been configured in its own
3862 right. To configure in another directory as well, you MUST
3863 use GNU make. If you do not have GNU make, then you must
3864 now do \`make distclean' in ${srcdir},
3865 and then run $0 again." >&5
3866 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3867 as a build directory right now; it has been configured in its own
3868 right. To configure in another directory as well, you MUST
3869 use GNU make. If you do not have GNU make, then you must
3870 now do \`make distclean' in ${srcdir},
3871 and then run $0 again." >&2;}
3872 fi
3873
3874 #### Given the configuration name, set machfile and opsysfile to the
3875 #### names of the m/*.h and s/*.h files we should use.
3876
3877 ### Canonicalize the configuration name.
3878
3879 # Make sure we can run config.sub.
3880 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3881 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3882
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3884 $as_echo_n "checking build system type... " >&6; }
3885 if ${ac_cv_build+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 ac_build_alias=$build_alias
3889 test "x$ac_build_alias" = x &&
3890 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3891 test "x$ac_build_alias" = x &&
3892 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3893 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3894 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3895
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3898 $as_echo "$ac_cv_build" >&6; }
3899 case $ac_cv_build in
3900 *-*-*) ;;
3901 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3902 esac
3903 build=$ac_cv_build
3904 ac_save_IFS=$IFS; IFS='-'
3905 set x $ac_cv_build
3906 shift
3907 build_cpu=$1
3908 build_vendor=$2
3909 shift; shift
3910 # Remember, the first character of IFS is used to create $*,
3911 # except with old shells:
3912 build_os=$*
3913 IFS=$ac_save_IFS
3914 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3915
3916
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3918 $as_echo_n "checking host system type... " >&6; }
3919 if ${ac_cv_host+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test "x$host_alias" = x; then
3923 ac_cv_host=$ac_cv_build
3924 else
3925 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3927 fi
3928
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3931 $as_echo "$ac_cv_host" >&6; }
3932 case $ac_cv_host in
3933 *-*-*) ;;
3934 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3935 esac
3936 host=$ac_cv_host
3937 ac_save_IFS=$IFS; IFS='-'
3938 set x $ac_cv_host
3939 shift
3940 host_cpu=$1
3941 host_vendor=$2
3942 shift; shift
3943 # Remember, the first character of IFS is used to create $*,
3944 # except with old shells:
3945 host_os=$*
3946 IFS=$ac_save_IFS
3947 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3948
3949
3950 canonical=$host
3951 configuration=${host_alias-${build_alias-$host}}
3952
3953
3954
3955 ### If you add support for a new configuration, add code to this
3956 ### switch statement to recognize your configuration name and select
3957 ### the appropriate operating system and machine description files.
3958
3959 ### You would hope that you could choose an m/*.h file pretty much
3960 ### based on the machine portion of the configuration name, and an s/*.h
3961 ### file based on the operating system portion. However, it turns out
3962 ### that each m/*.h file is pretty manufacturer-specific - for
3963 ### example mips.h is MIPS
3964 ### So we basically have to have a special case for each
3965 ### configuration name.
3966 ###
3967 ### As far as handling version numbers on operating systems is
3968 ### concerned, make sure things will fail in a fixable way. If
3969 ### /etc/MACHINES doesn't say anything about version numbers, be
3970 ### prepared to handle anything reasonably. If version numbers
3971 ### matter, be sure /etc/MACHINES says something about it.
3972
3973 machine='' opsys='' unported=no
3974 case "${canonical}" in
3975
3976 ## GNU/Linux ports
3977 *-*-linux-gnu*)
3978 opsys=gnu-linux
3979 case ${canonical} in
3980 alpha*) machine=alpha ;;
3981 s390-*) machine=ibms390 ;;
3982 s390x-*) machine=ibms390x ;;
3983 powerpc*) machine=macppc ;;
3984 sparc*) machine=sparc ;;
3985 ia64*) machine=ia64 ;;
3986 m68k*) machine=m68k ;;
3987 x86_64*) machine=amdx86-64 ;;
3988 esac
3989 ;;
3990
3991 ## FreeBSD ports
3992 *-*-freebsd* )
3993 opsys=freebsd
3994 case "${canonical}" in
3995 alpha*) machine=alpha ;;
3996 amd64-*|x86_64-*) machine=amdx86-64 ;;
3997 ia64-*) machine=ia64 ;;
3998 i[3456]86-*) machine=intel386 ;;
3999 powerpc-*) machine=macppc ;;
4000 sparc-*) machine=sparc ;;
4001 sparc64-*) machine=sparc ;;
4002 esac
4003 ;;
4004
4005 ## FreeBSD kernel + glibc based userland
4006 *-*-kfreebsd*gnu* )
4007 opsys=gnu-kfreebsd
4008 case "${canonical}" in
4009 alpha*) machine=alpha ;;
4010 amd64-*|x86_64-*) machine=amdx86-64 ;;
4011 ia64-*) machine=ia64 ;;
4012 i[3456]86-*) machine=intel386 ;;
4013 powerpc-*) machine=macppc ;;
4014 sparc-*) machine=sparc ;;
4015 sparc64-*) machine=sparc ;;
4016 esac
4017 ;;
4018
4019 ## NetBSD ports
4020 *-*-netbsd* )
4021 opsys=netbsd
4022 case "${canonical}" in
4023 alpha*) machine=alpha ;;
4024 x86_64-*) machine=amdx86-64 ;;
4025 i[3456]86-*) machine=intel386 ;;
4026 m68k-*) machine=m68k ;;
4027 powerpc-*) machine=macppc ;;
4028 sparc*-) machine=sparc ;;
4029 vax-*) machine=vax ;;
4030 esac
4031 ;;
4032
4033 ## OpenBSD ports
4034 *-*-openbsd* )
4035 opsys=openbsd
4036 case "${canonical}" in
4037 alpha*) machine=alpha ;;
4038 x86_64-*) machine=amdx86-64 ;;
4039 i386-*) machine=intel386 ;;
4040 powerpc-*) machine=macppc ;;
4041 sparc*) machine=sparc ;;
4042 vax-*) machine=vax ;;
4043 esac
4044 ;;
4045
4046 ## Apple Darwin / Mac OS X
4047 *-apple-darwin* )
4048 case "${canonical}" in
4049 i[3456]86-* ) machine=intel386 ;;
4050 powerpc-* ) machine=macppc ;;
4051 x86_64-* ) machine=amdx86-64 ;;
4052 * ) unported=yes ;;
4053 esac
4054 opsys=darwin
4055 # Define CPP as follows to make autoconf work correctly.
4056 CPP="${CC-cc} -E -no-cpp-precomp"
4057 # Use fink packages if available.
4058 if test -d /sw/include && test -d /sw/lib; then
4059 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4060 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4061 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4062 fi
4063 ;;
4064
4065 ## HP 9000 series 700 and 800, running HP/UX
4066 hppa*-hp-hpux10.2* )
4067 opsys=hpux10-20
4068 ;;
4069 hppa*-hp-hpux1[1-9]* )
4070 opsys=hpux11
4071 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4072 ;;
4073
4074 ia64*-hp-hpux1[1-9]* )
4075 machine=hp800 opsys=hpux11
4076 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4077 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4078 CANNOT_DUMP=yes
4079 ;;
4080
4081 hppa*-*-linux-gnu* )
4082 machine=hp800 opsys=gnu-linux
4083 ;;
4084
4085 ## IBM machines
4086 rs6000-ibm-aix4.[23]* )
4087 machine=ibmrs6000 opsys=aix4-2
4088 ;;
4089 powerpc-ibm-aix4.[23]* )
4090 machine=ibmrs6000 opsys=aix4-2
4091 ;;
4092 rs6000-ibm-aix[56]* )
4093 machine=ibmrs6000 opsys=aix4-2
4094 ;;
4095 powerpc-ibm-aix[56]* )
4096 machine=ibmrs6000 opsys=aix4-2
4097 ;;
4098
4099 ## Silicon Graphics machines
4100 ## Iris 4D
4101 mips-sgi-irix6.5 )
4102 machine=iris4d opsys=irix6-5
4103 # Without defining _LANGUAGE_C, things get masked out in the headers
4104 # so that, for instance, grepping for `free' in stdlib.h fails and
4105 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4106 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4107 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4108 ;;
4109
4110 ## Suns
4111 *-sun-solaris* \
4112 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4113 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4114 case "${canonical}" in
4115 i[3456]86-*-* ) machine=intel386 ;;
4116 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4117 sparc* ) machine=sparc ;;
4118 * ) unported=yes ;;
4119 esac
4120 case "${canonical}" in
4121 *-sunos5.6* | *-solaris2.6* )
4122 opsys=sol2-6
4123 NON_GNU_CPP=/usr/ccs/lib/cpp
4124 RANLIB="ar -ts"
4125 ;;
4126 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4127 opsys=sol2-6
4128 emacs_check_sunpro_c=yes
4129 NON_GNU_CPP=/usr/ccs/lib/cpp
4130 ;;
4131 *-sunos5* | *-solaris* )
4132 opsys=sol2-10
4133 emacs_check_sunpro_c=yes
4134 NON_GNU_CPP=/usr/ccs/lib/cpp
4135 ;;
4136 esac
4137 ## Watch out for a compiler that we know will not work.
4138 case "${canonical}" in
4139 *-solaris* | *-sunos5* )
4140 if [ "x$CC" = x/usr/ucb/cc ]; then
4141 ## /usr/ucb/cc doesn't work;
4142 ## we should find some other compiler that does work.
4143 unset CC
4144 fi
4145 ;;
4146 *) ;;
4147 esac
4148 ;;
4149
4150 ## Intel 386 machines where we don't care about the manufacturer.
4151 i[3456]86-*-* )
4152 machine=intel386
4153 case "${canonical}" in
4154 *-cygwin ) opsys=cygwin ;;
4155 *-darwin* ) opsys=darwin
4156 CPP="${CC-cc} -E -no-cpp-precomp"
4157 ;;
4158 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4159 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4160 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4161 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4162 esac
4163 ;;
4164
4165 * )
4166 unported=yes
4167 ;;
4168 esac
4169
4170 ### If the code above didn't choose an operating system, just choose
4171 ### an operating system based on the configuration name. You really
4172 ### only want to use this when you have no idea what the right
4173 ### operating system is; if you know what operating systems a machine
4174 ### runs, it's cleaner to make it explicit in the case statement
4175 ### above.
4176 if test x"${opsys}" = x; then
4177 case "${canonical}" in
4178 *-gnu* ) opsys=gnu ;;
4179 * )
4180 unported=yes
4181 ;;
4182 esac
4183 fi
4184
4185
4186
4187 if test $unported = yes; then
4188 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4189 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4190 fi
4191
4192 if test -n "$machine"; then
4193 machfile="m/${machine}.h"
4194 else
4195 machfile=
4196 fi
4197 opsysfile="s/${opsys}.h"
4198
4199
4200 #### Choose a compiler.
4201 test -n "$CC" && cc_specified=yes
4202
4203 # Save the value of CFLAGS that the user specified.
4204 SPECIFIED_CFLAGS="$CFLAGS"
4205
4206 ac_ext=c
4207 ac_cpp='$CPP $CPPFLAGS'
4208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 if test -n "$ac_tool_prefix"; then
4212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if ${ac_cv_prog_CC+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -n "$CC"; then
4220 ac_cv_prog_CC="$CC" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4232 fi
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237 fi
4238 fi
4239 CC=$ac_cv_prog_CC
4240 if test -n "$CC"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4242 $as_echo "$CC" >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 fi
4247
4248
4249 fi
4250 if test -z "$ac_cv_prog_CC"; then
4251 ac_ct_CC=$CC
4252 # Extract the first word of "gcc", so it can be a program name with args.
4253 set dummy gcc; ac_word=$2
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255 $as_echo_n "checking for $ac_word... " >&6; }
4256 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if test -n "$ac_ct_CC"; then
4260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4261 else
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH
4264 do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4269 ac_cv_prog_ac_ct_CC="gcc"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4272 fi
4273 done
4274 done
4275 IFS=$as_save_IFS
4276
4277 fi
4278 fi
4279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4280 if test -n "$ac_ct_CC"; then
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4282 $as_echo "$ac_ct_CC" >&6; }
4283 else
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 $as_echo "no" >&6; }
4286 fi
4287
4288 if test "x$ac_ct_CC" = x; then
4289 CC=""
4290 else
4291 case $cross_compiling:$ac_tool_warned in
4292 yes:)
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4295 ac_tool_warned=yes ;;
4296 esac
4297 CC=$ac_ct_CC
4298 fi
4299 else
4300 CC="$ac_cv_prog_CC"
4301 fi
4302
4303 if test -z "$CC"; then
4304 if test -n "$ac_tool_prefix"; then
4305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4306 set dummy ${ac_tool_prefix}cc; ac_word=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_CC+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_CC="${ac_tool_prefix}cc"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4325 fi
4326 done
4327 done
4328 IFS=$as_save_IFS
4329
4330 fi
4331 fi
4332 CC=$ac_cv_prog_CC
4333 if test -n "$CC"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335 $as_echo "$CC" >&6; }
4336 else
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4339 fi
4340
4341
4342 fi
4343 fi
4344 if test -z "$CC"; then
4345 # Extract the first word of "cc", so it can be a program name with args.
4346 set dummy cc; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if ${ac_cv_prog_CC+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -n "$CC"; then
4353 ac_cv_prog_CC="$CC" # Let the user override the test.
4354 else
4355 ac_prog_rejected=no
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4358 do
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4364 ac_prog_rejected=yes
4365 continue
4366 fi
4367 ac_cv_prog_CC="cc"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 if test $ac_prog_rejected = yes; then
4376 # We found a bogon in the path, so make sure we never use it.
4377 set dummy $ac_cv_prog_CC
4378 shift
4379 if test $# != 0; then
4380 # We chose a different compiler from the bogus one.
4381 # However, it has the same basename, so the bogon will be chosen
4382 # first if we set CC to just the basename; use the full file name.
4383 shift
4384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4385 fi
4386 fi
4387 fi
4388 fi
4389 CC=$ac_cv_prog_CC
4390 if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392 $as_echo "$CC" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4396 fi
4397
4398
4399 fi
4400 if test -z "$CC"; then
4401 if test -n "$ac_tool_prefix"; then
4402 for ac_prog in cl.exe
4403 do
4404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if ${ac_cv_prog_CC+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -n "$CC"; then
4412 ac_cv_prog_CC="$CC" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4416 do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4424 fi
4425 done
4426 done
4427 IFS=$as_save_IFS
4428
4429 fi
4430 fi
4431 CC=$ac_cv_prog_CC
4432 if test -n "$CC"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4434 $as_echo "$CC" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438 fi
4439
4440
4441 test -n "$CC" && break
4442 done
4443 fi
4444 if test -z "$CC"; then
4445 ac_ct_CC=$CC
4446 for ac_prog in cl.exe
4447 do
4448 # Extract the first word of "$ac_prog", so it can be a program name with args.
4449 set dummy $ac_prog; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$ac_ct_CC"; then
4456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465 ac_cv_prog_ac_ct_CC="$ac_prog"
4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 break 2
4468 fi
4469 done
4470 done
4471 IFS=$as_save_IFS
4472
4473 fi
4474 fi
4475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4476 if test -n "$ac_ct_CC"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4478 $as_echo "$ac_ct_CC" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485 test -n "$ac_ct_CC" && break
4486 done
4487
4488 if test "x$ac_ct_CC" = x; then
4489 CC=""
4490 else
4491 case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497 CC=$ac_ct_CC
4498 fi
4499 fi
4500
4501 fi
4502
4503
4504 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4506 as_fn_error $? "no acceptable C compiler found in \$PATH
4507 See \`config.log' for more details" "$LINENO" 5; }
4508
4509 # Provide some information about the compiler.
4510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4511 set X $ac_compile
4512 ac_compiler=$2
4513 for ac_option in --version -v -V -qversion; do
4514 { { ac_try="$ac_compiler $ac_option >&5"
4515 case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518 esac
4519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520 $as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4522 ac_status=$?
4523 if test -s conftest.err; then
4524 sed '10a\
4525 ... rest of stderr output deleted ...
4526 10q' conftest.err >conftest.er1
4527 cat conftest.er1 >&5
4528 fi
4529 rm -f conftest.er1 conftest.err
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }
4532 done
4533
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main ()
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 ac_clean_files_save=$ac_clean_files
4546 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4547 # Try to create an executable without -o first, disregard a.out.
4548 # It will help us diagnose broken compilers, and finding out an intuition
4549 # of exeext.
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4551 $as_echo_n "checking whether the C compiler works... " >&6; }
4552 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4553
4554 # The possible output files:
4555 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4556
4557 ac_rmfiles=
4558 for ac_file in $ac_files
4559 do
4560 case $ac_file in
4561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4562 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4563 esac
4564 done
4565 rm -f $ac_rmfiles
4566
4567 if { { ac_try="$ac_link_default"
4568 case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4571 esac
4572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4573 $as_echo "$ac_try_echo"; } >&5
4574 (eval "$ac_link_default") 2>&5
4575 ac_status=$?
4576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4577 test $ac_status = 0; }; then :
4578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4579 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4580 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4581 # so that the user can short-circuit this test for compilers unknown to
4582 # Autoconf.
4583 for ac_file in $ac_files ''
4584 do
4585 test -f "$ac_file" || continue
4586 case $ac_file in
4587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4588 ;;
4589 [ab].out )
4590 # We found the default executable, but exeext='' is most
4591 # certainly right.
4592 break;;
4593 *.* )
4594 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4595 then :; else
4596 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4597 fi
4598 # We set ac_cv_exeext here because the later test for it is not
4599 # safe: cross compilers may not add the suffix if given an `-o'
4600 # argument, so we may need to know it at that point already.
4601 # Even if this section looks crufty: it has the advantage of
4602 # actually working.
4603 break;;
4604 * )
4605 break;;
4606 esac
4607 done
4608 test "$ac_cv_exeext" = no && ac_cv_exeext=
4609
4610 else
4611 ac_file=''
4612 fi
4613 if test -z "$ac_file"; then :
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4616 $as_echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4621 as_fn_error 77 "C compiler cannot create executables
4622 See \`config.log' for more details" "$LINENO" 5; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4625 $as_echo "yes" >&6; }
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4628 $as_echo_n "checking for C compiler default output file name... " >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4630 $as_echo "$ac_file" >&6; }
4631 ac_exeext=$ac_cv_exeext
4632
4633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4634 ac_clean_files=$ac_clean_files_save
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4636 $as_echo_n "checking for suffix of executables... " >&6; }
4637 if { { ac_try="$ac_link"
4638 case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641 esac
4642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_link") 2>&5
4645 ac_status=$?
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }; then :
4648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4650 # work properly (i.e., refer to `conftest.exe'), while it won't with
4651 # `rm'.
4652 for ac_file in conftest.exe conftest conftest.*; do
4653 test -f "$ac_file" || continue
4654 case $ac_file in
4655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4657 break;;
4658 * ) break;;
4659 esac
4660 done
4661 else
4662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4664 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4665 See \`config.log' for more details" "$LINENO" 5; }
4666 fi
4667 rm -f conftest conftest$ac_cv_exeext
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4669 $as_echo "$ac_cv_exeext" >&6; }
4670
4671 rm -f conftest.$ac_ext
4672 EXEEXT=$ac_cv_exeext
4673 ac_exeext=$EXEEXT
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <stdio.h>
4677 int
4678 main ()
4679 {
4680 FILE *f = fopen ("conftest.out", "w");
4681 return ferror (f) || fclose (f) != 0;
4682
4683 ;
4684 return 0;
4685 }
4686 _ACEOF
4687 ac_clean_files="$ac_clean_files conftest.out"
4688 # Check that the compiler produces executables we can run. If not, either
4689 # the compiler is broken, or we cross compile.
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4691 $as_echo_n "checking whether we are cross compiling... " >&6; }
4692 if test "$cross_compiling" != yes; then
4693 { { ac_try="$ac_link"
4694 case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699 $as_echo "$ac_try_echo"; } >&5
4700 (eval "$ac_link") 2>&5
4701 ac_status=$?
4702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703 test $ac_status = 0; }
4704 if { ac_try='./conftest$ac_cv_exeext'
4705 { { case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708 esac
4709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710 $as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_try") 2>&5
4712 ac_status=$?
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }; }; then
4715 cross_compiling=no
4716 else
4717 if test "$cross_compiling" = maybe; then
4718 cross_compiling=yes
4719 else
4720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4722 as_fn_error $? "cannot run C compiled programs.
4723 If you meant to cross compile, use \`--host'.
4724 See \`config.log' for more details" "$LINENO" 5; }
4725 fi
4726 fi
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4729 $as_echo "$cross_compiling" >&6; }
4730
4731 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4732 ac_clean_files=$ac_clean_files_save
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4734 $as_echo_n "checking for suffix of object files... " >&6; }
4735 if ${ac_cv_objext+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740
4741 int
4742 main ()
4743 {
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 rm -f conftest.o conftest.obj
4750 if { { ac_try="$ac_compile"
4751 case "(($ac_try" in
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4754 esac
4755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4756 $as_echo "$ac_try_echo"; } >&5
4757 (eval "$ac_compile") 2>&5
4758 ac_status=$?
4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4760 test $ac_status = 0; }; then :
4761 for ac_file in conftest.o conftest.obj conftest.*; do
4762 test -f "$ac_file" || continue;
4763 case $ac_file in
4764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4766 break;;
4767 esac
4768 done
4769 else
4770 $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4775 as_fn_error $? "cannot compute suffix of object files: cannot compile
4776 See \`config.log' for more details" "$LINENO" 5; }
4777 fi
4778 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4781 $as_echo "$ac_cv_objext" >&6; }
4782 OBJEXT=$ac_cv_objext
4783 ac_objext=$OBJEXT
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4785 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4786 if ${ac_cv_c_compiler_gnu+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791
4792 int
4793 main ()
4794 {
4795 #ifndef __GNUC__
4796 choke me
4797 #endif
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_compile "$LINENO"; then :
4804 ac_compiler_gnu=yes
4805 else
4806 ac_compiler_gnu=no
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4810
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4813 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4814 if test $ac_compiler_gnu = yes; then
4815 GCC=yes
4816 else
4817 GCC=
4818 fi
4819 ac_test_CFLAGS=${CFLAGS+set}
4820 ac_save_CFLAGS=$CFLAGS
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4822 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4823 if ${ac_cv_prog_cc_g+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 ac_save_c_werror_flag=$ac_c_werror_flag
4827 ac_c_werror_flag=yes
4828 ac_cv_prog_cc_g=no
4829 CFLAGS="-g"
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832
4833 int
4834 main ()
4835 {
4836
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842 ac_cv_prog_cc_g=yes
4843 else
4844 CFLAGS=""
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847
4848 int
4849 main ()
4850 {
4851
4852 ;
4853 return 0;
4854 }
4855 _ACEOF
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857
4858 else
4859 ac_c_werror_flag=$ac_save_c_werror_flag
4860 CFLAGS="-g"
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863
4864 int
4865 main ()
4866 {
4867
4868 ;
4869 return 0;
4870 }
4871 _ACEOF
4872 if ac_fn_c_try_compile "$LINENO"; then :
4873 ac_cv_prog_cc_g=yes
4874 fi
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 fi
4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 ac_c_werror_flag=$ac_save_c_werror_flag
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4883 $as_echo "$ac_cv_prog_cc_g" >&6; }
4884 if test "$ac_test_CFLAGS" = set; then
4885 CFLAGS=$ac_save_CFLAGS
4886 elif test $ac_cv_prog_cc_g = yes; then
4887 if test "$GCC" = yes; then
4888 CFLAGS="-g -O2"
4889 else
4890 CFLAGS="-g"
4891 fi
4892 else
4893 if test "$GCC" = yes; then
4894 CFLAGS="-O2"
4895 else
4896 CFLAGS=
4897 fi
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4900 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4901 if ${ac_cv_prog_cc_c89+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 ac_cv_prog_cc_c89=no
4905 ac_save_CC=$CC
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4908 #include <stdarg.h>
4909 #include <stdio.h>
4910 #include <sys/types.h>
4911 #include <sys/stat.h>
4912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4913 struct buf { int x; };
4914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4915 static char *e (p, i)
4916 char **p;
4917 int i;
4918 {
4919 return p[i];
4920 }
4921 static char *f (char * (*g) (char **, int), char **p, ...)
4922 {
4923 char *s;
4924 va_list v;
4925 va_start (v,p);
4926 s = g (p, va_arg (v,int));
4927 va_end (v);
4928 return s;
4929 }
4930
4931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4932 function prototypes and stuff, but not '\xHH' hex character constants.
4933 These don't provoke an error unfortunately, instead are silently treated
4934 as 'x'. The following induces an error, until -std is added to get
4935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4936 array size at least. It's necessary to write '\x00'==0 to get something
4937 that's true only with -std. */
4938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4939
4940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4941 inside strings and character constants. */
4942 #define FOO(x) 'x'
4943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4944
4945 int test (int i, double x);
4946 struct s1 {int (*f) (int a);};
4947 struct s2 {int (*f) (double a);};
4948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4949 int argc;
4950 char **argv;
4951 int
4952 main ()
4953 {
4954 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4955 ;
4956 return 0;
4957 }
4958 _ACEOF
4959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4961 do
4962 CC="$ac_save_CC $ac_arg"
4963 if ac_fn_c_try_compile "$LINENO"; then :
4964 ac_cv_prog_cc_c89=$ac_arg
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext
4967 test "x$ac_cv_prog_cc_c89" != "xno" && break
4968 done
4969 rm -f conftest.$ac_ext
4970 CC=$ac_save_CC
4971
4972 fi
4973 # AC_CACHE_VAL
4974 case "x$ac_cv_prog_cc_c89" in
4975 x)
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4977 $as_echo "none needed" >&6; } ;;
4978 xno)
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4980 $as_echo "unsupported" >&6; } ;;
4981 *)
4982 CC="$CC $ac_cv_prog_cc_c89"
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4984 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4985 esac
4986 if test "x$ac_cv_prog_cc_c89" != xno; then :
4987
4988 fi
4989
4990 ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995 DEPDIR="${am__leading_dot}deps"
4996
4997 ac_config_commands="$ac_config_commands depfiles"
4998
4999
5000 am_make=${MAKE-make}
5001 cat > confinc << 'END'
5002 am__doit:
5003 @echo this is the am__doit target
5004 .PHONY: am__doit
5005 END
5006 # If we don't find an include directive, just comment out the code.
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5008 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5009 am__include="#"
5010 am__quote=
5011 _am_result=none
5012 # First try GNU make style include.
5013 echo "include confinc" > confmf
5014 # Ignore all kinds of additional output from `make'.
5015 case `$am_make -s -f confmf 2> /dev/null` in #(
5016 *the\ am__doit\ target*)
5017 am__include=include
5018 am__quote=
5019 _am_result=GNU
5020 ;;
5021 esac
5022 # Now try BSD make style include.
5023 if test "$am__include" = "#"; then
5024 echo '.include "confinc"' > confmf
5025 case `$am_make -s -f confmf 2> /dev/null` in #(
5026 *the\ am__doit\ target*)
5027 am__include=.include
5028 am__quote="\""
5029 _am_result=BSD
5030 ;;
5031 esac
5032 fi
5033
5034
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5036 $as_echo "$_am_result" >&6; }
5037 rm -f confinc confmf
5038
5039 # Check whether --enable-dependency-tracking was given.
5040 if test "${enable_dependency_tracking+set}" = set; then :
5041 enableval=$enable_dependency_tracking;
5042 fi
5043
5044 if test "x$enable_dependency_tracking" != xno; then
5045 am_depcomp="$ac_aux_dir/depcomp"
5046 AMDEPBACKSLASH='\'
5047 fi
5048 if test "x$enable_dependency_tracking" != xno; then
5049 AMDEP_TRUE=
5050 AMDEP_FALSE='#'
5051 else
5052 AMDEP_TRUE='#'
5053 AMDEP_FALSE=
5054 fi
5055
5056
5057
5058 depcc="$CC" am_compiler_list=
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5061 $as_echo_n "checking dependency style of $depcc... " >&6; }
5062 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5066 # We make a subdir and do the tests there. Otherwise we can end up
5067 # making bogus files that we don't know about and never remove. For
5068 # instance it was reported that on HP-UX the gcc test will end up
5069 # making a dummy file named `D' -- because `-MD' means `put the output
5070 # in D'.
5071 mkdir conftest.dir
5072 # Copy depcomp to subdir because otherwise we won't find it if we're
5073 # using a relative directory.
5074 cp "$am_depcomp" conftest.dir
5075 cd conftest.dir
5076 # We will build objects and dependencies in a subdirectory because
5077 # it helps to detect inapplicable dependency modes. For instance
5078 # both Tru64's cc and ICC support -MD to output dependencies as a
5079 # side effect of compilation, but ICC will put the dependencies in
5080 # the current directory while Tru64 will put them in the object
5081 # directory.
5082 mkdir sub
5083
5084 am_cv_CC_dependencies_compiler_type=none
5085 if test "$am_compiler_list" = ""; then
5086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5087 fi
5088 am__universal=false
5089 case " $depcc " in #(
5090 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5091 esac
5092
5093 for depmode in $am_compiler_list; do
5094 # Setup a source with many dependencies, because some compilers
5095 # like to wrap large dependency lists on column 80 (with \), and
5096 # we should not choose a depcomp mode which is confused by this.
5097 #
5098 # We need to recreate these files for each test, as the compiler may
5099 # overwrite some of them when testing with obscure command lines.
5100 # This happens at least with the AIX C compiler.
5101 : > sub/conftest.c
5102 for i in 1 2 3 4 5 6; do
5103 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5104 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5105 # Solaris 8's {/usr,}/bin/sh.
5106 touch sub/conftst$i.h
5107 done
5108 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5109
5110 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5111 # mode. It turns out that the SunPro C++ compiler does not properly
5112 # handle `-M -o', and we need to detect this. Also, some Intel
5113 # versions had trouble with output in subdirs
5114 am__obj=sub/conftest.${OBJEXT-o}
5115 am__minus_obj="-o $am__obj"
5116 case $depmode in
5117 gcc)
5118 # This depmode causes a compiler race in universal mode.
5119 test "$am__universal" = false || continue
5120 ;;
5121 nosideeffect)
5122 # after this tag, mechanisms are not by side-effect, so they'll
5123 # only be used when explicitly requested
5124 if test "x$enable_dependency_tracking" = xyes; then
5125 continue
5126 else
5127 break
5128 fi
5129 ;;
5130 msvisualcpp | msvcmsys)
5131 # This compiler won't grok `-c -o', but also, the minuso test has
5132 # not run yet. These depmodes are late enough in the game, and
5133 # so weak that their functioning should not be impacted.
5134 am__obj=conftest.${OBJEXT-o}
5135 am__minus_obj=
5136 ;;
5137 none) break ;;
5138 esac
5139 if depmode=$depmode \
5140 source=sub/conftest.c object=$am__obj \
5141 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5142 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5143 >/dev/null 2>conftest.err &&
5144 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5145 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5146 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5147 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5148 # icc doesn't choke on unknown options, it will just issue warnings
5149 # or remarks (even with -Werror). So we grep stderr for any message
5150 # that says an option was ignored or not supported.
5151 # When given -MP, icc 7.0 and 7.1 complain thusly:
5152 # icc: Command line warning: ignoring option '-M'; no argument required
5153 # The diagnosis changed in icc 8.0:
5154 # icc: Command line remark: option '-MP' not supported
5155 if (grep 'ignoring option' conftest.err ||
5156 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5157 am_cv_CC_dependencies_compiler_type=$depmode
5158 break
5159 fi
5160 fi
5161 done
5162
5163 cd ..
5164 rm -rf conftest.dir
5165 else
5166 am_cv_CC_dependencies_compiler_type=none
5167 fi
5168
5169 fi
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5171 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5172 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5173
5174 if
5175 test "x$enable_dependency_tracking" != xno \
5176 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5177 am__fastdepCC_TRUE=
5178 am__fastdepCC_FALSE='#'
5179 else
5180 am__fastdepCC_TRUE='#'
5181 am__fastdepCC_FALSE=
5182 fi
5183
5184
5185 if test "x$CC" != xcc; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5187 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5190 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5191 fi
5192 set dummy $CC; ac_cc=`$as_echo "$2" |
5193 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5194 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 int
5201 main ()
5202 {
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 # Make sure it works both with $CC and with simple cc.
5209 # We do the test twice because some compilers refuse to overwrite an
5210 # existing .o file with -o, though they will create one.
5211 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5212 rm -f conftest2.*
5213 if { { case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216 esac
5217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5218 $as_echo "$ac_try_echo"; } >&5
5219 (eval "$ac_try") 2>&5
5220 ac_status=$?
5221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5222 test $ac_status = 0; } &&
5223 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226 esac
5227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5228 $as_echo "$ac_try_echo"; } >&5
5229 (eval "$ac_try") 2>&5
5230 ac_status=$?
5231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5232 test $ac_status = 0; };
5233 then
5234 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5235 if test "x$CC" != xcc; then
5236 # Test first that cc exists at all.
5237 if { ac_try='cc -c conftest.$ac_ext >&5'
5238 { { case "(($ac_try" in
5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 *) ac_try_echo=$ac_try;;
5241 esac
5242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5243 $as_echo "$ac_try_echo"; } >&5
5244 (eval "$ac_try") 2>&5
5245 ac_status=$?
5246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5247 test $ac_status = 0; }; }; then
5248 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5249 rm -f conftest2.*
5250 if { { case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5255 $as_echo "$ac_try_echo"; } >&5
5256 (eval "$ac_try") 2>&5
5257 ac_status=$?
5258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5259 test $ac_status = 0; } &&
5260 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5265 $as_echo "$ac_try_echo"; } >&5
5266 (eval "$ac_try") 2>&5
5267 ac_status=$?
5268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269 test $ac_status = 0; };
5270 then
5271 # cc works too.
5272 :
5273 else
5274 # cc exists but doesn't like -o.
5275 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5276 fi
5277 fi
5278 fi
5279 else
5280 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5281 fi
5282 rm -f core conftest*
5283
5284 fi
5285 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5287 $as_echo "yes" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291
5292 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5293
5294 fi
5295
5296 # FIXME: we rely on the cache variable name because
5297 # there is no other way.
5298 set dummy $CC
5299 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5300 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5301 if test "$am_t" != yes; then
5302 # Losing compiler, so override with the script.
5303 # FIXME: It is wrong to rewrite CC.
5304 # But if we don't then we get into trouble of one sort or another.
5305 # A longer-term fix would be to have automake use am__CC in this case,
5306 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5307 CC="$am_aux_dir/compile $CC"
5308 fi
5309
5310
5311
5312 # Initialize gnulib right after verifying that the C compiler works.
5313 if test -n "$ac_tool_prefix"; then
5314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_prog_RANLIB+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if test -n "$RANLIB"; then
5322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335 done
5336 done
5337 IFS=$as_save_IFS
5338
5339 fi
5340 fi
5341 RANLIB=$ac_cv_prog_RANLIB
5342 if test -n "$RANLIB"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5344 $as_echo "$RANLIB" >&6; }
5345 else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5348 fi
5349
5350
5351 fi
5352 if test -z "$ac_cv_prog_RANLIB"; then
5353 ac_ct_RANLIB=$RANLIB
5354 # Extract the first word of "ranlib", so it can be a program name with args.
5355 set dummy ranlib; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$ac_ct_RANLIB"; then
5362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5363 else
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_ac_ct_RANLIB="ranlib"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5382 if test -n "$ac_ct_RANLIB"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5384 $as_echo "$ac_ct_RANLIB" >&6; }
5385 else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5388 fi
5389
5390 if test "x$ac_ct_RANLIB" = x; then
5391 RANLIB=":"
5392 else
5393 case $cross_compiling:$ac_tool_warned in
5394 yes:)
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5397 ac_tool_warned=yes ;;
5398 esac
5399 RANLIB=$ac_ct_RANLIB
5400 fi
5401 else
5402 RANLIB="$ac_cv_prog_RANLIB"
5403 fi
5404
5405
5406 ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5412 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5413 # On Suns, sometimes $CPP names a directory.
5414 if test -n "$CPP" && test -d "$CPP"; then
5415 CPP=
5416 fi
5417 if test -z "$CPP"; then
5418 if ${ac_cv_prog_CPP+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 # Double quotes because CPP needs to be expanded
5422 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5423 do
5424 ac_preproc_ok=false
5425 for ac_c_preproc_warn_flag in '' yes
5426 do
5427 # Use a header file that comes with gcc, so configuring glibc
5428 # with a fresh cross-compiler works.
5429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5430 # <limits.h> exists even on freestanding compilers.
5431 # On the NeXT, cc -E runs the code through the compiler's parser,
5432 # not just through cpp. "Syntax error" is here to catch this case.
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #ifdef __STDC__
5436 # include <limits.h>
5437 #else
5438 # include <assert.h>
5439 #endif
5440 Syntax error
5441 _ACEOF
5442 if ac_fn_c_try_cpp "$LINENO"; then :
5443
5444 else
5445 # Broken: fails on valid input.
5446 continue
5447 fi
5448 rm -f conftest.err conftest.i conftest.$ac_ext
5449
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #include <ac_nonexistent.h>
5455 _ACEOF
5456 if ac_fn_c_try_cpp "$LINENO"; then :
5457 # Broken: success on invalid input.
5458 continue
5459 else
5460 # Passes both tests.
5461 ac_preproc_ok=:
5462 break
5463 fi
5464 rm -f conftest.err conftest.i conftest.$ac_ext
5465
5466 done
5467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5468 rm -f conftest.i conftest.err conftest.$ac_ext
5469 if $ac_preproc_ok; then :
5470 break
5471 fi
5472
5473 done
5474 ac_cv_prog_CPP=$CPP
5475
5476 fi
5477 CPP=$ac_cv_prog_CPP
5478 else
5479 ac_cv_prog_CPP=$CPP
5480 fi
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5482 $as_echo "$CPP" >&6; }
5483 ac_preproc_ok=false
5484 for ac_c_preproc_warn_flag in '' yes
5485 do
5486 # Use a header file that comes with gcc, so configuring glibc
5487 # with a fresh cross-compiler works.
5488 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5489 # <limits.h> exists even on freestanding compilers.
5490 # On the NeXT, cc -E runs the code through the compiler's parser,
5491 # not just through cpp. "Syntax error" is here to catch this case.
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #ifdef __STDC__
5495 # include <limits.h>
5496 #else
5497 # include <assert.h>
5498 #endif
5499 Syntax error
5500 _ACEOF
5501 if ac_fn_c_try_cpp "$LINENO"; then :
5502
5503 else
5504 # Broken: fails on valid input.
5505 continue
5506 fi
5507 rm -f conftest.err conftest.i conftest.$ac_ext
5508
5509 # OK, works on sane cases. Now check whether nonexistent headers
5510 # can be detected and how.
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5513 #include <ac_nonexistent.h>
5514 _ACEOF
5515 if ac_fn_c_try_cpp "$LINENO"; then :
5516 # Broken: success on invalid input.
5517 continue
5518 else
5519 # Passes both tests.
5520 ac_preproc_ok=:
5521 break
5522 fi
5523 rm -f conftest.err conftest.i conftest.$ac_ext
5524
5525 done
5526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5527 rm -f conftest.i conftest.err conftest.$ac_ext
5528 if $ac_preproc_ok; then :
5529
5530 else
5531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5533 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5534 See \`config.log' for more details" "$LINENO" 5; }
5535 fi
5536
5537 ac_ext=c
5538 ac_cpp='$CPP $CPPFLAGS'
5539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5542
5543
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5545 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5546 if ${ac_cv_path_GREP+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -z "$GREP"; then
5550 ac_path_GREP_found=false
5551 # Loop through the user's path and test for each of PROGNAME-LIST
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5554 do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_prog in grep ggrep; do
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5561 # Check for GNU ac_path_GREP and select it if it is found.
5562 # Check for GNU $ac_path_GREP
5563 case `"$ac_path_GREP" --version 2>&1` in
5564 *GNU*)
5565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5566 *)
5567 ac_count=0
5568 $as_echo_n 0123456789 >"conftest.in"
5569 while :
5570 do
5571 cat "conftest.in" "conftest.in" >"conftest.tmp"
5572 mv "conftest.tmp" "conftest.in"
5573 cp "conftest.in" "conftest.nl"
5574 $as_echo 'GREP' >> "conftest.nl"
5575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5577 as_fn_arith $ac_count + 1 && ac_count=$as_val
5578 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5579 # Best one so far, save it but keep looking for a better one
5580 ac_cv_path_GREP="$ac_path_GREP"
5581 ac_path_GREP_max=$ac_count
5582 fi
5583 # 10*(2^10) chars as input seems more than enough
5584 test $ac_count -gt 10 && break
5585 done
5586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5587 esac
5588
5589 $ac_path_GREP_found && break 3
5590 done
5591 done
5592 done
5593 IFS=$as_save_IFS
5594 if test -z "$ac_cv_path_GREP"; then
5595 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5596 fi
5597 else
5598 ac_cv_path_GREP=$GREP
5599 fi
5600
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5603 $as_echo "$ac_cv_path_GREP" >&6; }
5604 GREP="$ac_cv_path_GREP"
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5608 $as_echo_n "checking for egrep... " >&6; }
5609 if ${ac_cv_path_EGREP+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5613 then ac_cv_path_EGREP="$GREP -E"
5614 else
5615 if test -z "$EGREP"; then
5616 ac_path_EGREP_found=false
5617 # Loop through the user's path and test for each of PROGNAME-LIST
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5620 do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_prog in egrep; do
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5626 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5627 # Check for GNU ac_path_EGREP and select it if it is found.
5628 # Check for GNU $ac_path_EGREP
5629 case `"$ac_path_EGREP" --version 2>&1` in
5630 *GNU*)
5631 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5632 *)
5633 ac_count=0
5634 $as_echo_n 0123456789 >"conftest.in"
5635 while :
5636 do
5637 cat "conftest.in" "conftest.in" >"conftest.tmp"
5638 mv "conftest.tmp" "conftest.in"
5639 cp "conftest.in" "conftest.nl"
5640 $as_echo 'EGREP' >> "conftest.nl"
5641 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5642 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5643 as_fn_arith $ac_count + 1 && ac_count=$as_val
5644 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5645 # Best one so far, save it but keep looking for a better one
5646 ac_cv_path_EGREP="$ac_path_EGREP"
5647 ac_path_EGREP_max=$ac_count
5648 fi
5649 # 10*(2^10) chars as input seems more than enough
5650 test $ac_count -gt 10 && break
5651 done
5652 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5653 esac
5654
5655 $ac_path_EGREP_found && break 3
5656 done
5657 done
5658 done
5659 IFS=$as_save_IFS
5660 if test -z "$ac_cv_path_EGREP"; then
5661 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5662 fi
5663 else
5664 ac_cv_path_EGREP=$EGREP
5665 fi
5666
5667 fi
5668 fi
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5670 $as_echo "$ac_cv_path_EGREP" >&6; }
5671 EGREP="$ac_cv_path_EGREP"
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5675 $as_echo_n "checking for ANSI C header files... " >&6; }
5676 if ${ac_cv_header_stdc+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <stdlib.h>
5682 #include <stdarg.h>
5683 #include <string.h>
5684 #include <float.h>
5685
5686 int
5687 main ()
5688 {
5689
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_compile "$LINENO"; then :
5695 ac_cv_header_stdc=yes
5696 else
5697 ac_cv_header_stdc=no
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700
5701 if test $ac_cv_header_stdc = yes; then
5702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 #include <string.h>
5706
5707 _ACEOF
5708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709 $EGREP "memchr" >/dev/null 2>&1; then :
5710
5711 else
5712 ac_cv_header_stdc=no
5713 fi
5714 rm -f conftest*
5715
5716 fi
5717
5718 if test $ac_cv_header_stdc = yes; then
5719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 #include <stdlib.h>
5723
5724 _ACEOF
5725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5726 $EGREP "free" >/dev/null 2>&1; then :
5727
5728 else
5729 ac_cv_header_stdc=no
5730 fi
5731 rm -f conftest*
5732
5733 fi
5734
5735 if test $ac_cv_header_stdc = yes; then
5736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5737 if test "$cross_compiling" = yes; then :
5738 :
5739 else
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 #include <ctype.h>
5743 #include <stdlib.h>
5744 #if ((' ' & 0x0FF) == 0x020)
5745 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5746 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5747 #else
5748 # define ISLOWER(c) \
5749 (('a' <= (c) && (c) <= 'i') \
5750 || ('j' <= (c) && (c) <= 'r') \
5751 || ('s' <= (c) && (c) <= 'z'))
5752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5753 #endif
5754
5755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5756 int
5757 main ()
5758 {
5759 int i;
5760 for (i = 0; i < 256; i++)
5761 if (XOR (islower (i), ISLOWER (i))
5762 || toupper (i) != TOUPPER (i))
5763 return 2;
5764 return 0;
5765 }
5766 _ACEOF
5767 if ac_fn_c_try_run "$LINENO"; then :
5768
5769 else
5770 ac_cv_header_stdc=no
5771 fi
5772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5773 conftest.$ac_objext conftest.beam conftest.$ac_ext
5774 fi
5775
5776 fi
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5779 $as_echo "$ac_cv_header_stdc" >&6; }
5780 if test $ac_cv_header_stdc = yes; then
5781
5782 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5783
5784 fi
5785
5786 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5787 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5788 inttypes.h stdint.h unistd.h
5789 do :
5790 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5791 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5792 "
5793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5794 cat >>confdefs.h <<_ACEOF
5795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5796 _ACEOF
5797
5798 fi
5799
5800 done
5801
5802
5803
5804
5805
5806 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5807 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5808 MINIX=yes
5809 else
5810 MINIX=
5811 fi
5812
5813
5814 if test "$MINIX" = yes; then
5815
5816 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5817
5818
5819 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5820
5821
5822 $as_echo "#define _MINIX 1" >>confdefs.h
5823
5824 fi
5825
5826 case "$host_os" in
5827 hpux*)
5828
5829 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5830
5831 ;;
5832 esac
5833
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5836 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5837 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842
5843 # define __EXTENSIONS__ 1
5844 $ac_includes_default
5845 int
5846 main ()
5847 {
5848
5849 ;
5850 return 0;
5851 }
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"; then :
5854 ac_cv_safe_to_define___extensions__=yes
5855 else
5856 ac_cv_safe_to_define___extensions__=no
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5861 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5862 test $ac_cv_safe_to_define___extensions__ = yes &&
5863 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5864
5865 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5866
5867 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5868
5869 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5870
5871 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 # Code from module arg-nonnull:
5883 # Code from module c++defs:
5884 # Code from module crypto/md5:
5885 # Code from module dtoastr:
5886 # Code from module extensions:
5887
5888 # Code from module getloadavg:
5889 # Code from module getopt-gnu:
5890 # Code from module getopt-posix:
5891 # Code from module gettext-h:
5892 # Code from module ignore-value:
5893 # Code from module include_next:
5894 # Code from module intprops:
5895 # Code from module mktime:
5896 # Code from module multiarch:
5897 # Code from module stdbool:
5898 # Code from module stddef:
5899 # Code from module stdlib:
5900 # Code from module strftime:
5901 # Code from module time:
5902 # Code from module time_r:
5903 # Code from module unistd:
5904 # Code from module warn-on-use:
5905
5906
5907 # On Suns, sometimes $CPP names a directory.
5908 if test -n "$CPP" && test -d "$CPP"; then
5909 CPP=
5910 fi
5911
5912 ## If not using gcc, and on Solaris, and no CPP specified, see if
5913 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5914 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5915 test x"$CPP" = x; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5917 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5918 if ${emacs_cv_sunpro_c+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923
5924 int
5925 main ()
5926 {
5927 #ifndef __SUNPRO_C
5928 fail;
5929 #endif
5930
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_c_try_link "$LINENO"; then :
5936 emacs_cv_sunpro_c=yes
5937 else
5938 emacs_cv_sunpro_c=no
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext \
5941 conftest$ac_exeext conftest.$ac_ext
5942 fi
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5945 $as_echo "$emacs_cv_sunpro_c" >&6; }
5946
5947 if test x"$emacs_cv_sunpro_c" = xyes; then
5948 NON_GNU_CPP="$CC -E -Xs"
5949 fi
5950 fi
5951
5952 #### Some systems specify a CPP to use unless we are using GCC.
5953 #### Now that we know whether we are using GCC, we can decide whether
5954 #### to use that one.
5955 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5956 then
5957 CPP="$NON_GNU_CPP"
5958 fi
5959
5960 #### Some systems specify a CC to use unless we are using GCC.
5961 #### Now that we know whether we are using GCC, we can decide whether
5962 #### to use that one.
5963 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5964 test x$cc_specified != xyes
5965 then
5966 CC="$NON_GNU_CC"
5967 fi
5968
5969 if test x$GCC = xyes; then
5970 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5971 else
5972 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5973 fi
5974
5975 ### Use -Wno-pointer-sign if the compiler supports it
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5977 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5978 SAVE_CFLAGS="$CFLAGS"
5979 CFLAGS="$CFLAGS -Wno-pointer-sign"
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982
5983 int
5984 main ()
5985 {
5986
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992 has_option=yes
5993 else
5994 has_option=no
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 if test $has_option = yes; then
5998 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6001 $as_echo "$has_option" >&6; }
6002 CFLAGS="$SAVE_CFLAGS"
6003 unset has_option
6004 unset SAVE_CFLAGS
6005
6006 ### Use -Wdeclaration-after-statement if the compiler supports it
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6008 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6009 SAVE_CFLAGS="$CFLAGS"
6010 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013
6014 int
6015 main ()
6016 {
6017
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 has_option=yes
6024 else
6025 has_option=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 if test $has_option = yes; then
6029 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6032 $as_echo "$has_option" >&6; }
6033 CFLAGS="$SAVE_CFLAGS"
6034 unset has_option
6035 unset SAVE_CFLAGS
6036
6037 ### Use -Wold-style-definition if the compiler supports it
6038 # This can be removed when conversion to standard C is finished.
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6040 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6041 SAVE_CFLAGS="$CFLAGS"
6042 CFLAGS="$CFLAGS -Wold-style-definition"
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045
6046 int
6047 main ()
6048 {
6049
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 if ac_fn_c_try_compile "$LINENO"; then :
6055 has_option=yes
6056 else
6057 has_option=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 if test $has_option = yes; then
6061 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6064 $as_echo "$has_option" >&6; }
6065 CFLAGS="$SAVE_CFLAGS"
6066 unset has_option
6067 unset SAVE_CFLAGS
6068
6069 ### Use -Wimplicit-function-declaration if the compiler supports it
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6071 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6072 SAVE_CFLAGS="$CFLAGS"
6073 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076
6077 int
6078 main ()
6079 {
6080
6081 ;
6082 return 0;
6083 }
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 has_option=yes
6087 else
6088 has_option=no
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 if test $has_option = yes; then
6092 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6095 $as_echo "$has_option" >&6; }
6096 CFLAGS="$SAVE_CFLAGS"
6097 unset has_option
6098 unset SAVE_CFLAGS
6099
6100
6101
6102
6103 #### Some other nice autoconf tests.
6104
6105 ac_ext=c
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6111 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6112 # On Suns, sometimes $CPP names a directory.
6113 if test -n "$CPP" && test -d "$CPP"; then
6114 CPP=
6115 fi
6116 if test -z "$CPP"; then
6117 if ${ac_cv_prog_CPP+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 # Double quotes because CPP needs to be expanded
6121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6122 do
6123 ac_preproc_ok=false
6124 for ac_c_preproc_warn_flag in '' yes
6125 do
6126 # Use a header file that comes with gcc, so configuring glibc
6127 # with a fresh cross-compiler works.
6128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129 # <limits.h> exists even on freestanding compilers.
6130 # On the NeXT, cc -E runs the code through the compiler's parser,
6131 # not just through cpp. "Syntax error" is here to catch this case.
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #ifdef __STDC__
6135 # include <limits.h>
6136 #else
6137 # include <assert.h>
6138 #endif
6139 Syntax error
6140 _ACEOF
6141 if ac_fn_c_try_cpp "$LINENO"; then :
6142
6143 else
6144 # Broken: fails on valid input.
6145 continue
6146 fi
6147 rm -f conftest.err conftest.i conftest.$ac_ext
6148
6149 # OK, works on sane cases. Now check whether nonexistent headers
6150 # can be detected and how.
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <ac_nonexistent.h>
6154 _ACEOF
6155 if ac_fn_c_try_cpp "$LINENO"; then :
6156 # Broken: success on invalid input.
6157 continue
6158 else
6159 # Passes both tests.
6160 ac_preproc_ok=:
6161 break
6162 fi
6163 rm -f conftest.err conftest.i conftest.$ac_ext
6164
6165 done
6166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6167 rm -f conftest.i conftest.err conftest.$ac_ext
6168 if $ac_preproc_ok; then :
6169 break
6170 fi
6171
6172 done
6173 ac_cv_prog_CPP=$CPP
6174
6175 fi
6176 CPP=$ac_cv_prog_CPP
6177 else
6178 ac_cv_prog_CPP=$CPP
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6181 $as_echo "$CPP" >&6; }
6182 ac_preproc_ok=false
6183 for ac_c_preproc_warn_flag in '' yes
6184 do
6185 # Use a header file that comes with gcc, so configuring glibc
6186 # with a fresh cross-compiler works.
6187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6188 # <limits.h> exists even on freestanding compilers.
6189 # On the NeXT, cc -E runs the code through the compiler's parser,
6190 # not just through cpp. "Syntax error" is here to catch this case.
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #ifdef __STDC__
6194 # include <limits.h>
6195 #else
6196 # include <assert.h>
6197 #endif
6198 Syntax error
6199 _ACEOF
6200 if ac_fn_c_try_cpp "$LINENO"; then :
6201
6202 else
6203 # Broken: fails on valid input.
6204 continue
6205 fi
6206 rm -f conftest.err conftest.i conftest.$ac_ext
6207
6208 # OK, works on sane cases. Now check whether nonexistent headers
6209 # can be detected and how.
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <ac_nonexistent.h>
6213 _ACEOF
6214 if ac_fn_c_try_cpp "$LINENO"; then :
6215 # Broken: success on invalid input.
6216 continue
6217 else
6218 # Passes both tests.
6219 ac_preproc_ok=:
6220 break
6221 fi
6222 rm -f conftest.err conftest.i conftest.$ac_ext
6223
6224 done
6225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6226 rm -f conftest.i conftest.err conftest.$ac_ext
6227 if $ac_preproc_ok; then :
6228
6229 else
6230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6232 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6233 See \`config.log' for more details" "$LINENO" 5; }
6234 fi
6235
6236 ac_ext=c
6237 ac_cpp='$CPP $CPPFLAGS'
6238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6241
6242
6243 if test "x$RANLIB" = x; then
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if ${ac_cv_prog_RANLIB+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$RANLIB"; then
6253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 RANLIB=$ac_cv_prog_RANLIB
6273 if test -n "$RANLIB"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6275 $as_echo "$RANLIB" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_RANLIB"; then
6284 ac_ct_RANLIB=$RANLIB
6285 # Extract the first word of "ranlib", so it can be a program name with args.
6286 set dummy ranlib; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$ac_ct_RANLIB"; then
6293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_RANLIB="ranlib"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6313 if test -n "$ac_ct_RANLIB"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6315 $as_echo "$ac_ct_RANLIB" >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321 if test "x$ac_ct_RANLIB" = x; then
6322 RANLIB=":"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330 RANLIB=$ac_ct_RANLIB
6331 fi
6332 else
6333 RANLIB="$ac_cv_prog_RANLIB"
6334 fi
6335
6336 fi
6337
6338 ## Although we're running on an amd64 kernel, we're actually compiling for
6339 ## the x86 architecture. The user should probably have provided an
6340 ## explicit --build to `configure', but if everything else than the kernel
6341 ## is running in i386 mode, we can help them out.
6342 if test "$machine" = "amdx86-64"; then
6343 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6344 if test "x$ac_cv_have_decl_i386" = xyes; then :
6345
6346 fi
6347
6348 if test "$ac_cv_have_decl_i386" = "yes"; then
6349 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6350 machine=intel386
6351 machfile="m/${machine}.h"
6352 fi
6353 fi
6354
6355 # Extract the first word of "install-info", so it can be a program name with args.
6356 set dummy install-info; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 case $INSTALL_INFO in
6363 [\\/]* | ?:[\\/]*)
6364 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6365 ;;
6366 *)
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382 ;;
6383 esac
6384 fi
6385 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6386 if test -n "$INSTALL_INFO"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6388 $as_echo "$INSTALL_INFO" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394
6395 # Extract the first word of "install-info", so it can be a program name with args.
6396 set dummy install-info; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 case $INSTALL_INFO in
6403 [\\/]* | ?:[\\/]*)
6404 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6405 ;;
6406 *)
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in /usr/sbin
6409 do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 ;;
6423 esac
6424 fi
6425 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6426 if test -n "$INSTALL_INFO"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6428 $as_echo "$INSTALL_INFO" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 # Extract the first word of "install-info", so it can be a program name with args.
6436 set dummy install-info; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 case $INSTALL_INFO in
6443 [\\/]* | ?:[\\/]*)
6444 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6445 ;;
6446 *)
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in /sbin
6449 do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6463 ;;
6464 esac
6465 fi
6466 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6467 if test -n "$INSTALL_INFO"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6469 $as_echo "$INSTALL_INFO" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 # Extract the first word of "gzip", so it can be a program name with args.
6477 set dummy gzip; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_path_GZIP_PROG+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 case $GZIP_PROG in
6484 [\\/]* | ?:[\\/]*)
6485 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6486 ;;
6487 *)
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 ;;
6504 esac
6505 fi
6506 GZIP_PROG=$ac_cv_path_GZIP_PROG
6507 if test -n "$GZIP_PROG"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6509 $as_echo "$GZIP_PROG" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516
6517
6518 ## Need makeinfo >= 4.6 (?) to build the manuals.
6519 # Extract the first word of "makeinfo", so it can be a program name with args.
6520 set dummy makeinfo; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_path_MAKEINFO+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 case $MAKEINFO in
6527 [\\/]* | ?:[\\/]*)
6528 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6529 ;;
6530 *)
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6547 ;;
6548 esac
6549 fi
6550 MAKEINFO=$ac_cv_path_MAKEINFO
6551 if test -n "$MAKEINFO"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6553 $as_echo "$MAKEINFO" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558
6559
6560 if test "$MAKEINFO" != "no" && \
6561 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
6562 MAKEINFO=no
6563 fi
6564
6565 ## Makeinfo is unusual. For a released Emacs, the manuals are
6566 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6567 ## therefore in the category of "special tools" not normally required, which
6568 ## configure does not have to check for (eg autoconf itself).
6569 ## In a Bazaar checkout on the other hand, the manuals are not included.
6570 ## So makeinfo is a requirement to build from Bazaar, and configure
6571 ## should test for it as it does for any other build requirement.
6572 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6573 ## with pre-built manuals, from a Bazaar checkout.
6574 HAVE_MAKEINFO=yes
6575
6576 if test "$MAKEINFO" = "no"; then
6577 MAKEINFO=makeinfo
6578 if test "x${with_makeinfo}" = "xno"; then
6579 HAVE_MAKEINFO=no
6580 elif test ! -e $srcdir/info/emacs; then
6581 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6582 source tree does not seem to have pre-built manuals in the \`info' directory.
6583 Either install a suitable version of makeinfo, or re-run configure
6584 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6585 fi
6586 fi
6587
6588
6589
6590 if test x$GCC = xyes; then
6591 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6592 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6593 else
6594 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6595 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6596 fi
6597
6598
6599 late_LDFLAGS=$LDFLAGS
6600 if test x$GCC = xyes; then
6601 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6602 else
6603 LDFLAGS="$LDFLAGS -znocombreloc"
6604 fi
6605
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6607 $as_echo_n "checking for -znocombreloc... " >&6; }
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610
6611 int
6612 main ()
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6621 $as_echo "yes" >&6; }
6622 else
6623 LDFLAGS=$late_LDFLAGS
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6626 fi
6627 rm -f core conftest.err conftest.$ac_objext \
6628 conftest$ac_exeext conftest.$ac_ext
6629
6630
6631 # The value of CPP is a quoted variable reference, so we need to do this
6632 # to get its actual value...
6633 CPP=`eval "echo $CPP"`
6634
6635
6636 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6637 case "$opsys" in
6638 your-opsys-here) CANNOT_DUMP=yes ;;
6639 esac
6640
6641 test "$CANNOT_DUMP" = "yes" && \
6642
6643 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6644
6645
6646
6647
6648
6649 UNEXEC_OBJ=unexelf.o
6650 case "$opsys" in
6651 # MSDOS uses unexcoff.o
6652 # MSWindows uses unexw32.o
6653 aix4-2)
6654 UNEXEC_OBJ=unexaix.o
6655 ;;
6656 cygwin)
6657 UNEXEC_OBJ=unexcw.o
6658 ;;
6659 darwin)
6660 UNEXEC_OBJ=unexmacosx.o
6661 ;;
6662 hpux10-20 | hpux11)
6663 UNEXEC_OBJ=unexhp9k800.o
6664 ;;
6665 sol2-10)
6666 # Use the Solaris dldump() function, called from unexsol.c, to dump
6667 # emacs, instead of the generic ELF dump code found in unexelf.c.
6668 # The resulting binary has a complete symbol table, and is better
6669 # for debugging and other observability tools (debuggers, pstack, etc).
6670 #
6671 # If you encounter a problem using dldump(), please consider sending
6672 # a message to the OpenSolaris tools-linking mailing list:
6673 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6674 #
6675 # It is likely that dldump() works with older Solaris too, but this has
6676 # not been tested, so for now this change is for Solaris 10 or newer.
6677 UNEXEC_OBJ=unexsol.o
6678 ;;
6679 esac
6680
6681 LD_SWITCH_SYSTEM=
6682 case "$opsys" in
6683 freebsd)
6684 ## Let `ld' find image libs and similar things in /usr/local/lib.
6685 ## The system compiler, GCC, has apparently been modified to not
6686 ## look there, contrary to what a stock GCC would do.
6687 LD_SWITCH_SYSTEM=-L/usr/local/lib
6688 ;;
6689
6690 gnu-linux)
6691 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6692 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6693 ;;
6694
6695 netbsd)
6696 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6697 ;;
6698
6699 openbsd)
6700 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6701 ## otherwise Emacs dumps core on elf systems.
6702 LD_SWITCH_SYSTEM="-Z"
6703 ;;
6704 esac
6705
6706
6707 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6708
6709 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6710 ## which has not been defined yet. When this was handled with cpp,
6711 ## it was expanded to null when configure sourced the s/*.h file.
6712 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6713 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6714 ## (or somesuch), but because it is supposed to go at the _front_
6715 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6716 ## Compare with the gnu-linux case below, which added to the end
6717 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6718 ## LD_SWITCH_SYSTEM_TEMACS.
6719 case "$opsys" in
6720 netbsd|openbsd)
6721 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6722 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6723 esac
6724
6725
6726 C_SWITCH_MACHINE=
6727 if test "$machine" = "alpha"; then
6728 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6729 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6730
6731 fi
6732
6733 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6734 ## With ELF, make sure that all common symbols get allocated to in the
6735 ## data section. Otherwise, the dump of temacs may miss variables in
6736 ## the shared library that have been initialized. For example, with
6737 ## GNU libc, __malloc_initialized would normally be resolved to the
6738 ## shared library's .bss section, which is fatal.
6739 if test "x$GCC" = "xyes"; then
6740 C_SWITCH_MACHINE="-fno-common"
6741 else
6742 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6743 fi
6744 else
6745 UNEXEC_OBJ=unexalpha.o
6746 fi
6747 fi
6748
6749
6750
6751
6752 C_SWITCH_SYSTEM=
6753 ## Some programs in src produce warnings saying certain subprograms
6754 ## are too complex and need a MAXMEM value greater than 2000 for
6755 ## additional optimization. --nils@exp-math.uni-essen.de
6756 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6757 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6758 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6759 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6760
6761
6762
6763 LIBS_SYSTEM=
6764 case "$opsys" in
6765 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6766 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6767
6768 freebsd) LIBS_SYSTEM="-lutil" ;;
6769
6770 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6771
6772 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6773
6774 ## Motif needs -lgen.
6775 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6776 esac
6777
6778
6779
6780 ### Make sure subsequent tests use flags consistent with the build flags.
6781
6782 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6783 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6784 else
6785 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6786 fi
6787
6788 # Check whether --enable-largefile was given.
6789 if test "${enable_largefile+set}" = set; then :
6790 enableval=$enable_largefile;
6791 fi
6792
6793 if test "$enable_largefile" != no; then
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6796 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6797 if ${ac_cv_sys_largefile_CC+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 ac_cv_sys_largefile_CC=no
6801 if test "$GCC" != yes; then
6802 ac_save_CC=$CC
6803 while :; do
6804 # IRIX 6.2 and later do not support large files by default,
6805 # so use the C compiler's -n32 option if that helps.
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <sys/types.h>
6809 /* Check that off_t can represent 2**63 - 1 correctly.
6810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6811 since some C++ compilers masquerading as C compilers
6812 incorrectly reject 9223372036854775807. */
6813 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6815 && LARGE_OFF_T % 2147483647 == 1)
6816 ? 1 : -1];
6817 int
6818 main ()
6819 {
6820
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 break
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext
6829 CC="$CC -n32"
6830 if ac_fn_c_try_compile "$LINENO"; then :
6831 ac_cv_sys_largefile_CC=' -n32'; break
6832 fi
6833 rm -f core conftest.err conftest.$ac_objext
6834 break
6835 done
6836 CC=$ac_save_CC
6837 rm -f conftest.$ac_ext
6838 fi
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6841 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6842 if test "$ac_cv_sys_largefile_CC" != no; then
6843 CC=$CC$ac_cv_sys_largefile_CC
6844 fi
6845
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6847 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6848 if ${ac_cv_sys_file_offset_bits+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 while :; do
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <sys/types.h>
6855 /* Check that off_t can represent 2**63 - 1 correctly.
6856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6857 since some C++ compilers masquerading as C compilers
6858 incorrectly reject 9223372036854775807. */
6859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6861 && LARGE_OFF_T % 2147483647 == 1)
6862 ? 1 : -1];
6863 int
6864 main ()
6865 {
6866
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872 ac_cv_sys_file_offset_bits=no; break
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 #define _FILE_OFFSET_BITS 64
6878 #include <sys/types.h>
6879 /* Check that off_t can represent 2**63 - 1 correctly.
6880 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6881 since some C++ compilers masquerading as C compilers
6882 incorrectly reject 9223372036854775807. */
6883 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6884 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6885 && LARGE_OFF_T % 2147483647 == 1)
6886 ? 1 : -1];
6887 int
6888 main ()
6889 {
6890
6891 ;
6892 return 0;
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_compile "$LINENO"; then :
6896 ac_cv_sys_file_offset_bits=64; break
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 ac_cv_sys_file_offset_bits=unknown
6900 break
6901 done
6902 fi
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6904 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6905 case $ac_cv_sys_file_offset_bits in #(
6906 no | unknown) ;;
6907 *)
6908 cat >>confdefs.h <<_ACEOF
6909 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6910 _ACEOF
6911 ;;
6912 esac
6913 rm -rf conftest*
6914 if test $ac_cv_sys_file_offset_bits = unknown; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6916 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6917 if ${ac_cv_sys_large_files+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 while :; do
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923 #include <sys/types.h>
6924 /* Check that off_t can represent 2**63 - 1 correctly.
6925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6926 since some C++ compilers masquerading as C compilers
6927 incorrectly reject 9223372036854775807. */
6928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6930 && LARGE_OFF_T % 2147483647 == 1)
6931 ? 1 : -1];
6932 int
6933 main ()
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 ac_cv_sys_large_files=no; break
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 #define _LARGE_FILES 1
6947 #include <sys/types.h>
6948 /* Check that off_t can represent 2**63 - 1 correctly.
6949 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6950 since some C++ compilers masquerading as C compilers
6951 incorrectly reject 9223372036854775807. */
6952 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6953 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6954 && LARGE_OFF_T % 2147483647 == 1)
6955 ? 1 : -1];
6956 int
6957 main ()
6958 {
6959
6960 ;
6961 return 0;
6962 }
6963 _ACEOF
6964 if ac_fn_c_try_compile "$LINENO"; then :
6965 ac_cv_sys_large_files=1; break
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 ac_cv_sys_large_files=unknown
6969 break
6970 done
6971 fi
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6973 $as_echo "$ac_cv_sys_large_files" >&6; }
6974 case $ac_cv_sys_large_files in #(
6975 no | unknown) ;;
6976 *)
6977 cat >>confdefs.h <<_ACEOF
6978 #define _LARGE_FILES $ac_cv_sys_large_files
6979 _ACEOF
6980 ;;
6981 esac
6982 rm -rf conftest*
6983 fi
6984 fi
6985
6986
6987
6988 ## If user specified a crt-dir, use that unconditionally.
6989 if test "X$CRT_DIR" = "X"; then
6990
6991 case "$canonical" in
6992 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6993 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6994 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6995 ## For anything else (eg /usr/lib32), it is up the user to specify
6996 ## the location (bug#5655).
6997 ## Test for crtn.o, not just the directory, because sometimes the
6998 ## directory exists but does not have the relevant files (bug#1287).
6999 ## FIXME better to test for binary compatibility somehow.
7000 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7001 ;;
7002
7003 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7004 esac
7005
7006 case "$opsys" in
7007 hpux10-20) CRT_DIR=/lib ;;
7008 esac
7009
7010 ## Default is /usr/lib.
7011 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7012
7013 else
7014
7015 ## Some platforms don't use any of these files, so it is not
7016 ## appropriate to put this test outside the if block.
7017 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7018 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7019
7020 fi
7021
7022
7023
7024 LIB_MATH=-lm
7025 LIB_STANDARD=
7026 START_FILES=
7027
7028 case $opsys in
7029 cygwin )
7030 LIB_MATH=
7031 START_FILES='pre-crt0.o'
7032 ;;
7033 darwin )
7034 ## Adding -lm confuses the dynamic linker, so omit it.
7035 LIB_MATH=
7036 START_FILES='pre-crt0.o'
7037 ;;
7038 freebsd )
7039 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7040 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7041 ;;
7042 gnu-linux | gnu-kfreebsd )
7043 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7044 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7045 ;;
7046 hpux10-20 | hpux11 )
7047 LIB_STANDARD=-lc
7048 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7049 ;;
7050 netbsd | openbsd )
7051 if test -f $CRT_DIR/crti.o; then
7052 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7053 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7054 else
7055 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7056 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7057 fi
7058 ;;
7059 esac
7060
7061
7062
7063
7064
7065
7066
7067 if test "${with_sound}" != "no"; then
7068 # Sound support for GNU/Linux and the free BSDs.
7069 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7070 do :
7071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7072 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7074 cat >>confdefs.h <<_ACEOF
7075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7076 _ACEOF
7077 have_sound_header=yes
7078 fi
7079
7080 done
7081
7082 # Emulation library used on NetBSD.
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7084 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7085 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 ac_check_lib_save_LIBS=$LIBS
7089 LIBS="-lossaudio $LIBS"
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092
7093 /* Override any GCC internal prototype to avoid an error.
7094 Use char because int might match the return type of a GCC
7095 builtin and then its argument prototype would still apply. */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 char _oss_ioctl ();
7100 int
7101 main ()
7102 {
7103 return _oss_ioctl ();
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 if ac_fn_c_try_link "$LINENO"; then :
7109 ac_cv_lib_ossaudio__oss_ioctl=yes
7110 else
7111 ac_cv_lib_ossaudio__oss_ioctl=no
7112 fi
7113 rm -f core conftest.err conftest.$ac_objext \
7114 conftest$ac_exeext conftest.$ac_ext
7115 LIBS=$ac_check_lib_save_LIBS
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7118 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7119 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7120 LIBSOUND=-lossaudio
7121 else
7122 LIBSOUND=
7123 fi
7124
7125
7126
7127 ALSA_REQUIRED=1.0.0
7128 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7129
7130 succeeded=no
7131
7132 # Extract the first word of "pkg-config", so it can be a program name with args.
7133 set dummy pkg-config; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 case $PKG_CONFIG in
7140 [\\/]* | ?:[\\/]*)
7141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7142 ;;
7143 *)
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7160 ;;
7161 esac
7162 fi
7163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7164 if test -n "$PKG_CONFIG"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7166 $as_echo "$PKG_CONFIG" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172
7173
7174 if test "$PKG_CONFIG" = "no" ; then
7175 HAVE_ALSA=no
7176 else
7177 PKG_CONFIG_MIN_VERSION=0.9.0
7178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7180 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7181
7182 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7184 $as_echo "yes" >&6; }
7185 succeeded=yes
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7188 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7189 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7191 $as_echo "$ALSA_CFLAGS" >&6; }
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7194 $as_echo_n "checking ALSA_LIBS... " >&6; }
7195 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7197 $as_echo "$ALSA_LIBS" >&6; }
7198 else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 ALSA_CFLAGS=""
7202 ALSA_LIBS=""
7203 ## If we have a custom action on failure, don't print errors, but
7204 ## do set a variable so people can do so.
7205 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7206
7207 fi
7208
7209
7210
7211 else
7212 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7213 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7214 fi
7215 fi
7216
7217 if test $succeeded = yes; then
7218 HAVE_ALSA=yes
7219 else
7220 HAVE_ALSA=no
7221 fi
7222
7223 if test $HAVE_ALSA = yes; then
7224 SAVE_CFLAGS="$CFLAGS"
7225 SAVE_LDFLAGS="$LDFLAGS"
7226 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7227 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <asoundlib.h>
7231 int
7232 main ()
7233 {
7234 snd_lib_error_set_handler (0);
7235 ;
7236 return 0;
7237 }
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 emacs_alsa_normal=yes
7241 else
7242 emacs_alsa_normal=no
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 if test "$emacs_alsa_normal" != yes; then
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #include <alsa/asoundlib.h>
7249 int
7250 main ()
7251 {
7252 snd_lib_error_set_handler (0);
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_c_try_compile "$LINENO"; then :
7258 emacs_alsa_subdir=yes
7259 else
7260 emacs_alsa_subdir=no
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 if test "$emacs_alsa_subdir" != yes; then
7264 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7265 fi
7266 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7267 fi
7268
7269 CFLAGS="$SAVE_CFLAGS"
7270 LDFLAGS="$SAVE_LDFLAGS"
7271 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7272 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7273
7274 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7275
7276 fi
7277
7278 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7279 case "$opsys" in
7280 gnu-linux|freebsd|netbsd)
7281
7282 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7283
7284 ;;
7285 esac
7286 fi
7287
7288
7289 fi
7290
7291 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7292 linux/version.h sys/systeminfo.h limits.h \
7293 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7294 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7295 sys/utsname.h pwd.h utmp.h dirent.h util.h
7296 do :
7297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7300 cat >>confdefs.h <<_ACEOF
7301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7310 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 #include <sys/personality.h>
7314 int
7315 main ()
7316 {
7317 personality (PER_LINUX32)
7318 ;
7319 return 0;
7320 }
7321 _ACEOF
7322 if ac_fn_c_try_compile "$LINENO"; then :
7323 emacs_cv_personality_linux32=yes
7324 else
7325 emacs_cv_personality_linux32=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7329 $as_echo "$emacs_cv_personality_linux32" >&6; }
7330
7331 if test $emacs_cv_personality_linux32 = yes; then
7332
7333 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7334
7335 fi
7336
7337 for ac_header in term.h
7338 do :
7339 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7340 if test "x$ac_cv_header_term_h" = xyes; then :
7341 cat >>confdefs.h <<_ACEOF
7342 #define HAVE_TERM_H 1
7343 _ACEOF
7344
7345 fi
7346
7347 done
7348
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7350 $as_echo_n "checking for ANSI C header files... " >&6; }
7351 if ${ac_cv_header_stdc+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 #include <stdlib.h>
7357 #include <stdarg.h>
7358 #include <string.h>
7359 #include <float.h>
7360
7361 int
7362 main ()
7363 {
7364
7365 ;
7366 return 0;
7367 }
7368 _ACEOF
7369 if ac_fn_c_try_compile "$LINENO"; then :
7370 ac_cv_header_stdc=yes
7371 else
7372 ac_cv_header_stdc=no
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375
7376 if test $ac_cv_header_stdc = yes; then
7377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 #include <string.h>
7381
7382 _ACEOF
7383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384 $EGREP "memchr" >/dev/null 2>&1; then :
7385
7386 else
7387 ac_cv_header_stdc=no
7388 fi
7389 rm -f conftest*
7390
7391 fi
7392
7393 if test $ac_cv_header_stdc = yes; then
7394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 #include <stdlib.h>
7398
7399 _ACEOF
7400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7401 $EGREP "free" >/dev/null 2>&1; then :
7402
7403 else
7404 ac_cv_header_stdc=no
7405 fi
7406 rm -f conftest*
7407
7408 fi
7409
7410 if test $ac_cv_header_stdc = yes; then
7411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7412 if test "$cross_compiling" = yes; then :
7413 :
7414 else
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #include <ctype.h>
7418 #include <stdlib.h>
7419 #if ((' ' & 0x0FF) == 0x020)
7420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7422 #else
7423 # define ISLOWER(c) \
7424 (('a' <= (c) && (c) <= 'i') \
7425 || ('j' <= (c) && (c) <= 'r') \
7426 || ('s' <= (c) && (c) <= 'z'))
7427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7428 #endif
7429
7430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7431 int
7432 main ()
7433 {
7434 int i;
7435 for (i = 0; i < 256; i++)
7436 if (XOR (islower (i), ISLOWER (i))
7437 || toupper (i) != TOUPPER (i))
7438 return 2;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_run "$LINENO"; then :
7443
7444 else
7445 ac_cv_header_stdc=no
7446 fi
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7448 conftest.$ac_objext conftest.beam conftest.$ac_ext
7449 fi
7450
7451 fi
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7454 $as_echo "$ac_cv_header_stdc" >&6; }
7455 if test $ac_cv_header_stdc = yes; then
7456
7457 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7458
7459 fi
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7462 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7463 if ${ac_cv_header_time+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 #include <sys/types.h>
7469 #include <sys/time.h>
7470 #include <time.h>
7471
7472 int
7473 main ()
7474 {
7475 if ((struct tm *) 0)
7476 return 0;
7477 ;
7478 return 0;
7479 }
7480 _ACEOF
7481 if ac_fn_c_try_compile "$LINENO"; then :
7482 ac_cv_header_time=yes
7483 else
7484 ac_cv_header_time=no
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7489 $as_echo "$ac_cv_header_time" >&6; }
7490 if test $ac_cv_header_time = yes; then
7491
7492 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7493
7494 fi
7495
7496 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7497 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7498 ac_have_decl=1
7499 else
7500 ac_have_decl=0
7501 fi
7502
7503 cat >>confdefs.h <<_ACEOF
7504 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7505 _ACEOF
7506
7507 if test $ac_cv_have_decl_sys_siglist != yes; then
7508 # For Tru64, at least:
7509 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7510 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7511 ac_have_decl=1
7512 else
7513 ac_have_decl=0
7514 fi
7515
7516 cat >>confdefs.h <<_ACEOF
7517 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7518 _ACEOF
7519
7520 if test $ac_cv_have_decl___sys_siglist = yes; then
7521
7522 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7523
7524 fi
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7527 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7528 if ${ac_cv_header_sys_wait_h+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #include <sys/types.h>
7534 #include <sys/wait.h>
7535 #ifndef WEXITSTATUS
7536 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7537 #endif
7538 #ifndef WIFEXITED
7539 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7540 #endif
7541
7542 int
7543 main ()
7544 {
7545 int s;
7546 wait (&s);
7547 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_c_try_compile "$LINENO"; then :
7553 ac_cv_header_sys_wait_h=yes
7554 else
7555 ac_cv_header_sys_wait_h=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7560 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7561 if test $ac_cv_header_sys_wait_h = yes; then
7562
7563 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7564
7565 fi
7566
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7569 $as_echo_n "checking for struct utimbuf... " >&6; }
7570 if ${emacs_cv_struct_utimbuf+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 #ifdef TIME_WITH_SYS_TIME
7576 #include <sys/time.h>
7577 #include <time.h>
7578 #else
7579 #ifdef HAVE_SYS_TIME_H
7580 #include <sys/time.h>
7581 #else
7582 #include <time.h>
7583 #endif
7584 #endif
7585 #ifdef HAVE_UTIME_H
7586 #include <utime.h>
7587 #endif
7588 int
7589 main ()
7590 {
7591 static struct utimbuf x; x.actime = x.modtime;
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 emacs_cv_struct_utimbuf=yes
7598 else
7599 emacs_cv_struct_utimbuf=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7604 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7605 if test $emacs_cv_struct_utimbuf = yes; then
7606
7607 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7608
7609 fi
7610
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7612 $as_echo_n "checking return type of signal handlers... " >&6; }
7613 if ${ac_cv_type_signal+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7618 #include <sys/types.h>
7619 #include <signal.h>
7620
7621 int
7622 main ()
7623 {
7624 return *(signal (0, 0)) (0) == 1;
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 ac_cv_type_signal=int
7631 else
7632 ac_cv_type_signal=void
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7637 $as_echo "$ac_cv_type_signal" >&6; }
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define RETSIGTYPE $ac_cv_type_signal
7641 _ACEOF
7642
7643
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7646 $as_echo_n "checking for speed_t... " >&6; }
7647 if ${emacs_cv_speed_t+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <termios.h>
7653 int
7654 main ()
7655 {
7656 speed_t x = 1;
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_compile "$LINENO"; then :
7662 emacs_cv_speed_t=yes
7663 else
7664 emacs_cv_speed_t=no
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7669 $as_echo "$emacs_cv_speed_t" >&6; }
7670 if test $emacs_cv_speed_t = yes; then
7671
7672 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7673
7674 fi
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7677 $as_echo_n "checking for struct timeval... " >&6; }
7678 if ${emacs_cv_struct_timeval+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #ifdef TIME_WITH_SYS_TIME
7684 #include <sys/time.h>
7685 #include <time.h>
7686 #else
7687 #ifdef HAVE_SYS_TIME_H
7688 #include <sys/time.h>
7689 #else
7690 #include <time.h>
7691 #endif
7692 #endif
7693 int
7694 main ()
7695 {
7696 static struct timeval x; x.tv_sec = x.tv_usec;
7697 ;
7698 return 0;
7699 }
7700 _ACEOF
7701 if ac_fn_c_try_compile "$LINENO"; then :
7702 emacs_cv_struct_timeval=yes
7703 else
7704 emacs_cv_struct_timeval=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7709 $as_echo "$emacs_cv_struct_timeval" >&6; }
7710 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7711 if test $emacs_cv_struct_timeval = yes; then
7712
7713 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7714
7715 fi
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7718 $as_echo_n "checking for struct exception... " >&6; }
7719 if ${emacs_cv_struct_exception+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 #include <math.h>
7725 int
7726 main ()
7727 {
7728 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_compile "$LINENO"; then :
7734 emacs_cv_struct_exception=yes
7735 else
7736 emacs_cv_struct_exception=no
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7741 $as_echo "$emacs_cv_struct_exception" >&6; }
7742 HAVE_EXCEPTION=$emacs_cv_struct_exception
7743 if test $emacs_cv_struct_exception != yes; then
7744
7745 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7746
7747 fi
7748
7749 for ac_header in sys/socket.h
7750 do :
7751 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7752 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7753 cat >>confdefs.h <<_ACEOF
7754 #define HAVE_SYS_SOCKET_H 1
7755 _ACEOF
7756
7757 fi
7758
7759 done
7760
7761 for ac_header in net/if.h
7762 do :
7763 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7764 #if HAVE_SYS_SOCKET_H
7765 #include <sys/socket.h>
7766 #endif
7767 "
7768 if test "x$ac_cv_header_net_if_h" = xyes; then :
7769 cat >>confdefs.h <<_ACEOF
7770 #define HAVE_NET_IF_H 1
7771 _ACEOF
7772
7773 fi
7774
7775 done
7776
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7779 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7780 if ${ac_cv_struct_tm+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <sys/types.h>
7786 #include <time.h>
7787
7788 int
7789 main ()
7790 {
7791 struct tm tm;
7792 int *p = &tm.tm_sec;
7793 return !p;
7794 ;
7795 return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"; then :
7799 ac_cv_struct_tm=time.h
7800 else
7801 ac_cv_struct_tm=sys/time.h
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7806 $as_echo "$ac_cv_struct_tm" >&6; }
7807 if test $ac_cv_struct_tm = sys/time.h; then
7808
7809 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7810
7811 fi
7812
7813 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7814 #include <$ac_cv_struct_tm>
7815
7816 "
7817 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7818
7819 cat >>confdefs.h <<_ACEOF
7820 #define HAVE_STRUCT_TM_TM_ZONE 1
7821 _ACEOF
7822
7823
7824 fi
7825
7826 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7827
7828 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7829
7830 else
7831 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7832 "
7833 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7834 ac_have_decl=1
7835 else
7836 ac_have_decl=0
7837 fi
7838
7839 cat >>confdefs.h <<_ACEOF
7840 #define HAVE_DECL_TZNAME $ac_have_decl
7841 _ACEOF
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7844 $as_echo_n "checking for tzname... " >&6; }
7845 if ${ac_cv_var_tzname+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <time.h>
7851 #if !HAVE_DECL_TZNAME
7852 extern char *tzname[];
7853 #endif
7854
7855 int
7856 main ()
7857 {
7858 return tzname[0][0];
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 ac_cv_var_tzname=yes
7865 else
7866 ac_cv_var_tzname=no
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7872 $as_echo "$ac_cv_var_tzname" >&6; }
7873 if test $ac_cv_var_tzname = yes; then
7874
7875 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7876
7877 fi
7878 fi
7879
7880 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7881 "
7882 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7883
7884 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7885
7886 fi
7887
7888 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7889 #if HAVE_SYS_SOCKET_H
7890 #include <sys/socket.h>
7891 #endif
7892 #if HAVE_NET_IF_H
7893 #include <net/if.h>
7894 #endif
7895 "
7896 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7897
7898 cat >>confdefs.h <<_ACEOF
7899 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7900 _ACEOF
7901
7902
7903 fi
7904 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7905 #if HAVE_SYS_SOCKET_H
7906 #include <sys/socket.h>
7907 #endif
7908 #if HAVE_NET_IF_H
7909 #include <net/if.h>
7910 #endif
7911 "
7912 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7913
7914 cat >>confdefs.h <<_ACEOF
7915 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7916 _ACEOF
7917
7918
7919 fi
7920 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7921 #if HAVE_SYS_SOCKET_H
7922 #include <sys/socket.h>
7923 #endif
7924 #if HAVE_NET_IF_H
7925 #include <net/if.h>
7926 #endif
7927 "
7928 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7932 _ACEOF
7933
7934
7935 fi
7936 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7937 #if HAVE_SYS_SOCKET_H
7938 #include <sys/socket.h>
7939 #endif
7940 #if HAVE_NET_IF_H
7941 #include <net/if.h>
7942 #endif
7943 "
7944 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7945
7946 cat >>confdefs.h <<_ACEOF
7947 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7948 _ACEOF
7949
7950
7951 fi
7952 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7953 #if HAVE_SYS_SOCKET_H
7954 #include <sys/socket.h>
7955 #endif
7956 #if HAVE_NET_IF_H
7957 #include <net/if.h>
7958 #endif
7959 "
7960 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7961
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7964 _ACEOF
7965
7966
7967 fi
7968
7969
7970
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7972 $as_echo_n "checking for function prototypes... " >&6; }
7973 if test "$ac_cv_prog_cc_c89" != no; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7975 $as_echo "yes" >&6; }
7976
7977 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7978
7979
7980 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7981
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 fi
7986
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7988 $as_echo_n "checking for working volatile... " >&6; }
7989 if ${ac_cv_c_volatile+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994
7995 int
7996 main ()
7997 {
7998
7999 volatile int x;
8000 int * volatile y = (int *) 0;
8001 return !x && !y;
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_compile "$LINENO"; then :
8007 ac_cv_c_volatile=yes
8008 else
8009 ac_cv_c_volatile=no
8010 fi
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8014 $as_echo "$ac_cv_c_volatile" >&6; }
8015 if test $ac_cv_c_volatile = no; then
8016
8017 $as_echo "#define volatile /**/" >>confdefs.h
8018
8019 fi
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8022 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8023 if ${ac_cv_c_const+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8028
8029 int
8030 main ()
8031 {
8032 /* FIXME: Include the comments suggested by Paul. */
8033 #ifndef __cplusplus
8034 /* Ultrix mips cc rejects this. */
8035 typedef int charset[2];
8036 const charset cs;
8037 /* SunOS 4.1.1 cc rejects this. */
8038 char const *const *pcpcc;
8039 char **ppc;
8040 /* NEC SVR4.0.2 mips cc rejects this. */
8041 struct point {int x, y;};
8042 static struct point const zero = {0,0};
8043 /* AIX XL C 1.02.0.0 rejects this.
8044 It does not let you subtract one const X* pointer from another in
8045 an arm of an if-expression whose if-part is not a constant
8046 expression */
8047 const char *g = "string";
8048 pcpcc = &g + (g ? g-g : 0);
8049 /* HPUX 7.0 cc rejects these. */
8050 ++pcpcc;
8051 ppc = (char**) pcpcc;
8052 pcpcc = (char const *const *) ppc;
8053 { /* SCO 3.2v4 cc rejects this. */
8054 char *t;
8055 char const *s = 0 ? (char *) 0 : (char const *) 0;
8056
8057 *t++ = 0;
8058 if (s) return 0;
8059 }
8060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8061 int x[] = {25, 17};
8062 const int *foo = &x[0];
8063 ++foo;
8064 }
8065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8066 typedef const int *iptr;
8067 iptr p = 0;
8068 ++p;
8069 }
8070 { /* AIX XL C 1.02.0.0 rejects this saying
8071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8072 struct s { int j; const int *ap[3]; };
8073 struct s *b; b->j = 5;
8074 }
8075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8076 const int foo = 10;
8077 if (!foo) return 0;
8078 }
8079 return !cs[0] && !zero.x;
8080 #endif
8081
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087 ac_cv_c_const=yes
8088 else
8089 ac_cv_c_const=no
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8094 $as_echo "$ac_cv_c_const" >&6; }
8095 if test $ac_cv_c_const = no; then
8096
8097 $as_echo "#define const /**/" >>confdefs.h
8098
8099 fi
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8102 $as_echo_n "checking for void * support... " >&6; }
8103 if ${emacs_cv_void_star+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108
8109 int
8110 main ()
8111 {
8112 void * foo;
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_compile "$LINENO"; then :
8118 emacs_cv_void_star=yes
8119 else
8120 emacs_cv_void_star=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8125 $as_echo "$emacs_cv_void_star" >&6; }
8126 if test $emacs_cv_void_star = yes; then
8127 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8128
8129 else
8130 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8131
8132 fi
8133
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8135 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8136 if ${ac_cv_c_bigendian+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 ac_cv_c_bigendian=unknown
8140 # See if we're dealing with a universal compiler.
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 #ifndef __APPLE_CC__
8144 not a universal capable compiler
8145 #endif
8146 typedef int dummy;
8147
8148 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"; then :
8150
8151 # Check for potential -arch flags. It is not universal unless
8152 # there are at least two -arch flags with different values.
8153 ac_arch=
8154 ac_prev=
8155 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8156 if test -n "$ac_prev"; then
8157 case $ac_word in
8158 i?86 | x86_64 | ppc | ppc64)
8159 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8160 ac_arch=$ac_word
8161 else
8162 ac_cv_c_bigendian=universal
8163 break
8164 fi
8165 ;;
8166 esac
8167 ac_prev=
8168 elif test "x$ac_word" = "x-arch"; then
8169 ac_prev=arch
8170 fi
8171 done
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 if test $ac_cv_c_bigendian = unknown; then
8175 # See if sys/param.h defines the BYTE_ORDER macro.
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178 #include <sys/types.h>
8179 #include <sys/param.h>
8180
8181 int
8182 main ()
8183 {
8184 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8185 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8186 && LITTLE_ENDIAN)
8187 bogus endian macros
8188 #endif
8189
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_compile "$LINENO"; then :
8195 # It does; now see whether it defined to BIG_ENDIAN or not.
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 #include <sys/types.h>
8199 #include <sys/param.h>
8200
8201 int
8202 main ()
8203 {
8204 #if BYTE_ORDER != BIG_ENDIAN
8205 not big endian
8206 #endif
8207
8208 ;
8209 return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 ac_cv_c_bigendian=yes
8214 else
8215 ac_cv_c_bigendian=no
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 if test $ac_cv_c_bigendian = unknown; then
8222 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #include <limits.h>
8226
8227 int
8228 main ()
8229 {
8230 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8231 bogus endian macros
8232 #endif
8233
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 if ac_fn_c_try_compile "$LINENO"; then :
8239 # It does; now see whether it defined to _BIG_ENDIAN or not.
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 #include <limits.h>
8243
8244 int
8245 main ()
8246 {
8247 #ifndef _BIG_ENDIAN
8248 not big endian
8249 #endif
8250
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 if ac_fn_c_try_compile "$LINENO"; then :
8256 ac_cv_c_bigendian=yes
8257 else
8258 ac_cv_c_bigendian=no
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 fi
8264 if test $ac_cv_c_bigendian = unknown; then
8265 # Compile a test program.
8266 if test "$cross_compiling" = yes; then :
8267 # Try to guess by grepping values from an object file.
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 short int ascii_mm[] =
8271 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8272 short int ascii_ii[] =
8273 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8274 int use_ascii (int i) {
8275 return ascii_mm[i] + ascii_ii[i];
8276 }
8277 short int ebcdic_ii[] =
8278 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8279 short int ebcdic_mm[] =
8280 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8281 int use_ebcdic (int i) {
8282 return ebcdic_mm[i] + ebcdic_ii[i];
8283 }
8284 extern int foo;
8285
8286 int
8287 main ()
8288 {
8289 return use_ascii (foo) == use_ebcdic (foo);
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 if ac_fn_c_try_compile "$LINENO"; then :
8295 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8296 ac_cv_c_bigendian=yes
8297 fi
8298 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8299 if test "$ac_cv_c_bigendian" = unknown; then
8300 ac_cv_c_bigendian=no
8301 else
8302 # finding both strings is unlikely to happen, but who knows?
8303 ac_cv_c_bigendian=unknown
8304 fi
8305 fi
8306 fi
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 else
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 int
8313 main ()
8314 {
8315
8316 /* Are we little or big endian? From Harbison&Steele. */
8317 union
8318 {
8319 long int l;
8320 char c[sizeof (long int)];
8321 } u;
8322 u.l = 1;
8323 return u.c[sizeof (long int) - 1] == 1;
8324
8325 ;
8326 return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_run "$LINENO"; then :
8330 ac_cv_c_bigendian=no
8331 else
8332 ac_cv_c_bigendian=yes
8333 fi
8334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8335 conftest.$ac_objext conftest.beam conftest.$ac_ext
8336 fi
8337
8338 fi
8339 fi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8341 $as_echo "$ac_cv_c_bigendian" >&6; }
8342 case $ac_cv_c_bigendian in #(
8343 yes)
8344 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8345 ;; #(
8346 no)
8347 ;; #(
8348 universal)
8349
8350 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8351
8352 ;; #(
8353 *)
8354 as_fn_error $? "unknown endianness
8355 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8356 esac
8357
8358
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8360 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8361 if ${emacs_cv_attribute_aligned+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 char __attribute__ ((__aligned__ (1 << 3))) c;
8367 int
8368 main ()
8369 {
8370
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_compile "$LINENO"; then :
8376 emacs_cv_attribute_aligned=yes
8377 else
8378 emacs_cv_attribute_aligned=no
8379 fi
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381 fi
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8383 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8384 if test $emacs_cv_attribute_aligned = yes; then
8385
8386 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8387
8388 fi
8389
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8391 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8392 set x ${MAKE-make}
8393 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8394 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 cat >conftest.make <<\_ACEOF
8398 SHELL = /bin/sh
8399 all:
8400 @echo '@@@%%%=$(MAKE)=@@@%%%'
8401 _ACEOF
8402 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8403 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8404 *@@@%%%=?*=@@@%%%*)
8405 eval ac_cv_prog_make_${ac_make}_set=yes;;
8406 *)
8407 eval ac_cv_prog_make_${ac_make}_set=no;;
8408 esac
8409 rm -f conftest.make
8410 fi
8411 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8413 $as_echo "yes" >&6; }
8414 SET_MAKE=
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 SET_MAKE="MAKE=${MAKE-make}"
8419 fi
8420
8421
8422 DEPFLAGS=
8423 MKDEPDIR=":"
8424 deps_frag=deps.mk
8425 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8427 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8428 HAVE_GNU_MAKE=no
8429 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8430 if test "x$testval" != x; then
8431 HAVE_GNU_MAKE=yes
8432 else
8433 ac_enable_autodepend=no
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8436 $as_echo "$HAVE_GNU_MAKE" >&6; }
8437 if test $HAVE_GNU_MAKE = yes; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8439 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8440 SAVE_CFLAGS="$CFLAGS"
8441 CFLAGS="$CFLAGS -MMD -MF deps.d"
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444
8445 int
8446 main ()
8447 {
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454
8455 else
8456 ac_enable_autodepend=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 CFLAGS="$SAVE_CFLAGS"
8460 test -f deps.d || ac_enable_autodepend=no
8461 rm -rf deps.d
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8463 $as_echo "$ac_enable_autodepend" >&6; }
8464 fi
8465 if test $ac_enable_autodepend = yes; then
8466 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8467 ## In parallel builds, another make might create depdir between
8468 ## the first test and mkdir, so stick another test on the end.
8469 ## Or use mkinstalldirs? mkdir -p is not portable.
8470 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8471 deps_frag=autodeps.mk
8472 fi
8473 fi
8474 deps_frag=$srcdir/src/$deps_frag
8475
8476
8477
8478
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8481 $as_echo_n "checking for long file names... " >&6; }
8482 if ${ac_cv_sys_long_file_names+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 ac_cv_sys_long_file_names=yes
8486 # Test for long file names in all the places we know might matter:
8487 # . the current directory, where building will happen
8488 # $prefix/lib where we will be installing things
8489 # $exec_prefix/lib likewise
8490 # $TMPDIR if set, where it might want to write temporary files
8491 # /tmp where it might want to write temporary files
8492 # /var/tmp likewise
8493 # /usr/tmp likewise
8494 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8495 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8496 # in the usual case where exec_prefix is '${prefix}'.
8497 case $ac_dir in #(
8498 . | /* | ?:[\\/]*) ;; #(
8499 *) continue;;
8500 esac
8501 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8502 ac_xdir=$ac_dir/cf$$
8503 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8504 ac_tf1=$ac_xdir/conftest9012345
8505 ac_tf2=$ac_xdir/conftest9012346
8506 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8507 ac_cv_sys_long_file_names=no
8508 rm -f -r "$ac_xdir" 2>/dev/null
8509 test $ac_cv_sys_long_file_names = no && break
8510 done
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8513 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8514 if test $ac_cv_sys_long_file_names = yes; then
8515
8516 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8517
8518 fi
8519
8520
8521 #### Choose a window system.
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8524 $as_echo_n "checking for X... " >&6; }
8525
8526
8527 # Check whether --with-x was given.
8528 if test "${with_x+set}" = set; then :
8529 withval=$with_x;
8530 fi
8531
8532 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8533 if test "x$with_x" = xno; then
8534 # The user explicitly disabled X.
8535 have_x=disabled
8536 else
8537 case $x_includes,$x_libraries in #(
8538 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8539 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 # One or both of the vars are not set, and there is no cached value.
8543 ac_x_includes=no ac_x_libraries=no
8544 rm -f -r conftest.dir
8545 if mkdir conftest.dir; then
8546 cd conftest.dir
8547 cat >Imakefile <<'_ACEOF'
8548 incroot:
8549 @echo incroot='${INCROOT}'
8550 usrlibdir:
8551 @echo usrlibdir='${USRLIBDIR}'
8552 libdir:
8553 @echo libdir='${LIBDIR}'
8554 _ACEOF
8555 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8556 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8557 for ac_var in incroot usrlibdir libdir; do
8558 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8559 done
8560 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8561 for ac_extension in a so sl dylib la dll; do
8562 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8563 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8564 ac_im_usrlibdir=$ac_im_libdir; break
8565 fi
8566 done
8567 # Screen out bogus values from the imake configuration. They are
8568 # bogus both because they are the default anyway, and because
8569 # using them would break gcc on systems where it needs fixed includes.
8570 case $ac_im_incroot in
8571 /usr/include) ac_x_includes= ;;
8572 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8573 esac
8574 case $ac_im_usrlibdir in
8575 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8576 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8577 esac
8578 fi
8579 cd ..
8580 rm -f -r conftest.dir
8581 fi
8582
8583 # Standard set of common directories for X headers.
8584 # Check X11 before X11Rn because it is often a symlink to the current release.
8585 ac_x_header_dirs='
8586 /usr/X11/include
8587 /usr/X11R7/include
8588 /usr/X11R6/include
8589 /usr/X11R5/include
8590 /usr/X11R4/include
8591
8592 /usr/include/X11
8593 /usr/include/X11R7
8594 /usr/include/X11R6
8595 /usr/include/X11R5
8596 /usr/include/X11R4
8597
8598 /usr/local/X11/include
8599 /usr/local/X11R7/include
8600 /usr/local/X11R6/include
8601 /usr/local/X11R5/include
8602 /usr/local/X11R4/include
8603
8604 /usr/local/include/X11
8605 /usr/local/include/X11R7
8606 /usr/local/include/X11R6
8607 /usr/local/include/X11R5
8608 /usr/local/include/X11R4
8609
8610 /usr/X386/include
8611 /usr/x386/include
8612 /usr/XFree86/include/X11
8613
8614 /usr/include
8615 /usr/local/include
8616 /usr/unsupported/include
8617 /usr/athena/include
8618 /usr/local/x11r5/include
8619 /usr/lpp/Xamples/include
8620
8621 /usr/openwin/include
8622 /usr/openwin/share/include'
8623
8624 if test "$ac_x_includes" = no; then
8625 # Guess where to find include files, by looking for Xlib.h.
8626 # First, try using that file with no special directory specified.
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8629 #include <X11/Xlib.h>
8630 _ACEOF
8631 if ac_fn_c_try_cpp "$LINENO"; then :
8632 # We can compile using X headers with no special include directory.
8633 ac_x_includes=
8634 else
8635 for ac_dir in $ac_x_header_dirs; do
8636 if test -r "$ac_dir/X11/Xlib.h"; then
8637 ac_x_includes=$ac_dir
8638 break
8639 fi
8640 done
8641 fi
8642 rm -f conftest.err conftest.i conftest.$ac_ext
8643 fi # $ac_x_includes = no
8644
8645 if test "$ac_x_libraries" = no; then
8646 # Check for the libraries.
8647 # See if we find them without any special options.
8648 # Don't add to $LIBS permanently.
8649 ac_save_LIBS=$LIBS
8650 LIBS="-lX11 $LIBS"
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <X11/Xlib.h>
8654 int
8655 main ()
8656 {
8657 XrmInitialize ()
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663 LIBS=$ac_save_LIBS
8664 # We can link X programs with no special library path.
8665 ac_x_libraries=
8666 else
8667 LIBS=$ac_save_LIBS
8668 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8669 do
8670 # Don't even attempt the hair of trying to link an X program!
8671 for ac_extension in a so sl dylib la dll; do
8672 if test -r "$ac_dir/libX11.$ac_extension"; then
8673 ac_x_libraries=$ac_dir
8674 break 2
8675 fi
8676 done
8677 done
8678 fi
8679 rm -f core conftest.err conftest.$ac_objext \
8680 conftest$ac_exeext conftest.$ac_ext
8681 fi # $ac_x_libraries = no
8682
8683 case $ac_x_includes,$ac_x_libraries in #(
8684 no,* | *,no | *\'*)
8685 # Didn't find X, or a directory has "'" in its name.
8686 ac_cv_have_x="have_x=no";; #(
8687 *)
8688 # Record where we found X for the cache.
8689 ac_cv_have_x="have_x=yes\
8690 ac_x_includes='$ac_x_includes'\
8691 ac_x_libraries='$ac_x_libraries'"
8692 esac
8693 fi
8694 ;; #(
8695 *) have_x=yes;;
8696 esac
8697 eval "$ac_cv_have_x"
8698 fi # $with_x != no
8699
8700 if test "$have_x" != yes; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8702 $as_echo "$have_x" >&6; }
8703 no_x=yes
8704 else
8705 # If each of the values was on the command line, it overrides each guess.
8706 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8707 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8708 # Update the cache value to reflect the command line values.
8709 ac_cv_have_x="have_x=yes\
8710 ac_x_includes='$x_includes'\
8711 ac_x_libraries='$x_libraries'"
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8713 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8714 fi
8715
8716 if test "$no_x" = yes; then
8717 window_system=none
8718 else
8719 window_system=x11
8720 fi
8721
8722 ## Workaround for bug in autoconf <= 2.62.
8723 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8724 ## No need to do anything special for these standard directories.
8725 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8726
8727 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8728
8729 fi
8730
8731 LD_SWITCH_X_SITE_AUX=
8732 LD_SWITCH_X_SITE_AUX_RPATH=
8733 if test "${x_libraries}" != NONE; then
8734 if test -n "${x_libraries}"; then
8735 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8736 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8737 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8738 fi
8739 x_default_search_path=""
8740 x_search_path=${x_libraries}
8741 if test -z "${x_search_path}"; then
8742 x_search_path=/usr/lib
8743 fi
8744 for x_library in `echo ${x_search_path}: | \
8745 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8746 x_search_path="\
8747 ${x_library}/X11/%L/%T/%N%C%S:\
8748 ${x_library}/X11/%l/%T/%N%C%S:\
8749 ${x_library}/X11/%T/%N%C%S:\
8750 ${x_library}/X11/%L/%T/%N%S:\
8751 ${x_library}/X11/%l/%T/%N%S:\
8752 ${x_library}/X11/%T/%N%S"
8753 if test x"${x_default_search_path}" = x; then
8754 x_default_search_path=${x_search_path}
8755 else
8756 x_default_search_path="${x_search_path}:${x_default_search_path}"
8757 fi
8758 done
8759 fi
8760
8761
8762
8763 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8764 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8765 fi
8766
8767 if test x"${x_includes}" = x; then
8768 bitmapdir=/usr/include/X11/bitmaps
8769 else
8770 # accumulate include directories that have X11 bitmap subdirectories
8771 bmd_acc="dummyval"
8772 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8773 if test -d "${bmd}/X11/bitmaps"; then
8774 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8775 fi
8776 if test -d "${bmd}/bitmaps"; then
8777 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8778 fi
8779 done
8780 if test ${bmd_acc} != "dummyval"; then
8781 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8782 fi
8783 fi
8784
8785 HAVE_NS=no
8786 NS_IMPL_COCOA=no
8787 NS_IMPL_GNUSTEP=no
8788 tmp_CPPFLAGS="$CPPFLAGS"
8789 tmp_CFLAGS="$CFLAGS"
8790 CPPFLAGS="$CPPFLAGS -x objective-c"
8791 CFLAGS="$CFLAGS -x objective-c"
8792 TEMACS_LDFLAGS2="\${LDFLAGS}"
8793 if test "${with_ns}" != no; then
8794 if test "${opsys}" = darwin; then
8795 NS_IMPL_COCOA=yes
8796 ns_appdir=`pwd`/nextstep/Emacs.app
8797 ns_appbindir=${ns_appdir}/Contents/MacOS/
8798 ns_appresdir=${ns_appdir}/Contents/Resources
8799 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8800 elif test -f $GNUSTEP_CONFIG_FILE; then
8801 NS_IMPL_GNUSTEP=yes
8802 ns_appdir=`pwd`/nextstep/Emacs.app
8803 ns_appbindir=${ns_appdir}/
8804 ns_appresdir=${ns_appdir}/Resources
8805 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8806 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8807 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8808 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8809 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8810 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8811 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8812 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8813 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8814 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8815 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8816 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8817 LIB_STANDARD=
8818 START_FILES=
8819 TEMACS_LDFLAGS2=
8820 fi
8821 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8822 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8823 HAVE_NS=yes
8824 else
8825 as_fn_error $? "\`--with-ns' was specified, but the include
8826 files are missing or cannot be compiled." "$LINENO" 5
8827 fi
8828
8829
8830 NS_HAVE_NSINTEGER=yes
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <Foundation/NSObjCRuntime.h>
8834 int
8835 main ()
8836 {
8837 NSInteger i;
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 if ac_fn_c_try_compile "$LINENO"; then :
8843 ns_have_nsinteger=yes
8844 else
8845 ns_have_nsinteger=no
8846 fi
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 if test $ns_have_nsinteger = no; then
8849 NS_HAVE_NSINTEGER=no
8850 fi
8851 fi
8852
8853
8854 ns_frag=/dev/null
8855 NS_OBJ=
8856 NS_OBJC_OBJ=
8857 NS_SUPPORT=
8858 if test "${HAVE_NS}" = yes; then
8859 window_system=nextstep
8860 with_xft=no
8861 # set up packaging dirs
8862 exec_prefix=${ns_appbindir}
8863 libexecdir=${ns_appbindir}/libexec
8864 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8865 prefix=${ns_appresdir}
8866 fi
8867 ns_frag=$srcdir/src/ns.mk
8868 NS_OBJ="fontset.o fringe.o image.o"
8869 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
8870 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8871 fi
8872 CFLAGS="$tmp_CFLAGS"
8873 CPPFLAGS="$tmp_CPPFLAGS"
8874
8875
8876
8877
8878
8879
8880 case "${window_system}" in
8881 x11 )
8882 HAVE_X_WINDOWS=yes
8883 HAVE_X11=yes
8884 case "${with_x_toolkit}" in
8885 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8886 motif ) USE_X_TOOLKIT=MOTIF ;;
8887 gtk ) with_gtk=yes
8888 USE_X_TOOLKIT=none ;;
8889 gtk3 ) with_gtk3=yes
8890 USE_X_TOOLKIT=none ;;
8891 no ) USE_X_TOOLKIT=none ;;
8892 * ) USE_X_TOOLKIT=maybe ;;
8893 esac
8894 ;;
8895 nextstep | none )
8896 HAVE_X_WINDOWS=no
8897 HAVE_X11=no
8898 USE_X_TOOLKIT=none
8899 ;;
8900 esac
8901
8902 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8903 # Extract the first word of "X", so it can be a program name with args.
8904 set dummy X; ac_word=$2
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906 $as_echo_n "checking for $ac_word... " >&6; }
8907 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 if test -n "$HAVE_XSERVER"; then
8911 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8912 else
8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 for as_dir in $PATH
8915 do
8916 IFS=$as_save_IFS
8917 test -z "$as_dir" && as_dir=.
8918 for ac_exec_ext in '' $ac_executable_extensions; do
8919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8920 ac_cv_prog_HAVE_XSERVER="true"
8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 break 2
8923 fi
8924 done
8925 done
8926 IFS=$as_save_IFS
8927
8928 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8929 fi
8930 fi
8931 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8932 if test -n "$HAVE_XSERVER"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8934 $as_echo "$HAVE_XSERVER" >&6; }
8935 else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8938 fi
8939
8940
8941 if test "$HAVE_XSERVER" = true ||
8942 test -n "$DISPLAY" ||
8943 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8944 as_fn_error $? "You seem to be running X, but no X development libraries
8945 were found. You should install the relevant development files for X
8946 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8947 sure you have development files for image handling, i.e.
8948 tiff, gif, jpeg, png and xpm.
8949 If you are sure you want Emacs compiled without X window support, pass
8950 --without-x
8951 to configure." "$LINENO" 5
8952 fi
8953 fi
8954
8955 ### If we're using X11, we should use the X menu package.
8956 HAVE_MENUS=no
8957 case ${HAVE_X11} in
8958 yes ) HAVE_MENUS=yes ;;
8959 esac
8960
8961 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8962 # Assume not, until told otherwise.
8963 GNU_MALLOC=yes
8964 doug_lea_malloc=yes
8965 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8966 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8967
8968 else
8969 doug_lea_malloc=no
8970 fi
8971
8972 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8973 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8974
8975 else
8976 doug_lea_malloc=no
8977 fi
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8980 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8981 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 extern void (* __after_morecore_hook)();
8987 int
8988 main ()
8989 {
8990 __after_morecore_hook = 0
8991 ;
8992 return 0;
8993 }
8994 _ACEOF
8995 if ac_fn_c_try_link "$LINENO"; then :
8996 emacs_cv_var___after_morecore_hook=yes
8997 else
8998 emacs_cv_var___after_morecore_hook=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9002 fi
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9004 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9005 if test $emacs_cv_var___after_morecore_hook = no; then
9006 doug_lea_malloc=no
9007 fi
9008
9009
9010 system_malloc=no
9011 case "$opsys" in
9012 ## darwin ld insists on the use of malloc routines in the System framework.
9013 darwin|sol2-10) system_malloc=yes ;;
9014 esac
9015
9016 if test "${system_malloc}" = "yes"; then
9017
9018 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9019
9020 GNU_MALLOC=no
9021 GNU_MALLOC_reason="
9022 (The GNU allocators don't work with this system configuration.)"
9023 GMALLOC_OBJ=
9024 VMLIMIT_OBJ=
9025 else
9026 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9027 VMLIMIT_OBJ=vm-limit.o
9028 fi
9029
9030
9031
9032 if test "$doug_lea_malloc" = "yes" ; then
9033 if test "$GNU_MALLOC" = yes ; then
9034 GNU_MALLOC_reason="
9035 (Using Doug Lea's new malloc from the GNU C Library.)"
9036 fi
9037
9038 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9039
9040
9041 ## Use mmap directly for allocating larger buffers.
9042 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9043 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9044 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9045 case "$opsys" in
9046 gnu*) REL_ALLOC=no ;;
9047 esac
9048 fi
9049
9050 if test x"${REL_ALLOC}" = x; then
9051 REL_ALLOC=${GNU_MALLOC}
9052 fi
9053
9054 use_mmap_for_buffers=no
9055 case "$opsys" in
9056 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9057 esac
9058
9059
9060
9061
9062 for ac_header in $ac_header_list
9063 do :
9064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9066 "
9067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9068 cat >>confdefs.h <<_ACEOF
9069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9070 _ACEOF
9071
9072 fi
9073
9074 done
9075
9076
9077
9078
9079
9080
9081
9082
9083 for ac_func in getpagesize
9084 do :
9085 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9086 if test "x$ac_cv_func_getpagesize" = xyes; then :
9087 cat >>confdefs.h <<_ACEOF
9088 #define HAVE_GETPAGESIZE 1
9089 _ACEOF
9090
9091 fi
9092 done
9093
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9095 $as_echo_n "checking for working mmap... " >&6; }
9096 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 if test "$cross_compiling" = yes; then :
9100 ac_cv_func_mmap_fixed_mapped=no
9101 else
9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 /* malloc might have been renamed as rpl_malloc. */
9106 #undef malloc
9107
9108 /* Thanks to Mike Haertel and Jim Avera for this test.
9109 Here is a matrix of mmap possibilities:
9110 mmap private not fixed
9111 mmap private fixed at somewhere currently unmapped
9112 mmap private fixed at somewhere already mapped
9113 mmap shared not fixed
9114 mmap shared fixed at somewhere currently unmapped
9115 mmap shared fixed at somewhere already mapped
9116 For private mappings, we should verify that changes cannot be read()
9117 back from the file, nor mmap's back from the file at a different
9118 address. (There have been systems where private was not correctly
9119 implemented like the infamous i386 svr4.0, and systems where the
9120 VM page cache was not coherent with the file system buffer cache
9121 like early versions of FreeBSD and possibly contemporary NetBSD.)
9122 For shared mappings, we should conversely verify that changes get
9123 propagated back to all the places they're supposed to be.
9124
9125 Grep wants private fixed already mapped.
9126 The main things grep needs to know about mmap are:
9127 * does it exist and is it safe to write into the mmap'd area
9128 * how to use it (BSD variants) */
9129
9130 #include <fcntl.h>
9131 #include <sys/mman.h>
9132
9133 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9134 char *malloc ();
9135 #endif
9136
9137 /* This mess was copied from the GNU getpagesize.h. */
9138 #ifndef HAVE_GETPAGESIZE
9139 # ifdef _SC_PAGESIZE
9140 # define getpagesize() sysconf(_SC_PAGESIZE)
9141 # else /* no _SC_PAGESIZE */
9142 # ifdef HAVE_SYS_PARAM_H
9143 # include <sys/param.h>
9144 # ifdef EXEC_PAGESIZE
9145 # define getpagesize() EXEC_PAGESIZE
9146 # else /* no EXEC_PAGESIZE */
9147 # ifdef NBPG
9148 # define getpagesize() NBPG * CLSIZE
9149 # ifndef CLSIZE
9150 # define CLSIZE 1
9151 # endif /* no CLSIZE */
9152 # else /* no NBPG */
9153 # ifdef NBPC
9154 # define getpagesize() NBPC
9155 # else /* no NBPC */
9156 # ifdef PAGESIZE
9157 # define getpagesize() PAGESIZE
9158 # endif /* PAGESIZE */
9159 # endif /* no NBPC */
9160 # endif /* no NBPG */
9161 # endif /* no EXEC_PAGESIZE */
9162 # else /* no HAVE_SYS_PARAM_H */
9163 # define getpagesize() 8192 /* punt totally */
9164 # endif /* no HAVE_SYS_PARAM_H */
9165 # endif /* no _SC_PAGESIZE */
9166
9167 #endif /* no HAVE_GETPAGESIZE */
9168
9169 int
9170 main ()
9171 {
9172 char *data, *data2, *data3;
9173 const char *cdata2;
9174 int i, pagesize;
9175 int fd, fd2;
9176
9177 pagesize = getpagesize ();
9178
9179 /* First, make a file with some known garbage in it. */
9180 data = (char *) malloc (pagesize);
9181 if (!data)
9182 return 1;
9183 for (i = 0; i < pagesize; ++i)
9184 *(data + i) = rand ();
9185 umask (0);
9186 fd = creat ("conftest.mmap", 0600);
9187 if (fd < 0)
9188 return 2;
9189 if (write (fd, data, pagesize) != pagesize)
9190 return 3;
9191 close (fd);
9192
9193 /* Next, check that the tail of a page is zero-filled. File must have
9194 non-zero length, otherwise we risk SIGBUS for entire page. */
9195 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9196 if (fd2 < 0)
9197 return 4;
9198 cdata2 = "";
9199 if (write (fd2, cdata2, 1) != 1)
9200 return 5;
9201 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9202 if (data2 == MAP_FAILED)
9203 return 6;
9204 for (i = 0; i < pagesize; ++i)
9205 if (*(data2 + i))
9206 return 7;
9207 close (fd2);
9208 if (munmap (data2, pagesize))
9209 return 8;
9210
9211 /* Next, try to mmap the file at a fixed address which already has
9212 something else allocated at it. If we can, also make sure that
9213 we see the same garbage. */
9214 fd = open ("conftest.mmap", O_RDWR);
9215 if (fd < 0)
9216 return 9;
9217 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9218 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9219 return 10;
9220 for (i = 0; i < pagesize; ++i)
9221 if (*(data + i) != *(data2 + i))
9222 return 11;
9223
9224 /* Finally, make sure that changes to the mapped area do not
9225 percolate back to the file as seen by read(). (This is a bug on
9226 some variants of i386 svr4.0.) */
9227 for (i = 0; i < pagesize; ++i)
9228 *(data2 + i) = *(data2 + i) + 1;
9229 data3 = (char *) malloc (pagesize);
9230 if (!data3)
9231 return 12;
9232 if (read (fd, data3, pagesize) != pagesize)
9233 return 13;
9234 for (i = 0; i < pagesize; ++i)
9235 if (*(data + i) != *(data3 + i))
9236 return 14;
9237 close (fd);
9238 return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_run "$LINENO"; then :
9242 ac_cv_func_mmap_fixed_mapped=yes
9243 else
9244 ac_cv_func_mmap_fixed_mapped=no
9245 fi
9246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9247 conftest.$ac_objext conftest.beam conftest.$ac_ext
9248 fi
9249
9250 fi
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9252 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9253 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9254
9255 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9256
9257 fi
9258 rm -f conftest.mmap conftest.txt
9259
9260 if test $use_mmap_for_buffers = yes; then
9261
9262 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9263
9264 REL_ALLOC=no
9265 fi
9266
9267 LIBS="$LIBS_SYSTEM $LIBS"
9268
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9270 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9271 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 ac_check_lib_save_LIBS=$LIBS
9275 LIBS="-ldnet $LIBS"
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char dnet_ntoa ();
9286 int
9287 main ()
9288 {
9289 return dnet_ntoa ();
9290 ;
9291 return 0;
9292 }
9293 _ACEOF
9294 if ac_fn_c_try_link "$LINENO"; then :
9295 ac_cv_lib_dnet_dnet_ntoa=yes
9296 else
9297 ac_cv_lib_dnet_dnet_ntoa=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext \
9300 conftest$ac_exeext conftest.$ac_ext
9301 LIBS=$ac_check_lib_save_LIBS
9302 fi
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9304 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9305 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9306 cat >>confdefs.h <<_ACEOF
9307 #define HAVE_LIBDNET 1
9308 _ACEOF
9309
9310 LIBS="-ldnet $LIBS"
9311
9312 fi
9313
9314
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9316 $as_echo_n "checking for main in -lXbsd... " >&6; }
9317 if ${ac_cv_lib_Xbsd_main+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ac_check_lib_save_LIBS=$LIBS
9321 LIBS="-lXbsd $LIBS"
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324
9325
9326 int
9327 main ()
9328 {
9329 return main ();
9330 ;
9331 return 0;
9332 }
9333 _ACEOF
9334 if ac_fn_c_try_link "$LINENO"; then :
9335 ac_cv_lib_Xbsd_main=yes
9336 else
9337 ac_cv_lib_Xbsd_main=no
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9342 fi
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9344 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9345 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9346 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9347 fi
9348
9349
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9351 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9352 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 ac_check_lib_save_LIBS=$LIBS
9356 LIBS="-lpthreads $LIBS"
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 char cma_open ();
9367 int
9368 main ()
9369 {
9370 return cma_open ();
9371 ;
9372 return 0;
9373 }
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 ac_cv_lib_pthreads_cma_open=yes
9377 else
9378 ac_cv_lib_pthreads_cma_open=no
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS=$ac_check_lib_save_LIBS
9383 fi
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9385 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9386 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9387 cat >>confdefs.h <<_ACEOF
9388 #define HAVE_LIBPTHREADS 1
9389 _ACEOF
9390
9391 LIBS="-lpthreads $LIBS"
9392
9393 fi
9394
9395
9396 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9397 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9398 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9399 ## added to LIBS in configure would never contain the pthreads part,
9400 ## but the value used in Makefiles might. FIXME?
9401 ##
9402 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9403 ## be harmless on older versions of X where it happens to exist.
9404 test "$opsys" = "aix4-2" && \
9405 test $ac_cv_lib_pthreads_cma_open = yes && \
9406 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9407
9408
9409 case ${host_os} in
9410 aix*)
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9412 $as_echo_n "checking for -bbigtoc option... " >&6; }
9413 if ${gdb_cv_bigtoc+:} false; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416
9417 case $GCC in
9418 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9419 *) gdb_cv_bigtoc=-bbigtoc ;;
9420 esac
9421
9422 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425
9426 int
9427 main ()
9428 {
9429 int i;
9430 ;
9431 return 0;
9432 }
9433 _ACEOF
9434 if ac_fn_c_try_link "$LINENO"; then :
9435
9436 else
9437 gdb_cv_bigtoc=
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441
9442 fi
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9444 $as_echo "$gdb_cv_bigtoc" >&6; }
9445 ;;
9446 esac
9447
9448 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9449 # used for the tests that follow. We set them back to REAL_CFLAGS and
9450 # REAL_CPPFLAGS later on.
9451
9452 REAL_CFLAGS="$CFLAGS"
9453 REAL_CPPFLAGS="$CPPFLAGS"
9454
9455 if test "${HAVE_X11}" = "yes"; then
9456 DEFS="$C_SWITCH_X_SITE $DEFS"
9457 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9458 LIBS="-lX11 $LIBS"
9459 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9460 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9461
9462 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9463 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9464 # but it's more convenient here to set LD_RUN_PATH
9465 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9466 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9467 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9468 export LD_RUN_PATH
9469 fi
9470
9471 if test "${opsys}" = "gnu-linux"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9473 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9476
9477 int
9478 main ()
9479 {
9480 XOpenDisplay ("foo");
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 xlinux_first_failure=no
9487 else
9488 xlinux_first_failure=yes
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 if test "${xlinux_first_failure}" = "yes"; then
9493 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9494 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9495 OLD_CPPFLAGS="$CPPFLAGS"
9496 OLD_LIBS="$LIBS"
9497 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9498 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9499 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9500 LIBS="$LIBS -b i486-linuxaout"
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503
9504 int
9505 main ()
9506 {
9507 XOpenDisplay ("foo");
9508 ;
9509 return 0;
9510 }
9511 _ACEOF
9512 if ac_fn_c_try_link "$LINENO"; then :
9513 xlinux_second_failure=no
9514 else
9515 xlinux_second_failure=yes
9516 fi
9517 rm -f core conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519 if test "${xlinux_second_failure}" = "yes"; then
9520 # If we get the same failure with -b, there is no use adding -b.
9521 # So take it out. This plays safe.
9522 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9523 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9524 CPPFLAGS="$OLD_CPPFLAGS"
9525 LIBS="$OLD_LIBS"
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9528 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9530 $as_echo "yes" >&6; }
9531 fi
9532 else
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9535 fi
9536 fi
9537
9538 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9539 # header files included from there.
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9541 $as_echo_n "checking for Xkb... " >&6; }
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 #include <X11/Xlib.h>
9545 #include <X11/XKBlib.h>
9546 int
9547 main ()
9548 {
9549 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_link "$LINENO"; then :
9555 emacs_xkb=yes
9556 else
9557 emacs_xkb=no
9558 fi
9559 rm -f core conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext conftest.$ac_ext
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9562 $as_echo "$emacs_xkb" >&6; }
9563 if test $emacs_xkb = yes; then
9564
9565 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9566
9567 fi
9568
9569 for ac_func in XrmSetDatabase XScreenResourceString \
9570 XScreenNumberOfScreen XSetWMProtocols
9571 do :
9572 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9575 cat >>confdefs.h <<_ACEOF
9576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9577 _ACEOF
9578
9579 fi
9580 done
9581
9582 fi
9583
9584 if test "${window_system}" = "x11"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9586 $as_echo_n "checking X11 version 6... " >&6; }
9587 if ${emacs_cv_x11_version_6+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h. */
9592 #include <X11/Xlib.h>
9593 int
9594 main ()
9595 {
9596 #if XlibSpecificationRelease < 6
9597 fail;
9598 #endif
9599
9600 ;
9601 return 0;
9602 }
9603 _ACEOF
9604 if ac_fn_c_try_link "$LINENO"; then :
9605 emacs_cv_x11_version_6=yes
9606 else
9607 emacs_cv_x11_version_6=no
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611 fi
9612
9613 if test $emacs_cv_x11_version_6 = yes; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9615 $as_echo "6 or newer" >&6; }
9616
9617 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9618
9619
9620 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9621
9622 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9623 ## XIM support.
9624 case "$opsys" in
9625 sol2-*) : ;;
9626 *)
9627 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9628
9629 ;;
9630 esac
9631 else
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9633 $as_echo "before 6" >&6; }
9634 fi
9635 fi
9636
9637
9638 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9639 HAVE_RSVG=no
9640 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9641 if test "${with_rsvg}" != "no"; then
9642 RSVG_REQUIRED=2.11.0
9643 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9644
9645
9646 succeeded=no
9647
9648 # Extract the first word of "pkg-config", so it can be a program name with args.
9649 set dummy pkg-config; ac_word=$2
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9651 $as_echo_n "checking for $ac_word... " >&6; }
9652 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 case $PKG_CONFIG in
9656 [\\/]* | ?:[\\/]*)
9657 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9658 ;;
9659 *)
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 for as_dir in $PATH
9662 do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9669 break 2
9670 fi
9671 done
9672 done
9673 IFS=$as_save_IFS
9674
9675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9676 ;;
9677 esac
9678 fi
9679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9680 if test -n "$PKG_CONFIG"; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9682 $as_echo "$PKG_CONFIG" >&6; }
9683 else
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 $as_echo "no" >&6; }
9686 fi
9687
9688
9689
9690 if test "$PKG_CONFIG" = "no" ; then
9691 :
9692 else
9693 PKG_CONFIG_MIN_VERSION=0.9.0
9694 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9696 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9697
9698 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9700 $as_echo "yes" >&6; }
9701 succeeded=yes
9702
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9704 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9705 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9707 $as_echo "$RSVG_CFLAGS" >&6; }
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9710 $as_echo_n "checking RSVG_LIBS... " >&6; }
9711 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9713 $as_echo "$RSVG_LIBS" >&6; }
9714 else
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9716 $as_echo "no" >&6; }
9717 RSVG_CFLAGS=""
9718 RSVG_LIBS=""
9719 ## If we have a custom action on failure, don't print errors, but
9720 ## do set a variable so people can do so.
9721 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9722
9723 fi
9724
9725
9726
9727 else
9728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9730 fi
9731 fi
9732
9733 if test $succeeded = yes; then
9734 HAVE_RSVG=yes
9735 else
9736 :
9737 fi
9738
9739
9740
9741
9742 if test $HAVE_RSVG = yes; then
9743
9744 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9745
9746 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9747 LIBS="$RSVG_LIBS $LIBS"
9748 fi
9749 fi
9750 fi
9751
9752 HAVE_IMAGEMAGICK=no
9753 if test "${HAVE_X11}" = "yes"; then
9754 if test "${with_imagemagick}" != "no"; then
9755 IMAGEMAGICK_MODULE="Wand"
9756
9757 succeeded=no
9758
9759 # Extract the first word of "pkg-config", so it can be a program name with args.
9760 set dummy pkg-config; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 case $PKG_CONFIG in
9767 [\\/]* | ?:[\\/]*)
9768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9769 ;;
9770 *)
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9773 do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782 done
9783 done
9784 IFS=$as_save_IFS
9785
9786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9787 ;;
9788 esac
9789 fi
9790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9791 if test -n "$PKG_CONFIG"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9793 $as_echo "$PKG_CONFIG" >&6; }
9794 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9797 fi
9798
9799
9800
9801 if test "$PKG_CONFIG" = "no" ; then
9802 :
9803 else
9804 PKG_CONFIG_MIN_VERSION=0.9.0
9805 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9807 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9808
9809 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9811 $as_echo "yes" >&6; }
9812 succeeded=yes
9813
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9815 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9816 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9818 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9821 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9822 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9824 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9825 else
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9828 IMAGEMAGICK_CFLAGS=""
9829 IMAGEMAGICK_LIBS=""
9830 ## If we have a custom action on failure, don't print errors, but
9831 ## do set a variable so people can do so.
9832 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9833
9834 fi
9835
9836
9837
9838 else
9839 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9840 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9841 fi
9842 fi
9843
9844 if test $succeeded = yes; then
9845 HAVE_IMAGEMAGICK=yes
9846 else
9847 :
9848 fi
9849
9850
9851
9852
9853 if test $HAVE_IMAGEMAGICK = yes; then
9854
9855 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9856
9857 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9858 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9859 for ac_func in MagickExportImagePixels
9860 do :
9861 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9862 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9863 cat >>confdefs.h <<_ACEOF
9864 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9865 _ACEOF
9866
9867 fi
9868 done
9869
9870 fi
9871 fi
9872 fi
9873
9874
9875 HAVE_GTK=no
9876 if test "${with_gtk3}" = "yes"; then
9877 GLIB_REQUIRED=2.6
9878 GTK_REQUIRED=2.90
9879 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9880
9881
9882 succeeded=no
9883
9884 # Extract the first word of "pkg-config", so it can be a program name with args.
9885 set dummy pkg-config; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891 case $PKG_CONFIG in
9892 [\\/]* | ?:[\\/]*)
9893 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9894 ;;
9895 *)
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9898 do
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9903 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9906 fi
9907 done
9908 done
9909 IFS=$as_save_IFS
9910
9911 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9912 ;;
9913 esac
9914 fi
9915 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9916 if test -n "$PKG_CONFIG"; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9918 $as_echo "$PKG_CONFIG" >&6; }
9919 else
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9922 fi
9923
9924
9925
9926 if test "$PKG_CONFIG" = "no" ; then
9927 pkg_check_gtk=no
9928 else
9929 PKG_CONFIG_MIN_VERSION=0.9.0
9930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9932 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9933
9934 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9936 $as_echo "yes" >&6; }
9937 succeeded=yes
9938
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9940 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9941 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9943 $as_echo "$GTK_CFLAGS" >&6; }
9944
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9946 $as_echo_n "checking GTK_LIBS... " >&6; }
9947 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9949 $as_echo "$GTK_LIBS" >&6; }
9950 else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9953 GTK_CFLAGS=""
9954 GTK_LIBS=""
9955 ## If we have a custom action on failure, don't print errors, but
9956 ## do set a variable so people can do so.
9957 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9958
9959 fi
9960
9961
9962
9963 else
9964 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9965 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9966 fi
9967 fi
9968
9969 if test $succeeded = yes; then
9970 pkg_check_gtk=yes
9971 else
9972 pkg_check_gtk=no
9973 fi
9974
9975 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9976 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9977 fi
9978 fi
9979
9980 if test "$pkg_check_gtk" != "yes"; then
9981 HAVE_GTK=no
9982 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9983 GLIB_REQUIRED=2.6
9984 GTK_REQUIRED=2.6
9985 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9986
9987
9988 succeeded=no
9989
9990 # Extract the first word of "pkg-config", so it can be a program name with args.
9991 set dummy pkg-config; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 case $PKG_CONFIG in
9998 [\\/]* | ?:[\\/]*)
9999 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10000 ;;
10001 *)
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10004 do
10005 IFS=$as_save_IFS
10006 test -z "$as_dir" && as_dir=.
10007 for ac_exec_ext in '' $ac_executable_extensions; do
10008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10009 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 break 2
10012 fi
10013 done
10014 done
10015 IFS=$as_save_IFS
10016
10017 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10018 ;;
10019 esac
10020 fi
10021 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10022 if test -n "$PKG_CONFIG"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10024 $as_echo "$PKG_CONFIG" >&6; }
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 fi
10029
10030
10031
10032 if test "$PKG_CONFIG" = "no" ; then
10033 pkg_check_gtk=no
10034 else
10035 PKG_CONFIG_MIN_VERSION=0.9.0
10036 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10038 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10039
10040 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10042 $as_echo "yes" >&6; }
10043 succeeded=yes
10044
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10046 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10047 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10049 $as_echo "$GTK_CFLAGS" >&6; }
10050
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10052 $as_echo_n "checking GTK_LIBS... " >&6; }
10053 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10055 $as_echo "$GTK_LIBS" >&6; }
10056 else
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10058 $as_echo "no" >&6; }
10059 GTK_CFLAGS=""
10060 GTK_LIBS=""
10061 ## If we have a custom action on failure, don't print errors, but
10062 ## do set a variable so people can do so.
10063 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10064
10065 fi
10066
10067
10068
10069 else
10070 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10071 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10072 fi
10073 fi
10074
10075 if test $succeeded = yes; then
10076 pkg_check_gtk=yes
10077 else
10078 pkg_check_gtk=no
10079 fi
10080
10081 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10082 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10083 fi
10084 fi
10085 fi
10086
10087 GTK_OBJ=
10088 if test x"$pkg_check_gtk" = xyes; then
10089
10090
10091
10092 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10093 CFLAGS="$CFLAGS $GTK_CFLAGS"
10094 LIBS="$GTK_LIBS $LIBS"
10095 GTK_COMPILES=no
10096 for ac_func in gtk_main
10097 do :
10098 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10099 if test "x$ac_cv_func_gtk_main" = xyes; then :
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_GTK_MAIN 1
10102 _ACEOF
10103 GTK_COMPILES=yes
10104 fi
10105 done
10106
10107 if test "${GTK_COMPILES}" != "yes"; then
10108 if test "$USE_X_TOOLKIT" != "maybe"; then
10109 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10110 fi
10111 else
10112 HAVE_GTK=yes
10113
10114 $as_echo "#define USE_GTK 1" >>confdefs.h
10115
10116 GTK_OBJ=gtkutil.o
10117 USE_X_TOOLKIT=none
10118 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10119 :
10120 else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10122 closing open displays. This is no problem if you just use
10123 one display, but if you use more than one and close one of them
10124 Emacs may crash." >&5
10125 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10126 closing open displays. This is no problem if you just use
10127 one display, but if you use more than one and close one of them
10128 Emacs may crash." >&2;}
10129 sleep 3
10130 fi
10131 fi
10132
10133 fi
10134
10135
10136
10137 if test "${HAVE_GTK}" = "yes"; then
10138
10139 if test "$with_toolkit_scroll_bars" != no; then
10140 with_toolkit_scroll_bars=yes
10141 fi
10142
10143 HAVE_GTK_FILE_SELECTION=no
10144 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10145 #include <gtk/gtk.h>
10146 "
10147 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10148 HAVE_GTK_FILE_SELECTION=yes
10149 else
10150 HAVE_GTK_FILE_SELECTION=no
10151 fi
10152
10153 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10154 for ac_func in gtk_file_selection_new
10155 do :
10156 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10157 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10158 cat >>confdefs.h <<_ACEOF
10159 #define HAVE_GTK_FILE_SELECTION_NEW 1
10160 _ACEOF
10161
10162 fi
10163 done
10164
10165 fi
10166
10167 HAVE_GTK_AND_PTHREAD=no
10168 for ac_header in pthread.h
10169 do :
10170 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10171 if test "x$ac_cv_header_pthread_h" = xyes; then :
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_PTHREAD_H 1
10174 _ACEOF
10175
10176 fi
10177
10178 done
10179
10180 if test "$ac_cv_header_pthread_h"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10182 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10183 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185 else
10186 ac_check_lib_save_LIBS=$LIBS
10187 LIBS="-lpthread $LIBS"
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 char pthread_self ();
10198 int
10199 main ()
10200 {
10201 return pthread_self ();
10202 ;
10203 return 0;
10204 }
10205 _ACEOF
10206 if ac_fn_c_try_link "$LINENO"; then :
10207 ac_cv_lib_pthread_pthread_self=yes
10208 else
10209 ac_cv_lib_pthread_pthread_self=no
10210 fi
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10216 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10217 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10218 HAVE_GTK_AND_PTHREAD=yes
10219 fi
10220
10221 fi
10222 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10223 case "${canonical}" in
10224 *-hpux*) ;;
10225 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10226 esac
10227
10228 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10229
10230 fi
10231
10232 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10233 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10234 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10235 gtk_orientable_set_orientation
10236 do :
10237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10238 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10239 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10240 cat >>confdefs.h <<_ACEOF
10241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10242 _ACEOF
10243
10244 fi
10245 done
10246
10247
10248 fi
10249
10250 HAVE_DBUS=no
10251 DBUS_OBJ=
10252 if test "${with_dbus}" = "yes"; then
10253
10254 succeeded=no
10255
10256 # Extract the first word of "pkg-config", so it can be a program name with args.
10257 set dummy pkg-config; ac_word=$2
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259 $as_echo_n "checking for $ac_word... " >&6; }
10260 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10261 $as_echo_n "(cached) " >&6
10262 else
10263 case $PKG_CONFIG in
10264 [\\/]* | ?:[\\/]*)
10265 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10266 ;;
10267 *)
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10270 do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10275 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10278 fi
10279 done
10280 done
10281 IFS=$as_save_IFS
10282
10283 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10284 ;;
10285 esac
10286 fi
10287 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10288 if test -n "$PKG_CONFIG"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10290 $as_echo "$PKG_CONFIG" >&6; }
10291 else
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10294 fi
10295
10296
10297
10298 if test "$PKG_CONFIG" = "no" ; then
10299 HAVE_DBUS=no
10300 else
10301 PKG_CONFIG_MIN_VERSION=0.9.0
10302 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10304 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10305
10306 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10308 $as_echo "yes" >&6; }
10309 succeeded=yes
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10312 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10313 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10315 $as_echo "$DBUS_CFLAGS" >&6; }
10316
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10318 $as_echo_n "checking DBUS_LIBS... " >&6; }
10319 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10321 $as_echo "$DBUS_LIBS" >&6; }
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10325 DBUS_CFLAGS=""
10326 DBUS_LIBS=""
10327 ## If we have a custom action on failure, don't print errors, but
10328 ## do set a variable so people can do so.
10329 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10330
10331 fi
10332
10333
10334
10335 else
10336 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10337 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10338 fi
10339 fi
10340
10341 if test $succeeded = yes; then
10342 HAVE_DBUS=yes
10343 else
10344 HAVE_DBUS=no
10345 fi
10346
10347 if test "$HAVE_DBUS" = yes; then
10348 LIBS="$LIBS $DBUS_LIBS"
10349
10350 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10351
10352 for ac_func in dbus_watch_get_unix_fd
10353 do :
10354 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10355 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10356 cat >>confdefs.h <<_ACEOF
10357 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10358 _ACEOF
10359
10360 fi
10361 done
10362
10363 DBUS_OBJ=dbusbind.o
10364 fi
10365 fi
10366
10367
10368 HAVE_GCONF=no
10369 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10370
10371 succeeded=no
10372
10373 # Extract the first word of "pkg-config", so it can be a program name with args.
10374 set dummy pkg-config; ac_word=$2
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10376 $as_echo_n "checking for $ac_word... " >&6; }
10377 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10378 $as_echo_n "(cached) " >&6
10379 else
10380 case $PKG_CONFIG in
10381 [\\/]* | ?:[\\/]*)
10382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10383 ;;
10384 *)
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10387 do
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10392 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10395 fi
10396 done
10397 done
10398 IFS=$as_save_IFS
10399
10400 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10401 ;;
10402 esac
10403 fi
10404 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10405 if test -n "$PKG_CONFIG"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10407 $as_echo "$PKG_CONFIG" >&6; }
10408 else
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10411 fi
10412
10413
10414
10415 if test "$PKG_CONFIG" = "no" ; then
10416 HAVE_GCONF=no
10417 else
10418 PKG_CONFIG_MIN_VERSION=0.9.0
10419 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10421 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10422
10423 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10425 $as_echo "yes" >&6; }
10426 succeeded=yes
10427
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10429 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10430 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10432 $as_echo "$GCONF_CFLAGS" >&6; }
10433
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10435 $as_echo_n "checking GCONF_LIBS... " >&6; }
10436 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10438 $as_echo "$GCONF_LIBS" >&6; }
10439 else
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441 $as_echo "no" >&6; }
10442 GCONF_CFLAGS=""
10443 GCONF_LIBS=""
10444 ## If we have a custom action on failure, don't print errors, but
10445 ## do set a variable so people can do so.
10446 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10447
10448 fi
10449
10450
10451
10452 else
10453 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10454 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10455 fi
10456 fi
10457
10458 if test $succeeded = yes; then
10459 HAVE_GCONF=yes
10460 else
10461 HAVE_GCONF=no
10462 fi
10463
10464 if test "$HAVE_GCONF" = yes; then
10465
10466 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10467
10468 for ac_func in g_type_init
10469 do :
10470 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10471 if test "x$ac_cv_func_g_type_init" = xyes; then :
10472 cat >>confdefs.h <<_ACEOF
10473 #define HAVE_G_TYPE_INIT 1
10474 _ACEOF
10475
10476 fi
10477 done
10478
10479 fi
10480 fi
10481
10482 HAVE_LIBSELINUX=no
10483 LIBSELINUX_LIBS=
10484 if test "${with_selinux}" = "yes"; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10486 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10487 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10488 $as_echo_n "(cached) " >&6
10489 else
10490 ac_check_lib_save_LIBS=$LIBS
10491 LIBS="-lselinux $LIBS"
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494
10495 /* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char lgetfilecon ();
10502 int
10503 main ()
10504 {
10505 return lgetfilecon ();
10506 ;
10507 return 0;
10508 }
10509 _ACEOF
10510 if ac_fn_c_try_link "$LINENO"; then :
10511 ac_cv_lib_selinux_lgetfilecon=yes
10512 else
10513 ac_cv_lib_selinux_lgetfilecon=no
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10520 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10521 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10522 HAVE_LIBSELINUX=yes
10523 else
10524 HAVE_LIBSELINUX=no
10525 fi
10526
10527 if test "$HAVE_LIBSELINUX" = yes; then
10528
10529 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10530
10531 LIBSELINUX_LIBS=-lselinux
10532 fi
10533 fi
10534
10535
10536 HAVE_GNUTLS=no
10537 if test "${with_gnutls}" = "yes" ; then
10538
10539 succeeded=no
10540
10541 # Extract the first word of "pkg-config", so it can be a program name with args.
10542 set dummy pkg-config; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 case $PKG_CONFIG in
10549 [\\/]* | ?:[\\/]*)
10550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10551 ;;
10552 *)
10553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10555 do
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 break 2
10563 fi
10564 done
10565 done
10566 IFS=$as_save_IFS
10567
10568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10569 ;;
10570 esac
10571 fi
10572 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10573 if test -n "$PKG_CONFIG"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10575 $as_echo "$PKG_CONFIG" >&6; }
10576 else
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }
10579 fi
10580
10581
10582
10583 if test "$PKG_CONFIG" = "no" ; then
10584 HAVE_GNUTLS=no
10585 else
10586 PKG_CONFIG_MIN_VERSION=0.9.0
10587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10589 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10590
10591 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593 $as_echo "yes" >&6; }
10594 succeeded=yes
10595
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10597 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10598 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10600 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10601
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10603 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10604 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10606 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10610 LIBGNUTLS_CFLAGS=""
10611 LIBGNUTLS_LIBS=""
10612 ## If we have a custom action on failure, don't print errors, but
10613 ## do set a variable so people can do so.
10614 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10615
10616 fi
10617
10618
10619
10620 else
10621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10623 fi
10624 fi
10625
10626 if test $succeeded = yes; then
10627 HAVE_GNUTLS=yes
10628 else
10629 HAVE_GNUTLS=no
10630 fi
10631
10632 if test "${HAVE_GNUTLS}" = "yes"; then
10633
10634 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10635
10636 fi
10637 fi
10638
10639
10640
10641 HAVE_XAW3D=no
10642 LUCID_LIBW=
10643 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10644 if test "$with_xaw3d" != no; then
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10646 $as_echo_n "checking for xaw3d... " >&6; }
10647 if ${emacs_cv_xaw3d+:} false; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652
10653 #include <X11/Intrinsic.h>
10654 #include <X11/Xaw3d/Simple.h>
10655 int
10656 main ()
10657 {
10658
10659 ;
10660 return 0;
10661 }
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10665 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10666 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-lXaw3d $LIBS"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673
10674 /* Override any GCC internal prototype to avoid an error.
10675 Use char because int might match the return type of a GCC
10676 builtin and then its argument prototype would still apply. */
10677 #ifdef __cplusplus
10678 extern "C"
10679 #endif
10680 char XawScrollbarSetThumb ();
10681 int
10682 main ()
10683 {
10684 return XawScrollbarSetThumb ();
10685 ;
10686 return 0;
10687 }
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"; then :
10690 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10691 else
10692 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10693 fi
10694 rm -f core conftest.err conftest.$ac_objext \
10695 conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10697 fi
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10699 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10700 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
10701 emacs_cv_xaw3d=yes
10702 else
10703 emacs_cv_xaw3d=no
10704 fi
10705
10706 else
10707 emacs_cv_xaw3d=no
10708 fi
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 fi
10712
10713 else
10714 emacs_cv_xaw3d=no
10715 fi
10716 if test $emacs_cv_xaw3d = yes; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10718 $as_echo "yes; using Lucid toolkit" >&6; }
10719 USE_X_TOOLKIT=LUCID
10720 HAVE_XAW3D=yes
10721 LUCID_LIBW=-lXaw3d
10722
10723 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10724
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10729 $as_echo_n "checking for libXaw... " >&6; }
10730 if ${emacs_cv_xaw+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735
10736 #include <X11/Intrinsic.h>
10737 #include <X11/Xaw/Simple.h>
10738 int
10739 main ()
10740 {
10741
10742 ;
10743 return 0;
10744 }
10745 _ACEOF
10746 if ac_fn_c_try_link "$LINENO"; then :
10747 emacs_cv_xaw=yes
10748 else
10749 emacs_cv_xaw=no
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 fi
10754
10755 if test $emacs_cv_xaw = yes; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10757 $as_echo "yes; using Lucid toolkit" >&6; }
10758 USE_X_TOOLKIT=LUCID
10759 LUCID_LIBW=-lXaw
10760 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10761 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10762 else
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10764 $as_echo "no; do not use toolkit by default" >&6; }
10765 USE_X_TOOLKIT=none
10766 fi
10767 fi
10768 fi
10769
10770 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10771
10772 LIBXTR6=
10773 if test "${USE_X_TOOLKIT}" != "none"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10775 $as_echo_n "checking X11 toolkit version... " >&6; }
10776 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10777 $as_echo_n "(cached) " >&6
10778 else
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 #include <X11/Intrinsic.h>
10782 int
10783 main ()
10784 {
10785 #if XtSpecificationRelease < 6
10786 fail;
10787 #endif
10788
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 emacs_cv_x11_toolkit_version_6=yes
10795 else
10796 emacs_cv_x11_toolkit_version_6=no
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 fi
10801
10802 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10803 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10805 $as_echo "6 or newer" >&6; }
10806
10807 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10808
10809 LIBXTR6="-lSM -lICE"
10810 case "$opsys" in
10811 ## Use libw.a along with X11R6 Xt.
10812 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10813 esac
10814 else
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10816 $as_echo "before 6" >&6; }
10817 fi
10818
10819 OLDLIBS="$LIBS"
10820 if test x$HAVE_X11XTR6 = xyes; then
10821 LIBS="-lXt -lSM -lICE $LIBS"
10822 else
10823 LIBS="-lXt $LIBS"
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10826 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10827 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 ac_check_lib_save_LIBS=$LIBS
10831 LIBS="-lXmu $LIBS"
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834
10835 /* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
10838 #ifdef __cplusplus
10839 extern "C"
10840 #endif
10841 char XmuConvertStandardSelection ();
10842 int
10843 main ()
10844 {
10845 return XmuConvertStandardSelection ();
10846 ;
10847 return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10852 else
10853 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10854 fi
10855 rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10860 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10861 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10862 cat >>confdefs.h <<_ACEOF
10863 #define HAVE_LIBXMU 1
10864 _ACEOF
10865
10866 LIBS="-lXmu $LIBS"
10867
10868 fi
10869
10870 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10871 fi
10872
10873
10874 LIBXMU=-lXmu
10875 case $opsys in
10876 ## These systems don't supply Xmu.
10877 hpux* | aix4-2 )
10878 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10879 ;;
10880 esac
10881
10882
10883 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10884 if test "${HAVE_X11}" = "yes"; then
10885 if test "${USE_X_TOOLKIT}" != "none"; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10887 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10888 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 ac_check_lib_save_LIBS=$LIBS
10892 LIBS="-lXext $LIBS"
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895
10896 /* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char XShapeQueryExtension ();
10903 int
10904 main ()
10905 {
10906 return XShapeQueryExtension ();
10907 ;
10908 return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912 ac_cv_lib_Xext_XShapeQueryExtension=yes
10913 else
10914 ac_cv_lib_Xext_XShapeQueryExtension=no
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_lib_save_LIBS
10919 fi
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10921 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10922 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10923 cat >>confdefs.h <<_ACEOF
10924 #define HAVE_LIBXEXT 1
10925 _ACEOF
10926
10927 LIBS="-lXext $LIBS"
10928
10929 fi
10930
10931 fi
10932 fi
10933
10934 LIBXP=
10935 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10937 $as_echo_n "checking for Motif version 2.1... " >&6; }
10938 if ${emacs_cv_motif_version_2_1+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943 #include <Xm/Xm.h>
10944 int
10945 main ()
10946 {
10947 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10948 int x = 5;
10949 #else
10950 Motif version prior to 2.1.
10951 #endif
10952 ;
10953 return 0;
10954 }
10955 _ACEOF
10956 if ac_fn_c_try_compile "$LINENO"; then :
10957 emacs_cv_motif_version_2_1=yes
10958 else
10959 emacs_cv_motif_version_2_1=no
10960 fi
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10962 fi
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10964 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10965 if test $emacs_cv_motif_version_2_1 = yes; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10967 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10968 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 ac_check_lib_save_LIBS=$LIBS
10972 LIBS="-lXp $LIBS"
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10979 #ifdef __cplusplus
10980 extern "C"
10981 #endif
10982 char XpCreateContext ();
10983 int
10984 main ()
10985 {
10986 return XpCreateContext ();
10987 ;
10988 return 0;
10989 }
10990 _ACEOF
10991 if ac_fn_c_try_link "$LINENO"; then :
10992 ac_cv_lib_Xp_XpCreateContext=yes
10993 else
10994 ac_cv_lib_Xp_XpCreateContext=no
10995 fi
10996 rm -f core conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
10998 LIBS=$ac_check_lib_save_LIBS
10999 fi
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11001 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11002 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
11003 LIBXP=-lXp
11004 fi
11005
11006 else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11008 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11009 if ${emacs_cv_lesstif+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011 else
11012 # We put this in CFLAGS temporarily to precede other -I options
11013 # that might be in CFLAGS temporarily.
11014 # We put this in CPPFLAGS where it precedes the other -I options.
11015 OLD_CPPFLAGS=$CPPFLAGS
11016 OLD_CFLAGS=$CFLAGS
11017 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11018 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h. */
11021 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11022 int
11023 main ()
11024 {
11025 int x = 5;
11026 ;
11027 return 0;
11028 }
11029 _ACEOF
11030 if ac_fn_c_try_compile "$LINENO"; then :
11031 emacs_cv_lesstif=yes
11032 else
11033 emacs_cv_lesstif=no
11034 fi
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036 fi
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11038 $as_echo "$emacs_cv_lesstif" >&6; }
11039 if test $emacs_cv_lesstif = yes; then
11040 # Make sure this -I option remains in CPPFLAGS after it is set
11041 # back to REAL_CPPFLAGS.
11042 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11043 # have those other -I options anyway. Ultimately, having this
11044 # directory ultimately in CPPFLAGS will be enough.
11045 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11046 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11047 else
11048 CFLAGS=$OLD_CFLAGS
11049 CPPFLAGS=$OLD_CPPFLAGS
11050 fi
11051 fi
11052 fi
11053
11054
11055 USE_TOOLKIT_SCROLL_BARS=no
11056 if test "${with_toolkit_scroll_bars}" != "no"; then
11057 if test "${USE_X_TOOLKIT}" != "none"; then
11058 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11059 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11060
11061 HAVE_XAW3D=no
11062 USE_TOOLKIT_SCROLL_BARS=yes
11063 elif test "${HAVE_XAW3D}" = "yes"; then
11064 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11065
11066 USE_TOOLKIT_SCROLL_BARS=yes
11067 fi
11068 elif test "${HAVE_GTK}" = "yes"; then
11069 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11070
11071 USE_TOOLKIT_SCROLL_BARS=yes
11072 elif test "${HAVE_NS}" = "yes"; then
11073 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11074
11075 USE_TOOLKIT_SCROLL_BARS=yes
11076 fi
11077 fi
11078
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081
11082 #include <X11/Xlib.h>
11083 #include <X11/Xresource.h>
11084 int
11085 main ()
11086 {
11087 XIMProc callback;
11088 ;
11089 return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_compile "$LINENO"; then :
11093 HAVE_XIM=yes
11094
11095 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11096
11097 else
11098 HAVE_XIM=no
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101
11102
11103 if test "${with_xim}" != "no"; then
11104
11105 $as_echo "#define USE_XIM 1" >>confdefs.h
11106
11107 fi
11108
11109
11110 if test "${HAVE_XIM}" != "no"; then
11111 late_CFLAGS=$CFLAGS
11112 if test "$GCC" = yes; then
11113 CFLAGS="$CFLAGS --pedantic-errors"
11114 fi
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117
11118 #include <X11/Xlib.h>
11119 #include <X11/Xresource.h>
11120 int
11121 main ()
11122 {
11123 Display *display;
11124 XrmDatabase db;
11125 char *res_name;
11126 char *res_class;
11127 XIMProc callback;
11128 XPointer *client_data;
11129 #ifndef __GNUC__
11130 /* If we're not using GCC, it's probably not XFree86, and this is
11131 probably right, but we can't use something like --pedantic-errors. */
11132 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11133 char*, XIMProc, XPointer*);
11134 #endif
11135 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11136 client_data);
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_compile "$LINENO"; then :
11142 emacs_cv_arg6_star=yes
11143 fi
11144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11145 if test "$emacs_cv_arg6_star" = yes; then
11146 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11147
11148 else
11149 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11150
11151 fi
11152 CFLAGS=$late_CFLAGS
11153 fi
11154
11155 ### Start of font-backend (under any platform) section.
11156 # (nothing here yet -- this is a placeholder)
11157 ### End of font-backend (under any platform) section.
11158
11159 ### Start of font-backend (under X11) section.
11160 if test "${HAVE_X11}" = "yes"; then
11161
11162 succeeded=no
11163
11164 # Extract the first word of "pkg-config", so it can be a program name with args.
11165 set dummy pkg-config; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 case $PKG_CONFIG in
11172 [\\/]* | ?:[\\/]*)
11173 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11174 ;;
11175 *)
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11183 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 break 2
11186 fi
11187 done
11188 done
11189 IFS=$as_save_IFS
11190
11191 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11192 ;;
11193 esac
11194 fi
11195 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11196 if test -n "$PKG_CONFIG"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11198 $as_echo "$PKG_CONFIG" >&6; }
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11202 fi
11203
11204
11205
11206 if test "$PKG_CONFIG" = "no" ; then
11207 HAVE_FC=no
11208 else
11209 PKG_CONFIG_MIN_VERSION=0.9.0
11210 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11212 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11213
11214 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11216 $as_echo "yes" >&6; }
11217 succeeded=yes
11218
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11220 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11221 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11223 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11224
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11226 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11227 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11229 $as_echo "$FONTCONFIG_LIBS" >&6; }
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11233 FONTCONFIG_CFLAGS=""
11234 FONTCONFIG_LIBS=""
11235 ## If we have a custom action on failure, don't print errors, but
11236 ## do set a variable so people can do so.
11237 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11238
11239 fi
11240
11241
11242
11243 else
11244 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11245 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11246 fi
11247 fi
11248
11249 if test $succeeded = yes; then
11250 HAVE_FC=yes
11251 else
11252 HAVE_FC=no
11253 fi
11254
11255
11256 ## Use -lXft if available, unless `--with-xft=no'.
11257 HAVE_XFT=maybe
11258 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11259 with_xft="no";
11260 fi
11261 if test "x${with_xft}" != "xno"; then
11262
11263
11264 succeeded=no
11265
11266 # Extract the first word of "pkg-config", so it can be a program name with args.
11267 set dummy pkg-config; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 case $PKG_CONFIG in
11274 [\\/]* | ?:[\\/]*)
11275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11276 ;;
11277 *)
11278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279 for as_dir in $PATH
11280 do
11281 IFS=$as_save_IFS
11282 test -z "$as_dir" && as_dir=.
11283 for ac_exec_ext in '' $ac_executable_extensions; do
11284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11285 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 break 2
11288 fi
11289 done
11290 done
11291 IFS=$as_save_IFS
11292
11293 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11294 ;;
11295 esac
11296 fi
11297 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11298 if test -n "$PKG_CONFIG"; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11300 $as_echo "$PKG_CONFIG" >&6; }
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11304 fi
11305
11306
11307
11308 if test "$PKG_CONFIG" = "no" ; then
11309 HAVE_XFT=no
11310 else
11311 PKG_CONFIG_MIN_VERSION=0.9.0
11312 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11314 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11315
11316 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11318 $as_echo "yes" >&6; }
11319 succeeded=yes
11320
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11322 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11323 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11325 $as_echo "$XFT_CFLAGS" >&6; }
11326
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11328 $as_echo_n "checking XFT_LIBS... " >&6; }
11329 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11331 $as_echo "$XFT_LIBS" >&6; }
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11335 XFT_CFLAGS=""
11336 XFT_LIBS=""
11337 ## If we have a custom action on failure, don't print errors, but
11338 ## do set a variable so people can do so.
11339 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11340
11341 fi
11342
11343
11344
11345 else
11346 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11347 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11348 fi
11349 fi
11350
11351 if test $succeeded = yes; then
11352 :
11353 else
11354 HAVE_XFT=no
11355 fi
11356
11357 ## Because xftfont.c uses XRenderQueryExtension, we also
11358 ## need to link to -lXrender.
11359 HAVE_XRENDER=no
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11361 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11362 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11363 $as_echo_n "(cached) " >&6
11364 else
11365 ac_check_lib_save_LIBS=$LIBS
11366 LIBS="-lXrender $LIBS"
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369
11370 /* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 char XRenderQueryExtension ();
11377 int
11378 main ()
11379 {
11380 return XRenderQueryExtension ();
11381 ;
11382 return 0;
11383 }
11384 _ACEOF
11385 if ac_fn_c_try_link "$LINENO"; then :
11386 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11387 else
11388 ac_cv_lib_Xrender_XRenderQueryExtension=no
11389 fi
11390 rm -f core conftest.err conftest.$ac_objext \
11391 conftest$ac_exeext conftest.$ac_ext
11392 LIBS=$ac_check_lib_save_LIBS
11393 fi
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11395 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11396 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11397 HAVE_XRENDER=yes
11398 fi
11399
11400 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11401 OLD_CPPFLAGS="$CPPFLAGS"
11402 OLD_CFLAGS="$CFLAGS"
11403 OLD_LIBS="$LIBS"
11404 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11405 CFLAGS="$CFLAGS $XFT_CFLAGS"
11406 XFT_LIBS="-lXrender $XFT_LIBS"
11407 LIBS="$XFT_LIBS $LIBS"
11408 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11409 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11411 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11412 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 ac_check_lib_save_LIBS=$LIBS
11416 LIBS="-lXft $XFT_LIBS $LIBS"
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11419
11420 /* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 char XftFontOpen ();
11427 int
11428 main ()
11429 {
11430 return XftFontOpen ();
11431 ;
11432 return 0;
11433 }
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"; then :
11436 ac_cv_lib_Xft_XftFontOpen=yes
11437 else
11438 ac_cv_lib_Xft_XftFontOpen=no
11439 fi
11440 rm -f core conftest.err conftest.$ac_objext \
11441 conftest$ac_exeext conftest.$ac_ext
11442 LIBS=$ac_check_lib_save_LIBS
11443 fi
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11445 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11446 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11447 HAVE_XFT=yes
11448 fi
11449
11450 fi
11451
11452
11453
11454 if test "${HAVE_XFT}" = "yes"; then
11455
11456 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11457
11458
11459 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11460 else
11461 CPPFLAGS="$OLD_CPPFLAGS"
11462 CFLAGS="$OLD_CFLAGS"
11463 LIBS="$OLD_LIBS"
11464 fi # "${HAVE_XFT}" = "yes"
11465 fi # "$HAVE_XFT" != no
11466 fi # "x${with_xft}" != "xno"
11467
11468 if test "$HAVE_XFT" != "yes"; then
11469 HAVE_XFT=no
11470 fi
11471
11472 ## We used to allow building with FreeType and without Xft.
11473 ## However, the ftx font backend driver is not in good shape.
11474 HAVE_FREETYPE=$HAVE_XFT
11475
11476 HAVE_LIBOTF=no
11477 if test "${HAVE_FREETYPE}" = "yes"; then
11478
11479 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11480
11481 if test "${with_libotf}" != "no"; then
11482
11483 succeeded=no
11484
11485 # Extract the first word of "pkg-config", so it can be a program name with args.
11486 set dummy pkg-config; ac_word=$2
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11488 $as_echo_n "checking for $ac_word... " >&6; }
11489 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 case $PKG_CONFIG in
11493 [\\/]* | ?:[\\/]*)
11494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11495 ;;
11496 *)
11497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11498 for as_dir in $PATH
11499 do
11500 IFS=$as_save_IFS
11501 test -z "$as_dir" && as_dir=.
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506 break 2
11507 fi
11508 done
11509 done
11510 IFS=$as_save_IFS
11511
11512 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11513 ;;
11514 esac
11515 fi
11516 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11517 if test -n "$PKG_CONFIG"; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11519 $as_echo "$PKG_CONFIG" >&6; }
11520 else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11523 fi
11524
11525
11526
11527 if test "$PKG_CONFIG" = "no" ; then
11528 HAVE_LIBOTF=no
11529 else
11530 PKG_CONFIG_MIN_VERSION=0.9.0
11531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11533 $as_echo_n "checking for libotf... " >&6; }
11534
11535 if $PKG_CONFIG --exists "libotf" 2>&5; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11537 $as_echo "yes" >&6; }
11538 succeeded=yes
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11541 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11542 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11544 $as_echo "$LIBOTF_CFLAGS" >&6; }
11545
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11547 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11548 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11550 $as_echo "$LIBOTF_LIBS" >&6; }
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11554 LIBOTF_CFLAGS=""
11555 LIBOTF_LIBS=""
11556 ## If we have a custom action on failure, don't print errors, but
11557 ## do set a variable so people can do so.
11558 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11559
11560 fi
11561
11562
11563
11564 else
11565 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11566 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11567 fi
11568 fi
11569
11570 if test $succeeded = yes; then
11571 HAVE_LIBOTF=yes
11572 else
11573 HAVE_LIBOTF=no
11574 fi
11575
11576 if test "$HAVE_LIBOTF" = "yes"; then
11577
11578 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11579
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11581 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11582 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 ac_check_lib_save_LIBS=$LIBS
11586 LIBS="-lotf $LIBS"
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589
11590 /* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11593 #ifdef __cplusplus
11594 extern "C"
11595 #endif
11596 char OTF_get_variation_glyphs ();
11597 int
11598 main ()
11599 {
11600 return OTF_get_variation_glyphs ();
11601 ;
11602 return 0;
11603 }
11604 _ACEOF
11605 if ac_fn_c_try_link "$LINENO"; then :
11606 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11607 else
11608 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11609 fi
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11613 fi
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11615 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11616 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11617 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11618 else
11619 HAVE_OTF_GET_VARIATION_GLYPHS=no
11620 fi
11621
11622 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11623
11624 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11625
11626 fi
11627 fi
11628 fi
11629 fi
11630
11631 HAVE_M17N_FLT=no
11632 if test "${HAVE_LIBOTF}" = yes; then
11633 if test "${with_m17n_flt}" != "no"; then
11634
11635 succeeded=no
11636
11637 # Extract the first word of "pkg-config", so it can be a program name with args.
11638 set dummy pkg-config; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11640 $as_echo_n "checking for $ac_word... " >&6; }
11641 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 case $PKG_CONFIG in
11645 [\\/]* | ?:[\\/]*)
11646 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11647 ;;
11648 *)
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11651 do
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11656 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 break 2
11659 fi
11660 done
11661 done
11662 IFS=$as_save_IFS
11663
11664 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11665 ;;
11666 esac
11667 fi
11668 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11669 if test -n "$PKG_CONFIG"; then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11671 $as_echo "$PKG_CONFIG" >&6; }
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 $as_echo "no" >&6; }
11675 fi
11676
11677
11678
11679 if test "$PKG_CONFIG" = "no" ; then
11680 HAVE_M17N_FLT=no
11681 else
11682 PKG_CONFIG_MIN_VERSION=0.9.0
11683 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11685 $as_echo_n "checking for m17n-flt... " >&6; }
11686
11687 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11689 $as_echo "yes" >&6; }
11690 succeeded=yes
11691
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11693 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11694 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11696 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11697
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11699 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11700 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11702 $as_echo "$M17N_FLT_LIBS" >&6; }
11703 else
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11705 $as_echo "no" >&6; }
11706 M17N_FLT_CFLAGS=""
11707 M17N_FLT_LIBS=""
11708 ## If we have a custom action on failure, don't print errors, but
11709 ## do set a variable so people can do so.
11710 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11711
11712 fi
11713
11714
11715
11716 else
11717 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11718 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11719 fi
11720 fi
11721
11722 if test $succeeded = yes; then
11723 HAVE_M17N_FLT=yes
11724 else
11725 HAVE_M17N_FLT=no
11726 fi
11727
11728 if test "$HAVE_M17N_FLT" = "yes"; then
11729
11730 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11731
11732 fi
11733 fi
11734 fi
11735 else
11736 HAVE_XFT=no
11737 HAVE_FREETYPE=no
11738 HAVE_LIBOTF=no
11739 HAVE_M17N_FLT=no
11740 fi
11741
11742 ### End of font-backend (under X11) section.
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753 ### Use -lXpm if available, unless `--with-xpm=no'.
11754 HAVE_XPM=no
11755 LIBXPM=
11756 if test "${HAVE_X11}" = "yes"; then
11757 if test "${with_xpm}" != "no"; then
11758 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11759 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11761 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11762 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 ac_check_lib_save_LIBS=$LIBS
11766 LIBS="-lXpm -lX11 $LIBS"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11769
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char XpmReadFileToPixmap ();
11777 int
11778 main ()
11779 {
11780 return XpmReadFileToPixmap ();
11781 ;
11782 return 0;
11783 }
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11787 else
11788 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11789 fi
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 LIBS=$ac_check_lib_save_LIBS
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11795 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11796 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11797 HAVE_XPM=yes
11798 fi
11799
11800 fi
11801
11802
11803 if test "${HAVE_XPM}" = "yes"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11805 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 #include "X11/xpm.h"
11809 #ifndef XpmReturnAllocPixels
11810 no_return_alloc_pixels
11811 #endif
11812
11813 _ACEOF
11814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11815 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11816 HAVE_XPM=no
11817 else
11818 HAVE_XPM=yes
11819 fi
11820 rm -f conftest*
11821
11822
11823 if test "${HAVE_XPM}" = "yes"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11825 $as_echo "yes" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829 fi
11830 fi
11831 fi
11832
11833 if test "${HAVE_XPM}" = "yes"; then
11834
11835 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11836
11837 LIBXPM=-lXpm
11838 fi
11839 fi
11840
11841
11842 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11843 HAVE_JPEG=no
11844 LIBJPEG=
11845 if test "${HAVE_X11}" = "yes"; then
11846 if test "${with_jpeg}" != "no"; then
11847 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11848 if test "x$ac_cv_header_jerror_h" = xyes; then :
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11850 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11851 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 ac_check_lib_save_LIBS=$LIBS
11855 LIBS="-ljpeg $LIBS"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11858
11859 /* Override any GCC internal prototype to avoid an error.
11860 Use char because int might match the return type of a GCC
11861 builtin and then its argument prototype would still apply. */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char jpeg_destroy_compress ();
11866 int
11867 main ()
11868 {
11869 return jpeg_destroy_compress ();
11870 ;
11871 return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_c_try_link "$LINENO"; then :
11875 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11876 else
11877 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881 LIBS=$ac_check_lib_save_LIBS
11882 fi
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11884 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11885 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11886 HAVE_JPEG=yes
11887 fi
11888
11889 fi
11890
11891
11892 fi
11893
11894 if test "${HAVE_JPEG}" = "yes"; then
11895 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11896
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11899 #include <jpeglib.h>
11900 version=JPEG_LIB_VERSION
11901
11902 _ACEOF
11903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11904 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11905 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11906
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11909 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11910 HAVE_JPEG=no
11911 fi
11912 rm -f conftest*
11913
11914 fi
11915 if test "${HAVE_JPEG}" = "yes"; then
11916 LIBJPEG=-ljpeg
11917 fi
11918 fi
11919
11920
11921 ### Use -lpng if available, unless `--with-png=no'.
11922 HAVE_PNG=no
11923 LIBPNG=
11924 if test "${HAVE_X11}" = "yes"; then
11925 if test "${with_png}" != "no"; then
11926 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11927 # in /usr/include/libpng.
11928 for ac_header in png.h libpng/png.h
11929 do :
11930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11933 cat >>confdefs.h <<_ACEOF
11934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 _ACEOF
11936
11937 fi
11938
11939 done
11940
11941 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11943 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11944 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-lpng -lz -lm $LIBS"
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char png_get_channels ();
11959 int
11960 main ()
11961 {
11962 return png_get_channels ();
11963 ;
11964 return 0;
11965 }
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_lib_png_png_get_channels=yes
11969 else
11970 ac_cv_lib_png_png_get_channels=no
11971 fi
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11975 fi
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11977 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11978 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11979 HAVE_PNG=yes
11980 fi
11981
11982 fi
11983 fi
11984
11985 if test "${HAVE_PNG}" = "yes"; then
11986
11987 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11988
11989 LIBPNG="-lpng -lz -lm"
11990 fi
11991 fi
11992
11993
11994 ### Use -ltiff if available, unless `--with-tiff=no'.
11995 HAVE_TIFF=no
11996 LIBTIFF=
11997 if test "${HAVE_X11}" = "yes"; then
11998 if test "${with_tiff}" != "no"; then
11999 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12000 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12001 tifflibs="-lz -lm"
12002 # At least one tiff package requires the jpeg library.
12003 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12005 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12006 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 ac_check_lib_save_LIBS=$LIBS
12010 LIBS="-ltiff $tifflibs $LIBS"
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013
12014 /* Override any GCC internal prototype to avoid an error.
12015 Use char because int might match the return type of a GCC
12016 builtin and then its argument prototype would still apply. */
12017 #ifdef __cplusplus
12018 extern "C"
12019 #endif
12020 char TIFFGetVersion ();
12021 int
12022 main ()
12023 {
12024 return TIFFGetVersion ();
12025 ;
12026 return 0;
12027 }
12028 _ACEOF
12029 if ac_fn_c_try_link "$LINENO"; then :
12030 ac_cv_lib_tiff_TIFFGetVersion=yes
12031 else
12032 ac_cv_lib_tiff_TIFFGetVersion=no
12033 fi
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036 LIBS=$ac_check_lib_save_LIBS
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12039 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12040 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12041 HAVE_TIFF=yes
12042 fi
12043
12044 fi
12045
12046
12047 fi
12048
12049 if test "${HAVE_TIFF}" = "yes"; then
12050
12051 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12052
12053 LIBTIFF=-ltiff
12054 fi
12055 fi
12056
12057
12058 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12059 HAVE_GIF=no
12060 LIBGIF=
12061 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12062 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12063 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12064 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12065 # Earlier versions can crash Emacs.
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12067 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12068 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lgif $LIBS"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char EGifPutExtensionLast ();
12083 int
12084 main ()
12085 {
12086 return EGifPutExtensionLast ();
12087 ;
12088 return 0;
12089 }
12090 _ACEOF
12091 if ac_fn_c_try_link "$LINENO"; then :
12092 ac_cv_lib_gif_EGifPutExtensionLast=yes
12093 else
12094 ac_cv_lib_gif_EGifPutExtensionLast=no
12095 fi
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12099 fi
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12101 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12102 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12103 HAVE_GIF=yes
12104 else
12105 HAVE_GIF=maybe
12106 fi
12107
12108 fi
12109
12110
12111
12112 if test "$HAVE_GIF" = yes; then
12113 LIBGIF=-lgif
12114 elif test "$HAVE_GIF" = maybe; then
12115 # If gif_lib.h but no libgif, try libungif.
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12117 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12118 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 ac_check_lib_save_LIBS=$LIBS
12122 LIBS="-lungif $LIBS"
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 char EGifPutExtensionLast ();
12133 int
12134 main ()
12135 {
12136 return EGifPutExtensionLast ();
12137 ;
12138 return 0;
12139 }
12140 _ACEOF
12141 if ac_fn_c_try_link "$LINENO"; then :
12142 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12143 else
12144 ac_cv_lib_ungif_EGifPutExtensionLast=no
12145 fi
12146 rm -f core conftest.err conftest.$ac_objext \
12147 conftest$ac_exeext conftest.$ac_ext
12148 LIBS=$ac_check_lib_save_LIBS
12149 fi
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12151 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12152 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12153 HAVE_GIF=yes
12154 else
12155 HAVE_GIF=no
12156 fi
12157
12158 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12159 fi
12160
12161 if test "${HAVE_GIF}" = "yes"; then
12162
12163 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12164
12165 fi
12166 fi
12167
12168
12169 if test "${HAVE_X11}" = "yes"; then
12170 MISSING=""
12171 WITH_NO=""
12172 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12173 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12174 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12175 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12176 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12177 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12178 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12179 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12180 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12181 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12182
12183 if test "X${MISSING}" != X; then
12184 as_fn_error $? "The following required libraries were not found:
12185 $MISSING
12186 Maybe some development libraries/packages are missing?
12187 If you don't want to link with them give
12188 $WITH_NO
12189 as options to configure" "$LINENO" 5
12190 fi
12191 fi
12192
12193 ### Use -lgpm if available, unless `--with-gpm=no'.
12194 HAVE_GPM=no
12195 LIBGPM=
12196 MOUSE_SUPPORT=
12197 if test "${with_gpm}" != "no"; then
12198 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12199 if test "x$ac_cv_header_gpm_h" = xyes; then :
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12201 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12202 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-lgpm $LIBS"
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209
12210 /* Override any GCC internal prototype to avoid an error.
12211 Use char because int might match the return type of a GCC
12212 builtin and then its argument prototype would still apply. */
12213 #ifdef __cplusplus
12214 extern "C"
12215 #endif
12216 char Gpm_Open ();
12217 int
12218 main ()
12219 {
12220 return Gpm_Open ();
12221 ;
12222 return 0;
12223 }
12224 _ACEOF
12225 if ac_fn_c_try_link "$LINENO"; then :
12226 ac_cv_lib_gpm_Gpm_Open=yes
12227 else
12228 ac_cv_lib_gpm_Gpm_Open=no
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext \
12231 conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12233 fi
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12235 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12236 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12237 HAVE_GPM=yes
12238 fi
12239
12240 fi
12241
12242
12243
12244 if test "${HAVE_GPM}" = "yes"; then
12245
12246 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12247
12248 LIBGPM=-lgpm
12249 ## May be reset below.
12250 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12251 fi
12252 fi
12253
12254
12255 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12256 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12257
12258 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12259
12260 fi
12261
12262
12263
12264 C_SWITCH_X_SYSTEM=
12265 ### Use NeXTstep API to implement GUI.
12266 if test "${HAVE_NS}" = "yes"; then
12267
12268 $as_echo "#define HAVE_NS 1" >>confdefs.h
12269
12270 if test "${NS_IMPL_COCOA}" = "yes"; then
12271
12272 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12273
12274 GNU_OBJC_CFLAGS=
12275 fi
12276 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12277
12278 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12279
12280 # See also .m.o rule in Makefile.in */
12281 # FIXME: are all these flags really needed? Document here why. */
12282 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12283 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12284 fi
12285 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12286
12287 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12288
12289 fi
12290 # We also have mouse menus.
12291 HAVE_MENUS=yes
12292 OTHER_FILES=ns-app
12293 fi
12294
12295
12296 ### Use session management (-lSM -lICE) if available
12297 HAVE_X_SM=no
12298 LIBXSM=
12299 if test "${HAVE_X11}" = "yes"; then
12300 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12301 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12303 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12304 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-lSM -lICE $LIBS"
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12311
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12315 #ifdef __cplusplus
12316 extern "C"
12317 #endif
12318 char SmcOpenConnection ();
12319 int
12320 main ()
12321 {
12322 return SmcOpenConnection ();
12323 ;
12324 return 0;
12325 }
12326 _ACEOF
12327 if ac_fn_c_try_link "$LINENO"; then :
12328 ac_cv_lib_SM_SmcOpenConnection=yes
12329 else
12330 ac_cv_lib_SM_SmcOpenConnection=no
12331 fi
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12334 LIBS=$ac_check_lib_save_LIBS
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12337 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12338 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12339 HAVE_X_SM=yes
12340 fi
12341
12342 fi
12343
12344
12345
12346 if test "${HAVE_X_SM}" = "yes"; then
12347
12348 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12349
12350 LIBXSM="-lSM -lICE"
12351 case "$LIBS" in
12352 *-lSM*) ;;
12353 *) LIBS="$LIBXSM $LIBS" ;;
12354 esac
12355 fi
12356 fi
12357
12358
12359 ### Use libxml (-lxml2) if available
12360 if test "${with_xml2}" != "no"; then
12361 ### I'm not sure what the version number should be, so I just guessed.
12362
12363 succeeded=no
12364
12365 # Extract the first word of "pkg-config", so it can be a program name with args.
12366 set dummy pkg-config; ac_word=$2
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12368 $as_echo_n "checking for $ac_word... " >&6; }
12369 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 case $PKG_CONFIG in
12373 [\\/]* | ?:[\\/]*)
12374 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12375 ;;
12376 *)
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12379 do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12387 fi
12388 done
12389 done
12390 IFS=$as_save_IFS
12391
12392 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12393 ;;
12394 esac
12395 fi
12396 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12397 if test -n "$PKG_CONFIG"; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12399 $as_echo "$PKG_CONFIG" >&6; }
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12403 fi
12404
12405
12406
12407 if test "$PKG_CONFIG" = "no" ; then
12408 HAVE_LIBXML2=no
12409 else
12410 PKG_CONFIG_MIN_VERSION=0.9.0
12411 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12413 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12414
12415 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12417 $as_echo "yes" >&6; }
12418 succeeded=yes
12419
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12421 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12422 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12424 $as_echo "$LIBXML2_CFLAGS" >&6; }
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12427 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12428 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12430 $as_echo "$LIBXML2_LIBS" >&6; }
12431 else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12434 LIBXML2_CFLAGS=""
12435 LIBXML2_LIBS=""
12436 ## If we have a custom action on failure, don't print errors, but
12437 ## do set a variable so people can do so.
12438 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12439
12440 fi
12441
12442
12443
12444 else
12445 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12446 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12447 fi
12448 fi
12449
12450 if test $succeeded = yes; then
12451 HAVE_LIBXML2=yes
12452 else
12453 HAVE_LIBXML2=no
12454 fi
12455
12456 if test "${HAVE_LIBXML2}" = "yes"; then
12457 LIBS="$LIBXML2_LIBS $LIBS"
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12459 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12460 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 ac_check_lib_save_LIBS=$LIBS
12464 LIBS="-lxml2 $LIBS"
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12467
12468 /* Override any GCC internal prototype to avoid an error.
12469 Use char because int might match the return type of a GCC
12470 builtin and then its argument prototype would still apply. */
12471 #ifdef __cplusplus
12472 extern "C"
12473 #endif
12474 char htmlReadMemory ();
12475 int
12476 main ()
12477 {
12478 return htmlReadMemory ();
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 if ac_fn_c_try_link "$LINENO"; then :
12484 ac_cv_lib_xml2_htmlReadMemory=yes
12485 else
12486 ac_cv_lib_xml2_htmlReadMemory=no
12487 fi
12488 rm -f core conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12490 LIBS=$ac_check_lib_save_LIBS
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12493 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12494 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12495 HAVE_LIBXML2=yes
12496 else
12497 HAVE_LIBXML2=no
12498 fi
12499
12500 if test "${HAVE_LIBXML2}" = "yes"; then
12501
12502 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12503
12504 else
12505 LIBXML2_LIBS=""
12506 LIBXML2_CFLAGS=""
12507 fi
12508 fi
12509 fi
12510
12511
12512
12513 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12515 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12516 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12521 #include <netdb.h>
12522 int
12523 main ()
12524 {
12525 return h_errno;
12526 ;
12527 return 0;
12528 }
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 emacs_cv_netdb_declares_h_errno=yes
12532 else
12533 emacs_cv_netdb_declares_h_errno=no
12534 fi
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12539 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12540 if test $emacs_cv_netdb_declares_h_errno = yes; then
12541
12542 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12543
12544 fi
12545
12546 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12547 if test "x$ac_cv_type_size_t" = xyes; then :
12548
12549 else
12550
12551 cat >>confdefs.h <<_ACEOF
12552 #define size_t unsigned int
12553 _ACEOF
12554
12555 fi
12556
12557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12558 # for constant arguments. Useless!
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12560 $as_echo_n "checking for working alloca.h... " >&6; }
12561 if ${ac_cv_working_alloca_h+:} false; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 #include <alloca.h>
12567 int
12568 main ()
12569 {
12570 char *p = (char *) alloca (2 * sizeof (int));
12571 if (p) return 0;
12572 ;
12573 return 0;
12574 }
12575 _ACEOF
12576 if ac_fn_c_try_link "$LINENO"; then :
12577 ac_cv_working_alloca_h=yes
12578 else
12579 ac_cv_working_alloca_h=no
12580 fi
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12583 fi
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12585 $as_echo "$ac_cv_working_alloca_h" >&6; }
12586 if test $ac_cv_working_alloca_h = yes; then
12587
12588 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12589
12590 fi
12591
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12593 $as_echo_n "checking for alloca... " >&6; }
12594 if ${ac_cv_func_alloca_works+:} false; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 #ifdef __GNUC__
12600 # define alloca __builtin_alloca
12601 #else
12602 # ifdef _MSC_VER
12603 # include <malloc.h>
12604 # define alloca _alloca
12605 # else
12606 # ifdef HAVE_ALLOCA_H
12607 # include <alloca.h>
12608 # else
12609 # ifdef _AIX
12610 #pragma alloca
12611 # else
12612 # ifndef alloca /* predefined by HP cc +Olibcalls */
12613 void *alloca (size_t);
12614 # endif
12615 # endif
12616 # endif
12617 # endif
12618 #endif
12619
12620 int
12621 main ()
12622 {
12623 char *p = (char *) alloca (1);
12624 if (p) return 0;
12625 ;
12626 return 0;
12627 }
12628 _ACEOF
12629 if ac_fn_c_try_link "$LINENO"; then :
12630 ac_cv_func_alloca_works=yes
12631 else
12632 ac_cv_func_alloca_works=no
12633 fi
12634 rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636 fi
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12638 $as_echo "$ac_cv_func_alloca_works" >&6; }
12639
12640 if test $ac_cv_func_alloca_works = yes; then
12641
12642 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12643
12644 else
12645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12646 # that cause trouble. Some versions do not even contain alloca or
12647 # contain a buggy version. If you still want to use their alloca,
12648 # use ar to extract alloca.o from them instead of compiling alloca.c.
12649
12650 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12651
12652 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12653
12654
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12656 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12657 if ${ac_cv_os_cray+:} false; then :
12658 $as_echo_n "(cached) " >&6
12659 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662 #if defined CRAY && ! defined CRAY2
12663 webecray
12664 #else
12665 wenotbecray
12666 #endif
12667
12668 _ACEOF
12669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12670 $EGREP "webecray" >/dev/null 2>&1; then :
12671 ac_cv_os_cray=yes
12672 else
12673 ac_cv_os_cray=no
12674 fi
12675 rm -f conftest*
12676
12677 fi
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12679 $as_echo "$ac_cv_os_cray" >&6; }
12680 if test $ac_cv_os_cray = yes; then
12681 for ac_func in _getb67 GETB67 getb67; do
12682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12683 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12684 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12685
12686 cat >>confdefs.h <<_ACEOF
12687 #define CRAY_STACKSEG_END $ac_func
12688 _ACEOF
12689
12690 break
12691 fi
12692
12693 done
12694 fi
12695
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12697 $as_echo_n "checking stack direction for C alloca... " >&6; }
12698 if ${ac_cv_c_stack_direction+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 if test "$cross_compiling" = yes; then :
12702 ac_cv_c_stack_direction=0
12703 else
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 $ac_includes_default
12707 int
12708 find_stack_direction ()
12709 {
12710 static char *addr = 0;
12711 auto char dummy;
12712 if (addr == 0)
12713 {
12714 addr = &dummy;
12715 return find_stack_direction ();
12716 }
12717 else
12718 return (&dummy > addr) ? 1 : -1;
12719 }
12720
12721 int
12722 main ()
12723 {
12724 return find_stack_direction () < 0;
12725 }
12726 _ACEOF
12727 if ac_fn_c_try_run "$LINENO"; then :
12728 ac_cv_c_stack_direction=1
12729 else
12730 ac_cv_c_stack_direction=-1
12731 fi
12732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12733 conftest.$ac_objext conftest.beam conftest.$ac_ext
12734 fi
12735
12736 fi
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12738 $as_echo "$ac_cv_c_stack_direction" >&6; }
12739 cat >>confdefs.h <<_ACEOF
12740 #define STACK_DIRECTION $ac_cv_c_stack_direction
12741 _ACEOF
12742
12743
12744 fi
12745
12746
12747 if test x"$ac_cv_func_alloca_works" != xyes; then
12748 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12749 fi
12750
12751 # fmod, logb, and frexp are found in -lm on most systems.
12752 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12754 $as_echo_n "checking for sqrt in -lm... " >&6; }
12755 if ${ac_cv_lib_m_sqrt+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 ac_check_lib_save_LIBS=$LIBS
12759 LIBS="-lm $LIBS"
12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h. */
12762
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 sqrt ();
12770 int
12771 main ()
12772 {
12773 return sqrt ();
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 if ac_fn_c_try_link "$LINENO"; then :
12779 ac_cv_lib_m_sqrt=yes
12780 else
12781 ac_cv_lib_m_sqrt=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785 LIBS=$ac_check_lib_save_LIBS
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12788 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12789 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12790 cat >>confdefs.h <<_ACEOF
12791 #define HAVE_LIBM 1
12792 _ACEOF
12793
12794 LIBS="-lm $LIBS"
12795
12796 fi
12797
12798
12799 # Check for mail-locking functions in a "mail" library. Probably this should
12800 # have the same check as for liblockfile below.
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12802 $as_echo_n "checking for maillock in -lmail... " >&6; }
12803 if ${ac_cv_lib_mail_maillock+:} false; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-lmail $LIBS"
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810
12811 /* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12814 #ifdef __cplusplus
12815 extern "C"
12816 #endif
12817 char maillock ();
12818 int
12819 main ()
12820 {
12821 return maillock ();
12822 ;
12823 return 0;
12824 }
12825 _ACEOF
12826 if ac_fn_c_try_link "$LINENO"; then :
12827 ac_cv_lib_mail_maillock=yes
12828 else
12829 ac_cv_lib_mail_maillock=no
12830 fi
12831 rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
12833 LIBS=$ac_check_lib_save_LIBS
12834 fi
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12836 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12837 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12838 have_mail=yes
12839 else
12840 have_mail=no
12841 fi
12842
12843 if test $have_mail = yes; then
12844 LIBS_MAIL=-lmail
12845 LIBS="$LIBS_MAIL $LIBS"
12846
12847 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12848
12849 else
12850 LIBS_MAIL=
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12853 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12854 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856 else
12857 ac_check_lib_save_LIBS=$LIBS
12858 LIBS="-llockfile $LIBS"
12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860 /* end confdefs.h. */
12861
12862 /* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
12865 #ifdef __cplusplus
12866 extern "C"
12867 #endif
12868 char maillock ();
12869 int
12870 main ()
12871 {
12872 return maillock ();
12873 ;
12874 return 0;
12875 }
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"; then :
12878 ac_cv_lib_lockfile_maillock=yes
12879 else
12880 ac_cv_lib_lockfile_maillock=no
12881 fi
12882 rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 LIBS=$ac_check_lib_save_LIBS
12885 fi
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12887 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12888 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12889 have_lockfile=yes
12890 else
12891 have_lockfile=no
12892 fi
12893
12894 if test $have_lockfile = yes; then
12895 LIBS_MAIL=-llockfile
12896 LIBS="$LIBS_MAIL $LIBS"
12897
12898 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12899
12900 else
12901 # If we have the shared liblockfile, assume we must use it for mail
12902 # locking (e.g. Debian). If we couldn't link against liblockfile
12903 # (no liblockfile.a installed), ensure that we don't need to.
12904 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12905 set dummy liblockfile.so; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_prog_liblockfile+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 if test -n "$liblockfile"; then
12912 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12913 else
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12916 for as_dir in $as_dummy
12917 do
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12922 ac_cv_prog_liblockfile="yes"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12925 fi
12926 done
12927 done
12928 IFS=$as_save_IFS
12929
12930 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12931 fi
12932 fi
12933 liblockfile=$ac_cv_prog_liblockfile
12934 if test -n "$liblockfile"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12936 $as_echo "$liblockfile" >&6; }
12937 else
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12940 fi
12941
12942
12943 if test $ac_cv_prog_liblockfile = yes; then
12944 as_fn_error $? "Shared liblockfile found but can't link against it.
12945 This probably means that movemail could lose mail.
12946 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12947 fi
12948 fi
12949 for ac_func in touchlock
12950 do :
12951 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12952 if test "x$ac_cv_func_touchlock" = xyes; then :
12953 cat >>confdefs.h <<_ACEOF
12954 #define HAVE_TOUCHLOCK 1
12955 _ACEOF
12956
12957 fi
12958 done
12959
12960 for ac_header in maillock.h
12961 do :
12962 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12963 if test "x$ac_cv_header_maillock_h" = xyes; then :
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_MAILLOCK_H 1
12966 _ACEOF
12967
12968 fi
12969
12970 done
12971
12972
12973
12974 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12975 ## interlock access to the mail spool. The alternative is a lock file named
12976 ## /usr/spool/mail/$USER.lock.
12977 mail_lock=no
12978 case "$opsys" in
12979 aix4-2) mail_lock="lockf" ;;
12980
12981 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12982
12983 ## On GNU/Linux systems, both methods are used by various mail programs.
12984 ## I assume most people are using newer mailers that have heard of flock.
12985 ## Change this if you need to.
12986 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12987 ## configure gets the right answers, and that means *NOT* using flock.
12988 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12989 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12990 ## Debian maintainer hasn't provided a clean fix for Emacs.
12991 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12992 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12993 ## correct logic. -- fx
12994 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12995 ## liblockfile is a Free Software replacement for libmail, used on
12996 ## Debian systems and elsewhere. -rfr.
12997 gnu-*)
12998 mail_lock="flock"
12999 if test $have_mail = yes || test $have_lockfile = yes; then
13000 test $ac_cv_header_maillock_h = yes && mail_lock=no
13001 fi
13002 ;;
13003 esac
13004
13005 BLESSMAIL_TARGET=
13006 case "$mail_lock" in
13007 flock)
13008 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13009 ;;
13010
13011 lockf)
13012 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13013 ;;
13014
13015 *) BLESSMAIL_TARGET="need-blessmail" ;;
13016 esac
13017
13018
13019
13020 for ac_func in gethostname getdomainname dup2 \
13021 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13022 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13023 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13024 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13025 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13026 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13027 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13028 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13029 cfmakeraw cfsetspeed isnan copysign __executable_start
13030 do :
13031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13033 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13034 cat >>confdefs.h <<_ACEOF
13035 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13036 _ACEOF
13037
13038 fi
13039 done
13040
13041
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13043 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13044 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049
13050 int
13051 main ()
13052 {
13053 __builtin_unwind_init ();
13054 ;
13055 return 0;
13056 }
13057 _ACEOF
13058 if ac_fn_c_try_link "$LINENO"; then :
13059 emacs_cv_func___builtin_unwind_init=yes
13060 else
13061 emacs_cv_func___builtin_unwind_init=no
13062 fi
13063 rm -f core conftest.err conftest.$ac_objext \
13064 conftest$ac_exeext conftest.$ac_ext
13065 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13067 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13068 if test $emacs_cv_func___builtin_unwind_init = yes; then
13069
13070 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13071
13072 fi
13073
13074 for ac_header in sys/un.h
13075 do :
13076 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13077 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13078 cat >>confdefs.h <<_ACEOF
13079 #define HAVE_SYS_UN_H 1
13080 _ACEOF
13081
13082 fi
13083
13084 done
13085
13086
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13088 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13089 if ${ac_cv_sys_largefile_source+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 while :; do
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #include <sys/types.h> /* for off_t */
13096 #include <stdio.h>
13097 int
13098 main ()
13099 {
13100 int (*fp) (FILE *, off_t, int) = fseeko;
13101 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 if ac_fn_c_try_link "$LINENO"; then :
13107 ac_cv_sys_largefile_source=no; break
13108 fi
13109 rm -f core conftest.err conftest.$ac_objext \
13110 conftest$ac_exeext conftest.$ac_ext
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113 #define _LARGEFILE_SOURCE 1
13114 #include <sys/types.h> /* for off_t */
13115 #include <stdio.h>
13116 int
13117 main ()
13118 {
13119 int (*fp) (FILE *, off_t, int) = fseeko;
13120 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13121 ;
13122 return 0;
13123 }
13124 _ACEOF
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 ac_cv_sys_largefile_source=1; break
13127 fi
13128 rm -f core conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130 ac_cv_sys_largefile_source=unknown
13131 break
13132 done
13133 fi
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13135 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13136 case $ac_cv_sys_largefile_source in #(
13137 no | unknown) ;;
13138 *)
13139 cat >>confdefs.h <<_ACEOF
13140 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13141 _ACEOF
13142 ;;
13143 esac
13144 rm -rf conftest*
13145
13146 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13147 # in glibc 2.1.3, but that breaks too many other things.
13148 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13149 if test $ac_cv_sys_largefile_source != unknown; then
13150
13151 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13152
13153 fi
13154
13155
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13157 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13158 if ${ac_cv_func_getpgrp_void+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 # Use it with a single arg.
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 $ac_includes_default
13165 int
13166 main ()
13167 {
13168 getpgrp (0);
13169 ;
13170 return 0;
13171 }
13172 _ACEOF
13173 if ac_fn_c_try_compile "$LINENO"; then :
13174 ac_cv_func_getpgrp_void=no
13175 else
13176 ac_cv_func_getpgrp_void=yes
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13182 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13183 if test $ac_cv_func_getpgrp_void = yes; then
13184
13185 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13186
13187 fi
13188
13189
13190 # Configure gnulib.
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201 LIBC_FATAL_STDERR_=1
13202 export LIBC_FATAL_STDERR_
13203
13204
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13206 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13207 if ${ac_cv_c_bigendian+:} false; then :
13208 $as_echo_n "(cached) " >&6
13209 else
13210 ac_cv_c_bigendian=unknown
13211 # See if we're dealing with a universal compiler.
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214 #ifndef __APPLE_CC__
13215 not a universal capable compiler
13216 #endif
13217 typedef int dummy;
13218
13219 _ACEOF
13220 if ac_fn_c_try_compile "$LINENO"; then :
13221
13222 # Check for potential -arch flags. It is not universal unless
13223 # there are at least two -arch flags with different values.
13224 ac_arch=
13225 ac_prev=
13226 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13227 if test -n "$ac_prev"; then
13228 case $ac_word in
13229 i?86 | x86_64 | ppc | ppc64)
13230 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13231 ac_arch=$ac_word
13232 else
13233 ac_cv_c_bigendian=universal
13234 break
13235 fi
13236 ;;
13237 esac
13238 ac_prev=
13239 elif test "x$ac_word" = "x-arch"; then
13240 ac_prev=arch
13241 fi
13242 done
13243 fi
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 if test $ac_cv_c_bigendian = unknown; then
13246 # See if sys/param.h defines the BYTE_ORDER macro.
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 #include <sys/types.h>
13250 #include <sys/param.h>
13251
13252 int
13253 main ()
13254 {
13255 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13256 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13257 && LITTLE_ENDIAN)
13258 bogus endian macros
13259 #endif
13260
13261 ;
13262 return 0;
13263 }
13264 _ACEOF
13265 if ac_fn_c_try_compile "$LINENO"; then :
13266 # It does; now see whether it defined to BIG_ENDIAN or not.
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13269 #include <sys/types.h>
13270 #include <sys/param.h>
13271
13272 int
13273 main ()
13274 {
13275 #if BYTE_ORDER != BIG_ENDIAN
13276 not big endian
13277 #endif
13278
13279 ;
13280 return 0;
13281 }
13282 _ACEOF
13283 if ac_fn_c_try_compile "$LINENO"; then :
13284 ac_cv_c_bigendian=yes
13285 else
13286 ac_cv_c_bigendian=no
13287 fi
13288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 fi
13292 if test $ac_cv_c_bigendian = unknown; then
13293 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 #include <limits.h>
13297
13298 int
13299 main ()
13300 {
13301 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13302 bogus endian macros
13303 #endif
13304
13305 ;
13306 return 0;
13307 }
13308 _ACEOF
13309 if ac_fn_c_try_compile "$LINENO"; then :
13310 # It does; now see whether it defined to _BIG_ENDIAN or not.
13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313 #include <limits.h>
13314
13315 int
13316 main ()
13317 {
13318 #ifndef _BIG_ENDIAN
13319 not big endian
13320 #endif
13321
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_c_try_compile "$LINENO"; then :
13327 ac_cv_c_bigendian=yes
13328 else
13329 ac_cv_c_bigendian=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 fi
13335 if test $ac_cv_c_bigendian = unknown; then
13336 # Compile a test program.
13337 if test "$cross_compiling" = yes; then :
13338 # Try to guess by grepping values from an object file.
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341 short int ascii_mm[] =
13342 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13343 short int ascii_ii[] =
13344 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13345 int use_ascii (int i) {
13346 return ascii_mm[i] + ascii_ii[i];
13347 }
13348 short int ebcdic_ii[] =
13349 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13350 short int ebcdic_mm[] =
13351 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13352 int use_ebcdic (int i) {
13353 return ebcdic_mm[i] + ebcdic_ii[i];
13354 }
13355 extern int foo;
13356
13357 int
13358 main ()
13359 {
13360 return use_ascii (foo) == use_ebcdic (foo);
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 if ac_fn_c_try_compile "$LINENO"; then :
13366 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13367 ac_cv_c_bigendian=yes
13368 fi
13369 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13370 if test "$ac_cv_c_bigendian" = unknown; then
13371 ac_cv_c_bigendian=no
13372 else
13373 # finding both strings is unlikely to happen, but who knows?
13374 ac_cv_c_bigendian=unknown
13375 fi
13376 fi
13377 fi
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 else
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 $ac_includes_default
13383 int
13384 main ()
13385 {
13386
13387 /* Are we little or big endian? From Harbison&Steele. */
13388 union
13389 {
13390 long int l;
13391 char c[sizeof (long int)];
13392 } u;
13393 u.l = 1;
13394 return u.c[sizeof (long int) - 1] == 1;
13395
13396 ;
13397 return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_c_try_run "$LINENO"; then :
13401 ac_cv_c_bigendian=no
13402 else
13403 ac_cv_c_bigendian=yes
13404 fi
13405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13406 conftest.$ac_objext conftest.beam conftest.$ac_ext
13407 fi
13408
13409 fi
13410 fi
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13412 $as_echo "$ac_cv_c_bigendian" >&6; }
13413 case $ac_cv_c_bigendian in #(
13414 yes)
13415 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13416 ;; #(
13417 no)
13418 ;; #(
13419 universal)
13420
13421 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13422
13423 ;; #(
13424 *)
13425 as_fn_error $? "unknown endianness
13426 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13427 esac
13428
13429
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13431 $as_echo_n "checking for inline... " >&6; }
13432 if ${ac_cv_c_inline+:} false; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13435 ac_cv_c_inline=no
13436 for ac_kw in inline __inline__ __inline; do
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 #ifndef __cplusplus
13440 typedef int foo_t;
13441 static $ac_kw foo_t static_foo () {return 0; }
13442 $ac_kw foo_t foo () {return 0; }
13443 #endif
13444
13445 _ACEOF
13446 if ac_fn_c_try_compile "$LINENO"; then :
13447 ac_cv_c_inline=$ac_kw
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 test "$ac_cv_c_inline" != no && break
13451 done
13452
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13455 $as_echo "$ac_cv_c_inline" >&6; }
13456
13457 case $ac_cv_c_inline in
13458 inline | yes) ;;
13459 *)
13460 case $ac_cv_c_inline in
13461 no) ac_val=;;
13462 *) ac_val=$ac_cv_c_inline;;
13463 esac
13464 cat >>confdefs.h <<_ACEOF
13465 #ifndef __cplusplus
13466 #define inline $ac_val
13467 #endif
13468 _ACEOF
13469 ;;
13470 esac
13471
13472
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13474 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13475 if ${gl_cv_func_c99_strtold+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 /* On HP-UX before 11.23, strtold returns a struct instead of
13481 long double. Reject implementations like that, by requiring
13482 compatibility with the C99 prototype. */
13483 #include <stdlib.h>
13484 static long double (*p) (char const *, char **) = strtold;
13485 static long double
13486 test (char const *nptr, char **endptr)
13487 {
13488 long double r;
13489 r = strtold (nptr, endptr);
13490 return r;
13491 }
13492 int
13493 main ()
13494 {
13495 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13496 ;
13497 return 0;
13498 }
13499 _ACEOF
13500 if ac_fn_c_try_link "$LINENO"; then :
13501 gl_cv_func_c99_strtold=yes
13502 else
13503 gl_cv_func_c99_strtold=no
13504 fi
13505 rm -f core conftest.err conftest.$ac_objext \
13506 conftest$ac_exeext conftest.$ac_ext
13507 fi
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13509 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13510 if test $gl_cv_func_c99_strtold = yes; then
13511
13512 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13513
13514 fi
13515
13516
13517 GNULIB__EXIT=0;
13518 GNULIB_ATOLL=0;
13519 GNULIB_CALLOC_POSIX=0;
13520 GNULIB_CANONICALIZE_FILE_NAME=0;
13521 GNULIB_GETLOADAVG=0;
13522 GNULIB_GETSUBOPT=0;
13523 GNULIB_GRANTPT=0;
13524 GNULIB_MALLOC_POSIX=0;
13525 GNULIB_MKDTEMP=0;
13526 GNULIB_MKOSTEMP=0;
13527 GNULIB_MKOSTEMPS=0;
13528 GNULIB_MKSTEMP=0;
13529 GNULIB_MKSTEMPS=0;
13530 GNULIB_PTSNAME=0;
13531 GNULIB_PUTENV=0;
13532 GNULIB_RANDOM_R=0;
13533 GNULIB_REALLOC_POSIX=0;
13534 GNULIB_REALPATH=0;
13535 GNULIB_RPMATCH=0;
13536 GNULIB_SETENV=0;
13537 GNULIB_STRTOD=0;
13538 GNULIB_STRTOLL=0;
13539 GNULIB_STRTOULL=0;
13540 GNULIB_SYSTEM_POSIX=0;
13541 GNULIB_UNLOCKPT=0;
13542 GNULIB_UNSETENV=0;
13543 HAVE__EXIT=1;
13544 HAVE_ATOLL=1;
13545 HAVE_CANONICALIZE_FILE_NAME=1;
13546 HAVE_DECL_GETLOADAVG=1;
13547 HAVE_GETSUBOPT=1;
13548 HAVE_GRANTPT=1;
13549 HAVE_MKDTEMP=1;
13550 HAVE_MKOSTEMP=1;
13551 HAVE_MKOSTEMPS=1;
13552 HAVE_MKSTEMP=1;
13553 HAVE_MKSTEMPS=1;
13554 HAVE_PTSNAME=1;
13555 HAVE_RANDOM_H=1;
13556 HAVE_RANDOM_R=1;
13557 HAVE_REALPATH=1;
13558 HAVE_RPMATCH=1;
13559 HAVE_SETENV=1;
13560 HAVE_DECL_SETENV=1;
13561 HAVE_STRTOD=1;
13562 HAVE_STRTOLL=1;
13563 HAVE_STRTOULL=1;
13564 HAVE_STRUCT_RANDOM_DATA=1;
13565 HAVE_SYS_LOADAVG_H=0;
13566 HAVE_UNLOCKPT=1;
13567 HAVE_DECL_UNSETENV=1;
13568 REPLACE_CALLOC=0;
13569 REPLACE_CANONICALIZE_FILE_NAME=0;
13570 REPLACE_MALLOC=0;
13571 REPLACE_MKSTEMP=0;
13572 REPLACE_PUTENV=0;
13573 REPLACE_REALLOC=0;
13574 REPLACE_REALPATH=0;
13575 REPLACE_SETENV=0;
13576 REPLACE_STRTOD=0;
13577 REPLACE_UNSETENV=0;
13578
13579
13580 GNULIB_CHOWN=0;
13581 GNULIB_CLOSE=0;
13582 GNULIB_DUP2=0;
13583 GNULIB_DUP3=0;
13584 GNULIB_ENVIRON=0;
13585 GNULIB_EUIDACCESS=0;
13586 GNULIB_FACCESSAT=0;
13587 GNULIB_FCHDIR=0;
13588 GNULIB_FCHOWNAT=0;
13589 GNULIB_FSYNC=0;
13590 GNULIB_FTRUNCATE=0;
13591 GNULIB_GETCWD=0;
13592 GNULIB_GETDOMAINNAME=0;
13593 GNULIB_GETDTABLESIZE=0;
13594 GNULIB_GETGROUPS=0;
13595 GNULIB_GETHOSTNAME=0;
13596 GNULIB_GETLOGIN=0;
13597 GNULIB_GETLOGIN_R=0;
13598 GNULIB_GETPAGESIZE=0;
13599 GNULIB_GETUSERSHELL=0;
13600 GNULIB_LCHOWN=0;
13601 GNULIB_LINK=0;
13602 GNULIB_LINKAT=0;
13603 GNULIB_LSEEK=0;
13604 GNULIB_PIPE=0;
13605 GNULIB_PIPE2=0;
13606 GNULIB_PREAD=0;
13607 GNULIB_PWRITE=0;
13608 GNULIB_READLINK=0;
13609 GNULIB_READLINKAT=0;
13610 GNULIB_RMDIR=0;
13611 GNULIB_SLEEP=0;
13612 GNULIB_SYMLINK=0;
13613 GNULIB_SYMLINKAT=0;
13614 GNULIB_TTYNAME_R=0;
13615 GNULIB_UNISTD_H_GETOPT=0;
13616 GNULIB_UNISTD_H_SIGPIPE=0;
13617 GNULIB_UNLINK=0;
13618 GNULIB_UNLINKAT=0;
13619 GNULIB_USLEEP=0;
13620 GNULIB_WRITE=0;
13621 HAVE_CHOWN=1;
13622 HAVE_DUP2=1;
13623 HAVE_DUP3=1;
13624 HAVE_EUIDACCESS=1;
13625 HAVE_FACCESSAT=1;
13626 HAVE_FCHDIR=1;
13627 HAVE_FCHOWNAT=1;
13628 HAVE_FSYNC=1;
13629 HAVE_FTRUNCATE=1;
13630 HAVE_GETDTABLESIZE=1;
13631 HAVE_GETGROUPS=1;
13632 HAVE_GETHOSTNAME=1;
13633 HAVE_GETLOGIN=1;
13634 HAVE_GETPAGESIZE=1;
13635 HAVE_LCHOWN=1;
13636 HAVE_LINK=1;
13637 HAVE_LINKAT=1;
13638 HAVE_PIPE=1;
13639 HAVE_PIPE2=1;
13640 HAVE_PREAD=1;
13641 HAVE_PWRITE=1;
13642 HAVE_READLINK=1;
13643 HAVE_READLINKAT=1;
13644 HAVE_SLEEP=1;
13645 HAVE_SYMLINK=1;
13646 HAVE_SYMLINKAT=1;
13647 HAVE_UNLINKAT=1;
13648 HAVE_USLEEP=1;
13649 HAVE_DECL_ENVIRON=1;
13650 HAVE_DECL_FCHDIR=1;
13651 HAVE_DECL_GETDOMAINNAME=1;
13652 HAVE_DECL_GETLOGIN_R=1;
13653 HAVE_DECL_GETPAGESIZE=1;
13654 HAVE_DECL_GETUSERSHELL=1;
13655 HAVE_DECL_TTYNAME_R=1;
13656 HAVE_OS_H=0;
13657 HAVE_SYS_PARAM_H=0;
13658 REPLACE_CHOWN=0;
13659 REPLACE_CLOSE=0;
13660 REPLACE_DUP=0;
13661 REPLACE_DUP2=0;
13662 REPLACE_FCHOWNAT=0;
13663 REPLACE_GETCWD=0;
13664 REPLACE_GETDOMAINNAME=0;
13665 REPLACE_GETLOGIN_R=0;
13666 REPLACE_GETGROUPS=0;
13667 REPLACE_GETPAGESIZE=0;
13668 REPLACE_LCHOWN=0;
13669 REPLACE_LINK=0;
13670 REPLACE_LINKAT=0;
13671 REPLACE_LSEEK=0;
13672 REPLACE_PREAD=0;
13673 REPLACE_PWRITE=0;
13674 REPLACE_READLINK=0;
13675 REPLACE_RMDIR=0;
13676 REPLACE_SLEEP=0;
13677 REPLACE_SYMLINK=0;
13678 REPLACE_TTYNAME_R=0;
13679 REPLACE_UNLINK=0;
13680 REPLACE_UNLINKAT=0;
13681 REPLACE_USLEEP=0;
13682 REPLACE_WRITE=0;
13683 UNISTD_H_HAVE_WINSOCK2_H=0;
13684 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13685
13686
13687
13688
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13690 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13691 if ${gl_cv_have_include_next+:} false; then :
13692 $as_echo_n "(cached) " >&6
13693 else
13694 rm -rf conftestd1a conftestd1b conftestd2
13695 mkdir conftestd1a conftestd1b conftestd2
13696 cat <<EOF > conftestd1a/conftest.h
13697 #define DEFINED_IN_CONFTESTD1
13698 #include_next <conftest.h>
13699 #ifdef DEFINED_IN_CONFTESTD2
13700 int foo;
13701 #else
13702 #error "include_next doesn't work"
13703 #endif
13704 EOF
13705 cat <<EOF > conftestd1b/conftest.h
13706 #define DEFINED_IN_CONFTESTD1
13707 #include <stdio.h>
13708 #include_next <conftest.h>
13709 #ifdef DEFINED_IN_CONFTESTD2
13710 int foo;
13711 #else
13712 #error "include_next doesn't work"
13713 #endif
13714 EOF
13715 cat <<EOF > conftestd2/conftest.h
13716 #ifndef DEFINED_IN_CONFTESTD1
13717 #error "include_next test doesn't work"
13718 #endif
13719 #define DEFINED_IN_CONFTESTD2
13720 EOF
13721 gl_save_CPPFLAGS="$CPPFLAGS"
13722 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13725 #include <conftest.h>
13726 _ACEOF
13727 if ac_fn_c_try_compile "$LINENO"; then :
13728 gl_cv_have_include_next=yes
13729 else
13730 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #include <conftest.h>
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 gl_cv_have_include_next=buggy
13737 else
13738 gl_cv_have_include_next=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 CPPFLAGS="$gl_save_CPPFLAGS"
13745 rm -rf conftestd1a conftestd1b conftestd2
13746
13747 fi
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13749 $as_echo "$gl_cv_have_include_next" >&6; }
13750 PRAGMA_SYSTEM_HEADER=
13751 if test $gl_cv_have_include_next = yes; then
13752 INCLUDE_NEXT=include_next
13753 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13754 if test -n "$GCC"; then
13755 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13756 fi
13757 else
13758 if test $gl_cv_have_include_next = buggy; then
13759 INCLUDE_NEXT=include
13760 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13761 else
13762 INCLUDE_NEXT=include
13763 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13764 fi
13765 fi
13766
13767
13768
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13770 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13771 if ${gl_cv_pragma_columns+:} false; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776
13777 #ifdef __TANDEM
13778 choke me
13779 #endif
13780
13781 _ACEOF
13782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13783 $EGREP "choke me" >/dev/null 2>&1; then :
13784 gl_cv_pragma_columns=yes
13785 else
13786 gl_cv_pragma_columns=no
13787 fi
13788 rm -f conftest*
13789
13790
13791 fi
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13793 $as_echo "$gl_cv_pragma_columns" >&6; }
13794 if test $gl_cv_pragma_columns = yes; then
13795 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13796 else
13797 PRAGMA_COLUMNS=
13798 fi
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816 if test $gl_cv_have_include_next = yes; then
13817 gl_cv_next_getopt_h='<'getopt.h'>'
13818 else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13820 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13821 if ${gl_cv_next_getopt_h+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824
13825 if test $ac_cv_header_getopt_h = yes; then
13826
13827
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 #include <getopt.h>
13831
13832 _ACEOF
13833 case "$host_os" in
13834 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13835 *) gl_absname_cpp="$ac_cpp" ;;
13836 esac
13837 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13838 sed -n '\#/getopt.h#{
13839 s#.*"\(.*/getopt.h\)".*#\1#
13840 s#^/[^/]#//&#
13841 p
13842 q
13843 }'`'"'
13844 else
13845 gl_cv_next_getopt_h='<'getopt.h'>'
13846 fi
13847
13848
13849 fi
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13851 $as_echo "$gl_cv_next_getopt_h" >&6; }
13852 fi
13853 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13854
13855 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13857 gl_next_as_first_directive='<'getopt.h'>'
13858 else
13859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13860 gl_next_as_first_directive=$gl_cv_next_getopt_h
13861 fi
13862 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13863
13864
13865
13866
13867 if test $ac_cv_header_getopt_h = yes; then
13868 HAVE_GETOPT_H=1
13869 else
13870 HAVE_GETOPT_H=0
13871 fi
13872
13873
13874 gl_replace_getopt=
13875
13876 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13877 for ac_header in getopt.h
13878 do :
13879 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13880 if test "x$ac_cv_header_getopt_h" = xyes; then :
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_GETOPT_H 1
13883 _ACEOF
13884
13885 else
13886 gl_replace_getopt=yes
13887 fi
13888
13889 done
13890
13891 fi
13892
13893 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13894 for ac_func in getopt_long_only
13895 do :
13896 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13897 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13898 cat >>confdefs.h <<_ACEOF
13899 #define HAVE_GETOPT_LONG_ONLY 1
13900 _ACEOF
13901
13902 else
13903 gl_replace_getopt=yes
13904 fi
13905 done
13906
13907 fi
13908
13909 if test -z "$gl_replace_getopt"; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13911 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13912 if ${gl_cv_func_getopt_posix+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 #include <unistd.h>
13919 int
13920 main ()
13921 {
13922 int *p = &optreset; return optreset;
13923 ;
13924 return 0;
13925 }
13926 _ACEOF
13927 if ac_fn_c_try_compile "$LINENO"; then :
13928 gl_optind_min=1
13929 else
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932 #include <getopt.h>
13933 int
13934 main ()
13935 {
13936 return !getopt_clip;
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 if ac_fn_c_try_compile "$LINENO"; then :
13942 gl_optind_min=1
13943 else
13944 gl_optind_min=0
13945 fi
13946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949
13950 gl_save_CPPFLAGS=$CPPFLAGS
13951 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
13952 if test "$cross_compiling" = yes; then :
13953 case "$host_os" in
13954 mingw*) gl_cv_func_getopt_posix="guessing no";;
13955 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
13956 *) gl_cv_func_getopt_posix="guessing yes";;
13957 esac
13958
13959 else
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13962
13963 #include <unistd.h>
13964 #include <stdlib.h>
13965 #include <string.h>
13966
13967 int
13968 main ()
13969 {
13970 {
13971 int argc = 0;
13972 char *argv[10];
13973 int c;
13974
13975 argv[argc++] = "program";
13976 argv[argc++] = "-a";
13977 argv[argc++] = "foo";
13978 argv[argc++] = "bar";
13979 argv[argc] = NULL;
13980 optind = OPTIND_MIN;
13981 opterr = 0;
13982
13983 c = getopt (argc, argv, "ab");
13984 if (!(c == 'a'))
13985 return 1;
13986 c = getopt (argc, argv, "ab");
13987 if (!(c == -1))
13988 return 2;
13989 if (!(optind == 2))
13990 return 3;
13991 }
13992 /* Some internal state exists at this point. */
13993 {
13994 int argc = 0;
13995 char *argv[10];
13996 int c;
13997
13998 argv[argc++] = "program";
13999 argv[argc++] = "donald";
14000 argv[argc++] = "-p";
14001 argv[argc++] = "billy";
14002 argv[argc++] = "duck";
14003 argv[argc++] = "-a";
14004 argv[argc++] = "bar";
14005 argv[argc] = NULL;
14006 optind = OPTIND_MIN;
14007 opterr = 0;
14008
14009 c = getopt (argc, argv, "+abp:q:");
14010 if (!(c == -1))
14011 return 4;
14012 if (!(strcmp (argv[0], "program") == 0))
14013 return 5;
14014 if (!(strcmp (argv[1], "donald") == 0))
14015 return 6;
14016 if (!(strcmp (argv[2], "-p") == 0))
14017 return 7;
14018 if (!(strcmp (argv[3], "billy") == 0))
14019 return 8;
14020 if (!(strcmp (argv[4], "duck") == 0))
14021 return 9;
14022 if (!(strcmp (argv[5], "-a") == 0))
14023 return 10;
14024 if (!(strcmp (argv[6], "bar") == 0))
14025 return 11;
14026 if (!(optind == 1))
14027 return 12;
14028 }
14029 /* Detect MacOS 10.5, AIX 7.1 bug. */
14030 {
14031 char *argv[3] = { "program", "-ab", NULL };
14032 optind = OPTIND_MIN;
14033 opterr = 0;
14034 if (getopt (2, argv, "ab:") != 'a')
14035 return 13;
14036 if (getopt (2, argv, "ab:") != '?')
14037 return 14;
14038 if (optopt != 'b')
14039 return 15;
14040 if (optind != 2)
14041 return 16;
14042 }
14043
14044 return 0;
14045 }
14046
14047 _ACEOF
14048 if ac_fn_c_try_run "$LINENO"; then :
14049 gl_cv_func_getopt_posix=yes
14050 else
14051 gl_cv_func_getopt_posix=no
14052 fi
14053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14054 conftest.$ac_objext conftest.beam conftest.$ac_ext
14055 fi
14056
14057 CPPFLAGS=$gl_save_CPPFLAGS
14058
14059 fi
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14061 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14062 case "$gl_cv_func_getopt_posix" in
14063 *no) gl_replace_getopt=yes ;;
14064 esac
14065 fi
14066
14067 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14069 $as_echo_n "checking for working GNU getopt function... " >&6; }
14070 if ${gl_cv_func_getopt_gnu+:} false; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14074 # optstring is necessary for programs like m4 that have POSIX-mandated
14075 # semantics for supporting options interspersed with files.
14076 # Also, since getopt_long is a GNU extension, we require optind=0.
14077 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14078 # so take care to revert to the correct (non-)export state.
14079 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14080 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14081 xx) gl_had_POSIXLY_CORRECT=exported ;;
14082 x) gl_had_POSIXLY_CORRECT=yes ;;
14083 *) gl_had_POSIXLY_CORRECT= ;;
14084 esac
14085 POSIXLY_CORRECT=1
14086 export POSIXLY_CORRECT
14087 if test "$cross_compiling" = yes; then :
14088 case $host_os:$ac_cv_have_decl_optreset in
14089 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14090 *:yes) gl_cv_func_getopt_gnu=no;;
14091 *) gl_cv_func_getopt_gnu=yes;;
14092 esac
14093
14094 else
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14097 #include <getopt.h>
14098 #include <stddef.h>
14099 #include <string.h>
14100
14101 int
14102 main ()
14103 {
14104
14105 int result = 0;
14106 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14107 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14108 OSF/1 5.1, Solaris 10. */
14109 {
14110 char *myargv[3];
14111 myargv[0] = "conftest";
14112 myargv[1] = "-+";
14113 myargv[2] = 0;
14114 opterr = 0;
14115 if (getopt (2, myargv, "+a") != '?')
14116 result |= 1;
14117 }
14118 /* This code succeeds on glibc 2.8, mingw,
14119 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14120 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14121 {
14122 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14123
14124 optind = 1;
14125 if (getopt (4, argv, "p::") != 'p')
14126 result |= 2;
14127 else if (optarg != NULL)
14128 result |= 4;
14129 else if (getopt (4, argv, "p::") != -1)
14130 result |= 6;
14131 else if (optind != 2)
14132 result |= 8;
14133 }
14134 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14135 {
14136 char *argv[] = { "program", "foo", "-p", NULL };
14137 optind = 0;
14138 if (getopt (3, argv, "-p") != 1)
14139 result |= 16;
14140 else if (getopt (3, argv, "-p") != 'p')
14141 result |= 32;
14142 }
14143 /* This code fails on glibc 2.11. */
14144 {
14145 char *argv[] = { "program", "-b", "-a", NULL };
14146 optind = opterr = 0;
14147 if (getopt (3, argv, "+:a:b") != 'b')
14148 result |= 64;
14149 else if (getopt (3, argv, "+:a:b") != ':')
14150 result |= 64;
14151 }
14152 return result;
14153
14154 ;
14155 return 0;
14156 }
14157 _ACEOF
14158 if ac_fn_c_try_run "$LINENO"; then :
14159 gl_cv_func_getopt_gnu=yes
14160 else
14161 gl_cv_func_getopt_gnu=no
14162 fi
14163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14164 conftest.$ac_objext conftest.beam conftest.$ac_ext
14165 fi
14166
14167 case $gl_had_POSIXLY_CORRECT in
14168 exported) ;;
14169 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14170 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14171 esac
14172
14173 fi
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14175 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14176 if test "$gl_cv_func_getopt_gnu" = "no"; then
14177 gl_replace_getopt=yes
14178 fi
14179 fi
14180
14181 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14182 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14183 ac_have_decl=1
14184 else
14185 ac_have_decl=0
14186 fi
14187
14188 cat >>confdefs.h <<_ACEOF
14189 #define HAVE_DECL_GETENV $ac_have_decl
14190 _ACEOF
14191
14192
14193
14194
14195
14196
14197 if test -n "$gl_replace_getopt"; then :
14198
14199
14200
14201 GETOPT_H=getopt.h
14202
14203 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14204
14205
14206
14207 GNULIB_UNISTD_H_GETOPT=1
14208
14209
14210
14211
14212
14213
14214
14215
14216 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14227
14228
14229
14230
14231
14232
14233 fi
14234
14235
14236
14237 GNULIB_MKTIME=0;
14238 GNULIB_NANOSLEEP=0;
14239 GNULIB_STRPTIME=0;
14240 GNULIB_TIMEGM=0;
14241 GNULIB_TIME_R=0;
14242 HAVE_DECL_LOCALTIME_R=1;
14243 HAVE_NANOSLEEP=1;
14244 HAVE_STRPTIME=1;
14245 HAVE_TIMEGM=1;
14246 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14247 REPLACE_MKTIME=GNULIB_PORTCHECK;
14248 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14249 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14250
14251
14252
14253
14254 for ac_func in $ac_func_list
14255 do :
14256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14258 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14259 cat >>confdefs.h <<_ACEOF
14260 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14261 _ACEOF
14262
14263 fi
14264 done
14265
14266
14267
14268
14269 gl_cv_c_multiarch=no
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14272 #ifndef __APPLE_CC__
14273 not a universal capable compiler
14274 #endif
14275 typedef int dummy;
14276
14277 _ACEOF
14278 if ac_fn_c_try_compile "$LINENO"; then :
14279
14280 arch=
14281 prev=
14282 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14283 if test -n "$prev"; then
14284 case $word in
14285 i?86 | x86_64 | ppc | ppc64)
14286 if test -z "$arch" || test "$arch" = "$word"; then
14287 arch="$word"
14288 else
14289 gl_cv_c_multiarch=yes
14290 fi
14291 ;;
14292 esac
14293 prev=
14294 else
14295 if test "x$word" = "x-arch"; then
14296 prev=arch
14297 fi
14298 fi
14299 done
14300
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 if test $gl_cv_c_multiarch = yes; then
14304 APPLE_UNIVERSAL_BUILD=1
14305 else
14306 APPLE_UNIVERSAL_BUILD=0
14307 fi
14308
14309
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14311 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14312 if ${ac_cv_header_stdbool_h+:} false; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317
14318 #include <stdbool.h>
14319 #ifndef bool
14320 "error: bool is not defined"
14321 #endif
14322 #ifndef false
14323 "error: false is not defined"
14324 #endif
14325 #if false
14326 "error: false is not 0"
14327 #endif
14328 #ifndef true
14329 "error: true is not defined"
14330 #endif
14331 #if true != 1
14332 "error: true is not 1"
14333 #endif
14334 #ifndef __bool_true_false_are_defined
14335 "error: __bool_true_false_are_defined is not defined"
14336 #endif
14337
14338 struct s { _Bool s: 1; _Bool t; } s;
14339
14340 char a[true == 1 ? 1 : -1];
14341 char b[false == 0 ? 1 : -1];
14342 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14343 char d[(bool) 0.5 == true ? 1 : -1];
14344 /* See body of main program for 'e'. */
14345 char f[(_Bool) 0.0 == false ? 1 : -1];
14346 char g[true];
14347 char h[sizeof (_Bool)];
14348 char i[sizeof s.t];
14349 enum { j = false, k = true, l = false * true, m = true * 256 };
14350 /* The following fails for
14351 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14352 _Bool n[m];
14353 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14354 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14355 /* Catch a bug in an HP-UX C compiler. See
14356 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14357 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14358 */
14359 _Bool q = true;
14360 _Bool *pq = &q;
14361
14362 int
14363 main ()
14364 {
14365
14366 bool e = &s;
14367 *pq |= q;
14368 *pq |= ! q;
14369 /* Refer to every declared value, to avoid compiler optimizations. */
14370 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14371 + !m + !n + !o + !p + !q + !pq);
14372
14373 ;
14374 return 0;
14375 }
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378 ac_cv_header_stdbool_h=yes
14379 else
14380 ac_cv_header_stdbool_h=no
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383 fi
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14385 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14386 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14387 if test "x$ac_cv_type__Bool" = xyes; then :
14388
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE__BOOL 1
14391 _ACEOF
14392
14393
14394 fi
14395
14396
14397
14398 REPLACE_NULL=0;
14399 HAVE_WCHAR_T=1;
14400 STDDEF_H='';
14401
14402
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14404 $as_echo_n "checking for wchar_t... " >&6; }
14405 if ${gt_cv_c_wchar_t+:} false; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409 /* end confdefs.h. */
14410 #include <stddef.h>
14411 wchar_t foo = (wchar_t)'\0';
14412 int
14413 main ()
14414 {
14415
14416 ;
14417 return 0;
14418 }
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"; then :
14421 gt_cv_c_wchar_t=yes
14422 else
14423 gt_cv_c_wchar_t=no
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14428 $as_echo "$gt_cv_c_wchar_t" >&6; }
14429 if test $gt_cv_c_wchar_t = yes; then
14430
14431 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14432
14433 fi
14434
14435
14436 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14437 "
14438 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14439
14440 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14441
14442 fi
14443
14444
14445
14446
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14448 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14449 if ${ac_cv_c_restrict+:} false; then :
14450 $as_echo_n "(cached) " >&6
14451 else
14452 ac_cv_c_restrict=no
14453 # The order here caters to the fact that C++ does not require restrict.
14454 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 typedef int * int_ptr;
14458 int foo (int_ptr $ac_kw ip) {
14459 return ip[0];
14460 }
14461 int
14462 main ()
14463 {
14464 int s[1];
14465 int * $ac_kw t = s;
14466 t[0] = 0;
14467 return foo(t)
14468 ;
14469 return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_compile "$LINENO"; then :
14473 ac_cv_c_restrict=$ac_kw
14474 fi
14475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476 test "$ac_cv_c_restrict" != no && break
14477 done
14478
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14481 $as_echo "$ac_cv_c_restrict" >&6; }
14482
14483 case $ac_cv_c_restrict in
14484 restrict) ;;
14485 no) $as_echo "#define restrict /**/" >>confdefs.h
14486 ;;
14487 *) cat >>confdefs.h <<_ACEOF
14488 #define restrict $ac_cv_c_restrict
14489 _ACEOF
14490 ;;
14491 esac
14492
14493
14494
14495
14496
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14498 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14499 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504 #include <time.h>
14505
14506 int
14507 main ()
14508 {
14509 static struct timespec x; x.tv_sec = x.tv_nsec;
14510 ;
14511 return 0;
14512 }
14513 _ACEOF
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515 gl_cv_sys_struct_timespec_in_time_h=yes
14516 else
14517 gl_cv_sys_struct_timespec_in_time_h=no
14518 fi
14519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 fi
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14522 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14523
14524 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14525 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14526 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14527 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14528 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14529 else
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14531 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14532 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14536 /* end confdefs.h. */
14537 #include <sys/time.h>
14538
14539 int
14540 main ()
14541 {
14542 static struct timespec x; x.tv_sec = x.tv_nsec;
14543 ;
14544 return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_compile "$LINENO"; then :
14548 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14549 else
14550 gl_cv_sys_struct_timespec_in_sys_time_h=no
14551 fi
14552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14555 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14556 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14557 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14558 else
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14560 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14561 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 #include <pthread.h>
14567
14568 int
14569 main ()
14570 {
14571 static struct timespec x; x.tv_sec = x.tv_nsec;
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_compile "$LINENO"; then :
14577 gl_cv_sys_struct_timespec_in_pthread_h=yes
14578 else
14579 gl_cv_sys_struct_timespec_in_pthread_h=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14584 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14585 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14586 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14587 fi
14588 fi
14589 fi
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605 if test $gl_cv_have_include_next = yes; then
14606 gl_cv_next_time_h='<'time.h'>'
14607 else
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14609 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14610 if ${gl_cv_next_time_h+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 #include <time.h>
14617
14618 _ACEOF
14619 case "$host_os" in
14620 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14621 *) gl_absname_cpp="$ac_cpp" ;;
14622 esac
14623 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14624 sed -n '\#/time.h#{
14625 s#.*"\(.*/time.h\)".*#\1#
14626 s#^/[^/]#//&#
14627 p
14628 q
14629 }'`'"'
14630
14631
14632 fi
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14634 $as_echo "$gl_cv_next_time_h" >&6; }
14635 fi
14636 NEXT_TIME_H=$gl_cv_next_time_h
14637
14638 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14640 gl_next_as_first_directive='<'time.h'>'
14641 else
14642 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14643 gl_next_as_first_directive=$gl_cv_next_time_h
14644 fi
14645 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14646
14647
14648
14649
14650
14651
14652 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14653 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14654 ac_have_decl=1
14655 else
14656 ac_have_decl=0
14657 fi
14658
14659 cat >>confdefs.h <<_ACEOF
14660 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14661 _ACEOF
14662
14663
14664
14665
14666 if false; then
14667 GL_COND_LIBTOOL_TRUE=
14668 GL_COND_LIBTOOL_FALSE='#'
14669 else
14670 GL_COND_LIBTOOL_TRUE='#'
14671 GL_COND_LIBTOOL_FALSE=
14672 fi
14673
14674 gl_cond_libtool=false
14675 gl_libdeps=
14676 gl_ltlibdeps=
14677 gl_m4_base='m4'
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687 gl_source_base='lib'
14688 # Code from module arg-nonnull:
14689 # Code from module c++defs:
14690 # Code from module crypto/md5:
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
14701
14702
14703
14704
14705 :
14706
14707 # Code from module dtoastr:
14708
14709 # Code from module extensions:
14710 # Code from module getloadavg:
14711
14712
14713 # Persuade glibc <stdlib.h> to declare getloadavg().
14714
14715
14716 # Make sure getloadavg.c is where it belongs, at configure-time.
14717 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
14718 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
14719
14720 gl_save_LIBS=$LIBS
14721
14722 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
14723 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
14724 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
14725 if test "x$ac_cv_func_getloadavg" = xyes; then :
14726
14727 else
14728 gl_have_func=no
14729
14730 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14731 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14732 # to get the right answer into the cache.
14733 # For kstat on solaris, we need to test for libelf and libkvm to force the
14734 # definition of SVR4 below.
14735 if test $gl_have_func = no; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
14737 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
14738 if ${ac_cv_lib_elf_elf_begin+:} false; then :
14739 $as_echo_n "(cached) " >&6
14740 else
14741 ac_check_lib_save_LIBS=$LIBS
14742 LIBS="-lelf $LIBS"
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745
14746 /* Override any GCC internal prototype to avoid an error.
14747 Use char because int might match the return type of a GCC
14748 builtin and then its argument prototype would still apply. */
14749 #ifdef __cplusplus
14750 extern "C"
14751 #endif
14752 char elf_begin ();
14753 int
14754 main ()
14755 {
14756 return elf_begin ();
14757 ;
14758 return 0;
14759 }
14760 _ACEOF
14761 if ac_fn_c_try_link "$LINENO"; then :
14762 ac_cv_lib_elf_elf_begin=yes
14763 else
14764 ac_cv_lib_elf_elf_begin=no
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext \
14767 conftest$ac_exeext conftest.$ac_ext
14768 LIBS=$ac_check_lib_save_LIBS
14769 fi
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
14771 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
14772 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
14773 LIBS="-lelf $LIBS"
14774 fi
14775
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
14777 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
14778 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
14779 $as_echo_n "(cached) " >&6
14780 else
14781 ac_check_lib_save_LIBS=$LIBS
14782 LIBS="-lkvm $LIBS"
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14789 #ifdef __cplusplus
14790 extern "C"
14791 #endif
14792 char kvm_open ();
14793 int
14794 main ()
14795 {
14796 return kvm_open ();
14797 ;
14798 return 0;
14799 }
14800 _ACEOF
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 ac_cv_lib_kvm_kvm_open=yes
14803 else
14804 ac_cv_lib_kvm_kvm_open=no
14805 fi
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14808 LIBS=$ac_check_lib_save_LIBS
14809 fi
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
14811 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
14812 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
14813 LIBS="-lkvm $LIBS"
14814 fi
14815
14816 # Check for the 4.4BSD definition of getloadavg.
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
14818 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
14819 if ${ac_cv_lib_util_getloadavg+:} false; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 ac_check_lib_save_LIBS=$LIBS
14823 LIBS="-lutil $LIBS"
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h. */
14826
14827 /* Override any GCC internal prototype to avoid an error.
14828 Use char because int might match the return type of a GCC
14829 builtin and then its argument prototype would still apply. */
14830 #ifdef __cplusplus
14831 extern "C"
14832 #endif
14833 char getloadavg ();
14834 int
14835 main ()
14836 {
14837 return getloadavg ();
14838 ;
14839 return 0;
14840 }
14841 _ACEOF
14842 if ac_fn_c_try_link "$LINENO"; then :
14843 ac_cv_lib_util_getloadavg=yes
14844 else
14845 ac_cv_lib_util_getloadavg=no
14846 fi
14847 rm -f core conftest.err conftest.$ac_objext \
14848 conftest$ac_exeext conftest.$ac_ext
14849 LIBS=$ac_check_lib_save_LIBS
14850 fi
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
14852 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
14853 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
14854 LIBS="-lutil $LIBS" gl_have_func=yes
14855 fi
14856
14857 fi
14858
14859 if test $gl_have_func = no; then
14860 # There is a commonly available library for RS/6000 AIX.
14861 # Since it is not a standard part of AIX, it might be installed locally.
14862 gl_getloadavg_LIBS=$LIBS
14863 LIBS="-L/usr/local/lib $LIBS"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
14865 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
14866 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
14867 $as_echo_n "(cached) " >&6
14868 else
14869 ac_check_lib_save_LIBS=$LIBS
14870 LIBS="-lgetloadavg $LIBS"
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873
14874 /* Override any GCC internal prototype to avoid an error.
14875 Use char because int might match the return type of a GCC
14876 builtin and then its argument prototype would still apply. */
14877 #ifdef __cplusplus
14878 extern "C"
14879 #endif
14880 char getloadavg ();
14881 int
14882 main ()
14883 {
14884 return getloadavg ();
14885 ;
14886 return 0;
14887 }
14888 _ACEOF
14889 if ac_fn_c_try_link "$LINENO"; then :
14890 ac_cv_lib_getloadavg_getloadavg=yes
14891 else
14892 ac_cv_lib_getloadavg_getloadavg=no
14893 fi
14894 rm -f core conftest.err conftest.$ac_objext \
14895 conftest$ac_exeext conftest.$ac_ext
14896 LIBS=$ac_check_lib_save_LIBS
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14899 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
14900 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
14901 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
14902 else
14903 LIBS=$gl_getloadavg_LIBS
14904 fi
14905
14906 fi
14907
14908 # Set up the replacement function if necessary.
14909 if test $gl_have_func = no; then
14910
14911
14912
14913
14914
14915
14916
14917
14918 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
14919
14920
14921 # Figure out what our getloadavg.c needs.
14922
14923 # Solaris has libkstat which does not require root.
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
14925 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
14926 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 ac_check_lib_save_LIBS=$LIBS
14930 LIBS="-lkstat $LIBS"
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14933
14934 /* Override any GCC internal prototype to avoid an error.
14935 Use char because int might match the return type of a GCC
14936 builtin and then its argument prototype would still apply. */
14937 #ifdef __cplusplus
14938 extern "C"
14939 #endif
14940 char kstat_open ();
14941 int
14942 main ()
14943 {
14944 return kstat_open ();
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_link "$LINENO"; then :
14950 ac_cv_lib_kstat_kstat_open=yes
14951 else
14952 ac_cv_lib_kstat_kstat_open=no
14953 fi
14954 rm -f core conftest.err conftest.$ac_objext \
14955 conftest$ac_exeext conftest.$ac_ext
14956 LIBS=$ac_check_lib_save_LIBS
14957 fi
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
14959 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
14960 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
14961 cat >>confdefs.h <<_ACEOF
14962 #define HAVE_LIBKSTAT 1
14963 _ACEOF
14964
14965 LIBS="-lkstat $LIBS"
14966
14967 fi
14968
14969 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
14970
14971 # On HPUX9, an unprivileged user can get load averages this way.
14972 if test $gl_have_func = no; then
14973 for ac_func in pstat_getdynamic
14974 do :
14975 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
14976 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_PSTAT_GETDYNAMIC 1
14979 _ACEOF
14980 gl_have_func=yes
14981 fi
14982 done
14983
14984 fi
14985
14986 # AIX has libperfstat which does not require root
14987 if test $gl_have_func = no; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
14989 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
14990 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 ac_check_lib_save_LIBS=$LIBS
14994 LIBS="-lperfstat $LIBS"
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14997
14998 /* Override any GCC internal prototype to avoid an error.
14999 Use char because int might match the return type of a GCC
15000 builtin and then its argument prototype would still apply. */
15001 #ifdef __cplusplus
15002 extern "C"
15003 #endif
15004 char perfstat_cpu_total ();
15005 int
15006 main ()
15007 {
15008 return perfstat_cpu_total ();
15009 ;
15010 return 0;
15011 }
15012 _ACEOF
15013 if ac_fn_c_try_link "$LINENO"; then :
15014 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15015 else
15016 ac_cv_lib_perfstat_perfstat_cpu_total=no
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 LIBS=$ac_check_lib_save_LIBS
15021 fi
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15023 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15024 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15025 cat >>confdefs.h <<_ACEOF
15026 #define HAVE_LIBPERFSTAT 1
15027 _ACEOF
15028
15029 LIBS="-lperfstat $LIBS"
15030
15031 fi
15032
15033 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15034 fi
15035
15036 if test $gl_have_func = no; then
15037 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15038 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15039 gl_have_func=yes
15040
15041 $as_echo "#define DGUX 1" >>confdefs.h
15042
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15044 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15045 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
15046 $as_echo_n "(cached) " >&6
15047 else
15048 ac_check_lib_save_LIBS=$LIBS
15049 LIBS="-ldgc $LIBS"
15050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15051 /* end confdefs.h. */
15052
15053 /* Override any GCC internal prototype to avoid an error.
15054 Use char because int might match the return type of a GCC
15055 builtin and then its argument prototype would still apply. */
15056 #ifdef __cplusplus
15057 extern "C"
15058 #endif
15059 char dg_sys_info ();
15060 int
15061 main ()
15062 {
15063 return dg_sys_info ();
15064 ;
15065 return 0;
15066 }
15067 _ACEOF
15068 if ac_fn_c_try_link "$LINENO"; then :
15069 ac_cv_lib_dgc_dg_sys_info=yes
15070 else
15071 ac_cv_lib_dgc_dg_sys_info=no
15072 fi
15073 rm -f core conftest.err conftest.$ac_objext \
15074 conftest$ac_exeext conftest.$ac_ext
15075 LIBS=$ac_check_lib_save_LIBS
15076 fi
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15078 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15079 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15080 cat >>confdefs.h <<_ACEOF
15081 #define HAVE_LIBDGC 1
15082 _ACEOF
15083
15084 LIBS="-ldgc $LIBS"
15085
15086 fi
15087
15088 fi
15089
15090
15091 fi
15092
15093 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15094 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15095 # Irix 4.0.5F has the header but not the library.
15096 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15097 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15098 gl_have_func=yes
15099
15100 $as_echo "#define SVR4 1" >>confdefs.h
15101
15102 fi
15103
15104 if test $gl_have_func = no; then
15105 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15106 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15107 gl_have_func=yes
15108
15109 $as_echo "#define UMAX 1" >>confdefs.h
15110
15111
15112 $as_echo "#define UMAX4_3 1" >>confdefs.h
15113
15114 fi
15115
15116
15117 fi
15118
15119 if test $gl_have_func = no; then
15120 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15121 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15122 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15123
15124 fi
15125
15126
15127 fi
15128
15129 if test $gl_have_func = no; then
15130 for ac_header in mach/mach.h
15131 do :
15132 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15133 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_MACH_MACH_H 1
15136 _ACEOF
15137
15138 fi
15139
15140 done
15141
15142 fi
15143
15144 for ac_header in nlist.h
15145 do :
15146 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15147 if test "x$ac_cv_header_nlist_h" = xyes; then :
15148 cat >>confdefs.h <<_ACEOF
15149 #define HAVE_NLIST_H 1
15150 _ACEOF
15151 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15152 "
15153 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15154
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15157 _ACEOF
15158
15159
15160 fi
15161
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15164 #include <nlist.h>
15165 int
15166 main ()
15167 {
15168 struct nlist x;
15169 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15170 x.n_un.n_name = "";
15171 #else
15172 x.n_name = "";
15173 #endif
15174 ;
15175 return 0;
15176 }
15177 _ACEOF
15178 if ac_fn_c_try_link "$LINENO"; then :
15179
15180 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15181
15182 fi
15183 rm -f core conftest.err conftest.$ac_objext \
15184 conftest$ac_exeext conftest.$ac_ext
15185
15186 fi
15187
15188 done
15189
15190 fi
15191 fi
15192
15193
15194 if test "x$gl_save_LIBS" = x; then
15195 GETLOADAVG_LIBS=$LIBS
15196 else
15197 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15198 fi
15199 LIBS=$gl_save_LIBS
15200
15201
15202 # Test whether the system declares getloadavg. Solaris has the function
15203 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15204 for ac_header in sys/loadavg.h
15205 do :
15206 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15207 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15208 cat >>confdefs.h <<_ACEOF
15209 #define HAVE_SYS_LOADAVG_H 1
15210 _ACEOF
15211
15212 fi
15213
15214 done
15215
15216 if test $ac_cv_header_sys_loadavg_h = yes; then
15217 HAVE_SYS_LOADAVG_H=1
15218 else
15219 HAVE_SYS_LOADAVG_H=0
15220 fi
15221 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15222 # include <sys/loadavg.h>
15223 #endif
15224 #include <stdlib.h>
15225 "
15226 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
15227
15228 else
15229 HAVE_DECL_GETLOADAVG=0
15230 fi
15231
15232
15233
15234
15235
15236 GNULIB_GETLOADAVG=1
15237
15238
15239
15240 # Code from module getopt-gnu:
15241
15242
15243
15244
15245
15246
15247 # Code from module getopt-posix:
15248
15249
15250
15251
15252
15253 if test -n "$gl_replace_getopt"; then :
15254
15255
15256
15257 GETOPT_H=getopt.h
15258
15259 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15260
15261
15262
15263 GNULIB_UNISTD_H_GETOPT=1
15264
15265
15266
15267
15268
15269
15270
15271
15272 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15283
15284
15285
15286
15287
15288
15289 fi
15290
15291
15292 # Code from module gettext-h:
15293
15294
15295 # Code from module ignore-value:
15296
15297 # Code from module include_next:
15298 # Code from module intprops:
15299 # Code from module mktime:
15300
15301
15302
15303
15304
15305 if test $APPLE_UNIVERSAL_BUILD = 1; then
15306 # A universal build on Apple MacOS X platforms.
15307 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15308 # But we need a configuration result that is valid in both modes.
15309 ac_cv_func_working_mktime=no
15310 fi
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15312 $as_echo_n "checking for working mktime... " >&6; }
15313 if ${ac_cv_func_working_mktime+:} false; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15316 if test "$cross_compiling" = yes; then :
15317 ac_cv_func_working_mktime=no
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 /* Test program from Paul Eggert and Tony Leneis. */
15322 #include <limits.h>
15323 #include <stdlib.h>
15324 #include <time.h>
15325
15326 #ifdef HAVE_UNISTD_H
15327 # include <unistd.h>
15328 #endif
15329
15330 #ifndef HAVE_ALARM
15331 # define alarm(X) /* empty */
15332 #endif
15333
15334 /* Work around redefinition to rpl_putenv by other config tests. */
15335 #undef putenv
15336
15337 static time_t time_t_max;
15338 static time_t time_t_min;
15339
15340 /* Values we'll use to set the TZ environment variable. */
15341 static char *tz_strings[] = {
15342 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15343 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15344 };
15345 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15346
15347 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15348 Based on a problem report from Andreas Jaeger. */
15349 static int
15350 spring_forward_gap ()
15351 {
15352 /* glibc (up to about 1998-10-07) failed this test. */
15353 struct tm tm;
15354
15355 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15356 instead of "TZ=America/Vancouver" in order to detect the bug even
15357 on systems that don't support the Olson extension, or don't have the
15358 full zoneinfo tables installed. */
15359 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15360
15361 tm.tm_year = 98;
15362 tm.tm_mon = 3;
15363 tm.tm_mday = 5;
15364 tm.tm_hour = 2;
15365 tm.tm_min = 0;
15366 tm.tm_sec = 0;
15367 tm.tm_isdst = -1;
15368 return mktime (&tm) != (time_t) -1;
15369 }
15370
15371 static int
15372 mktime_test1 (time_t now)
15373 {
15374 struct tm *lt;
15375 return ! (lt = localtime (&now)) || mktime (lt) == now;
15376 }
15377
15378 static int
15379 mktime_test (time_t now)
15380 {
15381 return (mktime_test1 (now)
15382 && mktime_test1 ((time_t) (time_t_max - now))
15383 && mktime_test1 ((time_t) (time_t_min + now)));
15384 }
15385
15386 static int
15387 irix_6_4_bug ()
15388 {
15389 /* Based on code from Ariel Faigon. */
15390 struct tm tm;
15391 tm.tm_year = 96;
15392 tm.tm_mon = 3;
15393 tm.tm_mday = 0;
15394 tm.tm_hour = 0;
15395 tm.tm_min = 0;
15396 tm.tm_sec = 0;
15397 tm.tm_isdst = -1;
15398 mktime (&tm);
15399 return tm.tm_mon == 2 && tm.tm_mday == 31;
15400 }
15401
15402 static int
15403 bigtime_test (int j)
15404 {
15405 struct tm tm;
15406 time_t now;
15407 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15408 now = mktime (&tm);
15409 if (now != (time_t) -1)
15410 {
15411 struct tm *lt = localtime (&now);
15412 if (! (lt
15413 && lt->tm_year == tm.tm_year
15414 && lt->tm_mon == tm.tm_mon
15415 && lt->tm_mday == tm.tm_mday
15416 && lt->tm_hour == tm.tm_hour
15417 && lt->tm_min == tm.tm_min
15418 && lt->tm_sec == tm.tm_sec
15419 && lt->tm_yday == tm.tm_yday
15420 && lt->tm_wday == tm.tm_wday
15421 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15422 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15423 return 0;
15424 }
15425 return 1;
15426 }
15427
15428 static int
15429 year_2050_test ()
15430 {
15431 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15432 ignoring leap seconds. */
15433 unsigned long int answer = 2527315200UL;
15434
15435 struct tm tm;
15436 time_t t;
15437 tm.tm_year = 2050 - 1900;
15438 tm.tm_mon = 2 - 1;
15439 tm.tm_mday = 1;
15440 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15441 tm.tm_isdst = -1;
15442
15443 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15444 instead of "TZ=America/Vancouver" in order to detect the bug even
15445 on systems that don't support the Olson extension, or don't have the
15446 full zoneinfo tables installed. */
15447 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15448
15449 t = mktime (&tm);
15450
15451 /* Check that the result is either a failure, or close enough
15452 to the correct answer that we can assume the discrepancy is
15453 due to leap seconds. */
15454 return (t == (time_t) -1
15455 || (0 < t && answer - 120 <= t && t <= answer + 120));
15456 }
15457
15458 int
15459 main ()
15460 {
15461 int result = 0;
15462 time_t t, delta;
15463 int i, j;
15464 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15465 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15466
15467 /* This test makes some buggy mktime implementations loop.
15468 Give up after 60 seconds; a mktime slower than that
15469 isn't worth using anyway. */
15470 alarm (60);
15471
15472 time_t_max = (! time_t_signed
15473 ? (time_t) -1
15474 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15475 * 2 + 1));
15476 time_t_min = (! time_t_signed
15477 ? (time_t) 0
15478 : time_t_signed_magnitude
15479 ? ~ (time_t) 0
15480 : ~ time_t_max);
15481
15482 delta = time_t_max / 997; /* a suitable prime number */
15483 for (i = 0; i < N_STRINGS; i++)
15484 {
15485 if (tz_strings[i])
15486 putenv (tz_strings[i]);
15487
15488 for (t = 0; t <= time_t_max - delta; t += delta)
15489 if (! mktime_test (t))
15490 result |= 1;
15491 if (! (mktime_test ((time_t) 1)
15492 && mktime_test ((time_t) (60 * 60))
15493 && mktime_test ((time_t) (60 * 60 * 24))))
15494 result |= 2;
15495
15496 for (j = 1; ; j <<= 1)
15497 if (! bigtime_test (j))
15498 result |= 4;
15499 else if (INT_MAX / 2 < j)
15500 break;
15501 if (! bigtime_test (INT_MAX))
15502 result |= 8;
15503 }
15504 if (! irix_6_4_bug ())
15505 result |= 16;
15506 if (! spring_forward_gap ())
15507 result |= 32;
15508 if (! year_2050_test ())
15509 result |= 64;
15510 return result;
15511 }
15512 _ACEOF
15513 if ac_fn_c_try_run "$LINENO"; then :
15514 ac_cv_func_working_mktime=yes
15515 else
15516 ac_cv_func_working_mktime=no
15517 fi
15518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519 conftest.$ac_objext conftest.beam conftest.$ac_ext
15520 fi
15521
15522 fi
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15524 $as_echo "$ac_cv_func_working_mktime" >&6; }
15525 if test $ac_cv_func_working_mktime = no; then
15526
15527
15528
15529
15530
15531
15532
15533
15534 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
15535
15536 fi
15537
15538 if test $ac_cv_func_working_mktime = no; then
15539 REPLACE_MKTIME=1
15540
15541
15542
15543 else
15544 REPLACE_MKTIME=0
15545 fi
15546
15547
15548
15549
15550 GNULIB_MKTIME=1
15551
15552
15553
15554 # Code from module multiarch:
15555
15556 # Code from module stdbool:
15557
15558
15559
15560 # Define two additional variables used in the Makefile substitution.
15561
15562 if test "$ac_cv_header_stdbool_h" = yes; then
15563 STDBOOL_H=''
15564 else
15565 STDBOOL_H='stdbool.h'
15566 fi
15567
15568
15569 if test "$ac_cv_type__Bool" = yes; then
15570 HAVE__BOOL=1
15571 else
15572 HAVE__BOOL=0
15573 fi
15574
15575
15576 # Code from module stddef:
15577
15578
15579
15580 if test $gt_cv_c_wchar_t = no; then
15581 HAVE_WCHAR_T=0
15582 STDDEF_H=stddef.h
15583 fi
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15585 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15586 if ${gl_cv_decl_null_works+:} false; then :
15587 $as_echo_n "(cached) " >&6
15588 else
15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15591 #include <stddef.h>
15592 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15593
15594 int
15595 main ()
15596 {
15597
15598 ;
15599 return 0;
15600 }
15601 _ACEOF
15602 if ac_fn_c_try_compile "$LINENO"; then :
15603 gl_cv_decl_null_works=yes
15604 else
15605 gl_cv_decl_null_works=no
15606 fi
15607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608 fi
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15610 $as_echo "$gl_cv_decl_null_works" >&6; }
15611 if test $gl_cv_decl_null_works = no; then
15612 REPLACE_NULL=1
15613 STDDEF_H=stddef.h
15614 fi
15615 if test -n "$STDDEF_H"; then
15616
15617
15618
15619
15620
15621
15622
15623
15624 if test $gl_cv_have_include_next = yes; then
15625 gl_cv_next_stddef_h='<'stddef.h'>'
15626 else
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15628 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15629 if ${gl_cv_next_stddef_h+:} false; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 #include <stddef.h>
15636
15637 _ACEOF
15638 case "$host_os" in
15639 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15640 *) gl_absname_cpp="$ac_cpp" ;;
15641 esac
15642 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15643 sed -n '\#/stddef.h#{
15644 s#.*"\(.*/stddef.h\)".*#\1#
15645 s#^/[^/]#//&#
15646 p
15647 q
15648 }'`'"'
15649
15650
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15653 $as_echo "$gl_cv_next_stddef_h" >&6; }
15654 fi
15655 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15656
15657 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15659 gl_next_as_first_directive='<'stddef.h'>'
15660 else
15661 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15662 gl_next_as_first_directive=$gl_cv_next_stddef_h
15663 fi
15664 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15665
15666
15667
15668
15669 fi
15670
15671 # Code from module stdlib:
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682 if test $gl_cv_have_include_next = yes; then
15683 gl_cv_next_stdlib_h='<'stdlib.h'>'
15684 else
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15686 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15687 if ${gl_cv_next_stdlib_h+:} false; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 #include <stdlib.h>
15694
15695 _ACEOF
15696 case "$host_os" in
15697 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15698 *) gl_absname_cpp="$ac_cpp" ;;
15699 esac
15700 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15701 sed -n '\#/stdlib.h#{
15702 s#.*"\(.*/stdlib.h\)".*#\1#
15703 s#^/[^/]#//&#
15704 p
15705 q
15706 }'`'"'
15707
15708
15709 fi
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15711 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15712 fi
15713 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15714
15715 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15716 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15717 gl_next_as_first_directive='<'stdlib.h'>'
15718 else
15719 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15720 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15721 fi
15722 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15723
15724
15725
15726
15727
15728
15729
15730 # Code from module strftime:
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
15742
15743
15744 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15745
15746
15747
15748
15749
15750
15751
15752 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15753
15754
15755
15756 # Code from module time:
15757
15758
15759
15760 # Code from module time_r:
15761
15762
15763
15764
15765
15766
15767
15768 if test $ac_cv_have_decl_localtime_r = no; then
15769 HAVE_DECL_LOCALTIME_R=0
15770 fi
15771
15772
15773 if test $ac_cv_func_localtime_r = yes; then
15774 HAVE_LOCALTIME_R=1
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15776 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15777 if ${gl_cv_time_r_posix+:} false; then :
15778 $as_echo_n "(cached) " >&6
15779 else
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15782 #include <time.h>
15783 int
15784 main ()
15785 {
15786 /* We don't need to append 'restrict's to the argument types,
15787 even though the POSIX signature has the 'restrict's,
15788 since C99 says they can't affect type compatibility. */
15789 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15790 if (ptr) return 0;
15791 /* Check the return type is a pointer.
15792 On HP-UX 10 it is 'int'. */
15793 *localtime_r (0, 0);
15794 ;
15795 return 0;
15796 }
15797
15798 _ACEOF
15799 if ac_fn_c_try_compile "$LINENO"; then :
15800 gl_cv_time_r_posix=yes
15801 else
15802 gl_cv_time_r_posix=no
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805
15806 fi
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15808 $as_echo "$gl_cv_time_r_posix" >&6; }
15809 if test $gl_cv_time_r_posix = yes; then
15810 REPLACE_LOCALTIME_R=0
15811 else
15812 REPLACE_LOCALTIME_R=1
15813 fi
15814 else
15815 HAVE_LOCALTIME_R=0
15816 fi
15817 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15818
15819
15820
15821
15822
15823
15824
15825
15826 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15827
15828
15829 :
15830
15831 fi
15832
15833
15834
15835
15836 GNULIB_TIME_R=1
15837
15838
15839
15840 # Code from module unistd:
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854 if test $gl_cv_have_include_next = yes; then
15855 gl_cv_next_unistd_h='<'unistd.h'>'
15856 else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15858 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15859 if ${gl_cv_next_unistd_h+:} false; then :
15860 $as_echo_n "(cached) " >&6
15861 else
15862
15863 if test $ac_cv_header_unistd_h = yes; then
15864
15865
15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15867 /* end confdefs.h. */
15868 #include <unistd.h>
15869
15870 _ACEOF
15871 case "$host_os" in
15872 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15873 *) gl_absname_cpp="$ac_cpp" ;;
15874 esac
15875 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15876 sed -n '\#/unistd.h#{
15877 s#.*"\(.*/unistd.h\)".*#\1#
15878 s#^/[^/]#//&#
15879 p
15880 q
15881 }'`'"'
15882 else
15883 gl_cv_next_unistd_h='<'unistd.h'>'
15884 fi
15885
15886
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15889 $as_echo "$gl_cv_next_unistd_h" >&6; }
15890 fi
15891 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15892
15893 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15895 gl_next_as_first_directive='<'unistd.h'>'
15896 else
15897 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15898 gl_next_as_first_directive=$gl_cv_next_unistd_h
15899 fi
15900 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15901
15902
15903
15904
15905 if test $ac_cv_header_unistd_h = yes; then
15906 HAVE_UNISTD_H=1
15907 else
15908 HAVE_UNISTD_H=0
15909 fi
15910
15911
15912
15913
15914 # Code from module warn-on-use:
15915 # End of code from modules
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925 gltests_libdeps=
15926 gltests_ltlibdeps=
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936 gl_source_base='tests'
15937 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
15938
15939 gl_module_indicator_condition=$gltests_WITNESS
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949 LIBGNU_LIBDEPS="$gl_libdeps"
15950
15951 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15952
15953
15954
15955 # UNIX98 PTYs.
15956 for ac_func in grantpt
15957 do :
15958 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15959 if test "x$ac_cv_func_grantpt" = xyes; then :
15960 cat >>confdefs.h <<_ACEOF
15961 #define HAVE_GRANTPT 1
15962 _ACEOF
15963
15964 fi
15965 done
15966
15967
15968 # PTY-related GNU extensions.
15969 for ac_func in getpt
15970 do :
15971 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
15972 if test "x$ac_cv_func_getpt" = xyes; then :
15973 cat >>confdefs.h <<_ACEOF
15974 #define HAVE_GETPT 1
15975 _ACEOF
15976
15977 fi
15978 done
15979
15980
15981 # Check this now, so that we will NOT find the above functions in ncurses.
15982 # That is because we have not set up to link ncurses in lib-src.
15983 # It's better to believe a function is not available
15984 # than to expect to find it in ncurses.
15985 # Also we need tputs and friends to be able to build at all.
15986 have_tputs_et_al=true
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15988 $as_echo_n "checking for library containing tputs... " >&6; }
15989 if ${ac_cv_search_tputs+:} false; then :
15990 $as_echo_n "(cached) " >&6
15991 else
15992 ac_func_search_save_LIBS=$LIBS
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15995
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
15999 #ifdef __cplusplus
16000 extern "C"
16001 #endif
16002 char tputs ();
16003 int
16004 main ()
16005 {
16006 return tputs ();
16007 ;
16008 return 0;
16009 }
16010 _ACEOF
16011 for ac_lib in '' ncurses terminfo termcap; do
16012 if test -z "$ac_lib"; then
16013 ac_res="none required"
16014 else
16015 ac_res=-l$ac_lib
16016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16017 fi
16018 if ac_fn_c_try_link "$LINENO"; then :
16019 ac_cv_search_tputs=$ac_res
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext
16023 if ${ac_cv_search_tputs+:} false; then :
16024 break
16025 fi
16026 done
16027 if ${ac_cv_search_tputs+:} false; then :
16028
16029 else
16030 ac_cv_search_tputs=no
16031 fi
16032 rm conftest.$ac_ext
16033 LIBS=$ac_func_search_save_LIBS
16034 fi
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
16036 $as_echo "$ac_cv_search_tputs" >&6; }
16037 ac_res=$ac_cv_search_tputs
16038 if test "$ac_res" != no; then :
16039 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16040
16041 else
16042 have_tputs_et_al=false
16043 fi
16044
16045 if test "$have_tputs_et_al" != true; then
16046 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
16047 Maybe some development libraries/packages are missing? Try installing
16048 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
16049 fi
16050 # Must define this when any termcap library is found.
16051
16052 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
16053
16054 ## FIXME This was the cpp logic, but I am not sure it is right.
16055 ## The above test has not necessarily found libncurses.
16056 HAVE_LIBNCURSES=yes
16057
16058 ## Use terminfo instead of termcap?
16059 ## Note only system files NOT using terminfo are:
16060 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
16061 ## darwin|gnu without ncurses.
16062 TERMINFO=no
16063 LIBS_TERMCAP=
16064 case "$opsys" in
16065 ## cygwin: Fewer environment variables to go wrong, more terminal types.
16066 ## hpux10-20: Use the system provided termcap(3) library.
16067 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
16068 ## is necessary. Otherwise Emacs dumps core when run -nw.
16069 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
16070
16071 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
16072 ## The ncurses library has been moved out of the System framework in
16073 ## Mac OS X 10.2. So if configure detects it, set the command-line
16074 ## option to use it.
16075 darwin|gnu*)
16076 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
16077 if test "x$HAVE_LIBNCURSES" = "xyes"; then
16078 TERMINFO=yes
16079 LIBS_TERMCAP="-lncurses"
16080 fi
16081 ;;
16082
16083 freebsd)
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
16085 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
16086 if ${emacs_cv_freebsd_terminfo+:} false; then :
16087 $as_echo_n "(cached) " >&6
16088 else
16089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16090 /* end confdefs.h. */
16091 #include <osreldate.h>
16092 int
16093 main ()
16094 {
16095 #if __FreeBSD_version < 400000
16096 fail;
16097 #endif
16098
16099 ;
16100 return 0;
16101 }
16102 _ACEOF
16103 if ac_fn_c_try_link "$LINENO"; then :
16104 emacs_cv_freebsd_terminfo=yes
16105 else
16106 emacs_cv_freebsd_terminfo=no
16107 fi
16108 rm -f core conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 fi
16111
16112
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
16114 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
16115
16116 if test $emacs_cv_freebsd_terminfo = yes; then
16117 TERMINFO=yes
16118 LIBS_TERMCAP="-lncurses"
16119 else
16120 LIBS_TERMCAP="-ltermcap"
16121 fi
16122 ;;
16123
16124 netbsd)
16125 if test $ac_cv_search_tputs = -lterminfo; then
16126 TERMINFO=yes
16127 LIBS_TERMCAP="-lterminfo"
16128 else
16129 LIBS_TERMCAP="-ltermcap"
16130 fi
16131 ;;
16132
16133 esac
16134
16135 case "$opsys" in
16136 ## hpux: Make sure we get select from libc rather than from libcurses
16137 ## because libcurses on HPUX 10.10 has a broken version of select.
16138 ## We used to use -lc -lcurses, but this may be cleaner.
16139 hpux*) LIBS_TERMCAP="-ltermcap" ;;
16140
16141 openbsd) LIBS_TERMCAP="-lncurses" ;;
16142
16143 ## Must use system termcap, if we use any termcap. It does special things.
16144 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
16145 esac
16146
16147 TERMCAP_OBJ=tparam.o
16148 if test $TERMINFO = yes; then
16149
16150 $as_echo "#define TERMINFO 1" >>confdefs.h
16151
16152
16153 ## Default used to be -ltermcap. Add a case above if need something else.
16154 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
16155
16156 TERMCAP_OBJ=terminfo.o
16157 fi
16158
16159
16160
16161
16162 # Do we have res_init, for detecting changes in /etc/resolv.conf?
16163 resolv=no
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 #include <netinet/in.h>
16167 #include <arpa/nameser.h>
16168 #include <resolv.h>
16169 int
16170 main ()
16171 {
16172 return res_init();
16173 ;
16174 return 0;
16175 }
16176 _ACEOF
16177 if ac_fn_c_try_link "$LINENO"; then :
16178 have_res_init=yes
16179 else
16180 have_res_init=no
16181 fi
16182 rm -f core conftest.err conftest.$ac_objext \
16183 conftest$ac_exeext conftest.$ac_ext
16184 if test "$have_res_init" = no; then
16185 OLIBS="$LIBS"
16186 LIBS="$LIBS -lresolv"
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
16188 $as_echo_n "checking for res_init with -lresolv... " >&6; }
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191 #include <netinet/in.h>
16192 #include <arpa/nameser.h>
16193 #include <resolv.h>
16194 int
16195 main ()
16196 {
16197 return res_init();
16198 ;
16199 return 0;
16200 }
16201 _ACEOF
16202 if ac_fn_c_try_link "$LINENO"; then :
16203 have_res_init=yes
16204 else
16205 have_res_init=no
16206 fi
16207 rm -f core conftest.err conftest.$ac_objext \
16208 conftest$ac_exeext conftest.$ac_ext
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
16210 $as_echo "$have_res_init" >&6; }
16211 if test "$have_res_init" = yes ; then
16212 resolv=yes
16213 fi
16214 LIBS="$OLIBS"
16215 fi
16216
16217 if test "$have_res_init" = yes; then
16218
16219 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
16220
16221 fi
16222
16223 # Do we need the Hesiod library to provide the support routines?
16224 LIBHESIOD=
16225 if test "$with_hesiod" != no ; then
16226 # Don't set $LIBS here -- see comments above. FIXME which comments?
16227 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
16228 if test "x$ac_cv_func_res_send" = xyes; then :
16229
16230 else
16231 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
16232 if test "x$ac_cv_func___res_send" = xyes; then :
16233
16234 else
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
16236 $as_echo_n "checking for res_send in -lresolv... " >&6; }
16237 if ${ac_cv_lib_resolv_res_send+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239 else
16240 ac_check_lib_save_LIBS=$LIBS
16241 LIBS="-lresolv $LIBS"
16242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h. */
16244
16245 /* Override any GCC internal prototype to avoid an error.
16246 Use char because int might match the return type of a GCC
16247 builtin and then its argument prototype would still apply. */
16248 #ifdef __cplusplus
16249 extern "C"
16250 #endif
16251 char res_send ();
16252 int
16253 main ()
16254 {
16255 return res_send ();
16256 ;
16257 return 0;
16258 }
16259 _ACEOF
16260 if ac_fn_c_try_link "$LINENO"; then :
16261 ac_cv_lib_resolv_res_send=yes
16262 else
16263 ac_cv_lib_resolv_res_send=no
16264 fi
16265 rm -f core conftest.err conftest.$ac_objext \
16266 conftest$ac_exeext conftest.$ac_ext
16267 LIBS=$ac_check_lib_save_LIBS
16268 fi
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
16270 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
16271 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
16272 resolv=yes
16273 else
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
16275 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
16276 if ${ac_cv_lib_resolv___res_send+:} false; then :
16277 $as_echo_n "(cached) " >&6
16278 else
16279 ac_check_lib_save_LIBS=$LIBS
16280 LIBS="-lresolv $LIBS"
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283
16284 /* Override any GCC internal prototype to avoid an error.
16285 Use char because int might match the return type of a GCC
16286 builtin and then its argument prototype would still apply. */
16287 #ifdef __cplusplus
16288 extern "C"
16289 #endif
16290 char __res_send ();
16291 int
16292 main ()
16293 {
16294 return __res_send ();
16295 ;
16296 return 0;
16297 }
16298 _ACEOF
16299 if ac_fn_c_try_link "$LINENO"; then :
16300 ac_cv_lib_resolv___res_send=yes
16301 else
16302 ac_cv_lib_resolv___res_send=no
16303 fi
16304 rm -f core conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
16306 LIBS=$ac_check_lib_save_LIBS
16307 fi
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
16309 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
16310 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
16311 resolv=yes
16312 fi
16313
16314 fi
16315
16316 fi
16317
16318 fi
16319
16320 if test "$resolv" = yes ; then
16321 RESOLVLIB=-lresolv
16322 else
16323 RESOLVLIB=
16324 fi
16325 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
16326 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
16327
16328 else
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
16330 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
16331 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
16332 $as_echo_n "(cached) " >&6
16333 else
16334 ac_check_lib_save_LIBS=$LIBS
16335 LIBS="-lhesiod $RESOLVLIB $LIBS"
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16338
16339 /* Override any GCC internal prototype to avoid an error.
16340 Use char because int might match the return type of a GCC
16341 builtin and then its argument prototype would still apply. */
16342 #ifdef __cplusplus
16343 extern "C"
16344 #endif
16345 char hes_getmailhost ();
16346 int
16347 main ()
16348 {
16349 return hes_getmailhost ();
16350 ;
16351 return 0;
16352 }
16353 _ACEOF
16354 if ac_fn_c_try_link "$LINENO"; then :
16355 ac_cv_lib_hesiod_hes_getmailhost=yes
16356 else
16357 ac_cv_lib_hesiod_hes_getmailhost=no
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext \
16360 conftest$ac_exeext conftest.$ac_ext
16361 LIBS=$ac_check_lib_save_LIBS
16362 fi
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16364 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
16365 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
16366 hesiod=yes
16367 else
16368 :
16369 fi
16370
16371 fi
16372
16373
16374 if test x"$hesiod" = xyes; then
16375
16376 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
16377
16378 LIBHESIOD=-lhesiod
16379 fi
16380 fi
16381
16382
16383 # Do we need libresolv (due to res_init or Hesiod)?
16384 if test "$resolv" = yes ; then
16385
16386 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
16387
16388 LIBRESOLV=-lresolv
16389 else
16390 LIBRESOLV=
16391 fi
16392
16393
16394 # These tell us which Kerberos-related libraries to use.
16395 COM_ERRLIB=
16396 CRYPTOLIB=
16397 KRB5LIB=
16398 DESLIB=
16399 KRB4LIB=
16400
16401 if test "${with_kerberos}" != no; then
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
16403 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
16404 if ${ac_cv_lib_com_err_com_err+:} false; then :
16405 $as_echo_n "(cached) " >&6
16406 else
16407 ac_check_lib_save_LIBS=$LIBS
16408 LIBS="-lcom_err $LIBS"
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16411
16412 /* Override any GCC internal prototype to avoid an error.
16413 Use char because int might match the return type of a GCC
16414 builtin and then its argument prototype would still apply. */
16415 #ifdef __cplusplus
16416 extern "C"
16417 #endif
16418 char com_err ();
16419 int
16420 main ()
16421 {
16422 return com_err ();
16423 ;
16424 return 0;
16425 }
16426 _ACEOF
16427 if ac_fn_c_try_link "$LINENO"; then :
16428 ac_cv_lib_com_err_com_err=yes
16429 else
16430 ac_cv_lib_com_err_com_err=no
16431 fi
16432 rm -f core conftest.err conftest.$ac_objext \
16433 conftest$ac_exeext conftest.$ac_ext
16434 LIBS=$ac_check_lib_save_LIBS
16435 fi
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
16437 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
16438 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
16439 have_com_err=yes
16440 else
16441 have_com_err=no
16442 fi
16443
16444 if test $have_com_err = yes; then
16445 COM_ERRLIB=-lcom_err
16446 LIBS="$COM_ERRLIB $LIBS"
16447
16448 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
16449
16450 fi
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16452 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
16453 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
16454 $as_echo_n "(cached) " >&6
16455 else
16456 ac_check_lib_save_LIBS=$LIBS
16457 LIBS="-lcrypto $LIBS"
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h. */
16460
16461 /* Override any GCC internal prototype to avoid an error.
16462 Use char because int might match the return type of a GCC
16463 builtin and then its argument prototype would still apply. */
16464 #ifdef __cplusplus
16465 extern "C"
16466 #endif
16467 char mit_des_cbc_encrypt ();
16468 int
16469 main ()
16470 {
16471 return mit_des_cbc_encrypt ();
16472 ;
16473 return 0;
16474 }
16475 _ACEOF
16476 if ac_fn_c_try_link "$LINENO"; then :
16477 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
16478 else
16479 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
16480 fi
16481 rm -f core conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 LIBS=$ac_check_lib_save_LIBS
16484 fi
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16486 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
16487 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
16488 have_crypto=yes
16489 else
16490 have_crypto=no
16491 fi
16492
16493 if test $have_crypto = yes; then
16494 CRYPTOLIB=-lcrypto
16495 LIBS="$CRYPTOLIB $LIBS"
16496
16497 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16498
16499 fi
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16501 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
16502 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
16503 $as_echo_n "(cached) " >&6
16504 else
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lk5crypto $LIBS"
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16509
16510 /* Override any GCC internal prototype to avoid an error.
16511 Use char because int might match the return type of a GCC
16512 builtin and then its argument prototype would still apply. */
16513 #ifdef __cplusplus
16514 extern "C"
16515 #endif
16516 char mit_des_cbc_encrypt ();
16517 int
16518 main ()
16519 {
16520 return mit_des_cbc_encrypt ();
16521 ;
16522 return 0;
16523 }
16524 _ACEOF
16525 if ac_fn_c_try_link "$LINENO"; then :
16526 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16527 else
16528 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext \
16531 conftest$ac_exeext conftest.$ac_ext
16532 LIBS=$ac_check_lib_save_LIBS
16533 fi
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16535 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
16536 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
16537 have_k5crypto=yes
16538 else
16539 have_k5crypto=no
16540 fi
16541
16542 if test $have_k5crypto = yes; then
16543 CRYPTOLIB=-lk5crypto
16544 LIBS="$CRYPTOLIB $LIBS"
16545
16546 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16547
16548 fi
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16550 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16551 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
16552 $as_echo_n "(cached) " >&6
16553 else
16554 ac_check_lib_save_LIBS=$LIBS
16555 LIBS="-lkrb5 $LIBS"
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558
16559 /* Override any GCC internal prototype to avoid an error.
16560 Use char because int might match the return type of a GCC
16561 builtin and then its argument prototype would still apply. */
16562 #ifdef __cplusplus
16563 extern "C"
16564 #endif
16565 char krb5_init_context ();
16566 int
16567 main ()
16568 {
16569 return krb5_init_context ();
16570 ;
16571 return 0;
16572 }
16573 _ACEOF
16574 if ac_fn_c_try_link "$LINENO"; then :
16575 ac_cv_lib_krb5_krb5_init_context=yes
16576 else
16577 ac_cv_lib_krb5_krb5_init_context=no
16578 fi
16579 rm -f core conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
16581 LIBS=$ac_check_lib_save_LIBS
16582 fi
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16584 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16585 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
16586 have_krb5=yes
16587 else
16588 have_krb5=no
16589 fi
16590
16591 if test $have_krb5=yes; then
16592 KRB5LIB=-lkrb5
16593 LIBS="$KRB5LIB $LIBS"
16594
16595 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16596
16597 fi
16598 if test "${with_kerberos5}" = no; then
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16600 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16601 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
16602 $as_echo_n "(cached) " >&6
16603 else
16604 ac_check_lib_save_LIBS=$LIBS
16605 LIBS="-ldes425 $LIBS"
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16608
16609 /* Override any GCC internal prototype to avoid an error.
16610 Use char because int might match the return type of a GCC
16611 builtin and then its argument prototype would still apply. */
16612 #ifdef __cplusplus
16613 extern "C"
16614 #endif
16615 char des_cbc_encrypt ();
16616 int
16617 main ()
16618 {
16619 return des_cbc_encrypt ();
16620 ;
16621 return 0;
16622 }
16623 _ACEOF
16624 if ac_fn_c_try_link "$LINENO"; then :
16625 ac_cv_lib_des425_des_cbc_encrypt=yes
16626 else
16627 ac_cv_lib_des425_des_cbc_encrypt=no
16628 fi
16629 rm -f core conftest.err conftest.$ac_objext \
16630 conftest$ac_exeext conftest.$ac_ext
16631 LIBS=$ac_check_lib_save_LIBS
16632 fi
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16634 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16635 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
16636 have_des425=yes
16637 else
16638 have_des425=no
16639 fi
16640
16641 if test $have_des425 = yes; then
16642 DESLIB=-ldes425
16643 LIBS="$DESLIB $LIBS"
16644
16645 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16646
16647 else
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16649 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16650 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16651 $as_echo_n "(cached) " >&6
16652 else
16653 ac_check_lib_save_LIBS=$LIBS
16654 LIBS="-ldes $LIBS"
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657
16658 /* Override any GCC internal prototype to avoid an error.
16659 Use char because int might match the return type of a GCC
16660 builtin and then its argument prototype would still apply. */
16661 #ifdef __cplusplus
16662 extern "C"
16663 #endif
16664 char des_cbc_encrypt ();
16665 int
16666 main ()
16667 {
16668 return des_cbc_encrypt ();
16669 ;
16670 return 0;
16671 }
16672 _ACEOF
16673 if ac_fn_c_try_link "$LINENO"; then :
16674 ac_cv_lib_des_des_cbc_encrypt=yes
16675 else
16676 ac_cv_lib_des_des_cbc_encrypt=no
16677 fi
16678 rm -f core conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16681 fi
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16683 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16684 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16685 have_des=yes
16686 else
16687 have_des=no
16688 fi
16689
16690 if test $have_des = yes; then
16691 DESLIB=-ldes
16692 LIBS="$DESLIB $LIBS"
16693
16694 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16695
16696 fi
16697 fi
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16699 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16700 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703 ac_check_lib_save_LIBS=$LIBS
16704 LIBS="-lkrb4 $LIBS"
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16707
16708 /* Override any GCC internal prototype to avoid an error.
16709 Use char because int might match the return type of a GCC
16710 builtin and then its argument prototype would still apply. */
16711 #ifdef __cplusplus
16712 extern "C"
16713 #endif
16714 char krb_get_cred ();
16715 int
16716 main ()
16717 {
16718 return krb_get_cred ();
16719 ;
16720 return 0;
16721 }
16722 _ACEOF
16723 if ac_fn_c_try_link "$LINENO"; then :
16724 ac_cv_lib_krb4_krb_get_cred=yes
16725 else
16726 ac_cv_lib_krb4_krb_get_cred=no
16727 fi
16728 rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16730 LIBS=$ac_check_lib_save_LIBS
16731 fi
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16733 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16734 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
16735 have_krb4=yes
16736 else
16737 have_krb4=no
16738 fi
16739
16740 if test $have_krb4 = yes; then
16741 KRB4LIB=-lkrb4
16742 LIBS="$KRB4LIB $LIBS"
16743
16744 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16745
16746 else
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16748 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16749 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
16750 $as_echo_n "(cached) " >&6
16751 else
16752 ac_check_lib_save_LIBS=$LIBS
16753 LIBS="-lkrb $LIBS"
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16756
16757 /* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16760 #ifdef __cplusplus
16761 extern "C"
16762 #endif
16763 char krb_get_cred ();
16764 int
16765 main ()
16766 {
16767 return krb_get_cred ();
16768 ;
16769 return 0;
16770 }
16771 _ACEOF
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 ac_cv_lib_krb_krb_get_cred=yes
16774 else
16775 ac_cv_lib_krb_krb_get_cred=no
16776 fi
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16779 LIBS=$ac_check_lib_save_LIBS
16780 fi
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16782 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16783 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
16784 have_krb=yes
16785 else
16786 have_krb=no
16787 fi
16788
16789 if test $have_krb = yes; then
16790 KRB4LIB=-lkrb
16791 LIBS="$KRB4LIB $LIBS"
16792
16793 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16794
16795 fi
16796 fi
16797 fi
16798
16799 if test "${with_kerberos5}" != no; then
16800 for ac_header in krb5.h
16801 do :
16802 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16803 if test "x$ac_cv_header_krb5_h" = xyes; then :
16804 cat >>confdefs.h <<_ACEOF
16805 #define HAVE_KRB5_H 1
16806 _ACEOF
16807 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16808 "
16809 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
16810
16811 cat >>confdefs.h <<_ACEOF
16812 #define HAVE_KRB5_ERROR_TEXT 1
16813 _ACEOF
16814
16815
16816 fi
16817 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16818 "
16819 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
16820
16821 cat >>confdefs.h <<_ACEOF
16822 #define HAVE_KRB5_ERROR_E_TEXT 1
16823 _ACEOF
16824
16825
16826 fi
16827
16828 fi
16829
16830 done
16831
16832 else
16833 for ac_header in des.h
16834 do :
16835 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16836 if test "x$ac_cv_header_des_h" = xyes; then :
16837 cat >>confdefs.h <<_ACEOF
16838 #define HAVE_DES_H 1
16839 _ACEOF
16840
16841 else
16842 for ac_header in kerberosIV/des.h
16843 do :
16844 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16845 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
16846 cat >>confdefs.h <<_ACEOF
16847 #define HAVE_KERBEROSIV_DES_H 1
16848 _ACEOF
16849
16850 else
16851 for ac_header in kerberos/des.h
16852 do :
16853 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16854 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
16855 cat >>confdefs.h <<_ACEOF
16856 #define HAVE_KERBEROS_DES_H 1
16857 _ACEOF
16858
16859 fi
16860
16861 done
16862
16863 fi
16864
16865 done
16866
16867 fi
16868
16869 done
16870
16871 for ac_header in krb.h
16872 do :
16873 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16874 if test "x$ac_cv_header_krb_h" = xyes; then :
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_KRB_H 1
16877 _ACEOF
16878
16879 else
16880 for ac_header in kerberosIV/krb.h
16881 do :
16882 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16883 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
16884 cat >>confdefs.h <<_ACEOF
16885 #define HAVE_KERBEROSIV_KRB_H 1
16886 _ACEOF
16887
16888 else
16889 for ac_header in kerberos/krb.h
16890 do :
16891 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16892 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
16893 cat >>confdefs.h <<_ACEOF
16894 #define HAVE_KERBEROS_KRB_H 1
16895 _ACEOF
16896
16897 fi
16898
16899 done
16900
16901 fi
16902
16903 done
16904
16905 fi
16906
16907 done
16908
16909 fi
16910 for ac_header in com_err.h
16911 do :
16912 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16913 if test "x$ac_cv_header_com_err_h" = xyes; then :
16914 cat >>confdefs.h <<_ACEOF
16915 #define HAVE_COM_ERR_H 1
16916 _ACEOF
16917
16918 fi
16919
16920 done
16921
16922 fi
16923
16924
16925
16926
16927
16928
16929
16930 # Solaris requires -lintl if you want strerror (which calls dgettext)
16931 # to return localized messages.
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16933 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16934 if ${ac_cv_lib_intl_dgettext+:} false; then :
16935 $as_echo_n "(cached) " >&6
16936 else
16937 ac_check_lib_save_LIBS=$LIBS
16938 LIBS="-lintl $LIBS"
16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h. */
16941
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16945 #ifdef __cplusplus
16946 extern "C"
16947 #endif
16948 char dgettext ();
16949 int
16950 main ()
16951 {
16952 return dgettext ();
16953 ;
16954 return 0;
16955 }
16956 _ACEOF
16957 if ac_fn_c_try_link "$LINENO"; then :
16958 ac_cv_lib_intl_dgettext=yes
16959 else
16960 ac_cv_lib_intl_dgettext=no
16961 fi
16962 rm -f core conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_check_lib_save_LIBS
16965 fi
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16967 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16968 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
16969 cat >>confdefs.h <<_ACEOF
16970 #define HAVE_LIBINTL 1
16971 _ACEOF
16972
16973 LIBS="-lintl $LIBS"
16974
16975 fi
16976
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16979 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16980 if ${emacs_cv_localtime_cache+:} false; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 if test x$ac_cv_func_tzset = xyes; then
16984 if test "$cross_compiling" = yes; then :
16985 # If we have tzset, assume the worst when cross-compiling.
16986 emacs_cv_localtime_cache=yes
16987 else
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16990 #include <time.h>
16991 char TZ_GMT0[] = "TZ=GMT0";
16992 char TZ_PST8[] = "TZ=PST8";
16993 main()
16994 {
16995 time_t now = time ((time_t *) 0);
16996 int hour_GMT0, hour_unset;
16997 if (putenv (TZ_GMT0) != 0)
16998 exit (1);
16999 hour_GMT0 = localtime (&now)->tm_hour;
17000 unsetenv("TZ");
17001 hour_unset = localtime (&now)->tm_hour;
17002 if (putenv (TZ_PST8) != 0)
17003 exit (1);
17004 if (localtime (&now)->tm_hour == hour_GMT0)
17005 exit (1);
17006 unsetenv("TZ");
17007 if (localtime (&now)->tm_hour != hour_unset)
17008 exit (1);
17009 exit (0);
17010 }
17011 _ACEOF
17012 if ac_fn_c_try_run "$LINENO"; then :
17013 emacs_cv_localtime_cache=no
17014 else
17015 emacs_cv_localtime_cache=yes
17016 fi
17017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17018 conftest.$ac_objext conftest.beam conftest.$ac_ext
17019 fi
17020
17021 else
17022 # If we lack tzset, report that localtime does not cache TZ,
17023 # since we can't invalidate the cache if we don't have tzset.
17024 emacs_cv_localtime_cache=no
17025 fi
17026 fi
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
17028 $as_echo "$emacs_cv_localtime_cache" >&6; }
17029 if test $emacs_cv_localtime_cache = yes; then
17030
17031 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
17032
17033 fi
17034
17035 if test "x$HAVE_TIMEVAL" = xyes; then
17036 for ac_func in gettimeofday
17037 do :
17038 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17039 if test "x$ac_cv_func_gettimeofday" = xyes; then :
17040 cat >>confdefs.h <<_ACEOF
17041 #define HAVE_GETTIMEOFDAY 1
17042 _ACEOF
17043
17044 fi
17045 done
17046
17047 if test $ac_cv_func_gettimeofday = yes; then
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
17049 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
17050 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
17051 $as_echo_n "(cached) " >&6
17052 else
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17055
17056 #ifdef TIME_WITH_SYS_TIME
17057 #include <sys/time.h>
17058 #include <time.h>
17059 #else
17060 #ifdef HAVE_SYS_TIME_H
17061 #include <sys/time.h>
17062 #else
17063 #include <time.h>
17064 #endif
17065 #endif
17066 int
17067 main ()
17068 {
17069 struct timeval time;
17070 gettimeofday (&time, 0);
17071 ;
17072 return 0;
17073 }
17074 _ACEOF
17075 if ac_fn_c_try_compile "$LINENO"; then :
17076 emacs_cv_gettimeofday_two_arguments=yes
17077 else
17078 emacs_cv_gettimeofday_two_arguments=no
17079 fi
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081 fi
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
17083 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
17084 if test $emacs_cv_gettimeofday_two_arguments = no; then
17085
17086 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
17087
17088 fi
17089 fi
17090 fi
17091
17092 ok_so_far=yes
17093 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17094 if test "x$ac_cv_func_socket" = xyes; then :
17095
17096 else
17097 ok_so_far=no
17098 fi
17099
17100 if test $ok_so_far = yes; then
17101 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
17102 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
17103
17104 else
17105 ok_so_far=no
17106 fi
17107
17108
17109 fi
17110 if test $ok_so_far = yes; then
17111 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
17112 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
17113
17114 else
17115 ok_so_far=no
17116 fi
17117
17118
17119 fi
17120 if test $ok_so_far = yes; then
17121
17122 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
17123
17124 fi
17125
17126 if test -f /usr/lpp/X11/bin/smt.exp; then
17127
17128 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
17129
17130 fi
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
17133 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
17134 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17136 $as_echo "yes" >&6; }
17137
17138 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
17139
17140 else
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17142 $as_echo "no" >&6; }
17143 fi
17144
17145 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17146 if test "x$ac_cv_type_pid_t" = xyes; then :
17147
17148 else
17149
17150 cat >>confdefs.h <<_ACEOF
17151 #define pid_t int
17152 _ACEOF
17153
17154 fi
17155
17156 for ac_header in vfork.h
17157 do :
17158 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17159 if test "x$ac_cv_header_vfork_h" = xyes; then :
17160 cat >>confdefs.h <<_ACEOF
17161 #define HAVE_VFORK_H 1
17162 _ACEOF
17163
17164 fi
17165
17166 done
17167
17168 for ac_func in fork vfork
17169 do :
17170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17172 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17173 cat >>confdefs.h <<_ACEOF
17174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17175 _ACEOF
17176
17177 fi
17178 done
17179
17180 if test "x$ac_cv_func_fork" = xyes; then
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17182 $as_echo_n "checking for working fork... " >&6; }
17183 if ${ac_cv_func_fork_works+:} false; then :
17184 $as_echo_n "(cached) " >&6
17185 else
17186 if test "$cross_compiling" = yes; then :
17187 ac_cv_func_fork_works=cross
17188 else
17189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17191 $ac_includes_default
17192 int
17193 main ()
17194 {
17195
17196 /* By Ruediger Kuhlmann. */
17197 return fork () < 0;
17198
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 if ac_fn_c_try_run "$LINENO"; then :
17204 ac_cv_func_fork_works=yes
17205 else
17206 ac_cv_func_fork_works=no
17207 fi
17208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17209 conftest.$ac_objext conftest.beam conftest.$ac_ext
17210 fi
17211
17212 fi
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17214 $as_echo "$ac_cv_func_fork_works" >&6; }
17215
17216 else
17217 ac_cv_func_fork_works=$ac_cv_func_fork
17218 fi
17219 if test "x$ac_cv_func_fork_works" = xcross; then
17220 case $host in
17221 *-*-amigaos* | *-*-msdosdjgpp*)
17222 # Override, as these systems have only a dummy fork() stub
17223 ac_cv_func_fork_works=no
17224 ;;
17225 *)
17226 ac_cv_func_fork_works=yes
17227 ;;
17228 esac
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17230 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17231 fi
17232 ac_cv_func_vfork_works=$ac_cv_func_vfork
17233 if test "x$ac_cv_func_vfork" = xyes; then
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17235 $as_echo_n "checking for working vfork... " >&6; }
17236 if ${ac_cv_func_vfork_works+:} false; then :
17237 $as_echo_n "(cached) " >&6
17238 else
17239 if test "$cross_compiling" = yes; then :
17240 ac_cv_func_vfork_works=cross
17241 else
17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17244 /* Thanks to Paul Eggert for this test. */
17245 $ac_includes_default
17246 #include <sys/wait.h>
17247 #ifdef HAVE_VFORK_H
17248 # include <vfork.h>
17249 #endif
17250 /* On some sparc systems, changes by the child to local and incoming
17251 argument registers are propagated back to the parent. The compiler
17252 is told about this with #include <vfork.h>, but some compilers
17253 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17254 static variable whose address is put into a register that is
17255 clobbered by the vfork. */
17256 static void
17257 #ifdef __cplusplus
17258 sparc_address_test (int arg)
17259 # else
17260 sparc_address_test (arg) int arg;
17261 #endif
17262 {
17263 static pid_t child;
17264 if (!child) {
17265 child = vfork ();
17266 if (child < 0) {
17267 perror ("vfork");
17268 _exit(2);
17269 }
17270 if (!child) {
17271 arg = getpid();
17272 write(-1, "", 0);
17273 _exit (arg);
17274 }
17275 }
17276 }
17277
17278 int
17279 main ()
17280 {
17281 pid_t parent = getpid ();
17282 pid_t child;
17283
17284 sparc_address_test (0);
17285
17286 child = vfork ();
17287
17288 if (child == 0) {
17289 /* Here is another test for sparc vfork register problems. This
17290 test uses lots of local variables, at least as many local
17291 variables as main has allocated so far including compiler
17292 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17293 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17294 reuse the register of parent for one of the local variables,
17295 since it will think that parent can't possibly be used any more
17296 in this routine. Assigning to the local variable will thus
17297 munge parent in the parent process. */
17298 pid_t
17299 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17300 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17301 /* Convince the compiler that p..p7 are live; otherwise, it might
17302 use the same hardware register for all 8 local variables. */
17303 if (p != p1 || p != p2 || p != p3 || p != p4
17304 || p != p5 || p != p6 || p != p7)
17305 _exit(1);
17306
17307 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17308 from child file descriptors. If the child closes a descriptor
17309 before it execs or exits, this munges the parent's descriptor
17310 as well. Test for this by closing stdout in the child. */
17311 _exit(close(fileno(stdout)) != 0);
17312 } else {
17313 int status;
17314 struct stat st;
17315
17316 while (wait(&status) != child)
17317 ;
17318 return (
17319 /* Was there some problem with vforking? */
17320 child < 0
17321
17322 /* Did the child fail? (This shouldn't happen.) */
17323 || status
17324
17325 /* Did the vfork/compiler bug occur? */
17326 || parent != getpid()
17327
17328 /* Did the file descriptor bug occur? */
17329 || fstat(fileno(stdout), &st) != 0
17330 );
17331 }
17332 }
17333 _ACEOF
17334 if ac_fn_c_try_run "$LINENO"; then :
17335 ac_cv_func_vfork_works=yes
17336 else
17337 ac_cv_func_vfork_works=no
17338 fi
17339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17340 conftest.$ac_objext conftest.beam conftest.$ac_ext
17341 fi
17342
17343 fi
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17345 $as_echo "$ac_cv_func_vfork_works" >&6; }
17346
17347 fi;
17348 if test "x$ac_cv_func_fork_works" = xcross; then
17349 ac_cv_func_vfork_works=$ac_cv_func_vfork
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17351 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17352 fi
17353
17354 if test "x$ac_cv_func_vfork_works" = xyes; then
17355
17356 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17357
17358 else
17359
17360 $as_echo "#define vfork fork" >>confdefs.h
17361
17362 fi
17363 if test "x$ac_cv_func_fork_works" = xyes; then
17364
17365 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17366
17367 fi
17368
17369
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
17371 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
17372 if ${emacs_cv_langinfo_codeset+:} false; then :
17373 $as_echo_n "(cached) " >&6
17374 else
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17377 #include <langinfo.h>
17378 int
17379 main ()
17380 {
17381 char* cs = nl_langinfo(CODESET);
17382 ;
17383 return 0;
17384 }
17385 _ACEOF
17386 if ac_fn_c_try_link "$LINENO"; then :
17387 emacs_cv_langinfo_codeset=yes
17388 else
17389 emacs_cv_langinfo_codeset=no
17390 fi
17391 rm -f core conftest.err conftest.$ac_objext \
17392 conftest$ac_exeext conftest.$ac_ext
17393
17394 fi
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
17396 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
17397 if test $emacs_cv_langinfo_codeset = yes; then
17398
17399 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
17400
17401 fi
17402
17403 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17404 if test "x$ac_cv_type_size_t" = xyes; then :
17405
17406 cat >>confdefs.h <<_ACEOF
17407 #define HAVE_SIZE_T 1
17408 _ACEOF
17409
17410
17411 fi
17412
17413
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17415 $as_echo_n "checking for mbstate_t... " >&6; }
17416 if ${ac_cv_type_mbstate_t+:} false; then :
17417 $as_echo_n "(cached) " >&6
17418 else
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17421 $ac_includes_default
17422 # include <wchar.h>
17423 int
17424 main ()
17425 {
17426 mbstate_t x; return sizeof x;
17427 ;
17428 return 0;
17429 }
17430 _ACEOF
17431 if ac_fn_c_try_compile "$LINENO"; then :
17432 ac_cv_type_mbstate_t=yes
17433 else
17434 ac_cv_type_mbstate_t=no
17435 fi
17436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 fi
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17439 $as_echo "$ac_cv_type_mbstate_t" >&6; }
17440 if test $ac_cv_type_mbstate_t = yes; then
17441
17442 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17443
17444 else
17445
17446 $as_echo "#define mbstate_t int" >>confdefs.h
17447
17448 fi
17449
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
17451 $as_echo_n "checking for C restricted array declarations... " >&6; }
17452 if ${emacs_cv_c_restrict_arr+:} false; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17457 void fred (int x[__restrict]);
17458 int
17459 main ()
17460 {
17461
17462 ;
17463 return 0;
17464 }
17465 _ACEOF
17466 if ac_fn_c_try_compile "$LINENO"; then :
17467 emacs_cv_c_restrict_arr=yes
17468 else
17469 emacs_cv_c_restrict_arr=no
17470 fi
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17472 fi
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
17474 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
17475 if test "$emacs_cv_c_restrict_arr" = yes; then
17476
17477 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
17478
17479 fi
17480
17481
17482
17483 # Set up the CFLAGS for real compilation, so we can substitute it.
17484 CFLAGS="$REAL_CFLAGS"
17485 CPPFLAGS="$REAL_CPPFLAGS"
17486
17487 ## Hack to detect a buggy GCC version.
17488 if test "x$GCC" = xyes \
17489 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17490 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17491 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17492 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17493 fi
17494
17495 version=$PACKAGE_VERSION
17496
17497 ### Specify what sort of things we'll be editing into Makefile and config.h.
17498 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17499
17500
17501 ## Unused?
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17523 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17524 ## end of LIBX_BASE, but nothing ever set it.
17525
17526
17527
17528
17529 ## Used in lwlib/Makefile.in.
17530
17531 if test -n "${machfile}"; then
17532 M_FILE="\$(srcdir)/${machfile}"
17533 else
17534 M_FILE=
17535 fi
17536 S_FILE="\$(srcdir)/${opsysfile}"
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547 cat >>confdefs.h <<_ACEOF
17548 #define EMACS_CONFIGURATION "${canonical}"
17549 _ACEOF
17550
17551
17552 cat >>confdefs.h <<_ACEOF
17553 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17554 _ACEOF
17555
17556 if test -n "$machfile"; then
17557
17558 cat >>confdefs.h <<_ACEOF
17559 #define config_machfile "${machfile}"
17560 _ACEOF
17561
17562 fi
17563
17564 cat >>confdefs.h <<_ACEOF
17565 #define config_opsysfile "${opsysfile}"
17566 _ACEOF
17567
17568
17569 XMENU_OBJ=
17570 XOBJ=
17571 FONT_OBJ=
17572 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17573
17574 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17575
17576 XMENU_OBJ=xmenu.o
17577 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17578 FONT_OBJ=xfont.o
17579 if test "$HAVE_XFT" = "yes"; then
17580 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17581 elif test "$HAVE_FREETYPE" = "yes"; then
17582 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17583 fi
17584
17585 fi
17586
17587
17588
17589
17590 WIDGET_OBJ=
17591 MOTIF_LIBW=
17592 if test "${USE_X_TOOLKIT}" != "none" ; then
17593 WIDGET_OBJ=widget.o
17594
17595 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17596
17597 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17598
17599 $as_echo "#define USE_LUCID 1" >>confdefs.h
17600
17601 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17602
17603 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17604
17605 MOTIF_LIBW=-lXm
17606 case "$opsys" in
17607 gnu-linux)
17608 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17609 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17610 ;;
17611
17612 unixware)
17613 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17614 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17615 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17616 ;;
17617
17618 aix4-2)
17619 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17620 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17621 ;;
17622 esac
17623 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17624 fi
17625 fi
17626
17627
17628 TOOLKIT_LIBW=
17629 case "$USE_X_TOOLKIT" in
17630 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17631 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17632 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17633 esac
17634
17635
17636 if test "$USE_X_TOOLKIT" = "none"; then
17637 LIBXT_OTHER="\$(LIBXSM)"
17638 OLDXMENU_TARGET="really-oldXMenu"
17639 else
17640 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17641 OLDXMENU_TARGET="really-lwlib"
17642 fi
17643
17644
17645 ## The X Menu stuff is present in the X10 distribution, but missing
17646 ## from X11. If we have X10, just use the installed library;
17647 ## otherwise, use our own copy.
17648 if test "${HAVE_X11}" = "yes" ; then
17649
17650 $as_echo "#define HAVE_X11 1" >>confdefs.h
17651
17652
17653 if test "$USE_X_TOOLKIT" = "none"; then
17654 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17655 else
17656 OLDXMENU="\${lwlibdir}/liblw.a"
17657 fi
17658 LIBXMENU="\$(OLDXMENU)"
17659 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17660 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17661 else
17662 ## For a syntactically valid Makefile; not actually used for anything.
17663 ## See comments in src/Makefile.in.
17664 OLDXMENU=nothing
17665 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17666 if test "${HAVE_X_WINDOWS}" = "yes"; then
17667 LIBXMENU="-lXMenu"
17668 else
17669 LIBXMENU=
17670 fi
17671 LIBX_OTHER=
17672 OLDXMENU_DEPS=
17673 fi
17674
17675 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17676 OLDXMENU_TARGET=
17677 OLDXMENU=nothing
17678 LIBXMENU=
17679 OLDXMENU_DEPS=
17680 fi
17681
17682
17683
17684
17685
17686
17687
17688 if test "${HAVE_MENUS}" = "yes" ; then
17689
17690 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17691
17692 fi
17693
17694 if test "${GNU_MALLOC}" = "yes" ; then
17695
17696 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17697
17698 fi
17699
17700 RALLOC_OBJ=
17701 if test "${REL_ALLOC}" = "yes" ; then
17702
17703 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17704
17705
17706 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17707 fi
17708
17709
17710 if test "$opsys" = "cygwin"; then
17711 CYGWIN_OBJ="sheap.o"
17712 ## Cygwin differs because of its unexec().
17713 PRE_ALLOC_OBJ=
17714 POST_ALLOC_OBJ=lastfile.o
17715 else
17716 CYGWIN_OBJ=
17717 PRE_ALLOC_OBJ=lastfile.o
17718 POST_ALLOC_OBJ=
17719 fi
17720
17721
17722
17723
17724
17725 case "$opsys" in
17726 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17727
17728 darwin)
17729 ## The -headerpad option tells ld (see man page) to leave room at the
17730 ## end of the header for adding load commands. Needed for dumping.
17731 ## 0x690 is the total size of 30 segment load commands (at 56
17732 ## each); under Cocoa 31 commands are required.
17733 if test "$HAVE_NS" = "yes"; then
17734 libs_nsgui="-framework AppKit"
17735 headerpad_extra=6C8
17736 else
17737 libs_nsgui=
17738 headerpad_extra=690
17739 fi
17740 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17741
17742 ## This is here because src/Makefile.in did some extra fiddling around
17743 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17744 ## #ifndef LD_SWITCH_SYSTEM
17745 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17746 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17747 ## not using gcc, darwin system not on an alpha (ie darwin, since
17748 ## darwin + alpha does not occur).
17749 ## Because this was done in src/Makefile.in, the resulting part of
17750 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17751 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17752 ## rather than LD_SWITCH_SYSTEM.
17753 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17754 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17755 ;;
17756
17757 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17758 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17759 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17760 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17761 ## had different values in configure (in ac_link) and src/Makefile.in.
17762 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17763 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17764
17765 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17766 esac
17767
17768 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17769 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17770 fi
17771
17772
17773
17774
17775 LD_FIRSTFLAG=
17776 ORDINARY_LINK=
17777 case "$opsys" in
17778 ## gnu: GNU needs its own crt0.
17779 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17780
17781 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17782 ## library search parth, i.e. it won't search /usr/lib for libc and
17783 ## friends. Using -nostartfiles instead avoids this problem, and
17784 ## will also work on earlier NetBSD releases.
17785 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17786
17787 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17788 ## MkLinux/LinuxPPC needs this.
17789 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17790 gnu-*)
17791 case "$machine" in
17792 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17793 esac
17794 ;;
17795 esac
17796
17797
17798 if test "x$ORDINARY_LINK" = "xyes"; then
17799
17800 LD_FIRSTFLAG=""
17801
17802 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17803
17804
17805 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17806 ## freebsd, gnu-* not on macppc|ibms390x.
17807 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17808
17809 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17810 ## places that are difficult to figure out at make time. Fortunately,
17811 ## these same versions allow you to pass arbitrary flags on to the
17812 ## linker, so there is no reason not to use it as a linker.
17813 ##
17814 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17815 ## searching for libraries in its internal directories, so we have to
17816 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17817 LD_FIRSTFLAG="-nostdlib"
17818 fi
17819
17820 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17821 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17822
17823
17824
17825
17826 ## FIXME? The logic here is not precisely the same as that above.
17827 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17828 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17829 LIB_GCC=
17830 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17831
17832 case "$opsys" in
17833 freebsd|netbsd|openbsd) LIB_GCC= ;;
17834
17835 gnu-*)
17836 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17837 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17838 case $host_cpu in
17839 arm*)
17840 LIB_GCC="-lgcc_s"
17841 ;;
17842 *)
17843 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17844 ## immediately undefine it again and redefine it to empty.
17845 ## Was the C_SWITCH_X_SITE part really necessary?
17846 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17847 LIB_GCC=
17848 ;;
17849 esac
17850 ;;
17851
17852 ## Ask GCC where to find libgcc.a.
17853 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17854 esac
17855 fi
17856
17857
17858 TOOLTIP_SUPPORT=
17859 WINDOW_SUPPORT=
17860 ## If we're using X11/GNUstep, define some consequences.
17861 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17862
17863 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17864
17865
17866 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17867
17868 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17869 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17870
17871 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17872 test "$HAVE_X_WINDOWS" = "yes" && \
17873 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17874
17875 fi
17876
17877
17878
17879
17880
17881
17882
17883 #### Report on what we decided to do.
17884 #### Report GTK as a toolkit, even if it doesn't use Xt.
17885 #### It makes printing result more understandable as using GTK sets
17886 #### toolkit_scroll_bars to yes by default.
17887 if test "${HAVE_GTK}" = "yes"; then
17888 USE_X_TOOLKIT=GTK
17889 fi
17890
17891 and_machfile=
17892 if test -n "$machfile"; then
17893 and_machfile=" and \`${machfile}'"
17894 fi
17895
17896 echo "
17897 Configured for \`${canonical}'.
17898
17899 Where should the build process find the source code? ${srcdir}
17900 What operating system and machine description files should Emacs use?
17901 \`${opsysfile}'${and_machfile}
17902 What compiler should emacs be built with? ${CC} ${CFLAGS}
17903 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17904 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17905 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17906 What window system should Emacs use? ${window_system}
17907 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17908
17909 if test -n "${x_includes}"; then
17910 echo " Where do we find X Windows header files? ${x_includes}"
17911 else
17912 echo " Where do we find X Windows header files? Standard dirs"
17913 fi
17914 if test -n "${x_libraries}"; then
17915 echo " Where do we find X Windows libraries? ${x_libraries}"
17916 else
17917 echo " Where do we find X Windows libraries? Standard dirs"
17918 fi
17919
17920 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17921 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17922 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17923 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17924 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17925 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17926 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17927 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17928
17929 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17930 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17931 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17932 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17933 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17934 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17935
17936 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17937 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17938 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17939 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17940
17941 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17942 echo
17943
17944 if test $USE_XASSERTS = yes; then
17945 echo " Compiling with asserts turned on."
17946 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17947 fi
17948
17949 echo
17950
17951 if test "$HAVE_NS" = "yes"; then
17952 echo
17953 echo "You must run \"make install\" in order to test the built application.
17954 The installed application will go to nextstep/Emacs.app and can be
17955 run or moved from there."
17956 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17957 echo "The application will be fully self-contained."
17958 else
17959 echo "The lisp resources for the application will be installed under ${prefix}.
17960 You may need to run \"make install\" with sudo. The application will fail
17961 to run if these resources are not installed."
17962 fi
17963 echo
17964 fi
17965
17966
17967 # Remove any trailing slashes in these variables.
17968 test "${prefix}" != NONE &&
17969 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17970 test "${exec_prefix}" != NONE &&
17971 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17972
17973 ac_config_files="$ac_config_files Makefile lib/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 test/automated/Makefile"
17974
17975 ac_config_commands="$ac_config_commands default"
17976
17977 cat >confcache <<\_ACEOF
17978 # This file is a shell script that caches the results of configure
17979 # tests run on this system so they can be shared between configure
17980 # scripts and configure runs, see configure's option --config-cache.
17981 # It is not useful on other systems. If it contains results you don't
17982 # want to keep, you may remove or edit it.
17983 #
17984 # config.status only pays attention to the cache file if you give it
17985 # the --recheck option to rerun configure.
17986 #
17987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17989 # following values.
17990
17991 _ACEOF
17992
17993 # The following way of writing the cache mishandles newlines in values,
17994 # but we know of no workaround that is simple, portable, and efficient.
17995 # So, we kill variables containing newlines.
17996 # Ultrix sh set writes to stderr and can't be redirected directly,
17997 # and sets the high bit in the cache file unless we assign to the vars.
17998 (
17999 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18000 eval ac_val=\$$ac_var
18001 case $ac_val in #(
18002 *${as_nl}*)
18003 case $ac_var in #(
18004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18006 esac
18007 case $ac_var in #(
18008 _ | IFS | as_nl) ;; #(
18009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18010 *) { eval $ac_var=; unset $ac_var;} ;;
18011 esac ;;
18012 esac
18013 done
18014
18015 (set) 2>&1 |
18016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18017 *${as_nl}ac_space=\ *)
18018 # `set' does not quote correctly, so add quotes: double-quote
18019 # substitution turns \\\\ into \\, and sed turns \\ into \.
18020 sed -n \
18021 "s/'/'\\\\''/g;
18022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18023 ;; #(
18024 *)
18025 # `set' quotes correctly as required by POSIX, so do not add quotes.
18026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18027 ;;
18028 esac |
18029 sort
18030 ) |
18031 sed '
18032 /^ac_cv_env_/b end
18033 t clear
18034 :clear
18035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18036 t end
18037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18038 :end' >>confcache
18039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18040 if test -w "$cache_file"; then
18041 if test "x$cache_file" != "x/dev/null"; then
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18043 $as_echo "$as_me: updating cache $cache_file" >&6;}
18044 if test ! -f "$cache_file" || test -h "$cache_file"; then
18045 cat confcache >"$cache_file"
18046 else
18047 case $cache_file in #(
18048 */* | ?:*)
18049 mv -f confcache "$cache_file"$$ &&
18050 mv -f "$cache_file"$$ "$cache_file" ;; #(
18051 *)
18052 mv -f confcache "$cache_file" ;;
18053 esac
18054 fi
18055 fi
18056 else
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18058 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18059 fi
18060 fi
18061 rm -f confcache
18062
18063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18064 # Let make expand exec_prefix.
18065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18066
18067 DEFS=-DHAVE_CONFIG_H
18068
18069 ac_libobjs=
18070 ac_ltlibobjs=
18071 U=
18072 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18073 # 1. Remove the extension, and $U if already installed.
18074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18077 # will be set to the directory where LIBOBJS objects are built.
18078 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18079 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18080 done
18081 LIBOBJS=$ac_libobjs
18082
18083 LTLIBOBJS=$ac_ltlibobjs
18084
18085
18086 if test -n "$EXEEXT"; then
18087 am__EXEEXT_TRUE=
18088 am__EXEEXT_FALSE='#'
18089 else
18090 am__EXEEXT_TRUE='#'
18091 am__EXEEXT_FALSE=
18092 fi
18093
18094 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18095 as_fn_error $? "conditional \"AMDEP\" was never defined.
18096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18097 fi
18098 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18099 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18101 fi
18102
18103 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18104 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
18105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18106 fi
18107
18108
18109 gl_libobjs=
18110 gl_ltlibobjs=
18111 if test -n "$gl_LIBOBJS"; then
18112 # Remove the extension.
18113 sed_drop_objext='s/\.o$//;s/\.obj$//'
18114 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18115 gl_libobjs="$gl_libobjs $i.$ac_objext"
18116 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18117 done
18118 fi
18119 gl_LIBOBJS=$gl_libobjs
18120
18121 gl_LTLIBOBJS=$gl_ltlibobjs
18122
18123
18124
18125 gltests_libobjs=
18126 gltests_ltlibobjs=
18127 if test -n "$gltests_LIBOBJS"; then
18128 # Remove the extension.
18129 sed_drop_objext='s/\.o$//;s/\.obj$//'
18130 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18131 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18132 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18133 done
18134 fi
18135 gltests_LIBOBJS=$gltests_libobjs
18136
18137 gltests_LTLIBOBJS=$gltests_ltlibobjs
18138
18139
18140
18141 : "${CONFIG_STATUS=./config.status}"
18142 ac_write_fail=0
18143 ac_clean_files_save=$ac_clean_files
18144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18147 as_write_fail=0
18148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18149 #! $SHELL
18150 # Generated by $as_me.
18151 # Run this file to recreate the current configuration.
18152 # Compiler output produced by configure, useful for debugging
18153 # configure, is in config.log if it exists.
18154
18155 debug=false
18156 ac_cs_recheck=false
18157 ac_cs_silent=false
18158
18159 SHELL=\${CONFIG_SHELL-$SHELL}
18160 export SHELL
18161 _ASEOF
18162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18163 ## -------------------- ##
18164 ## M4sh Initialization. ##
18165 ## -------------------- ##
18166
18167 # Be more Bourne compatible
18168 DUALCASE=1; export DUALCASE # for MKS sh
18169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18170 emulate sh
18171 NULLCMD=:
18172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18173 # is contrary to our usage. Disable this feature.
18174 alias -g '${1+"$@"}'='"$@"'
18175 setopt NO_GLOB_SUBST
18176 else
18177 case `(set -o) 2>/dev/null` in #(
18178 *posix*) :
18179 set -o posix ;; #(
18180 *) :
18181 ;;
18182 esac
18183 fi
18184
18185
18186 as_nl='
18187 '
18188 export as_nl
18189 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18190 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18193 # Prefer a ksh shell builtin over an external printf program on Solaris,
18194 # but without wasting forks for bash or zsh.
18195 if test -z "$BASH_VERSION$ZSH_VERSION" \
18196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18197 as_echo='print -r --'
18198 as_echo_n='print -rn --'
18199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18200 as_echo='printf %s\n'
18201 as_echo_n='printf %s'
18202 else
18203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18205 as_echo_n='/usr/ucb/echo -n'
18206 else
18207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18208 as_echo_n_body='eval
18209 arg=$1;
18210 case $arg in #(
18211 *"$as_nl"*)
18212 expr "X$arg" : "X\\(.*\\)$as_nl";
18213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18214 esac;
18215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18216 '
18217 export as_echo_n_body
18218 as_echo_n='sh -c $as_echo_n_body as_echo'
18219 fi
18220 export as_echo_body
18221 as_echo='sh -c $as_echo_body as_echo'
18222 fi
18223
18224 # The user is always right.
18225 if test "${PATH_SEPARATOR+set}" != set; then
18226 PATH_SEPARATOR=:
18227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18229 PATH_SEPARATOR=';'
18230 }
18231 fi
18232
18233
18234 # IFS
18235 # We need space, tab and new line, in precisely that order. Quoting is
18236 # there to prevent editors from complaining about space-tab.
18237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18238 # splitting by setting IFS to empty value.)
18239 IFS=" "" $as_nl"
18240
18241 # Find who we are. Look in the path if we contain no directory separator.
18242 as_myself=
18243 case $0 in #((
18244 *[\\/]* ) as_myself=$0 ;;
18245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18246 for as_dir in $PATH
18247 do
18248 IFS=$as_save_IFS
18249 test -z "$as_dir" && as_dir=.
18250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18251 done
18252 IFS=$as_save_IFS
18253
18254 ;;
18255 esac
18256 # We did not find ourselves, most probably we were run as `sh COMMAND'
18257 # in which case we are not to be found in the path.
18258 if test "x$as_myself" = x; then
18259 as_myself=$0
18260 fi
18261 if test ! -f "$as_myself"; then
18262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18263 exit 1
18264 fi
18265
18266 # Unset variables that we do not need and which cause bugs (e.g. in
18267 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18268 # suppresses any "Segmentation fault" message there. '((' could
18269 # trigger a bug in pdksh 5.2.14.
18270 for as_var in BASH_ENV ENV MAIL MAILPATH
18271 do eval test x\${$as_var+set} = xset \
18272 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18273 done
18274 PS1='$ '
18275 PS2='> '
18276 PS4='+ '
18277
18278 # NLS nuisances.
18279 LC_ALL=C
18280 export LC_ALL
18281 LANGUAGE=C
18282 export LANGUAGE
18283
18284 # CDPATH.
18285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18286
18287
18288 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18289 # ----------------------------------------
18290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18292 # script with STATUS, using 1 if that was 0.
18293 as_fn_error ()
18294 {
18295 as_status=$1; test $as_status -eq 0 && as_status=1
18296 if test "$4"; then
18297 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18298 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18299 fi
18300 $as_echo "$as_me: error: $2" >&2
18301 as_fn_exit $as_status
18302 } # as_fn_error
18303
18304
18305 # as_fn_set_status STATUS
18306 # -----------------------
18307 # Set $? to STATUS, without forking.
18308 as_fn_set_status ()
18309 {
18310 return $1
18311 } # as_fn_set_status
18312
18313 # as_fn_exit STATUS
18314 # -----------------
18315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18316 as_fn_exit ()
18317 {
18318 set +e
18319 as_fn_set_status $1
18320 exit $1
18321 } # as_fn_exit
18322
18323 # as_fn_unset VAR
18324 # ---------------
18325 # Portably unset VAR.
18326 as_fn_unset ()
18327 {
18328 { eval $1=; unset $1;}
18329 }
18330 as_unset=as_fn_unset
18331 # as_fn_append VAR VALUE
18332 # ----------------------
18333 # Append the text in VALUE to the end of the definition contained in VAR. Take
18334 # advantage of any shell optimizations that allow amortized linear growth over
18335 # repeated appends, instead of the typical quadratic growth present in naive
18336 # implementations.
18337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18338 eval 'as_fn_append ()
18339 {
18340 eval $1+=\$2
18341 }'
18342 else
18343 as_fn_append ()
18344 {
18345 eval $1=\$$1\$2
18346 }
18347 fi # as_fn_append
18348
18349 # as_fn_arith ARG...
18350 # ------------------
18351 # Perform arithmetic evaluation on the ARGs, and store the result in the
18352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18353 # must be portable across $(()) and expr.
18354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18355 eval 'as_fn_arith ()
18356 {
18357 as_val=$(( $* ))
18358 }'
18359 else
18360 as_fn_arith ()
18361 {
18362 as_val=`expr "$@" || test $? -eq 1`
18363 }
18364 fi # as_fn_arith
18365
18366
18367 if expr a : '\(a\)' >/dev/null 2>&1 &&
18368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18369 as_expr=expr
18370 else
18371 as_expr=false
18372 fi
18373
18374 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18375 as_basename=basename
18376 else
18377 as_basename=false
18378 fi
18379
18380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18381 as_dirname=dirname
18382 else
18383 as_dirname=false
18384 fi
18385
18386 as_me=`$as_basename -- "$0" ||
18387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18388 X"$0" : 'X\(//\)$' \| \
18389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18390 $as_echo X/"$0" |
18391 sed '/^.*\/\([^/][^/]*\)\/*$/{
18392 s//\1/
18393 q
18394 }
18395 /^X\/\(\/\/\)$/{
18396 s//\1/
18397 q
18398 }
18399 /^X\/\(\/\).*/{
18400 s//\1/
18401 q
18402 }
18403 s/.*/./; q'`
18404
18405 # Avoid depending upon Character Ranges.
18406 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18409 as_cr_digits='0123456789'
18410 as_cr_alnum=$as_cr_Letters$as_cr_digits
18411
18412 ECHO_C= ECHO_N= ECHO_T=
18413 case `echo -n x` in #(((((
18414 -n*)
18415 case `echo 'xy\c'` in
18416 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18417 xy) ECHO_C='\c';;
18418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18419 ECHO_T=' ';;
18420 esac;;
18421 *)
18422 ECHO_N='-n';;
18423 esac
18424
18425 rm -f conf$$ conf$$.exe conf$$.file
18426 if test -d conf$$.dir; then
18427 rm -f conf$$.dir/conf$$.file
18428 else
18429 rm -f conf$$.dir
18430 mkdir conf$$.dir 2>/dev/null
18431 fi
18432 if (echo >conf$$.file) 2>/dev/null; then
18433 if ln -s conf$$.file conf$$ 2>/dev/null; then
18434 as_ln_s='ln -s'
18435 # ... but there are two gotchas:
18436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18438 # In both cases, we have to default to `cp -p'.
18439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18440 as_ln_s='cp -p'
18441 elif ln conf$$.file conf$$ 2>/dev/null; then
18442 as_ln_s=ln
18443 else
18444 as_ln_s='cp -p'
18445 fi
18446 else
18447 as_ln_s='cp -p'
18448 fi
18449 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18450 rmdir conf$$.dir 2>/dev/null
18451
18452
18453 # as_fn_mkdir_p
18454 # -------------
18455 # Create "$as_dir" as a directory, including parents if necessary.
18456 as_fn_mkdir_p ()
18457 {
18458
18459 case $as_dir in #(
18460 -*) as_dir=./$as_dir;;
18461 esac
18462 test -d "$as_dir" || eval $as_mkdir_p || {
18463 as_dirs=
18464 while :; do
18465 case $as_dir in #(
18466 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18467 *) as_qdir=$as_dir;;
18468 esac
18469 as_dirs="'$as_qdir' $as_dirs"
18470 as_dir=`$as_dirname -- "$as_dir" ||
18471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18472 X"$as_dir" : 'X\(//\)[^/]' \| \
18473 X"$as_dir" : 'X\(//\)$' \| \
18474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18475 $as_echo X"$as_dir" |
18476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18477 s//\1/
18478 q
18479 }
18480 /^X\(\/\/\)[^/].*/{
18481 s//\1/
18482 q
18483 }
18484 /^X\(\/\/\)$/{
18485 s//\1/
18486 q
18487 }
18488 /^X\(\/\).*/{
18489 s//\1/
18490 q
18491 }
18492 s/.*/./; q'`
18493 test -d "$as_dir" && break
18494 done
18495 test -z "$as_dirs" || eval "mkdir $as_dirs"
18496 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18497
18498
18499 } # as_fn_mkdir_p
18500 if mkdir -p . 2>/dev/null; then
18501 as_mkdir_p='mkdir -p "$as_dir"'
18502 else
18503 test -d ./-p && rmdir ./-p
18504 as_mkdir_p=false
18505 fi
18506
18507 if test -x / >/dev/null 2>&1; then
18508 as_test_x='test -x'
18509 else
18510 if ls -dL / >/dev/null 2>&1; then
18511 as_ls_L_option=L
18512 else
18513 as_ls_L_option=
18514 fi
18515 as_test_x='
18516 eval sh -c '\''
18517 if test -d "$1"; then
18518 test -d "$1/.";
18519 else
18520 case $1 in #(
18521 -*)set "./$1";;
18522 esac;
18523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18524 ???[sx]*):;;*)false;;esac;fi
18525 '\'' sh
18526 '
18527 fi
18528 as_executable_p=$as_test_x
18529
18530 # Sed expression to map a string onto a valid CPP name.
18531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18532
18533 # Sed expression to map a string onto a valid variable name.
18534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18535
18536
18537 exec 6>&1
18538 ## ----------------------------------- ##
18539 ## Main body of $CONFIG_STATUS script. ##
18540 ## ----------------------------------- ##
18541 _ASEOF
18542 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18543
18544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18545 # Save the log message, to keep $0 and so on meaningful, and to
18546 # report actual input values of CONFIG_FILES etc. instead of their
18547 # values after options handling.
18548 ac_log="
18549 This file was extended by emacs $as_me 24.0.50, which was
18550 generated by GNU Autoconf 2.68. Invocation command line was
18551
18552 CONFIG_FILES = $CONFIG_FILES
18553 CONFIG_HEADERS = $CONFIG_HEADERS
18554 CONFIG_LINKS = $CONFIG_LINKS
18555 CONFIG_COMMANDS = $CONFIG_COMMANDS
18556 $ $0 $@
18557
18558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18559 "
18560
18561 _ACEOF
18562
18563 case $ac_config_files in *"
18564 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18565 esac
18566
18567 case $ac_config_headers in *"
18568 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18569 esac
18570
18571
18572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18573 # Files that config.status was made for.
18574 config_files="$ac_config_files"
18575 config_headers="$ac_config_headers"
18576 config_commands="$ac_config_commands"
18577
18578 _ACEOF
18579
18580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18581 ac_cs_usage="\
18582 \`$as_me' instantiates files and other configuration actions
18583 from templates according to the current configuration. Unless the files
18584 and actions are specified as TAGs, all are instantiated by default.
18585
18586 Usage: $0 [OPTION]... [TAG]...
18587
18588 -h, --help print this help, then exit
18589 -V, --version print version number and configuration settings, then exit
18590 --config print configuration, then exit
18591 -q, --quiet, --silent
18592 do not print progress messages
18593 -d, --debug don't remove temporary files
18594 --recheck update $as_me by reconfiguring in the same conditions
18595 --file=FILE[:TEMPLATE]
18596 instantiate the configuration file FILE
18597 --header=FILE[:TEMPLATE]
18598 instantiate the configuration header FILE
18599
18600 Configuration files:
18601 $config_files
18602
18603 Configuration headers:
18604 $config_headers
18605
18606 Configuration commands:
18607 $config_commands
18608
18609 Report bugs to the package provider."
18610
18611 _ACEOF
18612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18613 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18614 ac_cs_version="\\
18615 emacs config.status 24.0.50
18616 configured by $0, generated by GNU Autoconf 2.68,
18617 with options \\"\$ac_cs_config\\"
18618
18619 Copyright (C) 2010 Free Software Foundation, Inc.
18620 This config.status script is free software; the Free Software Foundation
18621 gives unlimited permission to copy, distribute and modify it."
18622
18623 ac_pwd='$ac_pwd'
18624 srcdir='$srcdir'
18625 INSTALL='$INSTALL'
18626 MKDIR_P='$MKDIR_P'
18627 AWK='$AWK'
18628 test -n "\$AWK" || AWK=awk
18629 _ACEOF
18630
18631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18632 # The default lists apply if the user does not specify any file.
18633 ac_need_defaults=:
18634 while test $# != 0
18635 do
18636 case $1 in
18637 --*=?*)
18638 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18639 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18640 ac_shift=:
18641 ;;
18642 --*=)
18643 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18644 ac_optarg=
18645 ac_shift=:
18646 ;;
18647 *)
18648 ac_option=$1
18649 ac_optarg=$2
18650 ac_shift=shift
18651 ;;
18652 esac
18653
18654 case $ac_option in
18655 # Handling of the options.
18656 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18657 ac_cs_recheck=: ;;
18658 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18659 $as_echo "$ac_cs_version"; exit ;;
18660 --config | --confi | --conf | --con | --co | --c )
18661 $as_echo "$ac_cs_config"; exit ;;
18662 --debug | --debu | --deb | --de | --d | -d )
18663 debug=: ;;
18664 --file | --fil | --fi | --f )
18665 $ac_shift
18666 case $ac_optarg in
18667 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18668 '') as_fn_error $? "missing file argument" ;;
18669 esac
18670 as_fn_append CONFIG_FILES " '$ac_optarg'"
18671 ac_need_defaults=false;;
18672 --header | --heade | --head | --hea )
18673 $ac_shift
18674 case $ac_optarg in
18675 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18676 esac
18677 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18678 ac_need_defaults=false;;
18679 --he | --h)
18680 # Conflict between --help and --header
18681 as_fn_error $? "ambiguous option: \`$1'
18682 Try \`$0 --help' for more information.";;
18683 --help | --hel | -h )
18684 $as_echo "$ac_cs_usage"; exit ;;
18685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18686 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18687 ac_cs_silent=: ;;
18688
18689 # This is an error.
18690 -*) as_fn_error $? "unrecognized option: \`$1'
18691 Try \`$0 --help' for more information." ;;
18692
18693 *) as_fn_append ac_config_targets " $1"
18694 ac_need_defaults=false ;;
18695
18696 esac
18697 shift
18698 done
18699
18700 ac_configure_extra_args=
18701
18702 if $ac_cs_silent; then
18703 exec 6>/dev/null
18704 ac_configure_extra_args="$ac_configure_extra_args --silent"
18705 fi
18706
18707 _ACEOF
18708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18709 if \$ac_cs_recheck; then
18710 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18711 shift
18712 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18713 CONFIG_SHELL='$SHELL'
18714 export CONFIG_SHELL
18715 exec "\$@"
18716 fi
18717
18718 _ACEOF
18719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18720 exec 5>>config.log
18721 {
18722 echo
18723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18724 ## Running $as_me. ##
18725 _ASBOX
18726 $as_echo "$ac_log"
18727 } >&5
18728
18729 _ACEOF
18730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18731 #
18732 # INIT-COMMANDS
18733 #
18734 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18735 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18736
18737 _ACEOF
18738
18739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18740
18741 # Handling of arguments.
18742 for ac_config_target in $ac_config_targets
18743 do
18744 case $ac_config_target in
18745 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18746 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18747 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18748 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18749 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18750 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18751 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18752 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18753 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18754 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18755 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18756 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18757 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18758 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18759 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
18760 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18761
18762 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18763 esac
18764 done
18765
18766
18767 # If the user did not use the arguments to specify the items to instantiate,
18768 # then the envvar interface is used. Set only those that are not.
18769 # We use the long form for the default assignment because of an extremely
18770 # bizarre bug on SunOS 4.1.3.
18771 if $ac_need_defaults; then
18772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18775 fi
18776
18777 # Have a temporary directory for convenience. Make it in the build tree
18778 # simply because there is no reason against having it here, and in addition,
18779 # creating and moving files from /tmp can sometimes cause problems.
18780 # Hook for its removal unless debugging.
18781 # Note that there is a small window in which the directory will not be cleaned:
18782 # after its creation but before its name has been assigned to `$tmp'.
18783 $debug ||
18784 {
18785 tmp= ac_tmp=
18786 trap 'exit_status=$?
18787 : "${ac_tmp:=$tmp}"
18788 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18789 ' 0
18790 trap 'as_fn_exit 1' 1 2 13 15
18791 }
18792 # Create a (secure) tmp directory for tmp files.
18793
18794 {
18795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18796 test -d "$tmp"
18797 } ||
18798 {
18799 tmp=./conf$$-$RANDOM
18800 (umask 077 && mkdir "$tmp")
18801 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18802 ac_tmp=$tmp
18803
18804 # Set up the scripts for CONFIG_FILES section.
18805 # No need to generate them if there are no CONFIG_FILES.
18806 # This happens for instance with `./config.status config.h'.
18807 if test -n "$CONFIG_FILES"; then
18808
18809 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18810 ac_cs_awk_getline=:
18811 ac_cs_awk_pipe_init=
18812 ac_cs_awk_read_file='
18813 while ((getline aline < (F[key])) > 0)
18814 print(aline)
18815 close(F[key])'
18816 ac_cs_awk_pipe_fini=
18817 else
18818 ac_cs_awk_getline=false
18819 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18820 ac_cs_awk_read_file='
18821 print "|#_!!_#|"
18822 print "cat " F[key] " &&"
18823 '$ac_cs_awk_pipe_init
18824 # The final `:' finishes the AND list.
18825 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18826 fi
18827 ac_cr=`echo X | tr X '\015'`
18828 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18829 # But we know of no other shell where ac_cr would be empty at this
18830 # point, so we can use a bashism as a fallback.
18831 if test "x$ac_cr" = x; then
18832 eval ac_cr=\$\'\\r\'
18833 fi
18834 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18835 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18836 ac_cs_awk_cr='\\r'
18837 else
18838 ac_cs_awk_cr=$ac_cr
18839 fi
18840
18841 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18842 _ACEOF
18843
18844 # Create commands to substitute file output variables.
18845 {
18846 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18847 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18848 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18849 echo "_ACAWK" &&
18850 echo "_ACEOF"
18851 } >conf$$files.sh &&
18852 . ./conf$$files.sh ||
18853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18854 rm -f conf$$files.sh
18855
18856 {
18857 echo "cat >conf$$subs.awk <<_ACEOF" &&
18858 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18859 echo "_ACEOF"
18860 } >conf$$subs.sh ||
18861 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18862 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18863 ac_delim='%!_!# '
18864 for ac_last_try in false false false false false :; do
18865 . ./conf$$subs.sh ||
18866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18867
18868 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18869 if test $ac_delim_n = $ac_delim_num; then
18870 break
18871 elif $ac_last_try; then
18872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18873 else
18874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18875 fi
18876 done
18877 rm -f conf$$subs.sh
18878
18879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18880 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18881 _ACEOF
18882 sed -n '
18883 h
18884 s/^/S["/; s/!.*/"]=/
18885 p
18886 g
18887 s/^[^!]*!//
18888 :repl
18889 t repl
18890 s/'"$ac_delim"'$//
18891 t delim
18892 :nl
18893 h
18894 s/\(.\{148\}\)..*/\1/
18895 t more1
18896 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18897 p
18898 n
18899 b repl
18900 :more1
18901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18902 p
18903 g
18904 s/.\{148\}//
18905 t nl
18906 :delim
18907 h
18908 s/\(.\{148\}\)..*/\1/
18909 t more2
18910 s/["\\]/\\&/g; s/^/"/; s/$/"/
18911 p
18912 b
18913 :more2
18914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18915 p
18916 g
18917 s/.\{148\}//
18918 t delim
18919 ' <conf$$subs.awk | sed '
18920 /^[^""]/{
18921 N
18922 s/\n//
18923 }
18924 ' >>$CONFIG_STATUS || ac_write_fail=1
18925 rm -f conf$$subs.awk
18926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18927 _ACAWK
18928 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18929 for (key in S) S_is_set[key] = 1
18930 FS = "\a"
18931 \$ac_cs_awk_pipe_init
18932 }
18933 {
18934 line = $ 0
18935 nfields = split(line, field, "@")
18936 substed = 0
18937 len = length(field[1])
18938 for (i = 2; i < nfields; i++) {
18939 key = field[i]
18940 keylen = length(key)
18941 if (S_is_set[key]) {
18942 value = S[key]
18943 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18944 len += length(value) + length(field[++i])
18945 substed = 1
18946 } else
18947 len += 1 + keylen
18948 }
18949 if (nfields == 3 && !substed) {
18950 key = field[2]
18951 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18952 \$ac_cs_awk_read_file
18953 next
18954 }
18955 }
18956 print line
18957 }
18958 \$ac_cs_awk_pipe_fini
18959 _ACAWK
18960 _ACEOF
18961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18962 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18963 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18964 else
18965 cat
18966 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18967 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18968 _ACEOF
18969
18970 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18971 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18972 # trailing colons and then remove the whole line if VPATH becomes empty
18973 # (actually we leave an empty line to preserve line numbers).
18974 if test "x$srcdir" = x.; then
18975 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18976 h
18977 s///
18978 s/^/:/
18979 s/[ ]*$/:/
18980 s/:\$(srcdir):/:/g
18981 s/:\${srcdir}:/:/g
18982 s/:@srcdir@:/:/g
18983 s/^:*//
18984 s/:*$//
18985 x
18986 s/\(=[ ]*\).*/\1/
18987 G
18988 s/\n//
18989 s/^[^=]*=[ ]*$//
18990 }'
18991 fi
18992
18993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18994 fi # test -n "$CONFIG_FILES"
18995
18996 # Set up the scripts for CONFIG_HEADERS section.
18997 # No need to generate them if there are no CONFIG_HEADERS.
18998 # This happens for instance with `./config.status Makefile'.
18999 if test -n "$CONFIG_HEADERS"; then
19000 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19001 BEGIN {
19002 _ACEOF
19003
19004 # Transform confdefs.h into an awk script `defines.awk', embedded as
19005 # here-document in config.status, that substitutes the proper values into
19006 # config.h.in to produce config.h.
19007
19008 # Create a delimiter string that does not exist in confdefs.h, to ease
19009 # handling of long lines.
19010 ac_delim='%!_!# '
19011 for ac_last_try in false false :; do
19012 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19013 if test -z "$ac_tt"; then
19014 break
19015 elif $ac_last_try; then
19016 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19017 else
19018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19019 fi
19020 done
19021
19022 # For the awk script, D is an array of macro values keyed by name,
19023 # likewise P contains macro parameters if any. Preserve backslash
19024 # newline sequences.
19025
19026 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19027 sed -n '
19028 s/.\{148\}/&'"$ac_delim"'/g
19029 t rset
19030 :rset
19031 s/^[ ]*#[ ]*define[ ][ ]*/ /
19032 t def
19033 d
19034 :def
19035 s/\\$//
19036 t bsnl
19037 s/["\\]/\\&/g
19038 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19039 D["\1"]=" \3"/p
19040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19041 d
19042 :bsnl
19043 s/["\\]/\\&/g
19044 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19045 D["\1"]=" \3\\\\\\n"\\/p
19046 t cont
19047 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19048 t cont
19049 d
19050 :cont
19051 n
19052 s/.\{148\}/&'"$ac_delim"'/g
19053 t clear
19054 :clear
19055 s/\\$//
19056 t bsnlc
19057 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19058 d
19059 :bsnlc
19060 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19061 b cont
19062 ' <confdefs.h | sed '
19063 s/'"$ac_delim"'/"\\\
19064 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19065
19066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19067 for (key in D) D_is_set[key] = 1
19068 FS = "\a"
19069 }
19070 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19071 line = \$ 0
19072 split(line, arg, " ")
19073 if (arg[1] == "#") {
19074 defundef = arg[2]
19075 mac1 = arg[3]
19076 } else {
19077 defundef = substr(arg[1], 2)
19078 mac1 = arg[2]
19079 }
19080 split(mac1, mac2, "(") #)
19081 macro = mac2[1]
19082 prefix = substr(line, 1, index(line, defundef) - 1)
19083 if (D_is_set[macro]) {
19084 # Preserve the white space surrounding the "#".
19085 print prefix "define", macro P[macro] D[macro]
19086 next
19087 } else {
19088 # Replace #undef with comments. This is necessary, for example,
19089 # in the case of _POSIX_SOURCE, which is predefined and required
19090 # on some systems where configure will not decide to define it.
19091 if (defundef == "undef") {
19092 print "/*", prefix defundef, macro, "*/"
19093 next
19094 }
19095 }
19096 }
19097 { print }
19098 _ACAWK
19099 _ACEOF
19100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19101 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19102 fi # test -n "$CONFIG_HEADERS"
19103
19104
19105 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19106 shift
19107 for ac_tag
19108 do
19109 case $ac_tag in
19110 :[FHLC]) ac_mode=$ac_tag; continue;;
19111 esac
19112 case $ac_mode$ac_tag in
19113 :[FHL]*:*);;
19114 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19115 :[FH]-) ac_tag=-:-;;
19116 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19117 esac
19118 ac_save_IFS=$IFS
19119 IFS=:
19120 set x $ac_tag
19121 IFS=$ac_save_IFS
19122 shift
19123 ac_file=$1
19124 shift
19125
19126 case $ac_mode in
19127 :L) ac_source=$1;;
19128 :[FH])
19129 ac_file_inputs=
19130 for ac_f
19131 do
19132 case $ac_f in
19133 -) ac_f="$ac_tmp/stdin";;
19134 *) # Look for the file first in the build tree, then in the source tree
19135 # (if the path is not absolute). The absolute path cannot be DOS-style,
19136 # because $ac_f cannot contain `:'.
19137 test -f "$ac_f" ||
19138 case $ac_f in
19139 [\\/$]*) false;;
19140 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19141 esac ||
19142 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19143 esac
19144 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19145 as_fn_append ac_file_inputs " '$ac_f'"
19146 done
19147
19148 # Let's still pretend it is `configure' which instantiates (i.e., don't
19149 # use $as_me), people would be surprised to read:
19150 # /* config.h. Generated by config.status. */
19151 configure_input='Generated from '`
19152 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19153 `' by configure.'
19154 if test x"$ac_file" != x-; then
19155 configure_input="$ac_file. $configure_input"
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19157 $as_echo "$as_me: creating $ac_file" >&6;}
19158 fi
19159 # Neutralize special characters interpreted by sed in replacement strings.
19160 case $configure_input in #(
19161 *\&* | *\|* | *\\* )
19162 ac_sed_conf_input=`$as_echo "$configure_input" |
19163 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19164 *) ac_sed_conf_input=$configure_input;;
19165 esac
19166
19167 case $ac_tag in
19168 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19170 esac
19171 ;;
19172 esac
19173
19174 ac_dir=`$as_dirname -- "$ac_file" ||
19175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19176 X"$ac_file" : 'X\(//\)[^/]' \| \
19177 X"$ac_file" : 'X\(//\)$' \| \
19178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19179 $as_echo X"$ac_file" |
19180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19181 s//\1/
19182 q
19183 }
19184 /^X\(\/\/\)[^/].*/{
19185 s//\1/
19186 q
19187 }
19188 /^X\(\/\/\)$/{
19189 s//\1/
19190 q
19191 }
19192 /^X\(\/\).*/{
19193 s//\1/
19194 q
19195 }
19196 s/.*/./; q'`
19197 as_dir="$ac_dir"; as_fn_mkdir_p
19198 ac_builddir=.
19199
19200 case "$ac_dir" in
19201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19202 *)
19203 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19204 # A ".." for each directory in $ac_dir_suffix.
19205 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19206 case $ac_top_builddir_sub in
19207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19209 esac ;;
19210 esac
19211 ac_abs_top_builddir=$ac_pwd
19212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19213 # for backward compatibility:
19214 ac_top_builddir=$ac_top_build_prefix
19215
19216 case $srcdir in
19217 .) # We are building in place.
19218 ac_srcdir=.
19219 ac_top_srcdir=$ac_top_builddir_sub
19220 ac_abs_top_srcdir=$ac_pwd ;;
19221 [\\/]* | ?:[\\/]* ) # Absolute name.
19222 ac_srcdir=$srcdir$ac_dir_suffix;
19223 ac_top_srcdir=$srcdir
19224 ac_abs_top_srcdir=$srcdir ;;
19225 *) # Relative name.
19226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19227 ac_top_srcdir=$ac_top_build_prefix$srcdir
19228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19229 esac
19230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19231
19232
19233 case $ac_mode in
19234 :F)
19235 #
19236 # CONFIG_FILE
19237 #
19238
19239 case $INSTALL in
19240 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19241 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19242 esac
19243 ac_MKDIR_P=$MKDIR_P
19244 case $MKDIR_P in
19245 [\\/$]* | ?:[\\/]* ) ;;
19246 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19247 esac
19248 _ACEOF
19249
19250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19251 # If the template does not know about datarootdir, expand it.
19252 # FIXME: This hack should be removed a few years after 2.60.
19253 ac_datarootdir_hack=; ac_datarootdir_seen=
19254 ac_sed_dataroot='
19255 /datarootdir/ {
19256 p
19257 q
19258 }
19259 /@datadir@/p
19260 /@docdir@/p
19261 /@infodir@/p
19262 /@localedir@/p
19263 /@mandir@/p'
19264 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19265 *datarootdir*) ac_datarootdir_seen=yes;;
19266 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19268 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19269 _ACEOF
19270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19271 ac_datarootdir_hack='
19272 s&@datadir@&$datadir&g
19273 s&@docdir@&$docdir&g
19274 s&@infodir@&$infodir&g
19275 s&@localedir@&$localedir&g
19276 s&@mandir@&$mandir&g
19277 s&\\\${datarootdir}&$datarootdir&g' ;;
19278 esac
19279 _ACEOF
19280
19281 # Neutralize VPATH when `$srcdir' = `.'.
19282 # Shell code in configure.ac might set extrasub.
19283 # FIXME: do we really want to maintain this feature?
19284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19285 ac_sed_extra="$ac_vpsub
19286 $extrasub
19287 _ACEOF
19288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19289 :t
19290 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19291 s|@configure_input@|$ac_sed_conf_input|;t t
19292 s&@top_builddir@&$ac_top_builddir_sub&;t t
19293 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19294 s&@srcdir@&$ac_srcdir&;t t
19295 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19296 s&@top_srcdir@&$ac_top_srcdir&;t t
19297 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19298 s&@builddir@&$ac_builddir&;t t
19299 s&@abs_builddir@&$ac_abs_builddir&;t t
19300 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19301 s&@INSTALL@&$ac_INSTALL&;t t
19302 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19303 $ac_datarootdir_hack
19304 "
19305 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19306 if $ac_cs_awk_getline; then
19307 $AWK -f "$ac_tmp/subs.awk"
19308 else
19309 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19310 fi \
19311 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19312
19313 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19314 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19315 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19316 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19318 which seems to be undefined. Please make sure it is defined" >&5
19319 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19320 which seems to be undefined. Please make sure it is defined" >&2;}
19321
19322 rm -f "$ac_tmp/stdin"
19323 case $ac_file in
19324 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19325 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19326 esac \
19327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19328 ;;
19329 :H)
19330 #
19331 # CONFIG_HEADER
19332 #
19333 if test x"$ac_file" != x-; then
19334 {
19335 $as_echo "/* $configure_input */" \
19336 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19337 } >"$ac_tmp/config.h" \
19338 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19339 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19341 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19342 else
19343 rm -f "$ac_file"
19344 mv "$ac_tmp/config.h" "$ac_file" \
19345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19346 fi
19347 else
19348 $as_echo "/* $configure_input */" \
19349 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19350 || as_fn_error $? "could not create -" "$LINENO" 5
19351 fi
19352 # Compute "$ac_file"'s index in $config_headers.
19353 _am_arg="$ac_file"
19354 _am_stamp_count=1
19355 for _am_header in $config_headers :; do
19356 case $_am_header in
19357 $_am_arg | $_am_arg:* )
19358 break ;;
19359 * )
19360 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19361 esac
19362 done
19363 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19364 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19365 X"$_am_arg" : 'X\(//\)[^/]' \| \
19366 X"$_am_arg" : 'X\(//\)$' \| \
19367 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19368 $as_echo X"$_am_arg" |
19369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19370 s//\1/
19371 q
19372 }
19373 /^X\(\/\/\)[^/].*/{
19374 s//\1/
19375 q
19376 }
19377 /^X\(\/\/\)$/{
19378 s//\1/
19379 q
19380 }
19381 /^X\(\/\).*/{
19382 s//\1/
19383 q
19384 }
19385 s/.*/./; q'`/stamp-h$_am_stamp_count
19386 ;;
19387
19388 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19389 $as_echo "$as_me: executing $ac_file commands" >&6;}
19390 ;;
19391 esac
19392
19393
19394 case $ac_file$ac_mode in
19395 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19396 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19397 # are listed without --file. Let's play safe and only enable the eval
19398 # if we detect the quoting.
19399 case $CONFIG_FILES in
19400 *\'*) eval set x "$CONFIG_FILES" ;;
19401 *) set x $CONFIG_FILES ;;
19402 esac
19403 shift
19404 for mf
19405 do
19406 # Strip MF so we end up with the name of the file.
19407 mf=`echo "$mf" | sed -e 's/:.*$//'`
19408 # Check whether this is an Automake generated Makefile or not.
19409 # We used to match only the files named `Makefile.in', but
19410 # some people rename them; so instead we look at the file content.
19411 # Grep'ing the first line is not enough: some people post-process
19412 # each Makefile.in and add a new line on top of each file to say so.
19413 # Grep'ing the whole file is not good either: AIX grep has a line
19414 # limit of 2048, but all sed's we know have understand at least 4000.
19415 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19416 dirpart=`$as_dirname -- "$mf" ||
19417 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19418 X"$mf" : 'X\(//\)[^/]' \| \
19419 X"$mf" : 'X\(//\)$' \| \
19420 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19421 $as_echo X"$mf" |
19422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19423 s//\1/
19424 q
19425 }
19426 /^X\(\/\/\)[^/].*/{
19427 s//\1/
19428 q
19429 }
19430 /^X\(\/\/\)$/{
19431 s//\1/
19432 q
19433 }
19434 /^X\(\/\).*/{
19435 s//\1/
19436 q
19437 }
19438 s/.*/./; q'`
19439 else
19440 continue
19441 fi
19442 # Extract the definition of DEPDIR, am__include, and am__quote
19443 # from the Makefile without running `make'.
19444 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19445 test -z "$DEPDIR" && continue
19446 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19447 test -z "am__include" && continue
19448 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19449 # When using ansi2knr, U may be empty or an underscore; expand it
19450 U=`sed -n 's/^U = //p' < "$mf"`
19451 # Find all dependency output files, they are included files with
19452 # $(DEPDIR) in their names. We invoke sed twice because it is the
19453 # simplest approach to changing $(DEPDIR) to its actual value in the
19454 # expansion.
19455 for file in `sed -n "
19456 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19457 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19458 # Make sure the directory exists.
19459 test -f "$dirpart/$file" && continue
19460 fdir=`$as_dirname -- "$file" ||
19461 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19462 X"$file" : 'X\(//\)[^/]' \| \
19463 X"$file" : 'X\(//\)$' \| \
19464 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19465 $as_echo X"$file" |
19466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19467 s//\1/
19468 q
19469 }
19470 /^X\(\/\/\)[^/].*/{
19471 s//\1/
19472 q
19473 }
19474 /^X\(\/\/\)$/{
19475 s//\1/
19476 q
19477 }
19478 /^X\(\/\).*/{
19479 s//\1/
19480 q
19481 }
19482 s/.*/./; q'`
19483 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19484 # echo "creating $dirpart/$file"
19485 echo '# dummy' > "$dirpart/$file"
19486 done
19487 done
19488 }
19489 ;;
19490 "default":C)
19491
19492 ### Make the necessary directories, if they don't exist.
19493 for dir in etc lisp ; do
19494 test -d ${dir} || mkdir ${dir}
19495 done
19496
19497 echo creating src/epaths.h
19498 ${MAKE-make} epaths-force
19499
19500 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19501 echo creating src/.gdbinit
19502 echo source $srcdir/src/.gdbinit > src/.gdbinit
19503 fi
19504
19505 ;;
19506
19507 esac
19508 done # for ac_tag
19509
19510
19511 as_fn_exit 0
19512 _ACEOF
19513 ac_clean_files=$ac_clean_files_save
19514
19515 test $ac_write_fail = 0 ||
19516 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19517
19518
19519 # configure is writing to config.log, and then calls config.status.
19520 # config.status does its own redirection, appending to config.log.
19521 # Unfortunately, on DOS this fails, as config.log is still kept open
19522 # by configure, so config.status won't be able to write to it; its
19523 # output is simply discarded. So we exec the FD to /dev/null,
19524 # effectively closing config.log, so it can be properly (re)opened and
19525 # appended to by config.status. When coming back to configure, we
19526 # need to make the FD available again.
19527 if test "$no_create" != yes; then
19528 ac_cs_success=:
19529 ac_config_status_args=
19530 test "$silent" = yes &&
19531 ac_config_status_args="$ac_config_status_args --quiet"
19532 exec 5>/dev/null
19533 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19534 exec 5>>config.log
19535 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19536 # would make configure fail if this is the last instruction.
19537 $ac_cs_success || as_fn_exit 1
19538 fi
19539 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19541 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19542 fi
19543