Fix bug #8487 with invisible text at EOB under bidi.
[bpt/emacs.git] / autogen / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556
557 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_func_list=
596 gl_getopt_required=POSIX
597 gl_getopt_required=POSIX
598 ac_subst_vars='gltests_LTLIBOBJS
599 gltests_LIBOBJS
600 gl_LTLIBOBJS
601 gl_LIBOBJS
602 am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 WINDOW_SUPPORT
607 TOOLTIP_SUPPORT
608 MOUSE_SUPPORT
609 LIB_GCC
610 LD_FIRSTFLAG
611 LD_SWITCH_SYSTEM_TEMACS
612 POST_ALLOC_OBJ
613 PRE_ALLOC_OBJ
614 CYGWIN_OBJ
615 RALLOC_OBJ
616 OLDXMENU_DEPS
617 LIBX_OTHER
618 LIBXMENU
619 OLDXMENU
620 OLDXMENU_TARGET
621 LIBXT_OTHER
622 TOOLKIT_LIBW
623 WIDGET_OBJ
624 XOBJ
625 XMENU_OBJ
626 FONT_OBJ
627 OTHER_FILES
628 GNU_OBJC_CFLAGS
629 ns_appsrc
630 ns_appresdir
631 ns_appbindir
632 ns_appdir
633 S_FILE
634 M_FILE
635 X_TOOLKIT_TYPE
636 C_SWITCH_X_SYSTEM
637 C_SWITCH_X_SITE
638 LD_SWITCH_X_SITE
639 gameuser
640 gamedir
641 bitmapdir
642 archlibdir
643 etcdir
644 x_default_search_path
645 lisppath
646 locallisppath
647 lispdir
648 srcdir
649 canonical
650 configuration
651 version
652 KRB4LIB
653 DESLIB
654 KRB5LIB
655 CRYPTOLIB
656 COM_ERRLIB
657 LIBRESOLV
658 LIBHESIOD
659 TERMCAP_OBJ
660 LIBS_TERMCAP
661 LIBGNU_LTLIBDEPS
662 LIBGNU_LIBDEPS
663 gltests_WITNESS
664 HAVE_UNISTD_H
665 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
666 NEXT_UNISTD_H
667 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
668 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
669 TIME_H_DEFINES_STRUCT_TIMESPEC
670 NEXT_AS_FIRST_DIRECTIVE_TIME_H
671 NEXT_TIME_H
672 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
673 NEXT_SYS_STAT_H
674 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
675 NEXT_STDLIB_H
676 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
677 NEXT_STDIO_H
678 REPLACE_VSPRINTF
679 REPLACE_VSNPRINTF
680 REPLACE_VPRINTF
681 REPLACE_VFPRINTF
682 REPLACE_VDPRINTF
683 REPLACE_VASPRINTF
684 REPLACE_TMPFILE
685 REPLACE_STDIO_WRITE_FUNCS
686 REPLACE_SPRINTF
687 REPLACE_SNPRINTF
688 REPLACE_RENAMEAT
689 REPLACE_RENAME
690 REPLACE_REMOVE
691 REPLACE_PRINTF
692 REPLACE_POPEN
693 REPLACE_PERROR
694 REPLACE_OBSTACK_PRINTF
695 REPLACE_GETLINE
696 REPLACE_GETDELIM
697 REPLACE_FTELLO
698 REPLACE_FTELL
699 REPLACE_FSEEKO
700 REPLACE_FSEEK
701 REPLACE_FREOPEN
702 REPLACE_FPURGE
703 REPLACE_FPRINTF
704 REPLACE_FOPEN
705 REPLACE_FFLUSH
706 REPLACE_FCLOSE
707 REPLACE_DPRINTF
708 HAVE_VDPRINTF
709 HAVE_VASPRINTF
710 HAVE_RENAMEAT
711 HAVE_FTELLO
712 HAVE_FSEEKO
713 HAVE_DPRINTF
714 HAVE_DECL_VSNPRINTF
715 HAVE_DECL_SNPRINTF
716 HAVE_DECL_OBSTACK_PRINTF
717 HAVE_DECL_GETLINE
718 HAVE_DECL_GETDELIM
719 HAVE_DECL_FTELLO
720 HAVE_DECL_FSEEKO
721 HAVE_DECL_FPURGE
722 GNULIB_VSPRINTF_POSIX
723 GNULIB_VSNPRINTF
724 GNULIB_VPRINTF_POSIX
725 GNULIB_VPRINTF
726 GNULIB_VFPRINTF_POSIX
727 GNULIB_VFPRINTF
728 GNULIB_VDPRINTF
729 GNULIB_VASPRINTF
730 GNULIB_TMPFILE
731 GNULIB_STDIO_H_SIGPIPE
732 GNULIB_SPRINTF_POSIX
733 GNULIB_SNPRINTF
734 GNULIB_RENAMEAT
735 GNULIB_RENAME
736 GNULIB_REMOVE
737 GNULIB_PUTS
738 GNULIB_PUTCHAR
739 GNULIB_PUTC
740 GNULIB_PRINTF_POSIX
741 GNULIB_PRINTF
742 GNULIB_POPEN
743 GNULIB_PERROR
744 GNULIB_OBSTACK_PRINTF_POSIX
745 GNULIB_OBSTACK_PRINTF
746 GNULIB_GETLINE
747 GNULIB_GETDELIM
748 GNULIB_FWRITE
749 GNULIB_FTELLO
750 GNULIB_FTELL
751 GNULIB_FSEEKO
752 GNULIB_FSEEK
753 GNULIB_FREOPEN
754 GNULIB_FPUTS
755 GNULIB_FPUTC
756 GNULIB_FPURGE
757 GNULIB_FPRINTF_POSIX
758 GNULIB_FPRINTF
759 GNULIB_FOPEN
760 GNULIB_FFLUSH
761 GNULIB_FCLOSE
762 GNULIB_DPRINTF
763 GL_GENERATE_STDINT_H_FALSE
764 GL_GENERATE_STDINT_H_TRUE
765 STDINT_H
766 WINT_T_SUFFIX
767 WCHAR_T_SUFFIX
768 SIG_ATOMIC_T_SUFFIX
769 SIZE_T_SUFFIX
770 PTRDIFF_T_SUFFIX
771 HAVE_SIGNED_WINT_T
772 HAVE_SIGNED_WCHAR_T
773 HAVE_SIGNED_SIG_ATOMIC_T
774 BITSIZEOF_WINT_T
775 BITSIZEOF_WCHAR_T
776 BITSIZEOF_SIG_ATOMIC_T
777 BITSIZEOF_SIZE_T
778 BITSIZEOF_PTRDIFF_T
779 HAVE_SYS_BITYPES_H
780 HAVE_SYS_INTTYPES_H
781 HAVE_STDINT_H
782 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
783 NEXT_STDINT_H
784 HAVE_SYS_TYPES_H
785 HAVE_INTTYPES_H
786 HAVE_WCHAR_H
787 HAVE_UNSIGNED_LONG_LONG_INT
788 HAVE_LONG_LONG_INT
789 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
790 NEXT_STDDEF_H
791 GL_GENERATE_STDDEF_H_FALSE
792 GL_GENERATE_STDDEF_H_TRUE
793 STDDEF_H
794 HAVE_WCHAR_T
795 REPLACE_NULL
796 HAVE__BOOL
797 GL_GENERATE_STDBOOL_H_FALSE
798 GL_GENERATE_STDBOOL_H_TRUE
799 STDBOOL_H
800 APPLE_UNIVERSAL_BUILD
801 REPLACE_TIMEGM
802 REPLACE_NANOSLEEP
803 REPLACE_MKTIME
804 REPLACE_LOCALTIME_R
805 HAVE_TIMEGM
806 HAVE_STRPTIME
807 HAVE_NANOSLEEP
808 HAVE_DECL_LOCALTIME_R
809 GNULIB_TIME_R
810 GNULIB_TIMEGM
811 GNULIB_STRPTIME
812 GNULIB_NANOSLEEP
813 GNULIB_MKTIME
814 REPLACE_UTIMENSAT
815 REPLACE_STAT
816 REPLACE_MKNOD
817 REPLACE_MKFIFO
818 REPLACE_MKDIR
819 REPLACE_LSTAT
820 REPLACE_FUTIMENS
821 REPLACE_FSTATAT
822 REPLACE_FSTAT
823 HAVE_UTIMENSAT
824 HAVE_MKNODAT
825 HAVE_MKNOD
826 HAVE_MKFIFOAT
827 HAVE_MKFIFO
828 HAVE_MKDIRAT
829 HAVE_LSTAT
830 HAVE_LCHMOD
831 HAVE_FUTIMENS
832 HAVE_FSTATAT
833 HAVE_FCHMODAT
834 GNULIB_UTIMENSAT
835 GNULIB_STAT
836 GNULIB_MKNODAT
837 GNULIB_MKNOD
838 GNULIB_MKFIFOAT
839 GNULIB_MKFIFO
840 GNULIB_MKDIRAT
841 GNULIB_LSTAT
842 GNULIB_LCHMOD
843 GNULIB_FUTIMENS
844 GNULIB_FSTATAT
845 GNULIB_FCHMODAT
846 LTLIBINTL
847 LIBINTL
848 GETOPT_H
849 HAVE_GETOPT_H
850 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
851 NEXT_GETOPT_H
852 PRAGMA_COLUMNS
853 PRAGMA_SYSTEM_HEADER
854 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
855 INCLUDE_NEXT
856 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
857 UNISTD_H_HAVE_WINSOCK2_H
858 REPLACE_WRITE
859 REPLACE_USLEEP
860 REPLACE_UNLINKAT
861 REPLACE_UNLINK
862 REPLACE_TTYNAME_R
863 REPLACE_SYMLINK
864 REPLACE_SLEEP
865 REPLACE_RMDIR
866 REPLACE_READLINK
867 REPLACE_PWRITE
868 REPLACE_PREAD
869 REPLACE_LSEEK
870 REPLACE_LINKAT
871 REPLACE_LINK
872 REPLACE_LCHOWN
873 REPLACE_GETPAGESIZE
874 REPLACE_GETGROUPS
875 REPLACE_GETLOGIN_R
876 REPLACE_GETDOMAINNAME
877 REPLACE_GETCWD
878 REPLACE_FCHOWNAT
879 REPLACE_DUP2
880 REPLACE_DUP
881 REPLACE_CLOSE
882 REPLACE_CHOWN
883 HAVE_SYS_PARAM_H
884 HAVE_OS_H
885 HAVE_DECL_TTYNAME_R
886 HAVE_DECL_GETUSERSHELL
887 HAVE_DECL_GETPAGESIZE
888 HAVE_DECL_GETLOGIN_R
889 HAVE_DECL_GETDOMAINNAME
890 HAVE_DECL_FCHDIR
891 HAVE_DECL_ENVIRON
892 HAVE_USLEEP
893 HAVE_UNLINKAT
894 HAVE_SYMLINKAT
895 HAVE_SYMLINK
896 HAVE_SLEEP
897 HAVE_READLINKAT
898 HAVE_READLINK
899 HAVE_PWRITE
900 HAVE_PREAD
901 HAVE_PIPE2
902 HAVE_PIPE
903 HAVE_LINKAT
904 HAVE_LINK
905 HAVE_LCHOWN
906 HAVE_GETPAGESIZE
907 HAVE_GETLOGIN
908 HAVE_GETHOSTNAME
909 HAVE_GETGROUPS
910 HAVE_GETDTABLESIZE
911 HAVE_FTRUNCATE
912 HAVE_FSYNC
913 HAVE_FCHOWNAT
914 HAVE_FCHDIR
915 HAVE_FACCESSAT
916 HAVE_EUIDACCESS
917 HAVE_DUP3
918 HAVE_DUP2
919 HAVE_CHOWN
920 GNULIB_WRITE
921 GNULIB_USLEEP
922 GNULIB_UNLINKAT
923 GNULIB_UNLINK
924 GNULIB_UNISTD_H_SIGPIPE
925 GNULIB_UNISTD_H_GETOPT
926 GNULIB_TTYNAME_R
927 GNULIB_SYMLINKAT
928 GNULIB_SYMLINK
929 GNULIB_SLEEP
930 GNULIB_RMDIR
931 GNULIB_READLINKAT
932 GNULIB_READLINK
933 GNULIB_PWRITE
934 GNULIB_PREAD
935 GNULIB_PIPE2
936 GNULIB_PIPE
937 GNULIB_LSEEK
938 GNULIB_LINKAT
939 GNULIB_LINK
940 GNULIB_LCHOWN
941 GNULIB_GETUSERSHELL
942 GNULIB_GETPAGESIZE
943 GNULIB_GETLOGIN_R
944 GNULIB_GETLOGIN
945 GNULIB_GETHOSTNAME
946 GNULIB_GETGROUPS
947 GNULIB_GETDTABLESIZE
948 GNULIB_GETDOMAINNAME
949 GNULIB_GETCWD
950 GNULIB_FTRUNCATE
951 GNULIB_FSYNC
952 GNULIB_FCHOWNAT
953 GNULIB_FCHDIR
954 GNULIB_FACCESSAT
955 GNULIB_EUIDACCESS
956 GNULIB_ENVIRON
957 GNULIB_DUP3
958 GNULIB_DUP2
959 GNULIB_CLOSE
960 GNULIB_CHOWN
961 GETLOADAVG_LIBS
962 REPLACE_WCTOMB
963 REPLACE_UNSETENV
964 REPLACE_STRTOD
965 REPLACE_SETENV
966 REPLACE_REALPATH
967 REPLACE_REALLOC
968 REPLACE_PUTENV
969 REPLACE_MKSTEMP
970 REPLACE_MBTOWC
971 REPLACE_MALLOC
972 REPLACE_CANONICALIZE_FILE_NAME
973 REPLACE_CALLOC
974 HAVE_DECL_UNSETENV
975 HAVE_UNLOCKPT
976 HAVE_SYS_LOADAVG_H
977 HAVE_STRUCT_RANDOM_DATA
978 HAVE_STRTOULL
979 HAVE_STRTOLL
980 HAVE_STRTOD
981 HAVE_DECL_SETENV
982 HAVE_SETENV
983 HAVE_RPMATCH
984 HAVE_REALPATH
985 HAVE_RANDOM_R
986 HAVE_RANDOM_H
987 HAVE_PTSNAME
988 HAVE_MKSTEMPS
989 HAVE_MKSTEMP
990 HAVE_MKOSTEMPS
991 HAVE_MKOSTEMP
992 HAVE_MKDTEMP
993 HAVE_GRANTPT
994 HAVE_GETSUBOPT
995 HAVE_DECL_GETLOADAVG
996 HAVE_CANONICALIZE_FILE_NAME
997 HAVE_ATOLL
998 HAVE__EXIT
999 GNULIB_WCTOMB
1000 GNULIB_UNSETENV
1001 GNULIB_UNLOCKPT
1002 GNULIB_SYSTEM_POSIX
1003 GNULIB_STRTOULL
1004 GNULIB_STRTOLL
1005 GNULIB_STRTOD
1006 GNULIB_SETENV
1007 GNULIB_RPMATCH
1008 GNULIB_REALPATH
1009 GNULIB_REALLOC_POSIX
1010 GNULIB_RANDOM_R
1011 GNULIB_PUTENV
1012 GNULIB_PTSNAME
1013 GNULIB_MKSTEMPS
1014 GNULIB_MKSTEMP
1015 GNULIB_MKOSTEMPS
1016 GNULIB_MKOSTEMP
1017 GNULIB_MKDTEMP
1018 GNULIB_MBTOWC
1019 GNULIB_MALLOC_POSIX
1020 GNULIB_GRANTPT
1021 GNULIB_GETSUBOPT
1022 GNULIB_GETLOADAVG
1023 GNULIB_CANONICALIZE_FILE_NAME
1024 GNULIB_CALLOC_POSIX
1025 GNULIB_ATOLL
1026 GNULIB__EXIT
1027 GL_COND_LIBTOOL_FALSE
1028 GL_COND_LIBTOOL_TRUE
1029 BLESSMAIL_TARGET
1030 LIBS_MAIL
1031 liblockfile
1032 ALLOCA
1033 LIBXML2_LIBS
1034 LIBXML2_CFLAGS
1035 LIBXSM
1036 LIBGPM
1037 LIBGIF
1038 LIBTIFF
1039 LIBPNG
1040 LIBJPEG
1041 LIBXPM
1042 M17N_FLT_LIBS
1043 M17N_FLT_CFLAGS
1044 LIBOTF_LIBS
1045 LIBOTF_CFLAGS
1046 FREETYPE_LIBS
1047 FREETYPE_CFLAGS
1048 XFT_LIBS
1049 XFT_CFLAGS
1050 FONTCONFIG_LIBS
1051 FONTCONFIG_CFLAGS
1052 LIBXMU
1053 LIBXTR6
1054 LIBGNUTLS_LIBS
1055 LIBGNUTLS_CFLAGS
1056 LIBSELINUX_LIBS
1057 GCONF_LIBS
1058 GCONF_CFLAGS
1059 DBUS_OBJ
1060 DBUS_LIBS
1061 DBUS_CFLAGS
1062 GTK_OBJ
1063 GTK_LIBS
1064 GTK_CFLAGS
1065 IMAGEMAGICK_LIBS
1066 IMAGEMAGICK_CFLAGS
1067 RSVG_LIBS
1068 RSVG_CFLAGS
1069 VMLIMIT_OBJ
1070 GMALLOC_OBJ
1071 HAVE_XSERVER
1072 LIB_STANDARD
1073 NS_SUPPORT
1074 NS_OBJC_OBJ
1075 NS_OBJ
1076 TEMACS_LDFLAGS2
1077 LD_SWITCH_X_SITE_AUX_RPATH
1078 LD_SWITCH_X_SITE_AUX
1079 XMKMF
1080 DEPFLAGS
1081 MKDEPDIR
1082 CFLAGS_SOUND
1083 ALSA_LIBS
1084 ALSA_CFLAGS
1085 PKG_CONFIG
1086 LIBSOUND
1087 START_FILES
1088 LIB_MATH
1089 CRT_DIR
1090 LIBS_SYSTEM
1091 C_SWITCH_SYSTEM
1092 UNEXEC_OBJ
1093 C_SWITCH_MACHINE
1094 LD_SWITCH_SYSTEM
1095 CANNOT_DUMP
1096 HAVE_MAKEINFO
1097 GZIP_PROG
1098 INSTALL_INFO
1099 C_WARNINGS_SWITCH
1100 EGREP
1101 GREP
1102 CPP
1103 RANLIB
1104 am__fastdepCC_FALSE
1105 am__fastdepCC_TRUE
1106 CCDEPMODE
1107 AMDEPBACKSLASH
1108 AMDEP_FALSE
1109 AMDEP_TRUE
1110 am__quote
1111 am__include
1112 DEPDIR
1113 OBJEXT
1114 EXEEXT
1115 ac_ct_CC
1116 CPPFLAGS
1117 LDFLAGS
1118 CFLAGS
1119 CC
1120 host_os
1121 host_vendor
1122 host_cpu
1123 host
1124 build_os
1125 build_vendor
1126 build_cpu
1127 build
1128 PROFILING_CFLAGS
1129 MAINT
1130 GZIP_INFO
1131 am__untar
1132 am__tar
1133 AMTAR
1134 am__leading_dot
1135 SET_MAKE
1136 AWK
1137 mkdir_p
1138 MKDIR_P
1139 INSTALL_STRIP_PROGRAM
1140 STRIP
1141 install_sh
1142 MAKEINFO
1143 AUTOHEADER
1144 AUTOMAKE
1145 AUTOCONF
1146 ACLOCAL
1147 VERSION
1148 PACKAGE
1149 CYGPATH_W
1150 am__isrc
1151 INSTALL_DATA
1152 INSTALL_SCRIPT
1153 INSTALL_PROGRAM
1154 target_alias
1155 host_alias
1156 build_alias
1157 LIBS
1158 ECHO_T
1159 ECHO_N
1160 ECHO_C
1161 DEFS
1162 mandir
1163 localedir
1164 libdir
1165 psdir
1166 pdfdir
1167 dvidir
1168 htmldir
1169 infodir
1170 docdir
1171 oldincludedir
1172 includedir
1173 localstatedir
1174 sharedstatedir
1175 sysconfdir
1176 datadir
1177 datarootdir
1178 libexecdir
1179 sbindir
1180 bindir
1181 program_transform_name
1182 prefix
1183 exec_prefix
1184 PACKAGE_URL
1185 PACKAGE_BUGREPORT
1186 PACKAGE_STRING
1187 PACKAGE_VERSION
1188 PACKAGE_TARNAME
1189 PACKAGE_NAME
1190 PATH_SEPARATOR
1191 SHELL'
1192 ac_subst_files='deps_frag
1193 ns_frag'
1194 ac_user_opts='
1195 enable_option_checking
1196 with_pop
1197 with_kerberos
1198 with_kerberos5
1199 with_hesiod
1200 with_mmdf
1201 with_mail_unlink
1202 with_mailhost
1203 with_sound
1204 with_sync_input
1205 with_x_toolkit
1206 with_xpm
1207 with_jpeg
1208 with_tiff
1209 with_gif
1210 with_png
1211 with_rsvg
1212 with_xml2
1213 with_imagemagick
1214 with_xft
1215 with_libotf
1216 with_m17n_flt
1217 with_toolkit_scroll_bars
1218 with_xaw3d
1219 with_xim
1220 with_ns
1221 with_gpm
1222 with_dbus
1223 with_gconf
1224 with_selinux
1225 with_gnutls
1226 with_makeinfo
1227 with_compress_info
1228 with_pkg_config_prog
1229 with_crt_dir
1230 with_gameuser
1231 with_gnustep_conf
1232 enable_ns_self_contained
1233 enable_asserts
1234 enable_maintainer_mode
1235 enable_locallisppath
1236 enable_checking
1237 enable_use_lisp_union_type
1238 enable_profiling
1239 enable_autodepend
1240 enable_dependency_tracking
1241 enable_largefile
1242 with_x
1243 '
1244 ac_precious_vars='build_alias
1245 host_alias
1246 target_alias
1247 CC
1248 CFLAGS
1249 LDFLAGS
1250 LIBS
1251 CPPFLAGS
1252 CPP
1253 XMKMF'
1254
1255
1256 # Initialize some variables set by options.
1257 ac_init_help=
1258 ac_init_version=false
1259 ac_unrecognized_opts=
1260 ac_unrecognized_sep=
1261 # The variables have the same names as the options, with
1262 # dashes changed to underlines.
1263 cache_file=/dev/null
1264 exec_prefix=NONE
1265 no_create=
1266 no_recursion=
1267 prefix=NONE
1268 program_prefix=NONE
1269 program_suffix=NONE
1270 program_transform_name=s,x,x,
1271 silent=
1272 site=
1273 srcdir=
1274 verbose=
1275 x_includes=NONE
1276 x_libraries=NONE
1277
1278 # Installation directory options.
1279 # These are left unexpanded so users can "make install exec_prefix=/foo"
1280 # and all the variables that are supposed to be based on exec_prefix
1281 # by default will actually change.
1282 # Use braces instead of parens because sh, perl, etc. also accept them.
1283 # (The list follows the same order as the GNU Coding Standards.)
1284 bindir='${exec_prefix}/bin'
1285 sbindir='${exec_prefix}/sbin'
1286 libexecdir='${exec_prefix}/libexec'
1287 datarootdir='${prefix}/share'
1288 datadir='${datarootdir}'
1289 sysconfdir='${prefix}/etc'
1290 sharedstatedir='${prefix}/com'
1291 localstatedir='${prefix}/var'
1292 includedir='${prefix}/include'
1293 oldincludedir='/usr/include'
1294 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1295 infodir='${datarootdir}/info'
1296 htmldir='${docdir}'
1297 dvidir='${docdir}'
1298 pdfdir='${docdir}'
1299 psdir='${docdir}'
1300 libdir='${exec_prefix}/lib'
1301 localedir='${datarootdir}/locale'
1302 mandir='${datarootdir}/man'
1303
1304 ac_prev=
1305 ac_dashdash=
1306 for ac_option
1307 do
1308 # If the previous option needs an argument, assign it.
1309 if test -n "$ac_prev"; then
1310 eval $ac_prev=\$ac_option
1311 ac_prev=
1312 continue
1313 fi
1314
1315 case $ac_option in
1316 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1317 *) ac_optarg=yes ;;
1318 esac
1319
1320 # Accept the important Cygnus configure options, so we can diagnose typos.
1321
1322 case $ac_dashdash$ac_option in
1323 --)
1324 ac_dashdash=yes ;;
1325
1326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1327 ac_prev=bindir ;;
1328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1329 bindir=$ac_optarg ;;
1330
1331 -build | --build | --buil | --bui | --bu)
1332 ac_prev=build_alias ;;
1333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1334 build_alias=$ac_optarg ;;
1335
1336 -cache-file | --cache-file | --cache-fil | --cache-fi \
1337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1338 ac_prev=cache_file ;;
1339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1341 cache_file=$ac_optarg ;;
1342
1343 --config-cache | -C)
1344 cache_file=config.cache ;;
1345
1346 -datadir | --datadir | --datadi | --datad)
1347 ac_prev=datadir ;;
1348 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1349 datadir=$ac_optarg ;;
1350
1351 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1352 | --dataroo | --dataro | --datar)
1353 ac_prev=datarootdir ;;
1354 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1355 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1356 datarootdir=$ac_optarg ;;
1357
1358 -disable-* | --disable-*)
1359 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362 as_fn_error "invalid feature name: $ac_useropt"
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1366 *"
1367 "enable_$ac_useropt"
1368 "*) ;;
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1371 esac
1372 eval enable_$ac_useropt=no ;;
1373
1374 -docdir | --docdir | --docdi | --doc | --do)
1375 ac_prev=docdir ;;
1376 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1377 docdir=$ac_optarg ;;
1378
1379 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1380 ac_prev=dvidir ;;
1381 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1382 dvidir=$ac_optarg ;;
1383
1384 -enable-* | --enable-*)
1385 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388 as_fn_error "invalid feature name: $ac_useropt"
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1392 *"
1393 "enable_$ac_useropt"
1394 "*) ;;
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1397 esac
1398 eval enable_$ac_useropt=\$ac_optarg ;;
1399
1400 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1401 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1402 | --exec | --exe | --ex)
1403 ac_prev=exec_prefix ;;
1404 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1405 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1406 | --exec=* | --exe=* | --ex=*)
1407 exec_prefix=$ac_optarg ;;
1408
1409 -gas | --gas | --ga | --g)
1410 # Obsolete; use --with-gas.
1411 with_gas=yes ;;
1412
1413 -help | --help | --hel | --he | -h)
1414 ac_init_help=long ;;
1415 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1416 ac_init_help=recursive ;;
1417 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1418 ac_init_help=short ;;
1419
1420 -host | --host | --hos | --ho)
1421 ac_prev=host_alias ;;
1422 -host=* | --host=* | --hos=* | --ho=*)
1423 host_alias=$ac_optarg ;;
1424
1425 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1426 ac_prev=htmldir ;;
1427 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1428 | --ht=*)
1429 htmldir=$ac_optarg ;;
1430
1431 -includedir | --includedir | --includedi | --included | --include \
1432 | --includ | --inclu | --incl | --inc)
1433 ac_prev=includedir ;;
1434 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1435 | --includ=* | --inclu=* | --incl=* | --inc=*)
1436 includedir=$ac_optarg ;;
1437
1438 -infodir | --infodir | --infodi | --infod | --info | --inf)
1439 ac_prev=infodir ;;
1440 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1441 infodir=$ac_optarg ;;
1442
1443 -libdir | --libdir | --libdi | --libd)
1444 ac_prev=libdir ;;
1445 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1446 libdir=$ac_optarg ;;
1447
1448 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1449 | --libexe | --libex | --libe)
1450 ac_prev=libexecdir ;;
1451 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1452 | --libexe=* | --libex=* | --libe=*)
1453 libexecdir=$ac_optarg ;;
1454
1455 -localedir | --localedir | --localedi | --localed | --locale)
1456 ac_prev=localedir ;;
1457 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1458 localedir=$ac_optarg ;;
1459
1460 -localstatedir | --localstatedir | --localstatedi | --localstated \
1461 | --localstate | --localstat | --localsta | --localst | --locals)
1462 ac_prev=localstatedir ;;
1463 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1464 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1465 localstatedir=$ac_optarg ;;
1466
1467 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1468 ac_prev=mandir ;;
1469 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1470 mandir=$ac_optarg ;;
1471
1472 -nfp | --nfp | --nf)
1473 # Obsolete; use --without-fp.
1474 with_fp=no ;;
1475
1476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1477 | --no-cr | --no-c | -n)
1478 no_create=yes ;;
1479
1480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1482 no_recursion=yes ;;
1483
1484 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1485 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1486 | --oldin | --oldi | --old | --ol | --o)
1487 ac_prev=oldincludedir ;;
1488 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1489 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1490 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1491 oldincludedir=$ac_optarg ;;
1492
1493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1494 ac_prev=prefix ;;
1495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1496 prefix=$ac_optarg ;;
1497
1498 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1499 | --program-pre | --program-pr | --program-p)
1500 ac_prev=program_prefix ;;
1501 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1502 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1503 program_prefix=$ac_optarg ;;
1504
1505 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1506 | --program-suf | --program-su | --program-s)
1507 ac_prev=program_suffix ;;
1508 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1509 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1510 program_suffix=$ac_optarg ;;
1511
1512 -program-transform-name | --program-transform-name \
1513 | --program-transform-nam | --program-transform-na \
1514 | --program-transform-n | --program-transform- \
1515 | --program-transform | --program-transfor \
1516 | --program-transfo | --program-transf \
1517 | --program-trans | --program-tran \
1518 | --progr-tra | --program-tr | --program-t)
1519 ac_prev=program_transform_name ;;
1520 -program-transform-name=* | --program-transform-name=* \
1521 | --program-transform-nam=* | --program-transform-na=* \
1522 | --program-transform-n=* | --program-transform-=* \
1523 | --program-transform=* | --program-transfor=* \
1524 | --program-transfo=* | --program-transf=* \
1525 | --program-trans=* | --program-tran=* \
1526 | --progr-tra=* | --program-tr=* | --program-t=*)
1527 program_transform_name=$ac_optarg ;;
1528
1529 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1530 ac_prev=pdfdir ;;
1531 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1532 pdfdir=$ac_optarg ;;
1533
1534 -psdir | --psdir | --psdi | --psd | --ps)
1535 ac_prev=psdir ;;
1536 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1537 psdir=$ac_optarg ;;
1538
1539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1540 | -silent | --silent | --silen | --sile | --sil)
1541 silent=yes ;;
1542
1543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1544 ac_prev=sbindir ;;
1545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1546 | --sbi=* | --sb=*)
1547 sbindir=$ac_optarg ;;
1548
1549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1551 | --sharedst | --shareds | --shared | --share | --shar \
1552 | --sha | --sh)
1553 ac_prev=sharedstatedir ;;
1554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1557 | --sha=* | --sh=*)
1558 sharedstatedir=$ac_optarg ;;
1559
1560 -site | --site | --sit)
1561 ac_prev=site ;;
1562 -site=* | --site=* | --sit=*)
1563 site=$ac_optarg ;;
1564
1565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1566 ac_prev=srcdir ;;
1567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1568 srcdir=$ac_optarg ;;
1569
1570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1571 | --syscon | --sysco | --sysc | --sys | --sy)
1572 ac_prev=sysconfdir ;;
1573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1575 sysconfdir=$ac_optarg ;;
1576
1577 -target | --target | --targe | --targ | --tar | --ta | --t)
1578 ac_prev=target_alias ;;
1579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1580 target_alias=$ac_optarg ;;
1581
1582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1583 verbose=yes ;;
1584
1585 -version | --version | --versio | --versi | --vers | -V)
1586 ac_init_version=: ;;
1587
1588 -with-* | --with-*)
1589 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592 as_fn_error "invalid package name: $ac_useropt"
1593 ac_useropt_orig=$ac_useropt
1594 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1596 *"
1597 "with_$ac_useropt"
1598 "*) ;;
1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1600 ac_unrecognized_sep=', ';;
1601 esac
1602 eval with_$ac_useropt=\$ac_optarg ;;
1603
1604 -without-* | --without-*)
1605 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1606 # Reject names that are not valid shell variable names.
1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1608 as_fn_error "invalid package name: $ac_useropt"
1609 ac_useropt_orig=$ac_useropt
1610 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611 case $ac_user_opts in
1612 *"
1613 "with_$ac_useropt"
1614 "*) ;;
1615 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1616 ac_unrecognized_sep=', ';;
1617 esac
1618 eval with_$ac_useropt=no ;;
1619
1620 --x)
1621 # Obsolete; use --with-x.
1622 with_x=yes ;;
1623
1624 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1625 | --x-incl | --x-inc | --x-in | --x-i)
1626 ac_prev=x_includes ;;
1627 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1628 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1629 x_includes=$ac_optarg ;;
1630
1631 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1632 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1633 ac_prev=x_libraries ;;
1634 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1635 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1636 x_libraries=$ac_optarg ;;
1637
1638 -*) as_fn_error "unrecognized option: \`$ac_option'
1639 Try \`$0 --help' for more information."
1640 ;;
1641
1642 *=*)
1643 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1644 # Reject names that are not valid shell variable names.
1645 case $ac_envvar in #(
1646 '' | [0-9]* | *[!_$as_cr_alnum]* )
1647 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1648 esac
1649 eval $ac_envvar=\$ac_optarg
1650 export $ac_envvar ;;
1651
1652 *)
1653 # FIXME: should be removed in autoconf 3.0.
1654 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1655 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1656 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1657 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1658 ;;
1659
1660 esac
1661 done
1662
1663 if test -n "$ac_prev"; then
1664 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1665 as_fn_error "missing argument to $ac_option"
1666 fi
1667
1668 if test -n "$ac_unrecognized_opts"; then
1669 case $enable_option_checking in
1670 no) ;;
1671 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1672 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1673 esac
1674 fi
1675
1676 # Check all directory arguments for consistency.
1677 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1678 datadir sysconfdir sharedstatedir localstatedir includedir \
1679 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1680 libdir localedir mandir
1681 do
1682 eval ac_val=\$$ac_var
1683 # Remove trailing slashes.
1684 case $ac_val in
1685 */ )
1686 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1687 eval $ac_var=\$ac_val;;
1688 esac
1689 # Be sure to have absolute directory names.
1690 case $ac_val in
1691 [\\/$]* | ?:[\\/]* ) continue;;
1692 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1693 esac
1694 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1695 done
1696
1697 # There might be people who depend on the old broken behavior: `$host'
1698 # used to hold the argument of --host etc.
1699 # FIXME: To remove some day.
1700 build=$build_alias
1701 host=$host_alias
1702 target=$target_alias
1703
1704 # FIXME: To remove some day.
1705 if test "x$host_alias" != x; then
1706 if test "x$build_alias" = x; then
1707 cross_compiling=maybe
1708 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1709 If a cross compiler is detected then cross compile mode will be used." >&2
1710 elif test "x$build_alias" != "x$host_alias"; then
1711 cross_compiling=yes
1712 fi
1713 fi
1714
1715 ac_tool_prefix=
1716 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1717
1718 test "$silent" = yes && exec 6>/dev/null
1719
1720
1721 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1722 ac_ls_di=`ls -di .` &&
1723 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1724 as_fn_error "working directory cannot be determined"
1725 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1726 as_fn_error "pwd does not report name of working directory"
1727
1728
1729 # Find the source files, if location was not specified.
1730 if test -z "$srcdir"; then
1731 ac_srcdir_defaulted=yes
1732 # Try the directory containing this script, then the parent directory.
1733 ac_confdir=`$as_dirname -- "$as_myself" ||
1734 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1735 X"$as_myself" : 'X\(//\)[^/]' \| \
1736 X"$as_myself" : 'X\(//\)$' \| \
1737 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1738 $as_echo X"$as_myself" |
1739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1740 s//\1/
1741 q
1742 }
1743 /^X\(\/\/\)[^/].*/{
1744 s//\1/
1745 q
1746 }
1747 /^X\(\/\/\)$/{
1748 s//\1/
1749 q
1750 }
1751 /^X\(\/\).*/{
1752 s//\1/
1753 q
1754 }
1755 s/.*/./; q'`
1756 srcdir=$ac_confdir
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1758 srcdir=..
1759 fi
1760 else
1761 ac_srcdir_defaulted=no
1762 fi
1763 if test ! -r "$srcdir/$ac_unique_file"; then
1764 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1765 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1766 fi
1767 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1768 ac_abs_confdir=`(
1769 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1770 pwd)`
1771 # When building in place, set srcdir=.
1772 if test "$ac_abs_confdir" = "$ac_pwd"; then
1773 srcdir=.
1774 fi
1775 # Remove unnecessary trailing slashes from srcdir.
1776 # Double slashes in file names in object file debugging info
1777 # mess up M-x gdb in Emacs.
1778 case $srcdir in
1779 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1780 esac
1781 for ac_var in $ac_precious_vars; do
1782 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1783 eval ac_env_${ac_var}_value=\$${ac_var}
1784 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1785 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1786 done
1787
1788 #
1789 # Report the --help message.
1790 #
1791 if test "$ac_init_help" = "long"; then
1792 # Omit some internal or obsolete options to make the list less imposing.
1793 # This message is too long to be a string in the A/UX 3.1 sh.
1794 cat <<_ACEOF
1795 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1796
1797 Usage: $0 [OPTION]... [VAR=VALUE]...
1798
1799 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1800 VAR=VALUE. See below for descriptions of some of the useful variables.
1801
1802 Defaults for the options are specified in brackets.
1803
1804 Configuration:
1805 -h, --help display this help and exit
1806 --help=short display options specific to this package
1807 --help=recursive display the short help of all the included packages
1808 -V, --version display version information and exit
1809 -q, --quiet, --silent do not print \`checking...' messages
1810 --cache-file=FILE cache test results in FILE [disabled]
1811 -C, --config-cache alias for \`--cache-file=config.cache'
1812 -n, --no-create do not create output files
1813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1814
1815 Installation directories:
1816 --prefix=PREFIX install architecture-independent files in PREFIX
1817 [$ac_default_prefix]
1818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1819 [PREFIX]
1820
1821 By default, \`make install' will install all the files in
1822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1824 for instance \`--prefix=\$HOME'.
1825
1826 For better control, use the options below.
1827
1828 Fine tuning of the installation directories:
1829 --bindir=DIR user executables [EPREFIX/bin]
1830 --sbindir=DIR system admin executables [EPREFIX/sbin]
1831 --libexecdir=DIR program executables [EPREFIX/libexec]
1832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1835 --libdir=DIR object code libraries [EPREFIX/lib]
1836 --includedir=DIR C header files [PREFIX/include]
1837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1838 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1839 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1840 --infodir=DIR info documentation [DATAROOTDIR/info]
1841 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1842 --mandir=DIR man documentation [DATAROOTDIR/man]
1843 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1844 --htmldir=DIR html documentation [DOCDIR]
1845 --dvidir=DIR dvi documentation [DOCDIR]
1846 --pdfdir=DIR pdf documentation [DOCDIR]
1847 --psdir=DIR ps documentation [DOCDIR]
1848 _ACEOF
1849
1850 cat <<\_ACEOF
1851
1852 Program names:
1853 --program-prefix=PREFIX prepend PREFIX to installed program names
1854 --program-suffix=SUFFIX append SUFFIX to installed program names
1855 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1856
1857 X features:
1858 --x-includes=DIR X include files are in DIR
1859 --x-libraries=DIR X library files are in DIR
1860
1861 System types:
1862 --build=BUILD configure for building on BUILD [guessed]
1863 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1864 _ACEOF
1865 fi
1866
1867 if test -n "$ac_init_help"; then
1868 case $ac_init_help in
1869 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1870 esac
1871 cat <<\_ACEOF
1872
1873 Optional Features:
1874 --disable-option-checking ignore unrecognized --enable/--with options
1875 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1876 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1877 --disable-ns-self-contained
1878 disable self contained build under NeXTstep
1879 --enable-asserts compile code with asserts enabled
1880 --enable-maintainer-mode
1881 enable make rules and dependencies not useful (and
1882 sometimes confusing) to the casual installer
1883 --enable-locallisppath=PATH
1884 directories Emacs should search for lisp files
1885 specific to this site
1886 --enable-checking[=LIST]
1887 enable expensive run-time checks. With LIST, enable
1888 only specific categories of checks. Categories are:
1889 all,yes,no. Flags are: stringbytes, stringoverrun,
1890 stringfreelist, xmallocoverrun, conslist
1891 --enable-use-lisp-union-type
1892 use a union for the Lisp_Object data type. This is
1893 only useful for development for catching certain
1894 types of bugs.
1895 --enable-profiling build emacs with profiling support. This might not
1896 work on all platforms
1897 --enable-autodepend automatically generate dependencies to .h-files.
1898 Requires GNU Make and Gcc. Enabled if GNU Make and
1899 Gcc is found
1900 --disable-dependency-tracking speeds up one-time build
1901 --enable-dependency-tracking do not reject slow dependency extractors
1902 --disable-largefile omit support for large files
1903
1904 Optional Packages:
1905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1907 --without-pop don't support POP mail retrieval with movemail
1908 --with-kerberos support Kerberos-authenticated POP
1909 --with-kerberos5 support Kerberos version 5 authenticated POP
1910 --with-hesiod support Hesiod to get the POP server host
1911 --with-mmdf support MMDF mailboxes
1912 --with-mail-unlink unlink, rather than empty, mail spool after reading
1913 --with-mailhost=HOSTNAME
1914 string giving default POP mail host
1915 --without-sound don't compile with sound support
1916 --without-sync-input process async input synchronously
1917 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1918 lucid or athena, motif, no)
1919 --without-xpm don't compile with XPM image support
1920 --without-jpeg don't compile with JPEG image support
1921 --without-tiff don't compile with TIFF image support
1922 --without-gif don't compile with GIF image support
1923 --without-png don't compile with PNG image support
1924 --without-rsvg don't compile with SVG image support
1925 --without-xml2 don't compile with XML parsing support
1926 --without-imagemagick don't compile with ImageMagick image support
1927 --without-xft don't use XFT for anti aliased fonts
1928 --without-libotf don't use libotf for OpenType font support
1929 --without-m17n-flt don't use m17n-flt for text shaping
1930 --without-toolkit-scroll-bars
1931 don't use Motif or Xaw3d scroll bars
1932 --without-xaw3d don't use Xaw3d
1933 --without-xim don't use X11 XIM
1934 --with-ns use NeXTstep (Cocoa or GNUstep) windowing system
1935 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1936 console
1937 --without-dbus don't compile with D-Bus support
1938 --without-gconf don't compile with GConf support
1939 --without-selinux don't compile with SELinux support
1940 --without-gnutls don't use -lgnutls for SSL/TLS support
1941 --without-makeinfo don't require makeinfo for building manuals
1942 --without-compress-info don't compress the installed Info pages
1943 --with-pkg-config-prog=PATH
1944 path to pkg-config for finding GTK and librsvg
1945 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1946 /usr/lib, or /usr/lib64 on some platforms.
1947 --with-gameuser=USER user for shared game score files
1948 --with-gnustep-conf=PATH
1949 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1950 or /etc/GNUstep/GNUstep.conf
1951 --with-x use the X Window System
1952
1953 Some influential environment variables:
1954 CC C compiler command
1955 CFLAGS C compiler flags
1956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1957 nonstandard directory <lib dir>
1958 LIBS libraries to pass to the linker, e.g. -l<library>
1959 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1960 you have headers in a nonstandard directory <include dir>
1961 CPP C preprocessor
1962 XMKMF Path to xmkmf, Makefile generator for X Window System
1963
1964 Use these variables to override the choices made by `configure' or to help
1965 it to find libraries and programs with nonstandard names/locations.
1966
1967 Report bugs to the package provider.
1968 _ACEOF
1969 ac_status=$?
1970 fi
1971
1972 if test "$ac_init_help" = "recursive"; then
1973 # If there are subdirs, report their specific --help.
1974 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1975 test -d "$ac_dir" ||
1976 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1977 continue
1978 ac_builddir=.
1979
1980 case "$ac_dir" in
1981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982 *)
1983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984 # A ".." for each directory in $ac_dir_suffix.
1985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986 case $ac_top_builddir_sub in
1987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1989 esac ;;
1990 esac
1991 ac_abs_top_builddir=$ac_pwd
1992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1993 # for backward compatibility:
1994 ac_top_builddir=$ac_top_build_prefix
1995
1996 case $srcdir in
1997 .) # We are building in place.
1998 ac_srcdir=.
1999 ac_top_srcdir=$ac_top_builddir_sub
2000 ac_abs_top_srcdir=$ac_pwd ;;
2001 [\\/]* | ?:[\\/]* ) # Absolute name.
2002 ac_srcdir=$srcdir$ac_dir_suffix;
2003 ac_top_srcdir=$srcdir
2004 ac_abs_top_srcdir=$srcdir ;;
2005 *) # Relative name.
2006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007 ac_top_srcdir=$ac_top_build_prefix$srcdir
2008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2009 esac
2010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2011
2012 cd "$ac_dir" || { ac_status=$?; continue; }
2013 # Check for guested configure.
2014 if test -f "$ac_srcdir/configure.gnu"; then
2015 echo &&
2016 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017 elif test -f "$ac_srcdir/configure"; then
2018 echo &&
2019 $SHELL "$ac_srcdir/configure" --help=recursive
2020 else
2021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2022 fi || ac_status=$?
2023 cd "$ac_pwd" || { ac_status=$?; break; }
2024 done
2025 fi
2026
2027 test -n "$ac_init_help" && exit $ac_status
2028 if $ac_init_version; then
2029 cat <<\_ACEOF
2030 emacs configure 24.0.50
2031 generated by GNU Autoconf 2.65
2032
2033 Copyright (C) 2009 Free Software Foundation, Inc.
2034 This configure script is free software; the Free Software Foundation
2035 gives unlimited permission to copy, distribute and modify it.
2036 _ACEOF
2037 exit
2038 fi
2039
2040 ## ------------------------ ##
2041 ## Autoconf initialization. ##
2042 ## ------------------------ ##
2043
2044 # ac_fn_c_try_compile LINENO
2045 # --------------------------
2046 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_c_try_compile ()
2048 {
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext
2051 if { { ac_try="$ac_compile"
2052 case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_compile") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest.$ac_objext; then :
2070 ac_retval=0
2071 else
2072 $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076 fi
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078 as_fn_set_status $ac_retval
2079
2080 } # ac_fn_c_try_compile
2081
2082 # ac_fn_c_try_cpp LINENO
2083 # ----------------------
2084 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2085 ac_fn_c_try_cpp ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if { { ac_try="$ac_cpp conftest.$ac_ext"
2089 case "(($ac_try" in
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2092 esac
2093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2094 $as_echo "$ac_try_echo"; } >&5
2095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096 ac_status=$?
2097 if test -s conftest.err; then
2098 grep -v '^ *+' conftest.err >conftest.er1
2099 cat conftest.er1 >&5
2100 mv -f conftest.er1 conftest.err
2101 fi
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } >/dev/null && {
2104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2105 test ! -s conftest.err
2106 }; then :
2107 ac_retval=0
2108 else
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111
2112 ac_retval=1
2113 fi
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2115 as_fn_set_status $ac_retval
2116
2117 } # ac_fn_c_try_cpp
2118
2119 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2120 # -------------------------------------------------------
2121 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2122 # the include files in INCLUDES and setting the cache variable VAR
2123 # accordingly.
2124 ac_fn_c_check_header_mongrel ()
2125 {
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2132 fi
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 else
2137 # Is the header compilable?
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2139 $as_echo_n "checking $2 usability... " >&6; }
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $4
2143 #include <$2>
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_header_compiler=yes
2147 else
2148 ac_header_compiler=no
2149 fi
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2152 $as_echo "$ac_header_compiler" >&6; }
2153
2154 # Is the header present?
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2156 $as_echo_n "checking $2 presence... " >&6; }
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 #include <$2>
2160 _ACEOF
2161 if ac_fn_c_try_cpp "$LINENO"; then :
2162 ac_header_preproc=yes
2163 else
2164 ac_header_preproc=no
2165 fi
2166 rm -f conftest.err conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2168 $as_echo "$ac_header_preproc" >&6; }
2169
2170 # So? What about this header?
2171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2172 yes:no: )
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2174 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2176 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ;;
2178 no:yes:* )
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2180 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2182 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2184 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2186 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2188 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189 ;;
2190 esac
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 eval "$3=\$ac_header_compiler"
2197 fi
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 fi
2202 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2203
2204 } # ac_fn_c_check_header_mongrel
2205
2206 # ac_fn_c_try_run LINENO
2207 # ----------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2209 # that executables *can* be run.
2210 ac_fn_c_try_run ()
2211 {
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>&5
2221 ac_status=$?
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2224 { { case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_try") 2>&5
2231 ac_status=$?
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; }; }; then :
2234 ac_retval=0
2235 else
2236 $as_echo "$as_me: program exited with status $ac_status" >&5
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 ac_retval=$ac_status
2241 fi
2242 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2243 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 as_fn_set_status $ac_retval
2245
2246 } # ac_fn_c_try_run
2247
2248 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists and can be compiled using the include files in
2251 # INCLUDES, setting the cache variable VAR accordingly.
2252 ac_fn_c_check_header_compile ()
2253 {
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2262 $4
2263 #include <$2>
2264 _ACEOF
2265 if ac_fn_c_try_compile "$LINENO"; then :
2266 eval "$3=yes"
2267 else
2268 eval "$3=no"
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277 } # ac_fn_c_check_header_compile
2278
2279 # ac_fn_c_try_link LINENO
2280 # -----------------------
2281 # Try to link conftest.$ac_ext, and return whether this succeeded.
2282 ac_fn_c_try_link ()
2283 {
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 rm -f conftest.$ac_objext conftest$ac_exeext
2286 if { { ac_try="$ac_link"
2287 case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2290 esac
2291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2292 $as_echo "$ac_try_echo"; } >&5
2293 (eval "$ac_link") 2>conftest.err
2294 ac_status=$?
2295 if test -s conftest.err; then
2296 grep -v '^ *+' conftest.err >conftest.er1
2297 cat conftest.er1 >&5
2298 mv -f conftest.er1 conftest.err
2299 fi
2300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301 test $ac_status = 0; } && {
2302 test -z "$ac_c_werror_flag" ||
2303 test ! -s conftest.err
2304 } && test -s conftest$ac_exeext && {
2305 test "$cross_compiling" = yes ||
2306 $as_test_x conftest$ac_exeext
2307 }; then :
2308 ac_retval=0
2309 else
2310 $as_echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 ac_retval=1
2314 fi
2315 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2316 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2317 # interfere with the next link command; also delete a directory that is
2318 # left behind by Apple's compiler. We do this before executing the actions.
2319 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 as_fn_set_status $ac_retval
2322
2323 } # ac_fn_c_try_link
2324
2325 # ac_fn_c_check_decl LINENO SYMBOL VAR
2326 # ------------------------------------
2327 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2328 ac_fn_c_check_decl ()
2329 {
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2332 $as_echo_n "checking whether $2 is declared... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $4
2339 int
2340 main ()
2341 {
2342 #ifndef $2
2343 (void) $2;
2344 #endif
2345
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351 eval "$3=yes"
2352 else
2353 eval "$3=no"
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 fi
2357 eval ac_res=\$$3
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2359 $as_echo "$ac_res" >&6; }
2360 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361
2362 } # ac_fn_c_check_decl
2363
2364 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2365 # ----------------------------------------------
2366 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2367 ac_fn_c_check_header_preproc ()
2368 {
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2377 #include <$2>
2378 _ACEOF
2379 if ac_fn_c_try_cpp "$LINENO"; then :
2380 eval "$3=yes"
2381 else
2382 eval "$3=no"
2383 fi
2384 rm -f conftest.err conftest.$ac_ext
2385 fi
2386 eval ac_res=\$$3
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390
2391 } # ac_fn_c_check_header_preproc
2392
2393 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2394 # ----------------------------------------------------
2395 # Tries to find if the field MEMBER exists in type AGGR, after including
2396 # INCLUDES, setting cache variable VAR accordingly.
2397 ac_fn_c_check_member ()
2398 {
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2401 $as_echo_n "checking for $2.$3... " >&6; }
2402 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 $5
2408 int
2409 main ()
2410 {
2411 static $2 ac_aggr;
2412 if (ac_aggr.$3)
2413 return 0;
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419 eval "$4=yes"
2420 else
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2423 $5
2424 int
2425 main ()
2426 {
2427 static $2 ac_aggr;
2428 if (sizeof ac_aggr.$3)
2429 return 0;
2430 ;
2431 return 0;
2432 }
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 eval "$4=yes"
2436 else
2437 eval "$4=no"
2438 fi
2439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 fi
2443 eval ac_res=\$$4
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2447
2448 } # ac_fn_c_check_member
2449
2450 # ac_fn_c_check_func LINENO FUNC VAR
2451 # ----------------------------------
2452 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2453 ac_fn_c_check_func ()
2454 {
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2465 #define $2 innocuous_$2
2466
2467 /* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $2 (); below.
2469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 <limits.h> exists even on freestanding compilers. */
2471
2472 #ifdef __STDC__
2473 # include <limits.h>
2474 #else
2475 # include <assert.h>
2476 #endif
2477
2478 #undef $2
2479
2480 /* Override any GCC internal prototype to avoid an error.
2481 Use char because int might match the return type of a GCC
2482 builtin and then its argument prototype would still apply. */
2483 #ifdef __cplusplus
2484 extern "C"
2485 #endif
2486 char $2 ();
2487 /* The GNU C library defines this for functions which it implements
2488 to always fail with ENOSYS. Some functions are actually named
2489 something starting with __ and the normal name is an alias. */
2490 #if defined __stub_$2 || defined __stub___$2
2491 choke me
2492 #endif
2493
2494 int
2495 main ()
2496 {
2497 return $2 ();
2498 ;
2499 return 0;
2500 }
2501 _ACEOF
2502 if ac_fn_c_try_link "$LINENO"; then :
2503 eval "$3=yes"
2504 else
2505 eval "$3=no"
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext \
2508 conftest$ac_exeext conftest.$ac_ext
2509 fi
2510 eval ac_res=\$$3
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2514
2515 } # ac_fn_c_check_func
2516
2517 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2518 # -------------------------------------------
2519 # Tests whether TYPE exists after having included INCLUDES, setting cache
2520 # variable VAR accordingly.
2521 ac_fn_c_check_type ()
2522 {
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2525 $as_echo_n "checking for $2... " >&6; }
2526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 eval "$3=no"
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2532 $4
2533 int
2534 main ()
2535 {
2536 if (sizeof ($2))
2537 return 0;
2538 ;
2539 return 0;
2540 }
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2545 $4
2546 int
2547 main ()
2548 {
2549 if (sizeof (($2)))
2550 return 0;
2551 ;
2552 return 0;
2553 }
2554 _ACEOF
2555 if ac_fn_c_try_compile "$LINENO"; then :
2556
2557 else
2558 eval "$3=yes"
2559 fi
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 fi
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 fi
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2568
2569 } # ac_fn_c_check_type
2570
2571 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2572 # --------------------------------------------
2573 # Tries to find the compile-time value of EXPR in a program that includes
2574 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2575 # computed
2576 ac_fn_c_compute_int ()
2577 {
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 if test "$cross_compiling" = yes; then
2580 # Depending upon the size, compute the lo and hi bounds.
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2583 $4
2584 int
2585 main ()
2586 {
2587 static int test_array [1 - 2 * !(($2) >= 0)];
2588 test_array [0] = 0
2589
2590 ;
2591 return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595 ac_lo=0 ac_mid=0
2596 while :; do
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 $4
2600 int
2601 main ()
2602 {
2603 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2604 test_array [0] = 0
2605
2606 ;
2607 return 0;
2608 }
2609 _ACEOF
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611 ac_hi=$ac_mid; break
2612 else
2613 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2614 if test $ac_lo -le $ac_mid; then
2615 ac_lo= ac_hi=
2616 break
2617 fi
2618 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2619 fi
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 done
2622 else
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2625 $4
2626 int
2627 main ()
2628 {
2629 static int test_array [1 - 2 * !(($2) < 0)];
2630 test_array [0] = 0
2631
2632 ;
2633 return 0;
2634 }
2635 _ACEOF
2636 if ac_fn_c_try_compile "$LINENO"; then :
2637 ac_hi=-1 ac_mid=-1
2638 while :; do
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2641 $4
2642 int
2643 main ()
2644 {
2645 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2646 test_array [0] = 0
2647
2648 ;
2649 return 0;
2650 }
2651 _ACEOF
2652 if ac_fn_c_try_compile "$LINENO"; then :
2653 ac_lo=$ac_mid; break
2654 else
2655 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2656 if test $ac_mid -le $ac_hi; then
2657 ac_lo= ac_hi=
2658 break
2659 fi
2660 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2661 fi
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 done
2664 else
2665 ac_lo= ac_hi=
2666 fi
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 fi
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 # Binary search between lo and hi bounds.
2671 while test "x$ac_lo" != "x$ac_hi"; do
2672 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2675 $4
2676 int
2677 main ()
2678 {
2679 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2680 test_array [0] = 0
2681
2682 ;
2683 return 0;
2684 }
2685 _ACEOF
2686 if ac_fn_c_try_compile "$LINENO"; then :
2687 ac_hi=$ac_mid
2688 else
2689 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 done
2693 case $ac_lo in #((
2694 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2695 '') ac_retval=1 ;;
2696 esac
2697 else
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2700 $4
2701 static long int longval () { return $2; }
2702 static unsigned long int ulongval () { return $2; }
2703 #include <stdio.h>
2704 #include <stdlib.h>
2705 int
2706 main ()
2707 {
2708
2709 FILE *f = fopen ("conftest.val", "w");
2710 if (! f)
2711 return 1;
2712 if (($2) < 0)
2713 {
2714 long int i = longval ();
2715 if (i != ($2))
2716 return 1;
2717 fprintf (f, "%ld", i);
2718 }
2719 else
2720 {
2721 unsigned long int i = ulongval ();
2722 if (i != ($2))
2723 return 1;
2724 fprintf (f, "%lu", i);
2725 }
2726 /* Do not output a trailing newline, as this causes \r\n confusion
2727 on some platforms. */
2728 return ferror (f) || fclose (f) != 0;
2729
2730 ;
2731 return 0;
2732 }
2733 _ACEOF
2734 if ac_fn_c_try_run "$LINENO"; then :
2735 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2736 else
2737 ac_retval=1
2738 fi
2739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2740 conftest.$ac_objext conftest.beam conftest.$ac_ext
2741 rm -f conftest.val
2742
2743 fi
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745 as_fn_set_status $ac_retval
2746
2747 } # ac_fn_c_compute_int
2748 cat >config.log <<_ACEOF
2749 This file contains any messages produced by compilers while
2750 running configure, to aid debugging if configure makes a mistake.
2751
2752 It was created by emacs $as_me 24.0.50, which was
2753 generated by GNU Autoconf 2.65. Invocation command line was
2754
2755 $ $0 $@
2756
2757 _ACEOF
2758 exec 5>>config.log
2759 {
2760 cat <<_ASUNAME
2761 ## --------- ##
2762 ## Platform. ##
2763 ## --------- ##
2764
2765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2770
2771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2772 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2773
2774 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2775 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2777 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2778 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2779 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2780 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2781
2782 _ASUNAME
2783
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 $as_echo "PATH: $as_dir"
2790 done
2791 IFS=$as_save_IFS
2792
2793 } >&5
2794
2795 cat >&5 <<_ACEOF
2796
2797
2798 ## ----------- ##
2799 ## Core tests. ##
2800 ## ----------- ##
2801
2802 _ACEOF
2803
2804
2805 # Keep a trace of the command line.
2806 # Strip out --no-create and --no-recursion so they do not pile up.
2807 # Strip out --silent because we don't want to record it for future runs.
2808 # Also quote any args containing shell meta-characters.
2809 # Make two passes to allow for proper duplicate-argument suppression.
2810 ac_configure_args=
2811 ac_configure_args0=
2812 ac_configure_args1=
2813 ac_must_keep_next=false
2814 for ac_pass in 1 2
2815 do
2816 for ac_arg
2817 do
2818 case $ac_arg in
2819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2821 | -silent | --silent | --silen | --sile | --sil)
2822 continue ;;
2823 *\'*)
2824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2825 esac
2826 case $ac_pass in
2827 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2828 2)
2829 as_fn_append ac_configure_args1 " '$ac_arg'"
2830 if test $ac_must_keep_next = true; then
2831 ac_must_keep_next=false # Got value, back to normal.
2832 else
2833 case $ac_arg in
2834 *=* | --config-cache | -C | -disable-* | --disable-* \
2835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2837 | -with-* | --with-* | -without-* | --without-* | --x)
2838 case "$ac_configure_args0 " in
2839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2840 esac
2841 ;;
2842 -* ) ac_must_keep_next=true ;;
2843 esac
2844 fi
2845 as_fn_append ac_configure_args " '$ac_arg'"
2846 ;;
2847 esac
2848 done
2849 done
2850 { ac_configure_args0=; unset ac_configure_args0;}
2851 { ac_configure_args1=; unset ac_configure_args1;}
2852
2853 # When interrupted or exit'd, cleanup temporary files, and complete
2854 # config.log. We remove comments because anyway the quotes in there
2855 # would cause problems or look ugly.
2856 # WARNING: Use '\'' to represent an apostrophe within the trap.
2857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2858 trap 'exit_status=$?
2859 # Save into config.log some information that might help in debugging.
2860 {
2861 echo
2862
2863 cat <<\_ASBOX
2864 ## ---------------- ##
2865 ## Cache variables. ##
2866 ## ---------------- ##
2867 _ASBOX
2868 echo
2869 # The following way of writing the cache mishandles newlines in values,
2870 (
2871 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2872 eval ac_val=\$$ac_var
2873 case $ac_val in #(
2874 *${as_nl}*)
2875 case $ac_var in #(
2876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2878 esac
2879 case $ac_var in #(
2880 _ | IFS | as_nl) ;; #(
2881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2882 *) { eval $ac_var=; unset $ac_var;} ;;
2883 esac ;;
2884 esac
2885 done
2886 (set) 2>&1 |
2887 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2888 *${as_nl}ac_space=\ *)
2889 sed -n \
2890 "s/'\''/'\''\\\\'\'''\''/g;
2891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2892 ;; #(
2893 *)
2894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2895 ;;
2896 esac |
2897 sort
2898 )
2899 echo
2900
2901 cat <<\_ASBOX
2902 ## ----------------- ##
2903 ## Output variables. ##
2904 ## ----------------- ##
2905 _ASBOX
2906 echo
2907 for ac_var in $ac_subst_vars
2908 do
2909 eval ac_val=\$$ac_var
2910 case $ac_val in
2911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2912 esac
2913 $as_echo "$ac_var='\''$ac_val'\''"
2914 done | sort
2915 echo
2916
2917 if test -n "$ac_subst_files"; then
2918 cat <<\_ASBOX
2919 ## ------------------- ##
2920 ## File substitutions. ##
2921 ## ------------------- ##
2922 _ASBOX
2923 echo
2924 for ac_var in $ac_subst_files
2925 do
2926 eval ac_val=\$$ac_var
2927 case $ac_val in
2928 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2929 esac
2930 $as_echo "$ac_var='\''$ac_val'\''"
2931 done | sort
2932 echo
2933 fi
2934
2935 if test -s confdefs.h; then
2936 cat <<\_ASBOX
2937 ## ----------- ##
2938 ## confdefs.h. ##
2939 ## ----------- ##
2940 _ASBOX
2941 echo
2942 cat confdefs.h
2943 echo
2944 fi
2945 test "$ac_signal" != 0 &&
2946 $as_echo "$as_me: caught signal $ac_signal"
2947 $as_echo "$as_me: exit $exit_status"
2948 } >&5
2949 rm -f core *.core core.conftest.* &&
2950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2951 exit $exit_status
2952 ' 0
2953 for ac_signal in 1 2 13 15; do
2954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2955 done
2956 ac_signal=0
2957
2958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2959 rm -f -r conftest* confdefs.h
2960
2961 $as_echo "/* confdefs.h */" > confdefs.h
2962
2963 # Predefined preprocessor variables.
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_NAME "$PACKAGE_NAME"
2967 _ACEOF
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2971 _ACEOF
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2975 _ACEOF
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_STRING "$PACKAGE_STRING"
2979 _ACEOF
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2983 _ACEOF
2984
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_URL "$PACKAGE_URL"
2987 _ACEOF
2988
2989
2990 # Let the site file select an alternate cache file if it wants to.
2991 # Prefer an explicitly selected file to automatically selected ones.
2992 ac_site_file1=NONE
2993 ac_site_file2=NONE
2994 if test -n "$CONFIG_SITE"; then
2995 ac_site_file1=$CONFIG_SITE
2996 elif test "x$prefix" != xNONE; then
2997 ac_site_file1=$prefix/share/config.site
2998 ac_site_file2=$prefix/etc/config.site
2999 else
3000 ac_site_file1=$ac_default_prefix/share/config.site
3001 ac_site_file2=$ac_default_prefix/etc/config.site
3002 fi
3003 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3004 do
3005 test "x$ac_site_file" = xNONE && continue
3006 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3008 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3009 sed 's/^/| /' "$ac_site_file" >&5
3010 . "$ac_site_file"
3011 fi
3012 done
3013
3014 if test -r "$cache_file"; then
3015 # Some versions of bash will fail to source /dev/null (special files
3016 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3017 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3019 $as_echo "$as_me: loading cache $cache_file" >&6;}
3020 case $cache_file in
3021 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3022 *) . "./$cache_file";;
3023 esac
3024 fi
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3027 $as_echo "$as_me: creating cache $cache_file" >&6;}
3028 >$cache_file
3029 fi
3030
3031 as_fn_append ac_header_list " stdlib.h"
3032 as_fn_append ac_header_list " unistd.h"
3033 as_fn_append ac_header_list " sys/param.h"
3034 as_fn_append ac_func_list " readlinkat"
3035 gl_getopt_required=GNU
3036 as_fn_append ac_header_list " getopt.h"
3037 as_fn_append ac_func_list " lstat"
3038 as_fn_append ac_func_list " alarm"
3039 as_fn_append ac_func_list " readlink"
3040 as_fn_append ac_header_list " sys/socket.h"
3041 as_fn_append ac_header_list " wchar.h"
3042 as_fn_append ac_header_list " stdint.h"
3043 as_fn_append ac_func_list " tzset"
3044 as_fn_append ac_func_list " symlink"
3045 as_fn_append ac_header_list " sys/stat.h"
3046 as_fn_append ac_header_list " sys/time.h"
3047 as_fn_append ac_func_list " localtime_r"
3048 # Check that the precious variables saved in the cache have kept the same
3049 # value.
3050 ac_cache_corrupted=false
3051 for ac_var in $ac_precious_vars; do
3052 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3053 eval ac_new_set=\$ac_env_${ac_var}_set
3054 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3055 eval ac_new_val=\$ac_env_${ac_var}_value
3056 case $ac_old_set,$ac_new_set in
3057 set,)
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3059 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3060 ac_cache_corrupted=: ;;
3061 ,set)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3063 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3064 ac_cache_corrupted=: ;;
3065 ,);;
3066 *)
3067 if test "x$ac_old_val" != "x$ac_new_val"; then
3068 # differences in whitespace do not lead to failure.
3069 ac_old_val_w=`echo x $ac_old_val`
3070 ac_new_val_w=`echo x $ac_new_val`
3071 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3073 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3074 ac_cache_corrupted=:
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3077 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3078 eval $ac_var=\$ac_old_val
3079 fi
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3081 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3083 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3084 fi;;
3085 esac
3086 # Pass precious variables to config.status.
3087 if test "$ac_new_set" = set; then
3088 case $ac_new_val in
3089 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3090 *) ac_arg=$ac_var=$ac_new_val ;;
3091 esac
3092 case " $ac_configure_args " in
3093 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3094 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3095 esac
3096 fi
3097 done
3098 if $ac_cache_corrupted; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3102 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3103 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3104 fi
3105 ## -------------------- ##
3106 ## Main body of script. ##
3107 ## -------------------- ##
3108
3109 ac_ext=c
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114
3115
3116 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3117
3118
3119 am__api_version='1.11'
3120
3121 ac_aux_dir=
3122 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3123 for ac_t in install-sh install.sh shtool; do
3124 if test -f "$ac_dir/$ac_t"; then
3125 ac_aux_dir=$ac_dir
3126 ac_install_sh="$ac_aux_dir/$ac_t -c"
3127 break 2
3128 fi
3129 done
3130 done
3131 if test -z "$ac_aux_dir"; then
3132 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3133 fi
3134
3135 # These three variables are undocumented and unsupported,
3136 # and are intended to be withdrawn in a future Autoconf release.
3137 # They can cause serious problems if a builder's source tree is in a directory
3138 # whose full name contains unusual characters.
3139 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3140 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3141 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3142
3143
3144 # Find a good install program. We prefer a C program (faster),
3145 # so one script is as good as another. But avoid the broken or
3146 # incompatible versions:
3147 # SysV /etc/install, /usr/sbin/install
3148 # SunOS /usr/etc/install
3149 # IRIX /sbin/install
3150 # AIX /bin/install
3151 # AmigaOS /C/install, which installs bootblocks on floppy discs
3152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3155 # OS/2's system install, which has a completely different semantic
3156 # ./install, which can be erroneously created by make from ./install.sh.
3157 # Reject install programs that cannot install multiple files.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3160 if test -z "$INSTALL"; then
3161 if test "${ac_cv_path_install+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 # Account for people who put trailing slashes in PATH elements.
3170 case $as_dir/ in #((
3171 ./ | .// | /[cC]/* | \
3172 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3173 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3174 /usr/ucb/* ) ;;
3175 *)
3176 # OSF1 and SCO ODT 3.0 have their own names for install.
3177 # Don't use installbsd from OSF since it installs stuff as root
3178 # by default.
3179 for ac_prog in ginstall scoinst install; do
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3182 if test $ac_prog = install &&
3183 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3184 # AIX install. It has an incompatible calling convention.
3185 :
3186 elif test $ac_prog = install &&
3187 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3188 # program-specific install script used by HP pwplus--don't use.
3189 :
3190 else
3191 rm -rf conftest.one conftest.two conftest.dir
3192 echo one > conftest.one
3193 echo two > conftest.two
3194 mkdir conftest.dir
3195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3196 test -s conftest.one && test -s conftest.two &&
3197 test -s conftest.dir/conftest.one &&
3198 test -s conftest.dir/conftest.two
3199 then
3200 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3201 break 3
3202 fi
3203 fi
3204 fi
3205 done
3206 done
3207 ;;
3208 esac
3209
3210 done
3211 IFS=$as_save_IFS
3212
3213 rm -rf conftest.one conftest.two conftest.dir
3214
3215 fi
3216 if test "${ac_cv_path_install+set}" = set; then
3217 INSTALL=$ac_cv_path_install
3218 else
3219 # As a last resort, use the slow shell script. Don't cache a
3220 # value for INSTALL within a source directory, because that will
3221 # break other packages using the cache if that directory is
3222 # removed, or if the value is a relative name.
3223 INSTALL=$ac_install_sh
3224 fi
3225 fi
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3227 $as_echo "$INSTALL" >&6; }
3228
3229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3230 # It thinks the first close brace ends the variable substitution.
3231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3232
3233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3234
3235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3236
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3238 $as_echo_n "checking whether build environment is sane... " >&6; }
3239 # Just in case
3240 sleep 1
3241 echo timestamp > conftest.file
3242 # Reject unsafe characters in $srcdir or the absolute working directory
3243 # name. Accept space and tab only in the latter.
3244 am_lf='
3245 '
3246 case `pwd` in
3247 *[\\\"\#\$\&\'\`$am_lf]*)
3248 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3249 esac
3250 case $srcdir in
3251 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3252 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3253 esac
3254
3255 # Do `set' in a subshell so we don't clobber the current shell's
3256 # arguments. Must try -L first in case configure is actually a
3257 # symlink; some systems play weird games with the mod time of symlinks
3258 # (eg FreeBSD returns the mod time of the symlink's containing
3259 # directory).
3260 if (
3261 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3262 if test "$*" = "X"; then
3263 # -L didn't work.
3264 set X `ls -t "$srcdir/configure" conftest.file`
3265 fi
3266 rm -f conftest.file
3267 if test "$*" != "X $srcdir/configure conftest.file" \
3268 && test "$*" != "X conftest.file $srcdir/configure"; then
3269
3270 # If neither matched, then we have a broken ls. This can happen
3271 # if, for instance, CONFIG_SHELL is bash and it inherits a
3272 # broken ls alias from the environment. This has actually
3273 # happened. Such a system could not be considered "sane".
3274 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3275 alias in your environment" "$LINENO" 5
3276 fi
3277
3278 test "$2" = conftest.file
3279 )
3280 then
3281 # Ok.
3282 :
3283 else
3284 as_fn_error "newly created file is older than distributed files!
3285 Check your system clock" "$LINENO" 5
3286 fi
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3289 test "$program_prefix" != NONE &&
3290 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3291 # Use a double $ so make ignores it.
3292 test "$program_suffix" != NONE &&
3293 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3294 # Double any \ or $.
3295 # By default was `s,x,x', remove it if useless.
3296 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3297 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3298
3299 # expand $ac_aux_dir to an absolute path
3300 am_aux_dir=`cd $ac_aux_dir && pwd`
3301
3302 if test x"${MISSING+set}" != xset; then
3303 case $am_aux_dir in
3304 *\ * | *\ *)
3305 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3306 *)
3307 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3308 esac
3309 fi
3310 # Use eval to expand $SHELL
3311 if eval "$MISSING --run true"; then
3312 am_missing_run="$MISSING --run "
3313 else
3314 am_missing_run=
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3316 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3317 fi
3318
3319 if test x"${install_sh}" != xset; then
3320 case $am_aux_dir in
3321 *\ * | *\ *)
3322 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3323 *)
3324 install_sh="\${SHELL} $am_aux_dir/install-sh"
3325 esac
3326 fi
3327
3328 # Installed binaries are usually stripped using `strip' when the user
3329 # run `make install-strip'. However `strip' might not be the right
3330 # tool to use in cross-compilation environments, therefore Automake
3331 # will honor the `STRIP' environment variable to overrule this program.
3332 if test "$cross_compiling" != no; then
3333 if test -n "$ac_tool_prefix"; then
3334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3335 set dummy ${ac_tool_prefix}strip; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if test "${ac_cv_prog_STRIP+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 if test -n "$STRIP"; then
3342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3346 do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3354 fi
3355 done
3356 done
3357 IFS=$as_save_IFS
3358
3359 fi
3360 fi
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3364 $as_echo "$STRIP" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 fi
3369
3370
3371 fi
3372 if test -z "$ac_cv_prog_STRIP"; then
3373 ac_ct_STRIP=$STRIP
3374 # Extract the first word of "strip", so it can be a program name with args.
3375 set dummy strip; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$ac_ct_STRIP"; then
3382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_ac_ct_STRIP="strip"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3394 fi
3395 done
3396 done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3402 if test -n "$ac_ct_STRIP"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3404 $as_echo "$ac_ct_STRIP" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 if test "x$ac_ct_STRIP" = x; then
3411 STRIP=":"
3412 else
3413 case $cross_compiling:$ac_tool_warned in
3414 yes:)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3418 esac
3419 STRIP=$ac_ct_STRIP
3420 fi
3421 else
3422 STRIP="$ac_cv_prog_STRIP"
3423 fi
3424
3425 fi
3426 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3427
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3429 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3430 if test -z "$MKDIR_P"; then
3431 if test "${ac_cv_path_mkdir+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3436 do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_prog in mkdir gmkdir; do
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3443 'mkdir (GNU coreutils) '* | \
3444 'mkdir (coreutils) '* | \
3445 'mkdir (fileutils) '4.1*)
3446 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3447 break 3;;
3448 esac
3449 done
3450 done
3451 done
3452 IFS=$as_save_IFS
3453
3454 fi
3455
3456 test -d ./--version && rmdir ./--version
3457 if test "${ac_cv_path_mkdir+set}" = set; then
3458 MKDIR_P="$ac_cv_path_mkdir -p"
3459 else
3460 # As a last resort, use the slow shell script. Don't cache a
3461 # value for MKDIR_P within a source directory, because that will
3462 # break other packages using the cache if that directory is
3463 # removed, or if the value is a relative name.
3464 MKDIR_P="$ac_install_sh -d"
3465 fi
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3468 $as_echo "$MKDIR_P" >&6; }
3469
3470
3471 mkdir_p="$MKDIR_P"
3472 case $mkdir_p in
3473 [\\/$]* | ?:[\\/]*) ;;
3474 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3475 esac
3476
3477 for ac_prog in gawk mawk nawk awk
3478 do
3479 # Extract the first word of "$ac_prog", so it can be a program name with args.
3480 set dummy $ac_prog; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_AWK+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$AWK"; then
3487 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_AWK="$ac_prog"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3499 fi
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 AWK=$ac_cv_prog_AWK
3507 if test -n "$AWK"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3509 $as_echo "$AWK" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515
3516 test -n "$AWK" && break
3517 done
3518
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3520 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3521 set x ${MAKE-make}
3522 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3523 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 cat >conftest.make <<\_ACEOF
3527 SHELL = /bin/sh
3528 all:
3529 @echo '@@@%%%=$(MAKE)=@@@%%%'
3530 _ACEOF
3531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3532 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3533 *@@@%%%=?*=@@@%%%*)
3534 eval ac_cv_prog_make_${ac_make}_set=yes;;
3535 *)
3536 eval ac_cv_prog_make_${ac_make}_set=no;;
3537 esac
3538 rm -f conftest.make
3539 fi
3540 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3542 $as_echo "yes" >&6; }
3543 SET_MAKE=
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3547 SET_MAKE="MAKE=${MAKE-make}"
3548 fi
3549
3550 rm -rf .tst 2>/dev/null
3551 mkdir .tst 2>/dev/null
3552 if test -d .tst; then
3553 am__leading_dot=.
3554 else
3555 am__leading_dot=_
3556 fi
3557 rmdir .tst 2>/dev/null
3558
3559 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3560 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3561 # is not polluted with repeated "-I."
3562 am__isrc=' -I$(srcdir)'
3563 # test to see if srcdir already configured
3564 if test -f $srcdir/config.status; then
3565 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3566 fi
3567 fi
3568
3569 # test whether we have cygpath
3570 if test -z "$CYGPATH_W"; then
3571 if (cygpath --version) >/dev/null 2>/dev/null; then
3572 CYGPATH_W='cygpath -w'
3573 else
3574 CYGPATH_W=echo
3575 fi
3576 fi
3577
3578
3579 # Define the identity of the package.
3580 PACKAGE='emacs'
3581 VERSION='24.0.50'
3582
3583
3584 cat >>confdefs.h <<_ACEOF
3585 #define PACKAGE "$PACKAGE"
3586 _ACEOF
3587
3588
3589 cat >>confdefs.h <<_ACEOF
3590 #define VERSION "$VERSION"
3591 _ACEOF
3592
3593 # Some tools Automake needs.
3594
3595 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3596
3597
3598 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3599
3600
3601 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3602
3603
3604 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3605
3606
3607 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3608
3609 # We need awk for the "check" target. The system "awk" is bad on
3610 # some platforms.
3611 # Always define AMTAR for backward compatibility.
3612
3613 AMTAR=${AMTAR-"${am_missing_run}tar"}
3614
3615 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3616
3617
3618
3619
3620
3621
3622
3623
3624 lispdir='${datadir}/emacs/${version}/lisp'
3625 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3626 '${datadir}/emacs/site-lisp'
3627 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3628 etcdir='${datadir}/emacs/${version}/etc'
3629 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3630 docdir='${datadir}/emacs/${version}/etc'
3631 gamedir='${localstatedir}/games/emacs'
3632
3633
3634
3635
3636 # Check whether --with-pop was given.
3637 if test "${with_pop+set}" = set; then :
3638 withval=$with_pop;
3639 else
3640 with_pop=yes
3641 fi
3642
3643 if test "$with_pop" = yes; then
3644 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3645
3646 fi
3647
3648
3649 # Check whether --with-kerberos was given.
3650 if test "${with_kerberos+set}" = set; then :
3651 withval=$with_kerberos;
3652 else
3653 with_kerberos=no
3654 fi
3655
3656 if test "$with_kerberos" != no; then
3657 $as_echo "#define KERBEROS 1" >>confdefs.h
3658
3659 fi
3660
3661
3662 # Check whether --with-kerberos5 was given.
3663 if test "${with_kerberos5+set}" = set; then :
3664 withval=$with_kerberos5;
3665 else
3666 with_kerberos5=no
3667 fi
3668
3669 if test "${with_kerberos5}" != no; then
3670 if test "${with_kerberos}" = no; then
3671 with_kerberos=yes
3672 $as_echo "#define KERBEROS 1" >>confdefs.h
3673
3674 fi
3675
3676 $as_echo "#define KERBEROS5 1" >>confdefs.h
3677
3678 fi
3679
3680
3681 # Check whether --with-hesiod was given.
3682 if test "${with_hesiod+set}" = set; then :
3683 withval=$with_hesiod;
3684 else
3685 with_hesiod=no
3686 fi
3687
3688 if test "$with_hesiod" != no; then
3689
3690 $as_echo "#define HESIOD 1" >>confdefs.h
3691
3692 fi
3693
3694
3695 # Check whether --with-mmdf was given.
3696 if test "${with_mmdf+set}" = set; then :
3697 withval=$with_mmdf;
3698 else
3699 with_mmdf=no
3700 fi
3701
3702 if test "$with_mmdf" != no; then
3703
3704 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3705
3706 fi
3707
3708
3709 # Check whether --with-mail-unlink was given.
3710 if test "${with_mail_unlink+set}" = set; then :
3711 withval=$with_mail_unlink;
3712 else
3713 with_mail_unlink=no
3714 fi
3715
3716 if test "$with_mail_unlink" != no; then
3717
3718 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3719
3720 fi
3721
3722
3723 # Check whether --with-mailhost was given.
3724 if test "${with_mailhost+set}" = set; then :
3725 withval=$with_mailhost;
3726 cat >>confdefs.h <<_ACEOF
3727 #define MAILHOST "$withval"
3728 _ACEOF
3729
3730 fi
3731
3732
3733
3734 # Check whether --with-sound was given.
3735 if test "${with_sound+set}" = set; then :
3736 withval=$with_sound;
3737 else
3738 with_sound=yes
3739 fi
3740
3741
3742
3743 # Check whether --with-sync-input was given.
3744 if test "${with_sync_input+set}" = set; then :
3745 withval=$with_sync_input;
3746 else
3747 with_sync_input=yes
3748 fi
3749
3750 if test "$with_sync_input" = yes; then
3751
3752 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3753
3754 fi
3755
3756
3757 # Check whether --with-x-toolkit was given.
3758 if test "${with_x_toolkit+set}" = set; then :
3759 withval=$with_x_toolkit; case "${withval}" in
3760 y | ye | yes ) val=gtk ;;
3761 n | no ) val=no ;;
3762 l | lu | luc | luci | lucid ) val=lucid ;;
3763 a | at | ath | athe | athen | athena ) val=athena ;;
3764 m | mo | mot | moti | motif ) val=motif ;;
3765 g | gt | gtk ) val=gtk ;;
3766 gtk3 ) val=gtk3 ;;
3767 * )
3768 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
3769 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3770 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3771 ;;
3772 esac
3773 with_x_toolkit=$val
3774
3775 fi
3776
3777
3778
3779 # Check whether --with-xpm was given.
3780 if test "${with_xpm+set}" = set; then :
3781 withval=$with_xpm;
3782 else
3783 with_xpm=yes
3784 fi
3785
3786
3787 # Check whether --with-jpeg was given.
3788 if test "${with_jpeg+set}" = set; then :
3789 withval=$with_jpeg;
3790 else
3791 with_jpeg=yes
3792 fi
3793
3794
3795 # Check whether --with-tiff was given.
3796 if test "${with_tiff+set}" = set; then :
3797 withval=$with_tiff;
3798 else
3799 with_tiff=yes
3800 fi
3801
3802
3803 # Check whether --with-gif was given.
3804 if test "${with_gif+set}" = set; then :
3805 withval=$with_gif;
3806 else
3807 with_gif=yes
3808 fi
3809
3810
3811 # Check whether --with-png was given.
3812 if test "${with_png+set}" = set; then :
3813 withval=$with_png;
3814 else
3815 with_png=yes
3816 fi
3817
3818
3819 # Check whether --with-rsvg was given.
3820 if test "${with_rsvg+set}" = set; then :
3821 withval=$with_rsvg;
3822 else
3823 with_rsvg=yes
3824 fi
3825
3826
3827 # Check whether --with-xml2 was given.
3828 if test "${with_xml2+set}" = set; then :
3829 withval=$with_xml2;
3830 else
3831 with_xml2=yes
3832 fi
3833
3834
3835 # Check whether --with-imagemagick was given.
3836 if test "${with_imagemagick+set}" = set; then :
3837 withval=$with_imagemagick;
3838 else
3839 with_imagemagick=yes
3840 fi
3841
3842
3843
3844 # Check whether --with-xft was given.
3845 if test "${with_xft+set}" = set; then :
3846 withval=$with_xft;
3847 else
3848 with_xft=yes
3849 fi
3850
3851
3852 # Check whether --with-libotf was given.
3853 if test "${with_libotf+set}" = set; then :
3854 withval=$with_libotf;
3855 else
3856 with_libotf=yes
3857 fi
3858
3859
3860 # Check whether --with-m17n-flt was given.
3861 if test "${with_m17n_flt+set}" = set; then :
3862 withval=$with_m17n_flt;
3863 else
3864 with_m17n_flt=yes
3865 fi
3866
3867
3868
3869 # Check whether --with-toolkit-scroll-bars was given.
3870 if test "${with_toolkit_scroll_bars+set}" = set; then :
3871 withval=$with_toolkit_scroll_bars;
3872 else
3873 with_toolkit_scroll_bars=yes
3874 fi
3875
3876
3877 # Check whether --with-xaw3d was given.
3878 if test "${with_xaw3d+set}" = set; then :
3879 withval=$with_xaw3d;
3880 else
3881 with_xaw3d=yes
3882 fi
3883
3884
3885 # Check whether --with-xim was given.
3886 if test "${with_xim+set}" = set; then :
3887 withval=$with_xim;
3888 else
3889 with_xim=yes
3890 fi
3891
3892
3893 # Check whether --with-ns was given.
3894 if test "${with_ns+set}" = set; then :
3895 withval=$with_ns;
3896 else
3897 with_ns=no
3898 fi
3899
3900
3901
3902 # Check whether --with-gpm was given.
3903 if test "${with_gpm+set}" = set; then :
3904 withval=$with_gpm;
3905 else
3906 with_gpm=yes
3907 fi
3908
3909
3910 # Check whether --with-dbus was given.
3911 if test "${with_dbus+set}" = set; then :
3912 withval=$with_dbus;
3913 else
3914 with_dbus=yes
3915 fi
3916
3917
3918 # Check whether --with-gconf was given.
3919 if test "${with_gconf+set}" = set; then :
3920 withval=$with_gconf;
3921 else
3922 with_gconf=yes
3923 fi
3924
3925
3926 # Check whether --with-selinux was given.
3927 if test "${with_selinux+set}" = set; then :
3928 withval=$with_selinux;
3929 else
3930 with_selinux=yes
3931 fi
3932
3933
3934 # Check whether --with-gnutls was given.
3935 if test "${with_gnutls+set}" = set; then :
3936 withval=$with_gnutls;
3937 else
3938 with_gnutls=yes
3939 fi
3940
3941
3942 ## For the times when you want to build Emacs but don't have
3943 ## a suitable makeinfo, and can live without the manuals.
3944
3945 # Check whether --with-makeinfo was given.
3946 if test "${with_makeinfo+set}" = set; then :
3947 withval=$with_makeinfo;
3948 else
3949 with_makeinfo=yes
3950 fi
3951
3952
3953 ## This is an option because I do not know if all info/man support
3954 ## compressed files, nor how to test if they do so.
3955
3956 # Check whether --with-compress-info was given.
3957 if test "${with_compress_info+set}" = set; then :
3958 withval=$with_compress_info;
3959 else
3960 with_compress_info=yes
3961 fi
3962
3963 if test $with_compress_info = yes; then
3964 GZIP_INFO=yes
3965 else
3966 GZIP_INFO=
3967 fi
3968
3969
3970
3971 # Check whether --with-pkg-config-prog was given.
3972 if test "${with_pkg_config_prog+set}" = set; then :
3973 withval=$with_pkg_config_prog;
3974 fi
3975
3976 if test "X${with_pkg_config_prog}" != X; then
3977 if test "${with_pkg_config_prog}" != yes; then
3978 PKG_CONFIG="${with_pkg_config_prog}"
3979 fi
3980 fi
3981
3982 CRT_DIR=
3983
3984 # Check whether --with-crt-dir was given.
3985 if test "${with_crt_dir+set}" = set; then :
3986 withval=$with_crt_dir;
3987 fi
3988
3989 CRT_DIR="${with_crt_dir}"
3990
3991
3992 # Check whether --with-gameuser was given.
3993 if test "${with_gameuser+set}" = set; then :
3994 withval=$with_gameuser;
3995 fi
3996
3997 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3998 && gameuser="${with_gameuser}"
3999 test "X$gameuser" = X && gameuser=games
4000
4001
4002 # Check whether --with-gnustep-conf was given.
4003 if test "${with_gnustep_conf+set}" = set; then :
4004 withval=$with_gnustep_conf;
4005 fi
4006
4007 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
4008 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
4009 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
4010 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
4011
4012 # Check whether --enable-ns-self-contained was given.
4013 if test "${enable_ns_self_contained+set}" = set; then :
4014 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
4015 else
4016 EN_NS_SELF_CONTAINED=yes
4017 fi
4018
4019
4020 # Check whether --enable-asserts was given.
4021 if test "${enable_asserts+set}" = set; then :
4022 enableval=$enable_asserts; USE_XASSERTS=$enableval
4023 else
4024 USE_XASSERTS=no
4025 fi
4026
4027
4028 # Check whether --enable-maintainer-mode was given.
4029 if test "${enable_maintainer_mode+set}" = set; then :
4030 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4031 else
4032 USE_MAINTAINER_MODE=yes
4033 fi
4034
4035 if test $USE_MAINTAINER_MODE = yes; then
4036 MAINT=
4037 else
4038 MAINT=#
4039 fi
4040
4041
4042 # Check whether --enable-locallisppath was given.
4043 if test "${enable_locallisppath+set}" = set; then :
4044 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
4045 locallisppath=
4046 elif test "${enableval}" != "yes"; then
4047 locallisppath=${enableval}
4048 fi
4049 fi
4050
4051
4052 # Check whether --enable-checking was given.
4053 if test "${enable_checking+set}" = set; then :
4054 enableval=$enable_checking; ac_checking_flags="${enableval}"
4055 fi
4056
4057 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
4058 for check in $ac_checking_flags
4059 do
4060 case $check in
4061 # these set all the flags to specific states
4062 yes) ac_enable_checking=1 ;;
4063 no) ac_enable_checking= ;
4064 ac_gc_check_stringbytes= ;
4065 ac_gc_check_string_overrun= ;
4066 ac_gc_check_string_free_list= ;
4067 ac_xmalloc_overrun= ;
4068 ac_gc_check_cons_list= ;;
4069 all) ac_enable_checking=1 ;
4070 ac_gc_check_stringbytes=1 ;
4071 ac_gc_check_string_overrun=1 ;
4072 ac_gc_check_string_free_list=1 ;
4073 ac_xmalloc_overrun=1 ;
4074 ac_gc_check_cons_list=1 ;;
4075 # these enable particular checks
4076 stringbytes) ac_gc_check_stringbytes=1 ;;
4077 stringoverrun) ac_gc_check_string_overrun=1 ;;
4078 stringfreelist) ac_gc_check_string_free_list=1 ;;
4079 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4080 conslist) ac_gc_check_cons_list=1 ;;
4081 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
4082 esac
4083 done
4084 IFS="$ac_save_IFS"
4085
4086 if test x$ac_enable_checking != x ; then
4087
4088 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4089
4090 fi
4091 if test x$ac_gc_check_stringbytes != x ; then
4092
4093 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4094
4095 fi
4096 if test x$ac_gc_check_stringoverrun != x ; then
4097
4098 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4099
4100 fi
4101 if test x$ac_gc_check_string_free_list != x ; then
4102
4103 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4104
4105 fi
4106 if test x$ac_xmalloc_overrun != x ; then
4107
4108 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4109
4110 fi
4111 if test x$ac_gc_check_cons_list != x ; then
4112
4113 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4114
4115 fi
4116
4117 # Check whether --enable-use-lisp-union-type was given.
4118 if test "${enable_use_lisp_union_type+set}" = set; then :
4119 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4120
4121 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4122
4123 fi
4124 fi
4125
4126
4127
4128 # Check whether --enable-profiling was given.
4129 if test "${enable_profiling+set}" = set; then :
4130 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4131 fi
4132
4133 if test x$ac_enable_profiling != x ; then
4134 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4135 else
4136 PROFILING_CFLAGS=
4137 fi
4138
4139
4140 # Check whether --enable-autodepend was given.
4141 if test "${enable_autodepend+set}" = set; then :
4142 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4143 else
4144 ac_enable_autodepend=yes
4145 fi
4146
4147
4148 #### Make srcdir absolute, if it isn't already. It's important to
4149 #### avoid running the path through pwd unnecessarily, since pwd can
4150 #### give you automounter prefixes, which can go away. We do all this
4151 #### so Emacs can find its files when run uninstalled.
4152 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4153 unset CDPATH
4154 case "${srcdir}" in
4155 /* ) ;;
4156 . )
4157 ## We may be able to use the $PWD environment variable to make this
4158 ## absolute. But sometimes PWD is inaccurate.
4159 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4160 ## but that tested only for a well-formed and valid PWD,
4161 ## it did not object when PWD was well-formed and valid but just wrong.
4162 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4163 then
4164 srcdir="$PWD"
4165 else
4166 srcdir="`(cd ${srcdir}; pwd)`"
4167 fi
4168 ;;
4169 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4170 esac
4171
4172 #### Check if the source directory already has a configured system in it.
4173 if test `pwd` != `(cd ${srcdir} && pwd)` \
4174 && test -f "${srcdir}/src/config.h" ; then
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4176 as a build directory right now; it has been configured in its own
4177 right. To configure in another directory as well, you MUST
4178 use GNU make. If you do not have GNU make, then you must
4179 now do \`make distclean' in ${srcdir},
4180 and then run $0 again." >&5
4181 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4182 as a build directory right now; it has been configured in its own
4183 right. To configure in another directory as well, you MUST
4184 use GNU make. If you do not have GNU make, then you must
4185 now do \`make distclean' in ${srcdir},
4186 and then run $0 again." >&2;}
4187 fi
4188
4189 #### Given the configuration name, set machfile and opsysfile to the
4190 #### names of the m/*.h and s/*.h files we should use.
4191
4192 ### Canonicalize the configuration name.
4193
4194 # Make sure we can run config.sub.
4195 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4196 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4197
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4199 $as_echo_n "checking build system type... " >&6; }
4200 if test "${ac_cv_build+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 ac_build_alias=$build_alias
4204 test "x$ac_build_alias" = x &&
4205 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4206 test "x$ac_build_alias" = x &&
4207 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4208 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4209 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4210
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4213 $as_echo "$ac_cv_build" >&6; }
4214 case $ac_cv_build in
4215 *-*-*) ;;
4216 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4217 esac
4218 build=$ac_cv_build
4219 ac_save_IFS=$IFS; IFS='-'
4220 set x $ac_cv_build
4221 shift
4222 build_cpu=$1
4223 build_vendor=$2
4224 shift; shift
4225 # Remember, the first character of IFS is used to create $*,
4226 # except with old shells:
4227 build_os=$*
4228 IFS=$ac_save_IFS
4229 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4230
4231
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4233 $as_echo_n "checking host system type... " >&6; }
4234 if test "${ac_cv_host+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4236 else
4237 if test "x$host_alias" = x; then
4238 ac_cv_host=$ac_cv_build
4239 else
4240 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4241 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4242 fi
4243
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4246 $as_echo "$ac_cv_host" >&6; }
4247 case $ac_cv_host in
4248 *-*-*) ;;
4249 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4250 esac
4251 host=$ac_cv_host
4252 ac_save_IFS=$IFS; IFS='-'
4253 set x $ac_cv_host
4254 shift
4255 host_cpu=$1
4256 host_vendor=$2
4257 shift; shift
4258 # Remember, the first character of IFS is used to create $*,
4259 # except with old shells:
4260 host_os=$*
4261 IFS=$ac_save_IFS
4262 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4263
4264
4265 canonical=$host
4266 configuration=${host_alias-${build_alias-$host}}
4267
4268
4269
4270 ### If you add support for a new configuration, add code to this
4271 ### switch statement to recognize your configuration name and select
4272 ### the appropriate operating system and machine description files.
4273
4274 ### You would hope that you could choose an m/*.h file pretty much
4275 ### based on the machine portion of the configuration name, and an s/*.h
4276 ### file based on the operating system portion. However, it turns out
4277 ### that each m/*.h file is pretty manufacturer-specific - for
4278 ### example mips.h is MIPS
4279 ### So we basically have to have a special case for each
4280 ### configuration name.
4281 ###
4282 ### As far as handling version numbers on operating systems is
4283 ### concerned, make sure things will fail in a fixable way. If
4284 ### /etc/MACHINES doesn't say anything about version numbers, be
4285 ### prepared to handle anything reasonably. If version numbers
4286 ### matter, be sure /etc/MACHINES says something about it.
4287
4288 machine='' opsys='' unported=no
4289 case "${canonical}" in
4290
4291 ## GNU/Linux ports
4292 *-*-linux-gnu*)
4293 opsys=gnu-linux
4294 case ${canonical} in
4295 alpha*) machine=alpha ;;
4296 s390-*) machine=ibms390 ;;
4297 s390x-*) machine=ibms390x ;;
4298 powerpc*) machine=macppc ;;
4299 sparc*) machine=sparc ;;
4300 ia64*) machine=ia64 ;;
4301 m68k*) machine=m68k ;;
4302 x86_64*) machine=amdx86-64 ;;
4303 esac
4304 ;;
4305
4306 ## FreeBSD ports
4307 *-*-freebsd* )
4308 opsys=freebsd
4309 case "${canonical}" in
4310 alpha*) machine=alpha ;;
4311 amd64-*|x86_64-*) machine=amdx86-64 ;;
4312 ia64-*) machine=ia64 ;;
4313 i[3456]86-*) machine=intel386 ;;
4314 powerpc-*) machine=macppc ;;
4315 sparc-*) machine=sparc ;;
4316 sparc64-*) machine=sparc ;;
4317 esac
4318 ;;
4319
4320 ## FreeBSD kernel + glibc based userland
4321 *-*-kfreebsd*gnu* )
4322 opsys=gnu-kfreebsd
4323 case "${canonical}" in
4324 alpha*) machine=alpha ;;
4325 amd64-*|x86_64-*) machine=amdx86-64 ;;
4326 ia64-*) machine=ia64 ;;
4327 i[3456]86-*) machine=intel386 ;;
4328 powerpc-*) machine=macppc ;;
4329 sparc-*) machine=sparc ;;
4330 sparc64-*) machine=sparc ;;
4331 esac
4332 ;;
4333
4334 ## NetBSD ports
4335 *-*-netbsd* )
4336 opsys=netbsd
4337 case "${canonical}" in
4338 alpha*) machine=alpha ;;
4339 x86_64-*) machine=amdx86-64 ;;
4340 i[3456]86-*) machine=intel386 ;;
4341 m68k-*) machine=m68k ;;
4342 powerpc-*) machine=macppc ;;
4343 sparc*-) machine=sparc ;;
4344 vax-*) machine=vax ;;
4345 esac
4346 ;;
4347
4348 ## OpenBSD ports
4349 *-*-openbsd* )
4350 opsys=openbsd
4351 case "${canonical}" in
4352 alpha*) machine=alpha ;;
4353 x86_64-*) machine=amdx86-64 ;;
4354 i386-*) machine=intel386 ;;
4355 powerpc-*) machine=macppc ;;
4356 sparc*) machine=sparc ;;
4357 vax-*) machine=vax ;;
4358 esac
4359 ;;
4360
4361 ## Apple Darwin / Mac OS X
4362 *-apple-darwin* )
4363 case "${canonical}" in
4364 i[3456]86-* ) machine=intel386 ;;
4365 powerpc-* ) machine=macppc ;;
4366 x86_64-* ) machine=amdx86-64 ;;
4367 * ) unported=yes ;;
4368 esac
4369 opsys=darwin
4370 # Define CPP as follows to make autoconf work correctly.
4371 CPP="${CC-cc} -E -no-cpp-precomp"
4372 # Use fink packages if available.
4373 if test -d /sw/include && test -d /sw/lib; then
4374 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4375 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4376 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4377 fi
4378 ;;
4379
4380 ## HP 9000 series 700 and 800, running HP/UX
4381 hppa*-hp-hpux10.2* )
4382 opsys=hpux10-20
4383 ;;
4384 hppa*-hp-hpux1[1-9]* )
4385 opsys=hpux11
4386 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4387 ;;
4388
4389 ia64*-hp-hpux1[1-9]* )
4390 machine=hp800 opsys=hpux11
4391 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4392 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4393 CANNOT_DUMP=yes
4394 ;;
4395
4396 hppa*-*-linux-gnu* )
4397 machine=hp800 opsys=gnu-linux
4398 ;;
4399
4400 ## IBM machines
4401 rs6000-ibm-aix4.[23]* )
4402 machine=ibmrs6000 opsys=aix4-2
4403 ;;
4404 powerpc-ibm-aix4.[23]* )
4405 machine=ibmrs6000 opsys=aix4-2
4406 ;;
4407 rs6000-ibm-aix[56]* )
4408 machine=ibmrs6000 opsys=aix4-2
4409 ;;
4410 powerpc-ibm-aix[56]* )
4411 machine=ibmrs6000 opsys=aix4-2
4412 ;;
4413
4414 ## Silicon Graphics machines
4415 ## Iris 4D
4416 mips-sgi-irix6.5 )
4417 machine=iris4d opsys=irix6-5
4418 # Without defining _LANGUAGE_C, things get masked out in the headers
4419 # so that, for instance, grepping for `free' in stdlib.h fails and
4420 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4421 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4422 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4423 ;;
4424
4425 ## Suns
4426 *-sun-solaris* \
4427 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4428 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4429 case "${canonical}" in
4430 i[3456]86-*-* ) machine=intel386 ;;
4431 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4432 sparc* ) machine=sparc ;;
4433 * ) unported=yes ;;
4434 esac
4435 case "${canonical}" in
4436 *-sunos5.6* | *-solaris2.6* )
4437 opsys=sol2-6
4438 NON_GNU_CPP=/usr/ccs/lib/cpp
4439 RANLIB="ar -ts"
4440 ;;
4441 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4442 opsys=sol2-6
4443 emacs_check_sunpro_c=yes
4444 NON_GNU_CPP=/usr/ccs/lib/cpp
4445 ;;
4446 *-sunos5* | *-solaris* )
4447 opsys=sol2-10
4448 emacs_check_sunpro_c=yes
4449 NON_GNU_CPP=/usr/ccs/lib/cpp
4450 ;;
4451 esac
4452 ## Watch out for a compiler that we know will not work.
4453 case "${canonical}" in
4454 *-solaris* | *-sunos5* )
4455 if [ "x$CC" = x/usr/ucb/cc ]; then
4456 ## /usr/ucb/cc doesn't work;
4457 ## we should find some other compiler that does work.
4458 unset CC
4459 fi
4460 ;;
4461 *) ;;
4462 esac
4463 ;;
4464
4465 ## Intel 386 machines where we don't care about the manufacturer.
4466 i[3456]86-*-* )
4467 machine=intel386
4468 case "${canonical}" in
4469 *-cygwin ) opsys=cygwin ;;
4470 *-darwin* ) opsys=darwin
4471 CPP="${CC-cc} -E -no-cpp-precomp"
4472 ;;
4473 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4474 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4475 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4476 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4477 esac
4478 ;;
4479
4480 * )
4481 unported=yes
4482 ;;
4483 esac
4484
4485 ### If the code above didn't choose an operating system, just choose
4486 ### an operating system based on the configuration name. You really
4487 ### only want to use this when you have no idea what the right
4488 ### operating system is; if you know what operating systems a machine
4489 ### runs, it's cleaner to make it explicit in the case statement
4490 ### above.
4491 if test x"${opsys}" = x; then
4492 case "${canonical}" in
4493 *-gnu* ) opsys=gnu ;;
4494 * )
4495 unported=yes
4496 ;;
4497 esac
4498 fi
4499
4500
4501
4502 if test $unported = yes; then
4503 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
4504 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4505 fi
4506
4507 if test -n "$machine"; then
4508 machfile="m/${machine}.h"
4509 else
4510 machfile=
4511 fi
4512 opsysfile="s/${opsys}.h"
4513
4514
4515 #### Choose a compiler.
4516 test -n "$CC" && cc_specified=yes
4517
4518 # Save the value of CFLAGS that the user specified.
4519 SPECIFIED_CFLAGS="$CFLAGS"
4520
4521 ac_ext=c
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 if test -n "$CC"; then
4535 ac_cv_prog_CC="$CC" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 CC=$ac_cv_prog_CC
4555 if test -n "$CC"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4557 $as_echo "$CC" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564 fi
4565 if test -z "$ac_cv_prog_CC"; then
4566 ac_ct_CC=$CC
4567 # Extract the first word of "gcc", so it can be a program name with args.
4568 set dummy gcc; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -n "$ac_ct_CC"; then
4575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584 ac_cv_prog_ac_ct_CC="gcc"
4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588 done
4589 done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4595 if test -n "$ac_ct_CC"; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4597 $as_echo "$ac_ct_CC" >&6; }
4598 else
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603 if test "x$ac_ct_CC" = x; then
4604 CC=""
4605 else
4606 case $cross_compiling:$ac_tool_warned in
4607 yes:)
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610 ac_tool_warned=yes ;;
4611 esac
4612 CC=$ac_ct_CC
4613 fi
4614 else
4615 CC="$ac_cv_prog_CC"
4616 fi
4617
4618 if test -z "$CC"; then
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4621 set dummy ${ac_tool_prefix}cc; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="${ac_tool_prefix}cc"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641 done
4642 done
4643 IFS=$as_save_IFS
4644
4645 fi
4646 fi
4647 CC=$ac_cv_prog_CC
4648 if test -n "$CC"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 $as_echo "$CC" >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4654 fi
4655
4656
4657 fi
4658 fi
4659 if test -z "$CC"; then
4660 # Extract the first word of "cc", so it can be a program name with args.
4661 set dummy cc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 else
4670 ac_prog_rejected=no
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4679 ac_prog_rejected=yes
4680 continue
4681 fi
4682 ac_cv_prog_CC="cc"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4685 fi
4686 done
4687 done
4688 IFS=$as_save_IFS
4689
4690 if test $ac_prog_rejected = yes; then
4691 # We found a bogon in the path, so make sure we never use it.
4692 set dummy $ac_cv_prog_CC
4693 shift
4694 if test $# != 0; then
4695 # We chose a different compiler from the bogus one.
4696 # However, it has the same basename, so the bogon will be chosen
4697 # first if we set CC to just the basename; use the full file name.
4698 shift
4699 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4700 fi
4701 fi
4702 fi
4703 fi
4704 CC=$ac_cv_prog_CC
4705 if test -n "$CC"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4707 $as_echo "$CC" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713
4714 fi
4715 if test -z "$CC"; then
4716 if test -n "$ac_tool_prefix"; then
4717 for ac_prog in cl.exe
4718 do
4719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_CC+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 if test -n "$CC"; then
4727 ac_cv_prog_CC="$CC" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4739 fi
4740 done
4741 done
4742 IFS=$as_save_IFS
4743
4744 fi
4745 fi
4746 CC=$ac_cv_prog_CC
4747 if test -n "$CC"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4749 $as_echo "$CC" >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4753 fi
4754
4755
4756 test -n "$CC" && break
4757 done
4758 fi
4759 if test -z "$CC"; then
4760 ac_ct_CC=$CC
4761 for ac_prog in cl.exe
4762 do
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy $ac_prog; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$ac_ct_CC"; then
4771 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4775 do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_ac_ct_CC="$ac_prog"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784 done
4785 done
4786 IFS=$as_save_IFS
4787
4788 fi
4789 fi
4790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4791 if test -n "$ac_ct_CC"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4793 $as_echo "$ac_ct_CC" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4797 fi
4798
4799
4800 test -n "$ac_ct_CC" && break
4801 done
4802
4803 if test "x$ac_ct_CC" = x; then
4804 CC=""
4805 else
4806 case $cross_compiling:$ac_tool_warned in
4807 yes:)
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810 ac_tool_warned=yes ;;
4811 esac
4812 CC=$ac_ct_CC
4813 fi
4814 fi
4815
4816 fi
4817
4818
4819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4821 as_fn_error "no acceptable C compiler found in \$PATH
4822 See \`config.log' for more details." "$LINENO" 5; }
4823
4824 # Provide some information about the compiler.
4825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4826 set X $ac_compile
4827 ac_compiler=$2
4828 for ac_option in --version -v -V -qversion; do
4829 { { ac_try="$ac_compiler $ac_option >&5"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4835 $as_echo "$ac_try_echo"; } >&5
4836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4837 ac_status=$?
4838 if test -s conftest.err; then
4839 sed '10a\
4840 ... rest of stderr output deleted ...
4841 10q' conftest.err >conftest.er1
4842 cat conftest.er1 >&5
4843 fi
4844 rm -f conftest.er1 conftest.err
4845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }
4847 done
4848
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851
4852 int
4853 main ()
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 ac_clean_files_save=$ac_clean_files
4861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4862 # Try to create an executable without -o first, disregard a.out.
4863 # It will help us diagnose broken compilers, and finding out an intuition
4864 # of exeext.
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4866 $as_echo_n "checking whether the C compiler works... " >&6; }
4867 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4868
4869 # The possible output files:
4870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4871
4872 ac_rmfiles=
4873 for ac_file in $ac_files
4874 do
4875 case $ac_file in
4876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4878 esac
4879 done
4880 rm -f $ac_rmfiles
4881
4882 if { { ac_try="$ac_link_default"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4888 $as_echo "$ac_try_echo"; } >&5
4889 (eval "$ac_link_default") 2>&5
4890 ac_status=$?
4891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892 test $ac_status = 0; }; then :
4893 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4895 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4896 # so that the user can short-circuit this test for compilers unknown to
4897 # Autoconf.
4898 for ac_file in $ac_files ''
4899 do
4900 test -f "$ac_file" || continue
4901 case $ac_file in
4902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4903 ;;
4904 [ab].out )
4905 # We found the default executable, but exeext='' is most
4906 # certainly right.
4907 break;;
4908 *.* )
4909 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4910 then :; else
4911 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4912 fi
4913 # We set ac_cv_exeext here because the later test for it is not
4914 # safe: cross compilers may not add the suffix if given an `-o'
4915 # argument, so we may need to know it at that point already.
4916 # Even if this section looks crufty: it has the advantage of
4917 # actually working.
4918 break;;
4919 * )
4920 break;;
4921 esac
4922 done
4923 test "$ac_cv_exeext" = no && ac_cv_exeext=
4924
4925 else
4926 ac_file=''
4927 fi
4928 if test -z "$ac_file"; then :
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4931 $as_echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4933
4934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4936 { as_fn_set_status 77
4937 as_fn_error "C compiler cannot create executables
4938 See \`config.log' for more details." "$LINENO" 5; }; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4941 $as_echo "yes" >&6; }
4942 fi
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4944 $as_echo_n "checking for C compiler default output file name... " >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4946 $as_echo "$ac_file" >&6; }
4947 ac_exeext=$ac_cv_exeext
4948
4949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4950 ac_clean_files=$ac_clean_files_save
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4952 $as_echo_n "checking for suffix of executables... " >&6; }
4953 if { { ac_try="$ac_link"
4954 case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4959 $as_echo "$ac_try_echo"; } >&5
4960 (eval "$ac_link") 2>&5
4961 ac_status=$?
4962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4963 test $ac_status = 0; }; then :
4964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4966 # work properly (i.e., refer to `conftest.exe'), while it won't with
4967 # `rm'.
4968 for ac_file in conftest.exe conftest conftest.*; do
4969 test -f "$ac_file" || continue
4970 case $ac_file in
4971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4973 break;;
4974 * ) break;;
4975 esac
4976 done
4977 else
4978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4980 as_fn_error "cannot compute suffix of executables: cannot compile and link
4981 See \`config.log' for more details." "$LINENO" 5; }
4982 fi
4983 rm -f conftest conftest$ac_cv_exeext
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4985 $as_echo "$ac_cv_exeext" >&6; }
4986
4987 rm -f conftest.$ac_ext
4988 EXEEXT=$ac_cv_exeext
4989 ac_exeext=$EXEEXT
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <stdio.h>
4993 int
4994 main ()
4995 {
4996 FILE *f = fopen ("conftest.out", "w");
4997 return ferror (f) || fclose (f) != 0;
4998
4999 ;
5000 return 0;
5001 }
5002 _ACEOF
5003 ac_clean_files="$ac_clean_files conftest.out"
5004 # Check that the compiler produces executables we can run. If not, either
5005 # the compiler is broken, or we cross compile.
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5007 $as_echo_n "checking whether we are cross compiling... " >&6; }
5008 if test "$cross_compiling" != yes; then
5009 { { ac_try="$ac_link"
5010 case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013 esac
5014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5015 $as_echo "$ac_try_echo"; } >&5
5016 (eval "$ac_link") 2>&5
5017 ac_status=$?
5018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5019 test $ac_status = 0; }
5020 if { ac_try='./conftest$ac_cv_exeext'
5021 { { case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5026 $as_echo "$ac_try_echo"; } >&5
5027 (eval "$ac_try") 2>&5
5028 ac_status=$?
5029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5030 test $ac_status = 0; }; }; then
5031 cross_compiling=no
5032 else
5033 if test "$cross_compiling" = maybe; then
5034 cross_compiling=yes
5035 else
5036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5038 as_fn_error "cannot run C compiled programs.
5039 If you meant to cross compile, use \`--host'.
5040 See \`config.log' for more details." "$LINENO" 5; }
5041 fi
5042 fi
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5045 $as_echo "$cross_compiling" >&6; }
5046
5047 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5048 ac_clean_files=$ac_clean_files_save
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5050 $as_echo_n "checking for suffix of object files... " >&6; }
5051 if test "${ac_cv_objext+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053 else
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056
5057 int
5058 main ()
5059 {
5060
5061 ;
5062 return 0;
5063 }
5064 _ACEOF
5065 rm -f conftest.o conftest.obj
5066 if { { ac_try="$ac_compile"
5067 case "(($ac_try" in
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073 (eval "$ac_compile") 2>&5
5074 ac_status=$?
5075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076 test $ac_status = 0; }; then :
5077 for ac_file in conftest.o conftest.obj conftest.*; do
5078 test -f "$ac_file" || continue;
5079 case $ac_file in
5080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5082 break;;
5083 esac
5084 done
5085 else
5086 $as_echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5091 as_fn_error "cannot compute suffix of object files: cannot compile
5092 See \`config.log' for more details." "$LINENO" 5; }
5093 fi
5094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5095 fi
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5097 $as_echo "$ac_cv_objext" >&6; }
5098 OBJEXT=$ac_cv_objext
5099 ac_objext=$OBJEXT
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5102 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107
5108 int
5109 main ()
5110 {
5111 #ifndef __GNUC__
5112 choke me
5113 #endif
5114
5115 ;
5116 return 0;
5117 }
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 ac_compiler_gnu=yes
5121 else
5122 ac_compiler_gnu=no
5123 fi
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5126
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5130 if test $ac_compiler_gnu = yes; then
5131 GCC=yes
5132 else
5133 GCC=
5134 fi
5135 ac_test_CFLAGS=${CFLAGS+set}
5136 ac_save_CFLAGS=$CFLAGS
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5139 if test "${ac_cv_prog_cc_g+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 ac_save_c_werror_flag=$ac_c_werror_flag
5143 ac_c_werror_flag=yes
5144 ac_cv_prog_cc_g=no
5145 CFLAGS="-g"
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148
5149 int
5150 main ()
5151 {
5152
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_prog_cc_g=yes
5159 else
5160 CFLAGS=""
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163
5164 int
5165 main ()
5166 {
5167
5168 ;
5169 return 0;
5170 }
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173
5174 else
5175 ac_c_werror_flag=$ac_save_c_werror_flag
5176 CFLAGS="-g"
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179
5180 int
5181 main ()
5182 {
5183
5184 ;
5185 return 0;
5186 }
5187 _ACEOF
5188 if ac_fn_c_try_compile "$LINENO"; then :
5189 ac_cv_prog_cc_g=yes
5190 fi
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 fi
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 ac_c_werror_flag=$ac_save_c_werror_flag
5197 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5199 $as_echo "$ac_cv_prog_cc_g" >&6; }
5200 if test "$ac_test_CFLAGS" = set; then
5201 CFLAGS=$ac_save_CFLAGS
5202 elif test $ac_cv_prog_cc_g = yes; then
5203 if test "$GCC" = yes; then
5204 CFLAGS="-g -O2"
5205 else
5206 CFLAGS="-g"
5207 fi
5208 else
5209 if test "$GCC" = yes; then
5210 CFLAGS="-O2"
5211 else
5212 CFLAGS=
5213 fi
5214 fi
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5217 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 ac_cv_prog_cc_c89=no
5221 ac_save_CC=$CC
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5224 #include <stdarg.h>
5225 #include <stdio.h>
5226 #include <sys/types.h>
5227 #include <sys/stat.h>
5228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5229 struct buf { int x; };
5230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5231 static char *e (p, i)
5232 char **p;
5233 int i;
5234 {
5235 return p[i];
5236 }
5237 static char *f (char * (*g) (char **, int), char **p, ...)
5238 {
5239 char *s;
5240 va_list v;
5241 va_start (v,p);
5242 s = g (p, va_arg (v,int));
5243 va_end (v);
5244 return s;
5245 }
5246
5247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5248 function prototypes and stuff, but not '\xHH' hex character constants.
5249 These don't provoke an error unfortunately, instead are silently treated
5250 as 'x'. The following induces an error, until -std is added to get
5251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5252 array size at least. It's necessary to write '\x00'==0 to get something
5253 that's true only with -std. */
5254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5255
5256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5257 inside strings and character constants. */
5258 #define FOO(x) 'x'
5259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5260
5261 int test (int i, double x);
5262 struct s1 {int (*f) (int a);};
5263 struct s2 {int (*f) (double a);};
5264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5265 int argc;
5266 char **argv;
5267 int
5268 main ()
5269 {
5270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5277 do
5278 CC="$ac_save_CC $ac_arg"
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_prog_cc_c89=$ac_arg
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext
5283 test "x$ac_cv_prog_cc_c89" != "xno" && break
5284 done
5285 rm -f conftest.$ac_ext
5286 CC=$ac_save_CC
5287
5288 fi
5289 # AC_CACHE_VAL
5290 case "x$ac_cv_prog_cc_c89" in
5291 x)
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5293 $as_echo "none needed" >&6; } ;;
5294 xno)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5296 $as_echo "unsupported" >&6; } ;;
5297 *)
5298 CC="$CC $ac_cv_prog_cc_c89"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5300 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5301 esac
5302 if test "x$ac_cv_prog_cc_c89" != xno; then :
5303
5304 fi
5305
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 DEPDIR="${am__leading_dot}deps"
5312
5313 ac_config_commands="$ac_config_commands depfiles"
5314
5315
5316 am_make=${MAKE-make}
5317 cat > confinc << 'END'
5318 am__doit:
5319 @echo this is the am__doit target
5320 .PHONY: am__doit
5321 END
5322 # If we don't find an include directive, just comment out the code.
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5324 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5325 am__include="#"
5326 am__quote=
5327 _am_result=none
5328 # First try GNU make style include.
5329 echo "include confinc" > confmf
5330 # Ignore all kinds of additional output from `make'.
5331 case `$am_make -s -f confmf 2> /dev/null` in #(
5332 *the\ am__doit\ target*)
5333 am__include=include
5334 am__quote=
5335 _am_result=GNU
5336 ;;
5337 esac
5338 # Now try BSD make style include.
5339 if test "$am__include" = "#"; then
5340 echo '.include "confinc"' > confmf
5341 case `$am_make -s -f confmf 2> /dev/null` in #(
5342 *the\ am__doit\ target*)
5343 am__include=.include
5344 am__quote="\""
5345 _am_result=BSD
5346 ;;
5347 esac
5348 fi
5349
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5352 $as_echo "$_am_result" >&6; }
5353 rm -f confinc confmf
5354
5355 # Check whether --enable-dependency-tracking was given.
5356 if test "${enable_dependency_tracking+set}" = set; then :
5357 enableval=$enable_dependency_tracking;
5358 fi
5359
5360 if test "x$enable_dependency_tracking" != xno; then
5361 am_depcomp="$ac_aux_dir/depcomp"
5362 AMDEPBACKSLASH='\'
5363 fi
5364 if test "x$enable_dependency_tracking" != xno; then
5365 AMDEP_TRUE=
5366 AMDEP_FALSE='#'
5367 else
5368 AMDEP_TRUE='#'
5369 AMDEP_FALSE=
5370 fi
5371
5372
5373
5374 depcc="$CC" am_compiler_list=
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5377 $as_echo_n "checking dependency style of $depcc... " >&6; }
5378 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5382 # We make a subdir and do the tests there. Otherwise we can end up
5383 # making bogus files that we don't know about and never remove. For
5384 # instance it was reported that on HP-UX the gcc test will end up
5385 # making a dummy file named `D' -- because `-MD' means `put the output
5386 # in D'.
5387 mkdir conftest.dir
5388 # Copy depcomp to subdir because otherwise we won't find it if we're
5389 # using a relative directory.
5390 cp "$am_depcomp" conftest.dir
5391 cd conftest.dir
5392 # We will build objects and dependencies in a subdirectory because
5393 # it helps to detect inapplicable dependency modes. For instance
5394 # both Tru64's cc and ICC support -MD to output dependencies as a
5395 # side effect of compilation, but ICC will put the dependencies in
5396 # the current directory while Tru64 will put them in the object
5397 # directory.
5398 mkdir sub
5399
5400 am_cv_CC_dependencies_compiler_type=none
5401 if test "$am_compiler_list" = ""; then
5402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5403 fi
5404 am__universal=false
5405 case " $depcc " in #(
5406 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5407 esac
5408
5409 for depmode in $am_compiler_list; do
5410 # Setup a source with many dependencies, because some compilers
5411 # like to wrap large dependency lists on column 80 (with \), and
5412 # we should not choose a depcomp mode which is confused by this.
5413 #
5414 # We need to recreate these files for each test, as the compiler may
5415 # overwrite some of them when testing with obscure command lines.
5416 # This happens at least with the AIX C compiler.
5417 : > sub/conftest.c
5418 for i in 1 2 3 4 5 6; do
5419 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5420 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5421 # Solaris 8's {/usr,}/bin/sh.
5422 touch sub/conftst$i.h
5423 done
5424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5425
5426 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5427 # mode. It turns out that the SunPro C++ compiler does not properly
5428 # handle `-M -o', and we need to detect this. Also, some Intel
5429 # versions had trouble with output in subdirs
5430 am__obj=sub/conftest.${OBJEXT-o}
5431 am__minus_obj="-o $am__obj"
5432 case $depmode in
5433 gcc)
5434 # This depmode causes a compiler race in universal mode.
5435 test "$am__universal" = false || continue
5436 ;;
5437 nosideeffect)
5438 # after this tag, mechanisms are not by side-effect, so they'll
5439 # only be used when explicitly requested
5440 if test "x$enable_dependency_tracking" = xyes; then
5441 continue
5442 else
5443 break
5444 fi
5445 ;;
5446 msvisualcpp | msvcmsys)
5447 # This compiler won't grok `-c -o', but also, the minuso test has
5448 # not run yet. These depmodes are late enough in the game, and
5449 # so weak that their functioning should not be impacted.
5450 am__obj=conftest.${OBJEXT-o}
5451 am__minus_obj=
5452 ;;
5453 none) break ;;
5454 esac
5455 if depmode=$depmode \
5456 source=sub/conftest.c object=$am__obj \
5457 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5458 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5459 >/dev/null 2>conftest.err &&
5460 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5462 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5464 # icc doesn't choke on unknown options, it will just issue warnings
5465 # or remarks (even with -Werror). So we grep stderr for any message
5466 # that says an option was ignored or not supported.
5467 # When given -MP, icc 7.0 and 7.1 complain thusly:
5468 # icc: Command line warning: ignoring option '-M'; no argument required
5469 # The diagnosis changed in icc 8.0:
5470 # icc: Command line remark: option '-MP' not supported
5471 if (grep 'ignoring option' conftest.err ||
5472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5473 am_cv_CC_dependencies_compiler_type=$depmode
5474 break
5475 fi
5476 fi
5477 done
5478
5479 cd ..
5480 rm -rf conftest.dir
5481 else
5482 am_cv_CC_dependencies_compiler_type=none
5483 fi
5484
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5487 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5488 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5489
5490 if
5491 test "x$enable_dependency_tracking" != xno \
5492 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5493 am__fastdepCC_TRUE=
5494 am__fastdepCC_FALSE='#'
5495 else
5496 am__fastdepCC_TRUE='#'
5497 am__fastdepCC_FALSE=
5498 fi
5499
5500
5501 if test "x$CC" != xcc; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5503 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5504 else
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5506 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5507 fi
5508 set dummy $CC; ac_cc=`$as_echo "$2" |
5509 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5510 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515
5516 int
5517 main ()
5518 {
5519
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 # Make sure it works both with $CC and with simple cc.
5525 # We do the test twice because some compilers refuse to overwrite an
5526 # existing .o file with -o, though they will create one.
5527 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5528 rm -f conftest2.*
5529 if { { case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532 esac
5533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5534 $as_echo "$ac_try_echo"; } >&5
5535 (eval "$ac_try") 2>&5
5536 ac_status=$?
5537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5538 test $ac_status = 0; } &&
5539 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542 esac
5543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5544 $as_echo "$ac_try_echo"; } >&5
5545 (eval "$ac_try") 2>&5
5546 ac_status=$?
5547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5548 test $ac_status = 0; };
5549 then
5550 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5551 if test "x$CC" != xcc; then
5552 # Test first that cc exists at all.
5553 if { ac_try='cc -c conftest.$ac_ext >&5'
5554 { { case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5559 $as_echo "$ac_try_echo"; } >&5
5560 (eval "$ac_try") 2>&5
5561 ac_status=$?
5562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5563 test $ac_status = 0; }; }; then
5564 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5565 rm -f conftest2.*
5566 if { { case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569 esac
5570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5571 $as_echo "$ac_try_echo"; } >&5
5572 (eval "$ac_try") 2>&5
5573 ac_status=$?
5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5575 test $ac_status = 0; } &&
5576 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578 *) ac_try_echo=$ac_try;;
5579 esac
5580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5581 $as_echo "$ac_try_echo"; } >&5
5582 (eval "$ac_try") 2>&5
5583 ac_status=$?
5584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5585 test $ac_status = 0; };
5586 then
5587 # cc works too.
5588 :
5589 else
5590 # cc exists but doesn't like -o.
5591 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5592 fi
5593 fi
5594 fi
5595 else
5596 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5597 fi
5598 rm -f core conftest*
5599
5600 fi
5601 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5603 $as_echo "yes" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5607
5608 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5609
5610 fi
5611
5612 # FIXME: we rely on the cache variable name because
5613 # there is no other way.
5614 set dummy $CC
5615 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5616 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5617 if test "$am_t" != yes; then
5618 # Losing compiler, so override with the script.
5619 # FIXME: It is wrong to rewrite CC.
5620 # But if we don't then we get into trouble of one sort or another.
5621 # A longer-term fix would be to have automake use am__CC in this case,
5622 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5623 CC="$am_aux_dir/compile $CC"
5624 fi
5625
5626
5627
5628 # Initialize gnulib right after verifying that the C compiler works.
5629 if test -n "$ac_tool_prefix"; then
5630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$RANLIB"; then
5638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651 done
5652 done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 RANLIB=$ac_cv_prog_RANLIB
5658 if test -n "$RANLIB"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5660 $as_echo "$RANLIB" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5666
5667 fi
5668 if test -z "$ac_cv_prog_RANLIB"; then
5669 ac_ct_RANLIB=$RANLIB
5670 # Extract the first word of "ranlib", so it can be a program name with args.
5671 set dummy ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677 if test -n "$ac_ct_RANLIB"; then
5678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_prog_ac_ct_RANLIB="ranlib"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5690 fi
5691 done
5692 done
5693 IFS=$as_save_IFS
5694
5695 fi
5696 fi
5697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5698 if test -n "$ac_ct_RANLIB"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5700 $as_echo "$ac_ct_RANLIB" >&6; }
5701 else
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5704 fi
5705
5706 if test "x$ac_ct_RANLIB" = x; then
5707 RANLIB=":"
5708 else
5709 case $cross_compiling:$ac_tool_warned in
5710 yes:)
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5714 esac
5715 RANLIB=$ac_ct_RANLIB
5716 fi
5717 else
5718 RANLIB="$ac_cv_prog_RANLIB"
5719 fi
5720
5721
5722 ac_ext=c
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5729 # On Suns, sometimes $CPP names a directory.
5730 if test -n "$CPP" && test -d "$CPP"; then
5731 CPP=
5732 fi
5733 if test -z "$CPP"; then
5734 if test "${ac_cv_prog_CPP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5739 do
5740 ac_preproc_ok=false
5741 for ac_c_preproc_warn_flag in '' yes
5742 do
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #ifdef __STDC__
5752 # include <limits.h>
5753 #else
5754 # include <assert.h>
5755 #endif
5756 Syntax error
5757 _ACEOF
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5759
5760 else
5761 # Broken: fails on valid input.
5762 continue
5763 fi
5764 rm -f conftest.err conftest.$ac_ext
5765
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5771 _ACEOF
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5774 continue
5775 else
5776 # Passes both tests.
5777 ac_preproc_ok=:
5778 break
5779 fi
5780 rm -f conftest.err conftest.$ac_ext
5781
5782 done
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then :
5786 break
5787 fi
5788
5789 done
5790 ac_cv_prog_CPP=$CPP
5791
5792 fi
5793 CPP=$ac_cv_prog_CPP
5794 else
5795 ac_cv_prog_CPP=$CPP
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5798 $as_echo "$CPP" >&6; }
5799 ac_preproc_ok=false
5800 for ac_c_preproc_warn_flag in '' yes
5801 do
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #ifdef __STDC__
5811 # include <limits.h>
5812 #else
5813 # include <assert.h>
5814 #endif
5815 Syntax error
5816 _ACEOF
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5818
5819 else
5820 # Broken: fails on valid input.
5821 continue
5822 fi
5823 rm -f conftest.err conftest.$ac_ext
5824
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5830 _ACEOF
5831 if ac_fn_c_try_cpp "$LINENO"; then :
5832 # Broken: success on invalid input.
5833 continue
5834 else
5835 # Passes both tests.
5836 ac_preproc_ok=:
5837 break
5838 fi
5839 rm -f conftest.err conftest.$ac_ext
5840
5841 done
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then :
5845
5846 else
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." "$LINENO" 5; }
5851 fi
5852
5853 ac_ext=c
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858
5859
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5861 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5862 if test "${ac_cv_path_GREP+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -z "$GREP"; then
5866 ac_path_GREP_found=false
5867 # Loop through the user's path and test for each of PROGNAME-LIST
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_prog in grep ggrep; do
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5877 # Check for GNU ac_path_GREP and select it if it is found.
5878 # Check for GNU $ac_path_GREP
5879 case `"$ac_path_GREP" --version 2>&1` in
5880 *GNU*)
5881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5882 *)
5883 ac_count=0
5884 $as_echo_n 0123456789 >"conftest.in"
5885 while :
5886 do
5887 cat "conftest.in" "conftest.in" >"conftest.tmp"
5888 mv "conftest.tmp" "conftest.in"
5889 cp "conftest.in" "conftest.nl"
5890 $as_echo 'GREP' >> "conftest.nl"
5891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5893 as_fn_arith $ac_count + 1 && ac_count=$as_val
5894 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5895 # Best one so far, save it but keep looking for a better one
5896 ac_cv_path_GREP="$ac_path_GREP"
5897 ac_path_GREP_max=$ac_count
5898 fi
5899 # 10*(2^10) chars as input seems more than enough
5900 test $ac_count -gt 10 && break
5901 done
5902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5903 esac
5904
5905 $ac_path_GREP_found && break 3
5906 done
5907 done
5908 done
5909 IFS=$as_save_IFS
5910 if test -z "$ac_cv_path_GREP"; then
5911 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5912 fi
5913 else
5914 ac_cv_path_GREP=$GREP
5915 fi
5916
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5919 $as_echo "$ac_cv_path_GREP" >&6; }
5920 GREP="$ac_cv_path_GREP"
5921
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5924 $as_echo_n "checking for egrep... " >&6; }
5925 if test "${ac_cv_path_EGREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5929 then ac_cv_path_EGREP="$GREP -E"
5930 else
5931 if test -z "$EGREP"; then
5932 ac_path_EGREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_prog in egrep; do
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5943 # Check for GNU ac_path_EGREP and select it if it is found.
5944 # Check for GNU $ac_path_EGREP
5945 case `"$ac_path_EGREP" --version 2>&1` in
5946 *GNU*)
5947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5948 *)
5949 ac_count=0
5950 $as_echo_n 0123456789 >"conftest.in"
5951 while :
5952 do
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'EGREP' >> "conftest.nl"
5957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959 as_fn_arith $ac_count + 1 && ac_count=$as_val
5960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_EGREP="$ac_path_EGREP"
5963 ac_path_EGREP_max=$ac_count
5964 fi
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5967 done
5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5969 esac
5970
5971 $ac_path_EGREP_found && break 3
5972 done
5973 done
5974 done
5975 IFS=$as_save_IFS
5976 if test -z "$ac_cv_path_EGREP"; then
5977 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5978 fi
5979 else
5980 ac_cv_path_EGREP=$EGREP
5981 fi
5982
5983 fi
5984 fi
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5986 $as_echo "$ac_cv_path_EGREP" >&6; }
5987 EGREP="$ac_cv_path_EGREP"
5988
5989
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5991 $as_echo_n "checking for ANSI C header files... " >&6; }
5992 if test "${ac_cv_header_stdc+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5994 else
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 #include <stdlib.h>
5998 #include <stdarg.h>
5999 #include <string.h>
6000 #include <float.h>
6001
6002 int
6003 main ()
6004 {
6005
6006 ;
6007 return 0;
6008 }
6009 _ACEOF
6010 if ac_fn_c_try_compile "$LINENO"; then :
6011 ac_cv_header_stdc=yes
6012 else
6013 ac_cv_header_stdc=no
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016
6017 if test $ac_cv_header_stdc = yes; then
6018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #include <string.h>
6022
6023 _ACEOF
6024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6025 $EGREP "memchr" >/dev/null 2>&1; then :
6026
6027 else
6028 ac_cv_header_stdc=no
6029 fi
6030 rm -f conftest*
6031
6032 fi
6033
6034 if test $ac_cv_header_stdc = yes; then
6035 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 #include <stdlib.h>
6039
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "free" >/dev/null 2>&1; then :
6043
6044 else
6045 ac_cv_header_stdc=no
6046 fi
6047 rm -f conftest*
6048
6049 fi
6050
6051 if test $ac_cv_header_stdc = yes; then
6052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6053 if test "$cross_compiling" = yes; then :
6054 :
6055 else
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <ctype.h>
6059 #include <stdlib.h>
6060 #if ((' ' & 0x0FF) == 0x020)
6061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6063 #else
6064 # define ISLOWER(c) \
6065 (('a' <= (c) && (c) <= 'i') \
6066 || ('j' <= (c) && (c) <= 'r') \
6067 || ('s' <= (c) && (c) <= 'z'))
6068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6069 #endif
6070
6071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6072 int
6073 main ()
6074 {
6075 int i;
6076 for (i = 0; i < 256; i++)
6077 if (XOR (islower (i), ISLOWER (i))
6078 || toupper (i) != TOUPPER (i))
6079 return 2;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_run "$LINENO"; then :
6084
6085 else
6086 ac_cv_header_stdc=no
6087 fi
6088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6089 conftest.$ac_objext conftest.beam conftest.$ac_ext
6090 fi
6091
6092 fi
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6095 $as_echo "$ac_cv_header_stdc" >&6; }
6096 if test $ac_cv_header_stdc = yes; then
6097
6098 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6099
6100 fi
6101
6102 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6103 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6104 inttypes.h stdint.h unistd.h
6105 do :
6106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6107 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6108 "
6109 eval as_val=\$$as_ac_Header
6110 if test "x$as_val" = x""yes; then :
6111 cat >>confdefs.h <<_ACEOF
6112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6113 _ACEOF
6114
6115 fi
6116
6117 done
6118
6119
6120
6121
6122
6123 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6124 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6125 MINIX=yes
6126 else
6127 MINIX=
6128 fi
6129
6130
6131 if test "$MINIX" = yes; then
6132
6133 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6134
6135
6136 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6137
6138
6139 $as_echo "#define _MINIX 1" >>confdefs.h
6140
6141 fi
6142
6143 case "$host_os" in
6144 hpux*)
6145
6146 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6147
6148 ;;
6149 esac
6150
6151
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6153 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6154 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6159
6160 # define __EXTENSIONS__ 1
6161 $ac_includes_default
6162 int
6163 main ()
6164 {
6165
6166 ;
6167 return 0;
6168 }
6169 _ACEOF
6170 if ac_fn_c_try_compile "$LINENO"; then :
6171 ac_cv_safe_to_define___extensions__=yes
6172 else
6173 ac_cv_safe_to_define___extensions__=no
6174 fi
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6178 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6179 test $ac_cv_safe_to_define___extensions__ = yes &&
6180 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6181
6182 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6183
6184 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6185
6186 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6187
6188 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 # Code from module allocator:
6200 # Code from module arg-nonnull:
6201 # Code from module c++defs:
6202 # Code from module careadlinkat:
6203 # Code from module crypto/md5:
6204 # Code from module dosname:
6205 # Code from module dtoastr:
6206 # Code from module extensions:
6207
6208 # Code from module filemode:
6209 # Code from module getloadavg:
6210 # Code from module getopt-gnu:
6211 # Code from module getopt-posix:
6212 # Code from module gettext-h:
6213 # Code from module ignore-value:
6214 # Code from module include_next:
6215 # Code from module intprops:
6216 # Code from module lstat:
6217 # Code from module mktime:
6218 # Code from module multiarch:
6219 # Code from module readlink:
6220 # Code from module socklen:
6221 # Code from module ssize_t:
6222 # Code from module stat:
6223 # Code from module stdbool:
6224 # Code from module stddef:
6225 # Code from module stdint:
6226 # Code from module stdio:
6227 # Code from module stdlib:
6228 # Code from module strftime:
6229 # Code from module symlink:
6230 # Code from module sys_stat:
6231 # Code from module time:
6232 # Code from module time_r:
6233 # Code from module unistd:
6234 # Code from module warn-on-use:
6235
6236
6237 # On Suns, sometimes $CPP names a directory.
6238 if test -n "$CPP" && test -d "$CPP"; then
6239 CPP=
6240 fi
6241
6242 ## If not using gcc, and on Solaris, and no CPP specified, see if
6243 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6244 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6245 test x"$CPP" = x; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6247 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6248 if test "${emacs_cv_sunpro_c+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253
6254 int
6255 main ()
6256 {
6257 #ifndef __SUNPRO_C
6258 fail;
6259 #endif
6260
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_c_try_link "$LINENO"; then :
6266 emacs_cv_sunpro_c=yes
6267 else
6268 emacs_cv_sunpro_c=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext \
6271 conftest$ac_exeext conftest.$ac_ext
6272 fi
6273
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6275 $as_echo "$emacs_cv_sunpro_c" >&6; }
6276
6277 if test x"$emacs_cv_sunpro_c" = xyes; then
6278 NON_GNU_CPP="$CC -E -Xs"
6279 fi
6280 fi
6281
6282 #### Some systems specify a CPP to use unless we are using GCC.
6283 #### Now that we know whether we are using GCC, we can decide whether
6284 #### to use that one.
6285 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6286 then
6287 CPP="$NON_GNU_CPP"
6288 fi
6289
6290 #### Some systems specify a CC to use unless we are using GCC.
6291 #### Now that we know whether we are using GCC, we can decide whether
6292 #### to use that one.
6293 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6294 test x$cc_specified != xyes
6295 then
6296 CC="$NON_GNU_CC"
6297 fi
6298
6299 if test x$GCC = xyes; then
6300 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6301 else
6302 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6303 fi
6304
6305 ### Use -Wdeclaration-after-statement if the compiler supports it
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6307 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6308 SAVE_CFLAGS="$CFLAGS"
6309 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312
6313 int
6314 main ()
6315 {
6316
6317 ;
6318 return 0;
6319 }
6320 _ACEOF
6321 if ac_fn_c_try_compile "$LINENO"; then :
6322 has_option=yes
6323 else
6324 has_option=no
6325 fi
6326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327 if test $has_option = yes; then
6328 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6329 fi
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6331 $as_echo "$has_option" >&6; }
6332 CFLAGS="$SAVE_CFLAGS"
6333 unset has_option
6334 unset SAVE_CFLAGS
6335
6336 ### Use -Wold-style-definition if the compiler supports it
6337 # This can be removed when conversion to standard C is finished.
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6339 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6340 SAVE_CFLAGS="$CFLAGS"
6341 CFLAGS="$CFLAGS -Wold-style-definition"
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6344
6345 int
6346 main ()
6347 {
6348
6349 ;
6350 return 0;
6351 }
6352 _ACEOF
6353 if ac_fn_c_try_compile "$LINENO"; then :
6354 has_option=yes
6355 else
6356 has_option=no
6357 fi
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 if test $has_option = yes; then
6360 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6363 $as_echo "$has_option" >&6; }
6364 CFLAGS="$SAVE_CFLAGS"
6365 unset has_option
6366 unset SAVE_CFLAGS
6367
6368 ### Use -Wimplicit-function-declaration if the compiler supports it
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6370 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6371 SAVE_CFLAGS="$CFLAGS"
6372 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375
6376 int
6377 main ()
6378 {
6379
6380 ;
6381 return 0;
6382 }
6383 _ACEOF
6384 if ac_fn_c_try_compile "$LINENO"; then :
6385 has_option=yes
6386 else
6387 has_option=no
6388 fi
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 if test $has_option = yes; then
6391 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6394 $as_echo "$has_option" >&6; }
6395 CFLAGS="$SAVE_CFLAGS"
6396 unset has_option
6397 unset SAVE_CFLAGS
6398
6399
6400
6401
6402 #### Some other nice autoconf tests.
6403
6404 ac_ext=c
6405 ac_cpp='$CPP $CPPFLAGS'
6406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6411 # On Suns, sometimes $CPP names a directory.
6412 if test -n "$CPP" && test -d "$CPP"; then
6413 CPP=
6414 fi
6415 if test -z "$CPP"; then
6416 if test "${ac_cv_prog_CPP+set}" = set; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 # Double quotes because CPP needs to be expanded
6420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6421 do
6422 ac_preproc_ok=false
6423 for ac_c_preproc_warn_flag in '' yes
6424 do
6425 # Use a header file that comes with gcc, so configuring glibc
6426 # with a fresh cross-compiler works.
6427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6428 # <limits.h> exists even on freestanding compilers.
6429 # On the NeXT, cc -E runs the code through the compiler's parser,
6430 # not just through cpp. "Syntax error" is here to catch this case.
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6433 #ifdef __STDC__
6434 # include <limits.h>
6435 #else
6436 # include <assert.h>
6437 #endif
6438 Syntax error
6439 _ACEOF
6440 if ac_fn_c_try_cpp "$LINENO"; then :
6441
6442 else
6443 # Broken: fails on valid input.
6444 continue
6445 fi
6446 rm -f conftest.err conftest.$ac_ext
6447
6448 # OK, works on sane cases. Now check whether nonexistent headers
6449 # can be detected and how.
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <ac_nonexistent.h>
6453 _ACEOF
6454 if ac_fn_c_try_cpp "$LINENO"; then :
6455 # Broken: success on invalid input.
6456 continue
6457 else
6458 # Passes both tests.
6459 ac_preproc_ok=:
6460 break
6461 fi
6462 rm -f conftest.err conftest.$ac_ext
6463
6464 done
6465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6466 rm -f conftest.err conftest.$ac_ext
6467 if $ac_preproc_ok; then :
6468 break
6469 fi
6470
6471 done
6472 ac_cv_prog_CPP=$CPP
6473
6474 fi
6475 CPP=$ac_cv_prog_CPP
6476 else
6477 ac_cv_prog_CPP=$CPP
6478 fi
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6480 $as_echo "$CPP" >&6; }
6481 ac_preproc_ok=false
6482 for ac_c_preproc_warn_flag in '' yes
6483 do
6484 # Use a header file that comes with gcc, so configuring glibc
6485 # with a fresh cross-compiler works.
6486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6487 # <limits.h> exists even on freestanding compilers.
6488 # On the NeXT, cc -E runs the code through the compiler's parser,
6489 # not just through cpp. "Syntax error" is here to catch this case.
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 #ifdef __STDC__
6493 # include <limits.h>
6494 #else
6495 # include <assert.h>
6496 #endif
6497 Syntax error
6498 _ACEOF
6499 if ac_fn_c_try_cpp "$LINENO"; then :
6500
6501 else
6502 # Broken: fails on valid input.
6503 continue
6504 fi
6505 rm -f conftest.err conftest.$ac_ext
6506
6507 # OK, works on sane cases. Now check whether nonexistent headers
6508 # can be detected and how.
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511 #include <ac_nonexistent.h>
6512 _ACEOF
6513 if ac_fn_c_try_cpp "$LINENO"; then :
6514 # Broken: success on invalid input.
6515 continue
6516 else
6517 # Passes both tests.
6518 ac_preproc_ok=:
6519 break
6520 fi
6521 rm -f conftest.err conftest.$ac_ext
6522
6523 done
6524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6525 rm -f conftest.err conftest.$ac_ext
6526 if $ac_preproc_ok; then :
6527
6528 else
6529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6531 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6532 See \`config.log' for more details." "$LINENO" 5; }
6533 fi
6534
6535 ac_ext=c
6536 ac_cpp='$CPP $CPPFLAGS'
6537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540
6541
6542 if test "x$RANLIB" = x; then
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$RANLIB"; then
6552 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 RANLIB=$ac_cv_prog_RANLIB
6572 if test -n "$RANLIB"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6574 $as_echo "$RANLIB" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6578 fi
6579
6580
6581 fi
6582 if test -z "$ac_cv_prog_RANLIB"; then
6583 ac_ct_RANLIB=$RANLIB
6584 # Extract the first word of "ranlib", so it can be a program name with args.
6585 set dummy ranlib; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 if test -n "$ac_ct_RANLIB"; then
6592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_ac_ct_RANLIB="ranlib"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6604 fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6612 if test -n "$ac_ct_RANLIB"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6614 $as_echo "$ac_ct_RANLIB" >&6; }
6615 else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620 if test "x$ac_ct_RANLIB" = x; then
6621 RANLIB=":"
6622 else
6623 case $cross_compiling:$ac_tool_warned in
6624 yes:)
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627 ac_tool_warned=yes ;;
6628 esac
6629 RANLIB=$ac_ct_RANLIB
6630 fi
6631 else
6632 RANLIB="$ac_cv_prog_RANLIB"
6633 fi
6634
6635 fi
6636
6637 ## Although we're running on an amd64 kernel, we're actually compiling for
6638 ## the x86 architecture. The user should probably have provided an
6639 ## explicit --build to `configure', but if everything else than the kernel
6640 ## is running in i386 mode, we can help them out.
6641 if test "$machine" = "amdx86-64"; then
6642 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6643 if test "x$ac_cv_have_decl_i386" = x""yes; then :
6644
6645 fi
6646
6647 if test "$ac_cv_have_decl_i386" = "yes"; then
6648 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6649 machine=intel386
6650 machfile="m/${machine}.h"
6651 fi
6652 fi
6653
6654 # Extract the first word of "install-info", so it can be a program name with args.
6655 set dummy install-info; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 case $INSTALL_INFO in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 for as_dir in $PATH
6668 do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 ;;
6682 esac
6683 fi
6684 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6685 if test -n "$INSTALL_INFO"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6687 $as_echo "$INSTALL_INFO" >&6; }
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6691 fi
6692
6693
6694 # Extract the first word of "install-info", so it can be a program name with args.
6695 set dummy install-info; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 case $INSTALL_INFO in
6702 [\\/]* | ?:[\\/]*)
6703 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6704 ;;
6705 *)
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in /usr/sbin
6708 do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 ;;
6722 esac
6723 fi
6724 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6725 if test -n "$INSTALL_INFO"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6727 $as_echo "$INSTALL_INFO" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733
6734 # Extract the first word of "install-info", so it can be a program name with args.
6735 set dummy install-info; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 case $INSTALL_INFO in
6742 [\\/]* | ?:[\\/]*)
6743 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6744 ;;
6745 *)
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in /sbin
6748 do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6762 ;;
6763 esac
6764 fi
6765 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6766 if test -n "$INSTALL_INFO"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6768 $as_echo "$INSTALL_INFO" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774
6775 # Extract the first word of "gzip", so it can be a program name with args.
6776 set dummy gzip; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 case $GZIP_PROG in
6783 [\\/]* | ?:[\\/]*)
6784 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6785 ;;
6786 *)
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802 ;;
6803 esac
6804 fi
6805 GZIP_PROG=$ac_cv_path_GZIP_PROG
6806 if test -n "$GZIP_PROG"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6808 $as_echo "$GZIP_PROG" >&6; }
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6812 fi
6813
6814
6815
6816
6817 ## Need makeinfo >= 4.6 (?) to build the manuals.
6818 # Extract the first word of "makeinfo", so it can be a program name with args.
6819 set dummy makeinfo; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 case $MAKEINFO in
6826 [\\/]* | ?:[\\/]*)
6827 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6828 ;;
6829 *)
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6844
6845 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6846 ;;
6847 esac
6848 fi
6849 MAKEINFO=$ac_cv_path_MAKEINFO
6850 if test -n "$MAKEINFO"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6852 $as_echo "$MAKEINFO" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 if test "$MAKEINFO" != "no" && \
6860 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
6861 MAKEINFO=no
6862 fi
6863
6864 ## Makeinfo is unusual. For a released Emacs, the manuals are
6865 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6866 ## therefore in the category of "special tools" not normally required, which
6867 ## configure does not have to check for (eg autoconf itself).
6868 ## In a Bazaar checkout on the other hand, the manuals are not included.
6869 ## So makeinfo is a requirement to build from Bazaar, and configure
6870 ## should test for it as it does for any other build requirement.
6871 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6872 ## with pre-built manuals, from a Bazaar checkout.
6873 HAVE_MAKEINFO=yes
6874
6875 if test "$MAKEINFO" = "no"; then
6876 MAKEINFO=makeinfo
6877 if test "x${with_makeinfo}" = "xno"; then
6878 HAVE_MAKEINFO=no
6879 elif test ! -e $srcdir/info/emacs; then
6880 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
6881 source tree does not seem to have pre-built manuals in the \`info' directory.
6882 Either install a suitable version of makeinfo, or re-run configure
6883 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6884 fi
6885 fi
6886
6887
6888
6889 if test x$GCC = xyes; then
6890 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6891 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6892 else
6893 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6894 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6895 fi
6896
6897
6898 late_LDFLAGS=$LDFLAGS
6899 if test x$GCC = xyes; then
6900 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6901 else
6902 LDFLAGS="$LDFLAGS -znocombreloc"
6903 fi
6904
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6906 $as_echo_n "checking for -znocombreloc... " >&6; }
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909
6910 int
6911 main ()
6912 {
6913
6914 ;
6915 return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_link "$LINENO"; then :
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6920 $as_echo "yes" >&6; }
6921 else
6922 LDFLAGS=$late_LDFLAGS
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926 rm -f core conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928
6929
6930 # The value of CPP is a quoted variable reference, so we need to do this
6931 # to get its actual value...
6932 CPP=`eval "echo $CPP"`
6933
6934
6935 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6936 case "$opsys" in
6937 your-opsys-here) CANNOT_DUMP=yes ;;
6938 esac
6939
6940 test "$CANNOT_DUMP" = "yes" && \
6941
6942 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6943
6944
6945
6946
6947
6948 UNEXEC_OBJ=unexelf.o
6949 case "$opsys" in
6950 # MSDOS uses unexcoff.o
6951 # MSWindows uses unexw32.o
6952 aix4-2)
6953 UNEXEC_OBJ=unexaix.o
6954 ;;
6955 cygwin)
6956 UNEXEC_OBJ=unexcw.o
6957 ;;
6958 darwin)
6959 UNEXEC_OBJ=unexmacosx.o
6960 ;;
6961 hpux10-20 | hpux11)
6962 UNEXEC_OBJ=unexhp9k800.o
6963 ;;
6964 sol2-10)
6965 # Use the Solaris dldump() function, called from unexsol.c, to dump
6966 # emacs, instead of the generic ELF dump code found in unexelf.c.
6967 # The resulting binary has a complete symbol table, and is better
6968 # for debugging and other observability tools (debuggers, pstack, etc).
6969 #
6970 # If you encounter a problem using dldump(), please consider sending
6971 # a message to the OpenSolaris tools-linking mailing list:
6972 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6973 #
6974 # It is likely that dldump() works with older Solaris too, but this has
6975 # not been tested, so for now this change is for Solaris 10 or newer.
6976 UNEXEC_OBJ=unexsol.o
6977 ;;
6978 esac
6979
6980 LD_SWITCH_SYSTEM=
6981 case "$opsys" in
6982 freebsd)
6983 ## Let `ld' find image libs and similar things in /usr/local/lib.
6984 ## The system compiler, GCC, has apparently been modified to not
6985 ## look there, contrary to what a stock GCC would do.
6986 LD_SWITCH_SYSTEM=-L/usr/local/lib
6987 ;;
6988
6989 gnu-linux)
6990 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6991 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6992 ;;
6993
6994 netbsd)
6995 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6996 ;;
6997
6998 openbsd)
6999 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
7000 ## otherwise Emacs dumps core on elf systems.
7001 LD_SWITCH_SYSTEM="-Z"
7002 ;;
7003 esac
7004
7005
7006 ac_link="$ac_link $LD_SWITCH_SYSTEM"
7007
7008 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
7009 ## which has not been defined yet. When this was handled with cpp,
7010 ## it was expanded to null when configure sourced the s/*.h file.
7011 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
7012 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
7013 ## (or somesuch), but because it is supposed to go at the _front_
7014 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
7015 ## Compare with the gnu-linux case below, which added to the end
7016 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
7017 ## LD_SWITCH_SYSTEM_TEMACS.
7018 case "$opsys" in
7019 netbsd|openbsd)
7020 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
7021 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
7022 esac
7023
7024
7025 C_SWITCH_MACHINE=
7026 if test "$machine" = "alpha"; then
7027 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
7028 if test "x$ac_cv_have_decl___ELF__" = x""yes; then :
7029
7030 fi
7031
7032 if test "$ac_cv_have_decl___ELF__" = "yes"; then
7033 ## With ELF, make sure that all common symbols get allocated to in the
7034 ## data section. Otherwise, the dump of temacs may miss variables in
7035 ## the shared library that have been initialized. For example, with
7036 ## GNU libc, __malloc_initialized would normally be resolved to the
7037 ## shared library's .bss section, which is fatal.
7038 if test "x$GCC" = "xyes"; then
7039 C_SWITCH_MACHINE="-fno-common"
7040 else
7041 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
7042 fi
7043 else
7044 UNEXEC_OBJ=unexalpha.o
7045 fi
7046 fi
7047
7048
7049
7050
7051 C_SWITCH_SYSTEM=
7052 ## Some programs in src produce warnings saying certain subprograms
7053 ## are too complex and need a MAXMEM value greater than 2000 for
7054 ## additional optimization. --nils@exp-math.uni-essen.de
7055 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
7056 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
7057 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
7058 ## It is redundant in glibc2, since we define _GNU_SOURCE.
7059
7060
7061
7062 LIBS_SYSTEM=
7063 case "$opsys" in
7064 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
7065 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
7066
7067 freebsd) LIBS_SYSTEM="-lutil" ;;
7068
7069 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
7070
7071 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
7072
7073 ## Motif needs -lgen.
7074 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
7075 esac
7076
7077
7078
7079 ### Make sure subsequent tests use flags consistent with the build flags.
7080
7081 if test x"${OVERRIDE_CPPFLAGS}" != x; then
7082 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7083 else
7084 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7085 fi
7086
7087 # Check whether --enable-largefile was given.
7088 if test "${enable_largefile+set}" = set; then :
7089 enableval=$enable_largefile;
7090 fi
7091
7092 if test "$enable_largefile" != no; then
7093
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7095 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7096 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 ac_cv_sys_largefile_CC=no
7100 if test "$GCC" != yes; then
7101 ac_save_CC=$CC
7102 while :; do
7103 # IRIX 6.2 and later do not support large files by default,
7104 # so use the C compiler's -n32 option if that helps.
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 #include <sys/types.h>
7108 /* Check that off_t can represent 2**63 - 1 correctly.
7109 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7110 since some C++ compilers masquerading as C compilers
7111 incorrectly reject 9223372036854775807. */
7112 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7114 && LARGE_OFF_T % 2147483647 == 1)
7115 ? 1 : -1];
7116 int
7117 main ()
7118 {
7119
7120 ;
7121 return 0;
7122 }
7123 _ACEOF
7124 if ac_fn_c_try_compile "$LINENO"; then :
7125 break
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext
7128 CC="$CC -n32"
7129 if ac_fn_c_try_compile "$LINENO"; then :
7130 ac_cv_sys_largefile_CC=' -n32'; break
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext
7133 break
7134 done
7135 CC=$ac_save_CC
7136 rm -f conftest.$ac_ext
7137 fi
7138 fi
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7140 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7141 if test "$ac_cv_sys_largefile_CC" != no; then
7142 CC=$CC$ac_cv_sys_largefile_CC
7143 fi
7144
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7146 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7147 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 while :; do
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #include <sys/types.h>
7154 /* Check that off_t can represent 2**63 - 1 correctly.
7155 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7156 since some C++ compilers masquerading as C compilers
7157 incorrectly reject 9223372036854775807. */
7158 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7160 && LARGE_OFF_T % 2147483647 == 1)
7161 ? 1 : -1];
7162 int
7163 main ()
7164 {
7165
7166 ;
7167 return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171 ac_cv_sys_file_offset_bits=no; break
7172 fi
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 #define _FILE_OFFSET_BITS 64
7177 #include <sys/types.h>
7178 /* Check that off_t can represent 2**63 - 1 correctly.
7179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7180 since some C++ compilers masquerading as C compilers
7181 incorrectly reject 9223372036854775807. */
7182 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7184 && LARGE_OFF_T % 2147483647 == 1)
7185 ? 1 : -1];
7186 int
7187 main ()
7188 {
7189
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 ac_cv_sys_file_offset_bits=64; break
7196 fi
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 ac_cv_sys_file_offset_bits=unknown
7199 break
7200 done
7201 fi
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7203 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7204 case $ac_cv_sys_file_offset_bits in #(
7205 no | unknown) ;;
7206 *)
7207 cat >>confdefs.h <<_ACEOF
7208 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7209 _ACEOF
7210 ;;
7211 esac
7212 rm -rf conftest*
7213 if test $ac_cv_sys_file_offset_bits = unknown; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7215 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7216 if test "${ac_cv_sys_large_files+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 while :; do
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <sys/types.h>
7223 /* Check that off_t can represent 2**63 - 1 correctly.
7224 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7225 since some C++ compilers masquerading as C compilers
7226 incorrectly reject 9223372036854775807. */
7227 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7229 && LARGE_OFF_T % 2147483647 == 1)
7230 ? 1 : -1];
7231 int
7232 main ()
7233 {
7234
7235 ;
7236 return 0;
7237 }
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 ac_cv_sys_large_files=no; break
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #define _LARGE_FILES 1
7246 #include <sys/types.h>
7247 /* Check that off_t can represent 2**63 - 1 correctly.
7248 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7249 since some C++ compilers masquerading as C compilers
7250 incorrectly reject 9223372036854775807. */
7251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7253 && LARGE_OFF_T % 2147483647 == 1)
7254 ? 1 : -1];
7255 int
7256 main ()
7257 {
7258
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 if ac_fn_c_try_compile "$LINENO"; then :
7264 ac_cv_sys_large_files=1; break
7265 fi
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 ac_cv_sys_large_files=unknown
7268 break
7269 done
7270 fi
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7272 $as_echo "$ac_cv_sys_large_files" >&6; }
7273 case $ac_cv_sys_large_files in #(
7274 no | unknown) ;;
7275 *)
7276 cat >>confdefs.h <<_ACEOF
7277 #define _LARGE_FILES $ac_cv_sys_large_files
7278 _ACEOF
7279 ;;
7280 esac
7281 rm -rf conftest*
7282 fi
7283 fi
7284
7285
7286
7287 ## If user specified a crt-dir, use that unconditionally.
7288 if test "X$CRT_DIR" = "X"; then
7289
7290 case "$canonical" in
7291 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7292 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7293 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7294 ## For anything else (eg /usr/lib32), it is up the user to specify
7295 ## the location (bug#5655).
7296 ## Test for crtn.o, not just the directory, because sometimes the
7297 ## directory exists but does not have the relevant files (bug#1287).
7298 ## FIXME better to test for binary compatibility somehow.
7299 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7300 ;;
7301
7302 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7303 esac
7304
7305 case "$opsys" in
7306 hpux10-20) CRT_DIR=/lib ;;
7307 esac
7308
7309 ## Default is /usr/lib.
7310 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7311
7312 else
7313
7314 ## Some platforms don't use any of these files, so it is not
7315 ## appropriate to put this test outside the if block.
7316 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7317 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
7318
7319 fi
7320
7321
7322
7323 LIB_MATH=-lm
7324 LIB_STANDARD=
7325 START_FILES=
7326
7327 case $opsys in
7328 cygwin )
7329 LIB_MATH=
7330 START_FILES='pre-crt0.o'
7331 ;;
7332 darwin )
7333 ## Adding -lm confuses the dynamic linker, so omit it.
7334 LIB_MATH=
7335 START_FILES='pre-crt0.o'
7336 ;;
7337 freebsd )
7338 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7339 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7340 ;;
7341 gnu-linux | gnu-kfreebsd )
7342 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7343 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7344 ;;
7345 hpux10-20 | hpux11 )
7346 LIB_STANDARD=-lc
7347 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7348 ;;
7349 netbsd | openbsd )
7350 if test -f $CRT_DIR/crti.o; then
7351 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7352 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7353 else
7354 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7355 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7356 fi
7357 ;;
7358 esac
7359
7360
7361
7362
7363
7364
7365
7366 if test "${with_sound}" != "no"; then
7367 # Sound support for GNU/Linux and the free BSDs.
7368 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7369 do :
7370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7371 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7372 eval as_val=\$$as_ac_Header
7373 if test "x$as_val" = x""yes; then :
7374 cat >>confdefs.h <<_ACEOF
7375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376 _ACEOF
7377 have_sound_header=yes
7378 fi
7379
7380 done
7381
7382 # Emulation library used on NetBSD.
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7384 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7385 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 ac_check_lib_save_LIBS=$LIBS
7389 LIBS="-lossaudio $LIBS"
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392
7393 /* Override any GCC internal prototype to avoid an error.
7394 Use char because int might match the return type of a GCC
7395 builtin and then its argument prototype would still apply. */
7396 #ifdef __cplusplus
7397 extern "C"
7398 #endif
7399 char _oss_ioctl ();
7400 int
7401 main ()
7402 {
7403 return _oss_ioctl ();
7404 ;
7405 return 0;
7406 }
7407 _ACEOF
7408 if ac_fn_c_try_link "$LINENO"; then :
7409 ac_cv_lib_ossaudio__oss_ioctl=yes
7410 else
7411 ac_cv_lib_ossaudio__oss_ioctl=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext \
7414 conftest$ac_exeext conftest.$ac_ext
7415 LIBS=$ac_check_lib_save_LIBS
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7418 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7419 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
7420 LIBSOUND=-lossaudio
7421 else
7422 LIBSOUND=
7423 fi
7424
7425
7426
7427 ALSA_REQUIRED=1.0.0
7428 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7429
7430 succeeded=no
7431
7432 # Extract the first word of "pkg-config", so it can be a program name with args.
7433 set dummy pkg-config; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 case $PKG_CONFIG in
7440 [\\/]* | ?:[\\/]*)
7441 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7442 ;;
7443 *)
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7460 ;;
7461 esac
7462 fi
7463 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7464 if test -n "$PKG_CONFIG"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7466 $as_echo "$PKG_CONFIG" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 fi
7471
7472
7473
7474 if test "$PKG_CONFIG" = "no" ; then
7475 HAVE_ALSA=no
7476 else
7477 PKG_CONFIG_MIN_VERSION=0.9.0
7478 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7480 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7481
7482 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7484 $as_echo "yes" >&6; }
7485 succeeded=yes
7486
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7488 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7489 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7491 $as_echo "$ALSA_CFLAGS" >&6; }
7492
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7494 $as_echo_n "checking ALSA_LIBS... " >&6; }
7495 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7497 $as_echo "$ALSA_LIBS" >&6; }
7498 else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7501 ALSA_CFLAGS=""
7502 ALSA_LIBS=""
7503 ## If we have a custom action on failure, don't print errors, but
7504 ## do set a variable so people can do so.
7505 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7506
7507 fi
7508
7509
7510
7511 else
7512 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7513 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7514 fi
7515 fi
7516
7517 if test $succeeded = yes; then
7518 HAVE_ALSA=yes
7519 else
7520 HAVE_ALSA=no
7521 fi
7522
7523 if test $HAVE_ALSA = yes; then
7524 SAVE_CFLAGS="$CFLAGS"
7525 SAVE_LDFLAGS="$LDFLAGS"
7526 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7527 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 #include <asoundlib.h>
7531 int
7532 main ()
7533 {
7534 snd_lib_error_set_handler (0);
7535 ;
7536 return 0;
7537 }
7538 _ACEOF
7539 if ac_fn_c_try_compile "$LINENO"; then :
7540 emacs_alsa_normal=yes
7541 else
7542 emacs_alsa_normal=no
7543 fi
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 if test "$emacs_alsa_normal" != yes; then
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7548 #include <alsa/asoundlib.h>
7549 int
7550 main ()
7551 {
7552 snd_lib_error_set_handler (0);
7553 ;
7554 return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_compile "$LINENO"; then :
7558 emacs_alsa_subdir=yes
7559 else
7560 emacs_alsa_subdir=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 if test "$emacs_alsa_subdir" != yes; then
7564 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7565 fi
7566 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7567 fi
7568
7569 CFLAGS="$SAVE_CFLAGS"
7570 LDFLAGS="$SAVE_LDFLAGS"
7571 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7572 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7573
7574 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7575
7576 fi
7577
7578 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7579 case "$opsys" in
7580 gnu-linux|freebsd|netbsd)
7581
7582 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7583
7584 ;;
7585 esac
7586 fi
7587
7588
7589 fi
7590
7591 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7592 linux/version.h sys/systeminfo.h limits.h \
7593 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7594 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7595 sys/utsname.h pwd.h utmp.h dirent.h util.h
7596 do :
7597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7598 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7599 eval as_val=\$$as_ac_Header
7600 if test "x$as_val" = x""yes; then :
7601 cat >>confdefs.h <<_ACEOF
7602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7603 _ACEOF
7604
7605 fi
7606
7607 done
7608
7609
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7611 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7614 #include <sys/personality.h>
7615 int
7616 main ()
7617 {
7618 personality (PER_LINUX32)
7619 ;
7620 return 0;
7621 }
7622 _ACEOF
7623 if ac_fn_c_try_compile "$LINENO"; then :
7624 emacs_cv_personality_linux32=yes
7625 else
7626 emacs_cv_personality_linux32=no
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7630 $as_echo "$emacs_cv_personality_linux32" >&6; }
7631
7632 if test $emacs_cv_personality_linux32 = yes; then
7633
7634 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7635
7636 fi
7637
7638 for ac_header in term.h
7639 do :
7640 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7641 if test "x$ac_cv_header_term_h" = x""yes; then :
7642 cat >>confdefs.h <<_ACEOF
7643 #define HAVE_TERM_H 1
7644 _ACEOF
7645
7646 fi
7647
7648 done
7649
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7651 $as_echo_n "checking for ANSI C header files... " >&6; }
7652 if test "${ac_cv_header_stdc+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <stdlib.h>
7658 #include <stdarg.h>
7659 #include <string.h>
7660 #include <float.h>
7661
7662 int
7663 main ()
7664 {
7665
7666 ;
7667 return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"; then :
7671 ac_cv_header_stdc=yes
7672 else
7673 ac_cv_header_stdc=no
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7676
7677 if test $ac_cv_header_stdc = yes; then
7678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #include <string.h>
7682
7683 _ACEOF
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 $EGREP "memchr" >/dev/null 2>&1; then :
7686
7687 else
7688 ac_cv_header_stdc=no
7689 fi
7690 rm -f conftest*
7691
7692 fi
7693
7694 if test $ac_cv_header_stdc = yes; then
7695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 #include <stdlib.h>
7699
7700 _ACEOF
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702 $EGREP "free" >/dev/null 2>&1; then :
7703
7704 else
7705 ac_cv_header_stdc=no
7706 fi
7707 rm -f conftest*
7708
7709 fi
7710
7711 if test $ac_cv_header_stdc = yes; then
7712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7713 if test "$cross_compiling" = yes; then :
7714 :
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 #include <ctype.h>
7719 #include <stdlib.h>
7720 #if ((' ' & 0x0FF) == 0x020)
7721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7723 #else
7724 # define ISLOWER(c) \
7725 (('a' <= (c) && (c) <= 'i') \
7726 || ('j' <= (c) && (c) <= 'r') \
7727 || ('s' <= (c) && (c) <= 'z'))
7728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7729 #endif
7730
7731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7732 int
7733 main ()
7734 {
7735 int i;
7736 for (i = 0; i < 256; i++)
7737 if (XOR (islower (i), ISLOWER (i))
7738 || toupper (i) != TOUPPER (i))
7739 return 2;
7740 return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_c_try_run "$LINENO"; then :
7744
7745 else
7746 ac_cv_header_stdc=no
7747 fi
7748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7749 conftest.$ac_objext conftest.beam conftest.$ac_ext
7750 fi
7751
7752 fi
7753 fi
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7755 $as_echo "$ac_cv_header_stdc" >&6; }
7756 if test $ac_cv_header_stdc = yes; then
7757
7758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7759
7760 fi
7761
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7763 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7764 if test "${ac_cv_header_time+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7769 #include <sys/types.h>
7770 #include <sys/time.h>
7771 #include <time.h>
7772
7773 int
7774 main ()
7775 {
7776 if ((struct tm *) 0)
7777 return 0;
7778 ;
7779 return 0;
7780 }
7781 _ACEOF
7782 if ac_fn_c_try_compile "$LINENO"; then :
7783 ac_cv_header_time=yes
7784 else
7785 ac_cv_header_time=no
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7790 $as_echo "$ac_cv_header_time" >&6; }
7791 if test $ac_cv_header_time = yes; then
7792
7793 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7794
7795 fi
7796
7797 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7798 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7799 ac_have_decl=1
7800 else
7801 ac_have_decl=0
7802 fi
7803
7804 cat >>confdefs.h <<_ACEOF
7805 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7806 _ACEOF
7807
7808 if test $ac_cv_have_decl_sys_siglist != yes; then
7809 # For Tru64, at least:
7810 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7811 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7812 ac_have_decl=1
7813 else
7814 ac_have_decl=0
7815 fi
7816
7817 cat >>confdefs.h <<_ACEOF
7818 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7819 _ACEOF
7820
7821 if test $ac_cv_have_decl___sys_siglist = yes; then
7822
7823 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7824
7825 fi
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7828 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7829 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <sys/types.h>
7835 #include <sys/wait.h>
7836 #ifndef WEXITSTATUS
7837 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7838 #endif
7839 #ifndef WIFEXITED
7840 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7841 #endif
7842
7843 int
7844 main ()
7845 {
7846 int s;
7847 wait (&s);
7848 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7849 ;
7850 return 0;
7851 }
7852 _ACEOF
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 ac_cv_header_sys_wait_h=yes
7855 else
7856 ac_cv_header_sys_wait_h=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7861 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7862 if test $ac_cv_header_sys_wait_h = yes; then
7863
7864 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7865
7866 fi
7867
7868
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7870 $as_echo_n "checking for struct utimbuf... " >&6; }
7871 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 #ifdef TIME_WITH_SYS_TIME
7877 #include <sys/time.h>
7878 #include <time.h>
7879 #else
7880 #ifdef HAVE_SYS_TIME_H
7881 #include <sys/time.h>
7882 #else
7883 #include <time.h>
7884 #endif
7885 #endif
7886 #ifdef HAVE_UTIME_H
7887 #include <utime.h>
7888 #endif
7889 int
7890 main ()
7891 {
7892 static struct utimbuf x; x.actime = x.modtime;
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 if ac_fn_c_try_compile "$LINENO"; then :
7898 emacs_cv_struct_utimbuf=yes
7899 else
7900 emacs_cv_struct_utimbuf=no
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7905 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7906 if test $emacs_cv_struct_utimbuf = yes; then
7907
7908 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7909
7910 fi
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7913 $as_echo_n "checking for speed_t... " >&6; }
7914 if test "${emacs_cv_speed_t+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
7916 else
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 #include <termios.h>
7920 int
7921 main ()
7922 {
7923 speed_t x = 1;
7924 ;
7925 return 0;
7926 }
7927 _ACEOF
7928 if ac_fn_c_try_compile "$LINENO"; then :
7929 emacs_cv_speed_t=yes
7930 else
7931 emacs_cv_speed_t=no
7932 fi
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7936 $as_echo "$emacs_cv_speed_t" >&6; }
7937 if test $emacs_cv_speed_t = yes; then
7938
7939 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7940
7941 fi
7942
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7944 $as_echo_n "checking for struct timeval... " >&6; }
7945 if test "${emacs_cv_struct_timeval+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 #ifdef TIME_WITH_SYS_TIME
7951 #include <sys/time.h>
7952 #include <time.h>
7953 #else
7954 #ifdef HAVE_SYS_TIME_H
7955 #include <sys/time.h>
7956 #else
7957 #include <time.h>
7958 #endif
7959 #endif
7960 int
7961 main ()
7962 {
7963 static struct timeval x; x.tv_sec = x.tv_usec;
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 if ac_fn_c_try_compile "$LINENO"; then :
7969 emacs_cv_struct_timeval=yes
7970 else
7971 emacs_cv_struct_timeval=no
7972 fi
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7976 $as_echo "$emacs_cv_struct_timeval" >&6; }
7977 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7978 if test $emacs_cv_struct_timeval = yes; then
7979
7980 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7981
7982 fi
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7985 $as_echo_n "checking for struct exception... " >&6; }
7986 if test "${emacs_cv_struct_exception+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 #include <math.h>
7992 int
7993 main ()
7994 {
7995 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7996 ;
7997 return 0;
7998 }
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001 emacs_cv_struct_exception=yes
8002 else
8003 emacs_cv_struct_exception=no
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
8008 $as_echo "$emacs_cv_struct_exception" >&6; }
8009 HAVE_EXCEPTION=$emacs_cv_struct_exception
8010 if test $emacs_cv_struct_exception != yes; then
8011
8012 $as_echo "#define NO_MATHERR 1" >>confdefs.h
8013
8014 fi
8015
8016 for ac_header in net/if.h
8017 do :
8018 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
8019 #if HAVE_SYS_SOCKET_H
8020 #include <sys/socket.h>
8021 #endif
8022 "
8023 if test "x$ac_cv_header_net_if_h" = x""yes; then :
8024 cat >>confdefs.h <<_ACEOF
8025 #define HAVE_NET_IF_H 1
8026 _ACEOF
8027
8028 fi
8029
8030 done
8031
8032
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8034 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8035 if test "${ac_cv_struct_tm+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 #include <sys/types.h>
8041 #include <time.h>
8042
8043 int
8044 main ()
8045 {
8046 struct tm tm;
8047 int *p = &tm.tm_sec;
8048 return !p;
8049 ;
8050 return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054 ac_cv_struct_tm=time.h
8055 else
8056 ac_cv_struct_tm=sys/time.h
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8061 $as_echo "$ac_cv_struct_tm" >&6; }
8062 if test $ac_cv_struct_tm = sys/time.h; then
8063
8064 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8065
8066 fi
8067
8068 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8069 #include <$ac_cv_struct_tm>
8070
8071 "
8072 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8073
8074 cat >>confdefs.h <<_ACEOF
8075 #define HAVE_STRUCT_TM_TM_ZONE 1
8076 _ACEOF
8077
8078
8079 fi
8080
8081 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8082
8083 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8084
8085 else
8086 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8087 "
8088 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8089 ac_have_decl=1
8090 else
8091 ac_have_decl=0
8092 fi
8093
8094 cat >>confdefs.h <<_ACEOF
8095 #define HAVE_DECL_TZNAME $ac_have_decl
8096 _ACEOF
8097
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8099 $as_echo_n "checking for tzname... " >&6; }
8100 if test "${ac_cv_var_tzname+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 #include <time.h>
8106 #if !HAVE_DECL_TZNAME
8107 extern char *tzname[];
8108 #endif
8109
8110 int
8111 main ()
8112 {
8113 return tzname[0][0];
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_link "$LINENO"; then :
8119 ac_cv_var_tzname=yes
8120 else
8121 ac_cv_var_tzname=no
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 fi
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8127 $as_echo "$ac_cv_var_tzname" >&6; }
8128 if test $ac_cv_var_tzname = yes; then
8129
8130 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8131
8132 fi
8133 fi
8134
8135 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8136 "
8137 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8138
8139 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8140
8141 fi
8142
8143 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8144 #if HAVE_SYS_SOCKET_H
8145 #include <sys/socket.h>
8146 #endif
8147 #if HAVE_NET_IF_H
8148 #include <net/if.h>
8149 #endif
8150 "
8151 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8152
8153 cat >>confdefs.h <<_ACEOF
8154 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8155 _ACEOF
8156
8157
8158 fi
8159 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8160 #if HAVE_SYS_SOCKET_H
8161 #include <sys/socket.h>
8162 #endif
8163 #if HAVE_NET_IF_H
8164 #include <net/if.h>
8165 #endif
8166 "
8167 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8168
8169 cat >>confdefs.h <<_ACEOF
8170 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8171 _ACEOF
8172
8173
8174 fi
8175 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8176 #if HAVE_SYS_SOCKET_H
8177 #include <sys/socket.h>
8178 #endif
8179 #if HAVE_NET_IF_H
8180 #include <net/if.h>
8181 #endif
8182 "
8183 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8184
8185 cat >>confdefs.h <<_ACEOF
8186 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8187 _ACEOF
8188
8189
8190 fi
8191 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8192 #if HAVE_SYS_SOCKET_H
8193 #include <sys/socket.h>
8194 #endif
8195 #if HAVE_NET_IF_H
8196 #include <net/if.h>
8197 #endif
8198 "
8199 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8200
8201 cat >>confdefs.h <<_ACEOF
8202 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8203 _ACEOF
8204
8205
8206 fi
8207 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8208 #if HAVE_SYS_SOCKET_H
8209 #include <sys/socket.h>
8210 #endif
8211 #if HAVE_NET_IF_H
8212 #include <net/if.h>
8213 #endif
8214 "
8215 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8216
8217 cat >>confdefs.h <<_ACEOF
8218 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8219 _ACEOF
8220
8221
8222 fi
8223
8224
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8227 $as_echo_n "checking for function prototypes... " >&6; }
8228 if test "$ac_cv_prog_cc_c89" != no; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8230 $as_echo "yes" >&6; }
8231
8232 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8233
8234
8235 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8236
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240 fi
8241
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8243 $as_echo_n "checking for working volatile... " >&6; }
8244 if test "${ac_cv_c_volatile+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249
8250 int
8251 main ()
8252 {
8253
8254 volatile int x;
8255 int * volatile y = (int *) 0;
8256 return !x && !y;
8257 ;
8258 return 0;
8259 }
8260 _ACEOF
8261 if ac_fn_c_try_compile "$LINENO"; then :
8262 ac_cv_c_volatile=yes
8263 else
8264 ac_cv_c_volatile=no
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8269 $as_echo "$ac_cv_c_volatile" >&6; }
8270 if test $ac_cv_c_volatile = no; then
8271
8272 $as_echo "#define volatile /**/" >>confdefs.h
8273
8274 fi
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8277 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8278 if test "${ac_cv_c_const+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8283
8284 int
8285 main ()
8286 {
8287 /* FIXME: Include the comments suggested by Paul. */
8288 #ifndef __cplusplus
8289 /* Ultrix mips cc rejects this. */
8290 typedef int charset[2];
8291 const charset cs;
8292 /* SunOS 4.1.1 cc rejects this. */
8293 char const *const *pcpcc;
8294 char **ppc;
8295 /* NEC SVR4.0.2 mips cc rejects this. */
8296 struct point {int x, y;};
8297 static struct point const zero = {0,0};
8298 /* AIX XL C 1.02.0.0 rejects this.
8299 It does not let you subtract one const X* pointer from another in
8300 an arm of an if-expression whose if-part is not a constant
8301 expression */
8302 const char *g = "string";
8303 pcpcc = &g + (g ? g-g : 0);
8304 /* HPUX 7.0 cc rejects these. */
8305 ++pcpcc;
8306 ppc = (char**) pcpcc;
8307 pcpcc = (char const *const *) ppc;
8308 { /* SCO 3.2v4 cc rejects this. */
8309 char *t;
8310 char const *s = 0 ? (char *) 0 : (char const *) 0;
8311
8312 *t++ = 0;
8313 if (s) return 0;
8314 }
8315 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8316 int x[] = {25, 17};
8317 const int *foo = &x[0];
8318 ++foo;
8319 }
8320 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8321 typedef const int *iptr;
8322 iptr p = 0;
8323 ++p;
8324 }
8325 { /* AIX XL C 1.02.0.0 rejects this saying
8326 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8327 struct s { int j; const int *ap[3]; };
8328 struct s *b; b->j = 5;
8329 }
8330 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8331 const int foo = 10;
8332 if (!foo) return 0;
8333 }
8334 return !cs[0] && !zero.x;
8335 #endif
8336
8337 ;
8338 return 0;
8339 }
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342 ac_cv_c_const=yes
8343 else
8344 ac_cv_c_const=no
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8349 $as_echo "$ac_cv_c_const" >&6; }
8350 if test $ac_cv_c_const = no; then
8351
8352 $as_echo "#define const /**/" >>confdefs.h
8353
8354 fi
8355
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8357 $as_echo_n "checking for void * support... " >&6; }
8358 if test "${emacs_cv_void_star+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363
8364 int
8365 main ()
8366 {
8367 void * foo;
8368 ;
8369 return 0;
8370 }
8371 _ACEOF
8372 if ac_fn_c_try_compile "$LINENO"; then :
8373 emacs_cv_void_star=yes
8374 else
8375 emacs_cv_void_star=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8380 $as_echo "$emacs_cv_void_star" >&6; }
8381 if test $emacs_cv_void_star = yes; then
8382 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8383
8384 else
8385 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8386
8387 fi
8388
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8390 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8391 if test "${ac_cv_c_bigendian+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8393 else
8394 ac_cv_c_bigendian=unknown
8395 # See if we're dealing with a universal compiler.
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8398 #ifndef __APPLE_CC__
8399 not a universal capable compiler
8400 #endif
8401 typedef int dummy;
8402
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405
8406 # Check for potential -arch flags. It is not universal unless
8407 # there are at least two -arch flags with different values.
8408 ac_arch=
8409 ac_prev=
8410 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8411 if test -n "$ac_prev"; then
8412 case $ac_word in
8413 i?86 | x86_64 | ppc | ppc64)
8414 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8415 ac_arch=$ac_word
8416 else
8417 ac_cv_c_bigendian=universal
8418 break
8419 fi
8420 ;;
8421 esac
8422 ac_prev=
8423 elif test "x$ac_word" = "x-arch"; then
8424 ac_prev=arch
8425 fi
8426 done
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 if test $ac_cv_c_bigendian = unknown; then
8430 # See if sys/param.h defines the BYTE_ORDER macro.
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 #include <sys/types.h>
8434 #include <sys/param.h>
8435
8436 int
8437 main ()
8438 {
8439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8440 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8441 && LITTLE_ENDIAN)
8442 bogus endian macros
8443 #endif
8444
8445 ;
8446 return 0;
8447 }
8448 _ACEOF
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450 # It does; now see whether it defined to BIG_ENDIAN or not.
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8453 #include <sys/types.h>
8454 #include <sys/param.h>
8455
8456 int
8457 main ()
8458 {
8459 #if BYTE_ORDER != BIG_ENDIAN
8460 not big endian
8461 #endif
8462
8463 ;
8464 return 0;
8465 }
8466 _ACEOF
8467 if ac_fn_c_try_compile "$LINENO"; then :
8468 ac_cv_c_bigendian=yes
8469 else
8470 ac_cv_c_bigendian=no
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 fi
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 if test $ac_cv_c_bigendian = unknown; then
8477 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <limits.h>
8481
8482 int
8483 main ()
8484 {
8485 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8486 bogus endian macros
8487 #endif
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_compile "$LINENO"; then :
8494 # It does; now see whether it defined to _BIG_ENDIAN or not.
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #include <limits.h>
8498
8499 int
8500 main ()
8501 {
8502 #ifndef _BIG_ENDIAN
8503 not big endian
8504 #endif
8505
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 if ac_fn_c_try_compile "$LINENO"; then :
8511 ac_cv_c_bigendian=yes
8512 else
8513 ac_cv_c_bigendian=no
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 fi
8517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 fi
8519 if test $ac_cv_c_bigendian = unknown; then
8520 # Compile a test program.
8521 if test "$cross_compiling" = yes; then :
8522 # Try to guess by grepping values from an object file.
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8525 short int ascii_mm[] =
8526 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8527 short int ascii_ii[] =
8528 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8529 int use_ascii (int i) {
8530 return ascii_mm[i] + ascii_ii[i];
8531 }
8532 short int ebcdic_ii[] =
8533 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8534 short int ebcdic_mm[] =
8535 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8536 int use_ebcdic (int i) {
8537 return ebcdic_mm[i] + ebcdic_ii[i];
8538 }
8539 extern int foo;
8540
8541 int
8542 main ()
8543 {
8544 return use_ascii (foo) == use_ebcdic (foo);
8545 ;
8546 return 0;
8547 }
8548 _ACEOF
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8551 ac_cv_c_bigendian=yes
8552 fi
8553 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8554 if test "$ac_cv_c_bigendian" = unknown; then
8555 ac_cv_c_bigendian=no
8556 else
8557 # finding both strings is unlikely to happen, but who knows?
8558 ac_cv_c_bigendian=unknown
8559 fi
8560 fi
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 else
8564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 $ac_includes_default
8567 int
8568 main ()
8569 {
8570
8571 /* Are we little or big endian? From Harbison&Steele. */
8572 union
8573 {
8574 long int l;
8575 char c[sizeof (long int)];
8576 } u;
8577 u.l = 1;
8578 return u.c[sizeof (long int) - 1] == 1;
8579
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 if ac_fn_c_try_run "$LINENO"; then :
8585 ac_cv_c_bigendian=no
8586 else
8587 ac_cv_c_bigendian=yes
8588 fi
8589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8590 conftest.$ac_objext conftest.beam conftest.$ac_ext
8591 fi
8592
8593 fi
8594 fi
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8596 $as_echo "$ac_cv_c_bigendian" >&6; }
8597 case $ac_cv_c_bigendian in #(
8598 yes)
8599 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8600 ;; #(
8601 no)
8602 ;; #(
8603 universal)
8604
8605 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8606
8607 ;; #(
8608 *)
8609 as_fn_error "unknown endianness
8610 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8611 esac
8612
8613
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8615 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8616 if test "${emacs_cv_attribute_aligned+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 char __attribute__ ((__aligned__ (1 << 3))) c;
8622 int
8623 main ()
8624 {
8625
8626 ;
8627 return 0;
8628 }
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631 emacs_cv_attribute_aligned=yes
8632 else
8633 emacs_cv_attribute_aligned=no
8634 fi
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8638 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8639 if test $emacs_cv_attribute_aligned = yes; then
8640
8641 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8642
8643 fi
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8646 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8647 set x ${MAKE-make}
8648 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8649 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 cat >conftest.make <<\_ACEOF
8653 SHELL = /bin/sh
8654 all:
8655 @echo '@@@%%%=$(MAKE)=@@@%%%'
8656 _ACEOF
8657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8658 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8659 *@@@%%%=?*=@@@%%%*)
8660 eval ac_cv_prog_make_${ac_make}_set=yes;;
8661 *)
8662 eval ac_cv_prog_make_${ac_make}_set=no;;
8663 esac
8664 rm -f conftest.make
8665 fi
8666 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8668 $as_echo "yes" >&6; }
8669 SET_MAKE=
8670 else
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8673 SET_MAKE="MAKE=${MAKE-make}"
8674 fi
8675
8676
8677 DEPFLAGS=
8678 MKDEPDIR=":"
8679 deps_frag=deps.mk
8680 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8682 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8683 HAVE_GNU_MAKE=no
8684 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8685 if test "x$testval" != x; then
8686 HAVE_GNU_MAKE=yes
8687 else
8688 ac_enable_autodepend=no
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8691 $as_echo "$HAVE_GNU_MAKE" >&6; }
8692 if test $HAVE_GNU_MAKE = yes; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8694 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8695 SAVE_CFLAGS="$CFLAGS"
8696 CFLAGS="$CFLAGS -MMD -MF deps.d"
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699
8700 int
8701 main ()
8702 {
8703
8704 ;
8705 return 0;
8706 }
8707 _ACEOF
8708 if ac_fn_c_try_compile "$LINENO"; then :
8709
8710 else
8711 ac_enable_autodepend=no
8712 fi
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 CFLAGS="$SAVE_CFLAGS"
8715 test -f deps.d || ac_enable_autodepend=no
8716 rm -rf deps.d
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8718 $as_echo "$ac_enable_autodepend" >&6; }
8719 fi
8720 if test $ac_enable_autodepend = yes; then
8721 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8722 ## In parallel builds, another make might create depdir between
8723 ## the first test and mkdir, so stick another test on the end.
8724 ## Or use install-sh -d? mkdir -p is not portable.
8725 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8726 deps_frag=autodeps.mk
8727 fi
8728 fi
8729 deps_frag=$srcdir/src/$deps_frag
8730
8731
8732
8733
8734
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8736 $as_echo_n "checking for long file names... " >&6; }
8737 if test "${ac_cv_sys_long_file_names+set}" = set; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 ac_cv_sys_long_file_names=yes
8741 # Test for long file names in all the places we know might matter:
8742 # . the current directory, where building will happen
8743 # $prefix/lib where we will be installing things
8744 # $exec_prefix/lib likewise
8745 # $TMPDIR if set, where it might want to write temporary files
8746 # /tmp where it might want to write temporary files
8747 # /var/tmp likewise
8748 # /usr/tmp likewise
8749 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8750 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8751 # in the usual case where exec_prefix is '${prefix}'.
8752 case $ac_dir in #(
8753 . | /* | ?:[\\/]*) ;; #(
8754 *) continue;;
8755 esac
8756 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8757 ac_xdir=$ac_dir/cf$$
8758 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8759 ac_tf1=$ac_xdir/conftest9012345
8760 ac_tf2=$ac_xdir/conftest9012346
8761 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8762 ac_cv_sys_long_file_names=no
8763 rm -f -r "$ac_xdir" 2>/dev/null
8764 test $ac_cv_sys_long_file_names = no && break
8765 done
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8768 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8769 if test $ac_cv_sys_long_file_names = yes; then
8770
8771 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8772
8773 fi
8774
8775
8776 #### Choose a window system.
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8779 $as_echo_n "checking for X... " >&6; }
8780
8781
8782 # Check whether --with-x was given.
8783 if test "${with_x+set}" = set; then :
8784 withval=$with_x;
8785 fi
8786
8787 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8788 if test "x$with_x" = xno; then
8789 # The user explicitly disabled X.
8790 have_x=disabled
8791 else
8792 case $x_includes,$x_libraries in #(
8793 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
8794 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8796 else
8797 # One or both of the vars are not set, and there is no cached value.
8798 ac_x_includes=no ac_x_libraries=no
8799 rm -f -r conftest.dir
8800 if mkdir conftest.dir; then
8801 cd conftest.dir
8802 cat >Imakefile <<'_ACEOF'
8803 incroot:
8804 @echo incroot='${INCROOT}'
8805 usrlibdir:
8806 @echo usrlibdir='${USRLIBDIR}'
8807 libdir:
8808 @echo libdir='${LIBDIR}'
8809 _ACEOF
8810 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8812 for ac_var in incroot usrlibdir libdir; do
8813 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8814 done
8815 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8816 for ac_extension in a so sl dylib la dll; do
8817 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8818 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8819 ac_im_usrlibdir=$ac_im_libdir; break
8820 fi
8821 done
8822 # Screen out bogus values from the imake configuration. They are
8823 # bogus both because they are the default anyway, and because
8824 # using them would break gcc on systems where it needs fixed includes.
8825 case $ac_im_incroot in
8826 /usr/include) ac_x_includes= ;;
8827 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8828 esac
8829 case $ac_im_usrlibdir in
8830 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8831 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8832 esac
8833 fi
8834 cd ..
8835 rm -f -r conftest.dir
8836 fi
8837
8838 # Standard set of common directories for X headers.
8839 # Check X11 before X11Rn because it is often a symlink to the current release.
8840 ac_x_header_dirs='
8841 /usr/X11/include
8842 /usr/X11R7/include
8843 /usr/X11R6/include
8844 /usr/X11R5/include
8845 /usr/X11R4/include
8846
8847 /usr/include/X11
8848 /usr/include/X11R7
8849 /usr/include/X11R6
8850 /usr/include/X11R5
8851 /usr/include/X11R4
8852
8853 /usr/local/X11/include
8854 /usr/local/X11R7/include
8855 /usr/local/X11R6/include
8856 /usr/local/X11R5/include
8857 /usr/local/X11R4/include
8858
8859 /usr/local/include/X11
8860 /usr/local/include/X11R7
8861 /usr/local/include/X11R6
8862 /usr/local/include/X11R5
8863 /usr/local/include/X11R4
8864
8865 /usr/X386/include
8866 /usr/x386/include
8867 /usr/XFree86/include/X11
8868
8869 /usr/include
8870 /usr/local/include
8871 /usr/unsupported/include
8872 /usr/athena/include
8873 /usr/local/x11r5/include
8874 /usr/lpp/Xamples/include
8875
8876 /usr/openwin/include
8877 /usr/openwin/share/include'
8878
8879 if test "$ac_x_includes" = no; then
8880 # Guess where to find include files, by looking for Xlib.h.
8881 # First, try using that file with no special directory specified.
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #include <X11/Xlib.h>
8885 _ACEOF
8886 if ac_fn_c_try_cpp "$LINENO"; then :
8887 # We can compile using X headers with no special include directory.
8888 ac_x_includes=
8889 else
8890 for ac_dir in $ac_x_header_dirs; do
8891 if test -r "$ac_dir/X11/Xlib.h"; then
8892 ac_x_includes=$ac_dir
8893 break
8894 fi
8895 done
8896 fi
8897 rm -f conftest.err conftest.$ac_ext
8898 fi # $ac_x_includes = no
8899
8900 if test "$ac_x_libraries" = no; then
8901 # Check for the libraries.
8902 # See if we find them without any special options.
8903 # Don't add to $LIBS permanently.
8904 ac_save_LIBS=$LIBS
8905 LIBS="-lX11 $LIBS"
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #include <X11/Xlib.h>
8909 int
8910 main ()
8911 {
8912 XrmInitialize ()
8913 ;
8914 return 0;
8915 }
8916 _ACEOF
8917 if ac_fn_c_try_link "$LINENO"; then :
8918 LIBS=$ac_save_LIBS
8919 # We can link X programs with no special library path.
8920 ac_x_libraries=
8921 else
8922 LIBS=$ac_save_LIBS
8923 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8924 do
8925 # Don't even attempt the hair of trying to link an X program!
8926 for ac_extension in a so sl dylib la dll; do
8927 if test -r "$ac_dir/libX11.$ac_extension"; then
8928 ac_x_libraries=$ac_dir
8929 break 2
8930 fi
8931 done
8932 done
8933 fi
8934 rm -f core conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8936 fi # $ac_x_libraries = no
8937
8938 case $ac_x_includes,$ac_x_libraries in #(
8939 no,* | *,no | *\'*)
8940 # Didn't find X, or a directory has "'" in its name.
8941 ac_cv_have_x="have_x=no";; #(
8942 *)
8943 # Record where we found X for the cache.
8944 ac_cv_have_x="have_x=yes\
8945 ac_x_includes='$ac_x_includes'\
8946 ac_x_libraries='$ac_x_libraries'"
8947 esac
8948 fi
8949 ;; #(
8950 *) have_x=yes;;
8951 esac
8952 eval "$ac_cv_have_x"
8953 fi # $with_x != no
8954
8955 if test "$have_x" != yes; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8957 $as_echo "$have_x" >&6; }
8958 no_x=yes
8959 else
8960 # If each of the values was on the command line, it overrides each guess.
8961 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8962 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8963 # Update the cache value to reflect the command line values.
8964 ac_cv_have_x="have_x=yes\
8965 ac_x_includes='$x_includes'\
8966 ac_x_libraries='$x_libraries'"
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8968 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8969 fi
8970
8971 if test "$no_x" = yes; then
8972 window_system=none
8973 else
8974 window_system=x11
8975 fi
8976
8977 ## Workaround for bug in autoconf <= 2.62.
8978 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8979 ## No need to do anything special for these standard directories.
8980 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8981
8982 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8983
8984 fi
8985
8986 LD_SWITCH_X_SITE_AUX=
8987 LD_SWITCH_X_SITE_AUX_RPATH=
8988 if test "${x_libraries}" != NONE; then
8989 if test -n "${x_libraries}"; then
8990 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8991 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8992 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8993 fi
8994 x_default_search_path=""
8995 x_search_path=${x_libraries}
8996 if test -z "${x_search_path}"; then
8997 x_search_path=/usr/lib
8998 fi
8999 for x_library in `echo ${x_search_path}: | \
9000 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9001 x_search_path="\
9002 ${x_library}/X11/%L/%T/%N%C%S:\
9003 ${x_library}/X11/%l/%T/%N%C%S:\
9004 ${x_library}/X11/%T/%N%C%S:\
9005 ${x_library}/X11/%L/%T/%N%S:\
9006 ${x_library}/X11/%l/%T/%N%S:\
9007 ${x_library}/X11/%T/%N%S"
9008 if test x"${x_default_search_path}" = x; then
9009 x_default_search_path=${x_search_path}
9010 else
9011 x_default_search_path="${x_search_path}:${x_default_search_path}"
9012 fi
9013 done
9014 fi
9015
9016
9017
9018 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9019 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9020 fi
9021
9022 if test x"${x_includes}" = x; then
9023 bitmapdir=/usr/include/X11/bitmaps
9024 else
9025 # accumulate include directories that have X11 bitmap subdirectories
9026 bmd_acc="dummyval"
9027 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9028 if test -d "${bmd}/X11/bitmaps"; then
9029 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9030 fi
9031 if test -d "${bmd}/bitmaps"; then
9032 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9033 fi
9034 done
9035 if test ${bmd_acc} != "dummyval"; then
9036 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9037 fi
9038 fi
9039
9040 HAVE_NS=no
9041 NS_IMPL_COCOA=no
9042 NS_IMPL_GNUSTEP=no
9043 tmp_CPPFLAGS="$CPPFLAGS"
9044 tmp_CFLAGS="$CFLAGS"
9045 CPPFLAGS="$CPPFLAGS -x objective-c"
9046 CFLAGS="$CFLAGS -x objective-c"
9047 TEMACS_LDFLAGS2="\${LDFLAGS}"
9048 if test "${with_ns}" != no; then
9049 if test "${opsys}" = darwin; then
9050 NS_IMPL_COCOA=yes
9051 ns_appdir=`pwd`/nextstep/Emacs.app
9052 ns_appbindir=${ns_appdir}/Contents/MacOS/
9053 ns_appresdir=${ns_appdir}/Contents/Resources
9054 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9055 elif test -f $GNUSTEP_CONFIG_FILE; then
9056 NS_IMPL_GNUSTEP=yes
9057 ns_appdir=`pwd`/nextstep/Emacs.app
9058 ns_appbindir=${ns_appdir}/
9059 ns_appresdir=${ns_appdir}/Resources
9060 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9061 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9062 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9063 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9064 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9065 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9066 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9067 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9068 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9069 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9070 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9071 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9072 LIB_STANDARD=
9073 START_FILES=
9074 TEMACS_LDFLAGS2=
9075 fi
9076 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9077 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9078 HAVE_NS=yes
9079 else
9080 as_fn_error "\`--with-ns' was specified, but the include
9081 files are missing or cannot be compiled." "$LINENO" 5
9082 fi
9083
9084
9085 NS_HAVE_NSINTEGER=yes
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 #include <Foundation/NSObjCRuntime.h>
9089 int
9090 main ()
9091 {
9092 NSInteger i;
9093 ;
9094 return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 ns_have_nsinteger=yes
9099 else
9100 ns_have_nsinteger=no
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 if test $ns_have_nsinteger = no; then
9104 NS_HAVE_NSINTEGER=no
9105 fi
9106 fi
9107
9108
9109 ns_frag=/dev/null
9110 NS_OBJ=
9111 NS_OBJC_OBJ=
9112 NS_SUPPORT=
9113 if test "${HAVE_NS}" = yes; then
9114 window_system=nextstep
9115 with_xft=no
9116 # set up packaging dirs
9117 exec_prefix=${ns_appbindir}
9118 libexecdir=${ns_appbindir}/libexec
9119 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9120 prefix=${ns_appresdir}
9121 fi
9122 ns_frag=$srcdir/src/ns.mk
9123 NS_OBJ="fontset.o fringe.o image.o"
9124 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9125 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9126 fi
9127 CFLAGS="$tmp_CFLAGS"
9128 CPPFLAGS="$tmp_CPPFLAGS"
9129
9130
9131
9132
9133
9134
9135 case "${window_system}" in
9136 x11 )
9137 HAVE_X_WINDOWS=yes
9138 HAVE_X11=yes
9139 case "${with_x_toolkit}" in
9140 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9141 motif ) USE_X_TOOLKIT=MOTIF ;;
9142 gtk ) with_gtk=yes
9143 USE_X_TOOLKIT=none ;;
9144 gtk3 ) with_gtk3=yes
9145 USE_X_TOOLKIT=none ;;
9146 no ) USE_X_TOOLKIT=none ;;
9147 * ) USE_X_TOOLKIT=maybe ;;
9148 esac
9149 ;;
9150 nextstep | none )
9151 HAVE_X_WINDOWS=no
9152 HAVE_X11=no
9153 USE_X_TOOLKIT=none
9154 ;;
9155 esac
9156
9157 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9158 # Extract the first word of "X", so it can be a program name with args.
9159 set dummy X; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 if test -n "$HAVE_XSERVER"; then
9166 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9167 else
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 for as_dir in $PATH
9170 do
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9175 ac_cv_prog_HAVE_XSERVER="true"
9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9178 fi
9179 done
9180 done
9181 IFS=$as_save_IFS
9182
9183 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9184 fi
9185 fi
9186 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9187 if test -n "$HAVE_XSERVER"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9189 $as_echo "$HAVE_XSERVER" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9193 fi
9194
9195
9196 if test "$HAVE_XSERVER" = true ||
9197 test -n "$DISPLAY" ||
9198 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9199 as_fn_error "You seem to be running X, but no X development libraries
9200 were found. You should install the relevant development files for X
9201 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9202 sure you have development files for image handling, i.e.
9203 tiff, gif, jpeg, png and xpm.
9204 If you are sure you want Emacs compiled without X window support, pass
9205 --without-x
9206 to configure." "$LINENO" 5
9207 fi
9208 fi
9209
9210 ### If we're using X11, we should use the X menu package.
9211 HAVE_MENUS=no
9212 case ${HAVE_X11} in
9213 yes ) HAVE_MENUS=yes ;;
9214 esac
9215
9216 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9217 # Assume not, until told otherwise.
9218 GNU_MALLOC=yes
9219 doug_lea_malloc=yes
9220 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9221 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9222
9223 else
9224 doug_lea_malloc=no
9225 fi
9226
9227 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9228 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
9229
9230 else
9231 doug_lea_malloc=no
9232 fi
9233
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9235 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9236 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 extern void (* __after_morecore_hook)();
9242 int
9243 main ()
9244 {
9245 __after_morecore_hook = 0
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251 emacs_cv_var___after_morecore_hook=yes
9252 else
9253 emacs_cv_var___after_morecore_hook=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9259 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9260 if test $emacs_cv_var___after_morecore_hook = no; then
9261 doug_lea_malloc=no
9262 fi
9263
9264
9265 system_malloc=no
9266 case "$opsys" in
9267 ## darwin ld insists on the use of malloc routines in the System framework.
9268 darwin|sol2-10) system_malloc=yes ;;
9269 esac
9270
9271 if test "${system_malloc}" = "yes"; then
9272
9273 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9274
9275 GNU_MALLOC=no
9276 GNU_MALLOC_reason="
9277 (The GNU allocators don't work with this system configuration.)"
9278 GMALLOC_OBJ=
9279 VMLIMIT_OBJ=
9280 else
9281 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9282 VMLIMIT_OBJ=vm-limit.o
9283 fi
9284
9285
9286
9287 if test "$doug_lea_malloc" = "yes" ; then
9288 if test "$GNU_MALLOC" = yes ; then
9289 GNU_MALLOC_reason="
9290 (Using Doug Lea's new malloc from the GNU C Library.)"
9291 fi
9292
9293 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9294
9295
9296 ## Use mmap directly for allocating larger buffers.
9297 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9298 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9299 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9300 case "$opsys" in
9301 gnu*) REL_ALLOC=no ;;
9302 esac
9303 fi
9304
9305 if test x"${REL_ALLOC}" = x; then
9306 REL_ALLOC=${GNU_MALLOC}
9307 fi
9308
9309 use_mmap_for_buffers=no
9310 case "$opsys" in
9311 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9312 esac
9313
9314
9315
9316
9317 for ac_header in $ac_header_list
9318 do :
9319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9320 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9321 "
9322 eval as_val=\$$as_ac_Header
9323 if test "x$as_val" = x""yes; then :
9324 cat >>confdefs.h <<_ACEOF
9325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9326 _ACEOF
9327
9328 fi
9329
9330 done
9331
9332
9333
9334
9335
9336
9337
9338
9339 for ac_func in getpagesize
9340 do :
9341 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9342 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9343 cat >>confdefs.h <<_ACEOF
9344 #define HAVE_GETPAGESIZE 1
9345 _ACEOF
9346
9347 fi
9348 done
9349
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9351 $as_echo_n "checking for working mmap... " >&6; }
9352 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 if test "$cross_compiling" = yes; then :
9356 ac_cv_func_mmap_fixed_mapped=no
9357 else
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360 $ac_includes_default
9361 /* malloc might have been renamed as rpl_malloc. */
9362 #undef malloc
9363
9364 /* Thanks to Mike Haertel and Jim Avera for this test.
9365 Here is a matrix of mmap possibilities:
9366 mmap private not fixed
9367 mmap private fixed at somewhere currently unmapped
9368 mmap private fixed at somewhere already mapped
9369 mmap shared not fixed
9370 mmap shared fixed at somewhere currently unmapped
9371 mmap shared fixed at somewhere already mapped
9372 For private mappings, we should verify that changes cannot be read()
9373 back from the file, nor mmap's back from the file at a different
9374 address. (There have been systems where private was not correctly
9375 implemented like the infamous i386 svr4.0, and systems where the
9376 VM page cache was not coherent with the file system buffer cache
9377 like early versions of FreeBSD and possibly contemporary NetBSD.)
9378 For shared mappings, we should conversely verify that changes get
9379 propagated back to all the places they're supposed to be.
9380
9381 Grep wants private fixed already mapped.
9382 The main things grep needs to know about mmap are:
9383 * does it exist and is it safe to write into the mmap'd area
9384 * how to use it (BSD variants) */
9385
9386 #include <fcntl.h>
9387 #include <sys/mman.h>
9388
9389 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9390 char *malloc ();
9391 #endif
9392
9393 /* This mess was copied from the GNU getpagesize.h. */
9394 #ifndef HAVE_GETPAGESIZE
9395 # ifdef _SC_PAGESIZE
9396 # define getpagesize() sysconf(_SC_PAGESIZE)
9397 # else /* no _SC_PAGESIZE */
9398 # ifdef HAVE_SYS_PARAM_H
9399 # include <sys/param.h>
9400 # ifdef EXEC_PAGESIZE
9401 # define getpagesize() EXEC_PAGESIZE
9402 # else /* no EXEC_PAGESIZE */
9403 # ifdef NBPG
9404 # define getpagesize() NBPG * CLSIZE
9405 # ifndef CLSIZE
9406 # define CLSIZE 1
9407 # endif /* no CLSIZE */
9408 # else /* no NBPG */
9409 # ifdef NBPC
9410 # define getpagesize() NBPC
9411 # else /* no NBPC */
9412 # ifdef PAGESIZE
9413 # define getpagesize() PAGESIZE
9414 # endif /* PAGESIZE */
9415 # endif /* no NBPC */
9416 # endif /* no NBPG */
9417 # endif /* no EXEC_PAGESIZE */
9418 # else /* no HAVE_SYS_PARAM_H */
9419 # define getpagesize() 8192 /* punt totally */
9420 # endif /* no HAVE_SYS_PARAM_H */
9421 # endif /* no _SC_PAGESIZE */
9422
9423 #endif /* no HAVE_GETPAGESIZE */
9424
9425 int
9426 main ()
9427 {
9428 char *data, *data2, *data3;
9429 const char *cdata2;
9430 int i, pagesize;
9431 int fd, fd2;
9432
9433 pagesize = getpagesize ();
9434
9435 /* First, make a file with some known garbage in it. */
9436 data = (char *) malloc (pagesize);
9437 if (!data)
9438 return 1;
9439 for (i = 0; i < pagesize; ++i)
9440 *(data + i) = rand ();
9441 umask (0);
9442 fd = creat ("conftest.mmap", 0600);
9443 if (fd < 0)
9444 return 2;
9445 if (write (fd, data, pagesize) != pagesize)
9446 return 3;
9447 close (fd);
9448
9449 /* Next, check that the tail of a page is zero-filled. File must have
9450 non-zero length, otherwise we risk SIGBUS for entire page. */
9451 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9452 if (fd2 < 0)
9453 return 4;
9454 cdata2 = "";
9455 if (write (fd2, cdata2, 1) != 1)
9456 return 5;
9457 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9458 if (data2 == MAP_FAILED)
9459 return 6;
9460 for (i = 0; i < pagesize; ++i)
9461 if (*(data2 + i))
9462 return 7;
9463 close (fd2);
9464 if (munmap (data2, pagesize))
9465 return 8;
9466
9467 /* Next, try to mmap the file at a fixed address which already has
9468 something else allocated at it. If we can, also make sure that
9469 we see the same garbage. */
9470 fd = open ("conftest.mmap", O_RDWR);
9471 if (fd < 0)
9472 return 9;
9473 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9474 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9475 return 10;
9476 for (i = 0; i < pagesize; ++i)
9477 if (*(data + i) != *(data2 + i))
9478 return 11;
9479
9480 /* Finally, make sure that changes to the mapped area do not
9481 percolate back to the file as seen by read(). (This is a bug on
9482 some variants of i386 svr4.0.) */
9483 for (i = 0; i < pagesize; ++i)
9484 *(data2 + i) = *(data2 + i) + 1;
9485 data3 = (char *) malloc (pagesize);
9486 if (!data3)
9487 return 12;
9488 if (read (fd, data3, pagesize) != pagesize)
9489 return 13;
9490 for (i = 0; i < pagesize; ++i)
9491 if (*(data + i) != *(data3 + i))
9492 return 14;
9493 close (fd);
9494 return 0;
9495 }
9496 _ACEOF
9497 if ac_fn_c_try_run "$LINENO"; then :
9498 ac_cv_func_mmap_fixed_mapped=yes
9499 else
9500 ac_cv_func_mmap_fixed_mapped=no
9501 fi
9502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9503 conftest.$ac_objext conftest.beam conftest.$ac_ext
9504 fi
9505
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9508 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9509 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9510
9511 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9512
9513 fi
9514 rm -f conftest.mmap conftest.txt
9515
9516 if test $use_mmap_for_buffers = yes; then
9517
9518 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9519
9520 REL_ALLOC=no
9521 fi
9522
9523 LIBS="$LIBS_SYSTEM $LIBS"
9524
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9526 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9527 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
9529 else
9530 ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-ldnet $LIBS"
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534
9535 /* Override any GCC internal prototype to avoid an error.
9536 Use char because int might match the return type of a GCC
9537 builtin and then its argument prototype would still apply. */
9538 #ifdef __cplusplus
9539 extern "C"
9540 #endif
9541 char dnet_ntoa ();
9542 int
9543 main ()
9544 {
9545 return dnet_ntoa ();
9546 ;
9547 return 0;
9548 }
9549 _ACEOF
9550 if ac_fn_c_try_link "$LINENO"; then :
9551 ac_cv_lib_dnet_dnet_ntoa=yes
9552 else
9553 ac_cv_lib_dnet_dnet_ntoa=no
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 LIBS=$ac_check_lib_save_LIBS
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9560 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9561 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
9562 cat >>confdefs.h <<_ACEOF
9563 #define HAVE_LIBDNET 1
9564 _ACEOF
9565
9566 LIBS="-ldnet $LIBS"
9567
9568 fi
9569
9570
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9572 $as_echo_n "checking for main in -lXbsd... " >&6; }
9573 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
9574 $as_echo_n "(cached) " >&6
9575 else
9576 ac_check_lib_save_LIBS=$LIBS
9577 LIBS="-lXbsd $LIBS"
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580
9581
9582 int
9583 main ()
9584 {
9585 return main ();
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 if ac_fn_c_try_link "$LINENO"; then :
9591 ac_cv_lib_Xbsd_main=yes
9592 else
9593 ac_cv_lib_Xbsd_main=no
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext \
9596 conftest$ac_exeext conftest.$ac_ext
9597 LIBS=$ac_check_lib_save_LIBS
9598 fi
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9600 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9601 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
9602 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9603 fi
9604
9605
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9607 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9608 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 ac_check_lib_save_LIBS=$LIBS
9612 LIBS="-lpthreads $LIBS"
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 char cma_open ();
9623 int
9624 main ()
9625 {
9626 return cma_open ();
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 if ac_fn_c_try_link "$LINENO"; then :
9632 ac_cv_lib_pthreads_cma_open=yes
9633 else
9634 ac_cv_lib_pthreads_cma_open=no
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9639 fi
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9641 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9642 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
9643 cat >>confdefs.h <<_ACEOF
9644 #define HAVE_LIBPTHREADS 1
9645 _ACEOF
9646
9647 LIBS="-lpthreads $LIBS"
9648
9649 fi
9650
9651
9652 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9653 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9654 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9655 ## added to LIBS in configure would never contain the pthreads part,
9656 ## but the value used in Makefiles might. FIXME?
9657 ##
9658 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9659 ## be harmless on older versions of X where it happens to exist.
9660 test "$opsys" = "aix4-2" && \
9661 test $ac_cv_lib_pthreads_cma_open = yes && \
9662 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9663
9664
9665 case ${host_os} in
9666 aix*)
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9668 $as_echo_n "checking for -bbigtoc option... " >&6; }
9669 if test "${gdb_cv_bigtoc+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672
9673 case $GCC in
9674 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9675 *) gdb_cv_bigtoc=-bbigtoc ;;
9676 esac
9677
9678 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681
9682 int
9683 main ()
9684 {
9685 int i;
9686 ;
9687 return 0;
9688 }
9689 _ACEOF
9690 if ac_fn_c_try_link "$LINENO"; then :
9691
9692 else
9693 gdb_cv_bigtoc=
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697
9698 fi
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9700 $as_echo "$gdb_cv_bigtoc" >&6; }
9701 ;;
9702 esac
9703
9704 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9705 # used for the tests that follow. We set them back to REAL_CFLAGS and
9706 # REAL_CPPFLAGS later on.
9707
9708 REAL_CFLAGS="$CFLAGS"
9709 REAL_CPPFLAGS="$CPPFLAGS"
9710
9711 if test "${HAVE_X11}" = "yes"; then
9712 DEFS="$C_SWITCH_X_SITE $DEFS"
9713 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9714 LIBS="-lX11 $LIBS"
9715 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9716 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9717
9718 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9719 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9720 # but it's more convenient here to set LD_RUN_PATH
9721 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9722 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9723 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9724 export LD_RUN_PATH
9725 fi
9726
9727 if test "${opsys}" = "gnu-linux"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9729 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732
9733 int
9734 main ()
9735 {
9736 XOpenDisplay ("foo");
9737 ;
9738 return 0;
9739 }
9740 _ACEOF
9741 if ac_fn_c_try_link "$LINENO"; then :
9742 xlinux_first_failure=no
9743 else
9744 xlinux_first_failure=yes
9745 fi
9746 rm -f core conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 if test "${xlinux_first_failure}" = "yes"; then
9749 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9750 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9751 OLD_CPPFLAGS="$CPPFLAGS"
9752 OLD_LIBS="$LIBS"
9753 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9754 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9755 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9756 LIBS="$LIBS -b i486-linuxaout"
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759
9760 int
9761 main ()
9762 {
9763 XOpenDisplay ("foo");
9764 ;
9765 return 0;
9766 }
9767 _ACEOF
9768 if ac_fn_c_try_link "$LINENO"; then :
9769 xlinux_second_failure=no
9770 else
9771 xlinux_second_failure=yes
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775 if test "${xlinux_second_failure}" = "yes"; then
9776 # If we get the same failure with -b, there is no use adding -b.
9777 # So take it out. This plays safe.
9778 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9779 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9780 CPPFLAGS="$OLD_CPPFLAGS"
9781 LIBS="$OLD_LIBS"
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9784 else
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 $as_echo "yes" >&6; }
9787 fi
9788 else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9791 fi
9792 fi
9793
9794 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9795 # header files included from there.
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9797 $as_echo_n "checking for Xkb... " >&6; }
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 #include <X11/Xlib.h>
9801 #include <X11/XKBlib.h>
9802 int
9803 main ()
9804 {
9805 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9806 ;
9807 return 0;
9808 }
9809 _ACEOF
9810 if ac_fn_c_try_link "$LINENO"; then :
9811 emacs_xkb=yes
9812 else
9813 emacs_xkb=no
9814 fi
9815 rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9818 $as_echo "$emacs_xkb" >&6; }
9819 if test $emacs_xkb = yes; then
9820
9821 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9822
9823 fi
9824
9825 for ac_func in XrmSetDatabase XScreenResourceString \
9826 XScreenNumberOfScreen XSetWMProtocols
9827 do :
9828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9830 eval as_val=\$$as_ac_var
9831 if test "x$as_val" = x""yes; then :
9832 cat >>confdefs.h <<_ACEOF
9833 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9834 _ACEOF
9835
9836 fi
9837 done
9838
9839 fi
9840
9841 if test "${window_system}" = "x11"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9843 $as_echo_n "checking X11 version 6... " >&6; }
9844 if test "${emacs_cv_x11_version_6+set}" = set; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 #include <X11/Xlib.h>
9850 int
9851 main ()
9852 {
9853 #if XlibSpecificationRelease < 6
9854 fail;
9855 #endif
9856
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9862 emacs_cv_x11_version_6=yes
9863 else
9864 emacs_cv_x11_version_6=no
9865 fi
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 fi
9869
9870 if test $emacs_cv_x11_version_6 = yes; then
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9872 $as_echo "6 or newer" >&6; }
9873
9874 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9875
9876
9877 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9878
9879 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9880 ## XIM support.
9881 case "$opsys" in
9882 sol2-*) : ;;
9883 *)
9884 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9885
9886 ;;
9887 esac
9888 else
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9890 $as_echo "before 6" >&6; }
9891 fi
9892 fi
9893
9894
9895 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9896 HAVE_RSVG=no
9897 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9898 if test "${with_rsvg}" != "no"; then
9899 RSVG_REQUIRED=2.11.0
9900 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9901
9902
9903 succeeded=no
9904
9905 # Extract the first word of "pkg-config", so it can be a program name with args.
9906 set dummy pkg-config; ac_word=$2
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9908 $as_echo_n "checking for $ac_word... " >&6; }
9909 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9910 $as_echo_n "(cached) " >&6
9911 else
9912 case $PKG_CONFIG in
9913 [\\/]* | ?:[\\/]*)
9914 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9915 ;;
9916 *)
9917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918 for as_dir in $PATH
9919 do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9924 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9926 break 2
9927 fi
9928 done
9929 done
9930 IFS=$as_save_IFS
9931
9932 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9933 ;;
9934 esac
9935 fi
9936 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9937 if test -n "$PKG_CONFIG"; then
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9939 $as_echo "$PKG_CONFIG" >&6; }
9940 else
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942 $as_echo "no" >&6; }
9943 fi
9944
9945
9946
9947 if test "$PKG_CONFIG" = "no" ; then
9948 :
9949 else
9950 PKG_CONFIG_MIN_VERSION=0.9.0
9951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9953 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9954
9955 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9957 $as_echo "yes" >&6; }
9958 succeeded=yes
9959
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9961 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9962 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9964 $as_echo "$RSVG_CFLAGS" >&6; }
9965
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9967 $as_echo_n "checking RSVG_LIBS... " >&6; }
9968 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9970 $as_echo "$RSVG_LIBS" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9974 RSVG_CFLAGS=""
9975 RSVG_LIBS=""
9976 ## If we have a custom action on failure, don't print errors, but
9977 ## do set a variable so people can do so.
9978 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9979
9980 fi
9981
9982
9983
9984 else
9985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9987 fi
9988 fi
9989
9990 if test $succeeded = yes; then
9991 HAVE_RSVG=yes
9992 else
9993 :
9994 fi
9995
9996
9997
9998
9999 if test $HAVE_RSVG = yes; then
10000
10001 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
10002
10003 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10004 LIBS="$RSVG_LIBS $LIBS"
10005 fi
10006 fi
10007 fi
10008
10009 HAVE_IMAGEMAGICK=no
10010 if test "${HAVE_X11}" = "yes"; then
10011 if test "${with_imagemagick}" != "no"; then
10012 ## 6.2.8 is the earliest version known to work, but earlier versions
10013 ## might work - let us know if you find one.
10014 ## 6.0.7 does not work. See bug#7955.
10015 IMAGEMAGICK_MODULE="Wand >= 6.2.8"
10016
10017 succeeded=no
10018
10019 # Extract the first word of "pkg-config", so it can be a program name with args.
10020 set dummy pkg-config; ac_word=$2
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10022 $as_echo_n "checking for $ac_word... " >&6; }
10023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 case $PKG_CONFIG in
10027 [\\/]* | ?:[\\/]*)
10028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10029 ;;
10030 *)
10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10032 for as_dir in $PATH
10033 do
10034 IFS=$as_save_IFS
10035 test -z "$as_dir" && as_dir=.
10036 for ac_exec_ext in '' $ac_executable_extensions; do
10037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10040 break 2
10041 fi
10042 done
10043 done
10044 IFS=$as_save_IFS
10045
10046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10047 ;;
10048 esac
10049 fi
10050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10051 if test -n "$PKG_CONFIG"; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10053 $as_echo "$PKG_CONFIG" >&6; }
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10057 fi
10058
10059
10060
10061 if test "$PKG_CONFIG" = "no" ; then
10062 :
10063 else
10064 PKG_CONFIG_MIN_VERSION=0.9.0
10065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10067 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10068
10069 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10071 $as_echo "yes" >&6; }
10072 succeeded=yes
10073
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10075 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10076 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10078 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10081 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10082 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10084 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 IMAGEMAGICK_CFLAGS=""
10089 IMAGEMAGICK_LIBS=""
10090 ## If we have a custom action on failure, don't print errors, but
10091 ## do set a variable so people can do so.
10092 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10093
10094 fi
10095
10096
10097
10098 else
10099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10101 fi
10102 fi
10103
10104 if test $succeeded = yes; then
10105 HAVE_IMAGEMAGICK=yes
10106 else
10107 :
10108 fi
10109
10110
10111
10112
10113 if test $HAVE_IMAGEMAGICK = yes; then
10114
10115 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10116
10117 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10118 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10119 for ac_func in MagickExportImagePixels
10120 do :
10121 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10122 if test "x$ac_cv_func_MagickExportImagePixels" = x""yes; then :
10123 cat >>confdefs.h <<_ACEOF
10124 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10125 _ACEOF
10126
10127 fi
10128 done
10129
10130 fi
10131 fi
10132 fi
10133
10134
10135 HAVE_GTK=no
10136 if test "${with_gtk3}" = "yes"; then
10137 GLIB_REQUIRED=2.28
10138 GTK_REQUIRED=3.0
10139 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10140
10141
10142 succeeded=no
10143
10144 # Extract the first word of "pkg-config", so it can be a program name with args.
10145 set dummy pkg-config; ac_word=$2
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147 $as_echo_n "checking for $ac_word... " >&6; }
10148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10149 $as_echo_n "(cached) " >&6
10150 else
10151 case $PKG_CONFIG in
10152 [\\/]* | ?:[\\/]*)
10153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10154 ;;
10155 *)
10156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10157 for as_dir in $PATH
10158 do
10159 IFS=$as_save_IFS
10160 test -z "$as_dir" && as_dir=.
10161 for ac_exec_ext in '' $ac_executable_extensions; do
10162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10165 break 2
10166 fi
10167 done
10168 done
10169 IFS=$as_save_IFS
10170
10171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10172 ;;
10173 esac
10174 fi
10175 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10176 if test -n "$PKG_CONFIG"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10178 $as_echo "$PKG_CONFIG" >&6; }
10179 else
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10182 fi
10183
10184
10185
10186 if test "$PKG_CONFIG" = "no" ; then
10187 pkg_check_gtk=no
10188 else
10189 PKG_CONFIG_MIN_VERSION=0.9.0
10190 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10192 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10193
10194 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10196 $as_echo "yes" >&6; }
10197 succeeded=yes
10198
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10200 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10201 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10203 $as_echo "$GTK_CFLAGS" >&6; }
10204
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10206 $as_echo_n "checking GTK_LIBS... " >&6; }
10207 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10209 $as_echo "$GTK_LIBS" >&6; }
10210 else
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10213 GTK_CFLAGS=""
10214 GTK_LIBS=""
10215 ## If we have a custom action on failure, don't print errors, but
10216 ## do set a variable so people can do so.
10217 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10218
10219 fi
10220
10221
10222
10223 else
10224 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10225 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10226 fi
10227 fi
10228
10229 if test $succeeded = yes; then
10230 pkg_check_gtk=yes
10231 else
10232 pkg_check_gtk=no
10233 fi
10234
10235 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10236 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10237 fi
10238
10239 $as_echo "#define HAVE_GTK3 1" >>confdefs.h
10240
10241 fi
10242
10243 if test "$pkg_check_gtk" != "yes"; then
10244 HAVE_GTK=no
10245 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10246 GLIB_REQUIRED=2.6
10247 GTK_REQUIRED=2.6
10248 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10249
10250
10251 succeeded=no
10252
10253 # Extract the first word of "pkg-config", so it can be a program name with args.
10254 set dummy pkg-config; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 case $PKG_CONFIG in
10261 [\\/]* | ?:[\\/]*)
10262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10263 ;;
10264 *)
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10267 do
10268 IFS=$as_save_IFS
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10272 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 break 2
10275 fi
10276 done
10277 done
10278 IFS=$as_save_IFS
10279
10280 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10281 ;;
10282 esac
10283 fi
10284 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10285 if test -n "$PKG_CONFIG"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10287 $as_echo "$PKG_CONFIG" >&6; }
10288 else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10291 fi
10292
10293
10294
10295 if test "$PKG_CONFIG" = "no" ; then
10296 pkg_check_gtk=no
10297 else
10298 PKG_CONFIG_MIN_VERSION=0.9.0
10299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10301 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10302
10303 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; }
10306 succeeded=yes
10307
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10309 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10310 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10312 $as_echo "$GTK_CFLAGS" >&6; }
10313
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10315 $as_echo_n "checking GTK_LIBS... " >&6; }
10316 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10318 $as_echo "$GTK_LIBS" >&6; }
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 GTK_CFLAGS=""
10323 GTK_LIBS=""
10324 ## If we have a custom action on failure, don't print errors, but
10325 ## do set a variable so people can do so.
10326 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10327
10328 fi
10329
10330
10331
10332 else
10333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10335 fi
10336 fi
10337
10338 if test $succeeded = yes; then
10339 pkg_check_gtk=yes
10340 else
10341 pkg_check_gtk=no
10342 fi
10343
10344 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10345 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
10346 fi
10347 fi
10348 fi
10349
10350 GTK_OBJ=
10351 if test x"$pkg_check_gtk" = xyes; then
10352
10353
10354
10355 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10356 CFLAGS="$CFLAGS $GTK_CFLAGS"
10357 LIBS="$GTK_LIBS $LIBS"
10358 GTK_COMPILES=no
10359 for ac_func in gtk_main
10360 do :
10361 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10362 if test "x$ac_cv_func_gtk_main" = x""yes; then :
10363 cat >>confdefs.h <<_ACEOF
10364 #define HAVE_GTK_MAIN 1
10365 _ACEOF
10366 GTK_COMPILES=yes
10367 fi
10368 done
10369
10370 if test "${GTK_COMPILES}" != "yes"; then
10371 if test "$USE_X_TOOLKIT" != "maybe"; then
10372 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10373 fi
10374 else
10375 HAVE_GTK=yes
10376
10377 $as_echo "#define USE_GTK 1" >>confdefs.h
10378
10379 GTK_OBJ=gtkutil.o
10380 USE_X_TOOLKIT=none
10381 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10382 :
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10385 closing open displays. This is no problem if you just use
10386 one display, but if you use more than one and close one of them
10387 Emacs may crash." >&5
10388 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10389 closing open displays. This is no problem if you just use
10390 one display, but if you use more than one and close one of them
10391 Emacs may crash." >&2;}
10392 sleep 3
10393 fi
10394 fi
10395
10396 fi
10397
10398
10399
10400 if test "${HAVE_GTK}" = "yes"; then
10401
10402 if test "$with_toolkit_scroll_bars" != no; then
10403 with_toolkit_scroll_bars=yes
10404 fi
10405
10406 HAVE_GTK_FILE_SELECTION=no
10407 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10408 #include <gtk/gtk.h>
10409 "
10410 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
10411 HAVE_GTK_FILE_SELECTION=yes
10412 else
10413 HAVE_GTK_FILE_SELECTION=no
10414 fi
10415
10416 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10417 for ac_func in gtk_file_selection_new
10418 do :
10419 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10420 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
10421 cat >>confdefs.h <<_ACEOF
10422 #define HAVE_GTK_FILE_SELECTION_NEW 1
10423 _ACEOF
10424
10425 fi
10426 done
10427
10428 fi
10429
10430 HAVE_GTK_AND_PTHREAD=no
10431 for ac_header in pthread.h
10432 do :
10433 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10434 if test "x$ac_cv_header_pthread_h" = x""yes; then :
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_PTHREAD_H 1
10437 _ACEOF
10438
10439 fi
10440
10441 done
10442
10443 if test "$ac_cv_header_pthread_h"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10445 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10446 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 ac_check_lib_save_LIBS=$LIBS
10450 LIBS="-lpthread $LIBS"
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453
10454 /* Override any GCC internal prototype to avoid an error.
10455 Use char because int might match the return type of a GCC
10456 builtin and then its argument prototype would still apply. */
10457 #ifdef __cplusplus
10458 extern "C"
10459 #endif
10460 char pthread_self ();
10461 int
10462 main ()
10463 {
10464 return pthread_self ();
10465 ;
10466 return 0;
10467 }
10468 _ACEOF
10469 if ac_fn_c_try_link "$LINENO"; then :
10470 ac_cv_lib_pthread_pthread_self=yes
10471 else
10472 ac_cv_lib_pthread_pthread_self=no
10473 fi
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_lib_save_LIBS
10477 fi
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10479 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10480 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
10481 HAVE_GTK_AND_PTHREAD=yes
10482 fi
10483
10484 fi
10485 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10486 case "${canonical}" in
10487 *-hpux*) ;;
10488 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10489 esac
10490
10491 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10492
10493 fi
10494
10495 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10496 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10497 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10498 gtk_orientable_set_orientation
10499 do :
10500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10501 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10502 eval as_val=\$$as_ac_var
10503 if test "x$as_val" = x""yes; then :
10504 cat >>confdefs.h <<_ACEOF
10505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10506 _ACEOF
10507
10508 fi
10509 done
10510
10511
10512 fi
10513
10514 HAVE_DBUS=no
10515 DBUS_OBJ=
10516 if test "${with_dbus}" = "yes"; then
10517
10518 succeeded=no
10519
10520 # Extract the first word of "pkg-config", so it can be a program name with args.
10521 set dummy pkg-config; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 case $PKG_CONFIG in
10528 [\\/]* | ?:[\\/]*)
10529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10530 ;;
10531 *)
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533 for as_dir in $PATH
10534 do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10542 fi
10543 done
10544 done
10545 IFS=$as_save_IFS
10546
10547 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10548 ;;
10549 esac
10550 fi
10551 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10552 if test -n "$PKG_CONFIG"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10554 $as_echo "$PKG_CONFIG" >&6; }
10555 else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557 $as_echo "no" >&6; }
10558 fi
10559
10560
10561
10562 if test "$PKG_CONFIG" = "no" ; then
10563 HAVE_DBUS=no
10564 else
10565 PKG_CONFIG_MIN_VERSION=0.9.0
10566 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10568 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10569
10570 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; }
10573 succeeded=yes
10574
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10576 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10577 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10579 $as_echo "$DBUS_CFLAGS" >&6; }
10580
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10582 $as_echo_n "checking DBUS_LIBS... " >&6; }
10583 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10585 $as_echo "$DBUS_LIBS" >&6; }
10586 else
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10589 DBUS_CFLAGS=""
10590 DBUS_LIBS=""
10591 ## If we have a custom action on failure, don't print errors, but
10592 ## do set a variable so people can do so.
10593 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10594
10595 fi
10596
10597
10598
10599 else
10600 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10601 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10602 fi
10603 fi
10604
10605 if test $succeeded = yes; then
10606 HAVE_DBUS=yes
10607 else
10608 HAVE_DBUS=no
10609 fi
10610
10611 if test "$HAVE_DBUS" = yes; then
10612 LIBS="$LIBS $DBUS_LIBS"
10613
10614 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10615
10616 for ac_func in dbus_watch_get_unix_fd
10617 do :
10618 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10619 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
10620 cat >>confdefs.h <<_ACEOF
10621 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10622 _ACEOF
10623
10624 fi
10625 done
10626
10627 DBUS_OBJ=dbusbind.o
10628 fi
10629 fi
10630
10631
10632 HAVE_GCONF=no
10633 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10634
10635 succeeded=no
10636
10637 # Extract the first word of "pkg-config", so it can be a program name with args.
10638 set dummy pkg-config; ac_word=$2
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10640 $as_echo_n "checking for $ac_word... " >&6; }
10641 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 case $PKG_CONFIG in
10645 [\\/]* | ?:[\\/]*)
10646 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10647 ;;
10648 *)
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10651 do
10652 IFS=$as_save_IFS
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10658 break 2
10659 fi
10660 done
10661 done
10662 IFS=$as_save_IFS
10663
10664 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10665 ;;
10666 esac
10667 fi
10668 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10669 if test -n "$PKG_CONFIG"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10671 $as_echo "$PKG_CONFIG" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10675 fi
10676
10677
10678
10679 if test "$PKG_CONFIG" = "no" ; then
10680 HAVE_GCONF=no
10681 else
10682 PKG_CONFIG_MIN_VERSION=0.9.0
10683 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10685 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10686
10687 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10689 $as_echo "yes" >&6; }
10690 succeeded=yes
10691
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10693 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10694 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10696 $as_echo "$GCONF_CFLAGS" >&6; }
10697
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10699 $as_echo_n "checking GCONF_LIBS... " >&6; }
10700 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10702 $as_echo "$GCONF_LIBS" >&6; }
10703 else
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10706 GCONF_CFLAGS=""
10707 GCONF_LIBS=""
10708 ## If we have a custom action on failure, don't print errors, but
10709 ## do set a variable so people can do so.
10710 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10711
10712 fi
10713
10714
10715
10716 else
10717 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10718 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10719 fi
10720 fi
10721
10722 if test $succeeded = yes; then
10723 HAVE_GCONF=yes
10724 else
10725 HAVE_GCONF=no
10726 fi
10727
10728 if test "$HAVE_GCONF" = yes; then
10729
10730 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10731
10732 for ac_func in g_type_init
10733 do :
10734 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10735 if test "x$ac_cv_func_g_type_init" = x""yes; then :
10736 cat >>confdefs.h <<_ACEOF
10737 #define HAVE_G_TYPE_INIT 1
10738 _ACEOF
10739
10740 fi
10741 done
10742
10743 fi
10744 fi
10745
10746 HAVE_LIBSELINUX=no
10747 LIBSELINUX_LIBS=
10748 if test "${with_selinux}" = "yes"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10750 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10751 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 ac_check_lib_save_LIBS=$LIBS
10755 LIBS="-lselinux $LIBS"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char lgetfilecon ();
10766 int
10767 main ()
10768 {
10769 return lgetfilecon ();
10770 ;
10771 return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775 ac_cv_lib_selinux_lgetfilecon=yes
10776 else
10777 ac_cv_lib_selinux_lgetfilecon=no
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
10781 LIBS=$ac_check_lib_save_LIBS
10782 fi
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10784 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10785 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
10786 HAVE_LIBSELINUX=yes
10787 else
10788 HAVE_LIBSELINUX=no
10789 fi
10790
10791 if test "$HAVE_LIBSELINUX" = yes; then
10792
10793 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10794
10795 LIBSELINUX_LIBS=-lselinux
10796 fi
10797 fi
10798
10799
10800 HAVE_GNUTLS=no
10801 if test "${with_gnutls}" = "yes" ; then
10802
10803 succeeded=no
10804
10805 # Extract the first word of "pkg-config", so it can be a program name with args.
10806 set dummy pkg-config; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 case $PKG_CONFIG in
10813 [\\/]* | ?:[\\/]*)
10814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10815 ;;
10816 *)
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10819 do
10820 IFS=$as_save_IFS
10821 test -z "$as_dir" && as_dir=.
10822 for ac_exec_ext in '' $ac_executable_extensions; do
10823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826 break 2
10827 fi
10828 done
10829 done
10830 IFS=$as_save_IFS
10831
10832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10833 ;;
10834 esac
10835 fi
10836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10837 if test -n "$PKG_CONFIG"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10839 $as_echo "$PKG_CONFIG" >&6; }
10840 else
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10842 $as_echo "no" >&6; }
10843 fi
10844
10845
10846
10847 if test "$PKG_CONFIG" = "no" ; then
10848 HAVE_GNUTLS=no
10849 else
10850 PKG_CONFIG_MIN_VERSION=0.9.0
10851 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10853 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10854
10855 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10857 $as_echo "yes" >&6; }
10858 succeeded=yes
10859
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10861 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10862 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10864 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10865
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10867 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10868 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10870 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10871 else
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10873 $as_echo "no" >&6; }
10874 LIBGNUTLS_CFLAGS=""
10875 LIBGNUTLS_LIBS=""
10876 ## If we have a custom action on failure, don't print errors, but
10877 ## do set a variable so people can do so.
10878 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10879
10880 fi
10881
10882
10883
10884 else
10885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10887 fi
10888 fi
10889
10890 if test $succeeded = yes; then
10891 HAVE_GNUTLS=yes
10892 else
10893 HAVE_GNUTLS=no
10894 fi
10895
10896 if test "${HAVE_GNUTLS}" = "yes"; then
10897
10898 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10899
10900 fi
10901 fi
10902
10903
10904
10905 HAVE_XAW3D=no
10906 LUCID_LIBW=
10907 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10908 if test "$with_xaw3d" != no; then
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10910 $as_echo_n "checking for xaw3d... " >&6; }
10911 if test "${emacs_cv_xaw3d+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916
10917 #include <X11/Intrinsic.h>
10918 #include <X11/Xaw3d/Simple.h>
10919 int
10920 main ()
10921 {
10922
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 if ac_fn_c_try_link "$LINENO"; then :
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10929 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10930 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then :
10931 $as_echo_n "(cached) " >&6
10932 else
10933 ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-lXaw3d $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char XawScrollbarSetThumb ();
10945 int
10946 main ()
10947 {
10948 return XawScrollbarSetThumb ();
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10955 else
10956 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10963 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10964 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then :
10965 emacs_cv_xaw3d=yes
10966 else
10967 emacs_cv_xaw3d=no
10968 fi
10969
10970 else
10971 emacs_cv_xaw3d=no
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 fi
10976
10977 else
10978 emacs_cv_xaw3d=no
10979 fi
10980 if test $emacs_cv_xaw3d = yes; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10982 $as_echo "yes; using Lucid toolkit" >&6; }
10983 USE_X_TOOLKIT=LUCID
10984 HAVE_XAW3D=yes
10985 LUCID_LIBW=-lXaw3d
10986
10987 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10988
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10993 $as_echo_n "checking for libXaw... " >&6; }
10994 if test "${emacs_cv_xaw+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
10999
11000 #include <X11/Intrinsic.h>
11001 #include <X11/Xaw/Simple.h>
11002 int
11003 main ()
11004 {
11005
11006 ;
11007 return 0;
11008 }
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 emacs_cv_xaw=yes
11012 else
11013 emacs_cv_xaw=no
11014 fi
11015 rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017 fi
11018
11019 if test $emacs_cv_xaw = yes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
11021 $as_echo "yes; using Lucid toolkit" >&6; }
11022 USE_X_TOOLKIT=LUCID
11023 LUCID_LIBW=-lXaw
11024 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11025 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
11028 $as_echo "no; do not use toolkit by default" >&6; }
11029 USE_X_TOOLKIT=none
11030 fi
11031 fi
11032 fi
11033
11034 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11035
11036 LIBXTR6=
11037 if test "${USE_X_TOOLKIT}" != "none"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
11039 $as_echo_n "checking X11 toolkit version... " >&6; }
11040 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045 #include <X11/Intrinsic.h>
11046 int
11047 main ()
11048 {
11049 #if XtSpecificationRelease < 6
11050 fail;
11051 #endif
11052
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 emacs_cv_x11_toolkit_version_6=yes
11059 else
11060 emacs_cv_x11_toolkit_version_6=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 fi
11065
11066 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11067 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11069 $as_echo "6 or newer" >&6; }
11070
11071 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11072
11073 LIBXTR6="-lSM -lICE"
11074 case "$opsys" in
11075 ## Use libw.a along with X11R6 Xt.
11076 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11077 esac
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11080 $as_echo "before 6" >&6; }
11081 fi
11082
11083 OLDLIBS="$LIBS"
11084 if test x$HAVE_X11XTR6 = xyes; then
11085 LIBS="-lXt -lSM -lICE $LIBS"
11086 else
11087 LIBS="-lXt $LIBS"
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11090 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11091 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 ac_check_lib_save_LIBS=$LIBS
11095 LIBS="-lXmu $LIBS"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11098
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11102 #ifdef __cplusplus
11103 extern "C"
11104 #endif
11105 char XmuConvertStandardSelection ();
11106 int
11107 main ()
11108 {
11109 return XmuConvertStandardSelection ();
11110 ;
11111 return 0;
11112 }
11113 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11116 else
11117 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11118 fi
11119 rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11121 LIBS=$ac_check_lib_save_LIBS
11122 fi
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11124 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11125 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
11126 cat >>confdefs.h <<_ACEOF
11127 #define HAVE_LIBXMU 1
11128 _ACEOF
11129
11130 LIBS="-lXmu $LIBS"
11131
11132 fi
11133
11134 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11135 fi
11136
11137
11138 LIBXMU=-lXmu
11139 case $opsys in
11140 ## These systems don't supply Xmu.
11141 hpux* | aix4-2 )
11142 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11143 ;;
11144 esac
11145
11146
11147 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11148 if test "${HAVE_X11}" = "yes"; then
11149 if test "${USE_X_TOOLKIT}" != "none"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11151 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11152 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11154 else
11155 ac_check_lib_save_LIBS=$LIBS
11156 LIBS="-lXext $LIBS"
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char XShapeQueryExtension ();
11167 int
11168 main ()
11169 {
11170 return XShapeQueryExtension ();
11171 ;
11172 return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 ac_cv_lib_Xext_XShapeQueryExtension=yes
11177 else
11178 ac_cv_lib_Xext_XShapeQueryExtension=no
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11183 fi
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11185 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11186 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_LIBXEXT 1
11189 _ACEOF
11190
11191 LIBS="-lXext $LIBS"
11192
11193 fi
11194
11195 fi
11196 fi
11197
11198 LIBXP=
11199 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11201 $as_echo_n "checking for Motif version 2.1... " >&6; }
11202 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11207 #include <Xm/Xm.h>
11208 int
11209 main ()
11210 {
11211 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11212 int x = 5;
11213 #else
11214 Motif version prior to 2.1.
11215 #endif
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_c_try_compile "$LINENO"; then :
11221 emacs_cv_motif_version_2_1=yes
11222 else
11223 emacs_cv_motif_version_2_1=no
11224 fi
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 fi
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11228 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11229 if test $emacs_cv_motif_version_2_1 = yes; then
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11231 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11232 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
11233 $as_echo_n "(cached) " >&6
11234 else
11235 ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-lXp $LIBS"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char XpCreateContext ();
11247 int
11248 main ()
11249 {
11250 return XpCreateContext ();
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256 ac_cv_lib_Xp_XpCreateContext=yes
11257 else
11258 ac_cv_lib_Xp_XpCreateContext=no
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11265 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11266 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
11267 LIBXP=-lXp
11268 fi
11269
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11272 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11273 if test "${emacs_cv_lesstif+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 # We put this in CFLAGS temporarily to precede other -I options
11277 # that might be in CFLAGS temporarily.
11278 # We put this in CPPFLAGS where it precedes the other -I options.
11279 OLD_CPPFLAGS=$CPPFLAGS
11280 OLD_CFLAGS=$CFLAGS
11281 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11282 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11286 int
11287 main ()
11288 {
11289 int x = 5;
11290 ;
11291 return 0;
11292 }
11293 _ACEOF
11294 if ac_fn_c_try_compile "$LINENO"; then :
11295 emacs_cv_lesstif=yes
11296 else
11297 emacs_cv_lesstif=no
11298 fi
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11302 $as_echo "$emacs_cv_lesstif" >&6; }
11303 if test $emacs_cv_lesstif = yes; then
11304 # Make sure this -I option remains in CPPFLAGS after it is set
11305 # back to REAL_CPPFLAGS.
11306 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11307 # have those other -I options anyway. Ultimately, having this
11308 # directory ultimately in CPPFLAGS will be enough.
11309 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11310 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11311 else
11312 CFLAGS=$OLD_CFLAGS
11313 CPPFLAGS=$OLD_CPPFLAGS
11314 fi
11315 fi
11316 fi
11317
11318
11319 USE_TOOLKIT_SCROLL_BARS=no
11320 if test "${with_toolkit_scroll_bars}" != "no"; then
11321 if test "${USE_X_TOOLKIT}" != "none"; then
11322 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11323 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11324
11325 HAVE_XAW3D=no
11326 USE_TOOLKIT_SCROLL_BARS=yes
11327 elif test "${HAVE_XAW3D}" = "yes"; then
11328 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11329
11330 USE_TOOLKIT_SCROLL_BARS=yes
11331 fi
11332 elif test "${HAVE_GTK}" = "yes"; then
11333 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11334
11335 USE_TOOLKIT_SCROLL_BARS=yes
11336 elif test "${HAVE_NS}" = "yes"; then
11337 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11338
11339 USE_TOOLKIT_SCROLL_BARS=yes
11340 fi
11341 fi
11342
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345
11346 #include <X11/Xlib.h>
11347 #include <X11/Xresource.h>
11348 int
11349 main ()
11350 {
11351 XIMProc callback;
11352 ;
11353 return 0;
11354 }
11355 _ACEOF
11356 if ac_fn_c_try_compile "$LINENO"; then :
11357 HAVE_XIM=yes
11358
11359 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11360
11361 else
11362 HAVE_XIM=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365
11366
11367 if test "${with_xim}" != "no"; then
11368
11369 $as_echo "#define USE_XIM 1" >>confdefs.h
11370
11371 fi
11372
11373
11374 if test "${HAVE_XIM}" != "no"; then
11375 late_CFLAGS=$CFLAGS
11376 if test "$GCC" = yes; then
11377 CFLAGS="$CFLAGS --pedantic-errors"
11378 fi
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381
11382 #include <X11/Xlib.h>
11383 #include <X11/Xresource.h>
11384 int
11385 main ()
11386 {
11387 Display *display;
11388 XrmDatabase db;
11389 char *res_name;
11390 char *res_class;
11391 XIMProc callback;
11392 XPointer *client_data;
11393 #ifndef __GNUC__
11394 /* If we're not using GCC, it's probably not XFree86, and this is
11395 probably right, but we can't use something like --pedantic-errors. */
11396 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11397 char*, XIMProc, XPointer*);
11398 #endif
11399 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11400 client_data);
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 if ac_fn_c_try_compile "$LINENO"; then :
11406 emacs_cv_arg6_star=yes
11407 fi
11408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409 if test "$emacs_cv_arg6_star" = yes; then
11410 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11411
11412 else
11413 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11414
11415 fi
11416 CFLAGS=$late_CFLAGS
11417 fi
11418
11419 ### Start of font-backend (under any platform) section.
11420 # (nothing here yet -- this is a placeholder)
11421 ### End of font-backend (under any platform) section.
11422
11423 ### Start of font-backend (under X11) section.
11424 if test "${HAVE_X11}" = "yes"; then
11425
11426 succeeded=no
11427
11428 # Extract the first word of "pkg-config", so it can be a program name with args.
11429 set dummy pkg-config; ac_word=$2
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431 $as_echo_n "checking for $ac_word... " >&6; }
11432 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11433 $as_echo_n "(cached) " >&6
11434 else
11435 case $PKG_CONFIG in
11436 [\\/]* | ?:[\\/]*)
11437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11438 ;;
11439 *)
11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441 for as_dir in $PATH
11442 do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
11445 for ac_exec_ext in '' $ac_executable_extensions; do
11446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11449 break 2
11450 fi
11451 done
11452 done
11453 IFS=$as_save_IFS
11454
11455 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11456 ;;
11457 esac
11458 fi
11459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11460 if test -n "$PKG_CONFIG"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11462 $as_echo "$PKG_CONFIG" >&6; }
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11466 fi
11467
11468
11469
11470 if test "$PKG_CONFIG" = "no" ; then
11471 HAVE_FC=no
11472 else
11473 PKG_CONFIG_MIN_VERSION=0.9.0
11474 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11476 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11477
11478 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11480 $as_echo "yes" >&6; }
11481 succeeded=yes
11482
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11484 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11485 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11487 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11488
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11490 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11491 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11493 $as_echo "$FONTCONFIG_LIBS" >&6; }
11494 else
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11496 $as_echo "no" >&6; }
11497 FONTCONFIG_CFLAGS=""
11498 FONTCONFIG_LIBS=""
11499 ## If we have a custom action on failure, don't print errors, but
11500 ## do set a variable so people can do so.
11501 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11502
11503 fi
11504
11505
11506
11507 else
11508 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11509 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11510 fi
11511 fi
11512
11513 if test $succeeded = yes; then
11514 HAVE_FC=yes
11515 else
11516 HAVE_FC=no
11517 fi
11518
11519
11520 ## Use -lXft if available, unless `--with-xft=no'.
11521 HAVE_XFT=maybe
11522 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11523 with_xft="no";
11524 fi
11525 if test "x${with_xft}" != "xno"; then
11526
11527
11528 succeeded=no
11529
11530 # Extract the first word of "pkg-config", so it can be a program name with args.
11531 set dummy pkg-config; ac_word=$2
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11533 $as_echo_n "checking for $ac_word... " >&6; }
11534 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 case $PKG_CONFIG in
11538 [\\/]* | ?:[\\/]*)
11539 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11540 ;;
11541 *)
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11544 do
11545 IFS=$as_save_IFS
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11549 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 break 2
11552 fi
11553 done
11554 done
11555 IFS=$as_save_IFS
11556
11557 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11558 ;;
11559 esac
11560 fi
11561 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11562 if test -n "$PKG_CONFIG"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11564 $as_echo "$PKG_CONFIG" >&6; }
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 fi
11569
11570
11571
11572 if test "$PKG_CONFIG" = "no" ; then
11573 HAVE_XFT=no
11574 else
11575 PKG_CONFIG_MIN_VERSION=0.9.0
11576 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11578 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11579
11580 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11582 $as_echo "yes" >&6; }
11583 succeeded=yes
11584
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11586 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11587 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11589 $as_echo "$XFT_CFLAGS" >&6; }
11590
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11592 $as_echo_n "checking XFT_LIBS... " >&6; }
11593 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11595 $as_echo "$XFT_LIBS" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 XFT_CFLAGS=""
11600 XFT_LIBS=""
11601 ## If we have a custom action on failure, don't print errors, but
11602 ## do set a variable so people can do so.
11603 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11604
11605 fi
11606
11607
11608
11609 else
11610 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11611 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11612 fi
11613 fi
11614
11615 if test $succeeded = yes; then
11616 :
11617 else
11618 HAVE_XFT=no
11619 fi
11620
11621 ## Because xftfont.c uses XRenderQueryExtension, we also
11622 ## need to link to -lXrender.
11623 HAVE_XRENDER=no
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11625 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11626 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-lXrender $LIBS"
11631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632 /* end confdefs.h. */
11633
11634 /* Override any GCC internal prototype to avoid an error.
11635 Use char because int might match the return type of a GCC
11636 builtin and then its argument prototype would still apply. */
11637 #ifdef __cplusplus
11638 extern "C"
11639 #endif
11640 char XRenderQueryExtension ();
11641 int
11642 main ()
11643 {
11644 return XRenderQueryExtension ();
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"; then :
11650 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11651 else
11652 ac_cv_lib_Xrender_XRenderQueryExtension=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
11656 LIBS=$ac_check_lib_save_LIBS
11657 fi
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11659 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11660 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
11661 HAVE_XRENDER=yes
11662 fi
11663
11664 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11665 OLD_CPPFLAGS="$CPPFLAGS"
11666 OLD_CFLAGS="$CFLAGS"
11667 OLD_LIBS="$LIBS"
11668 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11669 CFLAGS="$CFLAGS $XFT_CFLAGS"
11670 XFT_LIBS="-lXrender $XFT_LIBS"
11671 LIBS="$XFT_LIBS $LIBS"
11672 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11673 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11675 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11676 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 ac_check_lib_save_LIBS=$LIBS
11680 LIBS="-lXft $XFT_LIBS $LIBS"
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11683
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char XftFontOpen ();
11691 int
11692 main ()
11693 {
11694 return XftFontOpen ();
11695 ;
11696 return 0;
11697 }
11698 _ACEOF
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 ac_cv_lib_Xft_XftFontOpen=yes
11701 else
11702 ac_cv_lib_Xft_XftFontOpen=no
11703 fi
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11707 fi
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11709 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11710 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
11711 HAVE_XFT=yes
11712 fi
11713
11714 fi
11715
11716
11717
11718 if test "${HAVE_XFT}" = "yes"; then
11719
11720 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11721
11722
11723 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11724 else
11725 CPPFLAGS="$OLD_CPPFLAGS"
11726 CFLAGS="$OLD_CFLAGS"
11727 LIBS="$OLD_LIBS"
11728 fi # "${HAVE_XFT}" = "yes"
11729 fi # "$HAVE_XFT" != no
11730 fi # "x${with_xft}" != "xno"
11731
11732 ## We used to allow building with FreeType and without Xft.
11733 ## However, the ftx font backend driver is not in good shape.
11734 if test "$HAVE_XFT" != "yes"; then
11735 HAVE_XFT=no
11736 HAVE_FREETYPE=no
11737 else
11738
11739 succeeded=no
11740
11741 # Extract the first word of "pkg-config", so it can be a program name with args.
11742 set dummy pkg-config; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
11747 else
11748 case $PKG_CONFIG in
11749 [\\/]* | ?:[\\/]*)
11750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11751 ;;
11752 *)
11753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $PATH
11755 do
11756 IFS=$as_save_IFS
11757 test -z "$as_dir" && as_dir=.
11758 for ac_exec_ext in '' $ac_executable_extensions; do
11759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 break 2
11763 fi
11764 done
11765 done
11766 IFS=$as_save_IFS
11767
11768 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11769 ;;
11770 esac
11771 fi
11772 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11773 if test -n "$PKG_CONFIG"; then
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11775 $as_echo "$PKG_CONFIG" >&6; }
11776 else
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11779 fi
11780
11781
11782
11783 if test "$PKG_CONFIG" = "no" ; then
11784 HAVE_FREETYPE=no
11785 else
11786 PKG_CONFIG_MIN_VERSION=0.9.0
11787 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
11789 $as_echo_n "checking for freetype2... " >&6; }
11790
11791 if $PKG_CONFIG --exists "freetype2" 2>&5; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11793 $as_echo "yes" >&6; }
11794 succeeded=yes
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
11797 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
11798 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
11800 $as_echo "$FREETYPE_CFLAGS" >&6; }
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
11803 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
11804 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
11806 $as_echo "$FREETYPE_LIBS" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11810 FREETYPE_CFLAGS=""
11811 FREETYPE_LIBS=""
11812 ## If we have a custom action on failure, don't print errors, but
11813 ## do set a variable so people can do so.
11814 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
11815
11816 fi
11817
11818
11819
11820 else
11821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11823 fi
11824 fi
11825
11826 if test $succeeded = yes; then
11827 HAVE_FREETYPE=yes
11828 else
11829 HAVE_FREETYPE=no
11830 fi
11831
11832
11833 test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5
11834 fi
11835
11836 HAVE_LIBOTF=no
11837 if test "${HAVE_FREETYPE}" = "yes"; then
11838
11839 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11840
11841 if test "${with_libotf}" != "no"; then
11842
11843 succeeded=no
11844
11845 # Extract the first word of "pkg-config", so it can be a program name with args.
11846 set dummy pkg-config; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 case $PKG_CONFIG in
11853 [\\/]* | ?:[\\/]*)
11854 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11855 ;;
11856 *)
11857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11858 for as_dir in $PATH
11859 do
11860 IFS=$as_save_IFS
11861 test -z "$as_dir" && as_dir=.
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11864 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11866 break 2
11867 fi
11868 done
11869 done
11870 IFS=$as_save_IFS
11871
11872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11873 ;;
11874 esac
11875 fi
11876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11877 if test -n "$PKG_CONFIG"; then
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11879 $as_echo "$PKG_CONFIG" >&6; }
11880 else
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882 $as_echo "no" >&6; }
11883 fi
11884
11885
11886
11887 if test "$PKG_CONFIG" = "no" ; then
11888 HAVE_LIBOTF=no
11889 else
11890 PKG_CONFIG_MIN_VERSION=0.9.0
11891 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11893 $as_echo_n "checking for libotf... " >&6; }
11894
11895 if $PKG_CONFIG --exists "libotf" 2>&5; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11897 $as_echo "yes" >&6; }
11898 succeeded=yes
11899
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11901 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11902 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11904 $as_echo "$LIBOTF_CFLAGS" >&6; }
11905
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11907 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11908 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11910 $as_echo "$LIBOTF_LIBS" >&6; }
11911 else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913 $as_echo "no" >&6; }
11914 LIBOTF_CFLAGS=""
11915 LIBOTF_LIBS=""
11916 ## If we have a custom action on failure, don't print errors, but
11917 ## do set a variable so people can do so.
11918 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11919
11920 fi
11921
11922
11923
11924 else
11925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11927 fi
11928 fi
11929
11930 if test $succeeded = yes; then
11931 HAVE_LIBOTF=yes
11932 else
11933 HAVE_LIBOTF=no
11934 fi
11935
11936 if test "$HAVE_LIBOTF" = "yes"; then
11937
11938 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11941 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11942 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-lotf $LIBS"
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char OTF_get_variation_glyphs ();
11957 int
11958 main ()
11959 {
11960 return OTF_get_variation_glyphs ();
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11967 else
11968 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 LIBS=$ac_check_lib_save_LIBS
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11975 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11976 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
11977 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11978 else
11979 HAVE_OTF_GET_VARIATION_GLYPHS=no
11980 fi
11981
11982 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11983
11984 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11985
11986 fi
11987 fi
11988 fi
11989 fi
11990
11991 HAVE_M17N_FLT=no
11992 if test "${HAVE_LIBOTF}" = yes; then
11993 if test "${with_m17n_flt}" != "no"; then
11994
11995 succeeded=no
11996
11997 # Extract the first word of "pkg-config", so it can be a program name with args.
11998 set dummy pkg-config; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 case $PKG_CONFIG in
12005 [\\/]* | ?:[\\/]*)
12006 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12007 ;;
12008 *)
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12011 do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12016 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12018 break 2
12019 fi
12020 done
12021 done
12022 IFS=$as_save_IFS
12023
12024 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12025 ;;
12026 esac
12027 fi
12028 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12029 if test -n "$PKG_CONFIG"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12031 $as_echo "$PKG_CONFIG" >&6; }
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12035 fi
12036
12037
12038
12039 if test "$PKG_CONFIG" = "no" ; then
12040 HAVE_M17N_FLT=no
12041 else
12042 PKG_CONFIG_MIN_VERSION=0.9.0
12043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
12045 $as_echo_n "checking for m17n-flt... " >&6; }
12046
12047 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12049 $as_echo "yes" >&6; }
12050 succeeded=yes
12051
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
12053 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
12054 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
12056 $as_echo "$M17N_FLT_CFLAGS" >&6; }
12057
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
12059 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
12060 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
12062 $as_echo "$M17N_FLT_LIBS" >&6; }
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 M17N_FLT_CFLAGS=""
12067 M17N_FLT_LIBS=""
12068 ## If we have a custom action on failure, don't print errors, but
12069 ## do set a variable so people can do so.
12070 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
12071
12072 fi
12073
12074
12075
12076 else
12077 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12078 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12079 fi
12080 fi
12081
12082 if test $succeeded = yes; then
12083 HAVE_M17N_FLT=yes
12084 else
12085 HAVE_M17N_FLT=no
12086 fi
12087
12088 if test "$HAVE_M17N_FLT" = "yes"; then
12089
12090 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
12091
12092 fi
12093 fi
12094 fi
12095 else
12096 HAVE_XFT=no
12097 HAVE_FREETYPE=no
12098 HAVE_LIBOTF=no
12099 HAVE_M17N_FLT=no
12100 fi
12101
12102 ### End of font-backend (under X11) section.
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113 ### Use -lXpm if available, unless `--with-xpm=no'.
12114 HAVE_XPM=no
12115 LIBXPM=
12116 if test "${HAVE_X11}" = "yes"; then
12117 if test "${with_xpm}" != "no"; then
12118 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
12121 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
12122 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 ac_check_lib_save_LIBS=$LIBS
12126 LIBS="-lXpm -lX11 $LIBS"
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12129
12130 /* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 char XpmReadFileToPixmap ();
12137 int
12138 main ()
12139 {
12140 return XpmReadFileToPixmap ();
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"; then :
12146 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12147 else
12148 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12155 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12156 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
12157 HAVE_XPM=yes
12158 fi
12159
12160 fi
12161
12162
12163 if test "${HAVE_XPM}" = "yes"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12165 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168 #include "X11/xpm.h"
12169 #ifndef XpmReturnAllocPixels
12170 no_return_alloc_pixels
12171 #endif
12172
12173 _ACEOF
12174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12175 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12176 HAVE_XPM=no
12177 else
12178 HAVE_XPM=yes
12179 fi
12180 rm -f conftest*
12181
12182
12183 if test "${HAVE_XPM}" = "yes"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12185 $as_echo "yes" >&6; }
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12189 fi
12190 fi
12191 fi
12192
12193 if test "${HAVE_XPM}" = "yes"; then
12194
12195 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12196
12197 LIBXPM=-lXpm
12198 fi
12199 fi
12200
12201
12202 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12203 HAVE_JPEG=no
12204 LIBJPEG=
12205 if test "${HAVE_X11}" = "yes"; then
12206 if test "${with_jpeg}" != "no"; then
12207 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12208 if test "x$ac_cv_header_jerror_h" = x""yes; then :
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12210 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12211 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-ljpeg $LIBS"
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char jpeg_destroy_compress ();
12226 int
12227 main ()
12228 {
12229 return jpeg_destroy_compress ();
12230 ;
12231 return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12236 else
12237 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12244 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12245 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
12246 HAVE_JPEG=yes
12247 fi
12248
12249 fi
12250
12251
12252 fi
12253
12254 if test "${HAVE_JPEG}" = "yes"; then
12255 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12256
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #include <jpeglib.h>
12260 version=JPEG_LIB_VERSION
12261
12262 _ACEOF
12263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12264 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12265 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12266
12267 else
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12269 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12270 HAVE_JPEG=no
12271 fi
12272 rm -f conftest*
12273
12274 fi
12275 if test "${HAVE_JPEG}" = "yes"; then
12276 LIBJPEG=-ljpeg
12277 fi
12278 fi
12279
12280
12281 ### Use -lpng if available, unless `--with-png=no'.
12282 HAVE_PNG=no
12283 LIBPNG=
12284 if test "${HAVE_X11}" = "yes"; then
12285 if test "${with_png}" != "no"; then
12286 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12287 # in /usr/include/libpng.
12288 for ac_header in png.h libpng/png.h
12289 do :
12290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12291 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12292 eval as_val=\$$as_ac_Header
12293 if test "x$as_val" = x""yes; then :
12294 cat >>confdefs.h <<_ACEOF
12295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12296 _ACEOF
12297
12298 fi
12299
12300 done
12301
12302 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12304 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12305 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 ac_check_lib_save_LIBS=$LIBS
12309 LIBS="-lpng -lz -lm $LIBS"
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 char png_get_channels ();
12320 int
12321 main ()
12322 {
12323 return png_get_channels ();
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 if ac_fn_c_try_link "$LINENO"; then :
12329 ac_cv_lib_png_png_get_channels=yes
12330 else
12331 ac_cv_lib_png_png_get_channels=no
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext conftest.$ac_ext
12335 LIBS=$ac_check_lib_save_LIBS
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12338 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12339 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
12340 HAVE_PNG=yes
12341 fi
12342
12343 fi
12344 fi
12345
12346 if test "${HAVE_PNG}" = "yes"; then
12347
12348 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12349
12350 LIBPNG="-lpng -lz -lm"
12351 fi
12352 fi
12353
12354
12355 ### Use -ltiff if available, unless `--with-tiff=no'.
12356 HAVE_TIFF=no
12357 LIBTIFF=
12358 if test "${HAVE_X11}" = "yes"; then
12359 if test "${with_tiff}" != "no"; then
12360 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12361 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
12362 tifflibs="-lz -lm"
12363 # At least one tiff package requires the jpeg library.
12364 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12366 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12367 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 ac_check_lib_save_LIBS=$LIBS
12371 LIBS="-ltiff $tifflibs $LIBS"
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378 #ifdef __cplusplus
12379 extern "C"
12380 #endif
12381 char TIFFGetVersion ();
12382 int
12383 main ()
12384 {
12385 return TIFFGetVersion ();
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 if ac_fn_c_try_link "$LINENO"; then :
12391 ac_cv_lib_tiff_TIFFGetVersion=yes
12392 else
12393 ac_cv_lib_tiff_TIFFGetVersion=no
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12400 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12401 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
12402 HAVE_TIFF=yes
12403 fi
12404
12405 fi
12406
12407
12408 fi
12409
12410 if test "${HAVE_TIFF}" = "yes"; then
12411
12412 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12413
12414 LIBTIFF=-ltiff
12415 fi
12416 fi
12417
12418
12419 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12420 HAVE_GIF=no
12421 LIBGIF=
12422 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12423 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12424 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
12425 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12426 # Earlier versions can crash Emacs.
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12428 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12429 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 ac_check_lib_save_LIBS=$LIBS
12433 LIBS="-lgif $LIBS"
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12440 #ifdef __cplusplus
12441 extern "C"
12442 #endif
12443 char EGifPutExtensionLast ();
12444 int
12445 main ()
12446 {
12447 return EGifPutExtensionLast ();
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453 ac_cv_lib_gif_EGifPutExtensionLast=yes
12454 else
12455 ac_cv_lib_gif_EGifPutExtensionLast=no
12456 fi
12457 rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459 LIBS=$ac_check_lib_save_LIBS
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12462 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12463 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
12464 HAVE_GIF=yes
12465 else
12466 HAVE_GIF=maybe
12467 fi
12468
12469 fi
12470
12471
12472
12473 if test "$HAVE_GIF" = yes; then
12474 LIBGIF=-lgif
12475 elif test "$HAVE_GIF" = maybe; then
12476 # If gif_lib.h but no libgif, try libungif.
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12478 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12479 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
12480 $as_echo_n "(cached) " >&6
12481 else
12482 ac_check_lib_save_LIBS=$LIBS
12483 LIBS="-lungif $LIBS"
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486
12487 /* Override any GCC internal prototype to avoid an error.
12488 Use char because int might match the return type of a GCC
12489 builtin and then its argument prototype would still apply. */
12490 #ifdef __cplusplus
12491 extern "C"
12492 #endif
12493 char EGifPutExtensionLast ();
12494 int
12495 main ()
12496 {
12497 return EGifPutExtensionLast ();
12498 ;
12499 return 0;
12500 }
12501 _ACEOF
12502 if ac_fn_c_try_link "$LINENO"; then :
12503 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12504 else
12505 ac_cv_lib_ungif_EGifPutExtensionLast=no
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext \
12508 conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12512 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12513 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
12514 HAVE_GIF=yes
12515 else
12516 HAVE_GIF=no
12517 fi
12518
12519 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12520 fi
12521
12522 if test "${HAVE_GIF}" = "yes"; then
12523
12524 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12525
12526 fi
12527 fi
12528
12529
12530 if test "${HAVE_X11}" = "yes"; then
12531 MISSING=""
12532 WITH_NO=""
12533 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12534 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12535 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12536 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12537 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12538 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12539 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12540 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12541 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12542 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12543
12544 if test "X${MISSING}" != X; then
12545 as_fn_error "The following required libraries were not found:
12546 $MISSING
12547 Maybe some development libraries/packages are missing?
12548 If you don't want to link with them give
12549 $WITH_NO
12550 as options to configure" "$LINENO" 5
12551 fi
12552 fi
12553
12554 ### Use -lgpm if available, unless `--with-gpm=no'.
12555 HAVE_GPM=no
12556 LIBGPM=
12557 MOUSE_SUPPORT=
12558 if test "${with_gpm}" != "no"; then
12559 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12560 if test "x$ac_cv_header_gpm_h" = x""yes; then :
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12562 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12563 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 ac_check_lib_save_LIBS=$LIBS
12567 LIBS="-lgpm $LIBS"
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570
12571 /* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
12574 #ifdef __cplusplus
12575 extern "C"
12576 #endif
12577 char Gpm_Open ();
12578 int
12579 main ()
12580 {
12581 return Gpm_Open ();
12582 ;
12583 return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_link "$LINENO"; then :
12587 ac_cv_lib_gpm_Gpm_Open=yes
12588 else
12589 ac_cv_lib_gpm_Gpm_Open=no
12590 fi
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 LIBS=$ac_check_lib_save_LIBS
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12596 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12597 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
12598 HAVE_GPM=yes
12599 fi
12600
12601 fi
12602
12603
12604
12605 if test "${HAVE_GPM}" = "yes"; then
12606
12607 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12608
12609 LIBGPM=-lgpm
12610 ## May be reset below.
12611 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12612 fi
12613 fi
12614
12615
12616 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12617 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
12618
12619 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12620
12621 fi
12622
12623
12624
12625 C_SWITCH_X_SYSTEM=
12626 ### Use NeXTstep API to implement GUI.
12627 if test "${HAVE_NS}" = "yes"; then
12628
12629 $as_echo "#define HAVE_NS 1" >>confdefs.h
12630
12631 if test "${NS_IMPL_COCOA}" = "yes"; then
12632
12633 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12634
12635 GNU_OBJC_CFLAGS=
12636 fi
12637 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12638
12639 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12640
12641 # See also .m.o rule in Makefile.in */
12642 # FIXME: are all these flags really needed? Document here why. */
12643 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12644 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12645 fi
12646 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12647
12648 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12649
12650 fi
12651 # We also have mouse menus.
12652 HAVE_MENUS=yes
12653 OTHER_FILES=ns-app
12654 fi
12655
12656
12657 ### Use session management (-lSM -lICE) if available
12658 HAVE_X_SM=no
12659 LIBXSM=
12660 if test "${HAVE_X11}" = "yes"; then
12661 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12662 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12664 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12665 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 ac_check_lib_save_LIBS=$LIBS
12669 LIBS="-lSM -lICE $LIBS"
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12676 #ifdef __cplusplus
12677 extern "C"
12678 #endif
12679 char SmcOpenConnection ();
12680 int
12681 main ()
12682 {
12683 return SmcOpenConnection ();
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"; then :
12689 ac_cv_lib_SM_SmcOpenConnection=yes
12690 else
12691 ac_cv_lib_SM_SmcOpenConnection=no
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 LIBS=$ac_check_lib_save_LIBS
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12698 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12699 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
12700 HAVE_X_SM=yes
12701 fi
12702
12703 fi
12704
12705
12706
12707 if test "${HAVE_X_SM}" = "yes"; then
12708
12709 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12710
12711 LIBXSM="-lSM -lICE"
12712 case "$LIBS" in
12713 *-lSM*) ;;
12714 *) LIBS="$LIBXSM $LIBS" ;;
12715 esac
12716 fi
12717 fi
12718
12719
12720 ### Use libxml (-lxml2) if available
12721 if test "${with_xml2}" != "no"; then
12722 ### I'm not sure what the version number should be, so I just guessed.
12723
12724 succeeded=no
12725
12726 # Extract the first word of "pkg-config", so it can be a program name with args.
12727 set dummy pkg-config; ac_word=$2
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12729 $as_echo_n "checking for $ac_word... " >&6; }
12730 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 case $PKG_CONFIG in
12734 [\\/]* | ?:[\\/]*)
12735 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12736 ;;
12737 *)
12738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739 for as_dir in $PATH
12740 do
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12745 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 break 2
12748 fi
12749 done
12750 done
12751 IFS=$as_save_IFS
12752
12753 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12754 ;;
12755 esac
12756 fi
12757 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12758 if test -n "$PKG_CONFIG"; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12760 $as_echo "$PKG_CONFIG" >&6; }
12761 else
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12764 fi
12765
12766
12767
12768 if test "$PKG_CONFIG" = "no" ; then
12769 HAVE_LIBXML2=no
12770 else
12771 PKG_CONFIG_MIN_VERSION=0.9.0
12772 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12774 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12775
12776 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778 $as_echo "yes" >&6; }
12779 succeeded=yes
12780
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12782 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12783 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12785 $as_echo "$LIBXML2_CFLAGS" >&6; }
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12788 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12789 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12791 $as_echo "$LIBXML2_LIBS" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12795 LIBXML2_CFLAGS=""
12796 LIBXML2_LIBS=""
12797 ## If we have a custom action on failure, don't print errors, but
12798 ## do set a variable so people can do so.
12799 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12800
12801 fi
12802
12803
12804
12805 else
12806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12807 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12808 fi
12809 fi
12810
12811 if test $succeeded = yes; then
12812 HAVE_LIBXML2=yes
12813 else
12814 HAVE_LIBXML2=no
12815 fi
12816
12817 if test "${HAVE_LIBXML2}" = "yes"; then
12818 LIBS="$LIBXML2_LIBS $LIBS"
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12820 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12821 if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-lxml2 $LIBS"
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828
12829 /* Override any GCC internal prototype to avoid an error.
12830 Use char because int might match the return type of a GCC
12831 builtin and then its argument prototype would still apply. */
12832 #ifdef __cplusplus
12833 extern "C"
12834 #endif
12835 char htmlReadMemory ();
12836 int
12837 main ()
12838 {
12839 return htmlReadMemory ();
12840 ;
12841 return 0;
12842 }
12843 _ACEOF
12844 if ac_fn_c_try_link "$LINENO"; then :
12845 ac_cv_lib_xml2_htmlReadMemory=yes
12846 else
12847 ac_cv_lib_xml2_htmlReadMemory=no
12848 fi
12849 rm -f core conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12854 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12855 if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then :
12856 HAVE_LIBXML2=yes
12857 else
12858 HAVE_LIBXML2=no
12859 fi
12860
12861 if test "${HAVE_LIBXML2}" = "yes"; then
12862
12863 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12864
12865 else
12866 LIBXML2_LIBS=""
12867 LIBXML2_CFLAGS=""
12868 fi
12869 fi
12870 fi
12871
12872
12873
12874 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12876 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12877 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882 #include <netdb.h>
12883 int
12884 main ()
12885 {
12886 return h_errno;
12887 ;
12888 return 0;
12889 }
12890 _ACEOF
12891 if ac_fn_c_try_link "$LINENO"; then :
12892 emacs_cv_netdb_declares_h_errno=yes
12893 else
12894 emacs_cv_netdb_declares_h_errno=no
12895 fi
12896 rm -f core conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext conftest.$ac_ext
12898 fi
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12900 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12901 if test $emacs_cv_netdb_declares_h_errno = yes; then
12902
12903 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12904
12905 fi
12906
12907 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12908 # for constant arguments. Useless!
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12910 $as_echo_n "checking for working alloca.h... " >&6; }
12911 if test "${ac_cv_working_alloca_h+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12913 else
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916 #include <alloca.h>
12917 int
12918 main ()
12919 {
12920 char *p = (char *) alloca (2 * sizeof (int));
12921 if (p) return 0;
12922 ;
12923 return 0;
12924 }
12925 _ACEOF
12926 if ac_fn_c_try_link "$LINENO"; then :
12927 ac_cv_working_alloca_h=yes
12928 else
12929 ac_cv_working_alloca_h=no
12930 fi
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933 fi
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12935 $as_echo "$ac_cv_working_alloca_h" >&6; }
12936 if test $ac_cv_working_alloca_h = yes; then
12937
12938 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12939
12940 fi
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12943 $as_echo_n "checking for alloca... " >&6; }
12944 if test "${ac_cv_func_alloca_works+set}" = set; then :
12945 $as_echo_n "(cached) " >&6
12946 else
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h. */
12949 #ifdef __GNUC__
12950 # define alloca __builtin_alloca
12951 #else
12952 # ifdef _MSC_VER
12953 # include <malloc.h>
12954 # define alloca _alloca
12955 # else
12956 # ifdef HAVE_ALLOCA_H
12957 # include <alloca.h>
12958 # else
12959 # ifdef _AIX
12960 #pragma alloca
12961 # else
12962 # ifndef alloca /* predefined by HP cc +Olibcalls */
12963 char *alloca ();
12964 # endif
12965 # endif
12966 # endif
12967 # endif
12968 #endif
12969
12970 int
12971 main ()
12972 {
12973 char *p = (char *) alloca (1);
12974 if (p) return 0;
12975 ;
12976 return 0;
12977 }
12978 _ACEOF
12979 if ac_fn_c_try_link "$LINENO"; then :
12980 ac_cv_func_alloca_works=yes
12981 else
12982 ac_cv_func_alloca_works=no
12983 fi
12984 rm -f core conftest.err conftest.$ac_objext \
12985 conftest$ac_exeext conftest.$ac_ext
12986 fi
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12988 $as_echo "$ac_cv_func_alloca_works" >&6; }
12989
12990 if test $ac_cv_func_alloca_works = yes; then
12991
12992 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12993
12994 else
12995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12996 # that cause trouble. Some versions do not even contain alloca or
12997 # contain a buggy version. If you still want to use their alloca,
12998 # use ar to extract alloca.o from them instead of compiling alloca.c.
12999
13000 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13001
13002 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13003
13004
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13006 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13007 if test "${ac_cv_os_cray+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13012 #if defined CRAY && ! defined CRAY2
13013 webecray
13014 #else
13015 wenotbecray
13016 #endif
13017
13018 _ACEOF
13019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13020 $EGREP "webecray" >/dev/null 2>&1; then :
13021 ac_cv_os_cray=yes
13022 else
13023 ac_cv_os_cray=no
13024 fi
13025 rm -f conftest*
13026
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13029 $as_echo "$ac_cv_os_cray" >&6; }
13030 if test $ac_cv_os_cray = yes; then
13031 for ac_func in _getb67 GETB67 getb67; do
13032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13034 eval as_val=\$$as_ac_var
13035 if test "x$as_val" = x""yes; then :
13036
13037 cat >>confdefs.h <<_ACEOF
13038 #define CRAY_STACKSEG_END $ac_func
13039 _ACEOF
13040
13041 break
13042 fi
13043
13044 done
13045 fi
13046
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13048 $as_echo_n "checking stack direction for C alloca... " >&6; }
13049 if test "${ac_cv_c_stack_direction+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test "$cross_compiling" = yes; then :
13053 ac_cv_c_stack_direction=0
13054 else
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 $ac_includes_default
13058 int
13059 find_stack_direction ()
13060 {
13061 static char *addr = 0;
13062 auto char dummy;
13063 if (addr == 0)
13064 {
13065 addr = &dummy;
13066 return find_stack_direction ();
13067 }
13068 else
13069 return (&dummy > addr) ? 1 : -1;
13070 }
13071
13072 int
13073 main ()
13074 {
13075 return find_stack_direction () < 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_run "$LINENO"; then :
13079 ac_cv_c_stack_direction=1
13080 else
13081 ac_cv_c_stack_direction=-1
13082 fi
13083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13084 conftest.$ac_objext conftest.beam conftest.$ac_ext
13085 fi
13086
13087 fi
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13089 $as_echo "$ac_cv_c_stack_direction" >&6; }
13090 cat >>confdefs.h <<_ACEOF
13091 #define STACK_DIRECTION $ac_cv_c_stack_direction
13092 _ACEOF
13093
13094
13095 fi
13096
13097
13098 if test x"$ac_cv_func_alloca_works" != xyes; then
13099 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
13100 fi
13101
13102 # fmod, logb, and frexp are found in -lm on most systems.
13103 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13105 $as_echo_n "checking for sqrt in -lm... " >&6; }
13106 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 ac_check_lib_save_LIBS=$LIBS
13110 LIBS="-lm $LIBS"
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113
13114 /* Override any GCC internal prototype to avoid an error.
13115 Use char because int might match the return type of a GCC
13116 builtin and then its argument prototype would still apply. */
13117 #ifdef __cplusplus
13118 extern "C"
13119 #endif
13120 char sqrt ();
13121 int
13122 main ()
13123 {
13124 return sqrt ();
13125 ;
13126 return 0;
13127 }
13128 _ACEOF
13129 if ac_fn_c_try_link "$LINENO"; then :
13130 ac_cv_lib_m_sqrt=yes
13131 else
13132 ac_cv_lib_m_sqrt=no
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13137 fi
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13139 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13140 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_LIBM 1
13143 _ACEOF
13144
13145 LIBS="-lm $LIBS"
13146
13147 fi
13148
13149
13150 # Check for mail-locking functions in a "mail" library. Probably this should
13151 # have the same check as for liblockfile below.
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13153 $as_echo_n "checking for maillock in -lmail... " >&6; }
13154 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 ac_check_lib_save_LIBS=$LIBS
13158 LIBS="-lmail $LIBS"
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161
13162 /* Override any GCC internal prototype to avoid an error.
13163 Use char because int might match the return type of a GCC
13164 builtin and then its argument prototype would still apply. */
13165 #ifdef __cplusplus
13166 extern "C"
13167 #endif
13168 char maillock ();
13169 int
13170 main ()
13171 {
13172 return maillock ();
13173 ;
13174 return 0;
13175 }
13176 _ACEOF
13177 if ac_fn_c_try_link "$LINENO"; then :
13178 ac_cv_lib_mail_maillock=yes
13179 else
13180 ac_cv_lib_mail_maillock=no
13181 fi
13182 rm -f core conftest.err conftest.$ac_objext \
13183 conftest$ac_exeext conftest.$ac_ext
13184 LIBS=$ac_check_lib_save_LIBS
13185 fi
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13187 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13188 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
13189 have_mail=yes
13190 else
13191 have_mail=no
13192 fi
13193
13194 if test $have_mail = yes; then
13195 LIBS_MAIL=-lmail
13196 LIBS="$LIBS_MAIL $LIBS"
13197
13198 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13199
13200 else
13201 LIBS_MAIL=
13202 fi
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13204 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13205 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 ac_check_lib_save_LIBS=$LIBS
13209 LIBS="-llockfile $LIBS"
13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* end confdefs.h. */
13212
13213 /* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13216 #ifdef __cplusplus
13217 extern "C"
13218 #endif
13219 char maillock ();
13220 int
13221 main ()
13222 {
13223 return maillock ();
13224 ;
13225 return 0;
13226 }
13227 _ACEOF
13228 if ac_fn_c_try_link "$LINENO"; then :
13229 ac_cv_lib_lockfile_maillock=yes
13230 else
13231 ac_cv_lib_lockfile_maillock=no
13232 fi
13233 rm -f core conftest.err conftest.$ac_objext \
13234 conftest$ac_exeext conftest.$ac_ext
13235 LIBS=$ac_check_lib_save_LIBS
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13238 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13239 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
13240 have_lockfile=yes
13241 else
13242 have_lockfile=no
13243 fi
13244
13245 if test $have_lockfile = yes; then
13246 LIBS_MAIL=-llockfile
13247 LIBS="$LIBS_MAIL $LIBS"
13248
13249 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13250
13251 else
13252 # If we have the shared liblockfile, assume we must use it for mail
13253 # locking (e.g. Debian). If we couldn't link against liblockfile
13254 # (no liblockfile.a installed), ensure that we don't need to.
13255 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13256 set dummy liblockfile.so; ac_word=$2
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258 $as_echo_n "checking for $ac_word... " >&6; }
13259 if test "${ac_cv_prog_liblockfile+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 if test -n "$liblockfile"; then
13263 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13264 else
13265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13266 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13267 for as_dir in $as_dummy
13268 do
13269 IFS=$as_save_IFS
13270 test -z "$as_dir" && as_dir=.
13271 for ac_exec_ext in '' $ac_executable_extensions; do
13272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13273 ac_cv_prog_liblockfile="yes"
13274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13275 break 2
13276 fi
13277 done
13278 done
13279 IFS=$as_save_IFS
13280
13281 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13282 fi
13283 fi
13284 liblockfile=$ac_cv_prog_liblockfile
13285 if test -n "$liblockfile"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13287 $as_echo "$liblockfile" >&6; }
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13291 fi
13292
13293
13294 if test $ac_cv_prog_liblockfile = yes; then
13295 as_fn_error "Shared liblockfile found but can't link against it.
13296 This probably means that movemail could lose mail.
13297 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13298 fi
13299 fi
13300 for ac_func in touchlock
13301 do :
13302 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13303 if test "x$ac_cv_func_touchlock" = x""yes; then :
13304 cat >>confdefs.h <<_ACEOF
13305 #define HAVE_TOUCHLOCK 1
13306 _ACEOF
13307
13308 fi
13309 done
13310
13311 for ac_header in maillock.h
13312 do :
13313 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13314 if test "x$ac_cv_header_maillock_h" = x""yes; then :
13315 cat >>confdefs.h <<_ACEOF
13316 #define HAVE_MAILLOCK_H 1
13317 _ACEOF
13318
13319 fi
13320
13321 done
13322
13323
13324
13325 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13326 ## interlock access to the mail spool. The alternative is a lock file named
13327 ## /usr/spool/mail/$USER.lock.
13328 mail_lock=no
13329 case "$opsys" in
13330 aix4-2) mail_lock="lockf" ;;
13331
13332 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13333
13334 ## On GNU/Linux systems, both methods are used by various mail programs.
13335 ## I assume most people are using newer mailers that have heard of flock.
13336 ## Change this if you need to.
13337 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13338 ## configure gets the right answers, and that means *NOT* using flock.
13339 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13340 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13341 ## Debian maintainer hasn't provided a clean fix for Emacs.
13342 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13343 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13344 ## correct logic. -- fx
13345 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13346 ## liblockfile is a Free Software replacement for libmail, used on
13347 ## Debian systems and elsewhere. -rfr.
13348 gnu-*)
13349 mail_lock="flock"
13350 if test $have_mail = yes || test $have_lockfile = yes; then
13351 test $ac_cv_header_maillock_h = yes && mail_lock=no
13352 fi
13353 ;;
13354 esac
13355
13356 BLESSMAIL_TARGET=
13357 case "$mail_lock" in
13358 flock)
13359 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13360 ;;
13361
13362 lockf)
13363 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13364 ;;
13365
13366 *) BLESSMAIL_TARGET="need-blessmail" ;;
13367 esac
13368
13369
13370
13371 for ac_func in gethostname getdomainname dup2 \
13372 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13373 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13374 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13375 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13376 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13377 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13378 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13379 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13380 cfmakeraw cfsetspeed isnan copysign __executable_start
13381 do :
13382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13384 eval as_val=\$$as_ac_var
13385 if test "x$as_val" = x""yes; then :
13386 cat >>confdefs.h <<_ACEOF
13387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13388 _ACEOF
13389
13390 fi
13391 done
13392
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13395 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13396 if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then :
13397 $as_echo_n "(cached) " >&6
13398 else
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13401
13402 int
13403 main ()
13404 {
13405 __builtin_unwind_init ();
13406 ;
13407 return 0;
13408 }
13409 _ACEOF
13410 if ac_fn_c_try_link "$LINENO"; then :
13411 emacs_cv_func___builtin_unwind_init=yes
13412 else
13413 emacs_cv_func___builtin_unwind_init=no
13414 fi
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 fi
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13419 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13420 if test $emacs_cv_func___builtin_unwind_init = yes; then
13421
13422 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13423
13424 fi
13425
13426 for ac_header in sys/un.h
13427 do :
13428 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13429 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
13430 cat >>confdefs.h <<_ACEOF
13431 #define HAVE_SYS_UN_H 1
13432 _ACEOF
13433
13434 fi
13435
13436 done
13437
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13440 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13441 if test "${ac_cv_sys_largefile_source+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13443 else
13444 while :; do
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 #include <sys/types.h> /* for off_t */
13448 #include <stdio.h>
13449 int
13450 main ()
13451 {
13452 int (*fp) (FILE *, off_t, int) = fseeko;
13453 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13454 ;
13455 return 0;
13456 }
13457 _ACEOF
13458 if ac_fn_c_try_link "$LINENO"; then :
13459 ac_cv_sys_largefile_source=no; break
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext \
13462 conftest$ac_exeext conftest.$ac_ext
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 #define _LARGEFILE_SOURCE 1
13466 #include <sys/types.h> /* for off_t */
13467 #include <stdio.h>
13468 int
13469 main ()
13470 {
13471 int (*fp) (FILE *, off_t, int) = fseeko;
13472 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 if ac_fn_c_try_link "$LINENO"; then :
13478 ac_cv_sys_largefile_source=1; break
13479 fi
13480 rm -f core conftest.err conftest.$ac_objext \
13481 conftest$ac_exeext conftest.$ac_ext
13482 ac_cv_sys_largefile_source=unknown
13483 break
13484 done
13485 fi
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13487 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13488 case $ac_cv_sys_largefile_source in #(
13489 no | unknown) ;;
13490 *)
13491 cat >>confdefs.h <<_ACEOF
13492 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13493 _ACEOF
13494 ;;
13495 esac
13496 rm -rf conftest*
13497
13498 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13499 # in glibc 2.1.3, but that breaks too many other things.
13500 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13501 if test $ac_cv_sys_largefile_source != unknown; then
13502
13503 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13504
13505 fi
13506
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13509 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13510 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 # Use it with a single arg.
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13516 $ac_includes_default
13517 int
13518 main ()
13519 {
13520 getpgrp (0);
13521 ;
13522 return 0;
13523 }
13524 _ACEOF
13525 if ac_fn_c_try_compile "$LINENO"; then :
13526 ac_cv_func_getpgrp_void=no
13527 else
13528 ac_cv_func_getpgrp_void=yes
13529 fi
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13534 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13535 if test $ac_cv_func_getpgrp_void = yes; then
13536
13537 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13538
13539 fi
13540
13541
13542 # Configure gnulib.
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553 LIBC_FATAL_STDERR_=1
13554 export LIBC_FATAL_STDERR_
13555
13556
13557
13558
13559 for ac_func in $ac_func_list
13560 do :
13561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13563 eval as_val=\$$as_ac_var
13564 if test "x$as_val" = x""yes; then :
13565 cat >>confdefs.h <<_ACEOF
13566 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13567 _ACEOF
13568
13569 fi
13570 done
13571
13572
13573
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13576 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13577 if test "${ac_cv_c_bigendian+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 ac_cv_c_bigendian=unknown
13581 # See if we're dealing with a universal compiler.
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 #ifndef __APPLE_CC__
13585 not a universal capable compiler
13586 #endif
13587 typedef int dummy;
13588
13589 _ACEOF
13590 if ac_fn_c_try_compile "$LINENO"; then :
13591
13592 # Check for potential -arch flags. It is not universal unless
13593 # there are at least two -arch flags with different values.
13594 ac_arch=
13595 ac_prev=
13596 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13597 if test -n "$ac_prev"; then
13598 case $ac_word in
13599 i?86 | x86_64 | ppc | ppc64)
13600 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13601 ac_arch=$ac_word
13602 else
13603 ac_cv_c_bigendian=universal
13604 break
13605 fi
13606 ;;
13607 esac
13608 ac_prev=
13609 elif test "x$ac_word" = "x-arch"; then
13610 ac_prev=arch
13611 fi
13612 done
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 if test $ac_cv_c_bigendian = unknown; then
13616 # See if sys/param.h defines the BYTE_ORDER macro.
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619 #include <sys/types.h>
13620 #include <sys/param.h>
13621
13622 int
13623 main ()
13624 {
13625 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13626 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13627 && LITTLE_ENDIAN)
13628 bogus endian macros
13629 #endif
13630
13631 ;
13632 return 0;
13633 }
13634 _ACEOF
13635 if ac_fn_c_try_compile "$LINENO"; then :
13636 # It does; now see whether it defined to BIG_ENDIAN or not.
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #include <sys/types.h>
13640 #include <sys/param.h>
13641
13642 int
13643 main ()
13644 {
13645 #if BYTE_ORDER != BIG_ENDIAN
13646 not big endian
13647 #endif
13648
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654 ac_cv_c_bigendian=yes
13655 else
13656 ac_cv_c_bigendian=no
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 fi
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 fi
13662 if test $ac_cv_c_bigendian = unknown; then
13663 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 #include <limits.h>
13667
13668 int
13669 main ()
13670 {
13671 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13672 bogus endian macros
13673 #endif
13674
13675 ;
13676 return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_c_try_compile "$LINENO"; then :
13680 # It does; now see whether it defined to _BIG_ENDIAN or not.
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #include <limits.h>
13684
13685 int
13686 main ()
13687 {
13688 #ifndef _BIG_ENDIAN
13689 not big endian
13690 #endif
13691
13692 ;
13693 return 0;
13694 }
13695 _ACEOF
13696 if ac_fn_c_try_compile "$LINENO"; then :
13697 ac_cv_c_bigendian=yes
13698 else
13699 ac_cv_c_bigendian=no
13700 fi
13701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13704 fi
13705 if test $ac_cv_c_bigendian = unknown; then
13706 # Compile a test program.
13707 if test "$cross_compiling" = yes; then :
13708 # Try to guess by grepping values from an object file.
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 short int ascii_mm[] =
13712 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13713 short int ascii_ii[] =
13714 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13715 int use_ascii (int i) {
13716 return ascii_mm[i] + ascii_ii[i];
13717 }
13718 short int ebcdic_ii[] =
13719 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13720 short int ebcdic_mm[] =
13721 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13722 int use_ebcdic (int i) {
13723 return ebcdic_mm[i] + ebcdic_ii[i];
13724 }
13725 extern int foo;
13726
13727 int
13728 main ()
13729 {
13730 return use_ascii (foo) == use_ebcdic (foo);
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13737 ac_cv_c_bigendian=yes
13738 fi
13739 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13740 if test "$ac_cv_c_bigendian" = unknown; then
13741 ac_cv_c_bigendian=no
13742 else
13743 # finding both strings is unlikely to happen, but who knows?
13744 ac_cv_c_bigendian=unknown
13745 fi
13746 fi
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 else
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 $ac_includes_default
13753 int
13754 main ()
13755 {
13756
13757 /* Are we little or big endian? From Harbison&Steele. */
13758 union
13759 {
13760 long int l;
13761 char c[sizeof (long int)];
13762 } u;
13763 u.l = 1;
13764 return u.c[sizeof (long int) - 1] == 1;
13765
13766 ;
13767 return 0;
13768 }
13769 _ACEOF
13770 if ac_fn_c_try_run "$LINENO"; then :
13771 ac_cv_c_bigendian=no
13772 else
13773 ac_cv_c_bigendian=yes
13774 fi
13775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13776 conftest.$ac_objext conftest.beam conftest.$ac_ext
13777 fi
13778
13779 fi
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13782 $as_echo "$ac_cv_c_bigendian" >&6; }
13783 case $ac_cv_c_bigendian in #(
13784 yes)
13785 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13786 ;; #(
13787 no)
13788 ;; #(
13789 universal)
13790
13791 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13792
13793 ;; #(
13794 *)
13795 as_fn_error "unknown endianness
13796 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13797 esac
13798
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13801 $as_echo_n "checking for inline... " >&6; }
13802 if test "${ac_cv_c_inline+set}" = set; then :
13803 $as_echo_n "(cached) " >&6
13804 else
13805 ac_cv_c_inline=no
13806 for ac_kw in inline __inline__ __inline; do
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #ifndef __cplusplus
13810 typedef int foo_t;
13811 static $ac_kw foo_t static_foo () {return 0; }
13812 $ac_kw foo_t foo () {return 0; }
13813 #endif
13814
13815 _ACEOF
13816 if ac_fn_c_try_compile "$LINENO"; then :
13817 ac_cv_c_inline=$ac_kw
13818 fi
13819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13820 test "$ac_cv_c_inline" != no && break
13821 done
13822
13823 fi
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13825 $as_echo "$ac_cv_c_inline" >&6; }
13826
13827 case $ac_cv_c_inline in
13828 inline | yes) ;;
13829 *)
13830 case $ac_cv_c_inline in
13831 no) ac_val=;;
13832 *) ac_val=$ac_cv_c_inline;;
13833 esac
13834 cat >>confdefs.h <<_ACEOF
13835 #ifndef __cplusplus
13836 #define inline $ac_val
13837 #endif
13838 _ACEOF
13839 ;;
13840 esac
13841
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13844 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13845 if test "${gl_cv_func_c99_strtold+set}" = set; then :
13846 $as_echo_n "(cached) " >&6
13847 else
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 /* On HP-UX before 11.23, strtold returns a struct instead of
13851 long double. Reject implementations like that, by requiring
13852 compatibility with the C99 prototype. */
13853 #include <stdlib.h>
13854 static long double (*p) (char const *, char **) = strtold;
13855 static long double
13856 test (char const *nptr, char **endptr)
13857 {
13858 long double r;
13859 r = strtold (nptr, endptr);
13860 return r;
13861 }
13862 int
13863 main ()
13864 {
13865 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13866 ;
13867 return 0;
13868 }
13869 _ACEOF
13870 if ac_fn_c_try_link "$LINENO"; then :
13871 gl_cv_func_c99_strtold=yes
13872 else
13873 gl_cv_func_c99_strtold=no
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext \
13876 conftest$ac_exeext conftest.$ac_ext
13877 fi
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13879 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13880 if test $gl_cv_func_c99_strtold = yes; then
13881
13882 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13883
13884 fi
13885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13887 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13888 if test "${ac_cv_struct_st_dm_mode+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13893
13894 #include <sys/types.h>
13895 #include <sys/stat.h>
13896 int
13897 main ()
13898 {
13899 struct stat s; s.st_dm_mode;
13900 ;
13901 return 0;
13902 }
13903 _ACEOF
13904 if ac_fn_c_try_compile "$LINENO"; then :
13905 ac_cv_struct_st_dm_mode=yes
13906 else
13907 ac_cv_struct_st_dm_mode=no
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13910 fi
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13912 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13913
13914 if test $ac_cv_struct_st_dm_mode = yes; then
13915
13916 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13917
13918 fi
13919
13920
13921 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13922 if test "x$ac_cv_have_decl_strmode" = x""yes; then :
13923 ac_have_decl=1
13924 else
13925 ac_have_decl=0
13926 fi
13927
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_DECL_STRMODE $ac_have_decl
13930 _ACEOF
13931
13932
13933 GNULIB__EXIT=0;
13934 GNULIB_ATOLL=0;
13935 GNULIB_CALLOC_POSIX=0;
13936 GNULIB_CANONICALIZE_FILE_NAME=0;
13937 GNULIB_GETLOADAVG=0;
13938 GNULIB_GETSUBOPT=0;
13939 GNULIB_GRANTPT=0;
13940 GNULIB_MALLOC_POSIX=0;
13941 GNULIB_MBTOWC=0;
13942 GNULIB_MKDTEMP=0;
13943 GNULIB_MKOSTEMP=0;
13944 GNULIB_MKOSTEMPS=0;
13945 GNULIB_MKSTEMP=0;
13946 GNULIB_MKSTEMPS=0;
13947 GNULIB_PTSNAME=0;
13948 GNULIB_PUTENV=0;
13949 GNULIB_RANDOM_R=0;
13950 GNULIB_REALLOC_POSIX=0;
13951 GNULIB_REALPATH=0;
13952 GNULIB_RPMATCH=0;
13953 GNULIB_SETENV=0;
13954 GNULIB_STRTOD=0;
13955 GNULIB_STRTOLL=0;
13956 GNULIB_STRTOULL=0;
13957 GNULIB_SYSTEM_POSIX=0;
13958 GNULIB_UNLOCKPT=0;
13959 GNULIB_UNSETENV=0;
13960 GNULIB_WCTOMB=0;
13961 HAVE__EXIT=1;
13962 HAVE_ATOLL=1;
13963 HAVE_CANONICALIZE_FILE_NAME=1;
13964 HAVE_DECL_GETLOADAVG=1;
13965 HAVE_GETSUBOPT=1;
13966 HAVE_GRANTPT=1;
13967 HAVE_MKDTEMP=1;
13968 HAVE_MKOSTEMP=1;
13969 HAVE_MKOSTEMPS=1;
13970 HAVE_MKSTEMP=1;
13971 HAVE_MKSTEMPS=1;
13972 HAVE_PTSNAME=1;
13973 HAVE_RANDOM_H=1;
13974 HAVE_RANDOM_R=1;
13975 HAVE_REALPATH=1;
13976 HAVE_RPMATCH=1;
13977 HAVE_SETENV=1;
13978 HAVE_DECL_SETENV=1;
13979 HAVE_STRTOD=1;
13980 HAVE_STRTOLL=1;
13981 HAVE_STRTOULL=1;
13982 HAVE_STRUCT_RANDOM_DATA=1;
13983 HAVE_SYS_LOADAVG_H=0;
13984 HAVE_UNLOCKPT=1;
13985 HAVE_DECL_UNSETENV=1;
13986 REPLACE_CALLOC=0;
13987 REPLACE_CANONICALIZE_FILE_NAME=0;
13988 REPLACE_MALLOC=0;
13989 REPLACE_MBTOWC=0;
13990 REPLACE_MKSTEMP=0;
13991 REPLACE_PUTENV=0;
13992 REPLACE_REALLOC=0;
13993 REPLACE_REALPATH=0;
13994 REPLACE_SETENV=0;
13995 REPLACE_STRTOD=0;
13996 REPLACE_UNSETENV=0;
13997 REPLACE_WCTOMB=0;
13998
13999
14000 GNULIB_CHOWN=0;
14001 GNULIB_CLOSE=0;
14002 GNULIB_DUP2=0;
14003 GNULIB_DUP3=0;
14004 GNULIB_ENVIRON=0;
14005 GNULIB_EUIDACCESS=0;
14006 GNULIB_FACCESSAT=0;
14007 GNULIB_FCHDIR=0;
14008 GNULIB_FCHOWNAT=0;
14009 GNULIB_FSYNC=0;
14010 GNULIB_FTRUNCATE=0;
14011 GNULIB_GETCWD=0;
14012 GNULIB_GETDOMAINNAME=0;
14013 GNULIB_GETDTABLESIZE=0;
14014 GNULIB_GETGROUPS=0;
14015 GNULIB_GETHOSTNAME=0;
14016 GNULIB_GETLOGIN=0;
14017 GNULIB_GETLOGIN_R=0;
14018 GNULIB_GETPAGESIZE=0;
14019 GNULIB_GETUSERSHELL=0;
14020 GNULIB_LCHOWN=0;
14021 GNULIB_LINK=0;
14022 GNULIB_LINKAT=0;
14023 GNULIB_LSEEK=0;
14024 GNULIB_PIPE=0;
14025 GNULIB_PIPE2=0;
14026 GNULIB_PREAD=0;
14027 GNULIB_PWRITE=0;
14028 GNULIB_READLINK=0;
14029 GNULIB_READLINKAT=0;
14030 GNULIB_RMDIR=0;
14031 GNULIB_SLEEP=0;
14032 GNULIB_SYMLINK=0;
14033 GNULIB_SYMLINKAT=0;
14034 GNULIB_TTYNAME_R=0;
14035 GNULIB_UNISTD_H_GETOPT=0;
14036 GNULIB_UNISTD_H_SIGPIPE=0;
14037 GNULIB_UNLINK=0;
14038 GNULIB_UNLINKAT=0;
14039 GNULIB_USLEEP=0;
14040 GNULIB_WRITE=0;
14041 HAVE_CHOWN=1;
14042 HAVE_DUP2=1;
14043 HAVE_DUP3=1;
14044 HAVE_EUIDACCESS=1;
14045 HAVE_FACCESSAT=1;
14046 HAVE_FCHDIR=1;
14047 HAVE_FCHOWNAT=1;
14048 HAVE_FSYNC=1;
14049 HAVE_FTRUNCATE=1;
14050 HAVE_GETDTABLESIZE=1;
14051 HAVE_GETGROUPS=1;
14052 HAVE_GETHOSTNAME=1;
14053 HAVE_GETLOGIN=1;
14054 HAVE_GETPAGESIZE=1;
14055 HAVE_LCHOWN=1;
14056 HAVE_LINK=1;
14057 HAVE_LINKAT=1;
14058 HAVE_PIPE=1;
14059 HAVE_PIPE2=1;
14060 HAVE_PREAD=1;
14061 HAVE_PWRITE=1;
14062 HAVE_READLINK=1;
14063 HAVE_READLINKAT=1;
14064 HAVE_SLEEP=1;
14065 HAVE_SYMLINK=1;
14066 HAVE_SYMLINKAT=1;
14067 HAVE_UNLINKAT=1;
14068 HAVE_USLEEP=1;
14069 HAVE_DECL_ENVIRON=1;
14070 HAVE_DECL_FCHDIR=1;
14071 HAVE_DECL_GETDOMAINNAME=1;
14072 HAVE_DECL_GETLOGIN_R=1;
14073 HAVE_DECL_GETPAGESIZE=1;
14074 HAVE_DECL_GETUSERSHELL=1;
14075 HAVE_DECL_TTYNAME_R=1;
14076 HAVE_OS_H=0;
14077 HAVE_SYS_PARAM_H=0;
14078 REPLACE_CHOWN=0;
14079 REPLACE_CLOSE=0;
14080 REPLACE_DUP=0;
14081 REPLACE_DUP2=0;
14082 REPLACE_FCHOWNAT=0;
14083 REPLACE_GETCWD=0;
14084 REPLACE_GETDOMAINNAME=0;
14085 REPLACE_GETLOGIN_R=0;
14086 REPLACE_GETGROUPS=0;
14087 REPLACE_GETPAGESIZE=0;
14088 REPLACE_LCHOWN=0;
14089 REPLACE_LINK=0;
14090 REPLACE_LINKAT=0;
14091 REPLACE_LSEEK=0;
14092 REPLACE_PREAD=0;
14093 REPLACE_PWRITE=0;
14094 REPLACE_READLINK=0;
14095 REPLACE_RMDIR=0;
14096 REPLACE_SLEEP=0;
14097 REPLACE_SYMLINK=0;
14098 REPLACE_TTYNAME_R=0;
14099 REPLACE_UNLINK=0;
14100 REPLACE_UNLINKAT=0;
14101 REPLACE_USLEEP=0;
14102 REPLACE_WRITE=0;
14103 UNISTD_H_HAVE_WINSOCK2_H=0;
14104 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
14105
14106
14107
14108
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
14110 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
14111 if test "${gl_cv_have_include_next+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 rm -rf conftestd1a conftestd1b conftestd2
14115 mkdir conftestd1a conftestd1b conftestd2
14116 cat <<EOF > conftestd1a/conftest.h
14117 #define DEFINED_IN_CONFTESTD1
14118 #include_next <conftest.h>
14119 #ifdef DEFINED_IN_CONFTESTD2
14120 int foo;
14121 #else
14122 #error "include_next doesn't work"
14123 #endif
14124 EOF
14125 cat <<EOF > conftestd1b/conftest.h
14126 #define DEFINED_IN_CONFTESTD1
14127 #include <stdio.h>
14128 #include_next <conftest.h>
14129 #ifdef DEFINED_IN_CONFTESTD2
14130 int foo;
14131 #else
14132 #error "include_next doesn't work"
14133 #endif
14134 EOF
14135 cat <<EOF > conftestd2/conftest.h
14136 #ifndef DEFINED_IN_CONFTESTD1
14137 #error "include_next test doesn't work"
14138 #endif
14139 #define DEFINED_IN_CONFTESTD2
14140 EOF
14141 gl_save_CPPFLAGS="$CPPFLAGS"
14142 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <conftest.h>
14146 _ACEOF
14147 if ac_fn_c_try_compile "$LINENO"; then :
14148 gl_cv_have_include_next=yes
14149 else
14150 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 #include <conftest.h>
14154 _ACEOF
14155 if ac_fn_c_try_compile "$LINENO"; then :
14156 gl_cv_have_include_next=buggy
14157 else
14158 gl_cv_have_include_next=no
14159 fi
14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14164 CPPFLAGS="$gl_save_CPPFLAGS"
14165 rm -rf conftestd1a conftestd1b conftestd2
14166
14167 fi
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14169 $as_echo "$gl_cv_have_include_next" >&6; }
14170 PRAGMA_SYSTEM_HEADER=
14171 if test $gl_cv_have_include_next = yes; then
14172 INCLUDE_NEXT=include_next
14173 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14174 if test -n "$GCC"; then
14175 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14176 fi
14177 else
14178 if test $gl_cv_have_include_next = buggy; then
14179 INCLUDE_NEXT=include
14180 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14181 else
14182 INCLUDE_NEXT=include
14183 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14184 fi
14185 fi
14186
14187
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14190 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14191 if test "${gl_cv_pragma_columns+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196
14197 #ifdef __TANDEM
14198 choke me
14199 #endif
14200
14201 _ACEOF
14202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14203 $EGREP "choke me" >/dev/null 2>&1; then :
14204 gl_cv_pragma_columns=yes
14205 else
14206 gl_cv_pragma_columns=no
14207 fi
14208 rm -f conftest*
14209
14210
14211 fi
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14213 $as_echo "$gl_cv_pragma_columns" >&6; }
14214 if test $gl_cv_pragma_columns = yes; then
14215 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14216 else
14217 PRAGMA_COLUMNS=
14218 fi
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236 if test $gl_cv_have_include_next = yes; then
14237 gl_cv_next_getopt_h='<'getopt.h'>'
14238 else
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14240 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14241 if test "${gl_cv_next_getopt_h+set}" = set; then :
14242 $as_echo_n "(cached) " >&6
14243 else
14244
14245 if test $ac_cv_header_getopt_h = yes; then
14246
14247
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <getopt.h>
14251
14252 _ACEOF
14253 case "$host_os" in
14254 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14255 *) gl_absname_cpp="$ac_cpp" ;;
14256 esac
14257 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14258 sed -n '\#/getopt.h#{
14259 s#.*"\(.*/getopt.h\)".*#\1#
14260 s#^/[^/]#//&#
14261 p
14262 q
14263 }'`'"'
14264 else
14265 gl_cv_next_getopt_h='<'getopt.h'>'
14266 fi
14267
14268
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14271 $as_echo "$gl_cv_next_getopt_h" >&6; }
14272 fi
14273 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14274
14275 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14277 gl_next_as_first_directive='<'getopt.h'>'
14278 else
14279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14280 gl_next_as_first_directive=$gl_cv_next_getopt_h
14281 fi
14282 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14283
14284
14285
14286
14287 if test $ac_cv_header_getopt_h = yes; then
14288 HAVE_GETOPT_H=1
14289 else
14290 HAVE_GETOPT_H=0
14291 fi
14292
14293
14294 gl_replace_getopt=
14295
14296 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14297 for ac_header in getopt.h
14298 do :
14299 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14300 if test "x$ac_cv_header_getopt_h" = x""yes; then :
14301 cat >>confdefs.h <<_ACEOF
14302 #define HAVE_GETOPT_H 1
14303 _ACEOF
14304
14305 else
14306 gl_replace_getopt=yes
14307 fi
14308
14309 done
14310
14311 fi
14312
14313 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14314 for ac_func in getopt_long_only
14315 do :
14316 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14317 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
14318 cat >>confdefs.h <<_ACEOF
14319 #define HAVE_GETOPT_LONG_ONLY 1
14320 _ACEOF
14321
14322 else
14323 gl_replace_getopt=yes
14324 fi
14325 done
14326
14327 fi
14328
14329 if test -z "$gl_replace_getopt"; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14331 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14332 if test "${gl_cv_func_getopt_posix+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338 #include <unistd.h>
14339 int
14340 main ()
14341 {
14342 int *p = &optreset; return optreset;
14343 ;
14344 return 0;
14345 }
14346 _ACEOF
14347 if ac_fn_c_try_compile "$LINENO"; then :
14348 gl_optind_min=1
14349 else
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 #include <getopt.h>
14353 int
14354 main ()
14355 {
14356 return !getopt_clip;
14357 ;
14358 return 0;
14359 }
14360 _ACEOF
14361 if ac_fn_c_try_compile "$LINENO"; then :
14362 gl_optind_min=1
14363 else
14364 gl_optind_min=0
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14367 fi
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369
14370 gl_save_CPPFLAGS=$CPPFLAGS
14371 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14372 if test "$cross_compiling" = yes; then :
14373 case "$host_os" in
14374 mingw*) gl_cv_func_getopt_posix="guessing no";;
14375 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14376 *) gl_cv_func_getopt_posix="guessing yes";;
14377 esac
14378
14379 else
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382
14383 #include <unistd.h>
14384 #include <stdlib.h>
14385 #include <string.h>
14386
14387 int
14388 main ()
14389 {
14390 {
14391 int argc = 0;
14392 char *argv[10];
14393 int c;
14394
14395 argv[argc++] = "program";
14396 argv[argc++] = "-a";
14397 argv[argc++] = "foo";
14398 argv[argc++] = "bar";
14399 argv[argc] = NULL;
14400 optind = OPTIND_MIN;
14401 opterr = 0;
14402
14403 c = getopt (argc, argv, "ab");
14404 if (!(c == 'a'))
14405 return 1;
14406 c = getopt (argc, argv, "ab");
14407 if (!(c == -1))
14408 return 2;
14409 if (!(optind == 2))
14410 return 3;
14411 }
14412 /* Some internal state exists at this point. */
14413 {
14414 int argc = 0;
14415 char *argv[10];
14416 int c;
14417
14418 argv[argc++] = "program";
14419 argv[argc++] = "donald";
14420 argv[argc++] = "-p";
14421 argv[argc++] = "billy";
14422 argv[argc++] = "duck";
14423 argv[argc++] = "-a";
14424 argv[argc++] = "bar";
14425 argv[argc] = NULL;
14426 optind = OPTIND_MIN;
14427 opterr = 0;
14428
14429 c = getopt (argc, argv, "+abp:q:");
14430 if (!(c == -1))
14431 return 4;
14432 if (!(strcmp (argv[0], "program") == 0))
14433 return 5;
14434 if (!(strcmp (argv[1], "donald") == 0))
14435 return 6;
14436 if (!(strcmp (argv[2], "-p") == 0))
14437 return 7;
14438 if (!(strcmp (argv[3], "billy") == 0))
14439 return 8;
14440 if (!(strcmp (argv[4], "duck") == 0))
14441 return 9;
14442 if (!(strcmp (argv[5], "-a") == 0))
14443 return 10;
14444 if (!(strcmp (argv[6], "bar") == 0))
14445 return 11;
14446 if (!(optind == 1))
14447 return 12;
14448 }
14449 /* Detect MacOS 10.5, AIX 7.1 bug. */
14450 {
14451 char *argv[3] = { "program", "-ab", NULL };
14452 optind = OPTIND_MIN;
14453 opterr = 0;
14454 if (getopt (2, argv, "ab:") != 'a')
14455 return 13;
14456 if (getopt (2, argv, "ab:") != '?')
14457 return 14;
14458 if (optopt != 'b')
14459 return 15;
14460 if (optind != 2)
14461 return 16;
14462 }
14463
14464 return 0;
14465 }
14466
14467 _ACEOF
14468 if ac_fn_c_try_run "$LINENO"; then :
14469 gl_cv_func_getopt_posix=yes
14470 else
14471 gl_cv_func_getopt_posix=no
14472 fi
14473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14474 conftest.$ac_objext conftest.beam conftest.$ac_ext
14475 fi
14476
14477 CPPFLAGS=$gl_save_CPPFLAGS
14478
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14481 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14482 case "$gl_cv_func_getopt_posix" in
14483 *no) gl_replace_getopt=yes ;;
14484 esac
14485 fi
14486
14487 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14489 $as_echo_n "checking for working GNU getopt function... " >&6; }
14490 if test "${gl_cv_func_getopt_gnu+set}" = set; then :
14491 $as_echo_n "(cached) " >&6
14492 else
14493 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14494 # optstring is necessary for programs like m4 that have POSIX-mandated
14495 # semantics for supporting options interspersed with files.
14496 # Also, since getopt_long is a GNU extension, we require optind=0.
14497 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14498 # so take care to revert to the correct (non-)export state.
14499 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14500 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14501 xx) gl_had_POSIXLY_CORRECT=exported ;;
14502 x) gl_had_POSIXLY_CORRECT=yes ;;
14503 *) gl_had_POSIXLY_CORRECT= ;;
14504 esac
14505 POSIXLY_CORRECT=1
14506 export POSIXLY_CORRECT
14507 if test "$cross_compiling" = yes; then :
14508 case $host_os:$ac_cv_have_decl_optreset in
14509 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14510 *:yes) gl_cv_func_getopt_gnu=no;;
14511 *) gl_cv_func_getopt_gnu=yes;;
14512 esac
14513
14514 else
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 #include <getopt.h>
14518 #include <stddef.h>
14519 #include <string.h>
14520
14521 int
14522 main ()
14523 {
14524
14525 int result = 0;
14526 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14527 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14528 OSF/1 5.1, Solaris 10. */
14529 {
14530 char *myargv[3];
14531 myargv[0] = "conftest";
14532 myargv[1] = "-+";
14533 myargv[2] = 0;
14534 opterr = 0;
14535 if (getopt (2, myargv, "+a") != '?')
14536 result |= 1;
14537 }
14538 /* This code succeeds on glibc 2.8, mingw,
14539 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14540 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14541 {
14542 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14543
14544 optind = 1;
14545 if (getopt (4, argv, "p::") != 'p')
14546 result |= 2;
14547 else if (optarg != NULL)
14548 result |= 4;
14549 else if (getopt (4, argv, "p::") != -1)
14550 result |= 6;
14551 else if (optind != 2)
14552 result |= 8;
14553 }
14554 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14555 {
14556 char *argv[] = { "program", "foo", "-p", NULL };
14557 optind = 0;
14558 if (getopt (3, argv, "-p") != 1)
14559 result |= 16;
14560 else if (getopt (3, argv, "-p") != 'p')
14561 result |= 32;
14562 }
14563 /* This code fails on glibc 2.11. */
14564 {
14565 char *argv[] = { "program", "-b", "-a", NULL };
14566 optind = opterr = 0;
14567 if (getopt (3, argv, "+:a:b") != 'b')
14568 result |= 64;
14569 else if (getopt (3, argv, "+:a:b") != ':')
14570 result |= 64;
14571 }
14572 return result;
14573
14574 ;
14575 return 0;
14576 }
14577 _ACEOF
14578 if ac_fn_c_try_run "$LINENO"; then :
14579 gl_cv_func_getopt_gnu=yes
14580 else
14581 gl_cv_func_getopt_gnu=no
14582 fi
14583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14584 conftest.$ac_objext conftest.beam conftest.$ac_ext
14585 fi
14586
14587 case $gl_had_POSIXLY_CORRECT in
14588 exported) ;;
14589 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14590 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14591 esac
14592
14593 fi
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14595 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14596 if test "$gl_cv_func_getopt_gnu" = "no"; then
14597 gl_replace_getopt=yes
14598 fi
14599 fi
14600
14601 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14602 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14603 ac_have_decl=1
14604 else
14605 ac_have_decl=0
14606 fi
14607
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_DECL_GETENV $ac_have_decl
14610 _ACEOF
14611
14612
14613
14614
14615
14616
14617 if test -n "$gl_replace_getopt"; then :
14618
14619
14620
14621 GETOPT_H=getopt.h
14622
14623 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14624
14625
14626
14627 GNULIB_UNISTD_H_GETOPT=1
14628
14629
14630
14631
14632
14633
14634
14635
14636 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14647
14648
14649
14650
14651
14652
14653 fi
14654
14655
14656
14657 GNULIB_FCHMODAT=0;
14658 GNULIB_FSTATAT=0;
14659 GNULIB_FUTIMENS=0;
14660 GNULIB_LCHMOD=0;
14661 GNULIB_LSTAT=0;
14662 GNULIB_MKDIRAT=0;
14663 GNULIB_MKFIFO=0;
14664 GNULIB_MKFIFOAT=0;
14665 GNULIB_MKNOD=0;
14666 GNULIB_MKNODAT=0;
14667 GNULIB_STAT=0;
14668 GNULIB_UTIMENSAT=0;
14669 HAVE_FCHMODAT=1;
14670 HAVE_FSTATAT=1;
14671 HAVE_FUTIMENS=1;
14672 HAVE_LCHMOD=1;
14673 HAVE_LSTAT=1;
14674 HAVE_MKDIRAT=1;
14675 HAVE_MKFIFO=1;
14676 HAVE_MKFIFOAT=1;
14677 HAVE_MKNOD=1;
14678 HAVE_MKNODAT=1;
14679 HAVE_UTIMENSAT=1;
14680 REPLACE_FSTAT=0;
14681 REPLACE_FSTATAT=0;
14682 REPLACE_FUTIMENS=0;
14683 REPLACE_LSTAT=0;
14684 REPLACE_MKDIR=0;
14685 REPLACE_MKFIFO=0;
14686 REPLACE_MKNOD=0;
14687 REPLACE_STAT=0;
14688 REPLACE_UTIMENSAT=0;
14689
14690
14691
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14694 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14695 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 rm -f conftest.sym conftest.file
14699 echo >conftest.file
14700 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14701 if test "$cross_compiling" = yes; then :
14702 # When cross-compiling, be pessimistic so we will end up using the
14703 # replacement version of lstat that checks for trailing slashes and
14704 # calls lstat a second time when necessary.
14705 ac_cv_func_lstat_dereferences_slashed_symlink=no
14706
14707 else
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 $ac_includes_default
14711 int
14712 main ()
14713 {
14714 struct stat sbuf;
14715 /* Linux will dereference the symlink and fail, as required by
14716 POSIX. That is better in the sense that it means we will not
14717 have to compile and use the lstat wrapper. */
14718 return lstat ("conftest.sym/", &sbuf) == 0;
14719
14720 ;
14721 return 0;
14722 }
14723 _ACEOF
14724 if ac_fn_c_try_run "$LINENO"; then :
14725 ac_cv_func_lstat_dereferences_slashed_symlink=yes
14726 else
14727 ac_cv_func_lstat_dereferences_slashed_symlink=no
14728 fi
14729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14730 conftest.$ac_objext conftest.beam conftest.$ac_ext
14731 fi
14732
14733 else
14734 # If the 'ln -s' command failed, then we probably don't even
14735 # have an lstat function.
14736 ac_cv_func_lstat_dereferences_slashed_symlink=no
14737 fi
14738 rm -f conftest.sym conftest.file
14739
14740 fi
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14742 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14743 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14744
14745 cat >>confdefs.h <<_ACEOF
14746 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14747 _ACEOF
14748
14749 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14750
14751
14752
14753
14754
14755
14756
14757
14758 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14759
14760 fi
14761
14762
14763 GNULIB_MKTIME=0;
14764 GNULIB_NANOSLEEP=0;
14765 GNULIB_STRPTIME=0;
14766 GNULIB_TIMEGM=0;
14767 GNULIB_TIME_R=0;
14768 HAVE_DECL_LOCALTIME_R=1;
14769 HAVE_NANOSLEEP=1;
14770 HAVE_STRPTIME=1;
14771 HAVE_TIMEGM=1;
14772 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14773 REPLACE_MKTIME=GNULIB_PORTCHECK;
14774 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14775 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14776
14777
14778
14779
14780 gl_cv_c_multiarch=no
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14783 #ifndef __APPLE_CC__
14784 not a universal capable compiler
14785 #endif
14786 typedef int dummy;
14787
14788 _ACEOF
14789 if ac_fn_c_try_compile "$LINENO"; then :
14790
14791 arch=
14792 prev=
14793 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14794 if test -n "$prev"; then
14795 case $word in
14796 i?86 | x86_64 | ppc | ppc64)
14797 if test -z "$arch" || test "$arch" = "$word"; then
14798 arch="$word"
14799 else
14800 gl_cv_c_multiarch=yes
14801 fi
14802 ;;
14803 esac
14804 prev=
14805 else
14806 if test "x$word" = "x-arch"; then
14807 prev=arch
14808 fi
14809 fi
14810 done
14811
14812 fi
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 if test $gl_cv_c_multiarch = yes; then
14815 APPLE_UNIVERSAL_BUILD=1
14816 else
14817 APPLE_UNIVERSAL_BUILD=0
14818 fi
14819
14820
14821
14822
14823
14824
14825
14826 if test $ac_cv_header_sys_socket_h = no; then
14827 for ac_header in ws2tcpip.h
14828 do :
14829 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14830 if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then :
14831 cat >>confdefs.h <<_ACEOF
14832 #define HAVE_WS2TCPIP_H 1
14833 _ACEOF
14834
14835 fi
14836
14837 done
14838
14839 fi
14840
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14842 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14843 if test "${ac_cv_header_stdbool_h+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848
14849 #include <stdbool.h>
14850 #ifndef bool
14851 "error: bool is not defined"
14852 #endif
14853 #ifndef false
14854 "error: false is not defined"
14855 #endif
14856 #if false
14857 "error: false is not 0"
14858 #endif
14859 #ifndef true
14860 "error: true is not defined"
14861 #endif
14862 #if true != 1
14863 "error: true is not 1"
14864 #endif
14865 #ifndef __bool_true_false_are_defined
14866 "error: __bool_true_false_are_defined is not defined"
14867 #endif
14868
14869 struct s { _Bool s: 1; _Bool t; } s;
14870
14871 char a[true == 1 ? 1 : -1];
14872 char b[false == 0 ? 1 : -1];
14873 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14874 char d[(bool) 0.5 == true ? 1 : -1];
14875 /* See body of main program for 'e'. */
14876 char f[(_Bool) 0.0 == false ? 1 : -1];
14877 char g[true];
14878 char h[sizeof (_Bool)];
14879 char i[sizeof s.t];
14880 enum { j = false, k = true, l = false * true, m = true * 256 };
14881 /* The following fails for
14882 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14883 _Bool n[m];
14884 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14885 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14886 /* Catch a bug in an HP-UX C compiler. See
14887 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14888 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14889 */
14890 _Bool q = true;
14891 _Bool *pq = &q;
14892
14893 int
14894 main ()
14895 {
14896
14897 bool e = &s;
14898 *pq |= q;
14899 *pq |= ! q;
14900 /* Refer to every declared value, to avoid compiler optimizations. */
14901 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14902 + !m + !n + !o + !p + !q + !pq);
14903
14904 ;
14905 return 0;
14906 }
14907 _ACEOF
14908 if ac_fn_c_try_compile "$LINENO"; then :
14909 ac_cv_header_stdbool_h=yes
14910 else
14911 ac_cv_header_stdbool_h=no
14912 fi
14913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14914 fi
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14916 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14917 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14918 if test "x$ac_cv_type__Bool" = x""yes; then :
14919
14920 cat >>confdefs.h <<_ACEOF
14921 #define HAVE__BOOL 1
14922 _ACEOF
14923
14924
14925 fi
14926
14927
14928
14929 REPLACE_NULL=0;
14930 HAVE_WCHAR_T=1;
14931
14932
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14934 $as_echo_n "checking for wchar_t... " >&6; }
14935 if test "${gt_cv_c_wchar_t+set}" = set; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 #include <stddef.h>
14941 wchar_t foo = (wchar_t)'\0';
14942 int
14943 main ()
14944 {
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_compile "$LINENO"; then :
14951 gt_cv_c_wchar_t=yes
14952 else
14953 gt_cv_c_wchar_t=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14956 fi
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14958 $as_echo "$gt_cv_c_wchar_t" >&6; }
14959 if test $gt_cv_c_wchar_t = yes; then
14960
14961 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14962
14963 fi
14964
14965
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14967 $as_echo_n "checking for unsigned long long int... " >&6; }
14968 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
14969 $as_echo_n "(cached) " >&6
14970 else
14971 ac_cv_type_unsigned_long_long_int=yes
14972 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14975
14976 /* For now, do not test the preprocessor; as of 2007 there are too many
14977 implementations with broken preprocessors. Perhaps this can
14978 be revisited in 2012. In the meantime, code should not expect
14979 #if to work with literals wider than 32 bits. */
14980 /* Test literals. */
14981 long long int ll = 9223372036854775807ll;
14982 long long int nll = -9223372036854775807LL;
14983 unsigned long long int ull = 18446744073709551615ULL;
14984 /* Test constant expressions. */
14985 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14986 ? 1 : -1)];
14987 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14988 ? 1 : -1)];
14989 int i = 63;
14990 int
14991 main ()
14992 {
14993 /* Test availability of runtime routines for shift and division. */
14994 long long int llmax = 9223372036854775807ll;
14995 unsigned long long int ullmax = 18446744073709551615ull;
14996 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14997 | (llmax / ll) | (llmax % ll)
14998 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14999 | (ullmax / ull) | (ullmax % ull));
15000 ;
15001 return 0;
15002 }
15003
15004 _ACEOF
15005 if ac_fn_c_try_link "$LINENO"; then :
15006
15007 else
15008 ac_cv_type_unsigned_long_long_int=no
15009 fi
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012 fi
15013 fi
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15015 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15016 if test $ac_cv_type_unsigned_long_long_int = yes; then
15017
15018 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15019
15020 fi
15021
15022
15023
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15025 $as_echo_n "checking for long long int... " >&6; }
15026 if test "${ac_cv_type_long_long_int+set}" = set; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 ac_cv_type_long_long_int=yes
15030 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15031 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15032 if test $ac_cv_type_long_long_int = yes; then
15033 if test "$cross_compiling" = yes; then :
15034 :
15035 else
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 #include <limits.h>
15039 #ifndef LLONG_MAX
15040 # define HALF \
15041 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15042 # define LLONG_MAX (HALF - 1 + HALF)
15043 #endif
15044 int
15045 main ()
15046 {
15047 long long int n = 1;
15048 int i;
15049 for (i = 0; ; i++)
15050 {
15051 long long int m = n << i;
15052 if (m >> i != n)
15053 return 1;
15054 if (LLONG_MAX / 2 < m)
15055 break;
15056 }
15057 return 0;
15058 ;
15059 return 0;
15060 }
15061 _ACEOF
15062 if ac_fn_c_try_run "$LINENO"; then :
15063
15064 else
15065 ac_cv_type_long_long_int=no
15066 fi
15067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15068 conftest.$ac_objext conftest.beam conftest.$ac_ext
15069 fi
15070
15071 fi
15072 fi
15073 fi
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15075 $as_echo "$ac_cv_type_long_long_int" >&6; }
15076 if test $ac_cv_type_long_long_int = yes; then
15077
15078 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15079
15080 fi
15081
15082
15083
15084
15085
15086
15087 GNULIB_DPRINTF=0;
15088 GNULIB_FCLOSE=0;
15089 GNULIB_FFLUSH=0;
15090 GNULIB_FOPEN=0;
15091 GNULIB_FPRINTF=0;
15092 GNULIB_FPRINTF_POSIX=0;
15093 GNULIB_FPURGE=0;
15094 GNULIB_FPUTC=0;
15095 GNULIB_FPUTS=0;
15096 GNULIB_FREOPEN=0;
15097 GNULIB_FSEEK=0;
15098 GNULIB_FSEEKO=0;
15099 GNULIB_FTELL=0;
15100 GNULIB_FTELLO=0;
15101 GNULIB_FWRITE=0;
15102 GNULIB_GETDELIM=0;
15103 GNULIB_GETLINE=0;
15104 GNULIB_OBSTACK_PRINTF=0;
15105 GNULIB_OBSTACK_PRINTF_POSIX=0;
15106 GNULIB_PERROR=0;
15107 GNULIB_POPEN=0;
15108 GNULIB_PRINTF=0;
15109 GNULIB_PRINTF_POSIX=0;
15110 GNULIB_PUTC=0;
15111 GNULIB_PUTCHAR=0;
15112 GNULIB_PUTS=0;
15113 GNULIB_REMOVE=0;
15114 GNULIB_RENAME=0;
15115 GNULIB_RENAMEAT=0;
15116 GNULIB_SNPRINTF=0;
15117 GNULIB_SPRINTF_POSIX=0;
15118 GNULIB_STDIO_H_SIGPIPE=0;
15119 GNULIB_TMPFILE=0;
15120 GNULIB_VASPRINTF=0;
15121 GNULIB_VDPRINTF=0;
15122 GNULIB_VFPRINTF=0;
15123 GNULIB_VFPRINTF_POSIX=0;
15124 GNULIB_VPRINTF=0;
15125 GNULIB_VPRINTF_POSIX=0;
15126 GNULIB_VSNPRINTF=0;
15127 GNULIB_VSPRINTF_POSIX=0;
15128 HAVE_DECL_FPURGE=1;
15129 HAVE_DECL_FSEEKO=1;
15130 HAVE_DECL_FTELLO=1;
15131 HAVE_DECL_GETDELIM=1;
15132 HAVE_DECL_GETLINE=1;
15133 HAVE_DECL_OBSTACK_PRINTF=1;
15134 HAVE_DECL_SNPRINTF=1;
15135 HAVE_DECL_VSNPRINTF=1;
15136 HAVE_DPRINTF=1;
15137 HAVE_FSEEKO=1;
15138 HAVE_FTELLO=1;
15139 HAVE_RENAMEAT=1;
15140 HAVE_VASPRINTF=1;
15141 HAVE_VDPRINTF=1;
15142 REPLACE_DPRINTF=0;
15143 REPLACE_FCLOSE=0;
15144 REPLACE_FFLUSH=0;
15145 REPLACE_FOPEN=0;
15146 REPLACE_FPRINTF=0;
15147 REPLACE_FPURGE=0;
15148 REPLACE_FREOPEN=0;
15149 REPLACE_FSEEK=0;
15150 REPLACE_FSEEKO=0;
15151 REPLACE_FTELL=0;
15152 REPLACE_FTELLO=0;
15153 REPLACE_GETDELIM=0;
15154 REPLACE_GETLINE=0;
15155 REPLACE_OBSTACK_PRINTF=0;
15156 REPLACE_PERROR=0;
15157 REPLACE_POPEN=0;
15158 REPLACE_PRINTF=0;
15159 REPLACE_REMOVE=0;
15160 REPLACE_RENAME=0;
15161 REPLACE_RENAMEAT=0;
15162 REPLACE_SNPRINTF=0;
15163 REPLACE_SPRINTF=0;
15164 REPLACE_STDIO_WRITE_FUNCS=0;
15165 REPLACE_TMPFILE=0;
15166 REPLACE_VASPRINTF=0;
15167 REPLACE_VDPRINTF=0;
15168 REPLACE_VFPRINTF=0;
15169 REPLACE_VPRINTF=0;
15170 REPLACE_VSNPRINTF=0;
15171 REPLACE_VSPRINTF=0;
15172
15173
15174 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
15175 "
15176 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
15177
15178 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15179
15180 fi
15181
15182
15183
15184
15185
15186
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15188 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15189 if test "${ac_cv_header_stat_broken+set}" = set; then :
15190 $as_echo_n "(cached) " >&6
15191 else
15192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h. */
15194 #include <sys/types.h>
15195 #include <sys/stat.h>
15196
15197 #if defined S_ISBLK && defined S_IFDIR
15198 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15199 #endif
15200
15201 #if defined S_ISBLK && defined S_IFCHR
15202 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15203 #endif
15204
15205 #if defined S_ISLNK && defined S_IFREG
15206 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15207 #endif
15208
15209 #if defined S_ISSOCK && defined S_IFREG
15210 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15211 #endif
15212
15213 _ACEOF
15214 if ac_fn_c_try_compile "$LINENO"; then :
15215 ac_cv_header_stat_broken=no
15216 else
15217 ac_cv_header_stat_broken=yes
15218 fi
15219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 fi
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15222 $as_echo "$ac_cv_header_stat_broken" >&6; }
15223 if test $ac_cv_header_stat_broken = yes; then
15224
15225 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15226
15227 fi
15228
15229
15230
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15232 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15233 if test "${ac_cv_c_restrict+set}" = set; then :
15234 $as_echo_n "(cached) " >&6
15235 else
15236 ac_cv_c_restrict=no
15237 # The order here caters to the fact that C++ does not require restrict.
15238 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241 typedef int * int_ptr;
15242 int foo (int_ptr $ac_kw ip) {
15243 return ip[0];
15244 }
15245 int
15246 main ()
15247 {
15248 int s[1];
15249 int * $ac_kw t = s;
15250 t[0] = 0;
15251 return foo(t)
15252 ;
15253 return 0;
15254 }
15255 _ACEOF
15256 if ac_fn_c_try_compile "$LINENO"; then :
15257 ac_cv_c_restrict=$ac_kw
15258 fi
15259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260 test "$ac_cv_c_restrict" != no && break
15261 done
15262
15263 fi
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15265 $as_echo "$ac_cv_c_restrict" >&6; }
15266
15267 case $ac_cv_c_restrict in
15268 restrict) ;;
15269 no) $as_echo "#define restrict /**/" >>confdefs.h
15270 ;;
15271 *) cat >>confdefs.h <<_ACEOF
15272 #define restrict $ac_cv_c_restrict
15273 _ACEOF
15274 ;;
15275 esac
15276
15277
15278
15279
15280
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15282 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
15283 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
15284 $as_echo_n "(cached) " >&6
15285 else
15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15288 #include <time.h>
15289
15290 int
15291 main ()
15292 {
15293 static struct timespec x; x.tv_sec = x.tv_nsec;
15294 ;
15295 return 0;
15296 }
15297 _ACEOF
15298 if ac_fn_c_try_compile "$LINENO"; then :
15299 gl_cv_sys_struct_timespec_in_time_h=yes
15300 else
15301 gl_cv_sys_struct_timespec_in_time_h=no
15302 fi
15303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15304 fi
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15306 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15307
15308 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15309 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15310 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15311 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15312 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15313 else
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15315 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
15316 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 #include <sys/time.h>
15322
15323 int
15324 main ()
15325 {
15326 static struct timespec x; x.tv_sec = x.tv_nsec;
15327 ;
15328 return 0;
15329 }
15330 _ACEOF
15331 if ac_fn_c_try_compile "$LINENO"; then :
15332 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15333 else
15334 gl_cv_sys_struct_timespec_in_sys_time_h=no
15335 fi
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15339 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15340 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15341 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15342 else
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15344 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15345 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
15346 $as_echo_n "(cached) " >&6
15347 else
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15350 #include <pthread.h>
15351
15352 int
15353 main ()
15354 {
15355 static struct timespec x; x.tv_sec = x.tv_nsec;
15356 ;
15357 return 0;
15358 }
15359 _ACEOF
15360 if ac_fn_c_try_compile "$LINENO"; then :
15361 gl_cv_sys_struct_timespec_in_pthread_h=yes
15362 else
15363 gl_cv_sys_struct_timespec_in_pthread_h=no
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 fi
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15368 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15369 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15370 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15371 fi
15372 fi
15373 fi
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389 if test $gl_cv_have_include_next = yes; then
15390 gl_cv_next_time_h='<'time.h'>'
15391 else
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15393 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15394 if test "${gl_cv_next_time_h+set}" = set; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400 #include <time.h>
15401
15402 _ACEOF
15403 case "$host_os" in
15404 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15405 *) gl_absname_cpp="$ac_cpp" ;;
15406 esac
15407 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15408 sed -n '\#/time.h#{
15409 s#.*"\(.*/time.h\)".*#\1#
15410 s#^/[^/]#//&#
15411 p
15412 q
15413 }'`'"'
15414
15415
15416 fi
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15418 $as_echo "$gl_cv_next_time_h" >&6; }
15419 fi
15420 NEXT_TIME_H=$gl_cv_next_time_h
15421
15422 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15423 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15424 gl_next_as_first_directive='<'time.h'>'
15425 else
15426 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15427 gl_next_as_first_directive=$gl_cv_next_time_h
15428 fi
15429 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15430
15431
15432
15433
15434
15435
15436 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15437 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then :
15438 ac_have_decl=1
15439 else
15440 ac_have_decl=0
15441 fi
15442
15443 cat >>confdefs.h <<_ACEOF
15444 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15445 _ACEOF
15446
15447
15448
15449
15450 if false; then
15451 GL_COND_LIBTOOL_TRUE=
15452 GL_COND_LIBTOOL_FALSE='#'
15453 else
15454 GL_COND_LIBTOOL_TRUE='#'
15455 GL_COND_LIBTOOL_FALSE=
15456 fi
15457
15458 gl_cond_libtool=false
15459 gl_libdeps=
15460 gl_ltlibdeps=
15461 gl_m4_base='m4'
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471 gl_source_base='lib'
15472 # Code from module allocator:
15473 # Code from module arg-nonnull:
15474 # Code from module c++defs:
15475 # Code from module careadlinkat:
15476
15477 # Code from module crypto/md5:
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15488
15489
15490
15491
15492 :
15493
15494 # Code from module dosname:
15495 # Code from module dtoastr:
15496
15497 # Code from module extensions:
15498 # Code from module filemode:
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15510
15511
15512
15513 # Code from module getloadavg:
15514
15515
15516 # Persuade glibc <stdlib.h> to declare getloadavg().
15517
15518
15519 # Make sure getloadavg.c is where it belongs, at configure-time.
15520 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15521 as_fn_error "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15522
15523 gl_save_LIBS=$LIBS
15524
15525 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15526 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15527 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15528 if test "x$ac_cv_func_getloadavg" = x""yes; then :
15529
15530 else
15531 gl_have_func=no
15532
15533 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15534 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15535 # to get the right answer into the cache.
15536 # For kstat on solaris, we need to test for libelf and libkvm to force the
15537 # definition of SVR4 below.
15538 if test $gl_have_func = no; then
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15540 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15541 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
15542 $as_echo_n "(cached) " >&6
15543 else
15544 ac_check_lib_save_LIBS=$LIBS
15545 LIBS="-lelf $LIBS"
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15548
15549 /* Override any GCC internal prototype to avoid an error.
15550 Use char because int might match the return type of a GCC
15551 builtin and then its argument prototype would still apply. */
15552 #ifdef __cplusplus
15553 extern "C"
15554 #endif
15555 char elf_begin ();
15556 int
15557 main ()
15558 {
15559 return elf_begin ();
15560 ;
15561 return 0;
15562 }
15563 _ACEOF
15564 if ac_fn_c_try_link "$LINENO"; then :
15565 ac_cv_lib_elf_elf_begin=yes
15566 else
15567 ac_cv_lib_elf_elf_begin=no
15568 fi
15569 rm -f core conftest.err conftest.$ac_objext \
15570 conftest$ac_exeext conftest.$ac_ext
15571 LIBS=$ac_check_lib_save_LIBS
15572 fi
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15574 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15575 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
15576 LIBS="-lelf $LIBS"
15577 fi
15578
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15580 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15581 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
15582 $as_echo_n "(cached) " >&6
15583 else
15584 ac_check_lib_save_LIBS=$LIBS
15585 LIBS="-lkvm $LIBS"
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15588
15589 /* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15592 #ifdef __cplusplus
15593 extern "C"
15594 #endif
15595 char kvm_open ();
15596 int
15597 main ()
15598 {
15599 return kvm_open ();
15600 ;
15601 return 0;
15602 }
15603 _ACEOF
15604 if ac_fn_c_try_link "$LINENO"; then :
15605 ac_cv_lib_kvm_kvm_open=yes
15606 else
15607 ac_cv_lib_kvm_kvm_open=no
15608 fi
15609 rm -f core conftest.err conftest.$ac_objext \
15610 conftest$ac_exeext conftest.$ac_ext
15611 LIBS=$ac_check_lib_save_LIBS
15612 fi
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15614 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15615 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
15616 LIBS="-lkvm $LIBS"
15617 fi
15618
15619 # Check for the 4.4BSD definition of getloadavg.
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15621 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15622 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
15623 $as_echo_n "(cached) " >&6
15624 else
15625 ac_check_lib_save_LIBS=$LIBS
15626 LIBS="-lutil $LIBS"
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15629
15630 /* Override any GCC internal prototype to avoid an error.
15631 Use char because int might match the return type of a GCC
15632 builtin and then its argument prototype would still apply. */
15633 #ifdef __cplusplus
15634 extern "C"
15635 #endif
15636 char getloadavg ();
15637 int
15638 main ()
15639 {
15640 return getloadavg ();
15641 ;
15642 return 0;
15643 }
15644 _ACEOF
15645 if ac_fn_c_try_link "$LINENO"; then :
15646 ac_cv_lib_util_getloadavg=yes
15647 else
15648 ac_cv_lib_util_getloadavg=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext \
15651 conftest$ac_exeext conftest.$ac_ext
15652 LIBS=$ac_check_lib_save_LIBS
15653 fi
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15655 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15656 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
15657 LIBS="-lutil $LIBS" gl_have_func=yes
15658 fi
15659
15660 fi
15661
15662 if test $gl_have_func = no; then
15663 # There is a commonly available library for RS/6000 AIX.
15664 # Since it is not a standard part of AIX, it might be installed locally.
15665 gl_getloadavg_LIBS=$LIBS
15666 LIBS="-L/usr/local/lib $LIBS"
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15668 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15669 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
15670 $as_echo_n "(cached) " >&6
15671 else
15672 ac_check_lib_save_LIBS=$LIBS
15673 LIBS="-lgetloadavg $LIBS"
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676
15677 /* Override any GCC internal prototype to avoid an error.
15678 Use char because int might match the return type of a GCC
15679 builtin and then its argument prototype would still apply. */
15680 #ifdef __cplusplus
15681 extern "C"
15682 #endif
15683 char getloadavg ();
15684 int
15685 main ()
15686 {
15687 return getloadavg ();
15688 ;
15689 return 0;
15690 }
15691 _ACEOF
15692 if ac_fn_c_try_link "$LINENO"; then :
15693 ac_cv_lib_getloadavg_getloadavg=yes
15694 else
15695 ac_cv_lib_getloadavg_getloadavg=no
15696 fi
15697 rm -f core conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_check_lib_save_LIBS
15700 fi
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15702 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15703 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
15704 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15705 else
15706 LIBS=$gl_getloadavg_LIBS
15707 fi
15708
15709 fi
15710
15711 # Set up the replacement function if necessary.
15712 if test $gl_have_func = no; then
15713
15714
15715
15716
15717
15718
15719
15720
15721 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15722
15723
15724 # Figure out what our getloadavg.c needs.
15725
15726 # Solaris has libkstat which does not require root.
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15728 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15729 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 ac_check_lib_save_LIBS=$LIBS
15733 LIBS="-lkstat $LIBS"
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15736
15737 /* Override any GCC internal prototype to avoid an error.
15738 Use char because int might match the return type of a GCC
15739 builtin and then its argument prototype would still apply. */
15740 #ifdef __cplusplus
15741 extern "C"
15742 #endif
15743 char kstat_open ();
15744 int
15745 main ()
15746 {
15747 return kstat_open ();
15748 ;
15749 return 0;
15750 }
15751 _ACEOF
15752 if ac_fn_c_try_link "$LINENO"; then :
15753 ac_cv_lib_kstat_kstat_open=yes
15754 else
15755 ac_cv_lib_kstat_kstat_open=no
15756 fi
15757 rm -f core conftest.err conftest.$ac_objext \
15758 conftest$ac_exeext conftest.$ac_ext
15759 LIBS=$ac_check_lib_save_LIBS
15760 fi
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15762 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15763 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
15764 cat >>confdefs.h <<_ACEOF
15765 #define HAVE_LIBKSTAT 1
15766 _ACEOF
15767
15768 LIBS="-lkstat $LIBS"
15769
15770 fi
15771
15772 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15773
15774 # On HPUX9, an unprivileged user can get load averages this way.
15775 if test $gl_have_func = no; then
15776 for ac_func in pstat_getdynamic
15777 do :
15778 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15779 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
15780 cat >>confdefs.h <<_ACEOF
15781 #define HAVE_PSTAT_GETDYNAMIC 1
15782 _ACEOF
15783 gl_have_func=yes
15784 fi
15785 done
15786
15787 fi
15788
15789 # AIX has libperfstat which does not require root
15790 if test $gl_have_func = no; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15792 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15793 if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15796 ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-lperfstat $LIBS"
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800
15801 /* Override any GCC internal prototype to avoid an error.
15802 Use char because int might match the return type of a GCC
15803 builtin and then its argument prototype would still apply. */
15804 #ifdef __cplusplus
15805 extern "C"
15806 #endif
15807 char perfstat_cpu_total ();
15808 int
15809 main ()
15810 {
15811 return perfstat_cpu_total ();
15812 ;
15813 return 0;
15814 }
15815 _ACEOF
15816 if ac_fn_c_try_link "$LINENO"; then :
15817 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15818 else
15819 ac_cv_lib_perfstat_perfstat_cpu_total=no
15820 fi
15821 rm -f core conftest.err conftest.$ac_objext \
15822 conftest$ac_exeext conftest.$ac_ext
15823 LIBS=$ac_check_lib_save_LIBS
15824 fi
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15826 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15827 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then :
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE_LIBPERFSTAT 1
15830 _ACEOF
15831
15832 LIBS="-lperfstat $LIBS"
15833
15834 fi
15835
15836 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15837 fi
15838
15839 if test $gl_have_func = no; then
15840 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15841 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
15842 gl_have_func=yes
15843
15844 $as_echo "#define DGUX 1" >>confdefs.h
15845
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15847 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15848 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 ac_check_lib_save_LIBS=$LIBS
15852 LIBS="-ldgc $LIBS"
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855
15856 /* Override any GCC internal prototype to avoid an error.
15857 Use char because int might match the return type of a GCC
15858 builtin and then its argument prototype would still apply. */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 char dg_sys_info ();
15863 int
15864 main ()
15865 {
15866 return dg_sys_info ();
15867 ;
15868 return 0;
15869 }
15870 _ACEOF
15871 if ac_fn_c_try_link "$LINENO"; then :
15872 ac_cv_lib_dgc_dg_sys_info=yes
15873 else
15874 ac_cv_lib_dgc_dg_sys_info=no
15875 fi
15876 rm -f core conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 LIBS=$ac_check_lib_save_LIBS
15879 fi
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15881 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15882 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
15883 cat >>confdefs.h <<_ACEOF
15884 #define HAVE_LIBDGC 1
15885 _ACEOF
15886
15887 LIBS="-ldgc $LIBS"
15888
15889 fi
15890
15891 fi
15892
15893
15894 fi
15895
15896 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15897 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15898 # Irix 4.0.5F has the header but not the library.
15899 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15900 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15901 gl_have_func=yes
15902
15903 $as_echo "#define SVR4 1" >>confdefs.h
15904
15905 fi
15906
15907 if test $gl_have_func = no; then
15908 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15909 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
15910 gl_have_func=yes
15911
15912 $as_echo "#define UMAX 1" >>confdefs.h
15913
15914
15915 $as_echo "#define UMAX4_3 1" >>confdefs.h
15916
15917 fi
15918
15919
15920 fi
15921
15922 if test $gl_have_func = no; then
15923 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15924 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
15925 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15926
15927 fi
15928
15929
15930 fi
15931
15932 if test $gl_have_func = no; then
15933 for ac_header in mach/mach.h
15934 do :
15935 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15936 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
15937 cat >>confdefs.h <<_ACEOF
15938 #define HAVE_MACH_MACH_H 1
15939 _ACEOF
15940
15941 fi
15942
15943 done
15944
15945 fi
15946
15947 for ac_header in nlist.h
15948 do :
15949 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15950 if test "x$ac_cv_header_nlist_h" = x""yes; then :
15951 cat >>confdefs.h <<_ACEOF
15952 #define HAVE_NLIST_H 1
15953 _ACEOF
15954 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15955 "
15956 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
15957
15958 cat >>confdefs.h <<_ACEOF
15959 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15960 _ACEOF
15961
15962
15963 fi
15964
15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h. */
15967 #include <nlist.h>
15968 int
15969 main ()
15970 {
15971 struct nlist x;
15972 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15973 x.n_un.n_name = "";
15974 #else
15975 x.n_name = "";
15976 #endif
15977 ;
15978 return 0;
15979 }
15980 _ACEOF
15981 if ac_fn_c_try_link "$LINENO"; then :
15982
15983 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15984
15985 fi
15986 rm -f core conftest.err conftest.$ac_objext \
15987 conftest$ac_exeext conftest.$ac_ext
15988
15989 fi
15990
15991 done
15992
15993 fi
15994 fi
15995
15996
15997 if test "x$gl_save_LIBS" = x; then
15998 GETLOADAVG_LIBS=$LIBS
15999 else
16000 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
16001 fi
16002 LIBS=$gl_save_LIBS
16003
16004
16005 # Test whether the system declares getloadavg. Solaris has the function
16006 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
16007 for ac_header in sys/loadavg.h
16008 do :
16009 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
16010 if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then :
16011 cat >>confdefs.h <<_ACEOF
16012 #define HAVE_SYS_LOADAVG_H 1
16013 _ACEOF
16014
16015 fi
16016
16017 done
16018
16019 if test $ac_cv_header_sys_loadavg_h = yes; then
16020 HAVE_SYS_LOADAVG_H=1
16021 else
16022 HAVE_SYS_LOADAVG_H=0
16023 fi
16024 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
16025 # include <sys/loadavg.h>
16026 #endif
16027 #include <stdlib.h>
16028 "
16029 if test "x$ac_cv_have_decl_getloadavg" = x""yes; then :
16030
16031 else
16032 HAVE_DECL_GETLOADAVG=0
16033 fi
16034
16035
16036
16037
16038
16039 GNULIB_GETLOADAVG=1
16040
16041
16042
16043 # Code from module getopt-gnu:
16044
16045
16046
16047
16048
16049
16050 # Code from module getopt-posix:
16051
16052
16053
16054
16055
16056 if test -n "$gl_replace_getopt"; then :
16057
16058
16059
16060 GETOPT_H=getopt.h
16061
16062 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
16063
16064
16065
16066 GNULIB_UNISTD_H_GETOPT=1
16067
16068
16069
16070
16071
16072
16073
16074
16075 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
16086
16087
16088
16089
16090
16091
16092 fi
16093
16094
16095 # Code from module gettext-h:
16096
16097
16098 # Code from module ignore-value:
16099
16100 # Code from module include_next:
16101 # Code from module intprops:
16102 # Code from module lstat:
16103
16104
16105
16106 if test $ac_cv_func_lstat = yes; then
16107
16108 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
16109 REPLACE_LSTAT=1
16110 fi
16111 # Prerequisites of lib/lstat.c.
16112
16113 else
16114 HAVE_LSTAT=0
16115 fi
16116
16117
16118
16119
16120 GNULIB_LSTAT=1
16121
16122
16123
16124 # Code from module mktime:
16125
16126
16127
16128
16129
16130 if test $APPLE_UNIVERSAL_BUILD = 1; then
16131 # A universal build on Apple MacOS X platforms.
16132 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
16133 # But we need a configuration result that is valid in both modes.
16134 ac_cv_func_working_mktime=no
16135 fi
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
16137 $as_echo_n "checking for working mktime... " >&6; }
16138 if test "${ac_cv_func_working_mktime+set}" = set; then :
16139 $as_echo_n "(cached) " >&6
16140 else
16141 if test "$cross_compiling" = yes; then :
16142 ac_cv_func_working_mktime=no
16143 else
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16146 /* Test program from Paul Eggert and Tony Leneis. */
16147 #include <limits.h>
16148 #include <stdlib.h>
16149 #include <time.h>
16150
16151 #ifdef HAVE_UNISTD_H
16152 # include <unistd.h>
16153 #endif
16154
16155 #ifndef HAVE_ALARM
16156 # define alarm(X) /* empty */
16157 #endif
16158
16159 /* Work around redefinition to rpl_putenv by other config tests. */
16160 #undef putenv
16161
16162 static time_t time_t_max;
16163 static time_t time_t_min;
16164
16165 /* Values we'll use to set the TZ environment variable. */
16166 static char *tz_strings[] = {
16167 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16168 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16169 };
16170 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16171
16172 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16173 Based on a problem report from Andreas Jaeger. */
16174 static int
16175 spring_forward_gap ()
16176 {
16177 /* glibc (up to about 1998-10-07) failed this test. */
16178 struct tm tm;
16179
16180 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16181 instead of "TZ=America/Vancouver" in order to detect the bug even
16182 on systems that don't support the Olson extension, or don't have the
16183 full zoneinfo tables installed. */
16184 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16185
16186 tm.tm_year = 98;
16187 tm.tm_mon = 3;
16188 tm.tm_mday = 5;
16189 tm.tm_hour = 2;
16190 tm.tm_min = 0;
16191 tm.tm_sec = 0;
16192 tm.tm_isdst = -1;
16193 return mktime (&tm) != (time_t) -1;
16194 }
16195
16196 static int
16197 mktime_test1 (time_t now)
16198 {
16199 struct tm *lt;
16200 return ! (lt = localtime (&now)) || mktime (lt) == now;
16201 }
16202
16203 static int
16204 mktime_test (time_t now)
16205 {
16206 return (mktime_test1 (now)
16207 && mktime_test1 ((time_t) (time_t_max - now))
16208 && mktime_test1 ((time_t) (time_t_min + now)));
16209 }
16210
16211 static int
16212 irix_6_4_bug ()
16213 {
16214 /* Based on code from Ariel Faigon. */
16215 struct tm tm;
16216 tm.tm_year = 96;
16217 tm.tm_mon = 3;
16218 tm.tm_mday = 0;
16219 tm.tm_hour = 0;
16220 tm.tm_min = 0;
16221 tm.tm_sec = 0;
16222 tm.tm_isdst = -1;
16223 mktime (&tm);
16224 return tm.tm_mon == 2 && tm.tm_mday == 31;
16225 }
16226
16227 static int
16228 bigtime_test (int j)
16229 {
16230 struct tm tm;
16231 time_t now;
16232 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16233 now = mktime (&tm);
16234 if (now != (time_t) -1)
16235 {
16236 struct tm *lt = localtime (&now);
16237 if (! (lt
16238 && lt->tm_year == tm.tm_year
16239 && lt->tm_mon == tm.tm_mon
16240 && lt->tm_mday == tm.tm_mday
16241 && lt->tm_hour == tm.tm_hour
16242 && lt->tm_min == tm.tm_min
16243 && lt->tm_sec == tm.tm_sec
16244 && lt->tm_yday == tm.tm_yday
16245 && lt->tm_wday == tm.tm_wday
16246 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16247 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16248 return 0;
16249 }
16250 return 1;
16251 }
16252
16253 static int
16254 year_2050_test ()
16255 {
16256 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16257 ignoring leap seconds. */
16258 unsigned long int answer = 2527315200UL;
16259
16260 struct tm tm;
16261 time_t t;
16262 tm.tm_year = 2050 - 1900;
16263 tm.tm_mon = 2 - 1;
16264 tm.tm_mday = 1;
16265 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16266 tm.tm_isdst = -1;
16267
16268 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16269 instead of "TZ=America/Vancouver" in order to detect the bug even
16270 on systems that don't support the Olson extension, or don't have the
16271 full zoneinfo tables installed. */
16272 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16273
16274 t = mktime (&tm);
16275
16276 /* Check that the result is either a failure, or close enough
16277 to the correct answer that we can assume the discrepancy is
16278 due to leap seconds. */
16279 return (t == (time_t) -1
16280 || (0 < t && answer - 120 <= t && t <= answer + 120));
16281 }
16282
16283 int
16284 main ()
16285 {
16286 int result = 0;
16287 time_t t, delta;
16288 int i, j;
16289 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
16290 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
16291
16292 /* This test makes some buggy mktime implementations loop.
16293 Give up after 60 seconds; a mktime slower than that
16294 isn't worth using anyway. */
16295 alarm (60);
16296
16297 time_t_max = (! time_t_signed
16298 ? (time_t) -1
16299 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
16300 * 2 + 1));
16301 time_t_min = (! time_t_signed
16302 ? (time_t) 0
16303 : time_t_signed_magnitude
16304 ? ~ (time_t) 0
16305 : ~ time_t_max);
16306
16307 delta = time_t_max / 997; /* a suitable prime number */
16308 for (i = 0; i < N_STRINGS; i++)
16309 {
16310 if (tz_strings[i])
16311 putenv (tz_strings[i]);
16312
16313 for (t = 0; t <= time_t_max - delta; t += delta)
16314 if (! mktime_test (t))
16315 result |= 1;
16316 if (! (mktime_test ((time_t) 1)
16317 && mktime_test ((time_t) (60 * 60))
16318 && mktime_test ((time_t) (60 * 60 * 24))))
16319 result |= 2;
16320
16321 for (j = 1; ; j <<= 1)
16322 if (! bigtime_test (j))
16323 result |= 4;
16324 else if (INT_MAX / 2 < j)
16325 break;
16326 if (! bigtime_test (INT_MAX))
16327 result |= 8;
16328 }
16329 if (! irix_6_4_bug ())
16330 result |= 16;
16331 if (! spring_forward_gap ())
16332 result |= 32;
16333 if (! year_2050_test ())
16334 result |= 64;
16335 return result;
16336 }
16337 _ACEOF
16338 if ac_fn_c_try_run "$LINENO"; then :
16339 ac_cv_func_working_mktime=yes
16340 else
16341 ac_cv_func_working_mktime=no
16342 fi
16343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16344 conftest.$ac_objext conftest.beam conftest.$ac_ext
16345 fi
16346
16347 fi
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16349 $as_echo "$ac_cv_func_working_mktime" >&6; }
16350 if test $ac_cv_func_working_mktime = no; then
16351
16352
16353
16354
16355
16356
16357
16358
16359 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
16360
16361 fi
16362
16363 if test $ac_cv_func_working_mktime = no; then
16364 REPLACE_MKTIME=1
16365
16366
16367
16368 else
16369 REPLACE_MKTIME=0
16370 fi
16371
16372
16373
16374
16375 GNULIB_MKTIME=1
16376
16377
16378
16379 # Code from module multiarch:
16380
16381 # Code from module readlink:
16382
16383
16384
16385 if test $ac_cv_func_readlink = no; then
16386 HAVE_READLINK=0
16387
16388
16389
16390
16391
16392
16393
16394
16395 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16396
16397
16398 :
16399
16400 else
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16402 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16403 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16404 $as_echo_n "(cached) " >&6
16405 else
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h. */
16408 #include <unistd.h>
16409 /* Cause compilation failure if original declaration has wrong type. */
16410 ssize_t readlink (const char *, char *, size_t);
16411 int
16412 main ()
16413 {
16414
16415 ;
16416 return 0;
16417 }
16418 _ACEOF
16419 if ac_fn_c_try_compile "$LINENO"; then :
16420 gl_cv_decl_readlink_works=yes
16421 else
16422 gl_cv_decl_readlink_works=no
16423 fi
16424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425 fi
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16427 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16429 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16430 if test "${gl_cv_func_readlink_works+set}" = set; then :
16431 $as_echo_n "(cached) " >&6
16432 else
16433 # We have readlink, so assume ln -s works.
16434 ln -s conftest.no-such conftest.link
16435 ln -s conftest.link conftest.lnk2
16436 if test "$cross_compiling" = yes; then :
16437 gl_cv_func_readlink_works="guessing no"
16438 else
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 #include <unistd.h>
16442
16443 int
16444 main ()
16445 {
16446 char buf[20];
16447 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16448 ;
16449 return 0;
16450 }
16451 _ACEOF
16452 if ac_fn_c_try_run "$LINENO"; then :
16453 gl_cv_func_readlink_works=yes
16454 else
16455 gl_cv_func_readlink_works=no
16456 fi
16457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16458 conftest.$ac_objext conftest.beam conftest.$ac_ext
16459 fi
16460
16461 rm -f conftest.link conftest.lnk2
16462 fi
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16464 $as_echo "$gl_cv_func_readlink_works" >&6; }
16465 if test "$gl_cv_func_readlink_works" != yes; then
16466
16467 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16468
16469 REPLACE_READLINK=1
16470
16471
16472
16473
16474
16475
16476
16477
16478 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16479
16480 elif test "$gl_cv_decl_readlink_works" != yes; then
16481 REPLACE_READLINK=1
16482
16483
16484
16485
16486
16487
16488
16489
16490 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16491
16492 fi
16493 fi
16494
16495
16496
16497
16498 GNULIB_READLINK=1
16499
16500
16501
16502 # Code from module socklen:
16503 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16504 /* <sys/types.h> is not needed according to POSIX, but the
16505 <sys/socket.h> in i386-unknown-freebsd4.10 and
16506 powerpc-apple-darwin5.5 required it. */
16507 #include <sys/types.h>
16508 #if HAVE_SYS_SOCKET_H
16509 # include <sys/socket.h>
16510 #elif HAVE_WS2TCPIP_H
16511 # include <ws2tcpip.h>
16512 #endif
16513
16514 "
16515 if test "x$ac_cv_type_socklen_t" = x""yes; then :
16516
16517 else
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16519 $as_echo_n "checking for socklen_t equivalent... " >&6; }
16520 if test "${gl_cv_socklen_t_equiv+set}" = set; then :
16521 $as_echo_n "(cached) " >&6
16522 else
16523 # Systems have either "struct sockaddr *" or
16524 # "void *" as the second argument to getpeername
16525 gl_cv_socklen_t_equiv=
16526 for arg2 in "struct sockaddr" void; do
16527 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 #include <sys/types.h>
16531 #include <sys/socket.h>
16532
16533 int getpeername (int, $arg2 *, $t *);
16534 int
16535 main ()
16536 {
16537 $t len;
16538 getpeername (0, 0, &len);
16539 ;
16540 return 0;
16541 }
16542 _ACEOF
16543 if ac_fn_c_try_compile "$LINENO"; then :
16544 gl_cv_socklen_t_equiv="$t"
16545 fi
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 test "$gl_cv_socklen_t_equiv" != "" && break
16548 done
16549 test "$gl_cv_socklen_t_equiv" != "" && break
16550 done
16551
16552 fi
16553
16554 if test "$gl_cv_socklen_t_equiv" = ""; then
16555 as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5
16556 fi
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16558 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define socklen_t $gl_cv_socklen_t_equiv
16562 _ACEOF
16563
16564 fi
16565
16566 # Code from module ssize_t:
16567
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16569 $as_echo_n "checking for ssize_t... " >&6; }
16570 if test "${gt_cv_ssize_t+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16572 else
16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574 /* end confdefs.h. */
16575 #include <sys/types.h>
16576 int
16577 main ()
16578 {
16579 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16580 return !x;
16581 ;
16582 return 0;
16583 }
16584 _ACEOF
16585 if ac_fn_c_try_compile "$LINENO"; then :
16586 gt_cv_ssize_t=yes
16587 else
16588 gt_cv_ssize_t=no
16589 fi
16590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16591 fi
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16593 $as_echo "$gt_cv_ssize_t" >&6; }
16594 if test $gt_cv_ssize_t = no; then
16595
16596 $as_echo "#define ssize_t int" >>confdefs.h
16597
16598 fi
16599
16600 # Code from module stat:
16601
16602
16603
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16605 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16606 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16607 $as_echo_n "(cached) " >&6
16608 else
16609 if test "$cross_compiling" = yes; then :
16610 case $host_os in
16611 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16612 *) gl_cv_func_stat_dir_slash="guessing yes";;
16613 esac
16614 else
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16617 #include <sys/stat.h>
16618
16619 int
16620 main ()
16621 {
16622 struct stat st; return stat (".", &st) != stat ("./", &st);
16623 ;
16624 return 0;
16625 }
16626 _ACEOF
16627 if ac_fn_c_try_run "$LINENO"; then :
16628 gl_cv_func_stat_dir_slash=yes
16629 else
16630 gl_cv_func_stat_dir_slash=no
16631 fi
16632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16633 conftest.$ac_objext conftest.beam conftest.$ac_ext
16634 fi
16635
16636 fi
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16638 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16640 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16641 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16642 $as_echo_n "(cached) " >&6
16643 else
16644 touch conftest.tmp
16645 # Assume that if we have lstat, we can also check symlinks.
16646 if test $ac_cv_func_lstat = yes; then
16647 ln -s conftest.tmp conftest.lnk
16648 fi
16649 if test "$cross_compiling" = yes; then :
16650 gl_cv_func_stat_file_slash="guessing no"
16651 else
16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16653 /* end confdefs.h. */
16654 #include <sys/stat.h>
16655
16656 int
16657 main ()
16658 {
16659 int result = 0;
16660 struct stat st;
16661 if (!stat ("conftest.tmp/", &st))
16662 result |= 1;
16663 #if HAVE_LSTAT
16664 if (!stat ("conftest.lnk/", &st))
16665 result |= 2;
16666 #endif
16667 return result;
16668
16669 ;
16670 return 0;
16671 }
16672 _ACEOF
16673 if ac_fn_c_try_run "$LINENO"; then :
16674 gl_cv_func_stat_file_slash=yes
16675 else
16676 gl_cv_func_stat_file_slash=no
16677 fi
16678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16679 conftest.$ac_objext conftest.beam conftest.$ac_ext
16680 fi
16681
16682 rm -f conftest.tmp conftest.lnk
16683 fi
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16685 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16686 case $gl_cv_func_stat_dir_slash in
16687 *no) REPLACE_STAT=1
16688
16689 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16690 ;;
16691 esac
16692 case $gl_cv_func_stat_file_slash in
16693 *no) REPLACE_STAT=1
16694
16695 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16696 ;;
16697 esac
16698 if test $REPLACE_STAT = 1; then
16699
16700
16701
16702
16703
16704
16705
16706
16707 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16708
16709
16710 fi
16711
16712
16713
16714
16715 GNULIB_STAT=1
16716
16717
16718
16719 # Code from module stdbool:
16720
16721
16722
16723 # Define two additional variables used in the Makefile substitution.
16724
16725 if test "$ac_cv_header_stdbool_h" = yes; then
16726 STDBOOL_H=''
16727 else
16728 STDBOOL_H='stdbool.h'
16729 fi
16730
16731 if test -n "$STDBOOL_H"; then
16732 GL_GENERATE_STDBOOL_H_TRUE=
16733 GL_GENERATE_STDBOOL_H_FALSE='#'
16734 else
16735 GL_GENERATE_STDBOOL_H_TRUE='#'
16736 GL_GENERATE_STDBOOL_H_FALSE=
16737 fi
16738
16739
16740 if test "$ac_cv_type__Bool" = yes; then
16741 HAVE__BOOL=1
16742 else
16743 HAVE__BOOL=0
16744 fi
16745
16746
16747 # Code from module stddef:
16748
16749
16750
16751 STDDEF_H=
16752 if test $gt_cv_c_wchar_t = no; then
16753 HAVE_WCHAR_T=0
16754 STDDEF_H=stddef.h
16755 fi
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16757 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16758 if test "${gl_cv_decl_null_works+set}" = set; then :
16759 $as_echo_n "(cached) " >&6
16760 else
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16763 #include <stddef.h>
16764 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16765
16766 int
16767 main ()
16768 {
16769
16770 ;
16771 return 0;
16772 }
16773 _ACEOF
16774 if ac_fn_c_try_compile "$LINENO"; then :
16775 gl_cv_decl_null_works=yes
16776 else
16777 gl_cv_decl_null_works=no
16778 fi
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 fi
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16782 $as_echo "$gl_cv_decl_null_works" >&6; }
16783 if test $gl_cv_decl_null_works = no; then
16784 REPLACE_NULL=1
16785 STDDEF_H=stddef.h
16786 fi
16787
16788 if test -n "$STDDEF_H"; then
16789 GL_GENERATE_STDDEF_H_TRUE=
16790 GL_GENERATE_STDDEF_H_FALSE='#'
16791 else
16792 GL_GENERATE_STDDEF_H_TRUE='#'
16793 GL_GENERATE_STDDEF_H_FALSE=
16794 fi
16795
16796 if test -n "$STDDEF_H"; then
16797
16798
16799
16800
16801
16802
16803
16804
16805 if test $gl_cv_have_include_next = yes; then
16806 gl_cv_next_stddef_h='<'stddef.h'>'
16807 else
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16809 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16810 if test "${gl_cv_next_stddef_h+set}" = set; then :
16811 $as_echo_n "(cached) " >&6
16812 else
16813
16814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h. */
16816 #include <stddef.h>
16817
16818 _ACEOF
16819 case "$host_os" in
16820 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16821 *) gl_absname_cpp="$ac_cpp" ;;
16822 esac
16823 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16824 sed -n '\#/stddef.h#{
16825 s#.*"\(.*/stddef.h\)".*#\1#
16826 s#^/[^/]#//&#
16827 p
16828 q
16829 }'`'"'
16830
16831
16832 fi
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16834 $as_echo "$gl_cv_next_stddef_h" >&6; }
16835 fi
16836 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16837
16838 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16839 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16840 gl_next_as_first_directive='<'stddef.h'>'
16841 else
16842 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16843 gl_next_as_first_directive=$gl_cv_next_stddef_h
16844 fi
16845 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16846
16847
16848
16849
16850 fi
16851
16852 # Code from module stdint:
16853
16854
16855
16856 if test $ac_cv_type_long_long_int = yes; then
16857 HAVE_LONG_LONG_INT=1
16858 else
16859 HAVE_LONG_LONG_INT=0
16860 fi
16861
16862
16863 if test $ac_cv_type_unsigned_long_long_int = yes; then
16864 HAVE_UNSIGNED_LONG_LONG_INT=1
16865 else
16866 HAVE_UNSIGNED_LONG_LONG_INT=0
16867 fi
16868
16869
16870
16871 if test $ac_cv_header_wchar_h = yes; then
16872 HAVE_WCHAR_H=1
16873 else
16874 HAVE_WCHAR_H=0
16875 fi
16876
16877
16878 if test $ac_cv_header_inttypes_h = yes; then
16879 HAVE_INTTYPES_H=1
16880 else
16881 HAVE_INTTYPES_H=0
16882 fi
16883
16884
16885 if test $ac_cv_header_sys_types_h = yes; then
16886 HAVE_SYS_TYPES_H=1
16887 else
16888 HAVE_SYS_TYPES_H=0
16889 fi
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901 if test $gl_cv_have_include_next = yes; then
16902 gl_cv_next_stdint_h='<'stdint.h'>'
16903 else
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16905 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16906 if test "${gl_cv_next_stdint_h+set}" = set; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909
16910 if test $ac_cv_header_stdint_h = yes; then
16911
16912
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915 #include <stdint.h>
16916
16917 _ACEOF
16918 case "$host_os" in
16919 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16920 *) gl_absname_cpp="$ac_cpp" ;;
16921 esac
16922 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16923 sed -n '\#/stdint.h#{
16924 s#.*"\(.*/stdint.h\)".*#\1#
16925 s#^/[^/]#//&#
16926 p
16927 q
16928 }'`'"'
16929 else
16930 gl_cv_next_stdint_h='<'stdint.h'>'
16931 fi
16932
16933
16934 fi
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16936 $as_echo "$gl_cv_next_stdint_h" >&6; }
16937 fi
16938 NEXT_STDINT_H=$gl_cv_next_stdint_h
16939
16940 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16942 gl_next_as_first_directive='<'stdint.h'>'
16943 else
16944 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16945 gl_next_as_first_directive=$gl_cv_next_stdint_h
16946 fi
16947 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16948
16949
16950
16951
16952 if test $ac_cv_header_stdint_h = yes; then
16953 HAVE_STDINT_H=1
16954 else
16955 HAVE_STDINT_H=0
16956 fi
16957
16958
16959 if test $ac_cv_header_stdint_h = yes; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16961 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16962 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
16963 $as_echo_n "(cached) " >&6
16964 else
16965 gl_cv_header_working_stdint_h=no
16966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16967 /* end confdefs.h. */
16968
16969
16970 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16971 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16972 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16973 #include <stdint.h>
16974 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16975 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16976 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16977 #endif
16978
16979
16980 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16981 included before <wchar.h>. */
16982 #include <stddef.h>
16983 #include <signal.h>
16984 #if HAVE_WCHAR_H
16985 # include <stdio.h>
16986 # include <time.h>
16987 # include <wchar.h>
16988 #endif
16989
16990
16991 #ifdef INT8_MAX
16992 int8_t a1 = INT8_MAX;
16993 int8_t a1min = INT8_MIN;
16994 #endif
16995 #ifdef INT16_MAX
16996 int16_t a2 = INT16_MAX;
16997 int16_t a2min = INT16_MIN;
16998 #endif
16999 #ifdef INT32_MAX
17000 int32_t a3 = INT32_MAX;
17001 int32_t a3min = INT32_MIN;
17002 #endif
17003 #ifdef INT64_MAX
17004 int64_t a4 = INT64_MAX;
17005 int64_t a4min = INT64_MIN;
17006 #endif
17007 #ifdef UINT8_MAX
17008 uint8_t b1 = UINT8_MAX;
17009 #else
17010 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17011 #endif
17012 #ifdef UINT16_MAX
17013 uint16_t b2 = UINT16_MAX;
17014 #endif
17015 #ifdef UINT32_MAX
17016 uint32_t b3 = UINT32_MAX;
17017 #endif
17018 #ifdef UINT64_MAX
17019 uint64_t b4 = UINT64_MAX;
17020 #endif
17021 int_least8_t c1 = INT8_C (0x7f);
17022 int_least8_t c1max = INT_LEAST8_MAX;
17023 int_least8_t c1min = INT_LEAST8_MIN;
17024 int_least16_t c2 = INT16_C (0x7fff);
17025 int_least16_t c2max = INT_LEAST16_MAX;
17026 int_least16_t c2min = INT_LEAST16_MIN;
17027 int_least32_t c3 = INT32_C (0x7fffffff);
17028 int_least32_t c3max = INT_LEAST32_MAX;
17029 int_least32_t c3min = INT_LEAST32_MIN;
17030 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17031 int_least64_t c4max = INT_LEAST64_MAX;
17032 int_least64_t c4min = INT_LEAST64_MIN;
17033 uint_least8_t d1 = UINT8_C (0xff);
17034 uint_least8_t d1max = UINT_LEAST8_MAX;
17035 uint_least16_t d2 = UINT16_C (0xffff);
17036 uint_least16_t d2max = UINT_LEAST16_MAX;
17037 uint_least32_t d3 = UINT32_C (0xffffffff);
17038 uint_least32_t d3max = UINT_LEAST32_MAX;
17039 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17040 uint_least64_t d4max = UINT_LEAST64_MAX;
17041 int_fast8_t e1 = INT_FAST8_MAX;
17042 int_fast8_t e1min = INT_FAST8_MIN;
17043 int_fast16_t e2 = INT_FAST16_MAX;
17044 int_fast16_t e2min = INT_FAST16_MIN;
17045 int_fast32_t e3 = INT_FAST32_MAX;
17046 int_fast32_t e3min = INT_FAST32_MIN;
17047 int_fast64_t e4 = INT_FAST64_MAX;
17048 int_fast64_t e4min = INT_FAST64_MIN;
17049 uint_fast8_t f1 = UINT_FAST8_MAX;
17050 uint_fast16_t f2 = UINT_FAST16_MAX;
17051 uint_fast32_t f3 = UINT_FAST32_MAX;
17052 uint_fast64_t f4 = UINT_FAST64_MAX;
17053 #ifdef INTPTR_MAX
17054 intptr_t g = INTPTR_MAX;
17055 intptr_t gmin = INTPTR_MIN;
17056 #endif
17057 #ifdef UINTPTR_MAX
17058 uintptr_t h = UINTPTR_MAX;
17059 #endif
17060 intmax_t i = INTMAX_MAX;
17061 uintmax_t j = UINTMAX_MAX;
17062
17063 #include <limits.h> /* for CHAR_BIT */
17064 #define TYPE_MINIMUM(t) \
17065 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17066 #define TYPE_MAXIMUM(t) \
17067 ((t) ((t) 0 < (t) -1 \
17068 ? (t) -1 \
17069 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17070 struct s {
17071 int check_PTRDIFF:
17072 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17073 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17074 ? 1 : -1;
17075 /* Detect bug in FreeBSD 6.0 / ia64. */
17076 int check_SIG_ATOMIC:
17077 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17078 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17079 ? 1 : -1;
17080 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17081 int check_WCHAR:
17082 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17083 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17084 ? 1 : -1;
17085 /* Detect bug in mingw. */
17086 int check_WINT:
17087 WINT_MIN == TYPE_MINIMUM (wint_t)
17088 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17089 ? 1 : -1;
17090
17091 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17092 int check_UINT8_C:
17093 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17094 int check_UINT16_C:
17095 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17096
17097 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17098 #ifdef UINT8_MAX
17099 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17100 #endif
17101 #ifdef UINT16_MAX
17102 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17103 #endif
17104 #ifdef UINT32_MAX
17105 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17106 #endif
17107 #ifdef UINT64_MAX
17108 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17109 #endif
17110 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17111 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17112 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17113 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17114 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17115 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17116 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17117 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17118 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17119 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17120 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17121 };
17122
17123 int
17124 main ()
17125 {
17126
17127 ;
17128 return 0;
17129 }
17130 _ACEOF
17131 if ac_fn_c_try_compile "$LINENO"; then :
17132 if test "$cross_compiling" = yes; then :
17133 gl_cv_header_working_stdint_h=yes
17134
17135 else
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17138
17139
17140 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
17141 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
17142 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17143 #include <stdint.h>
17144
17145
17146 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17147 included before <wchar.h>. */
17148 #include <stddef.h>
17149 #include <signal.h>
17150 #if HAVE_WCHAR_H
17151 # include <stdio.h>
17152 # include <time.h>
17153 # include <wchar.h>
17154 #endif
17155
17156
17157 #include <stdio.h>
17158 #include <string.h>
17159 #define MVAL(macro) MVAL1(macro)
17160 #define MVAL1(expression) #expression
17161 static const char *macro_values[] =
17162 {
17163 #ifdef INT8_MAX
17164 MVAL (INT8_MAX),
17165 #endif
17166 #ifdef INT16_MAX
17167 MVAL (INT16_MAX),
17168 #endif
17169 #ifdef INT32_MAX
17170 MVAL (INT32_MAX),
17171 #endif
17172 #ifdef INT64_MAX
17173 MVAL (INT64_MAX),
17174 #endif
17175 #ifdef UINT8_MAX
17176 MVAL (UINT8_MAX),
17177 #endif
17178 #ifdef UINT16_MAX
17179 MVAL (UINT16_MAX),
17180 #endif
17181 #ifdef UINT32_MAX
17182 MVAL (UINT32_MAX),
17183 #endif
17184 #ifdef UINT64_MAX
17185 MVAL (UINT64_MAX),
17186 #endif
17187 NULL
17188 };
17189
17190 int
17191 main ()
17192 {
17193
17194 const char **mv;
17195 for (mv = macro_values; *mv != NULL; mv++)
17196 {
17197 const char *value = *mv;
17198 /* Test whether it looks like a cast expression. */
17199 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17200 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17201 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17202 || strncmp (value, "((int)"/*)*/, 6) == 0
17203 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17204 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17205 return mv - macro_values + 1;
17206 }
17207 return 0;
17208
17209 ;
17210 return 0;
17211 }
17212 _ACEOF
17213 if ac_fn_c_try_run "$LINENO"; then :
17214 gl_cv_header_working_stdint_h=yes
17215 fi
17216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17217 conftest.$ac_objext conftest.beam conftest.$ac_ext
17218 fi
17219
17220
17221 fi
17222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17223
17224 fi
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17226 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17227 fi
17228 if test "$gl_cv_header_working_stdint_h" = yes; then
17229 STDINT_H=
17230 else
17231 for ac_header in sys/inttypes.h sys/bitypes.h
17232 do :
17233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17234 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17235 eval as_val=\$$as_ac_Header
17236 if test "x$as_val" = x""yes; then :
17237 cat >>confdefs.h <<_ACEOF
17238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17239 _ACEOF
17240
17241 fi
17242
17243 done
17244
17245 if test $ac_cv_header_sys_inttypes_h = yes; then
17246 HAVE_SYS_INTTYPES_H=1
17247 else
17248 HAVE_SYS_INTTYPES_H=0
17249 fi
17250
17251 if test $ac_cv_header_sys_bitypes_h = yes; then
17252 HAVE_SYS_BITYPES_H=1
17253 else
17254 HAVE_SYS_BITYPES_H=0
17255 fi
17256
17257
17258
17259
17260 if test $APPLE_UNIVERSAL_BUILD = 0; then
17261
17262
17263 for gltype in ptrdiff_t size_t ; do
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17265 $as_echo_n "checking for bit size of $gltype... " >&6; }
17266 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17267 $as_echo_n "(cached) " >&6
17268 else
17269 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17270 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17271 included before <wchar.h>. */
17272 #include <stddef.h>
17273 #include <signal.h>
17274 #if HAVE_WCHAR_H
17275 # include <stdio.h>
17276 # include <time.h>
17277 # include <wchar.h>
17278 #endif
17279
17280 #include <limits.h>"; then :
17281
17282 else
17283 result=unknown
17284 fi
17285
17286 eval gl_cv_bitsizeof_${gltype}=\$result
17287
17288 fi
17289 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17291 $as_echo "$ac_res" >&6; }
17292 eval result=\$gl_cv_bitsizeof_${gltype}
17293 if test $result = unknown; then
17294 result=0
17295 fi
17296 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17297 cat >>confdefs.h <<_ACEOF
17298 #define BITSIZEOF_${GLTYPE} $result
17299 _ACEOF
17300
17301 eval BITSIZEOF_${GLTYPE}=\$result
17302 done
17303
17304
17305 fi
17306
17307
17308 for gltype in sig_atomic_t wchar_t wint_t ; do
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17310 $as_echo_n "checking for bit size of $gltype... " >&6; }
17311 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
17312 $as_echo_n "(cached) " >&6
17313 else
17314 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
17315 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17316 included before <wchar.h>. */
17317 #include <stddef.h>
17318 #include <signal.h>
17319 #if HAVE_WCHAR_H
17320 # include <stdio.h>
17321 # include <time.h>
17322 # include <wchar.h>
17323 #endif
17324
17325 #include <limits.h>"; then :
17326
17327 else
17328 result=unknown
17329 fi
17330
17331 eval gl_cv_bitsizeof_${gltype}=\$result
17332
17333 fi
17334 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17336 $as_echo "$ac_res" >&6; }
17337 eval result=\$gl_cv_bitsizeof_${gltype}
17338 if test $result = unknown; then
17339 result=0
17340 fi
17341 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17342 cat >>confdefs.h <<_ACEOF
17343 #define BITSIZEOF_${GLTYPE} $result
17344 _ACEOF
17345
17346 eval BITSIZEOF_${GLTYPE}=\$result
17347 done
17348
17349
17350
17351
17352 for gltype in sig_atomic_t wchar_t wint_t ; do
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17354 $as_echo_n "checking whether $gltype is signed... " >&6; }
17355 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
17356 $as_echo_n "(cached) " >&6
17357 else
17358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17359 /* end confdefs.h. */
17360
17361 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17362 included before <wchar.h>. */
17363 #include <stddef.h>
17364 #include <signal.h>
17365 #if HAVE_WCHAR_H
17366 # include <stdio.h>
17367 # include <time.h>
17368 # include <wchar.h>
17369 #endif
17370
17371 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17372 int
17373 main ()
17374 {
17375
17376 ;
17377 return 0;
17378 }
17379 _ACEOF
17380 if ac_fn_c_try_compile "$LINENO"; then :
17381 result=yes
17382 else
17383 result=no
17384 fi
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386 eval gl_cv_type_${gltype}_signed=\$result
17387
17388 fi
17389 eval ac_res=\$gl_cv_type_${gltype}_signed
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17391 $as_echo "$ac_res" >&6; }
17392 eval result=\$gl_cv_type_${gltype}_signed
17393 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17394 if test "$result" = yes; then
17395 cat >>confdefs.h <<_ACEOF
17396 #define HAVE_SIGNED_${GLTYPE} 1
17397 _ACEOF
17398
17399 eval HAVE_SIGNED_${GLTYPE}=1
17400 else
17401 eval HAVE_SIGNED_${GLTYPE}=0
17402 fi
17403 done
17404
17405
17406 gl_cv_type_ptrdiff_t_signed=yes
17407 gl_cv_type_size_t_signed=no
17408 if test $APPLE_UNIVERSAL_BUILD = 0; then
17409
17410
17411 for gltype in ptrdiff_t size_t ; do
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17413 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17414 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17415 $as_echo_n "(cached) " >&6
17416 else
17417 eval gl_cv_type_${gltype}_suffix=no
17418 eval result=\$gl_cv_type_${gltype}_signed
17419 if test "$result" = yes; then
17420 glsufu=
17421 else
17422 glsufu=u
17423 fi
17424 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17425 case $glsuf in
17426 '') gltype1='int';;
17427 l) gltype1='long int';;
17428 ll) gltype1='long long int';;
17429 i64) gltype1='__int64';;
17430 u) gltype1='unsigned int';;
17431 ul) gltype1='unsigned long int';;
17432 ull) gltype1='unsigned long long int';;
17433 ui64)gltype1='unsigned __int64';;
17434 esac
17435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h. */
17437
17438 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17439 included before <wchar.h>. */
17440 #include <stddef.h>
17441 #include <signal.h>
17442 #if HAVE_WCHAR_H
17443 # include <stdio.h>
17444 # include <time.h>
17445 # include <wchar.h>
17446 #endif
17447
17448 extern $gltype foo;
17449 extern $gltype1 foo;
17450 int
17451 main ()
17452 {
17453
17454 ;
17455 return 0;
17456 }
17457 _ACEOF
17458 if ac_fn_c_try_compile "$LINENO"; then :
17459 eval gl_cv_type_${gltype}_suffix=\$glsuf
17460 fi
17461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17462 eval result=\$gl_cv_type_${gltype}_suffix
17463 test "$result" != no && break
17464 done
17465 fi
17466 eval ac_res=\$gl_cv_type_${gltype}_suffix
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17468 $as_echo "$ac_res" >&6; }
17469 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17470 eval result=\$gl_cv_type_${gltype}_suffix
17471 test "$result" = no && result=
17472 eval ${GLTYPE}_SUFFIX=\$result
17473 cat >>confdefs.h <<_ACEOF
17474 #define ${GLTYPE}_SUFFIX $result
17475 _ACEOF
17476
17477 done
17478
17479
17480 fi
17481
17482
17483 for gltype in sig_atomic_t wchar_t wint_t ; do
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17485 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17486 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
17487 $as_echo_n "(cached) " >&6
17488 else
17489 eval gl_cv_type_${gltype}_suffix=no
17490 eval result=\$gl_cv_type_${gltype}_signed
17491 if test "$result" = yes; then
17492 glsufu=
17493 else
17494 glsufu=u
17495 fi
17496 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17497 case $glsuf in
17498 '') gltype1='int';;
17499 l) gltype1='long int';;
17500 ll) gltype1='long long int';;
17501 i64) gltype1='__int64';;
17502 u) gltype1='unsigned int';;
17503 ul) gltype1='unsigned long int';;
17504 ull) gltype1='unsigned long long int';;
17505 ui64)gltype1='unsigned __int64';;
17506 esac
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509
17510 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17511 included before <wchar.h>. */
17512 #include <stddef.h>
17513 #include <signal.h>
17514 #if HAVE_WCHAR_H
17515 # include <stdio.h>
17516 # include <time.h>
17517 # include <wchar.h>
17518 #endif
17519
17520 extern $gltype foo;
17521 extern $gltype1 foo;
17522 int
17523 main ()
17524 {
17525
17526 ;
17527 return 0;
17528 }
17529 _ACEOF
17530 if ac_fn_c_try_compile "$LINENO"; then :
17531 eval gl_cv_type_${gltype}_suffix=\$glsuf
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 eval result=\$gl_cv_type_${gltype}_suffix
17535 test "$result" != no && break
17536 done
17537 fi
17538 eval ac_res=\$gl_cv_type_${gltype}_suffix
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17540 $as_echo "$ac_res" >&6; }
17541 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17542 eval result=\$gl_cv_type_${gltype}_suffix
17543 test "$result" = no && result=
17544 eval ${GLTYPE}_SUFFIX=\$result
17545 cat >>confdefs.h <<_ACEOF
17546 #define ${GLTYPE}_SUFFIX $result
17547 _ACEOF
17548
17549 done
17550
17551
17552
17553 STDINT_H=stdint.h
17554 fi
17555
17556 if test -n "$STDINT_H"; then
17557 GL_GENERATE_STDINT_H_TRUE=
17558 GL_GENERATE_STDINT_H_FALSE='#'
17559 else
17560 GL_GENERATE_STDINT_H_TRUE='#'
17561 GL_GENERATE_STDINT_H_FALSE=
17562 fi
17563
17564
17565 # Code from module stdio:
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577 if test $gl_cv_have_include_next = yes; then
17578 gl_cv_next_stdio_h='<'stdio.h'>'
17579 else
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17581 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17582 if test "${gl_cv_next_stdio_h+set}" = set; then :
17583 $as_echo_n "(cached) " >&6
17584 else
17585
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588 #include <stdio.h>
17589
17590 _ACEOF
17591 case "$host_os" in
17592 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17593 *) gl_absname_cpp="$ac_cpp" ;;
17594 esac
17595 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17596 sed -n '\#/stdio.h#{
17597 s#.*"\(.*/stdio.h\)".*#\1#
17598 s#^/[^/]#//&#
17599 p
17600 q
17601 }'`'"'
17602
17603
17604 fi
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17606 $as_echo "$gl_cv_next_stdio_h" >&6; }
17607 fi
17608 NEXT_STDIO_H=$gl_cv_next_stdio_h
17609
17610 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17612 gl_next_as_first_directive='<'stdio.h'>'
17613 else
17614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17615 gl_next_as_first_directive=$gl_cv_next_stdio_h
17616 fi
17617 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17618
17619
17620
17621
17622 GNULIB_FPRINTF=1
17623 GNULIB_PRINTF=1
17624 GNULIB_VFPRINTF=1
17625 GNULIB_VPRINTF=1
17626 GNULIB_FPUTC=1
17627 GNULIB_PUTC=1
17628 GNULIB_PUTCHAR=1
17629 GNULIB_FPUTS=1
17630 GNULIB_PUTS=1
17631 GNULIB_FWRITE=1
17632
17633
17634
17635
17636 # Code from module stdlib:
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647 if test $gl_cv_have_include_next = yes; then
17648 gl_cv_next_stdlib_h='<'stdlib.h'>'
17649 else
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17651 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17652 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17653 $as_echo_n "(cached) " >&6
17654 else
17655
17656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17658 #include <stdlib.h>
17659
17660 _ACEOF
17661 case "$host_os" in
17662 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17663 *) gl_absname_cpp="$ac_cpp" ;;
17664 esac
17665 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17666 sed -n '\#/stdlib.h#{
17667 s#.*"\(.*/stdlib.h\)".*#\1#
17668 s#^/[^/]#//&#
17669 p
17670 q
17671 }'`'"'
17672
17673
17674 fi
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17676 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17677 fi
17678 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17679
17680 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17682 gl_next_as_first_directive='<'stdlib.h'>'
17683 else
17684 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17685 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17686 fi
17687 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17688
17689
17690
17691
17692
17693
17694
17695 # Code from module strftime:
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
17707
17708
17709 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
17710
17711
17712
17713
17714
17715
17716
17717 $as_echo "#define my_strftime nstrftime" >>confdefs.h
17718
17719
17720
17721 # Code from module symlink:
17722
17723
17724
17725 if test $ac_cv_func_symlink = no; then
17726 HAVE_SYMLINK=0
17727
17728
17729
17730
17731
17732
17733
17734
17735 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17736
17737 else
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5
17739 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
17740 if test "${gl_cv_func_symlink_works+set}" = set; then :
17741 $as_echo_n "(cached) " >&6
17742 else
17743 if test "$cross_compiling" = yes; then :
17744 gl_cv_func_symlink_works="guessing no"
17745 else
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 #include <unistd.h>
17749
17750 int
17751 main ()
17752 {
17753 int result = 0;
17754 if (!symlink ("a", "conftest.link/"))
17755 result |= 1;
17756 if (symlink ("conftest.f", "conftest.lnk2"))
17757 result |= 2;
17758 else if (!symlink ("a", "conftest.lnk2/"))
17759 result |= 4;
17760 return result;
17761
17762 ;
17763 return 0;
17764 }
17765 _ACEOF
17766 if ac_fn_c_try_run "$LINENO"; then :
17767 gl_cv_func_symlink_works=yes
17768 else
17769 gl_cv_func_symlink_works=no
17770 fi
17771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17772 conftest.$ac_objext conftest.beam conftest.$ac_ext
17773 fi
17774
17775 rm -f conftest.f conftest.link conftest.lnk2
17776 fi
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5
17778 $as_echo "$gl_cv_func_symlink_works" >&6; }
17779 if test "$gl_cv_func_symlink_works" != yes; then
17780 REPLACE_SYMLINK=1
17781
17782
17783
17784
17785
17786
17787
17788
17789 gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
17790
17791 fi
17792 fi
17793
17794
17795
17796
17797 GNULIB_SYMLINK=1
17798
17799
17800
17801 # Code from module sys_stat:
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818 if test $gl_cv_have_include_next = yes; then
17819 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17820 else
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17822 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17823 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17824 $as_echo_n "(cached) " >&6
17825 else
17826
17827 if test $ac_cv_header_sys_stat_h = yes; then
17828
17829
17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832 #include <sys/stat.h>
17833
17834 _ACEOF
17835 case "$host_os" in
17836 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17837 *) gl_absname_cpp="$ac_cpp" ;;
17838 esac
17839 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17840 sed -n '\#/sys/stat.h#{
17841 s#.*"\(.*/sys/stat.h\)".*#\1#
17842 s#^/[^/]#//&#
17843 p
17844 q
17845 }'`'"'
17846 else
17847 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17848 fi
17849
17850
17851 fi
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17853 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17854 fi
17855 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17856
17857 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17859 gl_next_as_first_directive='<'sys/stat.h'>'
17860 else
17861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17862 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17863 fi
17864 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17865
17866
17867
17868
17869
17870 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17871 #include <sys/stat.h>
17872 "
17873 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17874
17875 else
17876
17877 $as_echo "#define nlink_t int" >>confdefs.h
17878
17879 fi
17880
17881
17882
17883
17884
17885 # Code from module time:
17886
17887
17888
17889 # Code from module time_r:
17890
17891
17892
17893
17894
17895
17896
17897 if test $ac_cv_have_decl_localtime_r = no; then
17898 HAVE_DECL_LOCALTIME_R=0
17899 fi
17900
17901
17902 if test $ac_cv_func_localtime_r = yes; then
17903 HAVE_LOCALTIME_R=1
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17905 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17906 if test "${gl_cv_time_r_posix+set}" = set; then :
17907 $as_echo_n "(cached) " >&6
17908 else
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17911 #include <time.h>
17912 int
17913 main ()
17914 {
17915 /* We don't need to append 'restrict's to the argument types,
17916 even though the POSIX signature has the 'restrict's,
17917 since C99 says they can't affect type compatibility. */
17918 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17919 if (ptr) return 0;
17920 /* Check the return type is a pointer.
17921 On HP-UX 10 it is 'int'. */
17922 *localtime_r (0, 0);
17923 ;
17924 return 0;
17925 }
17926
17927 _ACEOF
17928 if ac_fn_c_try_compile "$LINENO"; then :
17929 gl_cv_time_r_posix=yes
17930 else
17931 gl_cv_time_r_posix=no
17932 fi
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934
17935 fi
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17937 $as_echo "$gl_cv_time_r_posix" >&6; }
17938 if test $gl_cv_time_r_posix = yes; then
17939 REPLACE_LOCALTIME_R=0
17940 else
17941 REPLACE_LOCALTIME_R=1
17942 fi
17943 else
17944 HAVE_LOCALTIME_R=0
17945 fi
17946 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17947
17948
17949
17950
17951
17952
17953
17954
17955 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17956
17957
17958 :
17959
17960 fi
17961
17962
17963
17964
17965 GNULIB_TIME_R=1
17966
17967
17968
17969 # Code from module unistd:
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983 if test $gl_cv_have_include_next = yes; then
17984 gl_cv_next_unistd_h='<'unistd.h'>'
17985 else
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17987 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17988 if test "${gl_cv_next_unistd_h+set}" = set; then :
17989 $as_echo_n "(cached) " >&6
17990 else
17991
17992 if test $ac_cv_header_unistd_h = yes; then
17993
17994
17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997 #include <unistd.h>
17998
17999 _ACEOF
18000 case "$host_os" in
18001 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18002 *) gl_absname_cpp="$ac_cpp" ;;
18003 esac
18004 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18005 sed -n '\#/unistd.h#{
18006 s#.*"\(.*/unistd.h\)".*#\1#
18007 s#^/[^/]#//&#
18008 p
18009 q
18010 }'`'"'
18011 else
18012 gl_cv_next_unistd_h='<'unistd.h'>'
18013 fi
18014
18015
18016 fi
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18018 $as_echo "$gl_cv_next_unistd_h" >&6; }
18019 fi
18020 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18021
18022 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18024 gl_next_as_first_directive='<'unistd.h'>'
18025 else
18026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18027 gl_next_as_first_directive=$gl_cv_next_unistd_h
18028 fi
18029 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18030
18031
18032
18033
18034 if test $ac_cv_header_unistd_h = yes; then
18035 HAVE_UNISTD_H=1
18036 else
18037 HAVE_UNISTD_H=0
18038 fi
18039
18040
18041
18042
18043 # Code from module warn-on-use:
18044 # End of code from modules
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054 gltests_libdeps=
18055 gltests_ltlibdeps=
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065 gl_source_base='tests'
18066 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
18067
18068 gl_module_indicator_condition=$gltests_WITNESS
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078 LIBGNU_LIBDEPS="$gl_libdeps"
18079
18080 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18081
18082
18083
18084 # UNIX98 PTYs.
18085 for ac_func in grantpt
18086 do :
18087 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
18088 if test "x$ac_cv_func_grantpt" = x""yes; then :
18089 cat >>confdefs.h <<_ACEOF
18090 #define HAVE_GRANTPT 1
18091 _ACEOF
18092
18093 fi
18094 done
18095
18096
18097 # PTY-related GNU extensions.
18098 for ac_func in getpt
18099 do :
18100 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
18101 if test "x$ac_cv_func_getpt" = x""yes; then :
18102 cat >>confdefs.h <<_ACEOF
18103 #define HAVE_GETPT 1
18104 _ACEOF
18105
18106 fi
18107 done
18108
18109
18110 # Check this now, so that we will NOT find the above functions in ncurses.
18111 # That is because we have not set up to link ncurses in lib-src.
18112 # It's better to believe a function is not available
18113 # than to expect to find it in ncurses.
18114 # Also we need tputs and friends to be able to build at all.
18115 have_tputs_et_al=true
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
18117 $as_echo_n "checking for library containing tputs... " >&6; }
18118 if test "${ac_cv_search_tputs+set}" = set; then :
18119 $as_echo_n "(cached) " >&6
18120 else
18121 ac_func_search_save_LIBS=$LIBS
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18124
18125 /* Override any GCC internal prototype to avoid an error.
18126 Use char because int might match the return type of a GCC
18127 builtin and then its argument prototype would still apply. */
18128 #ifdef __cplusplus
18129 extern "C"
18130 #endif
18131 char tputs ();
18132 int
18133 main ()
18134 {
18135 return tputs ();
18136 ;
18137 return 0;
18138 }
18139 _ACEOF
18140 for ac_lib in '' ncurses terminfo termcap; do
18141 if test -z "$ac_lib"; then
18142 ac_res="none required"
18143 else
18144 ac_res=-l$ac_lib
18145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18146 fi
18147 if ac_fn_c_try_link "$LINENO"; then :
18148 ac_cv_search_tputs=$ac_res
18149 fi
18150 rm -f core conftest.err conftest.$ac_objext \
18151 conftest$ac_exeext
18152 if test "${ac_cv_search_tputs+set}" = set; then :
18153 break
18154 fi
18155 done
18156 if test "${ac_cv_search_tputs+set}" = set; then :
18157
18158 else
18159 ac_cv_search_tputs=no
18160 fi
18161 rm conftest.$ac_ext
18162 LIBS=$ac_func_search_save_LIBS
18163 fi
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
18165 $as_echo "$ac_cv_search_tputs" >&6; }
18166 ac_res=$ac_cv_search_tputs
18167 if test "$ac_res" != no; then :
18168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18169
18170 else
18171 have_tputs_et_al=false
18172 fi
18173
18174 if test "$have_tputs_et_al" != true; then
18175 as_fn_error "I couldn't find termcap functions (tputs and friends).
18176 Maybe some development libraries/packages are missing? Try installing
18177 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
18178 fi
18179 # Must define this when any termcap library is found.
18180
18181 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
18182
18183 ## FIXME This was the cpp logic, but I am not sure it is right.
18184 ## The above test has not necessarily found libncurses.
18185 HAVE_LIBNCURSES=yes
18186
18187 ## Use terminfo instead of termcap?
18188 ## Note only system files NOT using terminfo are:
18189 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
18190 ## darwin|gnu without ncurses.
18191 TERMINFO=no
18192 LIBS_TERMCAP=
18193 case "$opsys" in
18194 ## cygwin: Fewer environment variables to go wrong, more terminal types.
18195 ## hpux10-20: Use the system provided termcap(3) library.
18196 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
18197 ## is necessary. Otherwise Emacs dumps core when run -nw.
18198 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
18199
18200 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
18201 ## The ncurses library has been moved out of the System framework in
18202 ## Mac OS X 10.2. So if configure detects it, set the command-line
18203 ## option to use it.
18204 darwin|gnu*)
18205 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
18206 if test "x$HAVE_LIBNCURSES" = "xyes"; then
18207 TERMINFO=yes
18208 LIBS_TERMCAP="-lncurses"
18209 fi
18210 ;;
18211
18212 freebsd)
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
18214 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
18215 if test "${emacs_cv_freebsd_terminfo+set}" = set; then :
18216 $as_echo_n "(cached) " >&6
18217 else
18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18220 #include <osreldate.h>
18221 int
18222 main ()
18223 {
18224 #if __FreeBSD_version < 400000
18225 fail;
18226 #endif
18227
18228 ;
18229 return 0;
18230 }
18231 _ACEOF
18232 if ac_fn_c_try_link "$LINENO"; then :
18233 emacs_cv_freebsd_terminfo=yes
18234 else
18235 emacs_cv_freebsd_terminfo=no
18236 fi
18237 rm -f core conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
18239 fi
18240
18241
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
18243 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
18244
18245 if test $emacs_cv_freebsd_terminfo = yes; then
18246 TERMINFO=yes
18247 LIBS_TERMCAP="-lncurses"
18248 else
18249 LIBS_TERMCAP="-ltermcap"
18250 fi
18251 ;;
18252
18253 netbsd)
18254 if test $ac_cv_search_tputs = -lterminfo; then
18255 TERMINFO=yes
18256 LIBS_TERMCAP="-lterminfo"
18257 else
18258 LIBS_TERMCAP="-ltermcap"
18259 fi
18260 ;;
18261
18262 esac
18263
18264 case "$opsys" in
18265 ## hpux: Make sure we get select from libc rather than from libcurses
18266 ## because libcurses on HPUX 10.10 has a broken version of select.
18267 ## We used to use -lc -lcurses, but this may be cleaner.
18268 hpux*) LIBS_TERMCAP="-ltermcap" ;;
18269
18270 openbsd) LIBS_TERMCAP="-lncurses" ;;
18271
18272 ## Must use system termcap, if we use any termcap. It does special things.
18273 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
18274 esac
18275
18276 TERMCAP_OBJ=tparam.o
18277 if test $TERMINFO = yes; then
18278
18279 $as_echo "#define TERMINFO 1" >>confdefs.h
18280
18281
18282 ## Default used to be -ltermcap. Add a case above if need something else.
18283 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
18284
18285 TERMCAP_OBJ=terminfo.o
18286 fi
18287
18288
18289
18290
18291 # Do we have res_init, for detecting changes in /etc/resolv.conf?
18292 resolv=no
18293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18294 /* end confdefs.h. */
18295 #include <netinet/in.h>
18296 #include <arpa/nameser.h>
18297 #include <resolv.h>
18298 int
18299 main ()
18300 {
18301 return res_init();
18302 ;
18303 return 0;
18304 }
18305 _ACEOF
18306 if ac_fn_c_try_link "$LINENO"; then :
18307 have_res_init=yes
18308 else
18309 have_res_init=no
18310 fi
18311 rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313 if test "$have_res_init" = no; then
18314 OLIBS="$LIBS"
18315 LIBS="$LIBS -lresolv"
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
18317 $as_echo_n "checking for res_init with -lresolv... " >&6; }
18318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h. */
18320 #include <netinet/in.h>
18321 #include <arpa/nameser.h>
18322 #include <resolv.h>
18323 int
18324 main ()
18325 {
18326 return res_init();
18327 ;
18328 return 0;
18329 }
18330 _ACEOF
18331 if ac_fn_c_try_link "$LINENO"; then :
18332 have_res_init=yes
18333 else
18334 have_res_init=no
18335 fi
18336 rm -f core conftest.err conftest.$ac_objext \
18337 conftest$ac_exeext conftest.$ac_ext
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
18339 $as_echo "$have_res_init" >&6; }
18340 if test "$have_res_init" = yes ; then
18341 resolv=yes
18342 fi
18343 LIBS="$OLIBS"
18344 fi
18345
18346 if test "$have_res_init" = yes; then
18347
18348 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
18349
18350 fi
18351
18352 # Do we need the Hesiod library to provide the support routines?
18353 LIBHESIOD=
18354 if test "$with_hesiod" != no ; then
18355 # Don't set $LIBS here -- see comments above. FIXME which comments?
18356 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
18357 if test "x$ac_cv_func_res_send" = x""yes; then :
18358
18359 else
18360 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
18361 if test "x$ac_cv_func___res_send" = x""yes; then :
18362
18363 else
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
18365 $as_echo_n "checking for res_send in -lresolv... " >&6; }
18366 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
18367 $as_echo_n "(cached) " >&6
18368 else
18369 ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lresolv $LIBS"
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18373
18374 /* Override any GCC internal prototype to avoid an error.
18375 Use char because int might match the return type of a GCC
18376 builtin and then its argument prototype would still apply. */
18377 #ifdef __cplusplus
18378 extern "C"
18379 #endif
18380 char res_send ();
18381 int
18382 main ()
18383 {
18384 return res_send ();
18385 ;
18386 return 0;
18387 }
18388 _ACEOF
18389 if ac_fn_c_try_link "$LINENO"; then :
18390 ac_cv_lib_resolv_res_send=yes
18391 else
18392 ac_cv_lib_resolv_res_send=no
18393 fi
18394 rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18396 LIBS=$ac_check_lib_save_LIBS
18397 fi
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
18399 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
18400 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
18401 resolv=yes
18402 else
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
18404 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
18405 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
18406 $as_echo_n "(cached) " >&6
18407 else
18408 ac_check_lib_save_LIBS=$LIBS
18409 LIBS="-lresolv $LIBS"
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18416 #ifdef __cplusplus
18417 extern "C"
18418 #endif
18419 char __res_send ();
18420 int
18421 main ()
18422 {
18423 return __res_send ();
18424 ;
18425 return 0;
18426 }
18427 _ACEOF
18428 if ac_fn_c_try_link "$LINENO"; then :
18429 ac_cv_lib_resolv___res_send=yes
18430 else
18431 ac_cv_lib_resolv___res_send=no
18432 fi
18433 rm -f core conftest.err conftest.$ac_objext \
18434 conftest$ac_exeext conftest.$ac_ext
18435 LIBS=$ac_check_lib_save_LIBS
18436 fi
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
18438 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
18439 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
18440 resolv=yes
18441 fi
18442
18443 fi
18444
18445 fi
18446
18447 fi
18448
18449 if test "$resolv" = yes ; then
18450 RESOLVLIB=-lresolv
18451 else
18452 RESOLVLIB=
18453 fi
18454 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
18455 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
18456
18457 else
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
18459 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
18460 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
18461 $as_echo_n "(cached) " >&6
18462 else
18463 ac_check_lib_save_LIBS=$LIBS
18464 LIBS="-lhesiod $RESOLVLIB $LIBS"
18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h. */
18467
18468 /* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18471 #ifdef __cplusplus
18472 extern "C"
18473 #endif
18474 char hes_getmailhost ();
18475 int
18476 main ()
18477 {
18478 return hes_getmailhost ();
18479 ;
18480 return 0;
18481 }
18482 _ACEOF
18483 if ac_fn_c_try_link "$LINENO"; then :
18484 ac_cv_lib_hesiod_hes_getmailhost=yes
18485 else
18486 ac_cv_lib_hesiod_hes_getmailhost=no
18487 fi
18488 rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
18490 LIBS=$ac_check_lib_save_LIBS
18491 fi
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18493 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18494 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
18495 hesiod=yes
18496 else
18497 :
18498 fi
18499
18500 fi
18501
18502
18503 if test x"$hesiod" = xyes; then
18504
18505 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
18506
18507 LIBHESIOD=-lhesiod
18508 fi
18509 fi
18510
18511
18512 # Do we need libresolv (due to res_init or Hesiod)?
18513 if test "$resolv" = yes ; then
18514
18515 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
18516
18517 LIBRESOLV=-lresolv
18518 else
18519 LIBRESOLV=
18520 fi
18521
18522
18523 # These tell us which Kerberos-related libraries to use.
18524 COM_ERRLIB=
18525 CRYPTOLIB=
18526 KRB5LIB=
18527 DESLIB=
18528 KRB4LIB=
18529
18530 if test "${with_kerberos}" != no; then
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
18532 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
18533 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
18534 $as_echo_n "(cached) " >&6
18535 else
18536 ac_check_lib_save_LIBS=$LIBS
18537 LIBS="-lcom_err $LIBS"
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18540
18541 /* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18544 #ifdef __cplusplus
18545 extern "C"
18546 #endif
18547 char com_err ();
18548 int
18549 main ()
18550 {
18551 return com_err ();
18552 ;
18553 return 0;
18554 }
18555 _ACEOF
18556 if ac_fn_c_try_link "$LINENO"; then :
18557 ac_cv_lib_com_err_com_err=yes
18558 else
18559 ac_cv_lib_com_err_com_err=no
18560 fi
18561 rm -f core conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18564 fi
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
18566 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
18567 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
18568 have_com_err=yes
18569 else
18570 have_com_err=no
18571 fi
18572
18573 if test $have_com_err = yes; then
18574 COM_ERRLIB=-lcom_err
18575 LIBS="$COM_ERRLIB $LIBS"
18576
18577 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
18578
18579 fi
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18581 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
18582 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
18583 $as_echo_n "(cached) " >&6
18584 else
18585 ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-lcrypto $LIBS"
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18589
18590 /* Override any GCC internal prototype to avoid an error.
18591 Use char because int might match the return type of a GCC
18592 builtin and then its argument prototype would still apply. */
18593 #ifdef __cplusplus
18594 extern "C"
18595 #endif
18596 char mit_des_cbc_encrypt ();
18597 int
18598 main ()
18599 {
18600 return mit_des_cbc_encrypt ();
18601 ;
18602 return 0;
18603 }
18604 _ACEOF
18605 if ac_fn_c_try_link "$LINENO"; then :
18606 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18607 else
18608 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18609 fi
18610 rm -f core conftest.err conftest.$ac_objext \
18611 conftest$ac_exeext conftest.$ac_ext
18612 LIBS=$ac_check_lib_save_LIBS
18613 fi
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
18615 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
18616 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
18617 have_crypto=yes
18618 else
18619 have_crypto=no
18620 fi
18621
18622 if test $have_crypto = yes; then
18623 CRYPTOLIB=-lcrypto
18624 LIBS="$CRYPTOLIB $LIBS"
18625
18626 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
18627
18628 fi
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18630 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
18631 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
18632 $as_echo_n "(cached) " >&6
18633 else
18634 ac_check_lib_save_LIBS=$LIBS
18635 LIBS="-lk5crypto $LIBS"
18636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18637 /* end confdefs.h. */
18638
18639 /* Override any GCC internal prototype to avoid an error.
18640 Use char because int might match the return type of a GCC
18641 builtin and then its argument prototype would still apply. */
18642 #ifdef __cplusplus
18643 extern "C"
18644 #endif
18645 char mit_des_cbc_encrypt ();
18646 int
18647 main ()
18648 {
18649 return mit_des_cbc_encrypt ();
18650 ;
18651 return 0;
18652 }
18653 _ACEOF
18654 if ac_fn_c_try_link "$LINENO"; then :
18655 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18656 else
18657 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18661 LIBS=$ac_check_lib_save_LIBS
18662 fi
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18664 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18665 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
18666 have_k5crypto=yes
18667 else
18668 have_k5crypto=no
18669 fi
18670
18671 if test $have_k5crypto = yes; then
18672 CRYPTOLIB=-lk5crypto
18673 LIBS="$CRYPTOLIB $LIBS"
18674
18675 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
18676
18677 fi
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18679 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18680 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
18681 $as_echo_n "(cached) " >&6
18682 else
18683 ac_check_lib_save_LIBS=$LIBS
18684 LIBS="-lkrb5 $LIBS"
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18687
18688 /* Override any GCC internal prototype to avoid an error.
18689 Use char because int might match the return type of a GCC
18690 builtin and then its argument prototype would still apply. */
18691 #ifdef __cplusplus
18692 extern "C"
18693 #endif
18694 char krb5_init_context ();
18695 int
18696 main ()
18697 {
18698 return krb5_init_context ();
18699 ;
18700 return 0;
18701 }
18702 _ACEOF
18703 if ac_fn_c_try_link "$LINENO"; then :
18704 ac_cv_lib_krb5_krb5_init_context=yes
18705 else
18706 ac_cv_lib_krb5_krb5_init_context=no
18707 fi
18708 rm -f core conftest.err conftest.$ac_objext \
18709 conftest$ac_exeext conftest.$ac_ext
18710 LIBS=$ac_check_lib_save_LIBS
18711 fi
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18713 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18714 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
18715 have_krb5=yes
18716 else
18717 have_krb5=no
18718 fi
18719
18720 if test $have_krb5=yes; then
18721 KRB5LIB=-lkrb5
18722 LIBS="$KRB5LIB $LIBS"
18723
18724 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
18725
18726 fi
18727 if test "${with_kerberos5}" = no; then
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
18729 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
18730 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
18731 $as_echo_n "(cached) " >&6
18732 else
18733 ac_check_lib_save_LIBS=$LIBS
18734 LIBS="-ldes425 $LIBS"
18735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18736 /* end confdefs.h. */
18737
18738 /* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18741 #ifdef __cplusplus
18742 extern "C"
18743 #endif
18744 char des_cbc_encrypt ();
18745 int
18746 main ()
18747 {
18748 return des_cbc_encrypt ();
18749 ;
18750 return 0;
18751 }
18752 _ACEOF
18753 if ac_fn_c_try_link "$LINENO"; then :
18754 ac_cv_lib_des425_des_cbc_encrypt=yes
18755 else
18756 ac_cv_lib_des425_des_cbc_encrypt=no
18757 fi
18758 rm -f core conftest.err conftest.$ac_objext \
18759 conftest$ac_exeext conftest.$ac_ext
18760 LIBS=$ac_check_lib_save_LIBS
18761 fi
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
18763 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
18764 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
18765 have_des425=yes
18766 else
18767 have_des425=no
18768 fi
18769
18770 if test $have_des425 = yes; then
18771 DESLIB=-ldes425
18772 LIBS="$DESLIB $LIBS"
18773
18774 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
18775
18776 else
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
18778 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
18779 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
18780 $as_echo_n "(cached) " >&6
18781 else
18782 ac_check_lib_save_LIBS=$LIBS
18783 LIBS="-ldes $LIBS"
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18786
18787 /* Override any GCC internal prototype to avoid an error.
18788 Use char because int might match the return type of a GCC
18789 builtin and then its argument prototype would still apply. */
18790 #ifdef __cplusplus
18791 extern "C"
18792 #endif
18793 char des_cbc_encrypt ();
18794 int
18795 main ()
18796 {
18797 return des_cbc_encrypt ();
18798 ;
18799 return 0;
18800 }
18801 _ACEOF
18802 if ac_fn_c_try_link "$LINENO"; then :
18803 ac_cv_lib_des_des_cbc_encrypt=yes
18804 else
18805 ac_cv_lib_des_des_cbc_encrypt=no
18806 fi
18807 rm -f core conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18809 LIBS=$ac_check_lib_save_LIBS
18810 fi
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
18812 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
18813 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
18814 have_des=yes
18815 else
18816 have_des=no
18817 fi
18818
18819 if test $have_des = yes; then
18820 DESLIB=-ldes
18821 LIBS="$DESLIB $LIBS"
18822
18823 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
18824
18825 fi
18826 fi
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
18828 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
18829 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
18830 $as_echo_n "(cached) " >&6
18831 else
18832 ac_check_lib_save_LIBS=$LIBS
18833 LIBS="-lkrb4 $LIBS"
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18836
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18840 #ifdef __cplusplus
18841 extern "C"
18842 #endif
18843 char krb_get_cred ();
18844 int
18845 main ()
18846 {
18847 return krb_get_cred ();
18848 ;
18849 return 0;
18850 }
18851 _ACEOF
18852 if ac_fn_c_try_link "$LINENO"; then :
18853 ac_cv_lib_krb4_krb_get_cred=yes
18854 else
18855 ac_cv_lib_krb4_krb_get_cred=no
18856 fi
18857 rm -f core conftest.err conftest.$ac_objext \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18860 fi
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18862 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
18863 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
18864 have_krb4=yes
18865 else
18866 have_krb4=no
18867 fi
18868
18869 if test $have_krb4 = yes; then
18870 KRB4LIB=-lkrb4
18871 LIBS="$KRB4LIB $LIBS"
18872
18873 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18874
18875 else
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18877 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18878 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
18879 $as_echo_n "(cached) " >&6
18880 else
18881 ac_check_lib_save_LIBS=$LIBS
18882 LIBS="-lkrb $LIBS"
18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884 /* end confdefs.h. */
18885
18886 /* Override any GCC internal prototype to avoid an error.
18887 Use char because int might match the return type of a GCC
18888 builtin and then its argument prototype would still apply. */
18889 #ifdef __cplusplus
18890 extern "C"
18891 #endif
18892 char krb_get_cred ();
18893 int
18894 main ()
18895 {
18896 return krb_get_cred ();
18897 ;
18898 return 0;
18899 }
18900 _ACEOF
18901 if ac_fn_c_try_link "$LINENO"; then :
18902 ac_cv_lib_krb_krb_get_cred=yes
18903 else
18904 ac_cv_lib_krb_krb_get_cred=no
18905 fi
18906 rm -f core conftest.err conftest.$ac_objext \
18907 conftest$ac_exeext conftest.$ac_ext
18908 LIBS=$ac_check_lib_save_LIBS
18909 fi
18910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18911 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18912 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
18913 have_krb=yes
18914 else
18915 have_krb=no
18916 fi
18917
18918 if test $have_krb = yes; then
18919 KRB4LIB=-lkrb
18920 LIBS="$KRB4LIB $LIBS"
18921
18922 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18923
18924 fi
18925 fi
18926 fi
18927
18928 if test "${with_kerberos5}" != no; then
18929 for ac_header in krb5.h
18930 do :
18931 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18932 if test "x$ac_cv_header_krb5_h" = x""yes; then :
18933 cat >>confdefs.h <<_ACEOF
18934 #define HAVE_KRB5_H 1
18935 _ACEOF
18936 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18937 "
18938 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
18939
18940 cat >>confdefs.h <<_ACEOF
18941 #define HAVE_KRB5_ERROR_TEXT 1
18942 _ACEOF
18943
18944
18945 fi
18946 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18947 "
18948 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
18949
18950 cat >>confdefs.h <<_ACEOF
18951 #define HAVE_KRB5_ERROR_E_TEXT 1
18952 _ACEOF
18953
18954
18955 fi
18956
18957 fi
18958
18959 done
18960
18961 else
18962 for ac_header in des.h
18963 do :
18964 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18965 if test "x$ac_cv_header_des_h" = x""yes; then :
18966 cat >>confdefs.h <<_ACEOF
18967 #define HAVE_DES_H 1
18968 _ACEOF
18969
18970 else
18971 for ac_header in kerberosIV/des.h
18972 do :
18973 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18974 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
18975 cat >>confdefs.h <<_ACEOF
18976 #define HAVE_KERBEROSIV_DES_H 1
18977 _ACEOF
18978
18979 else
18980 for ac_header in kerberos/des.h
18981 do :
18982 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18983 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
18984 cat >>confdefs.h <<_ACEOF
18985 #define HAVE_KERBEROS_DES_H 1
18986 _ACEOF
18987
18988 fi
18989
18990 done
18991
18992 fi
18993
18994 done
18995
18996 fi
18997
18998 done
18999
19000 for ac_header in krb.h
19001 do :
19002 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
19003 if test "x$ac_cv_header_krb_h" = x""yes; then :
19004 cat >>confdefs.h <<_ACEOF
19005 #define HAVE_KRB_H 1
19006 _ACEOF
19007
19008 else
19009 for ac_header in kerberosIV/krb.h
19010 do :
19011 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
19012 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
19013 cat >>confdefs.h <<_ACEOF
19014 #define HAVE_KERBEROSIV_KRB_H 1
19015 _ACEOF
19016
19017 else
19018 for ac_header in kerberos/krb.h
19019 do :
19020 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
19021 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
19022 cat >>confdefs.h <<_ACEOF
19023 #define HAVE_KERBEROS_KRB_H 1
19024 _ACEOF
19025
19026 fi
19027
19028 done
19029
19030 fi
19031
19032 done
19033
19034 fi
19035
19036 done
19037
19038 fi
19039 for ac_header in com_err.h
19040 do :
19041 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
19042 if test "x$ac_cv_header_com_err_h" = x""yes; then :
19043 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_COM_ERR_H 1
19045 _ACEOF
19046
19047 fi
19048
19049 done
19050
19051 fi
19052
19053
19054
19055
19056
19057
19058
19059 # Solaris requires -lintl if you want strerror (which calls dgettext)
19060 # to return localized messages.
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
19062 $as_echo_n "checking for dgettext in -lintl... " >&6; }
19063 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
19064 $as_echo_n "(cached) " >&6
19065 else
19066 ac_check_lib_save_LIBS=$LIBS
19067 LIBS="-lintl $LIBS"
19068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19069 /* end confdefs.h. */
19070
19071 /* Override any GCC internal prototype to avoid an error.
19072 Use char because int might match the return type of a GCC
19073 builtin and then its argument prototype would still apply. */
19074 #ifdef __cplusplus
19075 extern "C"
19076 #endif
19077 char dgettext ();
19078 int
19079 main ()
19080 {
19081 return dgettext ();
19082 ;
19083 return 0;
19084 }
19085 _ACEOF
19086 if ac_fn_c_try_link "$LINENO"; then :
19087 ac_cv_lib_intl_dgettext=yes
19088 else
19089 ac_cv_lib_intl_dgettext=no
19090 fi
19091 rm -f core conftest.err conftest.$ac_objext \
19092 conftest$ac_exeext conftest.$ac_ext
19093 LIBS=$ac_check_lib_save_LIBS
19094 fi
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
19096 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
19097 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
19098 cat >>confdefs.h <<_ACEOF
19099 #define HAVE_LIBINTL 1
19100 _ACEOF
19101
19102 LIBS="-lintl $LIBS"
19103
19104 fi
19105
19106
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
19108 $as_echo_n "checking whether localtime caches TZ... " >&6; }
19109 if test "${emacs_cv_localtime_cache+set}" = set; then :
19110 $as_echo_n "(cached) " >&6
19111 else
19112 if test x$ac_cv_func_tzset = xyes; then
19113 if test "$cross_compiling" = yes; then :
19114 # If we have tzset, assume the worst when cross-compiling.
19115 emacs_cv_localtime_cache=yes
19116 else
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19119 #include <time.h>
19120 char TZ_GMT0[] = "TZ=GMT0";
19121 char TZ_PST8[] = "TZ=PST8";
19122 main()
19123 {
19124 time_t now = time ((time_t *) 0);
19125 int hour_GMT0, hour_unset;
19126 if (putenv (TZ_GMT0) != 0)
19127 exit (1);
19128 hour_GMT0 = localtime (&now)->tm_hour;
19129 unsetenv("TZ");
19130 hour_unset = localtime (&now)->tm_hour;
19131 if (putenv (TZ_PST8) != 0)
19132 exit (1);
19133 if (localtime (&now)->tm_hour == hour_GMT0)
19134 exit (1);
19135 unsetenv("TZ");
19136 if (localtime (&now)->tm_hour != hour_unset)
19137 exit (1);
19138 exit (0);
19139 }
19140 _ACEOF
19141 if ac_fn_c_try_run "$LINENO"; then :
19142 emacs_cv_localtime_cache=no
19143 else
19144 emacs_cv_localtime_cache=yes
19145 fi
19146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19147 conftest.$ac_objext conftest.beam conftest.$ac_ext
19148 fi
19149
19150 else
19151 # If we lack tzset, report that localtime does not cache TZ,
19152 # since we can't invalidate the cache if we don't have tzset.
19153 emacs_cv_localtime_cache=no
19154 fi
19155 fi
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
19157 $as_echo "$emacs_cv_localtime_cache" >&6; }
19158 if test $emacs_cv_localtime_cache = yes; then
19159
19160 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
19161
19162 fi
19163
19164 if test "x$HAVE_TIMEVAL" = xyes; then
19165 for ac_func in gettimeofday
19166 do :
19167 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
19168 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
19169 cat >>confdefs.h <<_ACEOF
19170 #define HAVE_GETTIMEOFDAY 1
19171 _ACEOF
19172
19173 fi
19174 done
19175
19176 if test $ac_cv_func_gettimeofday = yes; then
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
19178 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
19179 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
19180 $as_echo_n "(cached) " >&6
19181 else
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19184
19185 #ifdef TIME_WITH_SYS_TIME
19186 #include <sys/time.h>
19187 #include <time.h>
19188 #else
19189 #ifdef HAVE_SYS_TIME_H
19190 #include <sys/time.h>
19191 #else
19192 #include <time.h>
19193 #endif
19194 #endif
19195 int
19196 main ()
19197 {
19198 struct timeval time;
19199 gettimeofday (&time, 0);
19200 ;
19201 return 0;
19202 }
19203 _ACEOF
19204 if ac_fn_c_try_compile "$LINENO"; then :
19205 emacs_cv_gettimeofday_two_arguments=yes
19206 else
19207 emacs_cv_gettimeofday_two_arguments=no
19208 fi
19209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19210 fi
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
19212 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
19213 if test $emacs_cv_gettimeofday_two_arguments = no; then
19214
19215 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
19216
19217 fi
19218 fi
19219 fi
19220
19221 ok_so_far=yes
19222 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
19223 if test "x$ac_cv_func_socket" = x""yes; then :
19224
19225 else
19226 ok_so_far=no
19227 fi
19228
19229 if test $ok_so_far = yes; then
19230 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
19231 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
19232
19233 else
19234 ok_so_far=no
19235 fi
19236
19237
19238 fi
19239 if test $ok_so_far = yes; then
19240 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
19241 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
19242
19243 else
19244 ok_so_far=no
19245 fi
19246
19247
19248 fi
19249 if test $ok_so_far = yes; then
19250
19251 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
19252
19253 fi
19254
19255 if test -f /usr/lpp/X11/bin/smt.exp; then
19256
19257 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
19258
19259 fi
19260
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
19262 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
19263 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 $as_echo "yes" >&6; }
19266
19267 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
19268
19269 else
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19271 $as_echo "no" >&6; }
19272 fi
19273
19274 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19275 if test "x$ac_cv_type_pid_t" = x""yes; then :
19276
19277 else
19278
19279 cat >>confdefs.h <<_ACEOF
19280 #define pid_t int
19281 _ACEOF
19282
19283 fi
19284
19285 for ac_header in vfork.h
19286 do :
19287 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
19288 if test "x$ac_cv_header_vfork_h" = x""yes; then :
19289 cat >>confdefs.h <<_ACEOF
19290 #define HAVE_VFORK_H 1
19291 _ACEOF
19292
19293 fi
19294
19295 done
19296
19297 for ac_func in fork vfork
19298 do :
19299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19300 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19301 eval as_val=\$$as_ac_var
19302 if test "x$as_val" = x""yes; then :
19303 cat >>confdefs.h <<_ACEOF
19304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19305 _ACEOF
19306
19307 fi
19308 done
19309
19310 if test "x$ac_cv_func_fork" = xyes; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
19312 $as_echo_n "checking for working fork... " >&6; }
19313 if test "${ac_cv_func_fork_works+set}" = set; then :
19314 $as_echo_n "(cached) " >&6
19315 else
19316 if test "$cross_compiling" = yes; then :
19317 ac_cv_func_fork_works=cross
19318 else
19319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19321 $ac_includes_default
19322 int
19323 main ()
19324 {
19325
19326 /* By Ruediger Kuhlmann. */
19327 return fork () < 0;
19328
19329 ;
19330 return 0;
19331 }
19332 _ACEOF
19333 if ac_fn_c_try_run "$LINENO"; then :
19334 ac_cv_func_fork_works=yes
19335 else
19336 ac_cv_func_fork_works=no
19337 fi
19338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19339 conftest.$ac_objext conftest.beam conftest.$ac_ext
19340 fi
19341
19342 fi
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
19344 $as_echo "$ac_cv_func_fork_works" >&6; }
19345
19346 else
19347 ac_cv_func_fork_works=$ac_cv_func_fork
19348 fi
19349 if test "x$ac_cv_func_fork_works" = xcross; then
19350 case $host in
19351 *-*-amigaos* | *-*-msdosdjgpp*)
19352 # Override, as these systems have only a dummy fork() stub
19353 ac_cv_func_fork_works=no
19354 ;;
19355 *)
19356 ac_cv_func_fork_works=yes
19357 ;;
19358 esac
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
19360 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
19361 fi
19362 ac_cv_func_vfork_works=$ac_cv_func_vfork
19363 if test "x$ac_cv_func_vfork" = xyes; then
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
19365 $as_echo_n "checking for working vfork... " >&6; }
19366 if test "${ac_cv_func_vfork_works+set}" = set; then :
19367 $as_echo_n "(cached) " >&6
19368 else
19369 if test "$cross_compiling" = yes; then :
19370 ac_cv_func_vfork_works=cross
19371 else
19372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19373 /* end confdefs.h. */
19374 /* Thanks to Paul Eggert for this test. */
19375 $ac_includes_default
19376 #include <sys/wait.h>
19377 #ifdef HAVE_VFORK_H
19378 # include <vfork.h>
19379 #endif
19380 /* On some sparc systems, changes by the child to local and incoming
19381 argument registers are propagated back to the parent. The compiler
19382 is told about this with #include <vfork.h>, but some compilers
19383 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19384 static variable whose address is put into a register that is
19385 clobbered by the vfork. */
19386 static void
19387 #ifdef __cplusplus
19388 sparc_address_test (int arg)
19389 # else
19390 sparc_address_test (arg) int arg;
19391 #endif
19392 {
19393 static pid_t child;
19394 if (!child) {
19395 child = vfork ();
19396 if (child < 0) {
19397 perror ("vfork");
19398 _exit(2);
19399 }
19400 if (!child) {
19401 arg = getpid();
19402 write(-1, "", 0);
19403 _exit (arg);
19404 }
19405 }
19406 }
19407
19408 int
19409 main ()
19410 {
19411 pid_t parent = getpid ();
19412 pid_t child;
19413
19414 sparc_address_test (0);
19415
19416 child = vfork ();
19417
19418 if (child == 0) {
19419 /* Here is another test for sparc vfork register problems. This
19420 test uses lots of local variables, at least as many local
19421 variables as main has allocated so far including compiler
19422 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19423 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19424 reuse the register of parent for one of the local variables,
19425 since it will think that parent can't possibly be used any more
19426 in this routine. Assigning to the local variable will thus
19427 munge parent in the parent process. */
19428 pid_t
19429 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19430 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19431 /* Convince the compiler that p..p7 are live; otherwise, it might
19432 use the same hardware register for all 8 local variables. */
19433 if (p != p1 || p != p2 || p != p3 || p != p4
19434 || p != p5 || p != p6 || p != p7)
19435 _exit(1);
19436
19437 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19438 from child file descriptors. If the child closes a descriptor
19439 before it execs or exits, this munges the parent's descriptor
19440 as well. Test for this by closing stdout in the child. */
19441 _exit(close(fileno(stdout)) != 0);
19442 } else {
19443 int status;
19444 struct stat st;
19445
19446 while (wait(&status) != child)
19447 ;
19448 return (
19449 /* Was there some problem with vforking? */
19450 child < 0
19451
19452 /* Did the child fail? (This shouldn't happen.) */
19453 || status
19454
19455 /* Did the vfork/compiler bug occur? */
19456 || parent != getpid()
19457
19458 /* Did the file descriptor bug occur? */
19459 || fstat(fileno(stdout), &st) != 0
19460 );
19461 }
19462 }
19463 _ACEOF
19464 if ac_fn_c_try_run "$LINENO"; then :
19465 ac_cv_func_vfork_works=yes
19466 else
19467 ac_cv_func_vfork_works=no
19468 fi
19469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19470 conftest.$ac_objext conftest.beam conftest.$ac_ext
19471 fi
19472
19473 fi
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
19475 $as_echo "$ac_cv_func_vfork_works" >&6; }
19476
19477 fi;
19478 if test "x$ac_cv_func_fork_works" = xcross; then
19479 ac_cv_func_vfork_works=$ac_cv_func_vfork
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
19481 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
19482 fi
19483
19484 if test "x$ac_cv_func_vfork_works" = xyes; then
19485
19486 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
19487
19488 else
19489
19490 $as_echo "#define vfork fork" >>confdefs.h
19491
19492 fi
19493 if test "x$ac_cv_func_fork_works" = xyes; then
19494
19495 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
19496
19497 fi
19498
19499
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19501 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19502 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
19503 $as_echo_n "(cached) " >&6
19504 else
19505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19506 /* end confdefs.h. */
19507 #include <langinfo.h>
19508 int
19509 main ()
19510 {
19511 char* cs = nl_langinfo(CODESET);
19512 ;
19513 return 0;
19514 }
19515 _ACEOF
19516 if ac_fn_c_try_link "$LINENO"; then :
19517 emacs_cv_langinfo_codeset=yes
19518 else
19519 emacs_cv_langinfo_codeset=no
19520 fi
19521 rm -f core conftest.err conftest.$ac_objext \
19522 conftest$ac_exeext conftest.$ac_ext
19523
19524 fi
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
19526 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
19527 if test $emacs_cv_langinfo_codeset = yes; then
19528
19529 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19530
19531 fi
19532
19533 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19534 if test "x$ac_cv_type_size_t" = x""yes; then :
19535
19536 cat >>confdefs.h <<_ACEOF
19537 #define HAVE_SIZE_T 1
19538 _ACEOF
19539
19540
19541 fi
19542
19543
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
19545 $as_echo_n "checking for mbstate_t... " >&6; }
19546 if test "${ac_cv_type_mbstate_t+set}" = set; then :
19547 $as_echo_n "(cached) " >&6
19548 else
19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19551 $ac_includes_default
19552 # include <wchar.h>
19553 int
19554 main ()
19555 {
19556 mbstate_t x; return sizeof x;
19557 ;
19558 return 0;
19559 }
19560 _ACEOF
19561 if ac_fn_c_try_compile "$LINENO"; then :
19562 ac_cv_type_mbstate_t=yes
19563 else
19564 ac_cv_type_mbstate_t=no
19565 fi
19566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567 fi
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
19569 $as_echo "$ac_cv_type_mbstate_t" >&6; }
19570 if test $ac_cv_type_mbstate_t = yes; then
19571
19572 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
19573
19574 else
19575
19576 $as_echo "#define mbstate_t int" >>confdefs.h
19577
19578 fi
19579
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
19581 $as_echo_n "checking for C restricted array declarations... " >&6; }
19582 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
19583 $as_echo_n "(cached) " >&6
19584 else
19585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19586 /* end confdefs.h. */
19587 void fred (int x[__restrict]);
19588 int
19589 main ()
19590 {
19591
19592 ;
19593 return 0;
19594 }
19595 _ACEOF
19596 if ac_fn_c_try_compile "$LINENO"; then :
19597 emacs_cv_c_restrict_arr=yes
19598 else
19599 emacs_cv_c_restrict_arr=no
19600 fi
19601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19602 fi
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
19604 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
19605 if test "$emacs_cv_c_restrict_arr" = yes; then
19606
19607 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
19608
19609 fi
19610
19611
19612
19613 # Set up the CFLAGS for real compilation, so we can substitute it.
19614 CFLAGS="$REAL_CFLAGS"
19615 CPPFLAGS="$REAL_CPPFLAGS"
19616
19617 ## Hack to detect a buggy GCC version.
19618 if test "x$GCC" = xyes \
19619 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
19620 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
19621 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
19622 as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
19623 fi
19624
19625 version=$PACKAGE_VERSION
19626
19627 ### Specify what sort of things we'll be editing into Makefile and config.h.
19628 ### Use configuration here uncanonicalized to avoid exceeding size limits.
19629
19630
19631 ## Unused?
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
19653 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
19654 ## end of LIBX_BASE, but nothing ever set it.
19655
19656
19657
19658
19659 ## Used in lwlib/Makefile.in.
19660
19661 if test -n "${machfile}"; then
19662 M_FILE="\$(srcdir)/${machfile}"
19663 else
19664 M_FILE=
19665 fi
19666 S_FILE="\$(srcdir)/${opsysfile}"
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677 cat >>confdefs.h <<_ACEOF
19678 #define EMACS_CONFIGURATION "${canonical}"
19679 _ACEOF
19680
19681
19682 cat >>confdefs.h <<_ACEOF
19683 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
19684 _ACEOF
19685
19686 if test -n "$machfile"; then
19687
19688 cat >>confdefs.h <<_ACEOF
19689 #define config_machfile "${machfile}"
19690 _ACEOF
19691
19692 fi
19693
19694 cat >>confdefs.h <<_ACEOF
19695 #define config_opsysfile "${opsysfile}"
19696 _ACEOF
19697
19698
19699 XMENU_OBJ=
19700 XOBJ=
19701 FONT_OBJ=
19702 if test "${HAVE_X_WINDOWS}" = "yes" ; then
19703
19704 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
19705
19706 XMENU_OBJ=xmenu.o
19707 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
19708 FONT_OBJ=xfont.o
19709 if test "$HAVE_XFT" = "yes"; then
19710 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
19711 elif test "$HAVE_FREETYPE" = "yes"; then
19712 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
19713 fi
19714
19715 fi
19716
19717
19718
19719
19720 WIDGET_OBJ=
19721 MOTIF_LIBW=
19722 if test "${USE_X_TOOLKIT}" != "none" ; then
19723 WIDGET_OBJ=widget.o
19724
19725 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
19726
19727 if test "${USE_X_TOOLKIT}" = "LUCID"; then
19728
19729 $as_echo "#define USE_LUCID 1" >>confdefs.h
19730
19731 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
19732
19733 $as_echo "#define USE_MOTIF 1" >>confdefs.h
19734
19735 MOTIF_LIBW=-lXm
19736 case "$opsys" in
19737 gnu-linux)
19738 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
19739 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
19740 ;;
19741
19742 unixware)
19743 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
19744 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
19745 MOTIF_LIBW="MOTIF_LIBW -lXimp"
19746 ;;
19747
19748 aix4-2)
19749 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
19750 MOTIF_LIBW="$MOTIF_LIBW -li18n"
19751 ;;
19752 esac
19753 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
19754 fi
19755 fi
19756
19757
19758 TOOLKIT_LIBW=
19759 case "$USE_X_TOOLKIT" in
19760 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
19761 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
19762 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
19763 esac
19764
19765
19766 if test "$USE_X_TOOLKIT" = "none"; then
19767 LIBXT_OTHER="\$(LIBXSM)"
19768 OLDXMENU_TARGET="really-oldXMenu"
19769 else
19770 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
19771 OLDXMENU_TARGET="really-lwlib"
19772 fi
19773
19774
19775 ## The X Menu stuff is present in the X10 distribution, but missing
19776 ## from X11. If we have X10, just use the installed library;
19777 ## otherwise, use our own copy.
19778 if test "${HAVE_X11}" = "yes" ; then
19779
19780 $as_echo "#define HAVE_X11 1" >>confdefs.h
19781
19782
19783 if test "$USE_X_TOOLKIT" = "none"; then
19784 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
19785 else
19786 OLDXMENU="\${lwlibdir}/liblw.a"
19787 fi
19788 LIBXMENU="\$(OLDXMENU)"
19789 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
19790 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
19791 else
19792 ## For a syntactically valid Makefile; not actually used for anything.
19793 ## See comments in src/Makefile.in.
19794 OLDXMENU=nothing
19795 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
19796 if test "${HAVE_X_WINDOWS}" = "yes"; then
19797 LIBXMENU="-lXMenu"
19798 else
19799 LIBXMENU=
19800 fi
19801 LIBX_OTHER=
19802 OLDXMENU_DEPS=
19803 fi
19804
19805 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
19806 OLDXMENU_TARGET=
19807 OLDXMENU=nothing
19808 LIBXMENU=
19809 OLDXMENU_DEPS=
19810 fi
19811
19812
19813
19814
19815
19816
19817
19818 if test "${HAVE_MENUS}" = "yes" ; then
19819
19820 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
19821
19822 fi
19823
19824 if test "${GNU_MALLOC}" = "yes" ; then
19825
19826 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
19827
19828 fi
19829
19830 RALLOC_OBJ=
19831 if test "${REL_ALLOC}" = "yes" ; then
19832
19833 $as_echo "#define REL_ALLOC 1" >>confdefs.h
19834
19835
19836 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
19837 fi
19838
19839
19840 if test "$opsys" = "cygwin"; then
19841 CYGWIN_OBJ="sheap.o"
19842 ## Cygwin differs because of its unexec().
19843 PRE_ALLOC_OBJ=
19844 POST_ALLOC_OBJ=lastfile.o
19845 else
19846 CYGWIN_OBJ=
19847 PRE_ALLOC_OBJ=lastfile.o
19848 POST_ALLOC_OBJ=
19849 fi
19850
19851
19852
19853
19854
19855 case "$opsys" in
19856 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19857
19858 darwin)
19859 ## The -headerpad option tells ld (see man page) to leave room at the
19860 ## end of the header for adding load commands. Needed for dumping.
19861 ## 0x690 is the total size of 30 segment load commands (at 56
19862 ## each); under Cocoa 31 commands are required.
19863 if test "$HAVE_NS" = "yes"; then
19864 libs_nsgui="-framework AppKit"
19865 headerpad_extra=6C8
19866 else
19867 libs_nsgui=
19868 headerpad_extra=690
19869 fi
19870 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19871
19872 ## This is here because src/Makefile.in did some extra fiddling around
19873 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19874 ## #ifndef LD_SWITCH_SYSTEM
19875 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19876 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19877 ## not using gcc, darwin system not on an alpha (ie darwin, since
19878 ## darwin + alpha does not occur).
19879 ## Because this was done in src/Makefile.in, the resulting part of
19880 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19881 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19882 ## rather than LD_SWITCH_SYSTEM.
19883 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19884 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19885 ;;
19886
19887 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19888 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19889 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19890 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19891 ## had different values in configure (in ac_link) and src/Makefile.in.
19892 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19893 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19894
19895 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19896 esac
19897
19898 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19899 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19900 fi
19901
19902
19903
19904
19905 LD_FIRSTFLAG=
19906 ORDINARY_LINK=
19907 case "$opsys" in
19908 ## gnu: GNU needs its own crt0.
19909 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19910
19911 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19912 ## library search parth, i.e. it won't search /usr/lib for libc and
19913 ## friends. Using -nostartfiles instead avoids this problem, and
19914 ## will also work on earlier NetBSD releases.
19915 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19916
19917 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19918 ## MkLinux/LinuxPPC needs this.
19919 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19920 gnu-*)
19921 case "$machine" in
19922 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19923 esac
19924 ;;
19925 esac
19926
19927
19928 if test "x$ORDINARY_LINK" = "xyes"; then
19929
19930 LD_FIRSTFLAG=""
19931
19932 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19933
19934
19935 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19936 ## freebsd, gnu-* not on macppc|ibms390x.
19937 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19938
19939 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19940 ## places that are difficult to figure out at make time. Fortunately,
19941 ## these same versions allow you to pass arbitrary flags on to the
19942 ## linker, so there is no reason not to use it as a linker.
19943 ##
19944 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19945 ## searching for libraries in its internal directories, so we have to
19946 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19947 LD_FIRSTFLAG="-nostdlib"
19948 fi
19949
19950 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19951 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19952
19953
19954
19955
19956 ## FIXME? The logic here is not precisely the same as that above.
19957 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19958 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19959 LIB_GCC=
19960 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19961
19962 case "$opsys" in
19963 freebsd|netbsd|openbsd) LIB_GCC= ;;
19964
19965 gnu-*)
19966 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19967 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19968 case $host_cpu in
19969 arm*)
19970 LIB_GCC="-lgcc_s"
19971 ;;
19972 *)
19973 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19974 ## immediately undefine it again and redefine it to empty.
19975 ## Was the C_SWITCH_X_SITE part really necessary?
19976 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19977 LIB_GCC=
19978 ;;
19979 esac
19980 ;;
19981
19982 ## Ask GCC where to find libgcc.a.
19983 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19984 esac
19985 fi
19986
19987
19988 TOOLTIP_SUPPORT=
19989 WINDOW_SUPPORT=
19990 ## If we're using X11/GNUstep, define some consequences.
19991 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19992
19993 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19994
19995
19996 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19997
19998 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19999 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
20000
20001 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
20002 test "$HAVE_X_WINDOWS" = "yes" && \
20003 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
20004
20005 fi
20006
20007
20008
20009
20010
20011
20012
20013 #### Report on what we decided to do.
20014 #### Report GTK as a toolkit, even if it doesn't use Xt.
20015 #### It makes printing result more understandable as using GTK sets
20016 #### toolkit_scroll_bars to yes by default.
20017 if test "${HAVE_GTK}" = "yes"; then
20018 USE_X_TOOLKIT=GTK
20019 fi
20020
20021 and_machfile=
20022 if test -n "$machfile"; then
20023 and_machfile=" and \`${machfile}'"
20024 fi
20025
20026 echo "
20027 Configured for \`${canonical}'.
20028
20029 Where should the build process find the source code? ${srcdir}
20030 What operating system and machine description files should Emacs use?
20031 \`${opsysfile}'${and_machfile}
20032 What compiler should emacs be built with? ${CC} ${CFLAGS}
20033 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
20034 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
20035 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
20036 What window system should Emacs use? ${window_system}
20037 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
20038
20039 if test -n "${x_includes}"; then
20040 echo " Where do we find X Windows header files? ${x_includes}"
20041 else
20042 echo " Where do we find X Windows header files? Standard dirs"
20043 fi
20044 if test -n "${x_libraries}"; then
20045 echo " Where do we find X Windows libraries? ${x_libraries}"
20046 else
20047 echo " Where do we find X Windows libraries? Standard dirs"
20048 fi
20049
20050 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
20051 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
20052 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
20053 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
20054 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
20055 echo " Does Emacs use -lpng? ${HAVE_PNG}"
20056 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
20057 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
20058
20059 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
20060 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
20061 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
20062 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
20063 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
20064 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
20065
20066 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
20067 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
20068 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
20069 echo " Does Emacs use -lxft? ${HAVE_XFT}"
20070
20071 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
20072 echo
20073
20074 if test $USE_XASSERTS = yes; then
20075 echo " Compiling with asserts turned on."
20076 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
20077 fi
20078
20079 echo
20080
20081 if test "$HAVE_NS" = "yes"; then
20082 echo
20083 echo "You must run \"make install\" in order to test the built application.
20084 The installed application will go to nextstep/Emacs.app and can be
20085 run or moved from there."
20086 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
20087 echo "The application will be fully self-contained."
20088 else
20089 echo "The lisp resources for the application will be installed under ${prefix}.
20090 You may need to run \"make install\" with sudo. The application will fail
20091 to run if these resources are not installed."
20092 fi
20093 echo
20094 fi
20095
20096
20097 # Remove any trailing slashes in these variables.
20098 test "${prefix}" != NONE &&
20099 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
20100 test "${exec_prefix}" != NONE &&
20101 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
20102
20103 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"
20104
20105
20106 ac_config_commands="$ac_config_commands mkdirs"
20107
20108
20109 ac_config_commands="$ac_config_commands epaths"
20110
20111
20112 ac_config_commands="$ac_config_commands gdbinit"
20113
20114
20115 cat >confcache <<\_ACEOF
20116 # This file is a shell script that caches the results of configure
20117 # tests run on this system so they can be shared between configure
20118 # scripts and configure runs, see configure's option --config-cache.
20119 # It is not useful on other systems. If it contains results you don't
20120 # want to keep, you may remove or edit it.
20121 #
20122 # config.status only pays attention to the cache file if you give it
20123 # the --recheck option to rerun configure.
20124 #
20125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20127 # following values.
20128
20129 _ACEOF
20130
20131 # The following way of writing the cache mishandles newlines in values,
20132 # but we know of no workaround that is simple, portable, and efficient.
20133 # So, we kill variables containing newlines.
20134 # Ultrix sh set writes to stderr and can't be redirected directly,
20135 # and sets the high bit in the cache file unless we assign to the vars.
20136 (
20137 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20138 eval ac_val=\$$ac_var
20139 case $ac_val in #(
20140 *${as_nl}*)
20141 case $ac_var in #(
20142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20144 esac
20145 case $ac_var in #(
20146 _ | IFS | as_nl) ;; #(
20147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20148 *) { eval $ac_var=; unset $ac_var;} ;;
20149 esac ;;
20150 esac
20151 done
20152
20153 (set) 2>&1 |
20154 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20155 *${as_nl}ac_space=\ *)
20156 # `set' does not quote correctly, so add quotes: double-quote
20157 # substitution turns \\\\ into \\, and sed turns \\ into \.
20158 sed -n \
20159 "s/'/'\\\\''/g;
20160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20161 ;; #(
20162 *)
20163 # `set' quotes correctly as required by POSIX, so do not add quotes.
20164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20165 ;;
20166 esac |
20167 sort
20168 ) |
20169 sed '
20170 /^ac_cv_env_/b end
20171 t clear
20172 :clear
20173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20174 t end
20175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20176 :end' >>confcache
20177 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20178 if test -w "$cache_file"; then
20179 test "x$cache_file" != "x/dev/null" &&
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20181 $as_echo "$as_me: updating cache $cache_file" >&6;}
20182 cat confcache >$cache_file
20183 else
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20185 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20186 fi
20187 fi
20188 rm -f confcache
20189
20190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20191 # Let make expand exec_prefix.
20192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20193
20194 DEFS=-DHAVE_CONFIG_H
20195
20196 ac_libobjs=
20197 ac_ltlibobjs=
20198 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20199 # 1. Remove the extension, and $U if already installed.
20200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20203 # will be set to the directory where LIBOBJS objects are built.
20204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20206 done
20207 LIBOBJS=$ac_libobjs
20208
20209 LTLIBOBJS=$ac_ltlibobjs
20210
20211
20212 if test -n "$EXEEXT"; then
20213 am__EXEEXT_TRUE=
20214 am__EXEEXT_FALSE='#'
20215 else
20216 am__EXEEXT_TRUE='#'
20217 am__EXEEXT_FALSE=
20218 fi
20219
20220 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20221 as_fn_error "conditional \"AMDEP\" was never defined.
20222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20223 fi
20224 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20225 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20227 fi
20228
20229 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20230 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
20231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20232 fi
20233
20234 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20235 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20237 fi
20238 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20239 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20241 fi
20242 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20243 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
20244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20245 fi
20246
20247 gl_libobjs=
20248 gl_ltlibobjs=
20249 if test -n "$gl_LIBOBJS"; then
20250 # Remove the extension.
20251 sed_drop_objext='s/\.o$//;s/\.obj$//'
20252 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20253 gl_libobjs="$gl_libobjs $i.$ac_objext"
20254 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20255 done
20256 fi
20257 gl_LIBOBJS=$gl_libobjs
20258
20259 gl_LTLIBOBJS=$gl_ltlibobjs
20260
20261
20262
20263 gltests_libobjs=
20264 gltests_ltlibobjs=
20265 if test -n "$gltests_LIBOBJS"; then
20266 # Remove the extension.
20267 sed_drop_objext='s/\.o$//;s/\.obj$//'
20268 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20269 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20270 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20271 done
20272 fi
20273 gltests_LIBOBJS=$gltests_libobjs
20274
20275 gltests_LTLIBOBJS=$gltests_ltlibobjs
20276
20277
20278
20279 : ${CONFIG_STATUS=./config.status}
20280 ac_write_fail=0
20281 ac_clean_files_save=$ac_clean_files
20282 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20284 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20285 as_write_fail=0
20286 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20287 #! $SHELL
20288 # Generated by $as_me.
20289 # Run this file to recreate the current configuration.
20290 # Compiler output produced by configure, useful for debugging
20291 # configure, is in config.log if it exists.
20292
20293 debug=false
20294 ac_cs_recheck=false
20295 ac_cs_silent=false
20296
20297 SHELL=\${CONFIG_SHELL-$SHELL}
20298 export SHELL
20299 _ASEOF
20300 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20301 ## -------------------- ##
20302 ## M4sh Initialization. ##
20303 ## -------------------- ##
20304
20305 # Be more Bourne compatible
20306 DUALCASE=1; export DUALCASE # for MKS sh
20307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20308 emulate sh
20309 NULLCMD=:
20310 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20311 # is contrary to our usage. Disable this feature.
20312 alias -g '${1+"$@"}'='"$@"'
20313 setopt NO_GLOB_SUBST
20314 else
20315 case `(set -o) 2>/dev/null` in #(
20316 *posix*) :
20317 set -o posix ;; #(
20318 *) :
20319 ;;
20320 esac
20321 fi
20322
20323
20324 as_nl='
20325 '
20326 export as_nl
20327 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20328 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20331 # Prefer a ksh shell builtin over an external printf program on Solaris,
20332 # but without wasting forks for bash or zsh.
20333 if test -z "$BASH_VERSION$ZSH_VERSION" \
20334 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20335 as_echo='print -r --'
20336 as_echo_n='print -rn --'
20337 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20338 as_echo='printf %s\n'
20339 as_echo_n='printf %s'
20340 else
20341 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20342 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20343 as_echo_n='/usr/ucb/echo -n'
20344 else
20345 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20346 as_echo_n_body='eval
20347 arg=$1;
20348 case $arg in #(
20349 *"$as_nl"*)
20350 expr "X$arg" : "X\\(.*\\)$as_nl";
20351 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20352 esac;
20353 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20354 '
20355 export as_echo_n_body
20356 as_echo_n='sh -c $as_echo_n_body as_echo'
20357 fi
20358 export as_echo_body
20359 as_echo='sh -c $as_echo_body as_echo'
20360 fi
20361
20362 # The user is always right.
20363 if test "${PATH_SEPARATOR+set}" != set; then
20364 PATH_SEPARATOR=:
20365 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20366 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20367 PATH_SEPARATOR=';'
20368 }
20369 fi
20370
20371
20372 # IFS
20373 # We need space, tab and new line, in precisely that order. Quoting is
20374 # there to prevent editors from complaining about space-tab.
20375 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20376 # splitting by setting IFS to empty value.)
20377 IFS=" "" $as_nl"
20378
20379 # Find who we are. Look in the path if we contain no directory separator.
20380 case $0 in #((
20381 *[\\/]* ) as_myself=$0 ;;
20382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20383 for as_dir in $PATH
20384 do
20385 IFS=$as_save_IFS
20386 test -z "$as_dir" && as_dir=.
20387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20388 done
20389 IFS=$as_save_IFS
20390
20391 ;;
20392 esac
20393 # We did not find ourselves, most probably we were run as `sh COMMAND'
20394 # in which case we are not to be found in the path.
20395 if test "x$as_myself" = x; then
20396 as_myself=$0
20397 fi
20398 if test ! -f "$as_myself"; then
20399 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20400 exit 1
20401 fi
20402
20403 # Unset variables that we do not need and which cause bugs (e.g. in
20404 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20405 # suppresses any "Segmentation fault" message there. '((' could
20406 # trigger a bug in pdksh 5.2.14.
20407 for as_var in BASH_ENV ENV MAIL MAILPATH
20408 do eval test x\${$as_var+set} = xset \
20409 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20410 done
20411 PS1='$ '
20412 PS2='> '
20413 PS4='+ '
20414
20415 # NLS nuisances.
20416 LC_ALL=C
20417 export LC_ALL
20418 LANGUAGE=C
20419 export LANGUAGE
20420
20421 # CDPATH.
20422 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20423
20424
20425 # as_fn_error ERROR [LINENO LOG_FD]
20426 # ---------------------------------
20427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20429 # script with status $?, using 1 if that was 0.
20430 as_fn_error ()
20431 {
20432 as_status=$?; test $as_status -eq 0 && as_status=1
20433 if test "$3"; then
20434 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20435 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20436 fi
20437 $as_echo "$as_me: error: $1" >&2
20438 as_fn_exit $as_status
20439 } # as_fn_error
20440
20441
20442 # as_fn_set_status STATUS
20443 # -----------------------
20444 # Set $? to STATUS, without forking.
20445 as_fn_set_status ()
20446 {
20447 return $1
20448 } # as_fn_set_status
20449
20450 # as_fn_exit STATUS
20451 # -----------------
20452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20453 as_fn_exit ()
20454 {
20455 set +e
20456 as_fn_set_status $1
20457 exit $1
20458 } # as_fn_exit
20459
20460 # as_fn_unset VAR
20461 # ---------------
20462 # Portably unset VAR.
20463 as_fn_unset ()
20464 {
20465 { eval $1=; unset $1;}
20466 }
20467 as_unset=as_fn_unset
20468 # as_fn_append VAR VALUE
20469 # ----------------------
20470 # Append the text in VALUE to the end of the definition contained in VAR. Take
20471 # advantage of any shell optimizations that allow amortized linear growth over
20472 # repeated appends, instead of the typical quadratic growth present in naive
20473 # implementations.
20474 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20475 eval 'as_fn_append ()
20476 {
20477 eval $1+=\$2
20478 }'
20479 else
20480 as_fn_append ()
20481 {
20482 eval $1=\$$1\$2
20483 }
20484 fi # as_fn_append
20485
20486 # as_fn_arith ARG...
20487 # ------------------
20488 # Perform arithmetic evaluation on the ARGs, and store the result in the
20489 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20490 # must be portable across $(()) and expr.
20491 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20492 eval 'as_fn_arith ()
20493 {
20494 as_val=$(( $* ))
20495 }'
20496 else
20497 as_fn_arith ()
20498 {
20499 as_val=`expr "$@" || test $? -eq 1`
20500 }
20501 fi # as_fn_arith
20502
20503
20504 if expr a : '\(a\)' >/dev/null 2>&1 &&
20505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20506 as_expr=expr
20507 else
20508 as_expr=false
20509 fi
20510
20511 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20512 as_basename=basename
20513 else
20514 as_basename=false
20515 fi
20516
20517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20518 as_dirname=dirname
20519 else
20520 as_dirname=false
20521 fi
20522
20523 as_me=`$as_basename -- "$0" ||
20524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20525 X"$0" : 'X\(//\)$' \| \
20526 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20527 $as_echo X/"$0" |
20528 sed '/^.*\/\([^/][^/]*\)\/*$/{
20529 s//\1/
20530 q
20531 }
20532 /^X\/\(\/\/\)$/{
20533 s//\1/
20534 q
20535 }
20536 /^X\/\(\/\).*/{
20537 s//\1/
20538 q
20539 }
20540 s/.*/./; q'`
20541
20542 # Avoid depending upon Character Ranges.
20543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20546 as_cr_digits='0123456789'
20547 as_cr_alnum=$as_cr_Letters$as_cr_digits
20548
20549 ECHO_C= ECHO_N= ECHO_T=
20550 case `echo -n x` in #(((((
20551 -n*)
20552 case `echo 'xy\c'` in
20553 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20554 xy) ECHO_C='\c';;
20555 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20556 ECHO_T=' ';;
20557 esac;;
20558 *)
20559 ECHO_N='-n';;
20560 esac
20561
20562 rm -f conf$$ conf$$.exe conf$$.file
20563 if test -d conf$$.dir; then
20564 rm -f conf$$.dir/conf$$.file
20565 else
20566 rm -f conf$$.dir
20567 mkdir conf$$.dir 2>/dev/null
20568 fi
20569 if (echo >conf$$.file) 2>/dev/null; then
20570 if ln -s conf$$.file conf$$ 2>/dev/null; then
20571 as_ln_s='ln -s'
20572 # ... but there are two gotchas:
20573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20575 # In both cases, we have to default to `cp -p'.
20576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20577 as_ln_s='cp -p'
20578 elif ln conf$$.file conf$$ 2>/dev/null; then
20579 as_ln_s=ln
20580 else
20581 as_ln_s='cp -p'
20582 fi
20583 else
20584 as_ln_s='cp -p'
20585 fi
20586 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20587 rmdir conf$$.dir 2>/dev/null
20588
20589
20590 # as_fn_mkdir_p
20591 # -------------
20592 # Create "$as_dir" as a directory, including parents if necessary.
20593 as_fn_mkdir_p ()
20594 {
20595
20596 case $as_dir in #(
20597 -*) as_dir=./$as_dir;;
20598 esac
20599 test -d "$as_dir" || eval $as_mkdir_p || {
20600 as_dirs=
20601 while :; do
20602 case $as_dir in #(
20603 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20604 *) as_qdir=$as_dir;;
20605 esac
20606 as_dirs="'$as_qdir' $as_dirs"
20607 as_dir=`$as_dirname -- "$as_dir" ||
20608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20609 X"$as_dir" : 'X\(//\)[^/]' \| \
20610 X"$as_dir" : 'X\(//\)$' \| \
20611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20612 $as_echo X"$as_dir" |
20613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20614 s//\1/
20615 q
20616 }
20617 /^X\(\/\/\)[^/].*/{
20618 s//\1/
20619 q
20620 }
20621 /^X\(\/\/\)$/{
20622 s//\1/
20623 q
20624 }
20625 /^X\(\/\).*/{
20626 s//\1/
20627 q
20628 }
20629 s/.*/./; q'`
20630 test -d "$as_dir" && break
20631 done
20632 test -z "$as_dirs" || eval "mkdir $as_dirs"
20633 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20634
20635
20636 } # as_fn_mkdir_p
20637 if mkdir -p . 2>/dev/null; then
20638 as_mkdir_p='mkdir -p "$as_dir"'
20639 else
20640 test -d ./-p && rmdir ./-p
20641 as_mkdir_p=false
20642 fi
20643
20644 if test -x / >/dev/null 2>&1; then
20645 as_test_x='test -x'
20646 else
20647 if ls -dL / >/dev/null 2>&1; then
20648 as_ls_L_option=L
20649 else
20650 as_ls_L_option=
20651 fi
20652 as_test_x='
20653 eval sh -c '\''
20654 if test -d "$1"; then
20655 test -d "$1/.";
20656 else
20657 case $1 in #(
20658 -*)set "./$1";;
20659 esac;
20660 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20661 ???[sx]*):;;*)false;;esac;fi
20662 '\'' sh
20663 '
20664 fi
20665 as_executable_p=$as_test_x
20666
20667 # Sed expression to map a string onto a valid CPP name.
20668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20669
20670 # Sed expression to map a string onto a valid variable name.
20671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20672
20673
20674 exec 6>&1
20675 ## ----------------------------------- ##
20676 ## Main body of $CONFIG_STATUS script. ##
20677 ## ----------------------------------- ##
20678 _ASEOF
20679 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20680
20681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20682 # Save the log message, to keep $0 and so on meaningful, and to
20683 # report actual input values of CONFIG_FILES etc. instead of their
20684 # values after options handling.
20685 ac_log="
20686 This file was extended by emacs $as_me 24.0.50, which was
20687 generated by GNU Autoconf 2.65. Invocation command line was
20688
20689 CONFIG_FILES = $CONFIG_FILES
20690 CONFIG_HEADERS = $CONFIG_HEADERS
20691 CONFIG_LINKS = $CONFIG_LINKS
20692 CONFIG_COMMANDS = $CONFIG_COMMANDS
20693 $ $0 $@
20694
20695 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20696 "
20697
20698 _ACEOF
20699
20700 case $ac_config_files in *"
20701 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20702 esac
20703
20704 case $ac_config_headers in *"
20705 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20706 esac
20707
20708
20709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20710 # Files that config.status was made for.
20711 config_files="$ac_config_files"
20712 config_headers="$ac_config_headers"
20713 config_commands="$ac_config_commands"
20714
20715 _ACEOF
20716
20717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20718 ac_cs_usage="\
20719 \`$as_me' instantiates files and other configuration actions
20720 from templates according to the current configuration. Unless the files
20721 and actions are specified as TAGs, all are instantiated by default.
20722
20723 Usage: $0 [OPTION]... [TAG]...
20724
20725 -h, --help print this help, then exit
20726 -V, --version print version number and configuration settings, then exit
20727 --config print configuration, then exit
20728 -q, --quiet, --silent
20729 do not print progress messages
20730 -d, --debug don't remove temporary files
20731 --recheck update $as_me by reconfiguring in the same conditions
20732 --file=FILE[:TEMPLATE]
20733 instantiate the configuration file FILE
20734 --header=FILE[:TEMPLATE]
20735 instantiate the configuration header FILE
20736
20737 Configuration files:
20738 $config_files
20739
20740 Configuration headers:
20741 $config_headers
20742
20743 Configuration commands:
20744 $config_commands
20745
20746 Report bugs to the package provider."
20747
20748 _ACEOF
20749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20750 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20751 ac_cs_version="\\
20752 emacs config.status 24.0.50
20753 configured by $0, generated by GNU Autoconf 2.65,
20754 with options \\"\$ac_cs_config\\"
20755
20756 Copyright (C) 2009 Free Software Foundation, Inc.
20757 This config.status script is free software; the Free Software Foundation
20758 gives unlimited permission to copy, distribute and modify it."
20759
20760 ac_pwd='$ac_pwd'
20761 srcdir='$srcdir'
20762 INSTALL='$INSTALL'
20763 MKDIR_P='$MKDIR_P'
20764 AWK='$AWK'
20765 test -n "\$AWK" || AWK=awk
20766 _ACEOF
20767
20768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20769 # The default lists apply if the user does not specify any file.
20770 ac_need_defaults=:
20771 while test $# != 0
20772 do
20773 case $1 in
20774 --*=*)
20775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20776 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20777 ac_shift=:
20778 ;;
20779 *)
20780 ac_option=$1
20781 ac_optarg=$2
20782 ac_shift=shift
20783 ;;
20784 esac
20785
20786 case $ac_option in
20787 # Handling of the options.
20788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20789 ac_cs_recheck=: ;;
20790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20791 $as_echo "$ac_cs_version"; exit ;;
20792 --config | --confi | --conf | --con | --co | --c )
20793 $as_echo "$ac_cs_config"; exit ;;
20794 --debug | --debu | --deb | --de | --d | -d )
20795 debug=: ;;
20796 --file | --fil | --fi | --f )
20797 $ac_shift
20798 case $ac_optarg in
20799 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20800 esac
20801 as_fn_append CONFIG_FILES " '$ac_optarg'"
20802 ac_need_defaults=false;;
20803 --header | --heade | --head | --hea )
20804 $ac_shift
20805 case $ac_optarg in
20806 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20807 esac
20808 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20809 ac_need_defaults=false;;
20810 --he | --h)
20811 # Conflict between --help and --header
20812 as_fn_error "ambiguous option: \`$1'
20813 Try \`$0 --help' for more information.";;
20814 --help | --hel | -h )
20815 $as_echo "$ac_cs_usage"; exit ;;
20816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20818 ac_cs_silent=: ;;
20819
20820 # This is an error.
20821 -*) as_fn_error "unrecognized option: \`$1'
20822 Try \`$0 --help' for more information." ;;
20823
20824 *) as_fn_append ac_config_targets " $1"
20825 ac_need_defaults=false ;;
20826
20827 esac
20828 shift
20829 done
20830
20831 ac_configure_extra_args=
20832
20833 if $ac_cs_silent; then
20834 exec 6>/dev/null
20835 ac_configure_extra_args="$ac_configure_extra_args --silent"
20836 fi
20837
20838 _ACEOF
20839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20840 if \$ac_cs_recheck; then
20841 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20842 shift
20843 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20844 CONFIG_SHELL='$SHELL'
20845 export CONFIG_SHELL
20846 exec "\$@"
20847 fi
20848
20849 _ACEOF
20850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20851 exec 5>>config.log
20852 {
20853 echo
20854 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20855 ## Running $as_me. ##
20856 _ASBOX
20857 $as_echo "$ac_log"
20858 } >&5
20859
20860 _ACEOF
20861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20862 #
20863 # INIT-COMMANDS
20864 #
20865 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20866 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20867
20868 _ACEOF
20869
20870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20871
20872 # Handling of arguments.
20873 for ac_config_target in $ac_config_targets
20874 do
20875 case $ac_config_target in
20876 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20877 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20878 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20879 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20880 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20881 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20882 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20883 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20884 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20885 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20886 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20887 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20888 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20889 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20890 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
20891 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20892 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20893 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
20894
20895 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20896 esac
20897 done
20898
20899
20900 # If the user did not use the arguments to specify the items to instantiate,
20901 # then the envvar interface is used. Set only those that are not.
20902 # We use the long form for the default assignment because of an extremely
20903 # bizarre bug on SunOS 4.1.3.
20904 if $ac_need_defaults; then
20905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20908 fi
20909
20910 # Have a temporary directory for convenience. Make it in the build tree
20911 # simply because there is no reason against having it here, and in addition,
20912 # creating and moving files from /tmp can sometimes cause problems.
20913 # Hook for its removal unless debugging.
20914 # Note that there is a small window in which the directory will not be cleaned:
20915 # after its creation but before its name has been assigned to `$tmp'.
20916 $debug ||
20917 {
20918 tmp=
20919 trap 'exit_status=$?
20920 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20921 ' 0
20922 trap 'as_fn_exit 1' 1 2 13 15
20923 }
20924 # Create a (secure) tmp directory for tmp files.
20925
20926 {
20927 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20928 test -n "$tmp" && test -d "$tmp"
20929 } ||
20930 {
20931 tmp=./conf$$-$RANDOM
20932 (umask 077 && mkdir "$tmp")
20933 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20934
20935 # Set up the scripts for CONFIG_FILES section.
20936 # No need to generate them if there are no CONFIG_FILES.
20937 # This happens for instance with `./config.status config.h'.
20938 if test -n "$CONFIG_FILES"; then
20939
20940 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20941 ac_cs_awk_getline=:
20942 ac_cs_awk_pipe_init=
20943 ac_cs_awk_read_file='
20944 while ((getline aline < (F[key])) > 0)
20945 print(aline)
20946 close(F[key])'
20947 ac_cs_awk_pipe_fini=
20948 else
20949 ac_cs_awk_getline=false
20950 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20951 ac_cs_awk_read_file='
20952 print "|#_!!_#|"
20953 print "cat " F[key] " &&"
20954 '$ac_cs_awk_pipe_init
20955 # The final `:' finishes the AND list.
20956 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20957 fi
20958 ac_cr=`echo X | tr X '\015'`
20959 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20960 # But we know of no other shell where ac_cr would be empty at this
20961 # point, so we can use a bashism as a fallback.
20962 if test "x$ac_cr" = x; then
20963 eval ac_cr=\$\'\\r\'
20964 fi
20965 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20966 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20967 ac_cs_awk_cr='\r'
20968 else
20969 ac_cs_awk_cr=$ac_cr
20970 fi
20971
20972 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20973 _ACEOF
20974
20975 # Create commands to substitute file output variables.
20976 {
20977 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20978 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
20979 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20980 echo "_ACAWK" &&
20981 echo "_ACEOF"
20982 } >conf$$files.sh &&
20983 . ./conf$$files.sh ||
20984 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20985 rm -f conf$$files.sh
20986
20987 {
20988 echo "cat >conf$$subs.awk <<_ACEOF" &&
20989 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20990 echo "_ACEOF"
20991 } >conf$$subs.sh ||
20992 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20993 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20994 ac_delim='%!_!# '
20995 for ac_last_try in false false false false false :; do
20996 . ./conf$$subs.sh ||
20997 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20998
20999 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21000 if test $ac_delim_n = $ac_delim_num; then
21001 break
21002 elif $ac_last_try; then
21003 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21004 else
21005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21006 fi
21007 done
21008 rm -f conf$$subs.sh
21009
21010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21011 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21012 _ACEOF
21013 sed -n '
21014 h
21015 s/^/S["/; s/!.*/"]=/
21016 p
21017 g
21018 s/^[^!]*!//
21019 :repl
21020 t repl
21021 s/'"$ac_delim"'$//
21022 t delim
21023 :nl
21024 h
21025 s/\(.\{148\}\)..*/\1/
21026 t more1
21027 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21028 p
21029 n
21030 b repl
21031 :more1
21032 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21033 p
21034 g
21035 s/.\{148\}//
21036 t nl
21037 :delim
21038 h
21039 s/\(.\{148\}\)..*/\1/
21040 t more2
21041 s/["\\]/\\&/g; s/^/"/; s/$/"/
21042 p
21043 b
21044 :more2
21045 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21046 p
21047 g
21048 s/.\{148\}//
21049 t delim
21050 ' <conf$$subs.awk | sed '
21051 /^[^""]/{
21052 N
21053 s/\n//
21054 }
21055 ' >>$CONFIG_STATUS || ac_write_fail=1
21056 rm -f conf$$subs.awk
21057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21058 _ACAWK
21059 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21060 for (key in S) S_is_set[key] = 1
21061 FS = "\a"
21062 \$ac_cs_awk_pipe_init
21063 }
21064 {
21065 line = $ 0
21066 nfields = split(line, field, "@")
21067 substed = 0
21068 len = length(field[1])
21069 for (i = 2; i < nfields; i++) {
21070 key = field[i]
21071 keylen = length(key)
21072 if (S_is_set[key]) {
21073 value = S[key]
21074 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21075 len += length(value) + length(field[++i])
21076 substed = 1
21077 } else
21078 len += 1 + keylen
21079 }
21080 if (nfields == 3 && !substed) {
21081 key = field[2]
21082 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21083 \$ac_cs_awk_read_file
21084 next
21085 }
21086 }
21087 print line
21088 }
21089 \$ac_cs_awk_pipe_fini
21090 _ACAWK
21091 _ACEOF
21092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21093 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21094 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21095 else
21096 cat
21097 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21098 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21099 _ACEOF
21100
21101 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21102 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21103 # trailing colons and then remove the whole line if VPATH becomes empty
21104 # (actually we leave an empty line to preserve line numbers).
21105 if test "x$srcdir" = x.; then
21106 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21107 s/:*\$(srcdir):*/:/
21108 s/:*\${srcdir}:*/:/
21109 s/:*@srcdir@:*/:/
21110 s/^\([^=]*=[ ]*\):*/\1/
21111 s/:*$//
21112 s/^[^=]*=[ ]*$//
21113 }'
21114 fi
21115
21116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21117 fi # test -n "$CONFIG_FILES"
21118
21119 # Set up the scripts for CONFIG_HEADERS section.
21120 # No need to generate them if there are no CONFIG_HEADERS.
21121 # This happens for instance with `./config.status Makefile'.
21122 if test -n "$CONFIG_HEADERS"; then
21123 cat >"$tmp/defines.awk" <<\_ACAWK ||
21124 BEGIN {
21125 _ACEOF
21126
21127 # Transform confdefs.h into an awk script `defines.awk', embedded as
21128 # here-document in config.status, that substitutes the proper values into
21129 # config.h.in to produce config.h.
21130
21131 # Create a delimiter string that does not exist in confdefs.h, to ease
21132 # handling of long lines.
21133 ac_delim='%!_!# '
21134 for ac_last_try in false false :; do
21135 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21136 if test -z "$ac_t"; then
21137 break
21138 elif $ac_last_try; then
21139 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21140 else
21141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21142 fi
21143 done
21144
21145 # For the awk script, D is an array of macro values keyed by name,
21146 # likewise P contains macro parameters if any. Preserve backslash
21147 # newline sequences.
21148
21149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21150 sed -n '
21151 s/.\{148\}/&'"$ac_delim"'/g
21152 t rset
21153 :rset
21154 s/^[ ]*#[ ]*define[ ][ ]*/ /
21155 t def
21156 d
21157 :def
21158 s/\\$//
21159 t bsnl
21160 s/["\\]/\\&/g
21161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21162 D["\1"]=" \3"/p
21163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21164 d
21165 :bsnl
21166 s/["\\]/\\&/g
21167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21168 D["\1"]=" \3\\\\\\n"\\/p
21169 t cont
21170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21171 t cont
21172 d
21173 :cont
21174 n
21175 s/.\{148\}/&'"$ac_delim"'/g
21176 t clear
21177 :clear
21178 s/\\$//
21179 t bsnlc
21180 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21181 d
21182 :bsnlc
21183 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21184 b cont
21185 ' <confdefs.h | sed '
21186 s/'"$ac_delim"'/"\\\
21187 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21188
21189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21190 for (key in D) D_is_set[key] = 1
21191 FS = "\a"
21192 }
21193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21194 line = \$ 0
21195 split(line, arg, " ")
21196 if (arg[1] == "#") {
21197 defundef = arg[2]
21198 mac1 = arg[3]
21199 } else {
21200 defundef = substr(arg[1], 2)
21201 mac1 = arg[2]
21202 }
21203 split(mac1, mac2, "(") #)
21204 macro = mac2[1]
21205 prefix = substr(line, 1, index(line, defundef) - 1)
21206 if (D_is_set[macro]) {
21207 # Preserve the white space surrounding the "#".
21208 print prefix "define", macro P[macro] D[macro]
21209 next
21210 } else {
21211 # Replace #undef with comments. This is necessary, for example,
21212 # in the case of _POSIX_SOURCE, which is predefined and required
21213 # on some systems where configure will not decide to define it.
21214 if (defundef == "undef") {
21215 print "/*", prefix defundef, macro, "*/"
21216 next
21217 }
21218 }
21219 }
21220 { print }
21221 _ACAWK
21222 _ACEOF
21223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21224 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21225 fi # test -n "$CONFIG_HEADERS"
21226
21227
21228 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21229 shift
21230 for ac_tag
21231 do
21232 case $ac_tag in
21233 :[FHLC]) ac_mode=$ac_tag; continue;;
21234 esac
21235 case $ac_mode$ac_tag in
21236 :[FHL]*:*);;
21237 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21238 :[FH]-) ac_tag=-:-;;
21239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21240 esac
21241 ac_save_IFS=$IFS
21242 IFS=:
21243 set x $ac_tag
21244 IFS=$ac_save_IFS
21245 shift
21246 ac_file=$1
21247 shift
21248
21249 case $ac_mode in
21250 :L) ac_source=$1;;
21251 :[FH])
21252 ac_file_inputs=
21253 for ac_f
21254 do
21255 case $ac_f in
21256 -) ac_f="$tmp/stdin";;
21257 *) # Look for the file first in the build tree, then in the source tree
21258 # (if the path is not absolute). The absolute path cannot be DOS-style,
21259 # because $ac_f cannot contain `:'.
21260 test -f "$ac_f" ||
21261 case $ac_f in
21262 [\\/$]*) false;;
21263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21264 esac ||
21265 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21266 esac
21267 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21268 as_fn_append ac_file_inputs " '$ac_f'"
21269 done
21270
21271 # Let's still pretend it is `configure' which instantiates (i.e., don't
21272 # use $as_me), people would be surprised to read:
21273 # /* config.h. Generated by config.status. */
21274 configure_input='Generated from '`
21275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21276 `' by configure.'
21277 if test x"$ac_file" != x-; then
21278 configure_input="$ac_file. $configure_input"
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21280 $as_echo "$as_me: creating $ac_file" >&6;}
21281 fi
21282 # Neutralize special characters interpreted by sed in replacement strings.
21283 case $configure_input in #(
21284 *\&* | *\|* | *\\* )
21285 ac_sed_conf_input=`$as_echo "$configure_input" |
21286 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21287 *) ac_sed_conf_input=$configure_input;;
21288 esac
21289
21290 case $ac_tag in
21291 *:-:* | *:-) cat >"$tmp/stdin" \
21292 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21293 esac
21294 ;;
21295 esac
21296
21297 ac_dir=`$as_dirname -- "$ac_file" ||
21298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21299 X"$ac_file" : 'X\(//\)[^/]' \| \
21300 X"$ac_file" : 'X\(//\)$' \| \
21301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21302 $as_echo X"$ac_file" |
21303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21304 s//\1/
21305 q
21306 }
21307 /^X\(\/\/\)[^/].*/{
21308 s//\1/
21309 q
21310 }
21311 /^X\(\/\/\)$/{
21312 s//\1/
21313 q
21314 }
21315 /^X\(\/\).*/{
21316 s//\1/
21317 q
21318 }
21319 s/.*/./; q'`
21320 as_dir="$ac_dir"; as_fn_mkdir_p
21321 ac_builddir=.
21322
21323 case "$ac_dir" in
21324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21325 *)
21326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21327 # A ".." for each directory in $ac_dir_suffix.
21328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21329 case $ac_top_builddir_sub in
21330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21332 esac ;;
21333 esac
21334 ac_abs_top_builddir=$ac_pwd
21335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21336 # for backward compatibility:
21337 ac_top_builddir=$ac_top_build_prefix
21338
21339 case $srcdir in
21340 .) # We are building in place.
21341 ac_srcdir=.
21342 ac_top_srcdir=$ac_top_builddir_sub
21343 ac_abs_top_srcdir=$ac_pwd ;;
21344 [\\/]* | ?:[\\/]* ) # Absolute name.
21345 ac_srcdir=$srcdir$ac_dir_suffix;
21346 ac_top_srcdir=$srcdir
21347 ac_abs_top_srcdir=$srcdir ;;
21348 *) # Relative name.
21349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21350 ac_top_srcdir=$ac_top_build_prefix$srcdir
21351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21352 esac
21353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21354
21355
21356 case $ac_mode in
21357 :F)
21358 #
21359 # CONFIG_FILE
21360 #
21361
21362 case $INSTALL in
21363 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21364 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21365 esac
21366 ac_MKDIR_P=$MKDIR_P
21367 case $MKDIR_P in
21368 [\\/$]* | ?:[\\/]* ) ;;
21369 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21370 esac
21371 _ACEOF
21372
21373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21374 # If the template does not know about datarootdir, expand it.
21375 # FIXME: This hack should be removed a few years after 2.60.
21376 ac_datarootdir_hack=; ac_datarootdir_seen=
21377 ac_sed_dataroot='
21378 /datarootdir/ {
21379 p
21380 q
21381 }
21382 /@datadir@/p
21383 /@docdir@/p
21384 /@infodir@/p
21385 /@localedir@/p
21386 /@mandir@/p'
21387 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21388 *datarootdir*) ac_datarootdir_seen=yes;;
21389 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21391 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21392 _ACEOF
21393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21394 ac_datarootdir_hack='
21395 s&@datadir@&$datadir&g
21396 s&@docdir@&$docdir&g
21397 s&@infodir@&$infodir&g
21398 s&@localedir@&$localedir&g
21399 s&@mandir@&$mandir&g
21400 s&\\\${datarootdir}&$datarootdir&g' ;;
21401 esac
21402 _ACEOF
21403
21404 # Neutralize VPATH when `$srcdir' = `.'.
21405 # Shell code in configure.ac might set extrasub.
21406 # FIXME: do we really want to maintain this feature?
21407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21408 ac_sed_extra="$ac_vpsub
21409 $extrasub
21410 _ACEOF
21411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21412 :t
21413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21414 s|@configure_input@|$ac_sed_conf_input|;t t
21415 s&@top_builddir@&$ac_top_builddir_sub&;t t
21416 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21417 s&@srcdir@&$ac_srcdir&;t t
21418 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21419 s&@top_srcdir@&$ac_top_srcdir&;t t
21420 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21421 s&@builddir@&$ac_builddir&;t t
21422 s&@abs_builddir@&$ac_abs_builddir&;t t
21423 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21424 s&@INSTALL@&$ac_INSTALL&;t t
21425 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21426 $ac_datarootdir_hack
21427 "
21428 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21429 if $ac_cs_awk_getline; then
21430 $AWK -f "$tmp/subs.awk"
21431 else
21432 $AWK -f "$tmp/subs.awk" | $SHELL
21433 fi >$tmp/out \
21434 || as_fn_error "could not create $ac_file" "$LINENO" 5
21435
21436 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21437 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21438 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21440 which seems to be undefined. Please make sure it is defined." >&5
21441 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21442 which seems to be undefined. Please make sure it is defined." >&2;}
21443
21444 rm -f "$tmp/stdin"
21445 case $ac_file in
21446 -) cat "$tmp/out" && rm -f "$tmp/out";;
21447 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21448 esac \
21449 || as_fn_error "could not create $ac_file" "$LINENO" 5
21450 ;;
21451 :H)
21452 #
21453 # CONFIG_HEADER
21454 #
21455 if test x"$ac_file" != x-; then
21456 {
21457 $as_echo "/* $configure_input */" \
21458 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21459 } >"$tmp/config.h" \
21460 || as_fn_error "could not create $ac_file" "$LINENO" 5
21461 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21462 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21463 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21464 else
21465 rm -f "$ac_file"
21466 mv "$tmp/config.h" "$ac_file" \
21467 || as_fn_error "could not create $ac_file" "$LINENO" 5
21468 fi
21469 else
21470 $as_echo "/* $configure_input */" \
21471 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21472 || as_fn_error "could not create -" "$LINENO" 5
21473 fi
21474 # Compute "$ac_file"'s index in $config_headers.
21475 _am_arg="$ac_file"
21476 _am_stamp_count=1
21477 for _am_header in $config_headers :; do
21478 case $_am_header in
21479 $_am_arg | $_am_arg:* )
21480 break ;;
21481 * )
21482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21483 esac
21484 done
21485 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21486 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21487 X"$_am_arg" : 'X\(//\)[^/]' \| \
21488 X"$_am_arg" : 'X\(//\)$' \| \
21489 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21490 $as_echo X"$_am_arg" |
21491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21492 s//\1/
21493 q
21494 }
21495 /^X\(\/\/\)[^/].*/{
21496 s//\1/
21497 q
21498 }
21499 /^X\(\/\/\)$/{
21500 s//\1/
21501 q
21502 }
21503 /^X\(\/\).*/{
21504 s//\1/
21505 q
21506 }
21507 s/.*/./; q'`/stamp-h$_am_stamp_count
21508 ;;
21509
21510 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21511 $as_echo "$as_me: executing $ac_file commands" >&6;}
21512 ;;
21513 esac
21514
21515
21516 case $ac_file$ac_mode in
21517 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21518 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21519 # are listed without --file. Let's play safe and only enable the eval
21520 # if we detect the quoting.
21521 case $CONFIG_FILES in
21522 *\'*) eval set x "$CONFIG_FILES" ;;
21523 *) set x $CONFIG_FILES ;;
21524 esac
21525 shift
21526 for mf
21527 do
21528 # Strip MF so we end up with the name of the file.
21529 mf=`echo "$mf" | sed -e 's/:.*$//'`
21530 # Check whether this is an Automake generated Makefile or not.
21531 # We used to match only the files named `Makefile.in', but
21532 # some people rename them; so instead we look at the file content.
21533 # Grep'ing the first line is not enough: some people post-process
21534 # each Makefile.in and add a new line on top of each file to say so.
21535 # Grep'ing the whole file is not good either: AIX grep has a line
21536 # limit of 2048, but all sed's we know have understand at least 4000.
21537 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21538 dirpart=`$as_dirname -- "$mf" ||
21539 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21540 X"$mf" : 'X\(//\)[^/]' \| \
21541 X"$mf" : 'X\(//\)$' \| \
21542 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21543 $as_echo X"$mf" |
21544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21545 s//\1/
21546 q
21547 }
21548 /^X\(\/\/\)[^/].*/{
21549 s//\1/
21550 q
21551 }
21552 /^X\(\/\/\)$/{
21553 s//\1/
21554 q
21555 }
21556 /^X\(\/\).*/{
21557 s//\1/
21558 q
21559 }
21560 s/.*/./; q'`
21561 else
21562 continue
21563 fi
21564 # Extract the definition of DEPDIR, am__include, and am__quote
21565 # from the Makefile without running `make'.
21566 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21567 test -z "$DEPDIR" && continue
21568 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21569 test -z "am__include" && continue
21570 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21571 # When using ansi2knr, U may be empty or an underscore; expand it
21572 U=`sed -n 's/^U = //p' < "$mf"`
21573 # Find all dependency output files, they are included files with
21574 # $(DEPDIR) in their names. We invoke sed twice because it is the
21575 # simplest approach to changing $(DEPDIR) to its actual value in the
21576 # expansion.
21577 for file in `sed -n "
21578 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21579 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21580 # Make sure the directory exists.
21581 test -f "$dirpart/$file" && continue
21582 fdir=`$as_dirname -- "$file" ||
21583 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21584 X"$file" : 'X\(//\)[^/]' \| \
21585 X"$file" : 'X\(//\)$' \| \
21586 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21587 $as_echo X"$file" |
21588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21589 s//\1/
21590 q
21591 }
21592 /^X\(\/\/\)[^/].*/{
21593 s//\1/
21594 q
21595 }
21596 /^X\(\/\/\)$/{
21597 s//\1/
21598 q
21599 }
21600 /^X\(\/\).*/{
21601 s//\1/
21602 q
21603 }
21604 s/.*/./; q'`
21605 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21606 # echo "creating $dirpart/$file"
21607 echo '# dummy' > "$dirpart/$file"
21608 done
21609 done
21610 }
21611 ;;
21612 "mkdirs":C)
21613 for dir in etc lisp ; do
21614 test -d ${dir} || mkdir ${dir}
21615 done
21616 ;;
21617 "epaths":C)
21618 echo creating src/epaths.h
21619 ${MAKE-make} epaths-force
21620 ;;
21621 "gdbinit":C)
21622 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
21623 echo creating src/.gdbinit
21624 echo source $srcdir/src/.gdbinit > src/.gdbinit
21625 fi
21626 ;;
21627
21628 esac
21629 done # for ac_tag
21630
21631
21632 as_fn_exit 0
21633 _ACEOF
21634 ac_clean_files=$ac_clean_files_save
21635
21636 test $ac_write_fail = 0 ||
21637 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21638
21639
21640 # configure is writing to config.log, and then calls config.status.
21641 # config.status does its own redirection, appending to config.log.
21642 # Unfortunately, on DOS this fails, as config.log is still kept open
21643 # by configure, so config.status won't be able to write to it; its
21644 # output is simply discarded. So we exec the FD to /dev/null,
21645 # effectively closing config.log, so it can be properly (re)opened and
21646 # appended to by config.status. When coming back to configure, we
21647 # need to make the FD available again.
21648 if test "$no_create" != yes; then
21649 ac_cs_success=:
21650 ac_config_status_args=
21651 test "$silent" = yes &&
21652 ac_config_status_args="$ac_config_status_args --quiet"
21653 exec 5>/dev/null
21654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21655 exec 5>>config.log
21656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21657 # would make configure fail if this is the last instruction.
21658 $ac_cs_success || as_fn_exit $?
21659 fi
21660 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21662 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21663 fi
21664
21665