]> code.delx.au - gnu-emacs/blob - configure
Add stdint.h for MS-Windows.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_header_list=
603 gl_getopt_required=POSIX
604 gl_getopt_required=POSIX
605 ac_func_list=
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
681 NEXT_SYS_STAT_H
682 REPLACE_UTIMENSAT
683 REPLACE_STAT
684 REPLACE_MKNOD
685 REPLACE_MKFIFO
686 REPLACE_MKDIR
687 REPLACE_LSTAT
688 REPLACE_FUTIMENS
689 REPLACE_FSTATAT
690 REPLACE_FSTAT
691 HAVE_UTIMENSAT
692 HAVE_MKNODAT
693 HAVE_MKNOD
694 HAVE_MKFIFOAT
695 HAVE_MKFIFO
696 HAVE_MKDIRAT
697 HAVE_LSTAT
698 HAVE_LCHMOD
699 HAVE_FUTIMENS
700 HAVE_FSTATAT
701 HAVE_FCHMODAT
702 GNULIB_UTIMENSAT
703 GNULIB_STAT
704 GNULIB_MKNODAT
705 GNULIB_MKNOD
706 GNULIB_MKFIFOAT
707 GNULIB_MKFIFO
708 GNULIB_MKDIRAT
709 GNULIB_LSTAT
710 GNULIB_LCHMOD
711 GNULIB_FUTIMENS
712 GNULIB_FSTATAT
713 GNULIB_FCHMODAT
714 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
715 NEXT_STDLIB_H
716 STDINT_H
717 WINT_T_SUFFIX
718 WCHAR_T_SUFFIX
719 SIG_ATOMIC_T_SUFFIX
720 SIZE_T_SUFFIX
721 PTRDIFF_T_SUFFIX
722 HAVE_SIGNED_WINT_T
723 HAVE_SIGNED_WCHAR_T
724 HAVE_SIGNED_SIG_ATOMIC_T
725 BITSIZEOF_WINT_T
726 BITSIZEOF_WCHAR_T
727 BITSIZEOF_SIG_ATOMIC_T
728 BITSIZEOF_SIZE_T
729 BITSIZEOF_PTRDIFF_T
730 HAVE_SYS_BITYPES_H
731 HAVE_SYS_INTTYPES_H
732 HAVE_STDINT_H
733 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
734 NEXT_STDINT_H
735 HAVE_SYS_TYPES_H
736 HAVE_INTTYPES_H
737 HAVE_WCHAR_H
738 HAVE_UNSIGNED_LONG_LONG_INT
739 HAVE_LONG_LONG_INT
740 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
741 NEXT_STDDEF_H
742 STDDEF_H
743 HAVE_WCHAR_T
744 REPLACE_NULL
745 HAVE__BOOL
746 STDBOOL_H
747 APPLE_UNIVERSAL_BUILD
748 REPLACE_TIMEGM
749 REPLACE_NANOSLEEP
750 REPLACE_MKTIME
751 REPLACE_LOCALTIME_R
752 HAVE_TIMEGM
753 HAVE_STRPTIME
754 HAVE_NANOSLEEP
755 HAVE_DECL_LOCALTIME_R
756 GNULIB_TIME_R
757 GNULIB_TIMEGM
758 GNULIB_STRPTIME
759 GNULIB_NANOSLEEP
760 GNULIB_MKTIME
761 LTLIBINTL
762 LIBINTL
763 GETOPT_H
764 HAVE_GETOPT_H
765 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
766 NEXT_GETOPT_H
767 PRAGMA_COLUMNS
768 PRAGMA_SYSTEM_HEADER
769 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
770 INCLUDE_NEXT
771 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
772 UNISTD_H_HAVE_WINSOCK2_H
773 REPLACE_WRITE
774 REPLACE_USLEEP
775 REPLACE_UNLINKAT
776 REPLACE_UNLINK
777 REPLACE_TTYNAME_R
778 REPLACE_SYMLINK
779 REPLACE_SLEEP
780 REPLACE_RMDIR
781 REPLACE_READLINK
782 REPLACE_PWRITE
783 REPLACE_PREAD
784 REPLACE_LSEEK
785 REPLACE_LINKAT
786 REPLACE_LINK
787 REPLACE_LCHOWN
788 REPLACE_GETPAGESIZE
789 REPLACE_GETGROUPS
790 REPLACE_GETLOGIN_R
791 REPLACE_GETDOMAINNAME
792 REPLACE_GETCWD
793 REPLACE_FCHOWNAT
794 REPLACE_DUP2
795 REPLACE_DUP
796 REPLACE_CLOSE
797 REPLACE_CHOWN
798 HAVE_SYS_PARAM_H
799 HAVE_OS_H
800 HAVE_DECL_TTYNAME_R
801 HAVE_DECL_GETUSERSHELL
802 HAVE_DECL_GETPAGESIZE
803 HAVE_DECL_GETLOGIN_R
804 HAVE_DECL_GETDOMAINNAME
805 HAVE_DECL_FCHDIR
806 HAVE_DECL_ENVIRON
807 HAVE_USLEEP
808 HAVE_UNLINKAT
809 HAVE_SYMLINKAT
810 HAVE_SYMLINK
811 HAVE_SLEEP
812 HAVE_READLINKAT
813 HAVE_READLINK
814 HAVE_PWRITE
815 HAVE_PREAD
816 HAVE_PIPE2
817 HAVE_PIPE
818 HAVE_LINKAT
819 HAVE_LINK
820 HAVE_LCHOWN
821 HAVE_GETPAGESIZE
822 HAVE_GETLOGIN
823 HAVE_GETHOSTNAME
824 HAVE_GETGROUPS
825 HAVE_GETDTABLESIZE
826 HAVE_FTRUNCATE
827 HAVE_FSYNC
828 HAVE_FCHOWNAT
829 HAVE_FCHDIR
830 HAVE_FACCESSAT
831 HAVE_EUIDACCESS
832 HAVE_DUP3
833 HAVE_DUP2
834 HAVE_CHOWN
835 GNULIB_WRITE
836 GNULIB_USLEEP
837 GNULIB_UNLINKAT
838 GNULIB_UNLINK
839 GNULIB_UNISTD_H_SIGPIPE
840 GNULIB_UNISTD_H_GETOPT
841 GNULIB_TTYNAME_R
842 GNULIB_SYMLINKAT
843 GNULIB_SYMLINK
844 GNULIB_SLEEP
845 GNULIB_RMDIR
846 GNULIB_READLINKAT
847 GNULIB_READLINK
848 GNULIB_PWRITE
849 GNULIB_PREAD
850 GNULIB_PIPE2
851 GNULIB_PIPE
852 GNULIB_LSEEK
853 GNULIB_LINKAT
854 GNULIB_LINK
855 GNULIB_LCHOWN
856 GNULIB_GETUSERSHELL
857 GNULIB_GETPAGESIZE
858 GNULIB_GETLOGIN_R
859 GNULIB_GETLOGIN
860 GNULIB_GETHOSTNAME
861 GNULIB_GETGROUPS
862 GNULIB_GETDTABLESIZE
863 GNULIB_GETDOMAINNAME
864 GNULIB_GETCWD
865 GNULIB_FTRUNCATE
866 GNULIB_FSYNC
867 GNULIB_FCHOWNAT
868 GNULIB_FCHDIR
869 GNULIB_FACCESSAT
870 GNULIB_EUIDACCESS
871 GNULIB_ENVIRON
872 GNULIB_DUP3
873 GNULIB_DUP2
874 GNULIB_CLOSE
875 GNULIB_CHOWN
876 GETLOADAVG_LIBS
877 REPLACE_UNSETENV
878 REPLACE_STRTOD
879 REPLACE_SETENV
880 REPLACE_REALPATH
881 REPLACE_REALLOC
882 REPLACE_PUTENV
883 REPLACE_MKSTEMP
884 REPLACE_MALLOC
885 REPLACE_CANONICALIZE_FILE_NAME
886 REPLACE_CALLOC
887 HAVE_DECL_UNSETENV
888 HAVE_UNLOCKPT
889 HAVE_SYS_LOADAVG_H
890 HAVE_STRUCT_RANDOM_DATA
891 HAVE_STRTOULL
892 HAVE_STRTOLL
893 HAVE_STRTOD
894 HAVE_DECL_SETENV
895 HAVE_SETENV
896 HAVE_RPMATCH
897 HAVE_REALPATH
898 HAVE_RANDOM_R
899 HAVE_RANDOM_H
900 HAVE_PTSNAME
901 HAVE_MKSTEMPS
902 HAVE_MKSTEMP
903 HAVE_MKOSTEMPS
904 HAVE_MKOSTEMP
905 HAVE_MKDTEMP
906 HAVE_GRANTPT
907 HAVE_GETSUBOPT
908 HAVE_DECL_GETLOADAVG
909 HAVE_CANONICALIZE_FILE_NAME
910 HAVE_ATOLL
911 HAVE__EXIT
912 GNULIB_UNSETENV
913 GNULIB_UNLOCKPT
914 GNULIB_SYSTEM_POSIX
915 GNULIB_STRTOULL
916 GNULIB_STRTOLL
917 GNULIB_STRTOD
918 GNULIB_SETENV
919 GNULIB_RPMATCH
920 GNULIB_REALPATH
921 GNULIB_REALLOC_POSIX
922 GNULIB_RANDOM_R
923 GNULIB_PUTENV
924 GNULIB_PTSNAME
925 GNULIB_MKSTEMPS
926 GNULIB_MKSTEMP
927 GNULIB_MKOSTEMPS
928 GNULIB_MKOSTEMP
929 GNULIB_MKDTEMP
930 GNULIB_MALLOC_POSIX
931 GNULIB_GRANTPT
932 GNULIB_GETSUBOPT
933 GNULIB_GETLOADAVG
934 GNULIB_CANONICALIZE_FILE_NAME
935 GNULIB_CALLOC_POSIX
936 GNULIB_ATOLL
937 GNULIB__EXIT
938 GL_COND_LIBTOOL_FALSE
939 GL_COND_LIBTOOL_TRUE
940 BLESSMAIL_TARGET
941 LIBS_MAIL
942 liblockfile
943 ALLOCA
944 LIBXML2_LIBS
945 LIBXML2_CFLAGS
946 LIBXSM
947 LIBGPM
948 LIBGIF
949 LIBTIFF
950 LIBPNG
951 LIBJPEG
952 LIBXPM
953 FREETYPE_LIBS
954 FREETYPE_CFLAGS
955 M17N_FLT_LIBS
956 M17N_FLT_CFLAGS
957 LIBOTF_LIBS
958 LIBOTF_CFLAGS
959 XFT_LIBS
960 XFT_CFLAGS
961 FONTCONFIG_LIBS
962 FONTCONFIG_CFLAGS
963 LIBXMU
964 LIBXTR6
965 LIBGNUTLS_LIBS
966 LIBGNUTLS_CFLAGS
967 LIBSELINUX_LIBS
968 GCONF_LIBS
969 GCONF_CFLAGS
970 DBUS_OBJ
971 DBUS_LIBS
972 DBUS_CFLAGS
973 GTK_OBJ
974 GTK_LIBS
975 GTK_CFLAGS
976 IMAGEMAGICK_LIBS
977 IMAGEMAGICK_CFLAGS
978 RSVG_LIBS
979 RSVG_CFLAGS
980 VMLIMIT_OBJ
981 GMALLOC_OBJ
982 HAVE_XSERVER
983 LIB_STANDARD
984 NS_SUPPORT
985 NS_OBJC_OBJ
986 NS_OBJ
987 TEMACS_LDFLAGS2
988 LD_SWITCH_X_SITE_AUX_RPATH
989 LD_SWITCH_X_SITE_AUX
990 XMKMF
991 DEPFLAGS
992 MKDEPDIR
993 CFLAGS_SOUND
994 ALSA_LIBS
995 ALSA_CFLAGS
996 PKG_CONFIG
997 LIBSOUND
998 START_FILES
999 LIB_MATH
1000 CRT_DIR
1001 LIBS_SYSTEM
1002 C_SWITCH_SYSTEM
1003 UNEXEC_OBJ
1004 C_SWITCH_MACHINE
1005 LD_SWITCH_SYSTEM
1006 CANNOT_DUMP
1007 HAVE_MAKEINFO
1008 GZIP_PROG
1009 INSTALL_INFO
1010 C_WARNINGS_SWITCH
1011 EGREP
1012 GREP
1013 CPP
1014 RANLIB
1015 am__fastdepCC_FALSE
1016 am__fastdepCC_TRUE
1017 CCDEPMODE
1018 AMDEPBACKSLASH
1019 AMDEP_FALSE
1020 AMDEP_TRUE
1021 am__quote
1022 am__include
1023 DEPDIR
1024 OBJEXT
1025 EXEEXT
1026 ac_ct_CC
1027 CPPFLAGS
1028 LDFLAGS
1029 CFLAGS
1030 CC
1031 host_os
1032 host_vendor
1033 host_cpu
1034 host
1035 build_os
1036 build_vendor
1037 build_cpu
1038 build
1039 PROFILING_CFLAGS
1040 MAINT
1041 GZIP_INFO
1042 am__untar
1043 am__tar
1044 AMTAR
1045 am__leading_dot
1046 SET_MAKE
1047 AWK
1048 mkdir_p
1049 MKDIR_P
1050 INSTALL_STRIP_PROGRAM
1051 STRIP
1052 install_sh
1053 MAKEINFO
1054 AUTOHEADER
1055 AUTOMAKE
1056 AUTOCONF
1057 ACLOCAL
1058 VERSION
1059 PACKAGE
1060 CYGPATH_W
1061 am__isrc
1062 INSTALL_DATA
1063 INSTALL_SCRIPT
1064 INSTALL_PROGRAM
1065 target_alias
1066 host_alias
1067 build_alias
1068 LIBS
1069 ECHO_T
1070 ECHO_N
1071 ECHO_C
1072 DEFS
1073 mandir
1074 localedir
1075 libdir
1076 psdir
1077 pdfdir
1078 dvidir
1079 htmldir
1080 infodir
1081 docdir
1082 oldincludedir
1083 includedir
1084 localstatedir
1085 sharedstatedir
1086 sysconfdir
1087 datadir
1088 datarootdir
1089 libexecdir
1090 sbindir
1091 bindir
1092 program_transform_name
1093 prefix
1094 exec_prefix
1095 PACKAGE_URL
1096 PACKAGE_BUGREPORT
1097 PACKAGE_STRING
1098 PACKAGE_VERSION
1099 PACKAGE_TARNAME
1100 PACKAGE_NAME
1101 PATH_SEPARATOR
1102 SHELL'
1103 ac_subst_files='deps_frag
1104 ns_frag'
1105 ac_user_opts='
1106 enable_option_checking
1107 with_pop
1108 with_kerberos
1109 with_kerberos5
1110 with_hesiod
1111 with_mmdf
1112 with_mail_unlink
1113 with_mailhost
1114 with_sound
1115 with_sync_input
1116 with_x_toolkit
1117 with_xpm
1118 with_jpeg
1119 with_tiff
1120 with_gif
1121 with_png
1122 with_rsvg
1123 with_xml2
1124 with_imagemagick
1125 with_xft
1126 with_libotf
1127 with_m17n_flt
1128 with_toolkit_scroll_bars
1129 with_xaw3d
1130 with_xim
1131 with_ns
1132 with_gpm
1133 with_dbus
1134 with_gconf
1135 with_selinux
1136 with_gnutls
1137 with_makeinfo
1138 with_compress_info
1139 with_pkg_config_prog
1140 with_crt_dir
1141 with_gameuser
1142 with_gnustep_conf
1143 enable_ns_self_contained
1144 enable_asserts
1145 enable_maintainer_mode
1146 enable_locallisppath
1147 enable_checking
1148 enable_use_lisp_union_type
1149 enable_profiling
1150 enable_autodepend
1151 enable_dependency_tracking
1152 enable_largefile
1153 with_x
1154 '
1155 ac_precious_vars='build_alias
1156 host_alias
1157 target_alias
1158 CC
1159 CFLAGS
1160 LDFLAGS
1161 LIBS
1162 CPPFLAGS
1163 CPP
1164 CPPFLAGS
1165 CPP
1166 CPPFLAGS
1167 XMKMF'
1168
1169
1170 # Initialize some variables set by options.
1171 ac_init_help=
1172 ac_init_version=false
1173 ac_unrecognized_opts=
1174 ac_unrecognized_sep=
1175 # The variables have the same names as the options, with
1176 # dashes changed to underlines.
1177 cache_file=/dev/null
1178 exec_prefix=NONE
1179 no_create=
1180 no_recursion=
1181 prefix=NONE
1182 program_prefix=NONE
1183 program_suffix=NONE
1184 program_transform_name=s,x,x,
1185 silent=
1186 site=
1187 srcdir=
1188 verbose=
1189 x_includes=NONE
1190 x_libraries=NONE
1191
1192 # Installation directory options.
1193 # These are left unexpanded so users can "make install exec_prefix=/foo"
1194 # and all the variables that are supposed to be based on exec_prefix
1195 # by default will actually change.
1196 # Use braces instead of parens because sh, perl, etc. also accept them.
1197 # (The list follows the same order as the GNU Coding Standards.)
1198 bindir='${exec_prefix}/bin'
1199 sbindir='${exec_prefix}/sbin'
1200 libexecdir='${exec_prefix}/libexec'
1201 datarootdir='${prefix}/share'
1202 datadir='${datarootdir}'
1203 sysconfdir='${prefix}/etc'
1204 sharedstatedir='${prefix}/com'
1205 localstatedir='${prefix}/var'
1206 includedir='${prefix}/include'
1207 oldincludedir='/usr/include'
1208 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1209 infodir='${datarootdir}/info'
1210 htmldir='${docdir}'
1211 dvidir='${docdir}'
1212 pdfdir='${docdir}'
1213 psdir='${docdir}'
1214 libdir='${exec_prefix}/lib'
1215 localedir='${datarootdir}/locale'
1216 mandir='${datarootdir}/man'
1217
1218 ac_prev=
1219 ac_dashdash=
1220 for ac_option
1221 do
1222 # If the previous option needs an argument, assign it.
1223 if test -n "$ac_prev"; then
1224 eval $ac_prev=\$ac_option
1225 ac_prev=
1226 continue
1227 fi
1228
1229 case $ac_option in
1230 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1231 *=) ac_optarg= ;;
1232 *) ac_optarg=yes ;;
1233 esac
1234
1235 # Accept the important Cygnus configure options, so we can diagnose typos.
1236
1237 case $ac_dashdash$ac_option in
1238 --)
1239 ac_dashdash=yes ;;
1240
1241 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1242 ac_prev=bindir ;;
1243 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1244 bindir=$ac_optarg ;;
1245
1246 -build | --build | --buil | --bui | --bu)
1247 ac_prev=build_alias ;;
1248 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1249 build_alias=$ac_optarg ;;
1250
1251 -cache-file | --cache-file | --cache-fil | --cache-fi \
1252 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1253 ac_prev=cache_file ;;
1254 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1255 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1256 cache_file=$ac_optarg ;;
1257
1258 --config-cache | -C)
1259 cache_file=config.cache ;;
1260
1261 -datadir | --datadir | --datadi | --datad)
1262 ac_prev=datadir ;;
1263 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1264 datadir=$ac_optarg ;;
1265
1266 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1267 | --dataroo | --dataro | --datar)
1268 ac_prev=datarootdir ;;
1269 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1270 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1271 datarootdir=$ac_optarg ;;
1272
1273 -disable-* | --disable-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error $? "invalid feature name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282 "enable_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval enable_$ac_useropt=no ;;
1288
1289 -docdir | --docdir | --docdi | --doc | --do)
1290 ac_prev=docdir ;;
1291 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1292 docdir=$ac_optarg ;;
1293
1294 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1295 ac_prev=dvidir ;;
1296 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1297 dvidir=$ac_optarg ;;
1298
1299 -enable-* | --enable-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid feature name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1307 *"
1308 "enable_$ac_useropt"
1309 "*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval enable_$ac_useropt=\$ac_optarg ;;
1314
1315 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1316 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1317 | --exec | --exe | --ex)
1318 ac_prev=exec_prefix ;;
1319 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1320 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1321 | --exec=* | --exe=* | --ex=*)
1322 exec_prefix=$ac_optarg ;;
1323
1324 -gas | --gas | --ga | --g)
1325 # Obsolete; use --with-gas.
1326 with_gas=yes ;;
1327
1328 -help | --help | --hel | --he | -h)
1329 ac_init_help=long ;;
1330 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1331 ac_init_help=recursive ;;
1332 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1333 ac_init_help=short ;;
1334
1335 -host | --host | --hos | --ho)
1336 ac_prev=host_alias ;;
1337 -host=* | --host=* | --hos=* | --ho=*)
1338 host_alias=$ac_optarg ;;
1339
1340 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1341 ac_prev=htmldir ;;
1342 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1343 | --ht=*)
1344 htmldir=$ac_optarg ;;
1345
1346 -includedir | --includedir | --includedi | --included | --include \
1347 | --includ | --inclu | --incl | --inc)
1348 ac_prev=includedir ;;
1349 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1350 | --includ=* | --inclu=* | --incl=* | --inc=*)
1351 includedir=$ac_optarg ;;
1352
1353 -infodir | --infodir | --infodi | --infod | --info | --inf)
1354 ac_prev=infodir ;;
1355 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1356 infodir=$ac_optarg ;;
1357
1358 -libdir | --libdir | --libdi | --libd)
1359 ac_prev=libdir ;;
1360 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1361 libdir=$ac_optarg ;;
1362
1363 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1364 | --libexe | --libex | --libe)
1365 ac_prev=libexecdir ;;
1366 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1367 | --libexe=* | --libex=* | --libe=*)
1368 libexecdir=$ac_optarg ;;
1369
1370 -localedir | --localedir | --localedi | --localed | --locale)
1371 ac_prev=localedir ;;
1372 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1373 localedir=$ac_optarg ;;
1374
1375 -localstatedir | --localstatedir | --localstatedi | --localstated \
1376 | --localstate | --localstat | --localsta | --localst | --locals)
1377 ac_prev=localstatedir ;;
1378 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1379 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1380 localstatedir=$ac_optarg ;;
1381
1382 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1383 ac_prev=mandir ;;
1384 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1385 mandir=$ac_optarg ;;
1386
1387 -nfp | --nfp | --nf)
1388 # Obsolete; use --without-fp.
1389 with_fp=no ;;
1390
1391 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1392 | --no-cr | --no-c | -n)
1393 no_create=yes ;;
1394
1395 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1396 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1397 no_recursion=yes ;;
1398
1399 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1400 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1401 | --oldin | --oldi | --old | --ol | --o)
1402 ac_prev=oldincludedir ;;
1403 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1404 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1405 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1406 oldincludedir=$ac_optarg ;;
1407
1408 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1409 ac_prev=prefix ;;
1410 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1411 prefix=$ac_optarg ;;
1412
1413 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1414 | --program-pre | --program-pr | --program-p)
1415 ac_prev=program_prefix ;;
1416 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1417 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1418 program_prefix=$ac_optarg ;;
1419
1420 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1421 | --program-suf | --program-su | --program-s)
1422 ac_prev=program_suffix ;;
1423 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1424 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1425 program_suffix=$ac_optarg ;;
1426
1427 -program-transform-name | --program-transform-name \
1428 | --program-transform-nam | --program-transform-na \
1429 | --program-transform-n | --program-transform- \
1430 | --program-transform | --program-transfor \
1431 | --program-transfo | --program-transf \
1432 | --program-trans | --program-tran \
1433 | --progr-tra | --program-tr | --program-t)
1434 ac_prev=program_transform_name ;;
1435 -program-transform-name=* | --program-transform-name=* \
1436 | --program-transform-nam=* | --program-transform-na=* \
1437 | --program-transform-n=* | --program-transform-=* \
1438 | --program-transform=* | --program-transfor=* \
1439 | --program-transfo=* | --program-transf=* \
1440 | --program-trans=* | --program-tran=* \
1441 | --progr-tra=* | --program-tr=* | --program-t=*)
1442 program_transform_name=$ac_optarg ;;
1443
1444 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1445 ac_prev=pdfdir ;;
1446 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1447 pdfdir=$ac_optarg ;;
1448
1449 -psdir | --psdir | --psdi | --psd | --ps)
1450 ac_prev=psdir ;;
1451 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1452 psdir=$ac_optarg ;;
1453
1454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1455 | -silent | --silent | --silen | --sile | --sil)
1456 silent=yes ;;
1457
1458 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1459 ac_prev=sbindir ;;
1460 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1461 | --sbi=* | --sb=*)
1462 sbindir=$ac_optarg ;;
1463
1464 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1465 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1466 | --sharedst | --shareds | --shared | --share | --shar \
1467 | --sha | --sh)
1468 ac_prev=sharedstatedir ;;
1469 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1470 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1471 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1472 | --sha=* | --sh=*)
1473 sharedstatedir=$ac_optarg ;;
1474
1475 -site | --site | --sit)
1476 ac_prev=site ;;
1477 -site=* | --site=* | --sit=*)
1478 site=$ac_optarg ;;
1479
1480 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1481 ac_prev=srcdir ;;
1482 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1483 srcdir=$ac_optarg ;;
1484
1485 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1486 | --syscon | --sysco | --sysc | --sys | --sy)
1487 ac_prev=sysconfdir ;;
1488 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1489 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1490 sysconfdir=$ac_optarg ;;
1491
1492 -target | --target | --targe | --targ | --tar | --ta | --t)
1493 ac_prev=target_alias ;;
1494 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1495 target_alias=$ac_optarg ;;
1496
1497 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1498 verbose=yes ;;
1499
1500 -version | --version | --versio | --versi | --vers | -V)
1501 ac_init_version=: ;;
1502
1503 -with-* | --with-*)
1504 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1505 # Reject names that are not valid shell variable names.
1506 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1507 as_fn_error $? "invalid package name: $ac_useropt"
1508 ac_useropt_orig=$ac_useropt
1509 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510 case $ac_user_opts in
1511 *"
1512 "with_$ac_useropt"
1513 "*) ;;
1514 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1515 ac_unrecognized_sep=', ';;
1516 esac
1517 eval with_$ac_useropt=\$ac_optarg ;;
1518
1519 -without-* | --without-*)
1520 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1521 # Reject names that are not valid shell variable names.
1522 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523 as_fn_error $? "invalid package name: $ac_useropt"
1524 ac_useropt_orig=$ac_useropt
1525 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1526 case $ac_user_opts in
1527 *"
1528 "with_$ac_useropt"
1529 "*) ;;
1530 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1531 ac_unrecognized_sep=', ';;
1532 esac
1533 eval with_$ac_useropt=no ;;
1534
1535 --x)
1536 # Obsolete; use --with-x.
1537 with_x=yes ;;
1538
1539 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1540 | --x-incl | --x-inc | --x-in | --x-i)
1541 ac_prev=x_includes ;;
1542 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1543 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1544 x_includes=$ac_optarg ;;
1545
1546 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1547 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1548 ac_prev=x_libraries ;;
1549 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1550 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1551 x_libraries=$ac_optarg ;;
1552
1553 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1554 Try \`$0 --help' for more information"
1555 ;;
1556
1557 *=*)
1558 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1559 # Reject names that are not valid shell variable names.
1560 case $ac_envvar in #(
1561 '' | [0-9]* | *[!_$as_cr_alnum]* )
1562 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1563 esac
1564 eval $ac_envvar=\$ac_optarg
1565 export $ac_envvar ;;
1566
1567 *)
1568 # FIXME: should be removed in autoconf 3.0.
1569 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1570 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1571 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1572 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1573 ;;
1574
1575 esac
1576 done
1577
1578 if test -n "$ac_prev"; then
1579 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1580 as_fn_error $? "missing argument to $ac_option"
1581 fi
1582
1583 if test -n "$ac_unrecognized_opts"; then
1584 case $enable_option_checking in
1585 no) ;;
1586 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1587 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1588 esac
1589 fi
1590
1591 # Check all directory arguments for consistency.
1592 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1593 datadir sysconfdir sharedstatedir localstatedir includedir \
1594 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1595 libdir localedir mandir
1596 do
1597 eval ac_val=\$$ac_var
1598 # Remove trailing slashes.
1599 case $ac_val in
1600 */ )
1601 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1602 eval $ac_var=\$ac_val;;
1603 esac
1604 # Be sure to have absolute directory names.
1605 case $ac_val in
1606 [\\/$]* | ?:[\\/]* ) continue;;
1607 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1608 esac
1609 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1610 done
1611
1612 # There might be people who depend on the old broken behavior: `$host'
1613 # used to hold the argument of --host etc.
1614 # FIXME: To remove some day.
1615 build=$build_alias
1616 host=$host_alias
1617 target=$target_alias
1618
1619 # FIXME: To remove some day.
1620 if test "x$host_alias" != x; then
1621 if test "x$build_alias" = x; then
1622 cross_compiling=maybe
1623 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1624 If a cross compiler is detected then cross compile mode will be used" >&2
1625 elif test "x$build_alias" != "x$host_alias"; then
1626 cross_compiling=yes
1627 fi
1628 fi
1629
1630 ac_tool_prefix=
1631 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1632
1633 test "$silent" = yes && exec 6>/dev/null
1634
1635
1636 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1637 ac_ls_di=`ls -di .` &&
1638 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1639 as_fn_error $? "working directory cannot be determined"
1640 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1641 as_fn_error $? "pwd does not report name of working directory"
1642
1643
1644 # Find the source files, if location was not specified.
1645 if test -z "$srcdir"; then
1646 ac_srcdir_defaulted=yes
1647 # Try the directory containing this script, then the parent directory.
1648 ac_confdir=`$as_dirname -- "$as_myself" ||
1649 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1650 X"$as_myself" : 'X\(//\)[^/]' \| \
1651 X"$as_myself" : 'X\(//\)$' \| \
1652 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1653 $as_echo X"$as_myself" |
1654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1655 s//\1/
1656 q
1657 }
1658 /^X\(\/\/\)[^/].*/{
1659 s//\1/
1660 q
1661 }
1662 /^X\(\/\/\)$/{
1663 s//\1/
1664 q
1665 }
1666 /^X\(\/\).*/{
1667 s//\1/
1668 q
1669 }
1670 s/.*/./; q'`
1671 srcdir=$ac_confdir
1672 if test ! -r "$srcdir/$ac_unique_file"; then
1673 srcdir=..
1674 fi
1675 else
1676 ac_srcdir_defaulted=no
1677 fi
1678 if test ! -r "$srcdir/$ac_unique_file"; then
1679 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1680 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1681 fi
1682 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1683 ac_abs_confdir=`(
1684 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1685 pwd)`
1686 # When building in place, set srcdir=.
1687 if test "$ac_abs_confdir" = "$ac_pwd"; then
1688 srcdir=.
1689 fi
1690 # Remove unnecessary trailing slashes from srcdir.
1691 # Double slashes in file names in object file debugging info
1692 # mess up M-x gdb in Emacs.
1693 case $srcdir in
1694 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1695 esac
1696 for ac_var in $ac_precious_vars; do
1697 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1698 eval ac_env_${ac_var}_value=\$${ac_var}
1699 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1700 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1701 done
1702
1703 #
1704 # Report the --help message.
1705 #
1706 if test "$ac_init_help" = "long"; then
1707 # Omit some internal or obsolete options to make the list less imposing.
1708 # This message is too long to be a string in the A/UX 3.1 sh.
1709 cat <<_ACEOF
1710 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1711
1712 Usage: $0 [OPTION]... [VAR=VALUE]...
1713
1714 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1715 VAR=VALUE. See below for descriptions of some of the useful variables.
1716
1717 Defaults for the options are specified in brackets.
1718
1719 Configuration:
1720 -h, --help display this help and exit
1721 --help=short display options specific to this package
1722 --help=recursive display the short help of all the included packages
1723 -V, --version display version information and exit
1724 -q, --quiet, --silent do not print \`checking ...' messages
1725 --cache-file=FILE cache test results in FILE [disabled]
1726 -C, --config-cache alias for \`--cache-file=config.cache'
1727 -n, --no-create do not create output files
1728 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1729
1730 Installation directories:
1731 --prefix=PREFIX install architecture-independent files in PREFIX
1732 [$ac_default_prefix]
1733 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1734 [PREFIX]
1735
1736 By default, \`make install' will install all the files in
1737 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1738 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1739 for instance \`--prefix=\$HOME'.
1740
1741 For better control, use the options below.
1742
1743 Fine tuning of the installation directories:
1744 --bindir=DIR user executables [EPREFIX/bin]
1745 --sbindir=DIR system admin executables [EPREFIX/sbin]
1746 --libexecdir=DIR program executables [EPREFIX/libexec]
1747 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1748 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1749 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1750 --libdir=DIR object code libraries [EPREFIX/lib]
1751 --includedir=DIR C header files [PREFIX/include]
1752 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1753 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1754 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1755 --infodir=DIR info documentation [DATAROOTDIR/info]
1756 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1757 --mandir=DIR man documentation [DATAROOTDIR/man]
1758 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1759 --htmldir=DIR html documentation [DOCDIR]
1760 --dvidir=DIR dvi documentation [DOCDIR]
1761 --pdfdir=DIR pdf documentation [DOCDIR]
1762 --psdir=DIR ps documentation [DOCDIR]
1763 _ACEOF
1764
1765 cat <<\_ACEOF
1766
1767 Program names:
1768 --program-prefix=PREFIX prepend PREFIX to installed program names
1769 --program-suffix=SUFFIX append SUFFIX to installed program names
1770 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1771
1772 X features:
1773 --x-includes=DIR X include files are in DIR
1774 --x-libraries=DIR X library files are in DIR
1775
1776 System types:
1777 --build=BUILD configure for building on BUILD [guessed]
1778 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1779 _ACEOF
1780 fi
1781
1782 if test -n "$ac_init_help"; then
1783 case $ac_init_help in
1784 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1785 esac
1786 cat <<\_ACEOF
1787
1788 Optional Features:
1789 --disable-option-checking ignore unrecognized --enable/--with options
1790 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1791 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1792 --disable-ns-self-contained
1793 disable self contained build under NeXTstep
1794 --enable-asserts compile code with asserts enabled
1795 --enable-maintainer-mode
1796 enable make rules and dependencies not useful (and
1797 sometimes confusing) to the casual installer
1798 --enable-locallisppath=PATH
1799 directories Emacs should search for lisp files
1800 specific to this site
1801 --enable-checking[=LIST]
1802 enable expensive run-time checks. With LIST, enable
1803 only specific categories of checks. Categories are:
1804 all,yes,no. Flags are: stringbytes, stringoverrun,
1805 stringfreelist, xmallocoverrun, conslist
1806 --enable-use-lisp-union-type
1807 use a union for the Lisp_Object data type. This is
1808 only useful for development for catching certain
1809 types of bugs.
1810 --enable-profiling build emacs with profiling support. This might not
1811 work on all platforms
1812 --enable-autodepend automatically generate dependencies to .h-files.
1813 Requires GNU Make and Gcc. Enabled if GNU Make and
1814 Gcc is found
1815 --disable-dependency-tracking speeds up one-time build
1816 --enable-dependency-tracking do not reject slow dependency extractors
1817 --disable-largefile omit support for large files
1818
1819 Optional Packages:
1820 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1821 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1822 --without-pop don't support POP mail retrieval with movemail
1823 --with-kerberos support Kerberos-authenticated POP
1824 --with-kerberos5 support Kerberos version 5 authenticated POP
1825 --with-hesiod support Hesiod to get the POP server host
1826 --with-mmdf support MMDF mailboxes
1827 --with-mail-unlink unlink, rather than empty, mail spool after reading
1828 --with-mailhost=HOSTNAME
1829 string giving default POP mail host
1830 --without-sound don't compile with sound support
1831 --without-sync-input process async input synchronously
1832 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1833 lucid or athena, motif, no)
1834 --without-xpm don't compile with XPM image support
1835 --without-jpeg don't compile with JPEG image support
1836 --without-tiff don't compile with TIFF image support
1837 --without-gif don't compile with GIF image support
1838 --without-png don't compile with PNG image support
1839 --without-rsvg don't compile with SVG image support
1840 --without-xml2 don't compile with XML parsing support
1841 --without-imagemagick don't compile with ImageMagick image support
1842 --without-xft don't use XFT for anti aliased fonts
1843 --without-libotf don't use libotf for OpenType font support
1844 --without-m17n-flt don't use m17n-flt for text shaping
1845 --without-toolkit-scroll-bars
1846 don't use Motif or Xaw3d scroll bars
1847 --without-xaw3d don't use Xaw3d
1848 --without-xim don't use X11 XIM
1849 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1850 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1851 console
1852 --without-dbus don't compile with D-Bus support
1853 --without-gconf don't compile with GConf support
1854 --without-selinux don't compile with SELinux support
1855 --without-gnutls don't use -lgnutls for SSL/TLS support
1856 --without-makeinfo don't require makeinfo for building manuals
1857 --without-compress-info don't compress the installed Info pages
1858 --with-pkg-config-prog=PATH
1859 path to pkg-config for finding GTK and librsvg
1860 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1861 /usr/lib, or /usr/lib64 on some platforms.
1862 --with-gameuser=USER user for shared game score files
1863 --with-gnustep-conf=PATH
1864 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1865 or /etc/GNUstep/GNUstep.conf
1866 --with-x use the X Window System
1867
1868 Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
1874 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1875 you have headers in a nonstandard directory <include dir>
1876 CPP C preprocessor
1877 XMKMF Path to xmkmf, Makefile generator for X Window System
1878
1879 Use these variables to override the choices made by `configure' or to help
1880 it to find libraries and programs with nonstandard names/locations.
1881
1882 Report bugs to the package provider.
1883 _ACEOF
1884 ac_status=$?
1885 fi
1886
1887 if test "$ac_init_help" = "recursive"; then
1888 # If there are subdirs, report their specific --help.
1889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1890 test -d "$ac_dir" ||
1891 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1892 continue
1893 ac_builddir=.
1894
1895 case "$ac_dir" in
1896 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897 *)
1898 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1899 # A ".." for each directory in $ac_dir_suffix.
1900 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1901 case $ac_top_builddir_sub in
1902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1904 esac ;;
1905 esac
1906 ac_abs_top_builddir=$ac_pwd
1907 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1908 # for backward compatibility:
1909 ac_top_builddir=$ac_top_build_prefix
1910
1911 case $srcdir in
1912 .) # We are building in place.
1913 ac_srcdir=.
1914 ac_top_srcdir=$ac_top_builddir_sub
1915 ac_abs_top_srcdir=$ac_pwd ;;
1916 [\\/]* | ?:[\\/]* ) # Absolute name.
1917 ac_srcdir=$srcdir$ac_dir_suffix;
1918 ac_top_srcdir=$srcdir
1919 ac_abs_top_srcdir=$srcdir ;;
1920 *) # Relative name.
1921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1922 ac_top_srcdir=$ac_top_build_prefix$srcdir
1923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1924 esac
1925 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1926
1927 cd "$ac_dir" || { ac_status=$?; continue; }
1928 # Check for guested configure.
1929 if test -f "$ac_srcdir/configure.gnu"; then
1930 echo &&
1931 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1932 elif test -f "$ac_srcdir/configure"; then
1933 echo &&
1934 $SHELL "$ac_srcdir/configure" --help=recursive
1935 else
1936 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1937 fi || ac_status=$?
1938 cd "$ac_pwd" || { ac_status=$?; break; }
1939 done
1940 fi
1941
1942 test -n "$ac_init_help" && exit $ac_status
1943 if $ac_init_version; then
1944 cat <<\_ACEOF
1945 emacs configure 24.0.50
1946 generated by GNU Autoconf 2.68
1947
1948 Copyright (C) 2010 Free Software Foundation, Inc.
1949 This configure script is free software; the Free Software Foundation
1950 gives unlimited permission to copy, distribute and modify it.
1951 _ACEOF
1952 exit
1953 fi
1954
1955 ## ------------------------ ##
1956 ## Autoconf initialization. ##
1957 ## ------------------------ ##
1958
1959 # ac_fn_c_try_compile LINENO
1960 # --------------------------
1961 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_c_try_compile ()
1963 {
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 rm -f conftest.$ac_objext
1966 if { { ac_try="$ac_compile"
1967 case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970 esac
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_compile") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1979 fi
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && {
1982 test -z "$ac_c_werror_flag" ||
1983 test ! -s conftest.err
1984 } && test -s conftest.$ac_objext; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991 fi
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 as_fn_set_status $ac_retval
1994
1995 } # ac_fn_c_try_compile
1996
1997 # ac_fn_c_try_cpp LINENO
1998 # ----------------------
1999 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2000 ac_fn_c_try_cpp ()
2001 {
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_cpp conftest.$ac_ext"
2004 case "(($ac_try" in
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2007 esac
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2011 ac_status=$?
2012 if test -s conftest.err; then
2013 grep -v '^ *+' conftest.err >conftest.er1
2014 cat conftest.er1 >&5
2015 mv -f conftest.er1 conftest.err
2016 fi
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } > conftest.i && {
2019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2020 test ! -s conftest.err
2021 }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=1
2028 fi
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2031
2032 } # ac_fn_c_try_cpp
2033
2034 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2035 # -------------------------------------------------------
2036 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2037 # the include files in INCLUDES and setting the cache variable VAR
2038 # accordingly.
2039 ac_fn_c_check_header_mongrel ()
2040 {
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 if eval \${$3+:} false; then :
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 fi
2048 eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051 else
2052 # Is the header compilable?
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2054 $as_echo_n "checking $2 usability... " >&6; }
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2057 $4
2058 #include <$2>
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_header_compiler=yes
2062 else
2063 ac_header_compiler=no
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2067 $as_echo "$ac_header_compiler" >&6; }
2068
2069 # Is the header present?
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2071 $as_echo_n "checking $2 presence... " >&6; }
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_c_try_cpp "$LINENO"; then :
2077 ac_header_preproc=yes
2078 else
2079 ac_header_preproc=no
2080 fi
2081 rm -f conftest.err conftest.i conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2083 $as_echo "$ac_header_preproc" >&6; }
2084
2085 # So? What about this header?
2086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2087 yes:no: )
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2089 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092 ;;
2093 no:yes:* )
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2095 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2097 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2099 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2101 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 ;;
2105 esac
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if eval \${$3+:} false; then :
2109 $as_echo_n "(cached) " >&6
2110 else
2111 eval "$3=\$ac_header_compiler"
2112 fi
2113 eval ac_res=\$$3
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116 fi
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119 } # ac_fn_c_check_header_mongrel
2120
2121 # ac_fn_c_try_run LINENO
2122 # ----------------------
2123 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2124 # that executables *can* be run.
2125 ac_fn_c_try_run ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if { { ac_try="$ac_link"
2129 case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_link") 2>&5
2136 ac_status=$?
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2139 { { case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_try") 2>&5
2146 ac_status=$?
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; }; }; then :
2149 ac_retval=0
2150 else
2151 $as_echo "$as_me: program exited with status $ac_status" >&5
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=$ac_status
2156 fi
2157 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 as_fn_set_status $ac_retval
2160
2161 } # ac_fn_c_try_run
2162
2163 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2164 # -------------------------------------------------------
2165 # Tests whether HEADER exists and can be compiled using the include files in
2166 # INCLUDES, setting the cache variable VAR accordingly.
2167 ac_fn_c_check_header_compile ()
2168 {
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \${$3+:} false; then :
2173 $as_echo_n "(cached) " >&6
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 #include <$2>
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181 eval "$3=yes"
2182 else
2183 eval "$3=no"
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 fi
2187 eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191
2192 } # ac_fn_c_check_header_compile
2193
2194 # ac_fn_c_try_link LINENO
2195 # -----------------------
2196 # Try to link conftest.$ac_ext, and return whether this succeeded.
2197 ac_fn_c_try_link ()
2198 {
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 rm -f conftest.$ac_objext conftest$ac_exeext
2201 if { { ac_try="$ac_link"
2202 case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205 esac
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_link") 2>conftest.err
2209 ac_status=$?
2210 if test -s conftest.err; then
2211 grep -v '^ *+' conftest.err >conftest.er1
2212 cat conftest.er1 >&5
2213 mv -f conftest.er1 conftest.err
2214 fi
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && {
2217 test -z "$ac_c_werror_flag" ||
2218 test ! -s conftest.err
2219 } && test -s conftest$ac_exeext && {
2220 test "$cross_compiling" = yes ||
2221 $as_test_x conftest$ac_exeext
2222 }; then :
2223 ac_retval=0
2224 else
2225 $as_echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 ac_retval=1
2229 fi
2230 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2231 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2232 # interfere with the next link command; also delete a directory that is
2233 # left behind by Apple's compiler. We do this before executing the actions.
2234 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 as_fn_set_status $ac_retval
2237
2238 } # ac_fn_c_try_link
2239
2240 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2241 # ---------------------------------------------
2242 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2243 # accordingly.
2244 ac_fn_c_check_decl ()
2245 {
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 as_decl_name=`echo $2|sed 's/ *(.*//'`
2248 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2250 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2251 if eval \${$3+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 $4
2257 int
2258 main ()
2259 {
2260 #ifndef $as_decl_name
2261 #ifdef __cplusplus
2262 (void) $as_decl_use;
2263 #else
2264 (void) $as_decl_name;
2265 #endif
2266 #endif
2267
2268 ;
2269 return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273 eval "$3=yes"
2274 else
2275 eval "$3=no"
2276 fi
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 fi
2279 eval ac_res=\$$3
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283
2284 } # ac_fn_c_check_decl
2285
2286 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2287 # ----------------------------------------------
2288 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2289 ac_fn_c_check_header_preproc ()
2290 {
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293 $as_echo_n "checking for $2... " >&6; }
2294 if eval \${$3+:} false; then :
2295 $as_echo_n "(cached) " >&6
2296 else
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2299 #include <$2>
2300 _ACEOF
2301 if ac_fn_c_try_cpp "$LINENO"; then :
2302 eval "$3=yes"
2303 else
2304 eval "$3=no"
2305 fi
2306 rm -f conftest.err conftest.i conftest.$ac_ext
2307 fi
2308 eval ac_res=\$$3
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312
2313 } # ac_fn_c_check_header_preproc
2314
2315 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2316 # ----------------------------------------------------
2317 # Tries to find if the field MEMBER exists in type AGGR, after including
2318 # INCLUDES, setting cache variable VAR accordingly.
2319 ac_fn_c_check_member ()
2320 {
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2323 $as_echo_n "checking for $2.$3... " >&6; }
2324 if eval \${$4+:} false; then :
2325 $as_echo_n "(cached) " >&6
2326 else
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2329 $5
2330 int
2331 main ()
2332 {
2333 static $2 ac_aggr;
2334 if (ac_aggr.$3)
2335 return 0;
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 eval "$4=yes"
2342 else
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2345 $5
2346 int
2347 main ()
2348 {
2349 static $2 ac_aggr;
2350 if (sizeof ac_aggr.$3)
2351 return 0;
2352 ;
2353 return 0;
2354 }
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357 eval "$4=yes"
2358 else
2359 eval "$4=no"
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 fi
2365 eval ac_res=\$$4
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369
2370 } # ac_fn_c_check_member
2371
2372 # ac_fn_c_check_func LINENO FUNC VAR
2373 # ----------------------------------
2374 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2375 ac_fn_c_check_func ()
2376 {
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379 $as_echo_n "checking for $2... " >&6; }
2380 if eval \${$3+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2385 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2387 #define $2 innocuous_$2
2388
2389 /* System header to define __stub macros and hopefully few prototypes,
2390 which can conflict with char $2 (); below.
2391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2392 <limits.h> exists even on freestanding compilers. */
2393
2394 #ifdef __STDC__
2395 # include <limits.h>
2396 #else
2397 # include <assert.h>
2398 #endif
2399
2400 #undef $2
2401
2402 /* Override any GCC internal prototype to avoid an error.
2403 Use char because int might match the return type of a GCC
2404 builtin and then its argument prototype would still apply. */
2405 #ifdef __cplusplus
2406 extern "C"
2407 #endif
2408 char $2 ();
2409 /* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412 #if defined __stub_$2 || defined __stub___$2
2413 choke me
2414 #endif
2415
2416 int
2417 main ()
2418 {
2419 return $2 ();
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_link "$LINENO"; then :
2425 eval "$3=yes"
2426 else
2427 eval "$3=no"
2428 fi
2429 rm -f core conftest.err conftest.$ac_objext \
2430 conftest$ac_exeext conftest.$ac_ext
2431 fi
2432 eval ac_res=\$$3
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436
2437 } # ac_fn_c_check_func
2438
2439 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2440 # -------------------------------------------
2441 # Tests whether TYPE exists after having included INCLUDES, setting cache
2442 # variable VAR accordingly.
2443 ac_fn_c_check_type ()
2444 {
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if eval \${$3+:} false; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 eval "$3=no"
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 $4
2455 int
2456 main ()
2457 {
2458 if (sizeof ($2))
2459 return 0;
2460 ;
2461 return 0;
2462 }
2463 _ACEOF
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2467 $4
2468 int
2469 main ()
2470 {
2471 if (sizeof (($2)))
2472 return 0;
2473 ;
2474 return 0;
2475 }
2476 _ACEOF
2477 if ac_fn_c_try_compile "$LINENO"; then :
2478
2479 else
2480 eval "$3=yes"
2481 fi
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 fi
2486 eval ac_res=\$$3
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490
2491 } # ac_fn_c_check_type
2492
2493 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2494 # --------------------------------------------
2495 # Tries to find the compile-time value of EXPR in a program that includes
2496 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2497 # computed
2498 ac_fn_c_compute_int ()
2499 {
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 if test "$cross_compiling" = yes; then
2502 # Depending upon the size, compute the lo and hi bounds.
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2505 $4
2506 int
2507 main ()
2508 {
2509 static int test_array [1 - 2 * !(($2) >= 0)];
2510 test_array [0] = 0
2511
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_c_try_compile "$LINENO"; then :
2517 ac_lo=0 ac_mid=0
2518 while :; do
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2521 $4
2522 int
2523 main ()
2524 {
2525 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526 test_array [0] = 0
2527
2528 ;
2529 return 0;
2530 }
2531 _ACEOF
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533 ac_hi=$ac_mid; break
2534 else
2535 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2536 if test $ac_lo -le $ac_mid; then
2537 ac_lo= ac_hi=
2538 break
2539 fi
2540 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2541 fi
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 done
2544 else
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2547 $4
2548 int
2549 main ()
2550 {
2551 static int test_array [1 - 2 * !(($2) < 0)];
2552 test_array [0] = 0
2553
2554 ;
2555 return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_c_try_compile "$LINENO"; then :
2559 ac_hi=-1 ac_mid=-1
2560 while :; do
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562 /* end confdefs.h. */
2563 $4
2564 int
2565 main ()
2566 {
2567 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2568 test_array [0] = 0
2569
2570 ;
2571 return 0;
2572 }
2573 _ACEOF
2574 if ac_fn_c_try_compile "$LINENO"; then :
2575 ac_lo=$ac_mid; break
2576 else
2577 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2578 if test $ac_mid -le $ac_hi; then
2579 ac_lo= ac_hi=
2580 break
2581 fi
2582 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 done
2586 else
2587 ac_lo= ac_hi=
2588 fi
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 fi
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 # Binary search between lo and hi bounds.
2593 while test "x$ac_lo" != "x$ac_hi"; do
2594 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 $4
2598 int
2599 main ()
2600 {
2601 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2602 test_array [0] = 0
2603
2604 ;
2605 return 0;
2606 }
2607 _ACEOF
2608 if ac_fn_c_try_compile "$LINENO"; then :
2609 ac_hi=$ac_mid
2610 else
2611 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 done
2615 case $ac_lo in #((
2616 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2617 '') ac_retval=1 ;;
2618 esac
2619 else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2622 $4
2623 static long int longval () { return $2; }
2624 static unsigned long int ulongval () { return $2; }
2625 #include <stdio.h>
2626 #include <stdlib.h>
2627 int
2628 main ()
2629 {
2630
2631 FILE *f = fopen ("conftest.val", "w");
2632 if (! f)
2633 return 1;
2634 if (($2) < 0)
2635 {
2636 long int i = longval ();
2637 if (i != ($2))
2638 return 1;
2639 fprintf (f, "%ld", i);
2640 }
2641 else
2642 {
2643 unsigned long int i = ulongval ();
2644 if (i != ($2))
2645 return 1;
2646 fprintf (f, "%lu", i);
2647 }
2648 /* Do not output a trailing newline, as this causes \r\n confusion
2649 on some platforms. */
2650 return ferror (f) || fclose (f) != 0;
2651
2652 ;
2653 return 0;
2654 }
2655 _ACEOF
2656 if ac_fn_c_try_run "$LINENO"; then :
2657 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2658 else
2659 ac_retval=1
2660 fi
2661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2662 conftest.$ac_objext conftest.beam conftest.$ac_ext
2663 rm -f conftest.val
2664
2665 fi
2666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667 as_fn_set_status $ac_retval
2668
2669 } # ac_fn_c_compute_int
2670 cat >config.log <<_ACEOF
2671 This file contains any messages produced by compilers while
2672 running configure, to aid debugging if configure makes a mistake.
2673
2674 It was created by emacs $as_me 24.0.50, which was
2675 generated by GNU Autoconf 2.68. Invocation command line was
2676
2677 $ $0 $@
2678
2679 _ACEOF
2680 exec 5>>config.log
2681 {
2682 cat <<_ASUNAME
2683 ## --------- ##
2684 ## Platform. ##
2685 ## --------- ##
2686
2687 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2688 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2689 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2690 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2691 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2692
2693 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2694 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2695
2696 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2697 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2698 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2699 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2700 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2701 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2702 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2703
2704 _ASUNAME
2705
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 $as_echo "PATH: $as_dir"
2712 done
2713 IFS=$as_save_IFS
2714
2715 } >&5
2716
2717 cat >&5 <<_ACEOF
2718
2719
2720 ## ----------- ##
2721 ## Core tests. ##
2722 ## ----------- ##
2723
2724 _ACEOF
2725
2726
2727 # Keep a trace of the command line.
2728 # Strip out --no-create and --no-recursion so they do not pile up.
2729 # Strip out --silent because we don't want to record it for future runs.
2730 # Also quote any args containing shell meta-characters.
2731 # Make two passes to allow for proper duplicate-argument suppression.
2732 ac_configure_args=
2733 ac_configure_args0=
2734 ac_configure_args1=
2735 ac_must_keep_next=false
2736 for ac_pass in 1 2
2737 do
2738 for ac_arg
2739 do
2740 case $ac_arg in
2741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2743 | -silent | --silent | --silen | --sile | --sil)
2744 continue ;;
2745 *\'*)
2746 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2747 esac
2748 case $ac_pass in
2749 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2750 2)
2751 as_fn_append ac_configure_args1 " '$ac_arg'"
2752 if test $ac_must_keep_next = true; then
2753 ac_must_keep_next=false # Got value, back to normal.
2754 else
2755 case $ac_arg in
2756 *=* | --config-cache | -C | -disable-* | --disable-* \
2757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2759 | -with-* | --with-* | -without-* | --without-* | --x)
2760 case "$ac_configure_args0 " in
2761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2762 esac
2763 ;;
2764 -* ) ac_must_keep_next=true ;;
2765 esac
2766 fi
2767 as_fn_append ac_configure_args " '$ac_arg'"
2768 ;;
2769 esac
2770 done
2771 done
2772 { ac_configure_args0=; unset ac_configure_args0;}
2773 { ac_configure_args1=; unset ac_configure_args1;}
2774
2775 # When interrupted or exit'd, cleanup temporary files, and complete
2776 # config.log. We remove comments because anyway the quotes in there
2777 # would cause problems or look ugly.
2778 # WARNING: Use '\'' to represent an apostrophe within the trap.
2779 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2780 trap 'exit_status=$?
2781 # Save into config.log some information that might help in debugging.
2782 {
2783 echo
2784
2785 $as_echo "## ---------------- ##
2786 ## Cache variables. ##
2787 ## ---------------- ##"
2788 echo
2789 # The following way of writing the cache mishandles newlines in values,
2790 (
2791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2792 eval ac_val=\$$ac_var
2793 case $ac_val in #(
2794 *${as_nl}*)
2795 case $ac_var in #(
2796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2798 esac
2799 case $ac_var in #(
2800 _ | IFS | as_nl) ;; #(
2801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2802 *) { eval $ac_var=; unset $ac_var;} ;;
2803 esac ;;
2804 esac
2805 done
2806 (set) 2>&1 |
2807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2808 *${as_nl}ac_space=\ *)
2809 sed -n \
2810 "s/'\''/'\''\\\\'\'''\''/g;
2811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2812 ;; #(
2813 *)
2814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2815 ;;
2816 esac |
2817 sort
2818 )
2819 echo
2820
2821 $as_echo "## ----------------- ##
2822 ## Output variables. ##
2823 ## ----------------- ##"
2824 echo
2825 for ac_var in $ac_subst_vars
2826 do
2827 eval ac_val=\$$ac_var
2828 case $ac_val in
2829 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2830 esac
2831 $as_echo "$ac_var='\''$ac_val'\''"
2832 done | sort
2833 echo
2834
2835 if test -n "$ac_subst_files"; then
2836 $as_echo "## ------------------- ##
2837 ## File substitutions. ##
2838 ## ------------------- ##"
2839 echo
2840 for ac_var in $ac_subst_files
2841 do
2842 eval ac_val=\$$ac_var
2843 case $ac_val in
2844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2845 esac
2846 $as_echo "$ac_var='\''$ac_val'\''"
2847 done | sort
2848 echo
2849 fi
2850
2851 if test -s confdefs.h; then
2852 $as_echo "## ----------- ##
2853 ## confdefs.h. ##
2854 ## ----------- ##"
2855 echo
2856 cat confdefs.h
2857 echo
2858 fi
2859 test "$ac_signal" != 0 &&
2860 $as_echo "$as_me: caught signal $ac_signal"
2861 $as_echo "$as_me: exit $exit_status"
2862 } >&5
2863 rm -f core *.core core.conftest.* &&
2864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2865 exit $exit_status
2866 ' 0
2867 for ac_signal in 1 2 13 15; do
2868 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2869 done
2870 ac_signal=0
2871
2872 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2873 rm -f -r conftest* confdefs.h
2874
2875 $as_echo "/* confdefs.h */" > confdefs.h
2876
2877 # Predefined preprocessor variables.
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_NAME "$PACKAGE_NAME"
2881 _ACEOF
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2885 _ACEOF
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_STRING "$PACKAGE_STRING"
2893 _ACEOF
2894
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2897 _ACEOF
2898
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_URL "$PACKAGE_URL"
2901 _ACEOF
2902
2903
2904 # Let the site file select an alternate cache file if it wants to.
2905 # Prefer an explicitly selected file to automatically selected ones.
2906 ac_site_file1=NONE
2907 ac_site_file2=NONE
2908 if test -n "$CONFIG_SITE"; then
2909 # We do not want a PATH search for config.site.
2910 case $CONFIG_SITE in #((
2911 -*) ac_site_file1=./$CONFIG_SITE;;
2912 */*) ac_site_file1=$CONFIG_SITE;;
2913 *) ac_site_file1=./$CONFIG_SITE;;
2914 esac
2915 elif test "x$prefix" != xNONE; then
2916 ac_site_file1=$prefix/share/config.site
2917 ac_site_file2=$prefix/etc/config.site
2918 else
2919 ac_site_file1=$ac_default_prefix/share/config.site
2920 ac_site_file2=$ac_default_prefix/etc/config.site
2921 fi
2922 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2923 do
2924 test "x$ac_site_file" = xNONE && continue
2925 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2928 sed 's/^/| /' "$ac_site_file" >&5
2929 . "$ac_site_file" \
2930 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error $? "failed to load site script $ac_site_file
2933 See \`config.log' for more details" "$LINENO" 5; }
2934 fi
2935 done
2936
2937 if test -r "$cache_file"; then
2938 # Some versions of bash will fail to source /dev/null (special files
2939 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2940 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2942 $as_echo "$as_me: loading cache $cache_file" >&6;}
2943 case $cache_file in
2944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2945 *) . "./$cache_file";;
2946 esac
2947 fi
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2950 $as_echo "$as_me: creating cache $cache_file" >&6;}
2951 >$cache_file
2952 fi
2953
2954 as_fn_append ac_header_list " stdlib.h"
2955 as_fn_append ac_header_list " unistd.h"
2956 as_fn_append ac_header_list " sys/param.h"
2957 gl_getopt_required=GNU
2958 as_fn_append ac_header_list " getopt.h"
2959 as_fn_append ac_func_list " alarm"
2960 as_fn_append ac_header_list " wchar.h"
2961 as_fn_append ac_header_list " stdint.h"
2962 as_fn_append ac_func_list " tzset"
2963 as_fn_append ac_header_list " sys/stat.h"
2964 as_fn_append ac_header_list " sys/time.h"
2965 as_fn_append ac_func_list " localtime_r"
2966 # Check that the precious variables saved in the cache have kept the same
2967 # value.
2968 ac_cache_corrupted=false
2969 for ac_var in $ac_precious_vars; do
2970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2971 eval ac_new_set=\$ac_env_${ac_var}_set
2972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2973 eval ac_new_val=\$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2975 set,)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,set)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,);;
2984 *)
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w=`echo x $ac_old_val`
2988 ac_new_val_w=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted=:
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\$ac_old_val
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3002 fi;;
3003 esac
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3006 case $ac_new_val in
3007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg=$ac_var=$ac_new_val ;;
3009 esac
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013 esac
3014 fi
3015 done
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3022 fi
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032
3033
3034 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3035
3036
3037 am__api_version='1.11'
3038
3039 ac_aux_dir=
3040 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3041 if test -f "$ac_dir/install-sh"; then
3042 ac_aux_dir=$ac_dir
3043 ac_install_sh="$ac_aux_dir/install-sh -c"
3044 break
3045 elif test -f "$ac_dir/install.sh"; then
3046 ac_aux_dir=$ac_dir
3047 ac_install_sh="$ac_aux_dir/install.sh -c"
3048 break
3049 elif test -f "$ac_dir/shtool"; then
3050 ac_aux_dir=$ac_dir
3051 ac_install_sh="$ac_aux_dir/shtool install -c"
3052 break
3053 fi
3054 done
3055 if test -z "$ac_aux_dir"; then
3056 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3057 fi
3058
3059 # These three variables are undocumented and unsupported,
3060 # and are intended to be withdrawn in a future Autoconf release.
3061 # They can cause serious problems if a builder's source tree is in a directory
3062 # whose full name contains unusual characters.
3063 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3064 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3065 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3066
3067
3068 # Find a good install program. We prefer a C program (faster),
3069 # so one script is as good as another. But avoid the broken or
3070 # incompatible versions:
3071 # SysV /etc/install, /usr/sbin/install
3072 # SunOS /usr/etc/install
3073 # IRIX /sbin/install
3074 # AIX /bin/install
3075 # AmigaOS /C/install, which installs bootblocks on floppy discs
3076 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3079 # OS/2's system install, which has a completely different semantic
3080 # ./install, which can be erroneously created by make from ./install.sh.
3081 # Reject install programs that cannot install multiple files.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3083 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3084 if test -z "$INSTALL"; then
3085 if ${ac_cv_path_install+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 # Account for people who put trailing slashes in PATH elements.
3094 case $as_dir/ in #((
3095 ./ | .// | /[cC]/* | \
3096 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3097 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3098 /usr/ucb/* ) ;;
3099 *)
3100 # OSF1 and SCO ODT 3.0 have their own names for install.
3101 # Don't use installbsd from OSF since it installs stuff as root
3102 # by default.
3103 for ac_prog in ginstall scoinst install; do
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3106 if test $ac_prog = install &&
3107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # AIX install. It has an incompatible calling convention.
3109 :
3110 elif test $ac_prog = install &&
3111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112 # program-specific install script used by HP pwplus--don't use.
3113 :
3114 else
3115 rm -rf conftest.one conftest.two conftest.dir
3116 echo one > conftest.one
3117 echo two > conftest.two
3118 mkdir conftest.dir
3119 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3120 test -s conftest.one && test -s conftest.two &&
3121 test -s conftest.dir/conftest.one &&
3122 test -s conftest.dir/conftest.two
3123 then
3124 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3125 break 3
3126 fi
3127 fi
3128 fi
3129 done
3130 done
3131 ;;
3132 esac
3133
3134 done
3135 IFS=$as_save_IFS
3136
3137 rm -rf conftest.one conftest.two conftest.dir
3138
3139 fi
3140 if test "${ac_cv_path_install+set}" = set; then
3141 INSTALL=$ac_cv_path_install
3142 else
3143 # As a last resort, use the slow shell script. Don't cache a
3144 # value for INSTALL within a source directory, because that will
3145 # break other packages using the cache if that directory is
3146 # removed, or if the value is a relative name.
3147 INSTALL=$ac_install_sh
3148 fi
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3151 $as_echo "$INSTALL" >&6; }
3152
3153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3154 # It thinks the first close brace ends the variable substitution.
3155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3156
3157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3158
3159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3160
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3162 $as_echo_n "checking whether build environment is sane... " >&6; }
3163 # Just in case
3164 sleep 1
3165 echo timestamp > conftest.file
3166 # Reject unsafe characters in $srcdir or the absolute working directory
3167 # name. Accept space and tab only in the latter.
3168 am_lf='
3169 '
3170 case `pwd` in
3171 *[\\\"\#\$\&\'\`$am_lf]*)
3172 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3173 esac
3174 case $srcdir in
3175 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3176 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3177 esac
3178
3179 # Do `set' in a subshell so we don't clobber the current shell's
3180 # arguments. Must try -L first in case configure is actually a
3181 # symlink; some systems play weird games with the mod time of symlinks
3182 # (eg FreeBSD returns the mod time of the symlink's containing
3183 # directory).
3184 if (
3185 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3186 if test "$*" = "X"; then
3187 # -L didn't work.
3188 set X `ls -t "$srcdir/configure" conftest.file`
3189 fi
3190 rm -f conftest.file
3191 if test "$*" != "X $srcdir/configure conftest.file" \
3192 && test "$*" != "X conftest.file $srcdir/configure"; then
3193
3194 # If neither matched, then we have a broken ls. This can happen
3195 # if, for instance, CONFIG_SHELL is bash and it inherits a
3196 # broken ls alias from the environment. This has actually
3197 # happened. Such a system could not be considered "sane".
3198 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3199 alias in your environment" "$LINENO" 5
3200 fi
3201
3202 test "$2" = conftest.file
3203 )
3204 then
3205 # Ok.
3206 :
3207 else
3208 as_fn_error $? "newly created file is older than distributed files!
3209 Check your system clock" "$LINENO" 5
3210 fi
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3213 test "$program_prefix" != NONE &&
3214 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3215 # Use a double $ so make ignores it.
3216 test "$program_suffix" != NONE &&
3217 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3218 # Double any \ or $.
3219 # By default was `s,x,x', remove it if useless.
3220 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3221 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3222
3223 # expand $ac_aux_dir to an absolute path
3224 am_aux_dir=`cd $ac_aux_dir && pwd`
3225
3226 if test x"${MISSING+set}" != xset; then
3227 case $am_aux_dir in
3228 *\ * | *\ *)
3229 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3230 *)
3231 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3232 esac
3233 fi
3234 # Use eval to expand $SHELL
3235 if eval "$MISSING --run true"; then
3236 am_missing_run="$MISSING --run "
3237 else
3238 am_missing_run=
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3240 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3241 fi
3242
3243 if test x"${install_sh}" != xset; then
3244 case $am_aux_dir in
3245 *\ * | *\ *)
3246 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3247 *)
3248 install_sh="\${SHELL} $am_aux_dir/install-sh"
3249 esac
3250 fi
3251
3252 # Installed binaries are usually stripped using `strip' when the user
3253 # run `make install-strip'. However `strip' might not be the right
3254 # tool to use in cross-compilation environments, therefore Automake
3255 # will honor the `STRIP' environment variable to overrule this program.
3256 if test "$cross_compiling" != no; then
3257 if test -n "$ac_tool_prefix"; then
3258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3259 set dummy ${ac_tool_prefix}strip; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_STRIP+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$STRIP"; then
3266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 fi
3284 fi
3285 STRIP=$ac_cv_prog_STRIP
3286 if test -n "$STRIP"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3288 $as_echo "$STRIP" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3293
3294
3295 fi
3296 if test -z "$ac_cv_prog_STRIP"; then
3297 ac_ct_STRIP=$STRIP
3298 # Extract the first word of "strip", so it can be a program name with args.
3299 set dummy strip; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -n "$ac_ct_STRIP"; then
3306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 ac_cv_prog_ac_ct_STRIP="strip"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3326 if test -n "$ac_ct_STRIP"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3328 $as_echo "$ac_ct_STRIP" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334 if test "x$ac_ct_STRIP" = x; then
3335 STRIP=":"
3336 else
3337 case $cross_compiling:$ac_tool_warned in
3338 yes:)
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3341 ac_tool_warned=yes ;;
3342 esac
3343 STRIP=$ac_ct_STRIP
3344 fi
3345 else
3346 STRIP="$ac_cv_prog_STRIP"
3347 fi
3348
3349 fi
3350 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3351
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3353 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3354 if test -z "$MKDIR_P"; then
3355 if ${ac_cv_path_mkdir+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3360 do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_prog in mkdir gmkdir; do
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3366 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3367 'mkdir (GNU coreutils) '* | \
3368 'mkdir (coreutils) '* | \
3369 'mkdir (fileutils) '4.1*)
3370 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3371 break 3;;
3372 esac
3373 done
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379
3380 test -d ./--version && rmdir ./--version
3381 if test "${ac_cv_path_mkdir+set}" = set; then
3382 MKDIR_P="$ac_cv_path_mkdir -p"
3383 else
3384 # As a last resort, use the slow shell script. Don't cache a
3385 # value for MKDIR_P within a source directory, because that will
3386 # break other packages using the cache if that directory is
3387 # removed, or if the value is a relative name.
3388 MKDIR_P="$ac_install_sh -d"
3389 fi
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3392 $as_echo "$MKDIR_P" >&6; }
3393
3394
3395 mkdir_p="$MKDIR_P"
3396 case $mkdir_p in
3397 [\\/$]* | ?:[\\/]*) ;;
3398 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3399 esac
3400
3401 for ac_prog in gawk mawk nawk awk
3402 do
3403 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if ${ac_cv_prog_AWK+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$AWK"; then
3411 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_AWK="$ac_prog"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3423 fi
3424 done
3425 done
3426 IFS=$as_save_IFS
3427
3428 fi
3429 fi
3430 AWK=$ac_cv_prog_AWK
3431 if test -n "$AWK"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3433 $as_echo "$AWK" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 fi
3438
3439
3440 test -n "$AWK" && break
3441 done
3442
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3444 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3445 set x ${MAKE-make}
3446 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3447 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 cat >conftest.make <<\_ACEOF
3451 SHELL = /bin/sh
3452 all:
3453 @echo '@@@%%%=$(MAKE)=@@@%%%'
3454 _ACEOF
3455 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3456 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3457 *@@@%%%=?*=@@@%%%*)
3458 eval ac_cv_prog_make_${ac_make}_set=yes;;
3459 *)
3460 eval ac_cv_prog_make_${ac_make}_set=no;;
3461 esac
3462 rm -f conftest.make
3463 fi
3464 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3466 $as_echo "yes" >&6; }
3467 SET_MAKE=
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 SET_MAKE="MAKE=${MAKE-make}"
3472 fi
3473
3474 rm -rf .tst 2>/dev/null
3475 mkdir .tst 2>/dev/null
3476 if test -d .tst; then
3477 am__leading_dot=.
3478 else
3479 am__leading_dot=_
3480 fi
3481 rmdir .tst 2>/dev/null
3482
3483 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3484 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3485 # is not polluted with repeated "-I."
3486 am__isrc=' -I$(srcdir)'
3487 # test to see if srcdir already configured
3488 if test -f $srcdir/config.status; then
3489 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3490 fi
3491 fi
3492
3493 # test whether we have cygpath
3494 if test -z "$CYGPATH_W"; then
3495 if (cygpath --version) >/dev/null 2>/dev/null; then
3496 CYGPATH_W='cygpath -w'
3497 else
3498 CYGPATH_W=echo
3499 fi
3500 fi
3501
3502
3503 # Define the identity of the package.
3504 PACKAGE='emacs'
3505 VERSION='24.0.50'
3506
3507
3508 cat >>confdefs.h <<_ACEOF
3509 #define PACKAGE "$PACKAGE"
3510 _ACEOF
3511
3512
3513 cat >>confdefs.h <<_ACEOF
3514 #define VERSION "$VERSION"
3515 _ACEOF
3516
3517 # Some tools Automake needs.
3518
3519 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3520
3521
3522 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3523
3524
3525 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3526
3527
3528 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3529
3530
3531 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3532
3533 # We need awk for the "check" target. The system "awk" is bad on
3534 # some platforms.
3535 # Always define AMTAR for backward compatibility.
3536
3537 AMTAR=${AMTAR-"${am_missing_run}tar"}
3538
3539 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3540
3541
3542
3543
3544
3545
3546
3547
3548 lispdir='${datadir}/emacs/${version}/lisp'
3549 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3550 '${datadir}/emacs/site-lisp'
3551 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3552 etcdir='${datadir}/emacs/${version}/etc'
3553 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3554 docdir='${datadir}/emacs/${version}/etc'
3555 gamedir='${localstatedir}/games/emacs'
3556
3557
3558
3559
3560 # Check whether --with-pop was given.
3561 if test "${with_pop+set}" = set; then :
3562 withval=$with_pop;
3563 else
3564 with_pop=yes
3565 fi
3566
3567 if test "$with_pop" = yes; then
3568 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3569
3570 fi
3571
3572
3573 # Check whether --with-kerberos was given.
3574 if test "${with_kerberos+set}" = set; then :
3575 withval=$with_kerberos;
3576 else
3577 with_kerberos=no
3578 fi
3579
3580 if test "$with_kerberos" != no; then
3581 $as_echo "#define KERBEROS 1" >>confdefs.h
3582
3583 fi
3584
3585
3586 # Check whether --with-kerberos5 was given.
3587 if test "${with_kerberos5+set}" = set; then :
3588 withval=$with_kerberos5;
3589 else
3590 with_kerberos5=no
3591 fi
3592
3593 if test "${with_kerberos5}" != no; then
3594 if test "${with_kerberos}" = no; then
3595 with_kerberos=yes
3596 $as_echo "#define KERBEROS 1" >>confdefs.h
3597
3598 fi
3599
3600 $as_echo "#define KERBEROS5 1" >>confdefs.h
3601
3602 fi
3603
3604
3605 # Check whether --with-hesiod was given.
3606 if test "${with_hesiod+set}" = set; then :
3607 withval=$with_hesiod;
3608 else
3609 with_hesiod=no
3610 fi
3611
3612 if test "$with_hesiod" != no; then
3613
3614 $as_echo "#define HESIOD 1" >>confdefs.h
3615
3616 fi
3617
3618
3619 # Check whether --with-mmdf was given.
3620 if test "${with_mmdf+set}" = set; then :
3621 withval=$with_mmdf;
3622 else
3623 with_mmdf=no
3624 fi
3625
3626 if test "$with_mmdf" != no; then
3627
3628 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3629
3630 fi
3631
3632
3633 # Check whether --with-mail-unlink was given.
3634 if test "${with_mail_unlink+set}" = set; then :
3635 withval=$with_mail_unlink;
3636 else
3637 with_mail_unlink=no
3638 fi
3639
3640 if test "$with_mail_unlink" != no; then
3641
3642 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3643
3644 fi
3645
3646
3647 # Check whether --with-mailhost was given.
3648 if test "${with_mailhost+set}" = set; then :
3649 withval=$with_mailhost;
3650 cat >>confdefs.h <<_ACEOF
3651 #define MAILHOST "$withval"
3652 _ACEOF
3653
3654 fi
3655
3656
3657
3658 # Check whether --with-sound was given.
3659 if test "${with_sound+set}" = set; then :
3660 withval=$with_sound;
3661 else
3662 with_sound=yes
3663 fi
3664
3665
3666
3667 # Check whether --with-sync-input was given.
3668 if test "${with_sync_input+set}" = set; then :
3669 withval=$with_sync_input;
3670 else
3671 with_sync_input=yes
3672 fi
3673
3674 if test "$with_sync_input" = yes; then
3675
3676 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3677
3678 fi
3679
3680
3681 # Check whether --with-x-toolkit was given.
3682 if test "${with_x_toolkit+set}" = set; then :
3683 withval=$with_x_toolkit; case "${withval}" in
3684 y | ye | yes ) val=gtk ;;
3685 n | no ) val=no ;;
3686 l | lu | luc | luci | lucid ) val=lucid ;;
3687 a | at | ath | athe | athen | athena ) val=athena ;;
3688 m | mo | mot | moti | motif ) val=motif ;;
3689 g | gt | gtk ) val=gtk ;;
3690 gtk3 ) val=gtk3 ;;
3691 * )
3692 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3693 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3694 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3695 ;;
3696 esac
3697 with_x_toolkit=$val
3698
3699 fi
3700
3701
3702
3703 # Check whether --with-xpm was given.
3704 if test "${with_xpm+set}" = set; then :
3705 withval=$with_xpm;
3706 else
3707 with_xpm=yes
3708 fi
3709
3710
3711 # Check whether --with-jpeg was given.
3712 if test "${with_jpeg+set}" = set; then :
3713 withval=$with_jpeg;
3714 else
3715 with_jpeg=yes
3716 fi
3717
3718
3719 # Check whether --with-tiff was given.
3720 if test "${with_tiff+set}" = set; then :
3721 withval=$with_tiff;
3722 else
3723 with_tiff=yes
3724 fi
3725
3726
3727 # Check whether --with-gif was given.
3728 if test "${with_gif+set}" = set; then :
3729 withval=$with_gif;
3730 else
3731 with_gif=yes
3732 fi
3733
3734
3735 # Check whether --with-png was given.
3736 if test "${with_png+set}" = set; then :
3737 withval=$with_png;
3738 else
3739 with_png=yes
3740 fi
3741
3742
3743 # Check whether --with-rsvg was given.
3744 if test "${with_rsvg+set}" = set; then :
3745 withval=$with_rsvg;
3746 else
3747 with_rsvg=yes
3748 fi
3749
3750
3751 # Check whether --with-xml2 was given.
3752 if test "${with_xml2+set}" = set; then :
3753 withval=$with_xml2;
3754 else
3755 with_xml2=yes
3756 fi
3757
3758
3759 # Check whether --with-imagemagick was given.
3760 if test "${with_imagemagick+set}" = set; then :
3761 withval=$with_imagemagick;
3762 else
3763 with_imagemagick=yes
3764 fi
3765
3766
3767
3768 # Check whether --with-xft was given.
3769 if test "${with_xft+set}" = set; then :
3770 withval=$with_xft;
3771 else
3772 with_xft=yes
3773 fi
3774
3775
3776 # Check whether --with-libotf was given.
3777 if test "${with_libotf+set}" = set; then :
3778 withval=$with_libotf;
3779 else
3780 with_libotf=yes
3781 fi
3782
3783
3784 # Check whether --with-m17n-flt was given.
3785 if test "${with_m17n_flt+set}" = set; then :
3786 withval=$with_m17n_flt;
3787 else
3788 with_m17n_flt=yes
3789 fi
3790
3791
3792
3793 # Check whether --with-toolkit-scroll-bars was given.
3794 if test "${with_toolkit_scroll_bars+set}" = set; then :
3795 withval=$with_toolkit_scroll_bars;
3796 else
3797 with_toolkit_scroll_bars=yes
3798 fi
3799
3800
3801 # Check whether --with-xaw3d was given.
3802 if test "${with_xaw3d+set}" = set; then :
3803 withval=$with_xaw3d;
3804 else
3805 with_xaw3d=yes
3806 fi
3807
3808
3809 # Check whether --with-xim was given.
3810 if test "${with_xim+set}" = set; then :
3811 withval=$with_xim;
3812 else
3813 with_xim=yes
3814 fi
3815
3816
3817 # Check whether --with-ns was given.
3818 if test "${with_ns+set}" = set; then :
3819 withval=$with_ns;
3820 else
3821 with_ns=no
3822 fi
3823
3824
3825
3826 # Check whether --with-gpm was given.
3827 if test "${with_gpm+set}" = set; then :
3828 withval=$with_gpm;
3829 else
3830 with_gpm=yes
3831 fi
3832
3833
3834 # Check whether --with-dbus was given.
3835 if test "${with_dbus+set}" = set; then :
3836 withval=$with_dbus;
3837 else
3838 with_dbus=yes
3839 fi
3840
3841
3842 # Check whether --with-gconf was given.
3843 if test "${with_gconf+set}" = set; then :
3844 withval=$with_gconf;
3845 else
3846 with_gconf=yes
3847 fi
3848
3849
3850 # Check whether --with-selinux was given.
3851 if test "${with_selinux+set}" = set; then :
3852 withval=$with_selinux;
3853 else
3854 with_selinux=yes
3855 fi
3856
3857
3858 # Check whether --with-gnutls was given.
3859 if test "${with_gnutls+set}" = set; then :
3860 withval=$with_gnutls;
3861 else
3862 with_gnutls=yes
3863 fi
3864
3865
3866 ## For the times when you want to build Emacs but don't have
3867 ## a suitable makeinfo, and can live without the manuals.
3868
3869 # Check whether --with-makeinfo was given.
3870 if test "${with_makeinfo+set}" = set; then :
3871 withval=$with_makeinfo;
3872 else
3873 with_makeinfo=yes
3874 fi
3875
3876
3877 ## This is an option because I do not know if all info/man support
3878 ## compressed files, nor how to test if they do so.
3879
3880 # Check whether --with-compress-info was given.
3881 if test "${with_compress_info+set}" = set; then :
3882 withval=$with_compress_info;
3883 else
3884 with_compress_info=yes
3885 fi
3886
3887 if test $with_compress_info = yes; then
3888 GZIP_INFO=yes
3889 else
3890 GZIP_INFO=
3891 fi
3892
3893
3894
3895 # Check whether --with-pkg-config-prog was given.
3896 if test "${with_pkg_config_prog+set}" = set; then :
3897 withval=$with_pkg_config_prog;
3898 fi
3899
3900 if test "X${with_pkg_config_prog}" != X; then
3901 if test "${with_pkg_config_prog}" != yes; then
3902 PKG_CONFIG="${with_pkg_config_prog}"
3903 fi
3904 fi
3905
3906 CRT_DIR=
3907
3908 # Check whether --with-crt-dir was given.
3909 if test "${with_crt_dir+set}" = set; then :
3910 withval=$with_crt_dir;
3911 fi
3912
3913 CRT_DIR="${with_crt_dir}"
3914
3915
3916 # Check whether --with-gameuser was given.
3917 if test "${with_gameuser+set}" = set; then :
3918 withval=$with_gameuser;
3919 fi
3920
3921 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3922 && gameuser="${with_gameuser}"
3923 test "X$gameuser" = X && gameuser=games
3924
3925
3926 # Check whether --with-gnustep-conf was given.
3927 if test "${with_gnustep_conf+set}" = set; then :
3928 withval=$with_gnustep_conf;
3929 fi
3930
3931 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3932 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3933 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3934 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3935
3936 # Check whether --enable-ns-self-contained was given.
3937 if test "${enable_ns_self_contained+set}" = set; then :
3938 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3939 else
3940 EN_NS_SELF_CONTAINED=yes
3941 fi
3942
3943
3944 # Check whether --enable-asserts was given.
3945 if test "${enable_asserts+set}" = set; then :
3946 enableval=$enable_asserts; USE_XASSERTS=$enableval
3947 else
3948 USE_XASSERTS=no
3949 fi
3950
3951
3952 # Check whether --enable-maintainer-mode was given.
3953 if test "${enable_maintainer_mode+set}" = set; then :
3954 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3955 else
3956 USE_MAINTAINER_MODE=no
3957 fi
3958
3959 if test $USE_MAINTAINER_MODE = yes; then
3960 MAINT=
3961 else
3962 MAINT=#
3963 fi
3964
3965
3966 # Check whether --enable-locallisppath was given.
3967 if test "${enable_locallisppath+set}" = set; then :
3968 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3969 locallisppath=
3970 elif test "${enableval}" != "yes"; then
3971 locallisppath=${enableval}
3972 fi
3973 fi
3974
3975
3976 # Check whether --enable-checking was given.
3977 if test "${enable_checking+set}" = set; then :
3978 enableval=$enable_checking; ac_checking_flags="${enableval}"
3979 fi
3980
3981 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3982 for check in $ac_checking_flags
3983 do
3984 case $check in
3985 # these set all the flags to specific states
3986 yes) ac_enable_checking=1 ;;
3987 no) ac_enable_checking= ;
3988 ac_gc_check_stringbytes= ;
3989 ac_gc_check_string_overrun= ;
3990 ac_gc_check_string_free_list= ;
3991 ac_xmalloc_overrun= ;
3992 ac_gc_check_cons_list= ;;
3993 all) ac_enable_checking=1 ;
3994 ac_gc_check_stringbytes=1 ;
3995 ac_gc_check_string_overrun=1 ;
3996 ac_gc_check_string_free_list=1 ;
3997 ac_xmalloc_overrun=1 ;
3998 ac_gc_check_cons_list=1 ;;
3999 # these enable particular checks
4000 stringbytes) ac_gc_check_stringbytes=1 ;;
4001 stringoverrun) ac_gc_check_string_overrun=1 ;;
4002 stringfreelist) ac_gc_check_string_free_list=1 ;;
4003 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4004 conslist) ac_gc_check_cons_list=1 ;;
4005 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
4006 esac
4007 done
4008 IFS="$ac_save_IFS"
4009
4010 if test x$ac_enable_checking != x ; then
4011
4012 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4013
4014 fi
4015 if test x$ac_gc_check_stringbytes != x ; then
4016
4017 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4018
4019 fi
4020 if test x$ac_gc_check_stringoverrun != x ; then
4021
4022 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4023
4024 fi
4025 if test x$ac_gc_check_string_free_list != x ; then
4026
4027 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4028
4029 fi
4030 if test x$ac_xmalloc_overrun != x ; then
4031
4032 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4033
4034 fi
4035 if test x$ac_gc_check_cons_list != x ; then
4036
4037 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4038
4039 fi
4040
4041 # Check whether --enable-use-lisp-union-type was given.
4042 if test "${enable_use_lisp_union_type+set}" = set; then :
4043 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4044
4045 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4046
4047 fi
4048 fi
4049
4050
4051
4052 # Check whether --enable-profiling was given.
4053 if test "${enable_profiling+set}" = set; then :
4054 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4055 fi
4056
4057 if test x$ac_enable_profiling != x ; then
4058 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4059 else
4060 PROFILING_CFLAGS=
4061 fi
4062
4063
4064 # Check whether --enable-autodepend was given.
4065 if test "${enable_autodepend+set}" = set; then :
4066 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4067 else
4068 ac_enable_autodepend=yes
4069 fi
4070
4071
4072 #### Make srcdir absolute, if it isn't already. It's important to
4073 #### avoid running the path through pwd unnecessarily, since pwd can
4074 #### give you automounter prefixes, which can go away. We do all this
4075 #### so Emacs can find its files when run uninstalled.
4076 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4077 unset CDPATH
4078 case "${srcdir}" in
4079 /* ) ;;
4080 . )
4081 ## We may be able to use the $PWD environment variable to make this
4082 ## absolute. But sometimes PWD is inaccurate.
4083 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4084 ## but that tested only for a well-formed and valid PWD,
4085 ## it did not object when PWD was well-formed and valid but just wrong.
4086 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4087 then
4088 srcdir="$PWD"
4089 else
4090 srcdir="`(cd ${srcdir}; pwd)`"
4091 fi
4092 ;;
4093 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4094 esac
4095
4096 #### Check if the source directory already has a configured system in it.
4097 if test `pwd` != `(cd ${srcdir} && pwd)` \
4098 && test -f "${srcdir}/src/config.h" ; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4100 as a build directory right now; it has been configured in its own
4101 right. To configure in another directory as well, you MUST
4102 use GNU make. If you do not have GNU make, then you must
4103 now do \`make distclean' in ${srcdir},
4104 and then run $0 again." >&5
4105 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4106 as a build directory right now; it has been configured in its own
4107 right. To configure in another directory as well, you MUST
4108 use GNU make. If you do not have GNU make, then you must
4109 now do \`make distclean' in ${srcdir},
4110 and then run $0 again." >&2;}
4111 fi
4112
4113 #### Given the configuration name, set machfile and opsysfile to the
4114 #### names of the m/*.h and s/*.h files we should use.
4115
4116 ### Canonicalize the configuration name.
4117
4118 # Make sure we can run config.sub.
4119 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4120 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4121
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4123 $as_echo_n "checking build system type... " >&6; }
4124 if ${ac_cv_build+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 ac_build_alias=$build_alias
4128 test "x$ac_build_alias" = x &&
4129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4130 test "x$ac_build_alias" = x &&
4131 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4132 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4133 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4134
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4137 $as_echo "$ac_cv_build" >&6; }
4138 case $ac_cv_build in
4139 *-*-*) ;;
4140 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4141 esac
4142 build=$ac_cv_build
4143 ac_save_IFS=$IFS; IFS='-'
4144 set x $ac_cv_build
4145 shift
4146 build_cpu=$1
4147 build_vendor=$2
4148 shift; shift
4149 # Remember, the first character of IFS is used to create $*,
4150 # except with old shells:
4151 build_os=$*
4152 IFS=$ac_save_IFS
4153 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4157 $as_echo_n "checking host system type... " >&6; }
4158 if ${ac_cv_host+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test "x$host_alias" = x; then
4162 ac_cv_host=$ac_cv_build
4163 else
4164 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4165 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4166 fi
4167
4168 fi
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4170 $as_echo "$ac_cv_host" >&6; }
4171 case $ac_cv_host in
4172 *-*-*) ;;
4173 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4174 esac
4175 host=$ac_cv_host
4176 ac_save_IFS=$IFS; IFS='-'
4177 set x $ac_cv_host
4178 shift
4179 host_cpu=$1
4180 host_vendor=$2
4181 shift; shift
4182 # Remember, the first character of IFS is used to create $*,
4183 # except with old shells:
4184 host_os=$*
4185 IFS=$ac_save_IFS
4186 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4187
4188
4189 canonical=$host
4190 configuration=${host_alias-${build_alias-$host}}
4191
4192
4193
4194 ### If you add support for a new configuration, add code to this
4195 ### switch statement to recognize your configuration name and select
4196 ### the appropriate operating system and machine description files.
4197
4198 ### You would hope that you could choose an m/*.h file pretty much
4199 ### based on the machine portion of the configuration name, and an s/*.h
4200 ### file based on the operating system portion. However, it turns out
4201 ### that each m/*.h file is pretty manufacturer-specific - for
4202 ### example mips.h is MIPS
4203 ### So we basically have to have a special case for each
4204 ### configuration name.
4205 ###
4206 ### As far as handling version numbers on operating systems is
4207 ### concerned, make sure things will fail in a fixable way. If
4208 ### /etc/MACHINES doesn't say anything about version numbers, be
4209 ### prepared to handle anything reasonably. If version numbers
4210 ### matter, be sure /etc/MACHINES says something about it.
4211
4212 machine='' opsys='' unported=no
4213 case "${canonical}" in
4214
4215 ## GNU/Linux ports
4216 *-*-linux-gnu*)
4217 opsys=gnu-linux
4218 case ${canonical} in
4219 alpha*) machine=alpha ;;
4220 s390-*) machine=ibms390 ;;
4221 s390x-*) machine=ibms390x ;;
4222 powerpc*) machine=macppc ;;
4223 sparc*) machine=sparc ;;
4224 ia64*) machine=ia64 ;;
4225 m68k*) machine=m68k ;;
4226 x86_64*) machine=amdx86-64 ;;
4227 esac
4228 ;;
4229
4230 ## FreeBSD ports
4231 *-*-freebsd* )
4232 opsys=freebsd
4233 case "${canonical}" in
4234 alpha*) machine=alpha ;;
4235 amd64-*|x86_64-*) machine=amdx86-64 ;;
4236 ia64-*) machine=ia64 ;;
4237 i[3456]86-*) machine=intel386 ;;
4238 powerpc-*) machine=macppc ;;
4239 sparc-*) machine=sparc ;;
4240 sparc64-*) machine=sparc ;;
4241 esac
4242 ;;
4243
4244 ## FreeBSD kernel + glibc based userland
4245 *-*-kfreebsd*gnu* )
4246 opsys=gnu-kfreebsd
4247 case "${canonical}" in
4248 alpha*) machine=alpha ;;
4249 amd64-*|x86_64-*) machine=amdx86-64 ;;
4250 ia64-*) machine=ia64 ;;
4251 i[3456]86-*) machine=intel386 ;;
4252 powerpc-*) machine=macppc ;;
4253 sparc-*) machine=sparc ;;
4254 sparc64-*) machine=sparc ;;
4255 esac
4256 ;;
4257
4258 ## NetBSD ports
4259 *-*-netbsd* )
4260 opsys=netbsd
4261 case "${canonical}" in
4262 alpha*) machine=alpha ;;
4263 x86_64-*) machine=amdx86-64 ;;
4264 i[3456]86-*) machine=intel386 ;;
4265 m68k-*) machine=m68k ;;
4266 powerpc-*) machine=macppc ;;
4267 sparc*-) machine=sparc ;;
4268 vax-*) machine=vax ;;
4269 esac
4270 ;;
4271
4272 ## OpenBSD ports
4273 *-*-openbsd* )
4274 opsys=openbsd
4275 case "${canonical}" in
4276 alpha*) machine=alpha ;;
4277 x86_64-*) machine=amdx86-64 ;;
4278 i386-*) machine=intel386 ;;
4279 powerpc-*) machine=macppc ;;
4280 sparc*) machine=sparc ;;
4281 vax-*) machine=vax ;;
4282 esac
4283 ;;
4284
4285 ## Apple Darwin / Mac OS X
4286 *-apple-darwin* )
4287 case "${canonical}" in
4288 i[3456]86-* ) machine=intel386 ;;
4289 powerpc-* ) machine=macppc ;;
4290 x86_64-* ) machine=amdx86-64 ;;
4291 * ) unported=yes ;;
4292 esac
4293 opsys=darwin
4294 # Define CPP as follows to make autoconf work correctly.
4295 CPP="${CC-cc} -E -no-cpp-precomp"
4296 # Use fink packages if available.
4297 if test -d /sw/include && test -d /sw/lib; then
4298 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4299 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4300 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4301 fi
4302 ;;
4303
4304 ## HP 9000 series 700 and 800, running HP/UX
4305 hppa*-hp-hpux10.2* )
4306 opsys=hpux10-20
4307 ;;
4308 hppa*-hp-hpux1[1-9]* )
4309 opsys=hpux11
4310 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4311 ;;
4312
4313 ia64*-hp-hpux1[1-9]* )
4314 machine=hp800 opsys=hpux11
4315 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4316 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4317 CANNOT_DUMP=yes
4318 ;;
4319
4320 hppa*-*-linux-gnu* )
4321 machine=hp800 opsys=gnu-linux
4322 ;;
4323
4324 ## IBM machines
4325 rs6000-ibm-aix4.[23]* )
4326 machine=ibmrs6000 opsys=aix4-2
4327 ;;
4328 powerpc-ibm-aix4.[23]* )
4329 machine=ibmrs6000 opsys=aix4-2
4330 ;;
4331 rs6000-ibm-aix[56]* )
4332 machine=ibmrs6000 opsys=aix4-2
4333 ;;
4334 powerpc-ibm-aix[56]* )
4335 machine=ibmrs6000 opsys=aix4-2
4336 ;;
4337
4338 ## Silicon Graphics machines
4339 ## Iris 4D
4340 mips-sgi-irix6.5 )
4341 machine=iris4d opsys=irix6-5
4342 # Without defining _LANGUAGE_C, things get masked out in the headers
4343 # so that, for instance, grepping for `free' in stdlib.h fails and
4344 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4345 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4346 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4347 ;;
4348
4349 ## Suns
4350 *-sun-solaris* \
4351 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4352 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4353 case "${canonical}" in
4354 i[3456]86-*-* ) machine=intel386 ;;
4355 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4356 sparc* ) machine=sparc ;;
4357 * ) unported=yes ;;
4358 esac
4359 case "${canonical}" in
4360 *-sunos5.6* | *-solaris2.6* )
4361 opsys=sol2-6
4362 NON_GNU_CPP=/usr/ccs/lib/cpp
4363 RANLIB="ar -ts"
4364 ;;
4365 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4366 opsys=sol2-6
4367 emacs_check_sunpro_c=yes
4368 NON_GNU_CPP=/usr/ccs/lib/cpp
4369 ;;
4370 *-sunos5* | *-solaris* )
4371 opsys=sol2-10
4372 emacs_check_sunpro_c=yes
4373 NON_GNU_CPP=/usr/ccs/lib/cpp
4374 ;;
4375 esac
4376 ## Watch out for a compiler that we know will not work.
4377 case "${canonical}" in
4378 *-solaris* | *-sunos5* )
4379 if [ "x$CC" = x/usr/ucb/cc ]; then
4380 ## /usr/ucb/cc doesn't work;
4381 ## we should find some other compiler that does work.
4382 unset CC
4383 fi
4384 ;;
4385 *) ;;
4386 esac
4387 ;;
4388
4389 ## Intel 386 machines where we don't care about the manufacturer.
4390 i[3456]86-*-* )
4391 machine=intel386
4392 case "${canonical}" in
4393 *-cygwin ) opsys=cygwin ;;
4394 *-darwin* ) opsys=darwin
4395 CPP="${CC-cc} -E -no-cpp-precomp"
4396 ;;
4397 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4398 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4399 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4400 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4401 esac
4402 ;;
4403
4404 * )
4405 unported=yes
4406 ;;
4407 esac
4408
4409 ### If the code above didn't choose an operating system, just choose
4410 ### an operating system based on the configuration name. You really
4411 ### only want to use this when you have no idea what the right
4412 ### operating system is; if you know what operating systems a machine
4413 ### runs, it's cleaner to make it explicit in the case statement
4414 ### above.
4415 if test x"${opsys}" = x; then
4416 case "${canonical}" in
4417 *-gnu* ) opsys=gnu ;;
4418 * )
4419 unported=yes
4420 ;;
4421 esac
4422 fi
4423
4424
4425
4426 if test $unported = yes; then
4427 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4428 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4429 fi
4430
4431 if test -n "$machine"; then
4432 machfile="m/${machine}.h"
4433 else
4434 machfile=
4435 fi
4436 opsysfile="s/${opsys}.h"
4437
4438
4439 #### Choose a compiler.
4440 test -n "$CC" && cc_specified=yes
4441
4442 # Save the value of CFLAGS that the user specified.
4443 SPECIFIED_CFLAGS="$CFLAGS"
4444
4445 ac_ext=c
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 if test -n "$ac_tool_prefix"; then
4451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4452 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_CC+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457 else
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 fi
4477 fi
4478 CC=$ac_cv_prog_CC
4479 if test -n "$CC"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 $as_echo "$CC" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487
4488 fi
4489 if test -z "$ac_cv_prog_CC"; then
4490 ac_ct_CC=$CC
4491 # Extract the first word of "gcc", so it can be a program name with args.
4492 set dummy gcc; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 if test -n "$ac_ct_CC"; then
4499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4508 ac_cv_prog_ac_ct_CC="gcc"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512 done
4513 done
4514 IFS=$as_save_IFS
4515
4516 fi
4517 fi
4518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4519 if test -n "$ac_ct_CC"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4521 $as_echo "$ac_ct_CC" >&6; }
4522 else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4525 fi
4526
4527 if test "x$ac_ct_CC" = x; then
4528 CC=""
4529 else
4530 case $cross_compiling:$ac_tool_warned in
4531 yes:)
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534 ac_tool_warned=yes ;;
4535 esac
4536 CC=$ac_ct_CC
4537 fi
4538 else
4539 CC="$ac_cv_prog_CC"
4540 fi
4541
4542 if test -z "$CC"; then
4543 if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4545 set dummy ${ac_tool_prefix}cc; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_CC="${ac_tool_prefix}cc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4564 fi
4565 done
4566 done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 CC=$ac_cv_prog_CC
4572 if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581 fi
4582 fi
4583 if test -z "$CC"; then
4584 # Extract the first word of "cc", so it can be a program name with args.
4585 set dummy cc; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_CC+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$CC"; then
4592 ac_cv_prog_CC="$CC" # Let the user override the test.
4593 else
4594 ac_prog_rejected=no
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4603 ac_prog_rejected=yes
4604 continue
4605 fi
4606 ac_cv_prog_CC="cc"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610 done
4611 done
4612 IFS=$as_save_IFS
4613
4614 if test $ac_prog_rejected = yes; then
4615 # We found a bogon in the path, so make sure we never use it.
4616 set dummy $ac_cv_prog_CC
4617 shift
4618 if test $# != 0; then
4619 # We chose a different compiler from the bogus one.
4620 # However, it has the same basename, so the bogon will be chosen
4621 # first if we set CC to just the basename; use the full file name.
4622 shift
4623 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4624 fi
4625 fi
4626 fi
4627 fi
4628 CC=$ac_cv_prog_CC
4629 if test -n "$CC"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4631 $as_echo "$CC" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4635 fi
4636
4637
4638 fi
4639 if test -z "$CC"; then
4640 if test -n "$ac_tool_prefix"; then
4641 for ac_prog in cl.exe
4642 do
4643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_CC+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$CC"; then
4651 ac_cv_prog_CC="$CC" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 CC=$ac_cv_prog_CC
4671 if test -n "$CC"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673 $as_echo "$CC" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 test -n "$CC" && break
4681 done
4682 fi
4683 if test -z "$CC"; then
4684 ac_ct_CC=$CC
4685 for ac_prog in cl.exe
4686 do
4687 # Extract the first word of "$ac_prog", so it can be a program name with args.
4688 set dummy $ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_CC"; then
4695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_CC="$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717 $as_echo "$ac_ct_CC" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4721 fi
4722
4723
4724 test -n "$ac_ct_CC" && break
4725 done
4726
4727 if test "x$ac_ct_CC" = x; then
4728 CC=""
4729 else
4730 case $cross_compiling:$ac_tool_warned in
4731 yes:)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned=yes ;;
4735 esac
4736 CC=$ac_ct_CC
4737 fi
4738 fi
4739
4740 fi
4741
4742
4743 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745 as_fn_error $? "no acceptable C compiler found in \$PATH
4746 See \`config.log' for more details" "$LINENO" 5; }
4747
4748 # Provide some information about the compiler.
4749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4750 set X $ac_compile
4751 ac_compiler=$2
4752 for ac_option in --version -v -V -qversion; do
4753 { { ac_try="$ac_compiler $ac_option >&5"
4754 case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757 esac
4758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759 $as_echo "$ac_try_echo"; } >&5
4760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4761 ac_status=$?
4762 if test -s conftest.err; then
4763 sed '10a\
4764 ... rest of stderr output deleted ...
4765 10q' conftest.err >conftest.er1
4766 cat conftest.er1 >&5
4767 fi
4768 rm -f conftest.er1 conftest.err
4769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770 test $ac_status = 0; }
4771 done
4772
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775
4776 int
4777 main ()
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 ac_clean_files_save=$ac_clean_files
4785 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4786 # Try to create an executable without -o first, disregard a.out.
4787 # It will help us diagnose broken compilers, and finding out an intuition
4788 # of exeext.
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4790 $as_echo_n "checking whether the C compiler works... " >&6; }
4791 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4792
4793 # The possible output files:
4794 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4795
4796 ac_rmfiles=
4797 for ac_file in $ac_files
4798 do
4799 case $ac_file in
4800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4801 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4802 esac
4803 done
4804 rm -f $ac_rmfiles
4805
4806 if { { ac_try="$ac_link_default"
4807 case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4812 $as_echo "$ac_try_echo"; } >&5
4813 (eval "$ac_link_default") 2>&5
4814 ac_status=$?
4815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4816 test $ac_status = 0; }; then :
4817 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4818 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4819 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4820 # so that the user can short-circuit this test for compilers unknown to
4821 # Autoconf.
4822 for ac_file in $ac_files ''
4823 do
4824 test -f "$ac_file" || continue
4825 case $ac_file in
4826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4827 ;;
4828 [ab].out )
4829 # We found the default executable, but exeext='' is most
4830 # certainly right.
4831 break;;
4832 *.* )
4833 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4834 then :; else
4835 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4836 fi
4837 # We set ac_cv_exeext here because the later test for it is not
4838 # safe: cross compilers may not add the suffix if given an `-o'
4839 # argument, so we may need to know it at that point already.
4840 # Even if this section looks crufty: it has the advantage of
4841 # actually working.
4842 break;;
4843 * )
4844 break;;
4845 esac
4846 done
4847 test "$ac_cv_exeext" = no && ac_cv_exeext=
4848
4849 else
4850 ac_file=''
4851 fi
4852 if test -z "$ac_file"; then :
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 $as_echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4860 as_fn_error 77 "C compiler cannot create executables
4861 See \`config.log' for more details" "$LINENO" 5; }
4862 else
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864 $as_echo "yes" >&6; }
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4867 $as_echo_n "checking for C compiler default output file name... " >&6; }
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4869 $as_echo "$ac_file" >&6; }
4870 ac_exeext=$ac_cv_exeext
4871
4872 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4873 ac_clean_files=$ac_clean_files_save
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4875 $as_echo_n "checking for suffix of executables... " >&6; }
4876 if { { ac_try="$ac_link"
4877 case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4882 $as_echo "$ac_try_echo"; } >&5
4883 (eval "$ac_link") 2>&5
4884 ac_status=$?
4885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4886 test $ac_status = 0; }; then :
4887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4889 # work properly (i.e., refer to `conftest.exe'), while it won't with
4890 # `rm'.
4891 for ac_file in conftest.exe conftest conftest.*; do
4892 test -f "$ac_file" || continue
4893 case $ac_file in
4894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4896 break;;
4897 * ) break;;
4898 esac
4899 done
4900 else
4901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4903 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4904 See \`config.log' for more details" "$LINENO" 5; }
4905 fi
4906 rm -f conftest conftest$ac_cv_exeext
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4908 $as_echo "$ac_cv_exeext" >&6; }
4909
4910 rm -f conftest.$ac_ext
4911 EXEEXT=$ac_cv_exeext
4912 ac_exeext=$EXEEXT
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #include <stdio.h>
4916 int
4917 main ()
4918 {
4919 FILE *f = fopen ("conftest.out", "w");
4920 return ferror (f) || fclose (f) != 0;
4921
4922 ;
4923 return 0;
4924 }
4925 _ACEOF
4926 ac_clean_files="$ac_clean_files conftest.out"
4927 # Check that the compiler produces executables we can run. If not, either
4928 # the compiler is broken, or we cross compile.
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4930 $as_echo_n "checking whether we are cross compiling... " >&6; }
4931 if test "$cross_compiling" != yes; then
4932 { { ac_try="$ac_link"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4938 $as_echo "$ac_try_echo"; } >&5
4939 (eval "$ac_link") 2>&5
4940 ac_status=$?
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }
4943 if { ac_try='./conftest$ac_cv_exeext'
4944 { { case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947 esac
4948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4949 $as_echo "$ac_try_echo"; } >&5
4950 (eval "$ac_try") 2>&5
4951 ac_status=$?
4952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4953 test $ac_status = 0; }; }; then
4954 cross_compiling=no
4955 else
4956 if test "$cross_compiling" = maybe; then
4957 cross_compiling=yes
4958 else
4959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4961 as_fn_error $? "cannot run C compiled programs.
4962 If you meant to cross compile, use \`--host'.
4963 See \`config.log' for more details" "$LINENO" 5; }
4964 fi
4965 fi
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4968 $as_echo "$cross_compiling" >&6; }
4969
4970 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4971 ac_clean_files=$ac_clean_files_save
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4973 $as_echo_n "checking for suffix of object files... " >&6; }
4974 if ${ac_cv_objext+:} false; then :
4975 $as_echo_n "(cached) " >&6
4976 else
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4979
4980 int
4981 main ()
4982 {
4983
4984 ;
4985 return 0;
4986 }
4987 _ACEOF
4988 rm -f conftest.o conftest.obj
4989 if { { ac_try="$ac_compile"
4990 case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993 esac
4994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4995 $as_echo "$ac_try_echo"; } >&5
4996 (eval "$ac_compile") 2>&5
4997 ac_status=$?
4998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999 test $ac_status = 0; }; then :
5000 for ac_file in conftest.o conftest.obj conftest.*; do
5001 test -f "$ac_file" || continue;
5002 case $ac_file in
5003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5005 break;;
5006 esac
5007 done
5008 else
5009 $as_echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5014 as_fn_error $? "cannot compute suffix of object files: cannot compile
5015 See \`config.log' for more details" "$LINENO" 5; }
5016 fi
5017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5018 fi
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5020 $as_echo "$ac_cv_objext" >&6; }
5021 OBJEXT=$ac_cv_objext
5022 ac_objext=$OBJEXT
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5025 if ${ac_cv_c_compiler_gnu+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030
5031 int
5032 main ()
5033 {
5034 #ifndef __GNUC__
5035 choke me
5036 #endif
5037
5038 ;
5039 return 0;
5040 }
5041 _ACEOF
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_compiler_gnu=yes
5044 else
5045 ac_compiler_gnu=no
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5049
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5053 if test $ac_compiler_gnu = yes; then
5054 GCC=yes
5055 else
5056 GCC=
5057 fi
5058 ac_test_CFLAGS=${CFLAGS+set}
5059 ac_save_CFLAGS=$CFLAGS
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5062 if ${ac_cv_prog_cc_g+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 ac_save_c_werror_flag=$ac_c_werror_flag
5066 ac_c_werror_flag=yes
5067 ac_cv_prog_cc_g=no
5068 CFLAGS="-g"
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071
5072 int
5073 main ()
5074 {
5075
5076 ;
5077 return 0;
5078 }
5079 _ACEOF
5080 if ac_fn_c_try_compile "$LINENO"; then :
5081 ac_cv_prog_cc_g=yes
5082 else
5083 CFLAGS=""
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086
5087 int
5088 main ()
5089 {
5090
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096
5097 else
5098 ac_c_werror_flag=$ac_save_c_werror_flag
5099 CFLAGS="-g"
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102
5103 int
5104 main ()
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_prog_cc_g=yes
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5119 ac_c_werror_flag=$ac_save_c_werror_flag
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5122 $as_echo "$ac_cv_prog_cc_g" >&6; }
5123 if test "$ac_test_CFLAGS" = set; then
5124 CFLAGS=$ac_save_CFLAGS
5125 elif test $ac_cv_prog_cc_g = yes; then
5126 if test "$GCC" = yes; then
5127 CFLAGS="-g -O2"
5128 else
5129 CFLAGS="-g"
5130 fi
5131 else
5132 if test "$GCC" = yes; then
5133 CFLAGS="-O2"
5134 else
5135 CFLAGS=
5136 fi
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5140 if ${ac_cv_prog_cc_c89+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 ac_cv_prog_cc_c89=no
5144 ac_save_CC=$CC
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <stdarg.h>
5148 #include <stdio.h>
5149 #include <sys/types.h>
5150 #include <sys/stat.h>
5151 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5152 struct buf { int x; };
5153 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5154 static char *e (p, i)
5155 char **p;
5156 int i;
5157 {
5158 return p[i];
5159 }
5160 static char *f (char * (*g) (char **, int), char **p, ...)
5161 {
5162 char *s;
5163 va_list v;
5164 va_start (v,p);
5165 s = g (p, va_arg (v,int));
5166 va_end (v);
5167 return s;
5168 }
5169
5170 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5171 function prototypes and stuff, but not '\xHH' hex character constants.
5172 These don't provoke an error unfortunately, instead are silently treated
5173 as 'x'. The following induces an error, until -std is added to get
5174 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5175 array size at least. It's necessary to write '\x00'==0 to get something
5176 that's true only with -std. */
5177 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5178
5179 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5180 inside strings and character constants. */
5181 #define FOO(x) 'x'
5182 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5183
5184 int test (int i, double x);
5185 struct s1 {int (*f) (int a);};
5186 struct s2 {int (*f) (double a);};
5187 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5188 int argc;
5189 char **argv;
5190 int
5191 main ()
5192 {
5193 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5194 ;
5195 return 0;
5196 }
5197 _ACEOF
5198 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5199 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5200 do
5201 CC="$ac_save_CC $ac_arg"
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203 ac_cv_prog_cc_c89=$ac_arg
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext
5206 test "x$ac_cv_prog_cc_c89" != "xno" && break
5207 done
5208 rm -f conftest.$ac_ext
5209 CC=$ac_save_CC
5210
5211 fi
5212 # AC_CACHE_VAL
5213 case "x$ac_cv_prog_cc_c89" in
5214 x)
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5216 $as_echo "none needed" >&6; } ;;
5217 xno)
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5219 $as_echo "unsupported" >&6; } ;;
5220 *)
5221 CC="$CC $ac_cv_prog_cc_c89"
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5223 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5224 esac
5225 if test "x$ac_cv_prog_cc_c89" != xno; then :
5226
5227 fi
5228
5229 ac_ext=c
5230 ac_cpp='$CPP $CPPFLAGS'
5231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234 DEPDIR="${am__leading_dot}deps"
5235
5236 ac_config_commands="$ac_config_commands depfiles"
5237
5238
5239 am_make=${MAKE-make}
5240 cat > confinc << 'END'
5241 am__doit:
5242 @echo this is the am__doit target
5243 .PHONY: am__doit
5244 END
5245 # If we don't find an include directive, just comment out the code.
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5247 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5248 am__include="#"
5249 am__quote=
5250 _am_result=none
5251 # First try GNU make style include.
5252 echo "include confinc" > confmf
5253 # Ignore all kinds of additional output from `make'.
5254 case `$am_make -s -f confmf 2> /dev/null` in #(
5255 *the\ am__doit\ target*)
5256 am__include=include
5257 am__quote=
5258 _am_result=GNU
5259 ;;
5260 esac
5261 # Now try BSD make style include.
5262 if test "$am__include" = "#"; then
5263 echo '.include "confinc"' > confmf
5264 case `$am_make -s -f confmf 2> /dev/null` in #(
5265 *the\ am__doit\ target*)
5266 am__include=.include
5267 am__quote="\""
5268 _am_result=BSD
5269 ;;
5270 esac
5271 fi
5272
5273
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5275 $as_echo "$_am_result" >&6; }
5276 rm -f confinc confmf
5277
5278 # Check whether --enable-dependency-tracking was given.
5279 if test "${enable_dependency_tracking+set}" = set; then :
5280 enableval=$enable_dependency_tracking;
5281 fi
5282
5283 if test "x$enable_dependency_tracking" != xno; then
5284 am_depcomp="$ac_aux_dir/depcomp"
5285 AMDEPBACKSLASH='\'
5286 fi
5287 if test "x$enable_dependency_tracking" != xno; then
5288 AMDEP_TRUE=
5289 AMDEP_FALSE='#'
5290 else
5291 AMDEP_TRUE='#'
5292 AMDEP_FALSE=
5293 fi
5294
5295
5296
5297 depcc="$CC" am_compiler_list=
5298
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5300 $as_echo_n "checking dependency style of $depcc... " >&6; }
5301 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5305 # We make a subdir and do the tests there. Otherwise we can end up
5306 # making bogus files that we don't know about and never remove. For
5307 # instance it was reported that on HP-UX the gcc test will end up
5308 # making a dummy file named `D' -- because `-MD' means `put the output
5309 # in D'.
5310 mkdir conftest.dir
5311 # Copy depcomp to subdir because otherwise we won't find it if we're
5312 # using a relative directory.
5313 cp "$am_depcomp" conftest.dir
5314 cd conftest.dir
5315 # We will build objects and dependencies in a subdirectory because
5316 # it helps to detect inapplicable dependency modes. For instance
5317 # both Tru64's cc and ICC support -MD to output dependencies as a
5318 # side effect of compilation, but ICC will put the dependencies in
5319 # the current directory while Tru64 will put them in the object
5320 # directory.
5321 mkdir sub
5322
5323 am_cv_CC_dependencies_compiler_type=none
5324 if test "$am_compiler_list" = ""; then
5325 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5326 fi
5327 am__universal=false
5328 case " $depcc " in #(
5329 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5330 esac
5331
5332 for depmode in $am_compiler_list; do
5333 # Setup a source with many dependencies, because some compilers
5334 # like to wrap large dependency lists on column 80 (with \), and
5335 # we should not choose a depcomp mode which is confused by this.
5336 #
5337 # We need to recreate these files for each test, as the compiler may
5338 # overwrite some of them when testing with obscure command lines.
5339 # This happens at least with the AIX C compiler.
5340 : > sub/conftest.c
5341 for i in 1 2 3 4 5 6; do
5342 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5343 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5344 # Solaris 8's {/usr,}/bin/sh.
5345 touch sub/conftst$i.h
5346 done
5347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5348
5349 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5350 # mode. It turns out that the SunPro C++ compiler does not properly
5351 # handle `-M -o', and we need to detect this. Also, some Intel
5352 # versions had trouble with output in subdirs
5353 am__obj=sub/conftest.${OBJEXT-o}
5354 am__minus_obj="-o $am__obj"
5355 case $depmode in
5356 gcc)
5357 # This depmode causes a compiler race in universal mode.
5358 test "$am__universal" = false || continue
5359 ;;
5360 nosideeffect)
5361 # after this tag, mechanisms are not by side-effect, so they'll
5362 # only be used when explicitly requested
5363 if test "x$enable_dependency_tracking" = xyes; then
5364 continue
5365 else
5366 break
5367 fi
5368 ;;
5369 msvisualcpp | msvcmsys)
5370 # This compiler won't grok `-c -o', but also, the minuso test has
5371 # not run yet. These depmodes are late enough in the game, and
5372 # so weak that their functioning should not be impacted.
5373 am__obj=conftest.${OBJEXT-o}
5374 am__minus_obj=
5375 ;;
5376 none) break ;;
5377 esac
5378 if depmode=$depmode \
5379 source=sub/conftest.c object=$am__obj \
5380 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5381 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5382 >/dev/null 2>conftest.err &&
5383 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5385 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5387 # icc doesn't choke on unknown options, it will just issue warnings
5388 # or remarks (even with -Werror). So we grep stderr for any message
5389 # that says an option was ignored or not supported.
5390 # When given -MP, icc 7.0 and 7.1 complain thusly:
5391 # icc: Command line warning: ignoring option '-M'; no argument required
5392 # The diagnosis changed in icc 8.0:
5393 # icc: Command line remark: option '-MP' not supported
5394 if (grep 'ignoring option' conftest.err ||
5395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5396 am_cv_CC_dependencies_compiler_type=$depmode
5397 break
5398 fi
5399 fi
5400 done
5401
5402 cd ..
5403 rm -rf conftest.dir
5404 else
5405 am_cv_CC_dependencies_compiler_type=none
5406 fi
5407
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5410 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5411 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5412
5413 if
5414 test "x$enable_dependency_tracking" != xno \
5415 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5416 am__fastdepCC_TRUE=
5417 am__fastdepCC_FALSE='#'
5418 else
5419 am__fastdepCC_TRUE='#'
5420 am__fastdepCC_FALSE=
5421 fi
5422
5423
5424 if test "x$CC" != xcc; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5426 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5429 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5430 fi
5431 set dummy $CC; ac_cc=`$as_echo "$2" |
5432 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5433 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438
5439 int
5440 main ()
5441 {
5442
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 # Make sure it works both with $CC and with simple cc.
5448 # We do the test twice because some compilers refuse to overwrite an
5449 # existing .o file with -o, though they will create one.
5450 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5451 rm -f conftest2.*
5452 if { { case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5457 $as_echo "$ac_try_echo"; } >&5
5458 (eval "$ac_try") 2>&5
5459 ac_status=$?
5460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5461 test $ac_status = 0; } &&
5462 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5467 $as_echo "$ac_try_echo"; } >&5
5468 (eval "$ac_try") 2>&5
5469 ac_status=$?
5470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5471 test $ac_status = 0; };
5472 then
5473 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5474 if test "x$CC" != xcc; then
5475 # Test first that cc exists at all.
5476 if { ac_try='cc -c conftest.$ac_ext >&5'
5477 { { case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480 esac
5481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5482 $as_echo "$ac_try_echo"; } >&5
5483 (eval "$ac_try") 2>&5
5484 ac_status=$?
5485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5486 test $ac_status = 0; }; }; then
5487 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5488 rm -f conftest2.*
5489 if { { case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5494 $as_echo "$ac_try_echo"; } >&5
5495 (eval "$ac_try") 2>&5
5496 ac_status=$?
5497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5498 test $ac_status = 0; } &&
5499 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502 esac
5503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5504 $as_echo "$ac_try_echo"; } >&5
5505 (eval "$ac_try") 2>&5
5506 ac_status=$?
5507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5508 test $ac_status = 0; };
5509 then
5510 # cc works too.
5511 :
5512 else
5513 # cc exists but doesn't like -o.
5514 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5515 fi
5516 fi
5517 fi
5518 else
5519 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5520 fi
5521 rm -f core conftest*
5522
5523 fi
5524 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5526 $as_echo "yes" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530
5531 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5532
5533 fi
5534
5535 # FIXME: we rely on the cache variable name because
5536 # there is no other way.
5537 set dummy $CC
5538 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5539 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5540 if test "$am_t" != yes; then
5541 # Losing compiler, so override with the script.
5542 # FIXME: It is wrong to rewrite CC.
5543 # But if we don't then we get into trouble of one sort or another.
5544 # A longer-term fix would be to have automake use am__CC in this case,
5545 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5546 CC="$am_aux_dir/compile $CC"
5547 fi
5548
5549
5550
5551 # Initialize gnulib right after verifying that the C compiler works.
5552 if test -n "$ac_tool_prefix"; then
5553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5554 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if ${ac_cv_prog_RANLIB+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$RANLIB"; then
5561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 RANLIB=$ac_cv_prog_RANLIB
5581 if test -n "$RANLIB"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5583 $as_echo "$RANLIB" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590 fi
5591 if test -z "$ac_cv_prog_RANLIB"; then
5592 ac_ct_RANLIB=$RANLIB
5593 # Extract the first word of "ranlib", so it can be a program name with args.
5594 set dummy ranlib; ac_word=$2
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if test -n "$ac_ct_RANLIB"; then
5601 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_prog_ac_ct_RANLIB="ranlib"
5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5621 if test -n "$ac_ct_RANLIB"; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5623 $as_echo "$ac_ct_RANLIB" >&6; }
5624 else
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629 if test "x$ac_ct_RANLIB" = x; then
5630 RANLIB=":"
5631 else
5632 case $cross_compiling:$ac_tool_warned in
5633 yes:)
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5636 ac_tool_warned=yes ;;
5637 esac
5638 RANLIB=$ac_ct_RANLIB
5639 fi
5640 else
5641 RANLIB="$ac_cv_prog_RANLIB"
5642 fi
5643
5644
5645 ac_ext=c
5646 ac_cpp='$CPP $CPPFLAGS'
5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5651 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5652 # On Suns, sometimes $CPP names a directory.
5653 if test -n "$CPP" && test -d "$CPP"; then
5654 CPP=
5655 fi
5656 if test -z "$CPP"; then
5657 if ${ac_cv_prog_CPP+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 # Double quotes because CPP needs to be expanded
5661 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5662 do
5663 ac_preproc_ok=false
5664 for ac_c_preproc_warn_flag in '' yes
5665 do
5666 # Use a header file that comes with gcc, so configuring glibc
5667 # with a fresh cross-compiler works.
5668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669 # <limits.h> exists even on freestanding compilers.
5670 # On the NeXT, cc -E runs the code through the compiler's parser,
5671 # not just through cpp. "Syntax error" is here to catch this case.
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #ifdef __STDC__
5675 # include <limits.h>
5676 #else
5677 # include <assert.h>
5678 #endif
5679 Syntax error
5680 _ACEOF
5681 if ac_fn_c_try_cpp "$LINENO"; then :
5682
5683 else
5684 # Broken: fails on valid input.
5685 continue
5686 fi
5687 rm -f conftest.err conftest.i conftest.$ac_ext
5688
5689 # OK, works on sane cases. Now check whether nonexistent headers
5690 # can be detected and how.
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #include <ac_nonexistent.h>
5694 _ACEOF
5695 if ac_fn_c_try_cpp "$LINENO"; then :
5696 # Broken: success on invalid input.
5697 continue
5698 else
5699 # Passes both tests.
5700 ac_preproc_ok=:
5701 break
5702 fi
5703 rm -f conftest.err conftest.i conftest.$ac_ext
5704
5705 done
5706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5707 rm -f conftest.i conftest.err conftest.$ac_ext
5708 if $ac_preproc_ok; then :
5709 break
5710 fi
5711
5712 done
5713 ac_cv_prog_CPP=$CPP
5714
5715 fi
5716 CPP=$ac_cv_prog_CPP
5717 else
5718 ac_cv_prog_CPP=$CPP
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5721 $as_echo "$CPP" >&6; }
5722 ac_preproc_ok=false
5723 for ac_c_preproc_warn_flag in '' yes
5724 do
5725 # Use a header file that comes with gcc, so configuring glibc
5726 # with a fresh cross-compiler works.
5727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5728 # <limits.h> exists even on freestanding compilers.
5729 # On the NeXT, cc -E runs the code through the compiler's parser,
5730 # not just through cpp. "Syntax error" is here to catch this case.
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 #ifdef __STDC__
5734 # include <limits.h>
5735 #else
5736 # include <assert.h>
5737 #endif
5738 Syntax error
5739 _ACEOF
5740 if ac_fn_c_try_cpp "$LINENO"; then :
5741
5742 else
5743 # Broken: fails on valid input.
5744 continue
5745 fi
5746 rm -f conftest.err conftest.i conftest.$ac_ext
5747
5748 # OK, works on sane cases. Now check whether nonexistent headers
5749 # can be detected and how.
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #include <ac_nonexistent.h>
5753 _ACEOF
5754 if ac_fn_c_try_cpp "$LINENO"; then :
5755 # Broken: success on invalid input.
5756 continue
5757 else
5758 # Passes both tests.
5759 ac_preproc_ok=:
5760 break
5761 fi
5762 rm -f conftest.err conftest.i conftest.$ac_ext
5763
5764 done
5765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5766 rm -f conftest.i conftest.err conftest.$ac_ext
5767 if $ac_preproc_ok; then :
5768
5769 else
5770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5772 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5773 See \`config.log' for more details" "$LINENO" 5; }
5774 fi
5775
5776 ac_ext=c
5777 ac_cpp='$CPP $CPPFLAGS'
5778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5781
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5784 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5785 if ${ac_cv_path_GREP+:} false; then :
5786 $as_echo_n "(cached) " >&6
5787 else
5788 if test -z "$GREP"; then
5789 ac_path_GREP_found=false
5790 # Loop through the user's path and test for each of PROGNAME-LIST
5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5793 do
5794 IFS=$as_save_IFS
5795 test -z "$as_dir" && as_dir=.
5796 for ac_prog in grep ggrep; do
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5799 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5800 # Check for GNU ac_path_GREP and select it if it is found.
5801 # Check for GNU $ac_path_GREP
5802 case `"$ac_path_GREP" --version 2>&1` in
5803 *GNU*)
5804 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5805 *)
5806 ac_count=0
5807 $as_echo_n 0123456789 >"conftest.in"
5808 while :
5809 do
5810 cat "conftest.in" "conftest.in" >"conftest.tmp"
5811 mv "conftest.tmp" "conftest.in"
5812 cp "conftest.in" "conftest.nl"
5813 $as_echo 'GREP' >> "conftest.nl"
5814 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5816 as_fn_arith $ac_count + 1 && ac_count=$as_val
5817 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5818 # Best one so far, save it but keep looking for a better one
5819 ac_cv_path_GREP="$ac_path_GREP"
5820 ac_path_GREP_max=$ac_count
5821 fi
5822 # 10*(2^10) chars as input seems more than enough
5823 test $ac_count -gt 10 && break
5824 done
5825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5826 esac
5827
5828 $ac_path_GREP_found && break 3
5829 done
5830 done
5831 done
5832 IFS=$as_save_IFS
5833 if test -z "$ac_cv_path_GREP"; then
5834 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5835 fi
5836 else
5837 ac_cv_path_GREP=$GREP
5838 fi
5839
5840 fi
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5842 $as_echo "$ac_cv_path_GREP" >&6; }
5843 GREP="$ac_cv_path_GREP"
5844
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5847 $as_echo_n "checking for egrep... " >&6; }
5848 if ${ac_cv_path_EGREP+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5852 then ac_cv_path_EGREP="$GREP -E"
5853 else
5854 if test -z "$EGREP"; then
5855 ac_path_EGREP_found=false
5856 # Loop through the user's path and test for each of PROGNAME-LIST
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5859 do
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_prog in egrep; do
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5865 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5866 # Check for GNU ac_path_EGREP and select it if it is found.
5867 # Check for GNU $ac_path_EGREP
5868 case `"$ac_path_EGREP" --version 2>&1` in
5869 *GNU*)
5870 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5871 *)
5872 ac_count=0
5873 $as_echo_n 0123456789 >"conftest.in"
5874 while :
5875 do
5876 cat "conftest.in" "conftest.in" >"conftest.tmp"
5877 mv "conftest.tmp" "conftest.in"
5878 cp "conftest.in" "conftest.nl"
5879 $as_echo 'EGREP' >> "conftest.nl"
5880 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5882 as_fn_arith $ac_count + 1 && ac_count=$as_val
5883 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5884 # Best one so far, save it but keep looking for a better one
5885 ac_cv_path_EGREP="$ac_path_EGREP"
5886 ac_path_EGREP_max=$ac_count
5887 fi
5888 # 10*(2^10) chars as input seems more than enough
5889 test $ac_count -gt 10 && break
5890 done
5891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5892 esac
5893
5894 $ac_path_EGREP_found && break 3
5895 done
5896 done
5897 done
5898 IFS=$as_save_IFS
5899 if test -z "$ac_cv_path_EGREP"; then
5900 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5901 fi
5902 else
5903 ac_cv_path_EGREP=$EGREP
5904 fi
5905
5906 fi
5907 fi
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5909 $as_echo "$ac_cv_path_EGREP" >&6; }
5910 EGREP="$ac_cv_path_EGREP"
5911
5912
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5914 $as_echo_n "checking for ANSI C header files... " >&6; }
5915 if ${ac_cv_header_stdc+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 #include <stdlib.h>
5921 #include <stdarg.h>
5922 #include <string.h>
5923 #include <float.h>
5924
5925 int
5926 main ()
5927 {
5928
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 if ac_fn_c_try_compile "$LINENO"; then :
5934 ac_cv_header_stdc=yes
5935 else
5936 ac_cv_header_stdc=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939
5940 if test $ac_cv_header_stdc = yes; then
5941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #include <string.h>
5945
5946 _ACEOF
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "memchr" >/dev/null 2>&1; then :
5949
5950 else
5951 ac_cv_header_stdc=no
5952 fi
5953 rm -f conftest*
5954
5955 fi
5956
5957 if test $ac_cv_header_stdc = yes; then
5958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 #include <stdlib.h>
5962
5963 _ACEOF
5964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965 $EGREP "free" >/dev/null 2>&1; then :
5966
5967 else
5968 ac_cv_header_stdc=no
5969 fi
5970 rm -f conftest*
5971
5972 fi
5973
5974 if test $ac_cv_header_stdc = yes; then
5975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5976 if test "$cross_compiling" = yes; then :
5977 :
5978 else
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 #include <ctype.h>
5982 #include <stdlib.h>
5983 #if ((' ' & 0x0FF) == 0x020)
5984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5986 #else
5987 # define ISLOWER(c) \
5988 (('a' <= (c) && (c) <= 'i') \
5989 || ('j' <= (c) && (c) <= 'r') \
5990 || ('s' <= (c) && (c) <= 'z'))
5991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5992 #endif
5993
5994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5995 int
5996 main ()
5997 {
5998 int i;
5999 for (i = 0; i < 256; i++)
6000 if (XOR (islower (i), ISLOWER (i))
6001 || toupper (i) != TOUPPER (i))
6002 return 2;
6003 return 0;
6004 }
6005 _ACEOF
6006 if ac_fn_c_try_run "$LINENO"; then :
6007
6008 else
6009 ac_cv_header_stdc=no
6010 fi
6011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6012 conftest.$ac_objext conftest.beam conftest.$ac_ext
6013 fi
6014
6015 fi
6016 fi
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6018 $as_echo "$ac_cv_header_stdc" >&6; }
6019 if test $ac_cv_header_stdc = yes; then
6020
6021 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6022
6023 fi
6024
6025 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6027 inttypes.h stdint.h unistd.h
6028 do :
6029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6031 "
6032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6033 cat >>confdefs.h <<_ACEOF
6034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6035 _ACEOF
6036
6037 fi
6038
6039 done
6040
6041
6042
6043
6044
6045 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6046 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6047 MINIX=yes
6048 else
6049 MINIX=
6050 fi
6051
6052
6053 if test "$MINIX" = yes; then
6054
6055 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6056
6057
6058 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6059
6060
6061 $as_echo "#define _MINIX 1" >>confdefs.h
6062
6063 fi
6064
6065 case "$host_os" in
6066 hpux*)
6067
6068 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6069
6070 ;;
6071 esac
6072
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6075 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6076 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081
6082 # define __EXTENSIONS__ 1
6083 $ac_includes_default
6084 int
6085 main ()
6086 {
6087
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 ac_cv_safe_to_define___extensions__=yes
6094 else
6095 ac_cv_safe_to_define___extensions__=no
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6100 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6101 test $ac_cv_safe_to_define___extensions__ = yes &&
6102 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6103
6104 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6105
6106 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6107
6108 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6109
6110 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121 # Code from module arg-nonnull:
6122 # Code from module c++defs:
6123 # Code from module crypto/md5:
6124 # Code from module dtoastr:
6125 # Code from module extensions:
6126
6127 # Code from module filemode:
6128 # Code from module getloadavg:
6129 # Code from module getopt-gnu:
6130 # Code from module getopt-posix:
6131 # Code from module gettext-h:
6132 # Code from module ignore-value:
6133 # Code from module include_next:
6134 # Code from module intprops:
6135 # Code from module mktime:
6136 # Code from module multiarch:
6137 # Code from module stdbool:
6138 # Code from module stddef:
6139 # Code from module stdint:
6140 # Code from module stdlib:
6141 # Code from module strftime:
6142 # Code from module sys_stat:
6143 # Code from module time:
6144 # Code from module time_r:
6145 # Code from module unistd:
6146 # Code from module warn-on-use:
6147
6148
6149 # On Suns, sometimes $CPP names a directory.
6150 if test -n "$CPP" && test -d "$CPP"; then
6151 CPP=
6152 fi
6153
6154 ## If not using gcc, and on Solaris, and no CPP specified, see if
6155 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6156 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6157 test x"$CPP" = x; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6159 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6160 if ${emacs_cv_sunpro_c+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165
6166 int
6167 main ()
6168 {
6169 #ifndef __SUNPRO_C
6170 fail;
6171 #endif
6172
6173 ;
6174 return 0;
6175 }
6176 _ACEOF
6177 if ac_fn_c_try_link "$LINENO"; then :
6178 emacs_cv_sunpro_c=yes
6179 else
6180 emacs_cv_sunpro_c=no
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6184 fi
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6187 $as_echo "$emacs_cv_sunpro_c" >&6; }
6188
6189 if test x"$emacs_cv_sunpro_c" = xyes; then
6190 NON_GNU_CPP="$CC -E -Xs"
6191 fi
6192 fi
6193
6194 #### Some systems specify a CPP to use unless we are using GCC.
6195 #### Now that we know whether we are using GCC, we can decide whether
6196 #### to use that one.
6197 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6198 then
6199 CPP="$NON_GNU_CPP"
6200 fi
6201
6202 #### Some systems specify a CC to use unless we are using GCC.
6203 #### Now that we know whether we are using GCC, we can decide whether
6204 #### to use that one.
6205 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6206 test x$cc_specified != xyes
6207 then
6208 CC="$NON_GNU_CC"
6209 fi
6210
6211 if test x$GCC = xyes; then
6212 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6213 else
6214 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6215 fi
6216
6217 ### Use -Wdeclaration-after-statement if the compiler supports it
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6219 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6220 SAVE_CFLAGS="$CFLAGS"
6221 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224
6225 int
6226 main ()
6227 {
6228
6229 ;
6230 return 0;
6231 }
6232 _ACEOF
6233 if ac_fn_c_try_compile "$LINENO"; then :
6234 has_option=yes
6235 else
6236 has_option=no
6237 fi
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 if test $has_option = yes; then
6240 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6243 $as_echo "$has_option" >&6; }
6244 CFLAGS="$SAVE_CFLAGS"
6245 unset has_option
6246 unset SAVE_CFLAGS
6247
6248 ### Use -Wold-style-definition if the compiler supports it
6249 # This can be removed when conversion to standard C is finished.
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6251 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6252 SAVE_CFLAGS="$CFLAGS"
6253 CFLAGS="$CFLAGS -Wold-style-definition"
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256
6257 int
6258 main ()
6259 {
6260
6261 ;
6262 return 0;
6263 }
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"; then :
6266 has_option=yes
6267 else
6268 has_option=no
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 if test $has_option = yes; then
6272 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6273 fi
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6275 $as_echo "$has_option" >&6; }
6276 CFLAGS="$SAVE_CFLAGS"
6277 unset has_option
6278 unset SAVE_CFLAGS
6279
6280 ### Use -Wimplicit-function-declaration if the compiler supports it
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6282 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6283 SAVE_CFLAGS="$CFLAGS"
6284 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287
6288 int
6289 main ()
6290 {
6291
6292 ;
6293 return 0;
6294 }
6295 _ACEOF
6296 if ac_fn_c_try_compile "$LINENO"; then :
6297 has_option=yes
6298 else
6299 has_option=no
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302 if test $has_option = yes; then
6303 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6306 $as_echo "$has_option" >&6; }
6307 CFLAGS="$SAVE_CFLAGS"
6308 unset has_option
6309 unset SAVE_CFLAGS
6310
6311
6312
6313
6314 #### Some other nice autoconf tests.
6315
6316 ac_ext=c
6317 ac_cpp='$CPP $CPPFLAGS'
6318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6322 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6323 # On Suns, sometimes $CPP names a directory.
6324 if test -n "$CPP" && test -d "$CPP"; then
6325 CPP=
6326 fi
6327 if test -z "$CPP"; then
6328 if ${ac_cv_prog_CPP+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 # Double quotes because CPP needs to be expanded
6332 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6333 do
6334 ac_preproc_ok=false
6335 for ac_c_preproc_warn_flag in '' yes
6336 do
6337 # Use a header file that comes with gcc, so configuring glibc
6338 # with a fresh cross-compiler works.
6339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340 # <limits.h> exists even on freestanding compilers.
6341 # On the NeXT, cc -E runs the code through the compiler's parser,
6342 # not just through cpp. "Syntax error" is here to catch this case.
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 #ifdef __STDC__
6346 # include <limits.h>
6347 #else
6348 # include <assert.h>
6349 #endif
6350 Syntax error
6351 _ACEOF
6352 if ac_fn_c_try_cpp "$LINENO"; then :
6353
6354 else
6355 # Broken: fails on valid input.
6356 continue
6357 fi
6358 rm -f conftest.err conftest.i conftest.$ac_ext
6359
6360 # OK, works on sane cases. Now check whether nonexistent headers
6361 # can be detected and how.
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #include <ac_nonexistent.h>
6365 _ACEOF
6366 if ac_fn_c_try_cpp "$LINENO"; then :
6367 # Broken: success on invalid input.
6368 continue
6369 else
6370 # Passes both tests.
6371 ac_preproc_ok=:
6372 break
6373 fi
6374 rm -f conftest.err conftest.i conftest.$ac_ext
6375
6376 done
6377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6378 rm -f conftest.i conftest.err conftest.$ac_ext
6379 if $ac_preproc_ok; then :
6380 break
6381 fi
6382
6383 done
6384 ac_cv_prog_CPP=$CPP
6385
6386 fi
6387 CPP=$ac_cv_prog_CPP
6388 else
6389 ac_cv_prog_CPP=$CPP
6390 fi
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6392 $as_echo "$CPP" >&6; }
6393 ac_preproc_ok=false
6394 for ac_c_preproc_warn_flag in '' yes
6395 do
6396 # Use a header file that comes with gcc, so configuring glibc
6397 # with a fresh cross-compiler works.
6398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6399 # <limits.h> exists even on freestanding compilers.
6400 # On the NeXT, cc -E runs the code through the compiler's parser,
6401 # not just through cpp. "Syntax error" is here to catch this case.
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 #ifdef __STDC__
6405 # include <limits.h>
6406 #else
6407 # include <assert.h>
6408 #endif
6409 Syntax error
6410 _ACEOF
6411 if ac_fn_c_try_cpp "$LINENO"; then :
6412
6413 else
6414 # Broken: fails on valid input.
6415 continue
6416 fi
6417 rm -f conftest.err conftest.i conftest.$ac_ext
6418
6419 # OK, works on sane cases. Now check whether nonexistent headers
6420 # can be detected and how.
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <ac_nonexistent.h>
6424 _ACEOF
6425 if ac_fn_c_try_cpp "$LINENO"; then :
6426 # Broken: success on invalid input.
6427 continue
6428 else
6429 # Passes both tests.
6430 ac_preproc_ok=:
6431 break
6432 fi
6433 rm -f conftest.err conftest.i conftest.$ac_ext
6434
6435 done
6436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6437 rm -f conftest.i conftest.err conftest.$ac_ext
6438 if $ac_preproc_ok; then :
6439
6440 else
6441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6443 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6444 See \`config.log' for more details" "$LINENO" 5; }
6445 fi
6446
6447 ac_ext=c
6448 ac_cpp='$CPP $CPPFLAGS'
6449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452
6453
6454 if test "x$RANLIB" = x; then
6455 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_RANLIB+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$RANLIB"; then
6464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 RANLIB=$ac_cv_prog_RANLIB
6484 if test -n "$RANLIB"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6486 $as_echo "$RANLIB" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492
6493 fi
6494 if test -z "$ac_cv_prog_RANLIB"; then
6495 ac_ct_RANLIB=$RANLIB
6496 # Extract the first word of "ranlib", so it can be a program name with args.
6497 set dummy ranlib; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test -n "$ac_ct_RANLIB"; then
6504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_ac_ct_RANLIB="ranlib"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6516 fi
6517 done
6518 done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6524 if test -n "$ac_ct_RANLIB"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6526 $as_echo "$ac_ct_RANLIB" >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532 if test "x$ac_ct_RANLIB" = x; then
6533 RANLIB=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 RANLIB=$ac_ct_RANLIB
6542 fi
6543 else
6544 RANLIB="$ac_cv_prog_RANLIB"
6545 fi
6546
6547 fi
6548
6549 ## Although we're running on an amd64 kernel, we're actually compiling for
6550 ## the x86 architecture. The user should probably have provided an
6551 ## explicit --build to `configure', but if everything else than the kernel
6552 ## is running in i386 mode, we can help them out.
6553 if test "$machine" = "amdx86-64"; then
6554 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6555 if test "x$ac_cv_have_decl_i386" = xyes; then :
6556
6557 fi
6558
6559 if test "$ac_cv_have_decl_i386" = "yes"; then
6560 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6561 machine=intel386
6562 machfile="m/${machine}.h"
6563 fi
6564 fi
6565
6566 # Extract the first word of "install-info", so it can be a program name with args.
6567 set dummy install-info; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 case $INSTALL_INFO in
6574 [\\/]* | ?:[\\/]*)
6575 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6576 ;;
6577 *)
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 ;;
6594 esac
6595 fi
6596 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6597 if test -n "$INSTALL_INFO"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6599 $as_echo "$INSTALL_INFO" >&6; }
6600 else
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605
6606 # Extract the first word of "install-info", so it can be a program name with args.
6607 set dummy install-info; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 case $INSTALL_INFO in
6614 [\\/]* | ?:[\\/]*)
6615 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6616 ;;
6617 *)
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in /usr/sbin
6620 do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 ;;
6634 esac
6635 fi
6636 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6637 if test -n "$INSTALL_INFO"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6639 $as_echo "$INSTALL_INFO" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645
6646 # Extract the first word of "install-info", so it can be a program name with args.
6647 set dummy install-info; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6651 $as_echo_n "(cached) " >&6
6652 else
6653 case $INSTALL_INFO in
6654 [\\/]* | ?:[\\/]*)
6655 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6656 ;;
6657 *)
6658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659 for as_dir in /sbin
6660 do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669 done
6670 done
6671 IFS=$as_save_IFS
6672
6673 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6674 ;;
6675 esac
6676 fi
6677 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6678 if test -n "$INSTALL_INFO"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6680 $as_echo "$INSTALL_INFO" >&6; }
6681 else
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686
6687 # Extract the first word of "gzip", so it can be a program name with args.
6688 set dummy gzip; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_path_GZIP_PROG+:} false; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 case $GZIP_PROG in
6695 [\\/]* | ?:[\\/]*)
6696 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6697 ;;
6698 *)
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714 ;;
6715 esac
6716 fi
6717 GZIP_PROG=$ac_cv_path_GZIP_PROG
6718 if test -n "$GZIP_PROG"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6720 $as_echo "$GZIP_PROG" >&6; }
6721 else
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6723 $as_echo "no" >&6; }
6724 fi
6725
6726
6727
6728
6729 ## Need makeinfo >= 4.6 (?) to build the manuals.
6730 # Extract the first word of "makeinfo", so it can be a program name with args.
6731 set dummy makeinfo; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if ${ac_cv_path_MAKEINFO+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 case $MAKEINFO in
6738 [\\/]* | ?:[\\/]*)
6739 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6740 ;;
6741 *)
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6758 ;;
6759 esac
6760 fi
6761 MAKEINFO=$ac_cv_path_MAKEINFO
6762 if test -n "$MAKEINFO"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6764 $as_echo "$MAKEINFO" >&6; }
6765 else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770
6771 if test "$MAKEINFO" != "no" && \
6772 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
6773 MAKEINFO=no
6774 fi
6775
6776 ## Makeinfo is unusual. For a released Emacs, the manuals are
6777 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6778 ## therefore in the category of "special tools" not normally required, which
6779 ## configure does not have to check for (eg autoconf itself).
6780 ## In a Bazaar checkout on the other hand, the manuals are not included.
6781 ## So makeinfo is a requirement to build from Bazaar, and configure
6782 ## should test for it as it does for any other build requirement.
6783 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6784 ## with pre-built manuals, from a Bazaar checkout.
6785 HAVE_MAKEINFO=yes
6786
6787 if test "$MAKEINFO" = "no"; then
6788 MAKEINFO=makeinfo
6789 if test "x${with_makeinfo}" = "xno"; then
6790 HAVE_MAKEINFO=no
6791 elif test ! -e $srcdir/info/emacs; then
6792 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6793 source tree does not seem to have pre-built manuals in the \`info' directory.
6794 Either install a suitable version of makeinfo, or re-run configure
6795 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6796 fi
6797 fi
6798
6799
6800
6801 if test x$GCC = xyes; then
6802 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6803 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6804 else
6805 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6806 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6807 fi
6808
6809
6810 late_LDFLAGS=$LDFLAGS
6811 if test x$GCC = xyes; then
6812 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6813 else
6814 LDFLAGS="$LDFLAGS -znocombreloc"
6815 fi
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6818 $as_echo_n "checking for -znocombreloc... " >&6; }
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6821
6822 int
6823 main ()
6824 {
6825
6826 ;
6827 return 0;
6828 }
6829 _ACEOF
6830 if ac_fn_c_try_link "$LINENO"; then :
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6832 $as_echo "yes" >&6; }
6833 else
6834 LDFLAGS=$late_LDFLAGS
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext \
6839 conftest$ac_exeext conftest.$ac_ext
6840
6841
6842 # The value of CPP is a quoted variable reference, so we need to do this
6843 # to get its actual value...
6844 CPP=`eval "echo $CPP"`
6845
6846
6847 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6848 case "$opsys" in
6849 your-opsys-here) CANNOT_DUMP=yes ;;
6850 esac
6851
6852 test "$CANNOT_DUMP" = "yes" && \
6853
6854 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6855
6856
6857
6858
6859
6860 UNEXEC_OBJ=unexelf.o
6861 case "$opsys" in
6862 # MSDOS uses unexcoff.o
6863 # MSWindows uses unexw32.o
6864 aix4-2)
6865 UNEXEC_OBJ=unexaix.o
6866 ;;
6867 cygwin)
6868 UNEXEC_OBJ=unexcw.o
6869 ;;
6870 darwin)
6871 UNEXEC_OBJ=unexmacosx.o
6872 ;;
6873 hpux10-20 | hpux11)
6874 UNEXEC_OBJ=unexhp9k800.o
6875 ;;
6876 sol2-10)
6877 # Use the Solaris dldump() function, called from unexsol.c, to dump
6878 # emacs, instead of the generic ELF dump code found in unexelf.c.
6879 # The resulting binary has a complete symbol table, and is better
6880 # for debugging and other observability tools (debuggers, pstack, etc).
6881 #
6882 # If you encounter a problem using dldump(), please consider sending
6883 # a message to the OpenSolaris tools-linking mailing list:
6884 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6885 #
6886 # It is likely that dldump() works with older Solaris too, but this has
6887 # not been tested, so for now this change is for Solaris 10 or newer.
6888 UNEXEC_OBJ=unexsol.o
6889 ;;
6890 esac
6891
6892 LD_SWITCH_SYSTEM=
6893 case "$opsys" in
6894 freebsd)
6895 ## Let `ld' find image libs and similar things in /usr/local/lib.
6896 ## The system compiler, GCC, has apparently been modified to not
6897 ## look there, contrary to what a stock GCC would do.
6898 LD_SWITCH_SYSTEM=-L/usr/local/lib
6899 ;;
6900
6901 gnu-linux)
6902 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6903 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6904 ;;
6905
6906 netbsd)
6907 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6908 ;;
6909
6910 openbsd)
6911 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6912 ## otherwise Emacs dumps core on elf systems.
6913 LD_SWITCH_SYSTEM="-Z"
6914 ;;
6915 esac
6916
6917
6918 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6919
6920 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6921 ## which has not been defined yet. When this was handled with cpp,
6922 ## it was expanded to null when configure sourced the s/*.h file.
6923 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6924 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6925 ## (or somesuch), but because it is supposed to go at the _front_
6926 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6927 ## Compare with the gnu-linux case below, which added to the end
6928 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6929 ## LD_SWITCH_SYSTEM_TEMACS.
6930 case "$opsys" in
6931 netbsd|openbsd)
6932 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6933 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6934 esac
6935
6936
6937 C_SWITCH_MACHINE=
6938 if test "$machine" = "alpha"; then
6939 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6940 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6941
6942 fi
6943
6944 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6945 ## With ELF, make sure that all common symbols get allocated to in the
6946 ## data section. Otherwise, the dump of temacs may miss variables in
6947 ## the shared library that have been initialized. For example, with
6948 ## GNU libc, __malloc_initialized would normally be resolved to the
6949 ## shared library's .bss section, which is fatal.
6950 if test "x$GCC" = "xyes"; then
6951 C_SWITCH_MACHINE="-fno-common"
6952 else
6953 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6954 fi
6955 else
6956 UNEXEC_OBJ=unexalpha.o
6957 fi
6958 fi
6959
6960
6961
6962
6963 C_SWITCH_SYSTEM=
6964 ## Some programs in src produce warnings saying certain subprograms
6965 ## are too complex and need a MAXMEM value greater than 2000 for
6966 ## additional optimization. --nils@exp-math.uni-essen.de
6967 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6968 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6969 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6970 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6971
6972
6973
6974 LIBS_SYSTEM=
6975 case "$opsys" in
6976 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6977 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6978
6979 freebsd) LIBS_SYSTEM="-lutil" ;;
6980
6981 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6982
6983 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6984
6985 ## Motif needs -lgen.
6986 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6987 esac
6988
6989
6990
6991 ### Make sure subsequent tests use flags consistent with the build flags.
6992
6993 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6994 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6995 else
6996 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6997 fi
6998
6999 # Check whether --enable-largefile was given.
7000 if test "${enable_largefile+set}" = set; then :
7001 enableval=$enable_largefile;
7002 fi
7003
7004 if test "$enable_largefile" != no; then
7005
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7007 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7008 if ${ac_cv_sys_largefile_CC+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 ac_cv_sys_largefile_CC=no
7012 if test "$GCC" != yes; then
7013 ac_save_CC=$CC
7014 while :; do
7015 # IRIX 6.2 and later do not support large files by default,
7016 # so use the C compiler's -n32 option if that helps.
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 #include <sys/types.h>
7020 /* Check that off_t can represent 2**63 - 1 correctly.
7021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7022 since some C++ compilers masquerading as C compilers
7023 incorrectly reject 9223372036854775807. */
7024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7026 && LARGE_OFF_T % 2147483647 == 1)
7027 ? 1 : -1];
7028 int
7029 main ()
7030 {
7031
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_compile "$LINENO"; then :
7037 break
7038 fi
7039 rm -f core conftest.err conftest.$ac_objext
7040 CC="$CC -n32"
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 ac_cv_sys_largefile_CC=' -n32'; break
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext
7045 break
7046 done
7047 CC=$ac_save_CC
7048 rm -f conftest.$ac_ext
7049 fi
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7052 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7053 if test "$ac_cv_sys_largefile_CC" != no; then
7054 CC=$CC$ac_cv_sys_largefile_CC
7055 fi
7056
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7058 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7059 if ${ac_cv_sys_file_offset_bits+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 while :; do
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 #include <sys/types.h>
7066 /* Check that off_t can represent 2**63 - 1 correctly.
7067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7068 since some C++ compilers masquerading as C compilers
7069 incorrectly reject 9223372036854775807. */
7070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7072 && LARGE_OFF_T % 2147483647 == 1)
7073 ? 1 : -1];
7074 int
7075 main ()
7076 {
7077
7078 ;
7079 return 0;
7080 }
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"; then :
7083 ac_cv_sys_file_offset_bits=no; break
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088 #define _FILE_OFFSET_BITS 64
7089 #include <sys/types.h>
7090 /* Check that off_t can represent 2**63 - 1 correctly.
7091 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7092 since some C++ compilers masquerading as C compilers
7093 incorrectly reject 9223372036854775807. */
7094 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7095 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7096 && LARGE_OFF_T % 2147483647 == 1)
7097 ? 1 : -1];
7098 int
7099 main ()
7100 {
7101
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 if ac_fn_c_try_compile "$LINENO"; then :
7107 ac_cv_sys_file_offset_bits=64; break
7108 fi
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 ac_cv_sys_file_offset_bits=unknown
7111 break
7112 done
7113 fi
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7115 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7116 case $ac_cv_sys_file_offset_bits in #(
7117 no | unknown) ;;
7118 *)
7119 cat >>confdefs.h <<_ACEOF
7120 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7121 _ACEOF
7122 ;;
7123 esac
7124 rm -rf conftest*
7125 if test $ac_cv_sys_file_offset_bits = unknown; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7127 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7128 if ${ac_cv_sys_large_files+:} false; then :
7129 $as_echo_n "(cached) " >&6
7130 else
7131 while :; do
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <sys/types.h>
7135 /* Check that off_t can represent 2**63 - 1 correctly.
7136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7137 since some C++ compilers masquerading as C compilers
7138 incorrectly reject 9223372036854775807. */
7139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7141 && LARGE_OFF_T % 2147483647 == 1)
7142 ? 1 : -1];
7143 int
7144 main ()
7145 {
7146
7147 ;
7148 return 0;
7149 }
7150 _ACEOF
7151 if ac_fn_c_try_compile "$LINENO"; then :
7152 ac_cv_sys_large_files=no; break
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #define _LARGE_FILES 1
7158 #include <sys/types.h>
7159 /* Check that off_t can represent 2**63 - 1 correctly.
7160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7161 since some C++ compilers masquerading as C compilers
7162 incorrectly reject 9223372036854775807. */
7163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7165 && LARGE_OFF_T % 2147483647 == 1)
7166 ? 1 : -1];
7167 int
7168 main ()
7169 {
7170
7171 ;
7172 return 0;
7173 }
7174 _ACEOF
7175 if ac_fn_c_try_compile "$LINENO"; then :
7176 ac_cv_sys_large_files=1; break
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 ac_cv_sys_large_files=unknown
7180 break
7181 done
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7184 $as_echo "$ac_cv_sys_large_files" >&6; }
7185 case $ac_cv_sys_large_files in #(
7186 no | unknown) ;;
7187 *)
7188 cat >>confdefs.h <<_ACEOF
7189 #define _LARGE_FILES $ac_cv_sys_large_files
7190 _ACEOF
7191 ;;
7192 esac
7193 rm -rf conftest*
7194 fi
7195 fi
7196
7197
7198
7199 ## If user specified a crt-dir, use that unconditionally.
7200 if test "X$CRT_DIR" = "X"; then
7201
7202 case "$canonical" in
7203 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7204 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7205 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7206 ## For anything else (eg /usr/lib32), it is up the user to specify
7207 ## the location (bug#5655).
7208 ## Test for crtn.o, not just the directory, because sometimes the
7209 ## directory exists but does not have the relevant files (bug#1287).
7210 ## FIXME better to test for binary compatibility somehow.
7211 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7212 ;;
7213
7214 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7215 esac
7216
7217 case "$opsys" in
7218 hpux10-20) CRT_DIR=/lib ;;
7219 esac
7220
7221 ## Default is /usr/lib.
7222 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7223
7224 else
7225
7226 ## Some platforms don't use any of these files, so it is not
7227 ## appropriate to put this test outside the if block.
7228 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7229 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7230
7231 fi
7232
7233
7234
7235 LIB_MATH=-lm
7236 LIB_STANDARD=
7237 START_FILES=
7238
7239 case $opsys in
7240 cygwin )
7241 LIB_MATH=
7242 START_FILES='pre-crt0.o'
7243 ;;
7244 darwin )
7245 ## Adding -lm confuses the dynamic linker, so omit it.
7246 LIB_MATH=
7247 START_FILES='pre-crt0.o'
7248 ;;
7249 freebsd )
7250 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7251 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7252 ;;
7253 gnu-linux | gnu-kfreebsd )
7254 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7255 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7256 ;;
7257 hpux10-20 | hpux11 )
7258 LIB_STANDARD=-lc
7259 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7260 ;;
7261 netbsd | openbsd )
7262 if test -f $CRT_DIR/crti.o; then
7263 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7264 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7265 else
7266 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7267 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7268 fi
7269 ;;
7270 esac
7271
7272
7273
7274
7275
7276
7277
7278 if test "${with_sound}" != "no"; then
7279 # Sound support for GNU/Linux and the free BSDs.
7280 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7281 do :
7282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7283 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7285 cat >>confdefs.h <<_ACEOF
7286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7287 _ACEOF
7288 have_sound_header=yes
7289 fi
7290
7291 done
7292
7293 # Emulation library used on NetBSD.
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7295 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7296 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 ac_check_lib_save_LIBS=$LIBS
7300 LIBS="-lossaudio $LIBS"
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303
7304 /* Override any GCC internal prototype to avoid an error.
7305 Use char because int might match the return type of a GCC
7306 builtin and then its argument prototype would still apply. */
7307 #ifdef __cplusplus
7308 extern "C"
7309 #endif
7310 char _oss_ioctl ();
7311 int
7312 main ()
7313 {
7314 return _oss_ioctl ();
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 if ac_fn_c_try_link "$LINENO"; then :
7320 ac_cv_lib_ossaudio__oss_ioctl=yes
7321 else
7322 ac_cv_lib_ossaudio__oss_ioctl=no
7323 fi
7324 rm -f core conftest.err conftest.$ac_objext \
7325 conftest$ac_exeext conftest.$ac_ext
7326 LIBS=$ac_check_lib_save_LIBS
7327 fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7329 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7330 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7331 LIBSOUND=-lossaudio
7332 else
7333 LIBSOUND=
7334 fi
7335
7336
7337
7338 ALSA_REQUIRED=1.0.0
7339 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7340
7341 succeeded=no
7342
7343 # Extract the first word of "pkg-config", so it can be a program name with args.
7344 set dummy pkg-config; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 case $PKG_CONFIG in
7351 [\\/]* | ?:[\\/]*)
7352 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7371 ;;
7372 esac
7373 fi
7374 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7375 if test -n "$PKG_CONFIG"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7377 $as_echo "$PKG_CONFIG" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384
7385 if test "$PKG_CONFIG" = "no" ; then
7386 HAVE_ALSA=no
7387 else
7388 PKG_CONFIG_MIN_VERSION=0.9.0
7389 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7391 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7392
7393 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7395 $as_echo "yes" >&6; }
7396 succeeded=yes
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7399 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7400 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7402 $as_echo "$ALSA_CFLAGS" >&6; }
7403
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7405 $as_echo_n "checking ALSA_LIBS... " >&6; }
7406 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7408 $as_echo "$ALSA_LIBS" >&6; }
7409 else
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412 ALSA_CFLAGS=""
7413 ALSA_LIBS=""
7414 ## If we have a custom action on failure, don't print errors, but
7415 ## do set a variable so people can do so.
7416 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7417
7418 fi
7419
7420
7421
7422 else
7423 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7424 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7425 fi
7426 fi
7427
7428 if test $succeeded = yes; then
7429 HAVE_ALSA=yes
7430 else
7431 HAVE_ALSA=no
7432 fi
7433
7434 if test $HAVE_ALSA = yes; then
7435 SAVE_CFLAGS="$CFLAGS"
7436 SAVE_LDFLAGS="$LDFLAGS"
7437 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7438 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 #include <asoundlib.h>
7442 int
7443 main ()
7444 {
7445 snd_lib_error_set_handler (0);
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451 emacs_alsa_normal=yes
7452 else
7453 emacs_alsa_normal=no
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 if test "$emacs_alsa_normal" != yes; then
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #include <alsa/asoundlib.h>
7460 int
7461 main ()
7462 {
7463 snd_lib_error_set_handler (0);
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 if ac_fn_c_try_compile "$LINENO"; then :
7469 emacs_alsa_subdir=yes
7470 else
7471 emacs_alsa_subdir=no
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 if test "$emacs_alsa_subdir" != yes; then
7475 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7476 fi
7477 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7478 fi
7479
7480 CFLAGS="$SAVE_CFLAGS"
7481 LDFLAGS="$SAVE_LDFLAGS"
7482 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7483 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7484
7485 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7486
7487 fi
7488
7489 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7490 case "$opsys" in
7491 gnu-linux|freebsd|netbsd)
7492
7493 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7494
7495 ;;
7496 esac
7497 fi
7498
7499
7500 fi
7501
7502 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7503 linux/version.h sys/systeminfo.h limits.h \
7504 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7505 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7506 sys/utsname.h pwd.h utmp.h dirent.h util.h
7507 do :
7508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7510 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7511 cat >>confdefs.h <<_ACEOF
7512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7513 _ACEOF
7514
7515 fi
7516
7517 done
7518
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7521 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <sys/personality.h>
7525 int
7526 main ()
7527 {
7528 personality (PER_LINUX32)
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 emacs_cv_personality_linux32=yes
7535 else
7536 emacs_cv_personality_linux32=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7540 $as_echo "$emacs_cv_personality_linux32" >&6; }
7541
7542 if test $emacs_cv_personality_linux32 = yes; then
7543
7544 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7545
7546 fi
7547
7548 for ac_header in term.h
7549 do :
7550 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7551 if test "x$ac_cv_header_term_h" = xyes; then :
7552 cat >>confdefs.h <<_ACEOF
7553 #define HAVE_TERM_H 1
7554 _ACEOF
7555
7556 fi
7557
7558 done
7559
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7561 $as_echo_n "checking for ANSI C header files... " >&6; }
7562 if ${ac_cv_header_stdc+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 #include <stdlib.h>
7568 #include <stdarg.h>
7569 #include <string.h>
7570 #include <float.h>
7571
7572 int
7573 main ()
7574 {
7575
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 if ac_fn_c_try_compile "$LINENO"; then :
7581 ac_cv_header_stdc=yes
7582 else
7583 ac_cv_header_stdc=no
7584 fi
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586
7587 if test $ac_cv_header_stdc = yes; then
7588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #include <string.h>
7592
7593 _ACEOF
7594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7595 $EGREP "memchr" >/dev/null 2>&1; then :
7596
7597 else
7598 ac_cv_header_stdc=no
7599 fi
7600 rm -f conftest*
7601
7602 fi
7603
7604 if test $ac_cv_header_stdc = yes; then
7605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h. */
7608 #include <stdlib.h>
7609
7610 _ACEOF
7611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7612 $EGREP "free" >/dev/null 2>&1; then :
7613
7614 else
7615 ac_cv_header_stdc=no
7616 fi
7617 rm -f conftest*
7618
7619 fi
7620
7621 if test $ac_cv_header_stdc = yes; then
7622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7623 if test "$cross_compiling" = yes; then :
7624 :
7625 else
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 #include <ctype.h>
7629 #include <stdlib.h>
7630 #if ((' ' & 0x0FF) == 0x020)
7631 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7632 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7633 #else
7634 # define ISLOWER(c) \
7635 (('a' <= (c) && (c) <= 'i') \
7636 || ('j' <= (c) && (c) <= 'r') \
7637 || ('s' <= (c) && (c) <= 'z'))
7638 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7639 #endif
7640
7641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7642 int
7643 main ()
7644 {
7645 int i;
7646 for (i = 0; i < 256; i++)
7647 if (XOR (islower (i), ISLOWER (i))
7648 || toupper (i) != TOUPPER (i))
7649 return 2;
7650 return 0;
7651 }
7652 _ACEOF
7653 if ac_fn_c_try_run "$LINENO"; then :
7654
7655 else
7656 ac_cv_header_stdc=no
7657 fi
7658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7659 conftest.$ac_objext conftest.beam conftest.$ac_ext
7660 fi
7661
7662 fi
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7665 $as_echo "$ac_cv_header_stdc" >&6; }
7666 if test $ac_cv_header_stdc = yes; then
7667
7668 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7669
7670 fi
7671
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7673 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7674 if ${ac_cv_header_time+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7679 #include <sys/types.h>
7680 #include <sys/time.h>
7681 #include <time.h>
7682
7683 int
7684 main ()
7685 {
7686 if ((struct tm *) 0)
7687 return 0;
7688 ;
7689 return 0;
7690 }
7691 _ACEOF
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 ac_cv_header_time=yes
7694 else
7695 ac_cv_header_time=no
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7700 $as_echo "$ac_cv_header_time" >&6; }
7701 if test $ac_cv_header_time = yes; then
7702
7703 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7704
7705 fi
7706
7707 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7708 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7709 ac_have_decl=1
7710 else
7711 ac_have_decl=0
7712 fi
7713
7714 cat >>confdefs.h <<_ACEOF
7715 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7716 _ACEOF
7717
7718 if test $ac_cv_have_decl_sys_siglist != yes; then
7719 # For Tru64, at least:
7720 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7721 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7722 ac_have_decl=1
7723 else
7724 ac_have_decl=0
7725 fi
7726
7727 cat >>confdefs.h <<_ACEOF
7728 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7729 _ACEOF
7730
7731 if test $ac_cv_have_decl___sys_siglist = yes; then
7732
7733 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7734
7735 fi
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7738 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7739 if ${ac_cv_header_sys_wait_h+:} false; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #include <sys/types.h>
7745 #include <sys/wait.h>
7746 #ifndef WEXITSTATUS
7747 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7748 #endif
7749 #ifndef WIFEXITED
7750 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7751 #endif
7752
7753 int
7754 main ()
7755 {
7756 int s;
7757 wait (&s);
7758 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_compile "$LINENO"; then :
7764 ac_cv_header_sys_wait_h=yes
7765 else
7766 ac_cv_header_sys_wait_h=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 fi
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7771 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7772 if test $ac_cv_header_sys_wait_h = yes; then
7773
7774 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7775
7776 fi
7777
7778
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7780 $as_echo_n "checking for struct utimbuf... " >&6; }
7781 if ${emacs_cv_struct_utimbuf+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 #ifdef TIME_WITH_SYS_TIME
7787 #include <sys/time.h>
7788 #include <time.h>
7789 #else
7790 #ifdef HAVE_SYS_TIME_H
7791 #include <sys/time.h>
7792 #else
7793 #include <time.h>
7794 #endif
7795 #endif
7796 #ifdef HAVE_UTIME_H
7797 #include <utime.h>
7798 #endif
7799 int
7800 main ()
7801 {
7802 static struct utimbuf x; x.actime = x.modtime;
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 if ac_fn_c_try_compile "$LINENO"; then :
7808 emacs_cv_struct_utimbuf=yes
7809 else
7810 emacs_cv_struct_utimbuf=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 fi
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7815 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7816 if test $emacs_cv_struct_utimbuf = yes; then
7817
7818 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7819
7820 fi
7821
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7823 $as_echo_n "checking return type of signal handlers... " >&6; }
7824 if ${ac_cv_type_signal+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 #include <sys/types.h>
7830 #include <signal.h>
7831
7832 int
7833 main ()
7834 {
7835 return *(signal (0, 0)) (0) == 1;
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_compile "$LINENO"; then :
7841 ac_cv_type_signal=int
7842 else
7843 ac_cv_type_signal=void
7844 fi
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7848 $as_echo "$ac_cv_type_signal" >&6; }
7849
7850 cat >>confdefs.h <<_ACEOF
7851 #define RETSIGTYPE $ac_cv_type_signal
7852 _ACEOF
7853
7854
7855
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7857 $as_echo_n "checking for speed_t... " >&6; }
7858 if ${emacs_cv_speed_t+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 #include <termios.h>
7864 int
7865 main ()
7866 {
7867 speed_t x = 1;
7868 ;
7869 return 0;
7870 }
7871 _ACEOF
7872 if ac_fn_c_try_compile "$LINENO"; then :
7873 emacs_cv_speed_t=yes
7874 else
7875 emacs_cv_speed_t=no
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7880 $as_echo "$emacs_cv_speed_t" >&6; }
7881 if test $emacs_cv_speed_t = yes; then
7882
7883 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7884
7885 fi
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7888 $as_echo_n "checking for struct timeval... " >&6; }
7889 if ${emacs_cv_struct_timeval+:} false; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 #ifdef TIME_WITH_SYS_TIME
7895 #include <sys/time.h>
7896 #include <time.h>
7897 #else
7898 #ifdef HAVE_SYS_TIME_H
7899 #include <sys/time.h>
7900 #else
7901 #include <time.h>
7902 #endif
7903 #endif
7904 int
7905 main ()
7906 {
7907 static struct timeval x; x.tv_sec = x.tv_usec;
7908 ;
7909 return 0;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_compile "$LINENO"; then :
7913 emacs_cv_struct_timeval=yes
7914 else
7915 emacs_cv_struct_timeval=no
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 fi
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7920 $as_echo "$emacs_cv_struct_timeval" >&6; }
7921 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7922 if test $emacs_cv_struct_timeval = yes; then
7923
7924 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7925
7926 fi
7927
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7929 $as_echo_n "checking for struct exception... " >&6; }
7930 if ${emacs_cv_struct_exception+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 #include <math.h>
7936 int
7937 main ()
7938 {
7939 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7940 ;
7941 return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 emacs_cv_struct_exception=yes
7946 else
7947 emacs_cv_struct_exception=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7952 $as_echo "$emacs_cv_struct_exception" >&6; }
7953 HAVE_EXCEPTION=$emacs_cv_struct_exception
7954 if test $emacs_cv_struct_exception != yes; then
7955
7956 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7957
7958 fi
7959
7960 for ac_header in sys/socket.h
7961 do :
7962 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7963 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7964 cat >>confdefs.h <<_ACEOF
7965 #define HAVE_SYS_SOCKET_H 1
7966 _ACEOF
7967
7968 fi
7969
7970 done
7971
7972 for ac_header in net/if.h
7973 do :
7974 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7975 #if HAVE_SYS_SOCKET_H
7976 #include <sys/socket.h>
7977 #endif
7978 "
7979 if test "x$ac_cv_header_net_if_h" = xyes; then :
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_NET_IF_H 1
7982 _ACEOF
7983
7984 fi
7985
7986 done
7987
7988
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7990 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7991 if ${ac_cv_struct_tm+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 #include <sys/types.h>
7997 #include <time.h>
7998
7999 int
8000 main ()
8001 {
8002 struct tm tm;
8003 int *p = &tm.tm_sec;
8004 return !p;
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 if ac_fn_c_try_compile "$LINENO"; then :
8010 ac_cv_struct_tm=time.h
8011 else
8012 ac_cv_struct_tm=sys/time.h
8013 fi
8014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 fi
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8017 $as_echo "$ac_cv_struct_tm" >&6; }
8018 if test $ac_cv_struct_tm = sys/time.h; then
8019
8020 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8021
8022 fi
8023
8024 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8025 #include <$ac_cv_struct_tm>
8026
8027 "
8028 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8029
8030 cat >>confdefs.h <<_ACEOF
8031 #define HAVE_STRUCT_TM_TM_ZONE 1
8032 _ACEOF
8033
8034
8035 fi
8036
8037 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8038
8039 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8040
8041 else
8042 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8043 "
8044 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8045 ac_have_decl=1
8046 else
8047 ac_have_decl=0
8048 fi
8049
8050 cat >>confdefs.h <<_ACEOF
8051 #define HAVE_DECL_TZNAME $ac_have_decl
8052 _ACEOF
8053
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8055 $as_echo_n "checking for tzname... " >&6; }
8056 if ${ac_cv_var_tzname+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 #include <time.h>
8062 #if !HAVE_DECL_TZNAME
8063 extern char *tzname[];
8064 #endif
8065
8066 int
8067 main ()
8068 {
8069 return tzname[0][0];
8070 ;
8071 return 0;
8072 }
8073 _ACEOF
8074 if ac_fn_c_try_link "$LINENO"; then :
8075 ac_cv_var_tzname=yes
8076 else
8077 ac_cv_var_tzname=no
8078 fi
8079 rm -f core conftest.err conftest.$ac_objext \
8080 conftest$ac_exeext conftest.$ac_ext
8081 fi
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8083 $as_echo "$ac_cv_var_tzname" >&6; }
8084 if test $ac_cv_var_tzname = yes; then
8085
8086 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8087
8088 fi
8089 fi
8090
8091 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8092 "
8093 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
8094
8095 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8096
8097 fi
8098
8099 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8100 #if HAVE_SYS_SOCKET_H
8101 #include <sys/socket.h>
8102 #endif
8103 #if HAVE_NET_IF_H
8104 #include <net/if.h>
8105 #endif
8106 "
8107 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
8108
8109 cat >>confdefs.h <<_ACEOF
8110 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8111 _ACEOF
8112
8113
8114 fi
8115 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8116 #if HAVE_SYS_SOCKET_H
8117 #include <sys/socket.h>
8118 #endif
8119 #if HAVE_NET_IF_H
8120 #include <net/if.h>
8121 #endif
8122 "
8123 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
8124
8125 cat >>confdefs.h <<_ACEOF
8126 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8127 _ACEOF
8128
8129
8130 fi
8131 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8132 #if HAVE_SYS_SOCKET_H
8133 #include <sys/socket.h>
8134 #endif
8135 #if HAVE_NET_IF_H
8136 #include <net/if.h>
8137 #endif
8138 "
8139 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
8140
8141 cat >>confdefs.h <<_ACEOF
8142 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8143 _ACEOF
8144
8145
8146 fi
8147 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8148 #if HAVE_SYS_SOCKET_H
8149 #include <sys/socket.h>
8150 #endif
8151 #if HAVE_NET_IF_H
8152 #include <net/if.h>
8153 #endif
8154 "
8155 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
8156
8157 cat >>confdefs.h <<_ACEOF
8158 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8159 _ACEOF
8160
8161
8162 fi
8163 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8164 #if HAVE_SYS_SOCKET_H
8165 #include <sys/socket.h>
8166 #endif
8167 #if HAVE_NET_IF_H
8168 #include <net/if.h>
8169 #endif
8170 "
8171 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
8172
8173 cat >>confdefs.h <<_ACEOF
8174 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8175 _ACEOF
8176
8177
8178 fi
8179
8180
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8183 $as_echo_n "checking for function prototypes... " >&6; }
8184 if test "$ac_cv_prog_cc_c89" != no; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8186 $as_echo "yes" >&6; }
8187
8188 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8189
8190
8191 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8192
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8199 $as_echo_n "checking for working volatile... " >&6; }
8200 if ${ac_cv_c_volatile+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8205
8206 int
8207 main ()
8208 {
8209
8210 volatile int x;
8211 int * volatile y = (int *) 0;
8212 return !x && !y;
8213 ;
8214 return 0;
8215 }
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"; then :
8218 ac_cv_c_volatile=yes
8219 else
8220 ac_cv_c_volatile=no
8221 fi
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8225 $as_echo "$ac_cv_c_volatile" >&6; }
8226 if test $ac_cv_c_volatile = no; then
8227
8228 $as_echo "#define volatile /**/" >>confdefs.h
8229
8230 fi
8231
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8233 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8234 if ${ac_cv_c_const+:} false; then :
8235 $as_echo_n "(cached) " >&6
8236 else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239
8240 int
8241 main ()
8242 {
8243 /* FIXME: Include the comments suggested by Paul. */
8244 #ifndef __cplusplus
8245 /* Ultrix mips cc rejects this. */
8246 typedef int charset[2];
8247 const charset cs;
8248 /* SunOS 4.1.1 cc rejects this. */
8249 char const *const *pcpcc;
8250 char **ppc;
8251 /* NEC SVR4.0.2 mips cc rejects this. */
8252 struct point {int x, y;};
8253 static struct point const zero = {0,0};
8254 /* AIX XL C 1.02.0.0 rejects this.
8255 It does not let you subtract one const X* pointer from another in
8256 an arm of an if-expression whose if-part is not a constant
8257 expression */
8258 const char *g = "string";
8259 pcpcc = &g + (g ? g-g : 0);
8260 /* HPUX 7.0 cc rejects these. */
8261 ++pcpcc;
8262 ppc = (char**) pcpcc;
8263 pcpcc = (char const *const *) ppc;
8264 { /* SCO 3.2v4 cc rejects this. */
8265 char *t;
8266 char const *s = 0 ? (char *) 0 : (char const *) 0;
8267
8268 *t++ = 0;
8269 if (s) return 0;
8270 }
8271 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8272 int x[] = {25, 17};
8273 const int *foo = &x[0];
8274 ++foo;
8275 }
8276 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8277 typedef const int *iptr;
8278 iptr p = 0;
8279 ++p;
8280 }
8281 { /* AIX XL C 1.02.0.0 rejects this saying
8282 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8283 struct s { int j; const int *ap[3]; };
8284 struct s *b; b->j = 5;
8285 }
8286 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8287 const int foo = 10;
8288 if (!foo) return 0;
8289 }
8290 return !cs[0] && !zero.x;
8291 #endif
8292
8293 ;
8294 return 0;
8295 }
8296 _ACEOF
8297 if ac_fn_c_try_compile "$LINENO"; then :
8298 ac_cv_c_const=yes
8299 else
8300 ac_cv_c_const=no
8301 fi
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8305 $as_echo "$ac_cv_c_const" >&6; }
8306 if test $ac_cv_c_const = no; then
8307
8308 $as_echo "#define const /**/" >>confdefs.h
8309
8310 fi
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8313 $as_echo_n "checking for void * support... " >&6; }
8314 if ${emacs_cv_void_star+:} false; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318 /* end confdefs.h. */
8319
8320 int
8321 main ()
8322 {
8323 void * foo;
8324 ;
8325 return 0;
8326 }
8327 _ACEOF
8328 if ac_fn_c_try_compile "$LINENO"; then :
8329 emacs_cv_void_star=yes
8330 else
8331 emacs_cv_void_star=no
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 fi
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8336 $as_echo "$emacs_cv_void_star" >&6; }
8337 if test $emacs_cv_void_star = yes; then
8338 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8339
8340 else
8341 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8342
8343 fi
8344
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8346 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8347 if ${ac_cv_c_bigendian+:} false; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 ac_cv_c_bigendian=unknown
8351 # See if we're dealing with a universal compiler.
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #ifndef __APPLE_CC__
8355 not a universal capable compiler
8356 #endif
8357 typedef int dummy;
8358
8359 _ACEOF
8360 if ac_fn_c_try_compile "$LINENO"; then :
8361
8362 # Check for potential -arch flags. It is not universal unless
8363 # there are at least two -arch flags with different values.
8364 ac_arch=
8365 ac_prev=
8366 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8367 if test -n "$ac_prev"; then
8368 case $ac_word in
8369 i?86 | x86_64 | ppc | ppc64)
8370 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8371 ac_arch=$ac_word
8372 else
8373 ac_cv_c_bigendian=universal
8374 break
8375 fi
8376 ;;
8377 esac
8378 ac_prev=
8379 elif test "x$ac_word" = "x-arch"; then
8380 ac_prev=arch
8381 fi
8382 done
8383 fi
8384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 if test $ac_cv_c_bigendian = unknown; then
8386 # See if sys/param.h defines the BYTE_ORDER macro.
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #include <sys/types.h>
8390 #include <sys/param.h>
8391
8392 int
8393 main ()
8394 {
8395 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8396 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8397 && LITTLE_ENDIAN)
8398 bogus endian macros
8399 #endif
8400
8401 ;
8402 return 0;
8403 }
8404 _ACEOF
8405 if ac_fn_c_try_compile "$LINENO"; then :
8406 # It does; now see whether it defined to BIG_ENDIAN or not.
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 #include <sys/types.h>
8410 #include <sys/param.h>
8411
8412 int
8413 main ()
8414 {
8415 #if BYTE_ORDER != BIG_ENDIAN
8416 not big endian
8417 #endif
8418
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 if ac_fn_c_try_compile "$LINENO"; then :
8424 ac_cv_c_bigendian=yes
8425 else
8426 ac_cv_c_bigendian=no
8427 fi
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8431 fi
8432 if test $ac_cv_c_bigendian = unknown; then
8433 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8436 #include <limits.h>
8437
8438 int
8439 main ()
8440 {
8441 #if ! (defined _LITTLE_ENDIAN || defined _BIG_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 <limits.h>
8454
8455 int
8456 main ()
8457 {
8458 #ifndef _BIG_ENDIAN
8459 not big endian
8460 #endif
8461
8462 ;
8463 return 0;
8464 }
8465 _ACEOF
8466 if ac_fn_c_try_compile "$LINENO"; then :
8467 ac_cv_c_bigendian=yes
8468 else
8469 ac_cv_c_bigendian=no
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 fi
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 if test $ac_cv_c_bigendian = unknown; then
8476 # Compile a test program.
8477 if test "$cross_compiling" = yes; then :
8478 # Try to guess by grepping values from an object file.
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 short int ascii_mm[] =
8482 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8483 short int ascii_ii[] =
8484 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8485 int use_ascii (int i) {
8486 return ascii_mm[i] + ascii_ii[i];
8487 }
8488 short int ebcdic_ii[] =
8489 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8490 short int ebcdic_mm[] =
8491 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8492 int use_ebcdic (int i) {
8493 return ebcdic_mm[i] + ebcdic_ii[i];
8494 }
8495 extern int foo;
8496
8497 int
8498 main ()
8499 {
8500 return use_ascii (foo) == use_ebcdic (foo);
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_compile "$LINENO"; then :
8506 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8507 ac_cv_c_bigendian=yes
8508 fi
8509 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8510 if test "$ac_cv_c_bigendian" = unknown; then
8511 ac_cv_c_bigendian=no
8512 else
8513 # finding both strings is unlikely to happen, but who knows?
8514 ac_cv_c_bigendian=unknown
8515 fi
8516 fi
8517 fi
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 else
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 int
8524 main ()
8525 {
8526
8527 /* Are we little or big endian? From Harbison&Steele. */
8528 union
8529 {
8530 long int l;
8531 char c[sizeof (long int)];
8532 } u;
8533 u.l = 1;
8534 return u.c[sizeof (long int) - 1] == 1;
8535
8536 ;
8537 return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_run "$LINENO"; then :
8541 ac_cv_c_bigendian=no
8542 else
8543 ac_cv_c_bigendian=yes
8544 fi
8545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8546 conftest.$ac_objext conftest.beam conftest.$ac_ext
8547 fi
8548
8549 fi
8550 fi
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8552 $as_echo "$ac_cv_c_bigendian" >&6; }
8553 case $ac_cv_c_bigendian in #(
8554 yes)
8555 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8556 ;; #(
8557 no)
8558 ;; #(
8559 universal)
8560
8561 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8562
8563 ;; #(
8564 *)
8565 as_fn_error $? "unknown endianness
8566 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8567 esac
8568
8569
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8571 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8572 if ${emacs_cv_attribute_aligned+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 char __attribute__ ((__aligned__ (1 << 3))) c;
8578 int
8579 main ()
8580 {
8581
8582 ;
8583 return 0;
8584 }
8585 _ACEOF
8586 if ac_fn_c_try_compile "$LINENO"; then :
8587 emacs_cv_attribute_aligned=yes
8588 else
8589 emacs_cv_attribute_aligned=no
8590 fi
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8594 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8595 if test $emacs_cv_attribute_aligned = yes; then
8596
8597 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8598
8599 fi
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8602 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8603 set x ${MAKE-make}
8604 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8605 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 cat >conftest.make <<\_ACEOF
8609 SHELL = /bin/sh
8610 all:
8611 @echo '@@@%%%=$(MAKE)=@@@%%%'
8612 _ACEOF
8613 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8614 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8615 *@@@%%%=?*=@@@%%%*)
8616 eval ac_cv_prog_make_${ac_make}_set=yes;;
8617 *)
8618 eval ac_cv_prog_make_${ac_make}_set=no;;
8619 esac
8620 rm -f conftest.make
8621 fi
8622 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8624 $as_echo "yes" >&6; }
8625 SET_MAKE=
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8629 SET_MAKE="MAKE=${MAKE-make}"
8630 fi
8631
8632
8633 DEPFLAGS=
8634 MKDEPDIR=":"
8635 deps_frag=deps.mk
8636 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8638 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8639 HAVE_GNU_MAKE=no
8640 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8641 if test "x$testval" != x; then
8642 HAVE_GNU_MAKE=yes
8643 else
8644 ac_enable_autodepend=no
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8647 $as_echo "$HAVE_GNU_MAKE" >&6; }
8648 if test $HAVE_GNU_MAKE = yes; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8650 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8651 SAVE_CFLAGS="$CFLAGS"
8652 CFLAGS="$CFLAGS -MMD -MF deps.d"
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655
8656 int
8657 main ()
8658 {
8659
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_compile "$LINENO"; then :
8665
8666 else
8667 ac_enable_autodepend=no
8668 fi
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 CFLAGS="$SAVE_CFLAGS"
8671 test -f deps.d || ac_enable_autodepend=no
8672 rm -rf deps.d
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8674 $as_echo "$ac_enable_autodepend" >&6; }
8675 fi
8676 if test $ac_enable_autodepend = yes; then
8677 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8678 ## In parallel builds, another make might create depdir between
8679 ## the first test and mkdir, so stick another test on the end.
8680 ## Or use mkinstalldirs? mkdir -p is not portable.
8681 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8682 deps_frag=autodeps.mk
8683 fi
8684 fi
8685 deps_frag=$srcdir/src/$deps_frag
8686
8687
8688
8689
8690
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8692 $as_echo_n "checking for long file names... " >&6; }
8693 if ${ac_cv_sys_long_file_names+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 ac_cv_sys_long_file_names=yes
8697 # Test for long file names in all the places we know might matter:
8698 # . the current directory, where building will happen
8699 # $prefix/lib where we will be installing things
8700 # $exec_prefix/lib likewise
8701 # $TMPDIR if set, where it might want to write temporary files
8702 # /tmp where it might want to write temporary files
8703 # /var/tmp likewise
8704 # /usr/tmp likewise
8705 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8706 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8707 # in the usual case where exec_prefix is '${prefix}'.
8708 case $ac_dir in #(
8709 . | /* | ?:[\\/]*) ;; #(
8710 *) continue;;
8711 esac
8712 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8713 ac_xdir=$ac_dir/cf$$
8714 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8715 ac_tf1=$ac_xdir/conftest9012345
8716 ac_tf2=$ac_xdir/conftest9012346
8717 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8718 ac_cv_sys_long_file_names=no
8719 rm -f -r "$ac_xdir" 2>/dev/null
8720 test $ac_cv_sys_long_file_names = no && break
8721 done
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8724 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8725 if test $ac_cv_sys_long_file_names = yes; then
8726
8727 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8728
8729 fi
8730
8731
8732 #### Choose a window system.
8733
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8735 $as_echo_n "checking for X... " >&6; }
8736
8737
8738 # Check whether --with-x was given.
8739 if test "${with_x+set}" = set; then :
8740 withval=$with_x;
8741 fi
8742
8743 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8744 if test "x$with_x" = xno; then
8745 # The user explicitly disabled X.
8746 have_x=disabled
8747 else
8748 case $x_includes,$x_libraries in #(
8749 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8750 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 # One or both of the vars are not set, and there is no cached value.
8754 ac_x_includes=no ac_x_libraries=no
8755 rm -f -r conftest.dir
8756 if mkdir conftest.dir; then
8757 cd conftest.dir
8758 cat >Imakefile <<'_ACEOF'
8759 incroot:
8760 @echo incroot='${INCROOT}'
8761 usrlibdir:
8762 @echo usrlibdir='${USRLIBDIR}'
8763 libdir:
8764 @echo libdir='${LIBDIR}'
8765 _ACEOF
8766 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8767 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8768 for ac_var in incroot usrlibdir libdir; do
8769 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8770 done
8771 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8772 for ac_extension in a so sl dylib la dll; do
8773 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8774 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8775 ac_im_usrlibdir=$ac_im_libdir; break
8776 fi
8777 done
8778 # Screen out bogus values from the imake configuration. They are
8779 # bogus both because they are the default anyway, and because
8780 # using them would break gcc on systems where it needs fixed includes.
8781 case $ac_im_incroot in
8782 /usr/include) ac_x_includes= ;;
8783 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8784 esac
8785 case $ac_im_usrlibdir in
8786 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8787 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8788 esac
8789 fi
8790 cd ..
8791 rm -f -r conftest.dir
8792 fi
8793
8794 # Standard set of common directories for X headers.
8795 # Check X11 before X11Rn because it is often a symlink to the current release.
8796 ac_x_header_dirs='
8797 /usr/X11/include
8798 /usr/X11R7/include
8799 /usr/X11R6/include
8800 /usr/X11R5/include
8801 /usr/X11R4/include
8802
8803 /usr/include/X11
8804 /usr/include/X11R7
8805 /usr/include/X11R6
8806 /usr/include/X11R5
8807 /usr/include/X11R4
8808
8809 /usr/local/X11/include
8810 /usr/local/X11R7/include
8811 /usr/local/X11R6/include
8812 /usr/local/X11R5/include
8813 /usr/local/X11R4/include
8814
8815 /usr/local/include/X11
8816 /usr/local/include/X11R7
8817 /usr/local/include/X11R6
8818 /usr/local/include/X11R5
8819 /usr/local/include/X11R4
8820
8821 /usr/X386/include
8822 /usr/x386/include
8823 /usr/XFree86/include/X11
8824
8825 /usr/include
8826 /usr/local/include
8827 /usr/unsupported/include
8828 /usr/athena/include
8829 /usr/local/x11r5/include
8830 /usr/lpp/Xamples/include
8831
8832 /usr/openwin/include
8833 /usr/openwin/share/include'
8834
8835 if test "$ac_x_includes" = no; then
8836 # Guess where to find include files, by looking for Xlib.h.
8837 # First, try using that file with no special directory specified.
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include <X11/Xlib.h>
8841 _ACEOF
8842 if ac_fn_c_try_cpp "$LINENO"; then :
8843 # We can compile using X headers with no special include directory.
8844 ac_x_includes=
8845 else
8846 for ac_dir in $ac_x_header_dirs; do
8847 if test -r "$ac_dir/X11/Xlib.h"; then
8848 ac_x_includes=$ac_dir
8849 break
8850 fi
8851 done
8852 fi
8853 rm -f conftest.err conftest.i conftest.$ac_ext
8854 fi # $ac_x_includes = no
8855
8856 if test "$ac_x_libraries" = no; then
8857 # Check for the libraries.
8858 # See if we find them without any special options.
8859 # Don't add to $LIBS permanently.
8860 ac_save_LIBS=$LIBS
8861 LIBS="-lX11 $LIBS"
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864 #include <X11/Xlib.h>
8865 int
8866 main ()
8867 {
8868 XrmInitialize ()
8869 ;
8870 return 0;
8871 }
8872 _ACEOF
8873 if ac_fn_c_try_link "$LINENO"; then :
8874 LIBS=$ac_save_LIBS
8875 # We can link X programs with no special library path.
8876 ac_x_libraries=
8877 else
8878 LIBS=$ac_save_LIBS
8879 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8880 do
8881 # Don't even attempt the hair of trying to link an X program!
8882 for ac_extension in a so sl dylib la dll; do
8883 if test -r "$ac_dir/libX11.$ac_extension"; then
8884 ac_x_libraries=$ac_dir
8885 break 2
8886 fi
8887 done
8888 done
8889 fi
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 fi # $ac_x_libraries = no
8893
8894 case $ac_x_includes,$ac_x_libraries in #(
8895 no,* | *,no | *\'*)
8896 # Didn't find X, or a directory has "'" in its name.
8897 ac_cv_have_x="have_x=no";; #(
8898 *)
8899 # Record where we found X for the cache.
8900 ac_cv_have_x="have_x=yes\
8901 ac_x_includes='$ac_x_includes'\
8902 ac_x_libraries='$ac_x_libraries'"
8903 esac
8904 fi
8905 ;; #(
8906 *) have_x=yes;;
8907 esac
8908 eval "$ac_cv_have_x"
8909 fi # $with_x != no
8910
8911 if test "$have_x" != yes; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8913 $as_echo "$have_x" >&6; }
8914 no_x=yes
8915 else
8916 # If each of the values was on the command line, it overrides each guess.
8917 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8918 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8919 # Update the cache value to reflect the command line values.
8920 ac_cv_have_x="have_x=yes\
8921 ac_x_includes='$x_includes'\
8922 ac_x_libraries='$x_libraries'"
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8924 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8925 fi
8926
8927 if test "$no_x" = yes; then
8928 window_system=none
8929 else
8930 window_system=x11
8931 fi
8932
8933 ## Workaround for bug in autoconf <= 2.62.
8934 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8935 ## No need to do anything special for these standard directories.
8936 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8937
8938 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8939
8940 fi
8941
8942 LD_SWITCH_X_SITE_AUX=
8943 LD_SWITCH_X_SITE_AUX_RPATH=
8944 if test "${x_libraries}" != NONE; then
8945 if test -n "${x_libraries}"; then
8946 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8947 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8948 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8949 fi
8950 x_default_search_path=""
8951 x_search_path=${x_libraries}
8952 if test -z "${x_search_path}"; then
8953 x_search_path=/usr/lib
8954 fi
8955 for x_library in `echo ${x_search_path}: | \
8956 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8957 x_search_path="\
8958 ${x_library}/X11/%L/%T/%N%C%S:\
8959 ${x_library}/X11/%l/%T/%N%C%S:\
8960 ${x_library}/X11/%T/%N%C%S:\
8961 ${x_library}/X11/%L/%T/%N%S:\
8962 ${x_library}/X11/%l/%T/%N%S:\
8963 ${x_library}/X11/%T/%N%S"
8964 if test x"${x_default_search_path}" = x; then
8965 x_default_search_path=${x_search_path}
8966 else
8967 x_default_search_path="${x_search_path}:${x_default_search_path}"
8968 fi
8969 done
8970 fi
8971
8972
8973
8974 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8975 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8976 fi
8977
8978 if test x"${x_includes}" = x; then
8979 bitmapdir=/usr/include/X11/bitmaps
8980 else
8981 # accumulate include directories that have X11 bitmap subdirectories
8982 bmd_acc="dummyval"
8983 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8984 if test -d "${bmd}/X11/bitmaps"; then
8985 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8986 fi
8987 if test -d "${bmd}/bitmaps"; then
8988 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8989 fi
8990 done
8991 if test ${bmd_acc} != "dummyval"; then
8992 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8993 fi
8994 fi
8995
8996 HAVE_NS=no
8997 NS_IMPL_COCOA=no
8998 NS_IMPL_GNUSTEP=no
8999 tmp_CPPFLAGS="$CPPFLAGS"
9000 tmp_CFLAGS="$CFLAGS"
9001 CPPFLAGS="$CPPFLAGS -x objective-c"
9002 CFLAGS="$CFLAGS -x objective-c"
9003 TEMACS_LDFLAGS2="\${LDFLAGS}"
9004 if test "${with_ns}" != no; then
9005 if test "${opsys}" = darwin; then
9006 NS_IMPL_COCOA=yes
9007 ns_appdir=`pwd`/nextstep/Emacs.app
9008 ns_appbindir=${ns_appdir}/Contents/MacOS/
9009 ns_appresdir=${ns_appdir}/Contents/Resources
9010 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9011 elif test -f $GNUSTEP_CONFIG_FILE; then
9012 NS_IMPL_GNUSTEP=yes
9013 ns_appdir=`pwd`/nextstep/Emacs.app
9014 ns_appbindir=${ns_appdir}/
9015 ns_appresdir=${ns_appdir}/Resources
9016 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9017 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9018 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9019 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9020 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9021 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9022 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9023 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9024 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9025 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9026 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9027 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9028 LIB_STANDARD=
9029 START_FILES=
9030 TEMACS_LDFLAGS2=
9031 fi
9032 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9033 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
9034 HAVE_NS=yes
9035 else
9036 as_fn_error $? "\`--with-ns' was specified, but the include
9037 files are missing or cannot be compiled." "$LINENO" 5
9038 fi
9039
9040
9041 NS_HAVE_NSINTEGER=yes
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 #include <Foundation/NSObjCRuntime.h>
9045 int
9046 main ()
9047 {
9048 NSInteger i;
9049 ;
9050 return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_compile "$LINENO"; then :
9054 ns_have_nsinteger=yes
9055 else
9056 ns_have_nsinteger=no
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 if test $ns_have_nsinteger = no; then
9060 NS_HAVE_NSINTEGER=no
9061 fi
9062 fi
9063
9064
9065 ns_frag=/dev/null
9066 NS_OBJ=
9067 NS_OBJC_OBJ=
9068 NS_SUPPORT=
9069 if test "${HAVE_NS}" = yes; then
9070 window_system=nextstep
9071 with_xft=no
9072 # set up packaging dirs
9073 exec_prefix=${ns_appbindir}
9074 libexecdir=${ns_appbindir}/libexec
9075 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9076 prefix=${ns_appresdir}
9077 fi
9078 ns_frag=$srcdir/src/ns.mk
9079 NS_OBJ="fontset.o fringe.o image.o"
9080 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9081 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9082 fi
9083 CFLAGS="$tmp_CFLAGS"
9084 CPPFLAGS="$tmp_CPPFLAGS"
9085
9086
9087
9088
9089
9090
9091 case "${window_system}" in
9092 x11 )
9093 HAVE_X_WINDOWS=yes
9094 HAVE_X11=yes
9095 case "${with_x_toolkit}" in
9096 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9097 motif ) USE_X_TOOLKIT=MOTIF ;;
9098 gtk ) with_gtk=yes
9099 USE_X_TOOLKIT=none ;;
9100 gtk3 ) with_gtk3=yes
9101 USE_X_TOOLKIT=none ;;
9102 no ) USE_X_TOOLKIT=none ;;
9103 * ) USE_X_TOOLKIT=maybe ;;
9104 esac
9105 ;;
9106 nextstep | none )
9107 HAVE_X_WINDOWS=no
9108 HAVE_X11=no
9109 USE_X_TOOLKIT=none
9110 ;;
9111 esac
9112
9113 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9114 # Extract the first word of "X", so it can be a program name with args.
9115 set dummy X; ac_word=$2
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117 $as_echo_n "checking for $ac_word... " >&6; }
9118 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 if test -n "$HAVE_XSERVER"; then
9122 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9123 else
9124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125 for as_dir in $PATH
9126 do
9127 IFS=$as_save_IFS
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9131 ac_cv_prog_HAVE_XSERVER="true"
9132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 break 2
9134 fi
9135 done
9136 done
9137 IFS=$as_save_IFS
9138
9139 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9140 fi
9141 fi
9142 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9143 if test -n "$HAVE_XSERVER"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9145 $as_echo "$HAVE_XSERVER" >&6; }
9146 else
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9149 fi
9150
9151
9152 if test "$HAVE_XSERVER" = true ||
9153 test -n "$DISPLAY" ||
9154 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9155 as_fn_error $? "You seem to be running X, but no X development libraries
9156 were found. You should install the relevant development files for X
9157 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9158 sure you have development files for image handling, i.e.
9159 tiff, gif, jpeg, png and xpm.
9160 If you are sure you want Emacs compiled without X window support, pass
9161 --without-x
9162 to configure." "$LINENO" 5
9163 fi
9164 fi
9165
9166 ### If we're using X11, we should use the X menu package.
9167 HAVE_MENUS=no
9168 case ${HAVE_X11} in
9169 yes ) HAVE_MENUS=yes ;;
9170 esac
9171
9172 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9173 # Assume not, until told otherwise.
9174 GNU_MALLOC=yes
9175 doug_lea_malloc=yes
9176 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9177 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
9178
9179 else
9180 doug_lea_malloc=no
9181 fi
9182
9183 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9184 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
9185
9186 else
9187 doug_lea_malloc=no
9188 fi
9189
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9191 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9192 if ${emacs_cv_var___after_morecore_hook+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 extern void (* __after_morecore_hook)();
9198 int
9199 main ()
9200 {
9201 __after_morecore_hook = 0
9202 ;
9203 return 0;
9204 }
9205 _ACEOF
9206 if ac_fn_c_try_link "$LINENO"; then :
9207 emacs_cv_var___after_morecore_hook=yes
9208 else
9209 emacs_cv_var___after_morecore_hook=no
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9215 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9216 if test $emacs_cv_var___after_morecore_hook = no; then
9217 doug_lea_malloc=no
9218 fi
9219
9220
9221 system_malloc=no
9222 case "$opsys" in
9223 ## darwin ld insists on the use of malloc routines in the System framework.
9224 darwin|sol2-10) system_malloc=yes ;;
9225 esac
9226
9227 if test "${system_malloc}" = "yes"; then
9228
9229 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9230
9231 GNU_MALLOC=no
9232 GNU_MALLOC_reason="
9233 (The GNU allocators don't work with this system configuration.)"
9234 GMALLOC_OBJ=
9235 VMLIMIT_OBJ=
9236 else
9237 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9238 VMLIMIT_OBJ=vm-limit.o
9239 fi
9240
9241
9242
9243 if test "$doug_lea_malloc" = "yes" ; then
9244 if test "$GNU_MALLOC" = yes ; then
9245 GNU_MALLOC_reason="
9246 (Using Doug Lea's new malloc from the GNU C Library.)"
9247 fi
9248
9249 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9250
9251
9252 ## Use mmap directly for allocating larger buffers.
9253 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9254 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9255 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9256 case "$opsys" in
9257 gnu*) REL_ALLOC=no ;;
9258 esac
9259 fi
9260
9261 if test x"${REL_ALLOC}" = x; then
9262 REL_ALLOC=${GNU_MALLOC}
9263 fi
9264
9265 use_mmap_for_buffers=no
9266 case "$opsys" in
9267 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9268 esac
9269
9270
9271
9272
9273 for ac_header in $ac_header_list
9274 do :
9275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9276 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9277 "
9278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9279 cat >>confdefs.h <<_ACEOF
9280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9281 _ACEOF
9282
9283 fi
9284
9285 done
9286
9287
9288
9289
9290
9291
9292
9293
9294 for ac_func in getpagesize
9295 do :
9296 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9297 if test "x$ac_cv_func_getpagesize" = xyes; then :
9298 cat >>confdefs.h <<_ACEOF
9299 #define HAVE_GETPAGESIZE 1
9300 _ACEOF
9301
9302 fi
9303 done
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9306 $as_echo_n "checking for working mmap... " >&6; }
9307 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 if test "$cross_compiling" = yes; then :
9311 ac_cv_func_mmap_fixed_mapped=no
9312 else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 $ac_includes_default
9316 /* malloc might have been renamed as rpl_malloc. */
9317 #undef malloc
9318
9319 /* Thanks to Mike Haertel and Jim Avera for this test.
9320 Here is a matrix of mmap possibilities:
9321 mmap private not fixed
9322 mmap private fixed at somewhere currently unmapped
9323 mmap private fixed at somewhere already mapped
9324 mmap shared not fixed
9325 mmap shared fixed at somewhere currently unmapped
9326 mmap shared fixed at somewhere already mapped
9327 For private mappings, we should verify that changes cannot be read()
9328 back from the file, nor mmap's back from the file at a different
9329 address. (There have been systems where private was not correctly
9330 implemented like the infamous i386 svr4.0, and systems where the
9331 VM page cache was not coherent with the file system buffer cache
9332 like early versions of FreeBSD and possibly contemporary NetBSD.)
9333 For shared mappings, we should conversely verify that changes get
9334 propagated back to all the places they're supposed to be.
9335
9336 Grep wants private fixed already mapped.
9337 The main things grep needs to know about mmap are:
9338 * does it exist and is it safe to write into the mmap'd area
9339 * how to use it (BSD variants) */
9340
9341 #include <fcntl.h>
9342 #include <sys/mman.h>
9343
9344 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9345 char *malloc ();
9346 #endif
9347
9348 /* This mess was copied from the GNU getpagesize.h. */
9349 #ifndef HAVE_GETPAGESIZE
9350 # ifdef _SC_PAGESIZE
9351 # define getpagesize() sysconf(_SC_PAGESIZE)
9352 # else /* no _SC_PAGESIZE */
9353 # ifdef HAVE_SYS_PARAM_H
9354 # include <sys/param.h>
9355 # ifdef EXEC_PAGESIZE
9356 # define getpagesize() EXEC_PAGESIZE
9357 # else /* no EXEC_PAGESIZE */
9358 # ifdef NBPG
9359 # define getpagesize() NBPG * CLSIZE
9360 # ifndef CLSIZE
9361 # define CLSIZE 1
9362 # endif /* no CLSIZE */
9363 # else /* no NBPG */
9364 # ifdef NBPC
9365 # define getpagesize() NBPC
9366 # else /* no NBPC */
9367 # ifdef PAGESIZE
9368 # define getpagesize() PAGESIZE
9369 # endif /* PAGESIZE */
9370 # endif /* no NBPC */
9371 # endif /* no NBPG */
9372 # endif /* no EXEC_PAGESIZE */
9373 # else /* no HAVE_SYS_PARAM_H */
9374 # define getpagesize() 8192 /* punt totally */
9375 # endif /* no HAVE_SYS_PARAM_H */
9376 # endif /* no _SC_PAGESIZE */
9377
9378 #endif /* no HAVE_GETPAGESIZE */
9379
9380 int
9381 main ()
9382 {
9383 char *data, *data2, *data3;
9384 const char *cdata2;
9385 int i, pagesize;
9386 int fd, fd2;
9387
9388 pagesize = getpagesize ();
9389
9390 /* First, make a file with some known garbage in it. */
9391 data = (char *) malloc (pagesize);
9392 if (!data)
9393 return 1;
9394 for (i = 0; i < pagesize; ++i)
9395 *(data + i) = rand ();
9396 umask (0);
9397 fd = creat ("conftest.mmap", 0600);
9398 if (fd < 0)
9399 return 2;
9400 if (write (fd, data, pagesize) != pagesize)
9401 return 3;
9402 close (fd);
9403
9404 /* Next, check that the tail of a page is zero-filled. File must have
9405 non-zero length, otherwise we risk SIGBUS for entire page. */
9406 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9407 if (fd2 < 0)
9408 return 4;
9409 cdata2 = "";
9410 if (write (fd2, cdata2, 1) != 1)
9411 return 5;
9412 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9413 if (data2 == MAP_FAILED)
9414 return 6;
9415 for (i = 0; i < pagesize; ++i)
9416 if (*(data2 + i))
9417 return 7;
9418 close (fd2);
9419 if (munmap (data2, pagesize))
9420 return 8;
9421
9422 /* Next, try to mmap the file at a fixed address which already has
9423 something else allocated at it. If we can, also make sure that
9424 we see the same garbage. */
9425 fd = open ("conftest.mmap", O_RDWR);
9426 if (fd < 0)
9427 return 9;
9428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9429 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9430 return 10;
9431 for (i = 0; i < pagesize; ++i)
9432 if (*(data + i) != *(data2 + i))
9433 return 11;
9434
9435 /* Finally, make sure that changes to the mapped area do not
9436 percolate back to the file as seen by read(). (This is a bug on
9437 some variants of i386 svr4.0.) */
9438 for (i = 0; i < pagesize; ++i)
9439 *(data2 + i) = *(data2 + i) + 1;
9440 data3 = (char *) malloc (pagesize);
9441 if (!data3)
9442 return 12;
9443 if (read (fd, data3, pagesize) != pagesize)
9444 return 13;
9445 for (i = 0; i < pagesize; ++i)
9446 if (*(data + i) != *(data3 + i))
9447 return 14;
9448 close (fd);
9449 return 0;
9450 }
9451 _ACEOF
9452 if ac_fn_c_try_run "$LINENO"; then :
9453 ac_cv_func_mmap_fixed_mapped=yes
9454 else
9455 ac_cv_func_mmap_fixed_mapped=no
9456 fi
9457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9458 conftest.$ac_objext conftest.beam conftest.$ac_ext
9459 fi
9460
9461 fi
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9463 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9464 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9465
9466 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9467
9468 fi
9469 rm -f conftest.mmap conftest.txt
9470
9471 if test $use_mmap_for_buffers = yes; then
9472
9473 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9474
9475 REL_ALLOC=no
9476 fi
9477
9478 LIBS="$LIBS_SYSTEM $LIBS"
9479
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9481 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9482 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9483 $as_echo_n "(cached) " >&6
9484 else
9485 ac_check_lib_save_LIBS=$LIBS
9486 LIBS="-ldnet $LIBS"
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489
9490 /* Override any GCC internal prototype to avoid an error.
9491 Use char because int might match the return type of a GCC
9492 builtin and then its argument prototype would still apply. */
9493 #ifdef __cplusplus
9494 extern "C"
9495 #endif
9496 char dnet_ntoa ();
9497 int
9498 main ()
9499 {
9500 return dnet_ntoa ();
9501 ;
9502 return 0;
9503 }
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 ac_cv_lib_dnet_dnet_ntoa=yes
9507 else
9508 ac_cv_lib_dnet_dnet_ntoa=no
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 LIBS=$ac_check_lib_save_LIBS
9513 fi
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9515 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9516 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9517 cat >>confdefs.h <<_ACEOF
9518 #define HAVE_LIBDNET 1
9519 _ACEOF
9520
9521 LIBS="-ldnet $LIBS"
9522
9523 fi
9524
9525
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9527 $as_echo_n "checking for main in -lXbsd... " >&6; }
9528 if ${ac_cv_lib_Xbsd_main+:} false; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 ac_check_lib_save_LIBS=$LIBS
9532 LIBS="-lXbsd $LIBS"
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535
9536
9537 int
9538 main ()
9539 {
9540 return main ();
9541 ;
9542 return 0;
9543 }
9544 _ACEOF
9545 if ac_fn_c_try_link "$LINENO"; then :
9546 ac_cv_lib_Xbsd_main=yes
9547 else
9548 ac_cv_lib_Xbsd_main=no
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext \
9551 conftest$ac_exeext conftest.$ac_ext
9552 LIBS=$ac_check_lib_save_LIBS
9553 fi
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9555 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9556 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9557 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9558 fi
9559
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9562 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9563 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9564 $as_echo_n "(cached) " >&6
9565 else
9566 ac_check_lib_save_LIBS=$LIBS
9567 LIBS="-lpthreads $LIBS"
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570
9571 /* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
9574 #ifdef __cplusplus
9575 extern "C"
9576 #endif
9577 char cma_open ();
9578 int
9579 main ()
9580 {
9581 return cma_open ();
9582 ;
9583 return 0;
9584 }
9585 _ACEOF
9586 if ac_fn_c_try_link "$LINENO"; then :
9587 ac_cv_lib_pthreads_cma_open=yes
9588 else
9589 ac_cv_lib_pthreads_cma_open=no
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext \
9592 conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9594 fi
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9596 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9597 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE_LIBPTHREADS 1
9600 _ACEOF
9601
9602 LIBS="-lpthreads $LIBS"
9603
9604 fi
9605
9606
9607 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9608 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9609 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9610 ## added to LIBS in configure would never contain the pthreads part,
9611 ## but the value used in Makefiles might. FIXME?
9612 ##
9613 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9614 ## be harmless on older versions of X where it happens to exist.
9615 test "$opsys" = "aix4-2" && \
9616 test $ac_cv_lib_pthreads_cma_open = yes && \
9617 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9618
9619
9620 case ${host_os} in
9621 aix*)
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9623 $as_echo_n "checking for -bbigtoc option... " >&6; }
9624 if ${gdb_cv_bigtoc+:} false; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627
9628 case $GCC in
9629 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9630 *) gdb_cv_bigtoc=-bbigtoc ;;
9631 esac
9632
9633 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636
9637 int
9638 main ()
9639 {
9640 int i;
9641 ;
9642 return 0;
9643 }
9644 _ACEOF
9645 if ac_fn_c_try_link "$LINENO"; then :
9646
9647 else
9648 gdb_cv_bigtoc=
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext \
9651 conftest$ac_exeext conftest.$ac_ext
9652
9653 fi
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9655 $as_echo "$gdb_cv_bigtoc" >&6; }
9656 ;;
9657 esac
9658
9659 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9660 # used for the tests that follow. We set them back to REAL_CFLAGS and
9661 # REAL_CPPFLAGS later on.
9662
9663 REAL_CFLAGS="$CFLAGS"
9664 REAL_CPPFLAGS="$CPPFLAGS"
9665
9666 if test "${HAVE_X11}" = "yes"; then
9667 DEFS="$C_SWITCH_X_SITE $DEFS"
9668 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9669 LIBS="-lX11 $LIBS"
9670 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9671 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9672
9673 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9674 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9675 # but it's more convenient here to set LD_RUN_PATH
9676 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9677 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9678 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9679 export LD_RUN_PATH
9680 fi
9681
9682 if test "${opsys}" = "gnu-linux"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9684 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9687
9688 int
9689 main ()
9690 {
9691 XOpenDisplay ("foo");
9692 ;
9693 return 0;
9694 }
9695 _ACEOF
9696 if ac_fn_c_try_link "$LINENO"; then :
9697 xlinux_first_failure=no
9698 else
9699 xlinux_first_failure=yes
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703 if test "${xlinux_first_failure}" = "yes"; then
9704 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9705 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9706 OLD_CPPFLAGS="$CPPFLAGS"
9707 OLD_LIBS="$LIBS"
9708 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9709 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9710 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9711 LIBS="$LIBS -b i486-linuxaout"
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9714
9715 int
9716 main ()
9717 {
9718 XOpenDisplay ("foo");
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 if ac_fn_c_try_link "$LINENO"; then :
9724 xlinux_second_failure=no
9725 else
9726 xlinux_second_failure=yes
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730 if test "${xlinux_second_failure}" = "yes"; then
9731 # If we get the same failure with -b, there is no use adding -b.
9732 # So take it out. This plays safe.
9733 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9734 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9735 CPPFLAGS="$OLD_CPPFLAGS"
9736 LIBS="$OLD_LIBS"
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9739 else
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9741 $as_echo "yes" >&6; }
9742 fi
9743 else
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9746 fi
9747 fi
9748
9749 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9750 # header files included from there.
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9752 $as_echo_n "checking for Xkb... " >&6; }
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <X11/Xlib.h>
9756 #include <X11/XKBlib.h>
9757 int
9758 main ()
9759 {
9760 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9761 ;
9762 return 0;
9763 }
9764 _ACEOF
9765 if ac_fn_c_try_link "$LINENO"; then :
9766 emacs_xkb=yes
9767 else
9768 emacs_xkb=no
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9773 $as_echo "$emacs_xkb" >&6; }
9774 if test $emacs_xkb = yes; then
9775
9776 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9777
9778 fi
9779
9780 for ac_func in XrmSetDatabase XScreenResourceString \
9781 XScreenNumberOfScreen XSetWMProtocols
9782 do :
9783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9784 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9785 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9786 cat >>confdefs.h <<_ACEOF
9787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9788 _ACEOF
9789
9790 fi
9791 done
9792
9793 fi
9794
9795 if test "${window_system}" = "x11"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9797 $as_echo_n "checking X11 version 6... " >&6; }
9798 if ${emacs_cv_x11_version_6+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 #include <X11/Xlib.h>
9804 int
9805 main ()
9806 {
9807 #if XlibSpecificationRelease < 6
9808 fail;
9809 #endif
9810
9811 ;
9812 return 0;
9813 }
9814 _ACEOF
9815 if ac_fn_c_try_link "$LINENO"; then :
9816 emacs_cv_x11_version_6=yes
9817 else
9818 emacs_cv_x11_version_6=no
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 fi
9823
9824 if test $emacs_cv_x11_version_6 = yes; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9826 $as_echo "6 or newer" >&6; }
9827
9828 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9829
9830
9831 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9832
9833 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9834 ## XIM support.
9835 case "$opsys" in
9836 sol2-*) : ;;
9837 *)
9838 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9839
9840 ;;
9841 esac
9842 else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9844 $as_echo "before 6" >&6; }
9845 fi
9846 fi
9847
9848
9849 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9850 HAVE_RSVG=no
9851 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9852 if test "${with_rsvg}" != "no"; then
9853 RSVG_REQUIRED=2.11.0
9854 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9855
9856
9857 succeeded=no
9858
9859 # Extract the first word of "pkg-config", so it can be a program name with args.
9860 set dummy pkg-config; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 case $PKG_CONFIG in
9867 [\\/]* | ?:[\\/]*)
9868 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9869 ;;
9870 *)
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9878 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880 break 2
9881 fi
9882 done
9883 done
9884 IFS=$as_save_IFS
9885
9886 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9887 ;;
9888 esac
9889 fi
9890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9891 if test -n "$PKG_CONFIG"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9893 $as_echo "$PKG_CONFIG" >&6; }
9894 else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9897 fi
9898
9899
9900
9901 if test "$PKG_CONFIG" = "no" ; then
9902 :
9903 else
9904 PKG_CONFIG_MIN_VERSION=0.9.0
9905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9907 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9908
9909 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9911 $as_echo "yes" >&6; }
9912 succeeded=yes
9913
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9915 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9916 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9918 $as_echo "$RSVG_CFLAGS" >&6; }
9919
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9921 $as_echo_n "checking RSVG_LIBS... " >&6; }
9922 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9924 $as_echo "$RSVG_LIBS" >&6; }
9925 else
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927 $as_echo "no" >&6; }
9928 RSVG_CFLAGS=""
9929 RSVG_LIBS=""
9930 ## If we have a custom action on failure, don't print errors, but
9931 ## do set a variable so people can do so.
9932 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9933
9934 fi
9935
9936
9937
9938 else
9939 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9940 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9941 fi
9942 fi
9943
9944 if test $succeeded = yes; then
9945 HAVE_RSVG=yes
9946 else
9947 :
9948 fi
9949
9950
9951
9952
9953 if test $HAVE_RSVG = yes; then
9954
9955 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9956
9957 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9958 LIBS="$RSVG_LIBS $LIBS"
9959 fi
9960 fi
9961 fi
9962
9963 HAVE_IMAGEMAGICK=no
9964 if test "${HAVE_X11}" = "yes"; then
9965 if test "${with_imagemagick}" != "no"; then
9966 IMAGEMAGICK_MODULE="Wand"
9967
9968 succeeded=no
9969
9970 # Extract the first word of "pkg-config", so it can be a program name with args.
9971 set dummy pkg-config; ac_word=$2
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973 $as_echo_n "checking for $ac_word... " >&6; }
9974 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9975 $as_echo_n "(cached) " >&6
9976 else
9977 case $PKG_CONFIG in
9978 [\\/]* | ?:[\\/]*)
9979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9980 ;;
9981 *)
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 for as_dir in $PATH
9984 do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9992 fi
9993 done
9994 done
9995 IFS=$as_save_IFS
9996
9997 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9998 ;;
9999 esac
10000 fi
10001 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10002 if test -n "$PKG_CONFIG"; then
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10004 $as_echo "$PKG_CONFIG" >&6; }
10005 else
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10007 $as_echo "no" >&6; }
10008 fi
10009
10010
10011
10012 if test "$PKG_CONFIG" = "no" ; then
10013 :
10014 else
10015 PKG_CONFIG_MIN_VERSION=0.9.0
10016 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10018 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10019
10020 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10022 $as_echo "yes" >&6; }
10023 succeeded=yes
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10026 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10027 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10029 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10030
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10032 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10033 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10035 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10036 else
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10039 IMAGEMAGICK_CFLAGS=""
10040 IMAGEMAGICK_LIBS=""
10041 ## If we have a custom action on failure, don't print errors, but
10042 ## do set a variable so people can do so.
10043 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10044
10045 fi
10046
10047
10048
10049 else
10050 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10051 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10052 fi
10053 fi
10054
10055 if test $succeeded = yes; then
10056 HAVE_IMAGEMAGICK=yes
10057 else
10058 :
10059 fi
10060
10061
10062
10063
10064 if test $HAVE_IMAGEMAGICK = yes; then
10065
10066 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10067
10068 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10069 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10070 for ac_func in MagickExportImagePixels
10071 do :
10072 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10073 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
10074 cat >>confdefs.h <<_ACEOF
10075 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10076 _ACEOF
10077
10078 fi
10079 done
10080
10081 fi
10082 fi
10083 fi
10084
10085
10086 HAVE_GTK=no
10087 if test "${with_gtk3}" = "yes"; then
10088 GLIB_REQUIRED=2.6
10089 GTK_REQUIRED=2.90
10090 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10091
10092
10093 succeeded=no
10094
10095 # Extract the first word of "pkg-config", so it can be a program name with args.
10096 set dummy pkg-config; ac_word=$2
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 $as_echo_n "checking for $ac_word... " >&6; }
10099 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 case $PKG_CONFIG in
10103 [\\/]* | ?:[\\/]*)
10104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10105 ;;
10106 *)
10107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108 for as_dir in $PATH
10109 do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10116 break 2
10117 fi
10118 done
10119 done
10120 IFS=$as_save_IFS
10121
10122 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10123 ;;
10124 esac
10125 fi
10126 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10127 if test -n "$PKG_CONFIG"; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10129 $as_echo "$PKG_CONFIG" >&6; }
10130 else
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 $as_echo "no" >&6; }
10133 fi
10134
10135
10136
10137 if test "$PKG_CONFIG" = "no" ; then
10138 pkg_check_gtk=no
10139 else
10140 PKG_CONFIG_MIN_VERSION=0.9.0
10141 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10143 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10144
10145 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10147 $as_echo "yes" >&6; }
10148 succeeded=yes
10149
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10151 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10152 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10154 $as_echo "$GTK_CFLAGS" >&6; }
10155
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10157 $as_echo_n "checking GTK_LIBS... " >&6; }
10158 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10160 $as_echo "$GTK_LIBS" >&6; }
10161 else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }
10164 GTK_CFLAGS=""
10165 GTK_LIBS=""
10166 ## If we have a custom action on failure, don't print errors, but
10167 ## do set a variable so people can do so.
10168 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10169
10170 fi
10171
10172
10173
10174 else
10175 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10176 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10177 fi
10178 fi
10179
10180 if test $succeeded = yes; then
10181 pkg_check_gtk=yes
10182 else
10183 pkg_check_gtk=no
10184 fi
10185
10186 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10187 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10188 fi
10189 fi
10190
10191 if test "$pkg_check_gtk" != "yes"; then
10192 HAVE_GTK=no
10193 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10194 GLIB_REQUIRED=2.6
10195 GTK_REQUIRED=2.6
10196 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10197
10198
10199 succeeded=no
10200
10201 # Extract the first word of "pkg-config", so it can be a program name with args.
10202 set dummy pkg-config; ac_word=$2
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204 $as_echo_n "checking for $ac_word... " >&6; }
10205 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10206 $as_echo_n "(cached) " >&6
10207 else
10208 case $PKG_CONFIG in
10209 [\\/]* | ?:[\\/]*)
10210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10211 ;;
10212 *)
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10215 do
10216 IFS=$as_save_IFS
10217 test -z "$as_dir" && as_dir=.
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10222 break 2
10223 fi
10224 done
10225 done
10226 IFS=$as_save_IFS
10227
10228 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10229 ;;
10230 esac
10231 fi
10232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10233 if test -n "$PKG_CONFIG"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10235 $as_echo "$PKG_CONFIG" >&6; }
10236 else
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10239 fi
10240
10241
10242
10243 if test "$PKG_CONFIG" = "no" ; then
10244 pkg_check_gtk=no
10245 else
10246 PKG_CONFIG_MIN_VERSION=0.9.0
10247 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10249 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10250
10251 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10253 $as_echo "yes" >&6; }
10254 succeeded=yes
10255
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10257 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10258 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10260 $as_echo "$GTK_CFLAGS" >&6; }
10261
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10263 $as_echo_n "checking GTK_LIBS... " >&6; }
10264 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10266 $as_echo "$GTK_LIBS" >&6; }
10267 else
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10270 GTK_CFLAGS=""
10271 GTK_LIBS=""
10272 ## If we have a custom action on failure, don't print errors, but
10273 ## do set a variable so people can do so.
10274 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10275
10276 fi
10277
10278
10279
10280 else
10281 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10282 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10283 fi
10284 fi
10285
10286 if test $succeeded = yes; then
10287 pkg_check_gtk=yes
10288 else
10289 pkg_check_gtk=no
10290 fi
10291
10292 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10293 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10294 fi
10295 fi
10296 fi
10297
10298 GTK_OBJ=
10299 if test x"$pkg_check_gtk" = xyes; then
10300
10301
10302
10303 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10304 CFLAGS="$CFLAGS $GTK_CFLAGS"
10305 LIBS="$GTK_LIBS $LIBS"
10306 GTK_COMPILES=no
10307 for ac_func in gtk_main
10308 do :
10309 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10310 if test "x$ac_cv_func_gtk_main" = xyes; then :
10311 cat >>confdefs.h <<_ACEOF
10312 #define HAVE_GTK_MAIN 1
10313 _ACEOF
10314 GTK_COMPILES=yes
10315 fi
10316 done
10317
10318 if test "${GTK_COMPILES}" != "yes"; then
10319 if test "$USE_X_TOOLKIT" != "maybe"; then
10320 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10321 fi
10322 else
10323 HAVE_GTK=yes
10324
10325 $as_echo "#define USE_GTK 1" >>confdefs.h
10326
10327 GTK_OBJ=gtkutil.o
10328 USE_X_TOOLKIT=none
10329 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10330 :
10331 else
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10333 closing open displays. This is no problem if you just use
10334 one display, but if you use more than one and close one of them
10335 Emacs may crash." >&5
10336 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10337 closing open displays. This is no problem if you just use
10338 one display, but if you use more than one and close one of them
10339 Emacs may crash." >&2;}
10340 sleep 3
10341 fi
10342 fi
10343
10344 fi
10345
10346
10347
10348 if test "${HAVE_GTK}" = "yes"; then
10349
10350 if test "$with_toolkit_scroll_bars" != no; then
10351 with_toolkit_scroll_bars=yes
10352 fi
10353
10354 HAVE_GTK_FILE_SELECTION=no
10355 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10356 #include <gtk/gtk.h>
10357 "
10358 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10359 HAVE_GTK_FILE_SELECTION=yes
10360 else
10361 HAVE_GTK_FILE_SELECTION=no
10362 fi
10363
10364 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10365 for ac_func in gtk_file_selection_new
10366 do :
10367 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10368 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10369 cat >>confdefs.h <<_ACEOF
10370 #define HAVE_GTK_FILE_SELECTION_NEW 1
10371 _ACEOF
10372
10373 fi
10374 done
10375
10376 fi
10377
10378 HAVE_GTK_AND_PTHREAD=no
10379 for ac_header in pthread.h
10380 do :
10381 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10382 if test "x$ac_cv_header_pthread_h" = xyes; then :
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_PTHREAD_H 1
10385 _ACEOF
10386
10387 fi
10388
10389 done
10390
10391 if test "$ac_cv_header_pthread_h"; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10393 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10394 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10397 ac_check_lib_save_LIBS=$LIBS
10398 LIBS="-lpthread $LIBS"
10399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10401
10402 /* Override any GCC internal prototype to avoid an error.
10403 Use char because int might match the return type of a GCC
10404 builtin and then its argument prototype would still apply. */
10405 #ifdef __cplusplus
10406 extern "C"
10407 #endif
10408 char pthread_self ();
10409 int
10410 main ()
10411 {
10412 return pthread_self ();
10413 ;
10414 return 0;
10415 }
10416 _ACEOF
10417 if ac_fn_c_try_link "$LINENO"; then :
10418 ac_cv_lib_pthread_pthread_self=yes
10419 else
10420 ac_cv_lib_pthread_pthread_self=no
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10424 LIBS=$ac_check_lib_save_LIBS
10425 fi
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10427 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10428 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10429 HAVE_GTK_AND_PTHREAD=yes
10430 fi
10431
10432 fi
10433 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10434 case "${canonical}" in
10435 *-hpux*) ;;
10436 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10437 esac
10438
10439 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10440
10441 fi
10442
10443 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10444 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10445 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10446 gtk_orientable_set_orientation
10447 do :
10448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10449 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10450 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10451 cat >>confdefs.h <<_ACEOF
10452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10453 _ACEOF
10454
10455 fi
10456 done
10457
10458
10459 fi
10460
10461 HAVE_DBUS=no
10462 DBUS_OBJ=
10463 if test "${with_dbus}" = "yes"; then
10464
10465 succeeded=no
10466
10467 # Extract the first word of "pkg-config", so it can be a program name with args.
10468 set dummy pkg-config; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 case $PKG_CONFIG in
10475 [\\/]* | ?:[\\/]*)
10476 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10477 ;;
10478 *)
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10481 do
10482 IFS=$as_save_IFS
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 break 2
10489 fi
10490 done
10491 done
10492 IFS=$as_save_IFS
10493
10494 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10495 ;;
10496 esac
10497 fi
10498 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10499 if test -n "$PKG_CONFIG"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10501 $as_echo "$PKG_CONFIG" >&6; }
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 fi
10506
10507
10508
10509 if test "$PKG_CONFIG" = "no" ; then
10510 HAVE_DBUS=no
10511 else
10512 PKG_CONFIG_MIN_VERSION=0.9.0
10513 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10515 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10516
10517 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10519 $as_echo "yes" >&6; }
10520 succeeded=yes
10521
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10523 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10524 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10526 $as_echo "$DBUS_CFLAGS" >&6; }
10527
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10529 $as_echo_n "checking DBUS_LIBS... " >&6; }
10530 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10532 $as_echo "$DBUS_LIBS" >&6; }
10533 else
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10536 DBUS_CFLAGS=""
10537 DBUS_LIBS=""
10538 ## If we have a custom action on failure, don't print errors, but
10539 ## do set a variable so people can do so.
10540 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10541
10542 fi
10543
10544
10545
10546 else
10547 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10548 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10549 fi
10550 fi
10551
10552 if test $succeeded = yes; then
10553 HAVE_DBUS=yes
10554 else
10555 HAVE_DBUS=no
10556 fi
10557
10558 if test "$HAVE_DBUS" = yes; then
10559 LIBS="$LIBS $DBUS_LIBS"
10560
10561 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10562
10563 for ac_func in dbus_watch_get_unix_fd
10564 do :
10565 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10566 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10567 cat >>confdefs.h <<_ACEOF
10568 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10569 _ACEOF
10570
10571 fi
10572 done
10573
10574 DBUS_OBJ=dbusbind.o
10575 fi
10576 fi
10577
10578
10579 HAVE_GCONF=no
10580 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10581
10582 succeeded=no
10583
10584 # Extract the first word of "pkg-config", so it can be a program name with args.
10585 set dummy pkg-config; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 case $PKG_CONFIG in
10592 [\\/]* | ?:[\\/]*)
10593 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10594 ;;
10595 *)
10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597 for as_dir in $PATH
10598 do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10603 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605 break 2
10606 fi
10607 done
10608 done
10609 IFS=$as_save_IFS
10610
10611 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10612 ;;
10613 esac
10614 fi
10615 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10616 if test -n "$PKG_CONFIG"; then
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10618 $as_echo "$PKG_CONFIG" >&6; }
10619 else
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10622 fi
10623
10624
10625
10626 if test "$PKG_CONFIG" = "no" ; then
10627 HAVE_GCONF=no
10628 else
10629 PKG_CONFIG_MIN_VERSION=0.9.0
10630 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10632 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10633
10634 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10636 $as_echo "yes" >&6; }
10637 succeeded=yes
10638
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10640 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10641 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10643 $as_echo "$GCONF_CFLAGS" >&6; }
10644
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10646 $as_echo_n "checking GCONF_LIBS... " >&6; }
10647 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10649 $as_echo "$GCONF_LIBS" >&6; }
10650 else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10653 GCONF_CFLAGS=""
10654 GCONF_LIBS=""
10655 ## If we have a custom action on failure, don't print errors, but
10656 ## do set a variable so people can do so.
10657 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10658
10659 fi
10660
10661
10662
10663 else
10664 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10665 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10666 fi
10667 fi
10668
10669 if test $succeeded = yes; then
10670 HAVE_GCONF=yes
10671 else
10672 HAVE_GCONF=no
10673 fi
10674
10675 if test "$HAVE_GCONF" = yes; then
10676
10677 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10678
10679 for ac_func in g_type_init
10680 do :
10681 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10682 if test "x$ac_cv_func_g_type_init" = xyes; then :
10683 cat >>confdefs.h <<_ACEOF
10684 #define HAVE_G_TYPE_INIT 1
10685 _ACEOF
10686
10687 fi
10688 done
10689
10690 fi
10691 fi
10692
10693 HAVE_LIBSELINUX=no
10694 LIBSELINUX_LIBS=
10695 if test "${with_selinux}" = "yes"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10697 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10698 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-lselinux $LIBS"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char lgetfilecon ();
10713 int
10714 main ()
10715 {
10716 return lgetfilecon ();
10717 ;
10718 return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722 ac_cv_lib_selinux_lgetfilecon=yes
10723 else
10724 ac_cv_lib_selinux_lgetfilecon=no
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10729 fi
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10731 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10732 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10733 HAVE_LIBSELINUX=yes
10734 else
10735 HAVE_LIBSELINUX=no
10736 fi
10737
10738 if test "$HAVE_LIBSELINUX" = yes; then
10739
10740 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10741
10742 LIBSELINUX_LIBS=-lselinux
10743 fi
10744 fi
10745
10746
10747 HAVE_GNUTLS=no
10748 if test "${with_gnutls}" = "yes" ; then
10749
10750 succeeded=no
10751
10752 # Extract the first word of "pkg-config", so it can be a program name with args.
10753 set dummy pkg-config; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 case $PKG_CONFIG in
10760 [\\/]* | ?:[\\/]*)
10761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10762 ;;
10763 *)
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10766 do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 break 2
10774 fi
10775 done
10776 done
10777 IFS=$as_save_IFS
10778
10779 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10780 ;;
10781 esac
10782 fi
10783 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10784 if test -n "$PKG_CONFIG"; then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10786 $as_echo "$PKG_CONFIG" >&6; }
10787 else
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789 $as_echo "no" >&6; }
10790 fi
10791
10792
10793
10794 if test "$PKG_CONFIG" = "no" ; then
10795 HAVE_GNUTLS=no
10796 else
10797 PKG_CONFIG_MIN_VERSION=0.9.0
10798 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10800 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10801
10802 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804 $as_echo "yes" >&6; }
10805 succeeded=yes
10806
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10808 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10809 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10811 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10812
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10814 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10815 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10817 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10818 else
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821 LIBGNUTLS_CFLAGS=""
10822 LIBGNUTLS_LIBS=""
10823 ## If we have a custom action on failure, don't print errors, but
10824 ## do set a variable so people can do so.
10825 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10826
10827 fi
10828
10829
10830
10831 else
10832 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10833 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10834 fi
10835 fi
10836
10837 if test $succeeded = yes; then
10838 HAVE_GNUTLS=yes
10839 else
10840 HAVE_GNUTLS=no
10841 fi
10842
10843 if test "${HAVE_GNUTLS}" = "yes"; then
10844
10845 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10846
10847 fi
10848 fi
10849
10850
10851
10852 HAVE_XAW3D=no
10853 LUCID_LIBW=
10854 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10855 if test "$with_xaw3d" != no; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10857 $as_echo_n "checking for xaw3d... " >&6; }
10858 if ${emacs_cv_xaw3d+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863
10864 #include <X11/Intrinsic.h>
10865 #include <X11/Xaw3d/Simple.h>
10866 int
10867 main ()
10868 {
10869
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10876 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10877 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880 ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-lXaw3d $LIBS"
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10884
10885 /* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char XawScrollbarSetThumb ();
10892 int
10893 main ()
10894 {
10895 return XawScrollbarSetThumb ();
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"; then :
10901 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10902 else
10903 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10910 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10911 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
10912 emacs_cv_xaw3d=yes
10913 else
10914 emacs_cv_xaw3d=no
10915 fi
10916
10917 else
10918 emacs_cv_xaw3d=no
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 fi
10923
10924 else
10925 emacs_cv_xaw3d=no
10926 fi
10927 if test $emacs_cv_xaw3d = yes; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10929 $as_echo "yes; using Lucid toolkit" >&6; }
10930 USE_X_TOOLKIT=LUCID
10931 HAVE_XAW3D=yes
10932 LUCID_LIBW=-lXaw3d
10933
10934 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10935
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10938 $as_echo "no" >&6; }
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10940 $as_echo_n "checking for libXaw... " >&6; }
10941 if ${emacs_cv_xaw+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946
10947 #include <X11/Intrinsic.h>
10948 #include <X11/Xaw/Simple.h>
10949 int
10950 main ()
10951 {
10952
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 emacs_cv_xaw=yes
10959 else
10960 emacs_cv_xaw=no
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 fi
10965
10966 if test $emacs_cv_xaw = yes; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10968 $as_echo "yes; using Lucid toolkit" >&6; }
10969 USE_X_TOOLKIT=LUCID
10970 LUCID_LIBW=-lXaw
10971 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10972 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10975 $as_echo "no; do not use toolkit by default" >&6; }
10976 USE_X_TOOLKIT=none
10977 fi
10978 fi
10979 fi
10980
10981 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10982
10983 LIBXTR6=
10984 if test "${USE_X_TOOLKIT}" != "none"; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10986 $as_echo_n "checking X11 toolkit version... " >&6; }
10987 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10992 #include <X11/Intrinsic.h>
10993 int
10994 main ()
10995 {
10996 #if XtSpecificationRelease < 6
10997 fail;
10998 #endif
10999
11000 ;
11001 return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 emacs_cv_x11_toolkit_version_6=yes
11006 else
11007 emacs_cv_x11_toolkit_version_6=no
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 fi
11012
11013 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11014 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11016 $as_echo "6 or newer" >&6; }
11017
11018 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11019
11020 LIBXTR6="-lSM -lICE"
11021 case "$opsys" in
11022 ## Use libw.a along with X11R6 Xt.
11023 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11024 esac
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11027 $as_echo "before 6" >&6; }
11028 fi
11029
11030 OLDLIBS="$LIBS"
11031 if test x$HAVE_X11XTR6 = xyes; then
11032 LIBS="-lXt -lSM -lICE $LIBS"
11033 else
11034 LIBS="-lXt $LIBS"
11035 fi
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11037 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11038 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 ac_check_lib_save_LIBS=$LIBS
11042 LIBS="-lXmu $LIBS"
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11045
11046 /* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 char XmuConvertStandardSelection ();
11053 int
11054 main ()
11055 {
11056 return XmuConvertStandardSelection ();
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11063 else
11064 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
11068 LIBS=$ac_check_lib_save_LIBS
11069 fi
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11071 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11072 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
11073 cat >>confdefs.h <<_ACEOF
11074 #define HAVE_LIBXMU 1
11075 _ACEOF
11076
11077 LIBS="-lXmu $LIBS"
11078
11079 fi
11080
11081 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11082 fi
11083
11084
11085 LIBXMU=-lXmu
11086 case $opsys in
11087 ## These systems don't supply Xmu.
11088 hpux* | aix4-2 )
11089 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11090 ;;
11091 esac
11092
11093
11094 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11095 if test "${HAVE_X11}" = "yes"; then
11096 if test "${USE_X_TOOLKIT}" != "none"; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11098 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11099 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 ac_check_lib_save_LIBS=$LIBS
11103 LIBS="-lXext $LIBS"
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11106
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 char XShapeQueryExtension ();
11114 int
11115 main ()
11116 {
11117 return XShapeQueryExtension ();
11118 ;
11119 return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_c_try_link "$LINENO"; then :
11123 ac_cv_lib_Xext_XShapeQueryExtension=yes
11124 else
11125 ac_cv_lib_Xext_XShapeQueryExtension=no
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11130 fi
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11132 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11133 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
11134 cat >>confdefs.h <<_ACEOF
11135 #define HAVE_LIBXEXT 1
11136 _ACEOF
11137
11138 LIBS="-lXext $LIBS"
11139
11140 fi
11141
11142 fi
11143 fi
11144
11145 LIBXP=
11146 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11148 $as_echo_n "checking for Motif version 2.1... " >&6; }
11149 if ${emacs_cv_motif_version_2_1+:} false; then :
11150 $as_echo_n "(cached) " >&6
11151 else
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11154 #include <Xm/Xm.h>
11155 int
11156 main ()
11157 {
11158 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11159 int x = 5;
11160 #else
11161 Motif version prior to 2.1.
11162 #endif
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_compile "$LINENO"; then :
11168 emacs_cv_motif_version_2_1=yes
11169 else
11170 emacs_cv_motif_version_2_1=no
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11175 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11176 if test $emacs_cv_motif_version_2_1 = yes; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11178 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11179 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-lXp $LIBS"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11186
11187 /* Override any GCC internal prototype to avoid an error.
11188 Use char because int might match the return type of a GCC
11189 builtin and then its argument prototype would still apply. */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 char XpCreateContext ();
11194 int
11195 main ()
11196 {
11197 return XpCreateContext ();
11198 ;
11199 return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 ac_cv_lib_Xp_XpCreateContext=yes
11204 else
11205 ac_cv_lib_Xp_XpCreateContext=no
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11209 LIBS=$ac_check_lib_save_LIBS
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11212 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11213 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
11214 LIBXP=-lXp
11215 fi
11216
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11219 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11220 if ${emacs_cv_lesstif+:} false; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 # We put this in CFLAGS temporarily to precede other -I options
11224 # that might be in CFLAGS temporarily.
11225 # We put this in CPPFLAGS where it precedes the other -I options.
11226 OLD_CPPFLAGS=$CPPFLAGS
11227 OLD_CFLAGS=$CFLAGS
11228 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11229 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h. */
11232 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11233 int
11234 main ()
11235 {
11236 int x = 5;
11237 ;
11238 return 0;
11239 }
11240 _ACEOF
11241 if ac_fn_c_try_compile "$LINENO"; then :
11242 emacs_cv_lesstif=yes
11243 else
11244 emacs_cv_lesstif=no
11245 fi
11246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11247 fi
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11249 $as_echo "$emacs_cv_lesstif" >&6; }
11250 if test $emacs_cv_lesstif = yes; then
11251 # Make sure this -I option remains in CPPFLAGS after it is set
11252 # back to REAL_CPPFLAGS.
11253 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11254 # have those other -I options anyway. Ultimately, having this
11255 # directory ultimately in CPPFLAGS will be enough.
11256 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11257 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11258 else
11259 CFLAGS=$OLD_CFLAGS
11260 CPPFLAGS=$OLD_CPPFLAGS
11261 fi
11262 fi
11263 fi
11264
11265
11266 USE_TOOLKIT_SCROLL_BARS=no
11267 if test "${with_toolkit_scroll_bars}" != "no"; then
11268 if test "${USE_X_TOOLKIT}" != "none"; then
11269 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11270 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11271
11272 HAVE_XAW3D=no
11273 USE_TOOLKIT_SCROLL_BARS=yes
11274 elif test "${HAVE_XAW3D}" = "yes"; then
11275 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11276
11277 USE_TOOLKIT_SCROLL_BARS=yes
11278 fi
11279 elif test "${HAVE_GTK}" = "yes"; then
11280 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11281
11282 USE_TOOLKIT_SCROLL_BARS=yes
11283 elif test "${HAVE_NS}" = "yes"; then
11284 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11285
11286 USE_TOOLKIT_SCROLL_BARS=yes
11287 fi
11288 fi
11289
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11292
11293 #include <X11/Xlib.h>
11294 #include <X11/Xresource.h>
11295 int
11296 main ()
11297 {
11298 XIMProc callback;
11299 ;
11300 return 0;
11301 }
11302 _ACEOF
11303 if ac_fn_c_try_compile "$LINENO"; then :
11304 HAVE_XIM=yes
11305
11306 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11307
11308 else
11309 HAVE_XIM=no
11310 fi
11311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11312
11313
11314 if test "${with_xim}" != "no"; then
11315
11316 $as_echo "#define USE_XIM 1" >>confdefs.h
11317
11318 fi
11319
11320
11321 if test "${HAVE_XIM}" != "no"; then
11322 late_CFLAGS=$CFLAGS
11323 if test "$GCC" = yes; then
11324 CFLAGS="$CFLAGS --pedantic-errors"
11325 fi
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328
11329 #include <X11/Xlib.h>
11330 #include <X11/Xresource.h>
11331 int
11332 main ()
11333 {
11334 Display *display;
11335 XrmDatabase db;
11336 char *res_name;
11337 char *res_class;
11338 XIMProc callback;
11339 XPointer *client_data;
11340 #ifndef __GNUC__
11341 /* If we're not using GCC, it's probably not XFree86, and this is
11342 probably right, but we can't use something like --pedantic-errors. */
11343 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11344 char*, XIMProc, XPointer*);
11345 #endif
11346 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11347 client_data);
11348 ;
11349 return 0;
11350 }
11351 _ACEOF
11352 if ac_fn_c_try_compile "$LINENO"; then :
11353 emacs_cv_arg6_star=yes
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356 if test "$emacs_cv_arg6_star" = yes; then
11357 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11358
11359 else
11360 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11361
11362 fi
11363 CFLAGS=$late_CFLAGS
11364 fi
11365
11366 ### Start of font-backend (under any platform) section.
11367 # (nothing here yet -- this is a placeholder)
11368 ### End of font-backend (under any platform) section.
11369
11370 ### Start of font-backend (under X11) section.
11371 if test "${HAVE_X11}" = "yes"; then
11372
11373 succeeded=no
11374
11375 # Extract the first word of "pkg-config", so it can be a program name with args.
11376 set dummy pkg-config; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 case $PKG_CONFIG in
11383 [\\/]* | ?:[\\/]*)
11384 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11385 ;;
11386 *)
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11389 do
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396 break 2
11397 fi
11398 done
11399 done
11400 IFS=$as_save_IFS
11401
11402 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11403 ;;
11404 esac
11405 fi
11406 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11407 if test -n "$PKG_CONFIG"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11409 $as_echo "$PKG_CONFIG" >&6; }
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11413 fi
11414
11415
11416
11417 if test "$PKG_CONFIG" = "no" ; then
11418 HAVE_FC=no
11419 else
11420 PKG_CONFIG_MIN_VERSION=0.9.0
11421 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11423 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11424
11425 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11427 $as_echo "yes" >&6; }
11428 succeeded=yes
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11431 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11432 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11434 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11435
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11437 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11438 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11440 $as_echo "$FONTCONFIG_LIBS" >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11444 FONTCONFIG_CFLAGS=""
11445 FONTCONFIG_LIBS=""
11446 ## If we have a custom action on failure, don't print errors, but
11447 ## do set a variable so people can do so.
11448 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11449
11450 fi
11451
11452
11453
11454 else
11455 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11456 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11457 fi
11458 fi
11459
11460 if test $succeeded = yes; then
11461 HAVE_FC=yes
11462 else
11463 HAVE_FC=no
11464 fi
11465
11466
11467 ## Use -lXft if available, unless `--with-xft=no'.
11468 HAVE_XFT=maybe
11469 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11470 with_xft="no";
11471 fi
11472 if test "x${with_xft}" != "xno"; then
11473
11474
11475 succeeded=no
11476
11477 # Extract the first word of "pkg-config", so it can be a program name with args.
11478 set dummy pkg-config; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 case $PKG_CONFIG in
11485 [\\/]* | ?:[\\/]*)
11486 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11487 ;;
11488 *)
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11496 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 break 2
11499 fi
11500 done
11501 done
11502 IFS=$as_save_IFS
11503
11504 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11505 ;;
11506 esac
11507 fi
11508 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11509 if test -n "$PKG_CONFIG"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11511 $as_echo "$PKG_CONFIG" >&6; }
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514 $as_echo "no" >&6; }
11515 fi
11516
11517
11518
11519 if test "$PKG_CONFIG" = "no" ; then
11520 HAVE_XFT=no
11521 else
11522 PKG_CONFIG_MIN_VERSION=0.9.0
11523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11525 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11526
11527 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11529 $as_echo "yes" >&6; }
11530 succeeded=yes
11531
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11533 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11534 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11536 $as_echo "$XFT_CFLAGS" >&6; }
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11539 $as_echo_n "checking XFT_LIBS... " >&6; }
11540 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11542 $as_echo "$XFT_LIBS" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546 XFT_CFLAGS=""
11547 XFT_LIBS=""
11548 ## If we have a custom action on failure, don't print errors, but
11549 ## do set a variable so people can do so.
11550 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11551
11552 fi
11553
11554
11555
11556 else
11557 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11558 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11559 fi
11560 fi
11561
11562 if test $succeeded = yes; then
11563 :
11564 else
11565 HAVE_XFT=no
11566 fi
11567
11568 ## Because xftfont.c uses XRenderQueryExtension, we also
11569 ## need to link to -lXrender.
11570 HAVE_XRENDER=no
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11572 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11573 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-lXrender $LIBS"
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11584 #ifdef __cplusplus
11585 extern "C"
11586 #endif
11587 char XRenderQueryExtension ();
11588 int
11589 main ()
11590 {
11591 return XRenderQueryExtension ();
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_link "$LINENO"; then :
11597 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11598 else
11599 ac_cv_lib_Xrender_XRenderQueryExtension=no
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11606 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11607 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11608 HAVE_XRENDER=yes
11609 fi
11610
11611 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11612 OLD_CPPFLAGS="$CPPFLAGS"
11613 OLD_CFLAGS="$CFLAGS"
11614 OLD_LIBS="$LIBS"
11615 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11616 CFLAGS="$CFLAGS $XFT_CFLAGS"
11617 XFT_LIBS="-lXrender $XFT_LIBS"
11618 LIBS="$XFT_LIBS $LIBS"
11619 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11620 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11622 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11623 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-lXft $XFT_LIBS $LIBS"
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11630
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 char XftFontOpen ();
11638 int
11639 main ()
11640 {
11641 return XftFontOpen ();
11642 ;
11643 return 0;
11644 }
11645 _ACEOF
11646 if ac_fn_c_try_link "$LINENO"; then :
11647 ac_cv_lib_Xft_XftFontOpen=yes
11648 else
11649 ac_cv_lib_Xft_XftFontOpen=no
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11656 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11657 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11658 HAVE_XFT=yes
11659 fi
11660
11661 fi
11662
11663
11664
11665 if test "${HAVE_XFT}" = "yes"; then
11666
11667 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11668
11669
11670 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11671 else
11672 CPPFLAGS="$OLD_CPPFLAGS"
11673 CFLAGS="$OLD_CFLAGS"
11674 LIBS="$OLD_LIBS"
11675 fi # "${HAVE_XFT}" = "yes"
11676 fi # "$HAVE_XFT" != no
11677 fi # "x${with_xft}" != "xno"
11678
11679 if test "$HAVE_XFT" != "yes"; then
11680 HAVE_XFT=no
11681 fi
11682
11683 ## We used to allow building with FreeType and without Xft.
11684 ## However, the ftx font backend driver is not in good shape.
11685 HAVE_FREETYPE=$HAVE_XFT
11686
11687 HAVE_LIBOTF=no
11688 if test "${HAVE_FREETYPE}" = "yes"; then
11689
11690 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11691
11692 if test "${with_libotf}" != "no"; then
11693
11694 succeeded=no
11695
11696 # Extract the first word of "pkg-config", so it can be a program name with args.
11697 set dummy pkg-config; ac_word=$2
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699 $as_echo_n "checking for $ac_word... " >&6; }
11700 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 case $PKG_CONFIG in
11704 [\\/]* | ?:[\\/]*)
11705 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11706 ;;
11707 *)
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711 IFS=$as_save_IFS
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717 break 2
11718 fi
11719 done
11720 done
11721 IFS=$as_save_IFS
11722
11723 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11724 ;;
11725 esac
11726 fi
11727 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11728 if test -n "$PKG_CONFIG"; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11730 $as_echo "$PKG_CONFIG" >&6; }
11731 else
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733 $as_echo "no" >&6; }
11734 fi
11735
11736
11737
11738 if test "$PKG_CONFIG" = "no" ; then
11739 HAVE_LIBOTF=no
11740 else
11741 PKG_CONFIG_MIN_VERSION=0.9.0
11742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11744 $as_echo_n "checking for libotf... " >&6; }
11745
11746 if $PKG_CONFIG --exists "libotf" 2>&5; then
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11748 $as_echo "yes" >&6; }
11749 succeeded=yes
11750
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11752 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11753 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11755 $as_echo "$LIBOTF_CFLAGS" >&6; }
11756
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11758 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11759 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11761 $as_echo "$LIBOTF_LIBS" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11765 LIBOTF_CFLAGS=""
11766 LIBOTF_LIBS=""
11767 ## If we have a custom action on failure, don't print errors, but
11768 ## do set a variable so people can do so.
11769 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11770
11771 fi
11772
11773
11774
11775 else
11776 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11777 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11778 fi
11779 fi
11780
11781 if test $succeeded = yes; then
11782 HAVE_LIBOTF=yes
11783 else
11784 HAVE_LIBOTF=no
11785 fi
11786
11787 if test "$HAVE_LIBOTF" = "yes"; then
11788
11789 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11792 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11793 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11794 $as_echo_n "(cached) " >&6
11795 else
11796 ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-lotf $LIBS"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800
11801 /* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 char OTF_get_variation_glyphs ();
11808 int
11809 main ()
11810 {
11811 return OTF_get_variation_glyphs ();
11812 ;
11813 return 0;
11814 }
11815 _ACEOF
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11818 else
11819 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11826 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11827 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11828 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11829 else
11830 HAVE_OTF_GET_VARIATION_GLYPHS=no
11831 fi
11832
11833 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11834
11835 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11836
11837 fi
11838 fi
11839 fi
11840 fi
11841
11842 HAVE_M17N_FLT=no
11843 if test "${HAVE_LIBOTF}" = yes; then
11844 if test "${with_m17n_flt}" != "no"; then
11845
11846 succeeded=no
11847
11848 # Extract the first word of "pkg-config", so it can be a program name with args.
11849 set dummy pkg-config; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11853 $as_echo_n "(cached) " >&6
11854 else
11855 case $PKG_CONFIG in
11856 [\\/]* | ?:[\\/]*)
11857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11858 ;;
11859 *)
11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861 for as_dir in $PATH
11862 do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
11865 for ac_exec_ext in '' $ac_executable_extensions; do
11866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11869 break 2
11870 fi
11871 done
11872 done
11873 IFS=$as_save_IFS
11874
11875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11876 ;;
11877 esac
11878 fi
11879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11880 if test -n "$PKG_CONFIG"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11882 $as_echo "$PKG_CONFIG" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 fi
11887
11888
11889
11890 if test "$PKG_CONFIG" = "no" ; then
11891 HAVE_M17N_FLT=no
11892 else
11893 PKG_CONFIG_MIN_VERSION=0.9.0
11894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11896 $as_echo_n "checking for m17n-flt... " >&6; }
11897
11898 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11900 $as_echo "yes" >&6; }
11901 succeeded=yes
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11904 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11905 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11907 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11908
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11910 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11911 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11913 $as_echo "$M17N_FLT_LIBS" >&6; }
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 M17N_FLT_CFLAGS=""
11918 M17N_FLT_LIBS=""
11919 ## If we have a custom action on failure, don't print errors, but
11920 ## do set a variable so people can do so.
11921 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11922
11923 fi
11924
11925
11926
11927 else
11928 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11929 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11930 fi
11931 fi
11932
11933 if test $succeeded = yes; then
11934 HAVE_M17N_FLT=yes
11935 else
11936 HAVE_M17N_FLT=no
11937 fi
11938
11939 if test "$HAVE_M17N_FLT" = "yes"; then
11940
11941 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11942
11943 fi
11944 fi
11945 fi
11946 else
11947 HAVE_XFT=no
11948 HAVE_FREETYPE=no
11949 HAVE_LIBOTF=no
11950 HAVE_M17N_FLT=no
11951 fi
11952
11953 ### End of font-backend (under X11) section.
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964 ### Use -lXpm if available, unless `--with-xpm=no'.
11965 HAVE_XPM=no
11966 LIBXPM=
11967 if test "${HAVE_X11}" = "yes"; then
11968 if test "${with_xpm}" != "no"; then
11969 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11970 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11972 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11973 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 ac_check_lib_save_LIBS=$LIBS
11977 LIBS="-lXpm -lX11 $LIBS"
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980
11981 /* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11984 #ifdef __cplusplus
11985 extern "C"
11986 #endif
11987 char XpmReadFileToPixmap ();
11988 int
11989 main ()
11990 {
11991 return XpmReadFileToPixmap ();
11992 ;
11993 return 0;
11994 }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11998 else
11999 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12006 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12007 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
12008 HAVE_XPM=yes
12009 fi
12010
12011 fi
12012
12013
12014 if test "${HAVE_XPM}" = "yes"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12016 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019 #include "X11/xpm.h"
12020 #ifndef XpmReturnAllocPixels
12021 no_return_alloc_pixels
12022 #endif
12023
12024 _ACEOF
12025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12026 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12027 HAVE_XPM=no
12028 else
12029 HAVE_XPM=yes
12030 fi
12031 rm -f conftest*
12032
12033
12034 if test "${HAVE_XPM}" = "yes"; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039 $as_echo "no" >&6; }
12040 fi
12041 fi
12042 fi
12043
12044 if test "${HAVE_XPM}" = "yes"; then
12045
12046 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12047
12048 LIBXPM=-lXpm
12049 fi
12050 fi
12051
12052
12053 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12054 HAVE_JPEG=no
12055 LIBJPEG=
12056 if test "${HAVE_X11}" = "yes"; then
12057 if test "${with_jpeg}" != "no"; then
12058 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12059 if test "x$ac_cv_header_jerror_h" = xyes; then :
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12061 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12062 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 ac_check_lib_save_LIBS=$LIBS
12066 LIBS="-ljpeg $LIBS"
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069
12070 /* Override any GCC internal prototype to avoid an error.
12071 Use char because int might match the return type of a GCC
12072 builtin and then its argument prototype would still apply. */
12073 #ifdef __cplusplus
12074 extern "C"
12075 #endif
12076 char jpeg_destroy_compress ();
12077 int
12078 main ()
12079 {
12080 return jpeg_destroy_compress ();
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_link "$LINENO"; then :
12086 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12087 else
12088 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12089 fi
12090 rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12093 fi
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12095 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12096 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
12097 HAVE_JPEG=yes
12098 fi
12099
12100 fi
12101
12102
12103 fi
12104
12105 if test "${HAVE_JPEG}" = "yes"; then
12106 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12107
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 #include <jpeglib.h>
12111 version=JPEG_LIB_VERSION
12112
12113 _ACEOF
12114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12115 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12116 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12117
12118 else
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12120 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12121 HAVE_JPEG=no
12122 fi
12123 rm -f conftest*
12124
12125 fi
12126 if test "${HAVE_JPEG}" = "yes"; then
12127 LIBJPEG=-ljpeg
12128 fi
12129 fi
12130
12131
12132 ### Use -lpng if available, unless `--with-png=no'.
12133 HAVE_PNG=no
12134 LIBPNG=
12135 if test "${HAVE_X11}" = "yes"; then
12136 if test "${with_png}" != "no"; then
12137 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12138 # in /usr/include/libpng.
12139 for ac_header in png.h libpng/png.h
12140 do :
12141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12142 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12143 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12144 cat >>confdefs.h <<_ACEOF
12145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12146 _ACEOF
12147
12148 fi
12149
12150 done
12151
12152 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12154 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12155 if ${ac_cv_lib_png_png_get_channels+:} false; then :
12156 $as_echo_n "(cached) " >&6
12157 else
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lpng -lz -lm $LIBS"
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12162
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 char png_get_channels ();
12170 int
12171 main ()
12172 {
12173 return png_get_channels ();
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_lib_png_png_get_channels=yes
12180 else
12181 ac_cv_lib_png_png_get_channels=no
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12186 fi
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12188 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12189 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
12190 HAVE_PNG=yes
12191 fi
12192
12193 fi
12194 fi
12195
12196 if test "${HAVE_PNG}" = "yes"; then
12197
12198 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12199
12200 LIBPNG="-lpng -lz -lm"
12201 fi
12202 fi
12203
12204
12205 ### Use -ltiff if available, unless `--with-tiff=no'.
12206 HAVE_TIFF=no
12207 LIBTIFF=
12208 if test "${HAVE_X11}" = "yes"; then
12209 if test "${with_tiff}" != "no"; then
12210 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12211 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12212 tifflibs="-lz -lm"
12213 # At least one tiff package requires the jpeg library.
12214 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12216 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12217 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12218 $as_echo_n "(cached) " >&6
12219 else
12220 ac_check_lib_save_LIBS=$LIBS
12221 LIBS="-ltiff $tifflibs $LIBS"
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224
12225 /* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228 #ifdef __cplusplus
12229 extern "C"
12230 #endif
12231 char TIFFGetVersion ();
12232 int
12233 main ()
12234 {
12235 return TIFFGetVersion ();
12236 ;
12237 return 0;
12238 }
12239 _ACEOF
12240 if ac_fn_c_try_link "$LINENO"; then :
12241 ac_cv_lib_tiff_TIFFGetVersion=yes
12242 else
12243 ac_cv_lib_tiff_TIFFGetVersion=no
12244 fi
12245 rm -f core conftest.err conftest.$ac_objext \
12246 conftest$ac_exeext conftest.$ac_ext
12247 LIBS=$ac_check_lib_save_LIBS
12248 fi
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12250 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12251 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12252 HAVE_TIFF=yes
12253 fi
12254
12255 fi
12256
12257
12258 fi
12259
12260 if test "${HAVE_TIFF}" = "yes"; then
12261
12262 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12263
12264 LIBTIFF=-ltiff
12265 fi
12266 fi
12267
12268
12269 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12270 HAVE_GIF=no
12271 LIBGIF=
12272 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12273 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12274 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12275 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12276 # Earlier versions can crash Emacs.
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12278 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12279 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 ac_check_lib_save_LIBS=$LIBS
12283 LIBS="-lgif $LIBS"
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286
12287 /* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290 #ifdef __cplusplus
12291 extern "C"
12292 #endif
12293 char EGifPutExtensionLast ();
12294 int
12295 main ()
12296 {
12297 return EGifPutExtensionLast ();
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303 ac_cv_lib_gif_EGifPutExtensionLast=yes
12304 else
12305 ac_cv_lib_gif_EGifPutExtensionLast=no
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12312 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12313 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12314 HAVE_GIF=yes
12315 else
12316 HAVE_GIF=maybe
12317 fi
12318
12319 fi
12320
12321
12322
12323 if test "$HAVE_GIF" = yes; then
12324 LIBGIF=-lgif
12325 elif test "$HAVE_GIF" = maybe; then
12326 # If gif_lib.h but no libgif, try libungif.
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12328 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12329 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12330 $as_echo_n "(cached) " >&6
12331 else
12332 ac_check_lib_save_LIBS=$LIBS
12333 LIBS="-lungif $LIBS"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h. */
12336
12337 /* Override any GCC internal prototype to avoid an error.
12338 Use char because int might match the return type of a GCC
12339 builtin and then its argument prototype would still apply. */
12340 #ifdef __cplusplus
12341 extern "C"
12342 #endif
12343 char EGifPutExtensionLast ();
12344 int
12345 main ()
12346 {
12347 return EGifPutExtensionLast ();
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12354 else
12355 ac_cv_lib_ungif_EGifPutExtensionLast=no
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12362 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12363 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12364 HAVE_GIF=yes
12365 else
12366 HAVE_GIF=no
12367 fi
12368
12369 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12370 fi
12371
12372 if test "${HAVE_GIF}" = "yes"; then
12373
12374 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12375
12376 fi
12377 fi
12378
12379
12380 if test "${HAVE_X11}" = "yes"; then
12381 MISSING=""
12382 WITH_NO=""
12383 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12384 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12385 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12386 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12387 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12388 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12389 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12390 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12391 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12392 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12393
12394 if test "X${MISSING}" != X; then
12395 as_fn_error $? "The following required libraries were not found:
12396 $MISSING
12397 Maybe some development libraries/packages are missing?
12398 If you don't want to link with them give
12399 $WITH_NO
12400 as options to configure" "$LINENO" 5
12401 fi
12402 fi
12403
12404 ### Use -lgpm if available, unless `--with-gpm=no'.
12405 HAVE_GPM=no
12406 LIBGPM=
12407 MOUSE_SUPPORT=
12408 if test "${with_gpm}" != "no"; then
12409 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12410 if test "x$ac_cv_header_gpm_h" = xyes; then :
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12412 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12413 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 ac_check_lib_save_LIBS=$LIBS
12417 LIBS="-lgpm $LIBS"
12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12420
12421 /* Override any GCC internal prototype to avoid an error.
12422 Use char because int might match the return type of a GCC
12423 builtin and then its argument prototype would still apply. */
12424 #ifdef __cplusplus
12425 extern "C"
12426 #endif
12427 char Gpm_Open ();
12428 int
12429 main ()
12430 {
12431 return Gpm_Open ();
12432 ;
12433 return 0;
12434 }
12435 _ACEOF
12436 if ac_fn_c_try_link "$LINENO"; then :
12437 ac_cv_lib_gpm_Gpm_Open=yes
12438 else
12439 ac_cv_lib_gpm_Gpm_Open=no
12440 fi
12441 rm -f core conftest.err conftest.$ac_objext \
12442 conftest$ac_exeext conftest.$ac_ext
12443 LIBS=$ac_check_lib_save_LIBS
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12446 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12447 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12448 HAVE_GPM=yes
12449 fi
12450
12451 fi
12452
12453
12454
12455 if test "${HAVE_GPM}" = "yes"; then
12456
12457 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12458
12459 LIBGPM=-lgpm
12460 ## May be reset below.
12461 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12462 fi
12463 fi
12464
12465
12466 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12467 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12468
12469 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12470
12471 fi
12472
12473
12474
12475 C_SWITCH_X_SYSTEM=
12476 ### Use NeXTstep API to implement GUI.
12477 if test "${HAVE_NS}" = "yes"; then
12478
12479 $as_echo "#define HAVE_NS 1" >>confdefs.h
12480
12481 if test "${NS_IMPL_COCOA}" = "yes"; then
12482
12483 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12484
12485 GNU_OBJC_CFLAGS=
12486 fi
12487 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12488
12489 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12490
12491 # See also .m.o rule in Makefile.in */
12492 # FIXME: are all these flags really needed? Document here why. */
12493 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12494 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12495 fi
12496 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12497
12498 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12499
12500 fi
12501 # We also have mouse menus.
12502 HAVE_MENUS=yes
12503 OTHER_FILES=ns-app
12504 fi
12505
12506
12507 ### Use session management (-lSM -lICE) if available
12508 HAVE_X_SM=no
12509 LIBXSM=
12510 if test "${HAVE_X11}" = "yes"; then
12511 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12512 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12514 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12515 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lSM -lICE $LIBS"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12522
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char SmcOpenConnection ();
12530 int
12531 main ()
12532 {
12533 return SmcOpenConnection ();
12534 ;
12535 return 0;
12536 }
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ac_cv_lib_SM_SmcOpenConnection=yes
12540 else
12541 ac_cv_lib_SM_SmcOpenConnection=no
12542 fi
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12548 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12549 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12550 HAVE_X_SM=yes
12551 fi
12552
12553 fi
12554
12555
12556
12557 if test "${HAVE_X_SM}" = "yes"; then
12558
12559 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12560
12561 LIBXSM="-lSM -lICE"
12562 case "$LIBS" in
12563 *-lSM*) ;;
12564 *) LIBS="$LIBXSM $LIBS" ;;
12565 esac
12566 fi
12567 fi
12568
12569
12570 ### Use libxml (-lxml2) if available
12571 if test "${with_xml2}" != "no"; then
12572 ### I'm not sure what the version number should be, so I just guessed.
12573
12574 succeeded=no
12575
12576 # Extract the first word of "pkg-config", so it can be a program name with args.
12577 set dummy pkg-config; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 case $PKG_CONFIG in
12584 [\\/]* | ?:[\\/]*)
12585 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12586 ;;
12587 *)
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12590 do
12591 IFS=$as_save_IFS
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12597 break 2
12598 fi
12599 done
12600 done
12601 IFS=$as_save_IFS
12602
12603 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12604 ;;
12605 esac
12606 fi
12607 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12608 if test -n "$PKG_CONFIG"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12610 $as_echo "$PKG_CONFIG" >&6; }
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12614 fi
12615
12616
12617
12618 if test "$PKG_CONFIG" = "no" ; then
12619 HAVE_LIBXML2=no
12620 else
12621 PKG_CONFIG_MIN_VERSION=0.9.0
12622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12624 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12625
12626 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628 $as_echo "yes" >&6; }
12629 succeeded=yes
12630
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12632 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12633 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12635 $as_echo "$LIBXML2_CFLAGS" >&6; }
12636
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12638 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12639 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12641 $as_echo "$LIBXML2_LIBS" >&6; }
12642 else
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645 LIBXML2_CFLAGS=""
12646 LIBXML2_LIBS=""
12647 ## If we have a custom action on failure, don't print errors, but
12648 ## do set a variable so people can do so.
12649 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12650
12651 fi
12652
12653
12654
12655 else
12656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12658 fi
12659 fi
12660
12661 if test $succeeded = yes; then
12662 HAVE_LIBXML2=yes
12663 else
12664 HAVE_LIBXML2=no
12665 fi
12666
12667 if test "${HAVE_LIBXML2}" = "yes"; then
12668 LIBS="$LIBXML2_LIBS $LIBS"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12670 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12671 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 ac_check_lib_save_LIBS=$LIBS
12675 LIBS="-lxml2 $LIBS"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678
12679 /* Override any GCC internal prototype to avoid an error.
12680 Use char because int might match the return type of a GCC
12681 builtin and then its argument prototype would still apply. */
12682 #ifdef __cplusplus
12683 extern "C"
12684 #endif
12685 char htmlReadMemory ();
12686 int
12687 main ()
12688 {
12689 return htmlReadMemory ();
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 ac_cv_lib_xml2_htmlReadMemory=yes
12696 else
12697 ac_cv_lib_xml2_htmlReadMemory=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 LIBS=$ac_check_lib_save_LIBS
12702 fi
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12704 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12705 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12706 HAVE_LIBXML2=yes
12707 else
12708 HAVE_LIBXML2=no
12709 fi
12710
12711 if test "${HAVE_LIBXML2}" = "yes"; then
12712
12713 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12714
12715 else
12716 LIBXML2_LIBS=""
12717 LIBXML2_CFLAGS=""
12718 fi
12719 fi
12720 fi
12721
12722
12723
12724 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12726 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12727 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12728 $as_echo_n "(cached) " >&6
12729 else
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 #include <netdb.h>
12733 int
12734 main ()
12735 {
12736 return h_errno;
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_link "$LINENO"; then :
12742 emacs_cv_netdb_declares_h_errno=yes
12743 else
12744 emacs_cv_netdb_declares_h_errno=no
12745 fi
12746 rm -f core conftest.err conftest.$ac_objext \
12747 conftest$ac_exeext conftest.$ac_ext
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12750 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12751 if test $emacs_cv_netdb_declares_h_errno = yes; then
12752
12753 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12754
12755 fi
12756
12757 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12758 if test "x$ac_cv_type_size_t" = xyes; then :
12759
12760 else
12761
12762 cat >>confdefs.h <<_ACEOF
12763 #define size_t unsigned int
12764 _ACEOF
12765
12766 fi
12767
12768 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12769 # for constant arguments. Useless!
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12771 $as_echo_n "checking for working alloca.h... " >&6; }
12772 if ${ac_cv_working_alloca_h+:} false; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 #include <alloca.h>
12778 int
12779 main ()
12780 {
12781 char *p = (char *) alloca (2 * sizeof (int));
12782 if (p) return 0;
12783 ;
12784 return 0;
12785 }
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 ac_cv_working_alloca_h=yes
12789 else
12790 ac_cv_working_alloca_h=no
12791 fi
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12794 fi
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12796 $as_echo "$ac_cv_working_alloca_h" >&6; }
12797 if test $ac_cv_working_alloca_h = yes; then
12798
12799 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12800
12801 fi
12802
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12804 $as_echo_n "checking for alloca... " >&6; }
12805 if ${ac_cv_func_alloca_works+:} false; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #ifdef __GNUC__
12811 # define alloca __builtin_alloca
12812 #else
12813 # ifdef _MSC_VER
12814 # include <malloc.h>
12815 # define alloca _alloca
12816 # else
12817 # ifdef HAVE_ALLOCA_H
12818 # include <alloca.h>
12819 # else
12820 # ifdef _AIX
12821 #pragma alloca
12822 # else
12823 # ifndef alloca /* predefined by HP cc +Olibcalls */
12824 void *alloca (size_t);
12825 # endif
12826 # endif
12827 # endif
12828 # endif
12829 #endif
12830
12831 int
12832 main ()
12833 {
12834 char *p = (char *) alloca (1);
12835 if (p) return 0;
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841 ac_cv_func_alloca_works=yes
12842 else
12843 ac_cv_func_alloca_works=no
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 fi
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12849 $as_echo "$ac_cv_func_alloca_works" >&6; }
12850
12851 if test $ac_cv_func_alloca_works = yes; then
12852
12853 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12854
12855 else
12856 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12857 # that cause trouble. Some versions do not even contain alloca or
12858 # contain a buggy version. If you still want to use their alloca,
12859 # use ar to extract alloca.o from them instead of compiling alloca.c.
12860
12861 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12862
12863 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12864
12865
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12867 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12868 if ${ac_cv_os_cray+:} false; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12873 #if defined CRAY && ! defined CRAY2
12874 webecray
12875 #else
12876 wenotbecray
12877 #endif
12878
12879 _ACEOF
12880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12881 $EGREP "webecray" >/dev/null 2>&1; then :
12882 ac_cv_os_cray=yes
12883 else
12884 ac_cv_os_cray=no
12885 fi
12886 rm -f conftest*
12887
12888 fi
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12890 $as_echo "$ac_cv_os_cray" >&6; }
12891 if test $ac_cv_os_cray = yes; then
12892 for ac_func in _getb67 GETB67 getb67; do
12893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12894 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12895 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12896
12897 cat >>confdefs.h <<_ACEOF
12898 #define CRAY_STACKSEG_END $ac_func
12899 _ACEOF
12900
12901 break
12902 fi
12903
12904 done
12905 fi
12906
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12908 $as_echo_n "checking stack direction for C alloca... " >&6; }
12909 if ${ac_cv_c_stack_direction+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 if test "$cross_compiling" = yes; then :
12913 ac_cv_c_stack_direction=0
12914 else
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 $ac_includes_default
12918 int
12919 find_stack_direction ()
12920 {
12921 static char *addr = 0;
12922 auto char dummy;
12923 if (addr == 0)
12924 {
12925 addr = &dummy;
12926 return find_stack_direction ();
12927 }
12928 else
12929 return (&dummy > addr) ? 1 : -1;
12930 }
12931
12932 int
12933 main ()
12934 {
12935 return find_stack_direction () < 0;
12936 }
12937 _ACEOF
12938 if ac_fn_c_try_run "$LINENO"; then :
12939 ac_cv_c_stack_direction=1
12940 else
12941 ac_cv_c_stack_direction=-1
12942 fi
12943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12944 conftest.$ac_objext conftest.beam conftest.$ac_ext
12945 fi
12946
12947 fi
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12949 $as_echo "$ac_cv_c_stack_direction" >&6; }
12950 cat >>confdefs.h <<_ACEOF
12951 #define STACK_DIRECTION $ac_cv_c_stack_direction
12952 _ACEOF
12953
12954
12955 fi
12956
12957
12958 if test x"$ac_cv_func_alloca_works" != xyes; then
12959 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12960 fi
12961
12962 # fmod, logb, and frexp are found in -lm on most systems.
12963 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12965 $as_echo_n "checking for sqrt in -lm... " >&6; }
12966 if ${ac_cv_lib_m_sqrt+:} false; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 ac_check_lib_save_LIBS=$LIBS
12970 LIBS="-lm $LIBS"
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973
12974 /* Override any GCC internal prototype to avoid an error.
12975 Use char because int might match the return type of a GCC
12976 builtin and then its argument prototype would still apply. */
12977 #ifdef __cplusplus
12978 extern "C"
12979 #endif
12980 char sqrt ();
12981 int
12982 main ()
12983 {
12984 return sqrt ();
12985 ;
12986 return 0;
12987 }
12988 _ACEOF
12989 if ac_fn_c_try_link "$LINENO"; then :
12990 ac_cv_lib_m_sqrt=yes
12991 else
12992 ac_cv_lib_m_sqrt=no
12993 fi
12994 rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
12996 LIBS=$ac_check_lib_save_LIBS
12997 fi
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12999 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13000 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
13001 cat >>confdefs.h <<_ACEOF
13002 #define HAVE_LIBM 1
13003 _ACEOF
13004
13005 LIBS="-lm $LIBS"
13006
13007 fi
13008
13009
13010 # Check for mail-locking functions in a "mail" library. Probably this should
13011 # have the same check as for liblockfile below.
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13013 $as_echo_n "checking for maillock in -lmail... " >&6; }
13014 if ${ac_cv_lib_mail_maillock+:} false; then :
13015 $as_echo_n "(cached) " >&6
13016 else
13017 ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lmail $LIBS"
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13021
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13025 #ifdef __cplusplus
13026 extern "C"
13027 #endif
13028 char maillock ();
13029 int
13030 main ()
13031 {
13032 return maillock ();
13033 ;
13034 return 0;
13035 }
13036 _ACEOF
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 ac_cv_lib_mail_maillock=yes
13039 else
13040 ac_cv_lib_mail_maillock=no
13041 fi
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13045 fi
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13047 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13048 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
13049 have_mail=yes
13050 else
13051 have_mail=no
13052 fi
13053
13054 if test $have_mail = yes; then
13055 LIBS_MAIL=-lmail
13056 LIBS="$LIBS_MAIL $LIBS"
13057
13058 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13059
13060 else
13061 LIBS_MAIL=
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13064 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13065 if ${ac_cv_lib_lockfile_maillock+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067 else
13068 ac_check_lib_save_LIBS=$LIBS
13069 LIBS="-llockfile $LIBS"
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13072
13073 /* Override any GCC internal prototype to avoid an error.
13074 Use char because int might match the return type of a GCC
13075 builtin and then its argument prototype would still apply. */
13076 #ifdef __cplusplus
13077 extern "C"
13078 #endif
13079 char maillock ();
13080 int
13081 main ()
13082 {
13083 return maillock ();
13084 ;
13085 return 0;
13086 }
13087 _ACEOF
13088 if ac_fn_c_try_link "$LINENO"; then :
13089 ac_cv_lib_lockfile_maillock=yes
13090 else
13091 ac_cv_lib_lockfile_maillock=no
13092 fi
13093 rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext conftest.$ac_ext
13095 LIBS=$ac_check_lib_save_LIBS
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13098 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13099 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
13100 have_lockfile=yes
13101 else
13102 have_lockfile=no
13103 fi
13104
13105 if test $have_lockfile = yes; then
13106 LIBS_MAIL=-llockfile
13107 LIBS="$LIBS_MAIL $LIBS"
13108
13109 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13110
13111 else
13112 # If we have the shared liblockfile, assume we must use it for mail
13113 # locking (e.g. Debian). If we couldn't link against liblockfile
13114 # (no liblockfile.a installed), ensure that we don't need to.
13115 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13116 set dummy liblockfile.so; ac_word=$2
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13118 $as_echo_n "checking for $ac_word... " >&6; }
13119 if ${ac_cv_prog_liblockfile+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 if test -n "$liblockfile"; then
13123 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13124 else
13125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13126 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13127 for as_dir in $as_dummy
13128 do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_prog_liblockfile="yes"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137 done
13138 done
13139 IFS=$as_save_IFS
13140
13141 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13142 fi
13143 fi
13144 liblockfile=$ac_cv_prog_liblockfile
13145 if test -n "$liblockfile"; then
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13147 $as_echo "$liblockfile" >&6; }
13148 else
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150 $as_echo "no" >&6; }
13151 fi
13152
13153
13154 if test $ac_cv_prog_liblockfile = yes; then
13155 as_fn_error $? "Shared liblockfile found but can't link against it.
13156 This probably means that movemail could lose mail.
13157 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13158 fi
13159 fi
13160 for ac_func in touchlock
13161 do :
13162 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13163 if test "x$ac_cv_func_touchlock" = xyes; then :
13164 cat >>confdefs.h <<_ACEOF
13165 #define HAVE_TOUCHLOCK 1
13166 _ACEOF
13167
13168 fi
13169 done
13170
13171 for ac_header in maillock.h
13172 do :
13173 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13174 if test "x$ac_cv_header_maillock_h" = xyes; then :
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_MAILLOCK_H 1
13177 _ACEOF
13178
13179 fi
13180
13181 done
13182
13183
13184
13185 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13186 ## interlock access to the mail spool. The alternative is a lock file named
13187 ## /usr/spool/mail/$USER.lock.
13188 mail_lock=no
13189 case "$opsys" in
13190 aix4-2) mail_lock="lockf" ;;
13191
13192 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13193
13194 ## On GNU/Linux systems, both methods are used by various mail programs.
13195 ## I assume most people are using newer mailers that have heard of flock.
13196 ## Change this if you need to.
13197 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13198 ## configure gets the right answers, and that means *NOT* using flock.
13199 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13200 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13201 ## Debian maintainer hasn't provided a clean fix for Emacs.
13202 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13203 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13204 ## correct logic. -- fx
13205 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13206 ## liblockfile is a Free Software replacement for libmail, used on
13207 ## Debian systems and elsewhere. -rfr.
13208 gnu-*)
13209 mail_lock="flock"
13210 if test $have_mail = yes || test $have_lockfile = yes; then
13211 test $ac_cv_header_maillock_h = yes && mail_lock=no
13212 fi
13213 ;;
13214 esac
13215
13216 BLESSMAIL_TARGET=
13217 case "$mail_lock" in
13218 flock)
13219 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13220 ;;
13221
13222 lockf)
13223 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13224 ;;
13225
13226 *) BLESSMAIL_TARGET="need-blessmail" ;;
13227 esac
13228
13229
13230
13231 for ac_func in gethostname getdomainname dup2 \
13232 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13233 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13234 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13235 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13236 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13237 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13238 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13239 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13240 cfmakeraw cfsetspeed isnan copysign __executable_start
13241 do :
13242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13244 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13245 cat >>confdefs.h <<_ACEOF
13246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13247 _ACEOF
13248
13249 fi
13250 done
13251
13252
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13254 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13255 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260
13261 int
13262 main ()
13263 {
13264 __builtin_unwind_init ();
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 emacs_cv_func___builtin_unwind_init=yes
13271 else
13272 emacs_cv_func___builtin_unwind_init=no
13273 fi
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 fi
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13278 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13279 if test $emacs_cv_func___builtin_unwind_init = yes; then
13280
13281 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13282
13283 fi
13284
13285 for ac_header in sys/un.h
13286 do :
13287 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13288 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_SYS_UN_H 1
13291 _ACEOF
13292
13293 fi
13294
13295 done
13296
13297
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13299 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13300 if ${ac_cv_sys_largefile_source+:} false; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 while :; do
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 #include <sys/types.h> /* for off_t */
13307 #include <stdio.h>
13308 int
13309 main ()
13310 {
13311 int (*fp) (FILE *, off_t, int) = fseeko;
13312 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_link "$LINENO"; then :
13318 ac_cv_sys_largefile_source=no; break
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext \
13321 conftest$ac_exeext conftest.$ac_ext
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324 #define _LARGEFILE_SOURCE 1
13325 #include <sys/types.h> /* for off_t */
13326 #include <stdio.h>
13327 int
13328 main ()
13329 {
13330 int (*fp) (FILE *, off_t, int) = fseeko;
13331 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13332 ;
13333 return 0;
13334 }
13335 _ACEOF
13336 if ac_fn_c_try_link "$LINENO"; then :
13337 ac_cv_sys_largefile_source=1; break
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341 ac_cv_sys_largefile_source=unknown
13342 break
13343 done
13344 fi
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13346 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13347 case $ac_cv_sys_largefile_source in #(
13348 no | unknown) ;;
13349 *)
13350 cat >>confdefs.h <<_ACEOF
13351 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13352 _ACEOF
13353 ;;
13354 esac
13355 rm -rf conftest*
13356
13357 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13358 # in glibc 2.1.3, but that breaks too many other things.
13359 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13360 if test $ac_cv_sys_largefile_source != unknown; then
13361
13362 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13363
13364 fi
13365
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13368 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13369 if ${ac_cv_func_getpgrp_void+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371 else
13372 # Use it with a single arg.
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 $ac_includes_default
13376 int
13377 main ()
13378 {
13379 getpgrp (0);
13380 ;
13381 return 0;
13382 }
13383 _ACEOF
13384 if ac_fn_c_try_compile "$LINENO"; then :
13385 ac_cv_func_getpgrp_void=no
13386 else
13387 ac_cv_func_getpgrp_void=yes
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390
13391 fi
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13393 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13394 if test $ac_cv_func_getpgrp_void = yes; then
13395
13396 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13397
13398 fi
13399
13400
13401 # Configure gnulib.
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412 LIBC_FATAL_STDERR_=1
13413 export LIBC_FATAL_STDERR_
13414
13415
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13417 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13418 if ${ac_cv_c_bigendian+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 ac_cv_c_bigendian=unknown
13422 # See if we're dealing with a universal compiler.
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13425 #ifndef __APPLE_CC__
13426 not a universal capable compiler
13427 #endif
13428 typedef int dummy;
13429
13430 _ACEOF
13431 if ac_fn_c_try_compile "$LINENO"; then :
13432
13433 # Check for potential -arch flags. It is not universal unless
13434 # there are at least two -arch flags with different values.
13435 ac_arch=
13436 ac_prev=
13437 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13438 if test -n "$ac_prev"; then
13439 case $ac_word in
13440 i?86 | x86_64 | ppc | ppc64)
13441 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13442 ac_arch=$ac_word
13443 else
13444 ac_cv_c_bigendian=universal
13445 break
13446 fi
13447 ;;
13448 esac
13449 ac_prev=
13450 elif test "x$ac_word" = "x-arch"; then
13451 ac_prev=arch
13452 fi
13453 done
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 if test $ac_cv_c_bigendian = unknown; then
13457 # See if sys/param.h defines the BYTE_ORDER macro.
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460 #include <sys/types.h>
13461 #include <sys/param.h>
13462
13463 int
13464 main ()
13465 {
13466 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13467 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13468 && LITTLE_ENDIAN)
13469 bogus endian macros
13470 #endif
13471
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_compile "$LINENO"; then :
13477 # It does; now see whether it defined to BIG_ENDIAN or not.
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 #include <sys/types.h>
13481 #include <sys/param.h>
13482
13483 int
13484 main ()
13485 {
13486 #if BYTE_ORDER != BIG_ENDIAN
13487 not big endian
13488 #endif
13489
13490 ;
13491 return 0;
13492 }
13493 _ACEOF
13494 if ac_fn_c_try_compile "$LINENO"; then :
13495 ac_cv_c_bigendian=yes
13496 else
13497 ac_cv_c_bigendian=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13502 fi
13503 if test $ac_cv_c_bigendian = unknown; then
13504 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h. */
13507 #include <limits.h>
13508
13509 int
13510 main ()
13511 {
13512 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13513 bogus endian macros
13514 #endif
13515
13516 ;
13517 return 0;
13518 }
13519 _ACEOF
13520 if ac_fn_c_try_compile "$LINENO"; then :
13521 # It does; now see whether it defined to _BIG_ENDIAN or not.
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 #include <limits.h>
13525
13526 int
13527 main ()
13528 {
13529 #ifndef _BIG_ENDIAN
13530 not big endian
13531 #endif
13532
13533 ;
13534 return 0;
13535 }
13536 _ACEOF
13537 if ac_fn_c_try_compile "$LINENO"; then :
13538 ac_cv_c_bigendian=yes
13539 else
13540 ac_cv_c_bigendian=no
13541 fi
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543 fi
13544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 fi
13546 if test $ac_cv_c_bigendian = unknown; then
13547 # Compile a test program.
13548 if test "$cross_compiling" = yes; then :
13549 # Try to guess by grepping values from an object file.
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552 short int ascii_mm[] =
13553 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13554 short int ascii_ii[] =
13555 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13556 int use_ascii (int i) {
13557 return ascii_mm[i] + ascii_ii[i];
13558 }
13559 short int ebcdic_ii[] =
13560 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13561 short int ebcdic_mm[] =
13562 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13563 int use_ebcdic (int i) {
13564 return ebcdic_mm[i] + ebcdic_ii[i];
13565 }
13566 extern int foo;
13567
13568 int
13569 main ()
13570 {
13571 return use_ascii (foo) == use_ebcdic (foo);
13572 ;
13573 return 0;
13574 }
13575 _ACEOF
13576 if ac_fn_c_try_compile "$LINENO"; then :
13577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13578 ac_cv_c_bigendian=yes
13579 fi
13580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13581 if test "$ac_cv_c_bigendian" = unknown; then
13582 ac_cv_c_bigendian=no
13583 else
13584 # finding both strings is unlikely to happen, but who knows?
13585 ac_cv_c_bigendian=unknown
13586 fi
13587 fi
13588 fi
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 else
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 $ac_includes_default
13594 int
13595 main ()
13596 {
13597
13598 /* Are we little or big endian? From Harbison&Steele. */
13599 union
13600 {
13601 long int l;
13602 char c[sizeof (long int)];
13603 } u;
13604 u.l = 1;
13605 return u.c[sizeof (long int) - 1] == 1;
13606
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_run "$LINENO"; then :
13612 ac_cv_c_bigendian=no
13613 else
13614 ac_cv_c_bigendian=yes
13615 fi
13616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13617 conftest.$ac_objext conftest.beam conftest.$ac_ext
13618 fi
13619
13620 fi
13621 fi
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13623 $as_echo "$ac_cv_c_bigendian" >&6; }
13624 case $ac_cv_c_bigendian in #(
13625 yes)
13626 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13627 ;; #(
13628 no)
13629 ;; #(
13630 universal)
13631
13632 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13633
13634 ;; #(
13635 *)
13636 as_fn_error $? "unknown endianness
13637 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13638 esac
13639
13640
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13642 $as_echo_n "checking for inline... " >&6; }
13643 if ${ac_cv_c_inline+:} false; then :
13644 $as_echo_n "(cached) " >&6
13645 else
13646 ac_cv_c_inline=no
13647 for ac_kw in inline __inline__ __inline; do
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650 #ifndef __cplusplus
13651 typedef int foo_t;
13652 static $ac_kw foo_t static_foo () {return 0; }
13653 $ac_kw foo_t foo () {return 0; }
13654 #endif
13655
13656 _ACEOF
13657 if ac_fn_c_try_compile "$LINENO"; then :
13658 ac_cv_c_inline=$ac_kw
13659 fi
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 test "$ac_cv_c_inline" != no && break
13662 done
13663
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13666 $as_echo "$ac_cv_c_inline" >&6; }
13667
13668 case $ac_cv_c_inline in
13669 inline | yes) ;;
13670 *)
13671 case $ac_cv_c_inline in
13672 no) ac_val=;;
13673 *) ac_val=$ac_cv_c_inline;;
13674 esac
13675 cat >>confdefs.h <<_ACEOF
13676 #ifndef __cplusplus
13677 #define inline $ac_val
13678 #endif
13679 _ACEOF
13680 ;;
13681 esac
13682
13683
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13685 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13686 if ${gl_cv_func_c99_strtold+:} false; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 /* On HP-UX before 11.23, strtold returns a struct instead of
13692 long double. Reject implementations like that, by requiring
13693 compatibility with the C99 prototype. */
13694 #include <stdlib.h>
13695 static long double (*p) (char const *, char **) = strtold;
13696 static long double
13697 test (char const *nptr, char **endptr)
13698 {
13699 long double r;
13700 r = strtold (nptr, endptr);
13701 return r;
13702 }
13703 int
13704 main ()
13705 {
13706 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13707 ;
13708 return 0;
13709 }
13710 _ACEOF
13711 if ac_fn_c_try_link "$LINENO"; then :
13712 gl_cv_func_c99_strtold=yes
13713 else
13714 gl_cv_func_c99_strtold=no
13715 fi
13716 rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13718 fi
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13720 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13721 if test $gl_cv_func_c99_strtold = yes; then
13722
13723 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13724
13725 fi
13726
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13728 $as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13729 if ${ac_cv_struct_st_dm_mode+:} false; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734
13735 #include <sys/types.h>
13736 #include <sys/stat.h>
13737 int
13738 main ()
13739 {
13740 struct stat s; s.st_dm_mode;
13741 ;
13742 return 0;
13743 }
13744 _ACEOF
13745 if ac_fn_c_try_compile "$LINENO"; then :
13746 ac_cv_struct_st_dm_mode=yes
13747 else
13748 ac_cv_struct_st_dm_mode=no
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13753 $as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13754
13755 if test $ac_cv_struct_st_dm_mode = yes; then
13756
13757 $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13758
13759 fi
13760
13761
13762 ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13763 if test "x$ac_cv_have_decl_strmode" = xyes; then :
13764 ac_have_decl=1
13765 else
13766 ac_have_decl=0
13767 fi
13768
13769 cat >>confdefs.h <<_ACEOF
13770 #define HAVE_DECL_STRMODE $ac_have_decl
13771 _ACEOF
13772
13773
13774 GNULIB__EXIT=0;
13775 GNULIB_ATOLL=0;
13776 GNULIB_CALLOC_POSIX=0;
13777 GNULIB_CANONICALIZE_FILE_NAME=0;
13778 GNULIB_GETLOADAVG=0;
13779 GNULIB_GETSUBOPT=0;
13780 GNULIB_GRANTPT=0;
13781 GNULIB_MALLOC_POSIX=0;
13782 GNULIB_MKDTEMP=0;
13783 GNULIB_MKOSTEMP=0;
13784 GNULIB_MKOSTEMPS=0;
13785 GNULIB_MKSTEMP=0;
13786 GNULIB_MKSTEMPS=0;
13787 GNULIB_PTSNAME=0;
13788 GNULIB_PUTENV=0;
13789 GNULIB_RANDOM_R=0;
13790 GNULIB_REALLOC_POSIX=0;
13791 GNULIB_REALPATH=0;
13792 GNULIB_RPMATCH=0;
13793 GNULIB_SETENV=0;
13794 GNULIB_STRTOD=0;
13795 GNULIB_STRTOLL=0;
13796 GNULIB_STRTOULL=0;
13797 GNULIB_SYSTEM_POSIX=0;
13798 GNULIB_UNLOCKPT=0;
13799 GNULIB_UNSETENV=0;
13800 HAVE__EXIT=1;
13801 HAVE_ATOLL=1;
13802 HAVE_CANONICALIZE_FILE_NAME=1;
13803 HAVE_DECL_GETLOADAVG=1;
13804 HAVE_GETSUBOPT=1;
13805 HAVE_GRANTPT=1;
13806 HAVE_MKDTEMP=1;
13807 HAVE_MKOSTEMP=1;
13808 HAVE_MKOSTEMPS=1;
13809 HAVE_MKSTEMP=1;
13810 HAVE_MKSTEMPS=1;
13811 HAVE_PTSNAME=1;
13812 HAVE_RANDOM_H=1;
13813 HAVE_RANDOM_R=1;
13814 HAVE_REALPATH=1;
13815 HAVE_RPMATCH=1;
13816 HAVE_SETENV=1;
13817 HAVE_DECL_SETENV=1;
13818 HAVE_STRTOD=1;
13819 HAVE_STRTOLL=1;
13820 HAVE_STRTOULL=1;
13821 HAVE_STRUCT_RANDOM_DATA=1;
13822 HAVE_SYS_LOADAVG_H=0;
13823 HAVE_UNLOCKPT=1;
13824 HAVE_DECL_UNSETENV=1;
13825 REPLACE_CALLOC=0;
13826 REPLACE_CANONICALIZE_FILE_NAME=0;
13827 REPLACE_MALLOC=0;
13828 REPLACE_MKSTEMP=0;
13829 REPLACE_PUTENV=0;
13830 REPLACE_REALLOC=0;
13831 REPLACE_REALPATH=0;
13832 REPLACE_SETENV=0;
13833 REPLACE_STRTOD=0;
13834 REPLACE_UNSETENV=0;
13835
13836
13837 GNULIB_CHOWN=0;
13838 GNULIB_CLOSE=0;
13839 GNULIB_DUP2=0;
13840 GNULIB_DUP3=0;
13841 GNULIB_ENVIRON=0;
13842 GNULIB_EUIDACCESS=0;
13843 GNULIB_FACCESSAT=0;
13844 GNULIB_FCHDIR=0;
13845 GNULIB_FCHOWNAT=0;
13846 GNULIB_FSYNC=0;
13847 GNULIB_FTRUNCATE=0;
13848 GNULIB_GETCWD=0;
13849 GNULIB_GETDOMAINNAME=0;
13850 GNULIB_GETDTABLESIZE=0;
13851 GNULIB_GETGROUPS=0;
13852 GNULIB_GETHOSTNAME=0;
13853 GNULIB_GETLOGIN=0;
13854 GNULIB_GETLOGIN_R=0;
13855 GNULIB_GETPAGESIZE=0;
13856 GNULIB_GETUSERSHELL=0;
13857 GNULIB_LCHOWN=0;
13858 GNULIB_LINK=0;
13859 GNULIB_LINKAT=0;
13860 GNULIB_LSEEK=0;
13861 GNULIB_PIPE=0;
13862 GNULIB_PIPE2=0;
13863 GNULIB_PREAD=0;
13864 GNULIB_PWRITE=0;
13865 GNULIB_READLINK=0;
13866 GNULIB_READLINKAT=0;
13867 GNULIB_RMDIR=0;
13868 GNULIB_SLEEP=0;
13869 GNULIB_SYMLINK=0;
13870 GNULIB_SYMLINKAT=0;
13871 GNULIB_TTYNAME_R=0;
13872 GNULIB_UNISTD_H_GETOPT=0;
13873 GNULIB_UNISTD_H_SIGPIPE=0;
13874 GNULIB_UNLINK=0;
13875 GNULIB_UNLINKAT=0;
13876 GNULIB_USLEEP=0;
13877 GNULIB_WRITE=0;
13878 HAVE_CHOWN=1;
13879 HAVE_DUP2=1;
13880 HAVE_DUP3=1;
13881 HAVE_EUIDACCESS=1;
13882 HAVE_FACCESSAT=1;
13883 HAVE_FCHDIR=1;
13884 HAVE_FCHOWNAT=1;
13885 HAVE_FSYNC=1;
13886 HAVE_FTRUNCATE=1;
13887 HAVE_GETDTABLESIZE=1;
13888 HAVE_GETGROUPS=1;
13889 HAVE_GETHOSTNAME=1;
13890 HAVE_GETLOGIN=1;
13891 HAVE_GETPAGESIZE=1;
13892 HAVE_LCHOWN=1;
13893 HAVE_LINK=1;
13894 HAVE_LINKAT=1;
13895 HAVE_PIPE=1;
13896 HAVE_PIPE2=1;
13897 HAVE_PREAD=1;
13898 HAVE_PWRITE=1;
13899 HAVE_READLINK=1;
13900 HAVE_READLINKAT=1;
13901 HAVE_SLEEP=1;
13902 HAVE_SYMLINK=1;
13903 HAVE_SYMLINKAT=1;
13904 HAVE_UNLINKAT=1;
13905 HAVE_USLEEP=1;
13906 HAVE_DECL_ENVIRON=1;
13907 HAVE_DECL_FCHDIR=1;
13908 HAVE_DECL_GETDOMAINNAME=1;
13909 HAVE_DECL_GETLOGIN_R=1;
13910 HAVE_DECL_GETPAGESIZE=1;
13911 HAVE_DECL_GETUSERSHELL=1;
13912 HAVE_DECL_TTYNAME_R=1;
13913 HAVE_OS_H=0;
13914 HAVE_SYS_PARAM_H=0;
13915 REPLACE_CHOWN=0;
13916 REPLACE_CLOSE=0;
13917 REPLACE_DUP=0;
13918 REPLACE_DUP2=0;
13919 REPLACE_FCHOWNAT=0;
13920 REPLACE_GETCWD=0;
13921 REPLACE_GETDOMAINNAME=0;
13922 REPLACE_GETLOGIN_R=0;
13923 REPLACE_GETGROUPS=0;
13924 REPLACE_GETPAGESIZE=0;
13925 REPLACE_LCHOWN=0;
13926 REPLACE_LINK=0;
13927 REPLACE_LINKAT=0;
13928 REPLACE_LSEEK=0;
13929 REPLACE_PREAD=0;
13930 REPLACE_PWRITE=0;
13931 REPLACE_READLINK=0;
13932 REPLACE_RMDIR=0;
13933 REPLACE_SLEEP=0;
13934 REPLACE_SYMLINK=0;
13935 REPLACE_TTYNAME_R=0;
13936 REPLACE_UNLINK=0;
13937 REPLACE_UNLINKAT=0;
13938 REPLACE_USLEEP=0;
13939 REPLACE_WRITE=0;
13940 UNISTD_H_HAVE_WINSOCK2_H=0;
13941 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13942
13943
13944
13945
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13947 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13948 if ${gl_cv_have_include_next+:} false; then :
13949 $as_echo_n "(cached) " >&6
13950 else
13951 rm -rf conftestd1a conftestd1b conftestd2
13952 mkdir conftestd1a conftestd1b conftestd2
13953 cat <<EOF > conftestd1a/conftest.h
13954 #define DEFINED_IN_CONFTESTD1
13955 #include_next <conftest.h>
13956 #ifdef DEFINED_IN_CONFTESTD2
13957 int foo;
13958 #else
13959 #error "include_next doesn't work"
13960 #endif
13961 EOF
13962 cat <<EOF > conftestd1b/conftest.h
13963 #define DEFINED_IN_CONFTESTD1
13964 #include <stdio.h>
13965 #include_next <conftest.h>
13966 #ifdef DEFINED_IN_CONFTESTD2
13967 int foo;
13968 #else
13969 #error "include_next doesn't work"
13970 #endif
13971 EOF
13972 cat <<EOF > conftestd2/conftest.h
13973 #ifndef DEFINED_IN_CONFTESTD1
13974 #error "include_next test doesn't work"
13975 #endif
13976 #define DEFINED_IN_CONFTESTD2
13977 EOF
13978 gl_save_CPPFLAGS="$CPPFLAGS"
13979 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13982 #include <conftest.h>
13983 _ACEOF
13984 if ac_fn_c_try_compile "$LINENO"; then :
13985 gl_cv_have_include_next=yes
13986 else
13987 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 #include <conftest.h>
13991 _ACEOF
13992 if ac_fn_c_try_compile "$LINENO"; then :
13993 gl_cv_have_include_next=buggy
13994 else
13995 gl_cv_have_include_next=no
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998
13999 fi
14000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001 CPPFLAGS="$gl_save_CPPFLAGS"
14002 rm -rf conftestd1a conftestd1b conftestd2
14003
14004 fi
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14006 $as_echo "$gl_cv_have_include_next" >&6; }
14007 PRAGMA_SYSTEM_HEADER=
14008 if test $gl_cv_have_include_next = yes; then
14009 INCLUDE_NEXT=include_next
14010 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14011 if test -n "$GCC"; then
14012 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14013 fi
14014 else
14015 if test $gl_cv_have_include_next = buggy; then
14016 INCLUDE_NEXT=include
14017 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14018 else
14019 INCLUDE_NEXT=include
14020 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14021 fi
14022 fi
14023
14024
14025
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14027 $as_echo_n "checking whether system header files limit the line length... " >&6; }
14028 if ${gl_cv_pragma_columns+:} false; then :
14029 $as_echo_n "(cached) " >&6
14030 else
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033
14034 #ifdef __TANDEM
14035 choke me
14036 #endif
14037
14038 _ACEOF
14039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14040 $EGREP "choke me" >/dev/null 2>&1; then :
14041 gl_cv_pragma_columns=yes
14042 else
14043 gl_cv_pragma_columns=no
14044 fi
14045 rm -f conftest*
14046
14047
14048 fi
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14050 $as_echo "$gl_cv_pragma_columns" >&6; }
14051 if test $gl_cv_pragma_columns = yes; then
14052 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14053 else
14054 PRAGMA_COLUMNS=
14055 fi
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073 if test $gl_cv_have_include_next = yes; then
14074 gl_cv_next_getopt_h='<'getopt.h'>'
14075 else
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14077 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14078 if ${gl_cv_next_getopt_h+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081
14082 if test $ac_cv_header_getopt_h = yes; then
14083
14084
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 #include <getopt.h>
14088
14089 _ACEOF
14090 case "$host_os" in
14091 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14092 *) gl_absname_cpp="$ac_cpp" ;;
14093 esac
14094 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14095 sed -n '\#/getopt.h#{
14096 s#.*"\(.*/getopt.h\)".*#\1#
14097 s#^/[^/]#//&#
14098 p
14099 q
14100 }'`'"'
14101 else
14102 gl_cv_next_getopt_h='<'getopt.h'>'
14103 fi
14104
14105
14106 fi
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14108 $as_echo "$gl_cv_next_getopt_h" >&6; }
14109 fi
14110 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14111
14112 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14113 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14114 gl_next_as_first_directive='<'getopt.h'>'
14115 else
14116 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14117 gl_next_as_first_directive=$gl_cv_next_getopt_h
14118 fi
14119 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14120
14121
14122
14123
14124 if test $ac_cv_header_getopt_h = yes; then
14125 HAVE_GETOPT_H=1
14126 else
14127 HAVE_GETOPT_H=0
14128 fi
14129
14130
14131 gl_replace_getopt=
14132
14133 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14134 for ac_header in getopt.h
14135 do :
14136 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14137 if test "x$ac_cv_header_getopt_h" = xyes; then :
14138 cat >>confdefs.h <<_ACEOF
14139 #define HAVE_GETOPT_H 1
14140 _ACEOF
14141
14142 else
14143 gl_replace_getopt=yes
14144 fi
14145
14146 done
14147
14148 fi
14149
14150 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14151 for ac_func in getopt_long_only
14152 do :
14153 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14154 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
14155 cat >>confdefs.h <<_ACEOF
14156 #define HAVE_GETOPT_LONG_ONLY 1
14157 _ACEOF
14158
14159 else
14160 gl_replace_getopt=yes
14161 fi
14162 done
14163
14164 fi
14165
14166 if test -z "$gl_replace_getopt"; then
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14168 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14169 if ${gl_cv_func_getopt_posix+:} false; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14175 #include <unistd.h>
14176 int
14177 main ()
14178 {
14179 int *p = &optreset; return optreset;
14180 ;
14181 return 0;
14182 }
14183 _ACEOF
14184 if ac_fn_c_try_compile "$LINENO"; then :
14185 gl_optind_min=1
14186 else
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14189 #include <getopt.h>
14190 int
14191 main ()
14192 {
14193 return !getopt_clip;
14194 ;
14195 return 0;
14196 }
14197 _ACEOF
14198 if ac_fn_c_try_compile "$LINENO"; then :
14199 gl_optind_min=1
14200 else
14201 gl_optind_min=0
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204 fi
14205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206
14207 gl_save_CPPFLAGS=$CPPFLAGS
14208 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14209 if test "$cross_compiling" = yes; then :
14210 case "$host_os" in
14211 mingw*) gl_cv_func_getopt_posix="guessing no";;
14212 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14213 *) gl_cv_func_getopt_posix="guessing yes";;
14214 esac
14215
14216 else
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14219
14220 #include <unistd.h>
14221 #include <stdlib.h>
14222 #include <string.h>
14223
14224 int
14225 main ()
14226 {
14227 {
14228 int argc = 0;
14229 char *argv[10];
14230 int c;
14231
14232 argv[argc++] = "program";
14233 argv[argc++] = "-a";
14234 argv[argc++] = "foo";
14235 argv[argc++] = "bar";
14236 argv[argc] = NULL;
14237 optind = OPTIND_MIN;
14238 opterr = 0;
14239
14240 c = getopt (argc, argv, "ab");
14241 if (!(c == 'a'))
14242 return 1;
14243 c = getopt (argc, argv, "ab");
14244 if (!(c == -1))
14245 return 2;
14246 if (!(optind == 2))
14247 return 3;
14248 }
14249 /* Some internal state exists at this point. */
14250 {
14251 int argc = 0;
14252 char *argv[10];
14253 int c;
14254
14255 argv[argc++] = "program";
14256 argv[argc++] = "donald";
14257 argv[argc++] = "-p";
14258 argv[argc++] = "billy";
14259 argv[argc++] = "duck";
14260 argv[argc++] = "-a";
14261 argv[argc++] = "bar";
14262 argv[argc] = NULL;
14263 optind = OPTIND_MIN;
14264 opterr = 0;
14265
14266 c = getopt (argc, argv, "+abp:q:");
14267 if (!(c == -1))
14268 return 4;
14269 if (!(strcmp (argv[0], "program") == 0))
14270 return 5;
14271 if (!(strcmp (argv[1], "donald") == 0))
14272 return 6;
14273 if (!(strcmp (argv[2], "-p") == 0))
14274 return 7;
14275 if (!(strcmp (argv[3], "billy") == 0))
14276 return 8;
14277 if (!(strcmp (argv[4], "duck") == 0))
14278 return 9;
14279 if (!(strcmp (argv[5], "-a") == 0))
14280 return 10;
14281 if (!(strcmp (argv[6], "bar") == 0))
14282 return 11;
14283 if (!(optind == 1))
14284 return 12;
14285 }
14286 /* Detect MacOS 10.5, AIX 7.1 bug. */
14287 {
14288 char *argv[3] = { "program", "-ab", NULL };
14289 optind = OPTIND_MIN;
14290 opterr = 0;
14291 if (getopt (2, argv, "ab:") != 'a')
14292 return 13;
14293 if (getopt (2, argv, "ab:") != '?')
14294 return 14;
14295 if (optopt != 'b')
14296 return 15;
14297 if (optind != 2)
14298 return 16;
14299 }
14300
14301 return 0;
14302 }
14303
14304 _ACEOF
14305 if ac_fn_c_try_run "$LINENO"; then :
14306 gl_cv_func_getopt_posix=yes
14307 else
14308 gl_cv_func_getopt_posix=no
14309 fi
14310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14311 conftest.$ac_objext conftest.beam conftest.$ac_ext
14312 fi
14313
14314 CPPFLAGS=$gl_save_CPPFLAGS
14315
14316 fi
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14318 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14319 case "$gl_cv_func_getopt_posix" in
14320 *no) gl_replace_getopt=yes ;;
14321 esac
14322 fi
14323
14324 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14326 $as_echo_n "checking for working GNU getopt function... " >&6; }
14327 if ${gl_cv_func_getopt_gnu+:} false; then :
14328 $as_echo_n "(cached) " >&6
14329 else
14330 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14331 # optstring is necessary for programs like m4 that have POSIX-mandated
14332 # semantics for supporting options interspersed with files.
14333 # Also, since getopt_long is a GNU extension, we require optind=0.
14334 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14335 # so take care to revert to the correct (non-)export state.
14336 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14337 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14338 xx) gl_had_POSIXLY_CORRECT=exported ;;
14339 x) gl_had_POSIXLY_CORRECT=yes ;;
14340 *) gl_had_POSIXLY_CORRECT= ;;
14341 esac
14342 POSIXLY_CORRECT=1
14343 export POSIXLY_CORRECT
14344 if test "$cross_compiling" = yes; then :
14345 case $host_os:$ac_cv_have_decl_optreset in
14346 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14347 *:yes) gl_cv_func_getopt_gnu=no;;
14348 *) gl_cv_func_getopt_gnu=yes;;
14349 esac
14350
14351 else
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354 #include <getopt.h>
14355 #include <stddef.h>
14356 #include <string.h>
14357
14358 int
14359 main ()
14360 {
14361
14362 int result = 0;
14363 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14364 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14365 OSF/1 5.1, Solaris 10. */
14366 {
14367 char *myargv[3];
14368 myargv[0] = "conftest";
14369 myargv[1] = "-+";
14370 myargv[2] = 0;
14371 opterr = 0;
14372 if (getopt (2, myargv, "+a") != '?')
14373 result |= 1;
14374 }
14375 /* This code succeeds on glibc 2.8, mingw,
14376 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14377 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14378 {
14379 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14380
14381 optind = 1;
14382 if (getopt (4, argv, "p::") != 'p')
14383 result |= 2;
14384 else if (optarg != NULL)
14385 result |= 4;
14386 else if (getopt (4, argv, "p::") != -1)
14387 result |= 6;
14388 else if (optind != 2)
14389 result |= 8;
14390 }
14391 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14392 {
14393 char *argv[] = { "program", "foo", "-p", NULL };
14394 optind = 0;
14395 if (getopt (3, argv, "-p") != 1)
14396 result |= 16;
14397 else if (getopt (3, argv, "-p") != 'p')
14398 result |= 32;
14399 }
14400 /* This code fails on glibc 2.11. */
14401 {
14402 char *argv[] = { "program", "-b", "-a", NULL };
14403 optind = opterr = 0;
14404 if (getopt (3, argv, "+:a:b") != 'b')
14405 result |= 64;
14406 else if (getopt (3, argv, "+:a:b") != ':')
14407 result |= 64;
14408 }
14409 return result;
14410
14411 ;
14412 return 0;
14413 }
14414 _ACEOF
14415 if ac_fn_c_try_run "$LINENO"; then :
14416 gl_cv_func_getopt_gnu=yes
14417 else
14418 gl_cv_func_getopt_gnu=no
14419 fi
14420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14421 conftest.$ac_objext conftest.beam conftest.$ac_ext
14422 fi
14423
14424 case $gl_had_POSIXLY_CORRECT in
14425 exported) ;;
14426 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14427 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14428 esac
14429
14430 fi
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14432 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14433 if test "$gl_cv_func_getopt_gnu" = "no"; then
14434 gl_replace_getopt=yes
14435 fi
14436 fi
14437
14438 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14439 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14440 ac_have_decl=1
14441 else
14442 ac_have_decl=0
14443 fi
14444
14445 cat >>confdefs.h <<_ACEOF
14446 #define HAVE_DECL_GETENV $ac_have_decl
14447 _ACEOF
14448
14449
14450
14451
14452
14453
14454 if test -n "$gl_replace_getopt"; then :
14455
14456
14457
14458 GETOPT_H=getopt.h
14459
14460 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14461
14462
14463
14464 GNULIB_UNISTD_H_GETOPT=1
14465
14466
14467
14468
14469
14470
14471
14472
14473 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14484
14485
14486
14487
14488
14489
14490 fi
14491
14492
14493
14494 GNULIB_MKTIME=0;
14495 GNULIB_NANOSLEEP=0;
14496 GNULIB_STRPTIME=0;
14497 GNULIB_TIMEGM=0;
14498 GNULIB_TIME_R=0;
14499 HAVE_DECL_LOCALTIME_R=1;
14500 HAVE_NANOSLEEP=1;
14501 HAVE_STRPTIME=1;
14502 HAVE_TIMEGM=1;
14503 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14504 REPLACE_MKTIME=GNULIB_PORTCHECK;
14505 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14506 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14507
14508
14509
14510
14511 for ac_func in $ac_func_list
14512 do :
14513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14516 cat >>confdefs.h <<_ACEOF
14517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14518 _ACEOF
14519
14520 fi
14521 done
14522
14523
14524
14525
14526 gl_cv_c_multiarch=no
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529 #ifndef __APPLE_CC__
14530 not a universal capable compiler
14531 #endif
14532 typedef int dummy;
14533
14534 _ACEOF
14535 if ac_fn_c_try_compile "$LINENO"; then :
14536
14537 arch=
14538 prev=
14539 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14540 if test -n "$prev"; then
14541 case $word in
14542 i?86 | x86_64 | ppc | ppc64)
14543 if test -z "$arch" || test "$arch" = "$word"; then
14544 arch="$word"
14545 else
14546 gl_cv_c_multiarch=yes
14547 fi
14548 ;;
14549 esac
14550 prev=
14551 else
14552 if test "x$word" = "x-arch"; then
14553 prev=arch
14554 fi
14555 fi
14556 done
14557
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 if test $gl_cv_c_multiarch = yes; then
14561 APPLE_UNIVERSAL_BUILD=1
14562 else
14563 APPLE_UNIVERSAL_BUILD=0
14564 fi
14565
14566
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14568 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14569 if ${ac_cv_header_stdbool_h+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574
14575 #include <stdbool.h>
14576 #ifndef bool
14577 "error: bool is not defined"
14578 #endif
14579 #ifndef false
14580 "error: false is not defined"
14581 #endif
14582 #if false
14583 "error: false is not 0"
14584 #endif
14585 #ifndef true
14586 "error: true is not defined"
14587 #endif
14588 #if true != 1
14589 "error: true is not 1"
14590 #endif
14591 #ifndef __bool_true_false_are_defined
14592 "error: __bool_true_false_are_defined is not defined"
14593 #endif
14594
14595 struct s { _Bool s: 1; _Bool t; } s;
14596
14597 char a[true == 1 ? 1 : -1];
14598 char b[false == 0 ? 1 : -1];
14599 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14600 char d[(bool) 0.5 == true ? 1 : -1];
14601 /* See body of main program for 'e'. */
14602 char f[(_Bool) 0.0 == false ? 1 : -1];
14603 char g[true];
14604 char h[sizeof (_Bool)];
14605 char i[sizeof s.t];
14606 enum { j = false, k = true, l = false * true, m = true * 256 };
14607 /* The following fails for
14608 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14609 _Bool n[m];
14610 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14611 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14612 /* Catch a bug in an HP-UX C compiler. See
14613 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14614 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14615 */
14616 _Bool q = true;
14617 _Bool *pq = &q;
14618
14619 int
14620 main ()
14621 {
14622
14623 bool e = &s;
14624 *pq |= q;
14625 *pq |= ! q;
14626 /* Refer to every declared value, to avoid compiler optimizations. */
14627 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14628 + !m + !n + !o + !p + !q + !pq);
14629
14630 ;
14631 return 0;
14632 }
14633 _ACEOF
14634 if ac_fn_c_try_compile "$LINENO"; then :
14635 ac_cv_header_stdbool_h=yes
14636 else
14637 ac_cv_header_stdbool_h=no
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 fi
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14642 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14643 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14644 if test "x$ac_cv_type__Bool" = xyes; then :
14645
14646 cat >>confdefs.h <<_ACEOF
14647 #define HAVE__BOOL 1
14648 _ACEOF
14649
14650
14651 fi
14652
14653
14654
14655 REPLACE_NULL=0;
14656 HAVE_WCHAR_T=1;
14657 STDDEF_H='';
14658
14659
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14661 $as_echo_n "checking for wchar_t... " >&6; }
14662 if ${gt_cv_c_wchar_t+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14667 #include <stddef.h>
14668 wchar_t foo = (wchar_t)'\0';
14669 int
14670 main ()
14671 {
14672
14673 ;
14674 return 0;
14675 }
14676 _ACEOF
14677 if ac_fn_c_try_compile "$LINENO"; then :
14678 gt_cv_c_wchar_t=yes
14679 else
14680 gt_cv_c_wchar_t=no
14681 fi
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 fi
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14685 $as_echo "$gt_cv_c_wchar_t" >&6; }
14686 if test $gt_cv_c_wchar_t = yes; then
14687
14688 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14689
14690 fi
14691
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14694 $as_echo_n "checking for unsigned long long int... " >&6; }
14695 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14696 $as_echo_n "(cached) " >&6
14697 else
14698 ac_cv_type_unsigned_long_long_int=yes
14699 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702
14703 /* For now, do not test the preprocessor; as of 2007 there are too many
14704 implementations with broken preprocessors. Perhaps this can
14705 be revisited in 2012. In the meantime, code should not expect
14706 #if to work with literals wider than 32 bits. */
14707 /* Test literals. */
14708 long long int ll = 9223372036854775807ll;
14709 long long int nll = -9223372036854775807LL;
14710 unsigned long long int ull = 18446744073709551615ULL;
14711 /* Test constant expressions. */
14712 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14713 ? 1 : -1)];
14714 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14715 ? 1 : -1)];
14716 int i = 63;
14717 int
14718 main ()
14719 {
14720 /* Test availability of runtime routines for shift and division. */
14721 long long int llmax = 9223372036854775807ll;
14722 unsigned long long int ullmax = 18446744073709551615ull;
14723 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14724 | (llmax / ll) | (llmax % ll)
14725 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14726 | (ullmax / ull) | (ullmax % ull));
14727 ;
14728 return 0;
14729 }
14730
14731 _ACEOF
14732 if ac_fn_c_try_link "$LINENO"; then :
14733
14734 else
14735 ac_cv_type_unsigned_long_long_int=no
14736 fi
14737 rm -f core conftest.err conftest.$ac_objext \
14738 conftest$ac_exeext conftest.$ac_ext
14739 fi
14740 fi
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14742 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14743 if test $ac_cv_type_unsigned_long_long_int = yes; then
14744
14745 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14746
14747 fi
14748
14749
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14752 $as_echo_n "checking for long long int... " >&6; }
14753 if ${ac_cv_type_long_long_int+:} false; then :
14754 $as_echo_n "(cached) " >&6
14755 else
14756 ac_cv_type_long_long_int=yes
14757 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14758 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14759 if test $ac_cv_type_long_long_int = yes; then
14760 if test "$cross_compiling" = yes; then :
14761 :
14762 else
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14765 #include <limits.h>
14766 #ifndef LLONG_MAX
14767 # define HALF \
14768 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14769 # define LLONG_MAX (HALF - 1 + HALF)
14770 #endif
14771 int
14772 main ()
14773 {
14774 long long int n = 1;
14775 int i;
14776 for (i = 0; ; i++)
14777 {
14778 long long int m = n << i;
14779 if (m >> i != n)
14780 return 1;
14781 if (LLONG_MAX / 2 < m)
14782 break;
14783 }
14784 return 0;
14785 ;
14786 return 0;
14787 }
14788 _ACEOF
14789 if ac_fn_c_try_run "$LINENO"; then :
14790
14791 else
14792 ac_cv_type_long_long_int=no
14793 fi
14794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14795 conftest.$ac_objext conftest.beam conftest.$ac_ext
14796 fi
14797
14798 fi
14799 fi
14800 fi
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14802 $as_echo "$ac_cv_type_long_long_int" >&6; }
14803 if test $ac_cv_type_long_long_int = yes; then
14804
14805 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14806
14807 fi
14808
14809
14810
14811
14812
14813
14814 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14815 "
14816 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14817
14818 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14819
14820 fi
14821
14822
14823
14824
14825
14826 GNULIB_FCHMODAT=0;
14827 GNULIB_FSTATAT=0;
14828 GNULIB_FUTIMENS=0;
14829 GNULIB_LCHMOD=0;
14830 GNULIB_LSTAT=0;
14831 GNULIB_MKDIRAT=0;
14832 GNULIB_MKFIFO=0;
14833 GNULIB_MKFIFOAT=0;
14834 GNULIB_MKNOD=0;
14835 GNULIB_MKNODAT=0;
14836 GNULIB_STAT=0;
14837 GNULIB_UTIMENSAT=0;
14838 HAVE_FCHMODAT=1;
14839 HAVE_FSTATAT=1;
14840 HAVE_FUTIMENS=1;
14841 HAVE_LCHMOD=1;
14842 HAVE_LSTAT=1;
14843 HAVE_MKDIRAT=1;
14844 HAVE_MKFIFO=1;
14845 HAVE_MKFIFOAT=1;
14846 HAVE_MKNOD=1;
14847 HAVE_MKNODAT=1;
14848 HAVE_UTIMENSAT=1;
14849 REPLACE_FSTAT=0;
14850 REPLACE_FSTATAT=0;
14851 REPLACE_FUTIMENS=0;
14852 REPLACE_LSTAT=0;
14853 REPLACE_MKDIR=0;
14854 REPLACE_MKFIFO=0;
14855 REPLACE_MKNOD=0;
14856 REPLACE_STAT=0;
14857 REPLACE_UTIMENSAT=0;
14858
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14860 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14861 if ${ac_cv_header_stat_broken+:} false; then :
14862 $as_echo_n "(cached) " >&6
14863 else
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866 #include <sys/types.h>
14867 #include <sys/stat.h>
14868
14869 #if defined S_ISBLK && defined S_IFDIR
14870 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14871 #endif
14872
14873 #if defined S_ISBLK && defined S_IFCHR
14874 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14875 #endif
14876
14877 #if defined S_ISLNK && defined S_IFREG
14878 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14879 #endif
14880
14881 #if defined S_ISSOCK && defined S_IFREG
14882 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14883 #endif
14884
14885 _ACEOF
14886 if ac_fn_c_try_compile "$LINENO"; then :
14887 ac_cv_header_stat_broken=no
14888 else
14889 ac_cv_header_stat_broken=yes
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14894 $as_echo "$ac_cv_header_stat_broken" >&6; }
14895 if test $ac_cv_header_stat_broken = yes; then
14896
14897 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14898
14899 fi
14900
14901
14902
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14904 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14905 if ${ac_cv_c_restrict+:} false; then :
14906 $as_echo_n "(cached) " >&6
14907 else
14908 ac_cv_c_restrict=no
14909 # The order here caters to the fact that C++ does not require restrict.
14910 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 typedef int * int_ptr;
14914 int foo (int_ptr $ac_kw ip) {
14915 return ip[0];
14916 }
14917 int
14918 main ()
14919 {
14920 int s[1];
14921 int * $ac_kw t = s;
14922 t[0] = 0;
14923 return foo(t)
14924 ;
14925 return 0;
14926 }
14927 _ACEOF
14928 if ac_fn_c_try_compile "$LINENO"; then :
14929 ac_cv_c_restrict=$ac_kw
14930 fi
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 test "$ac_cv_c_restrict" != no && break
14933 done
14934
14935 fi
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14937 $as_echo "$ac_cv_c_restrict" >&6; }
14938
14939 case $ac_cv_c_restrict in
14940 restrict) ;;
14941 no) $as_echo "#define restrict /**/" >>confdefs.h
14942 ;;
14943 *) cat >>confdefs.h <<_ACEOF
14944 #define restrict $ac_cv_c_restrict
14945 _ACEOF
14946 ;;
14947 esac
14948
14949
14950
14951
14952
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14954 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14955 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14956 $as_echo_n "(cached) " >&6
14957 else
14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14960 #include <time.h>
14961
14962 int
14963 main ()
14964 {
14965 static struct timespec x; x.tv_sec = x.tv_nsec;
14966 ;
14967 return 0;
14968 }
14969 _ACEOF
14970 if ac_fn_c_try_compile "$LINENO"; then :
14971 gl_cv_sys_struct_timespec_in_time_h=yes
14972 else
14973 gl_cv_sys_struct_timespec_in_time_h=no
14974 fi
14975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14976 fi
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14978 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14979
14980 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14981 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14982 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14983 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14984 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14985 else
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14987 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14988 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14989 $as_echo_n "(cached) " >&6
14990 else
14991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993 #include <sys/time.h>
14994
14995 int
14996 main ()
14997 {
14998 static struct timespec x; x.tv_sec = x.tv_nsec;
14999 ;
15000 return 0;
15001 }
15002 _ACEOF
15003 if ac_fn_c_try_compile "$LINENO"; then :
15004 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15005 else
15006 gl_cv_sys_struct_timespec_in_sys_time_h=no
15007 fi
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15009 fi
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15011 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15012 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15013 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15014 else
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15016 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15017 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021 /* end confdefs.h. */
15022 #include <pthread.h>
15023
15024 int
15025 main ()
15026 {
15027 static struct timespec x; x.tv_sec = x.tv_nsec;
15028 ;
15029 return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033 gl_cv_sys_struct_timespec_in_pthread_h=yes
15034 else
15035 gl_cv_sys_struct_timespec_in_pthread_h=no
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 fi
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15040 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15041 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15042 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15043 fi
15044 fi
15045 fi
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061 if test $gl_cv_have_include_next = yes; then
15062 gl_cv_next_time_h='<'time.h'>'
15063 else
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15065 $as_echo_n "checking absolute name of <time.h>... " >&6; }
15066 if ${gl_cv_next_time_h+:} false; then :
15067 $as_echo_n "(cached) " >&6
15068 else
15069
15070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15071 /* end confdefs.h. */
15072 #include <time.h>
15073
15074 _ACEOF
15075 case "$host_os" in
15076 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15077 *) gl_absname_cpp="$ac_cpp" ;;
15078 esac
15079 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15080 sed -n '\#/time.h#{
15081 s#.*"\(.*/time.h\)".*#\1#
15082 s#^/[^/]#//&#
15083 p
15084 q
15085 }'`'"'
15086
15087
15088 fi
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15090 $as_echo "$gl_cv_next_time_h" >&6; }
15091 fi
15092 NEXT_TIME_H=$gl_cv_next_time_h
15093
15094 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15096 gl_next_as_first_directive='<'time.h'>'
15097 else
15098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15099 gl_next_as_first_directive=$gl_cv_next_time_h
15100 fi
15101 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15102
15103
15104
15105
15106
15107
15108 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15109 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
15110 ac_have_decl=1
15111 else
15112 ac_have_decl=0
15113 fi
15114
15115 cat >>confdefs.h <<_ACEOF
15116 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
15117 _ACEOF
15118
15119
15120
15121
15122 if false; then
15123 GL_COND_LIBTOOL_TRUE=
15124 GL_COND_LIBTOOL_FALSE='#'
15125 else
15126 GL_COND_LIBTOOL_TRUE='#'
15127 GL_COND_LIBTOOL_FALSE=
15128 fi
15129
15130 gl_cond_libtool=false
15131 gl_libdeps=
15132 gl_ltlibdeps=
15133 gl_m4_base='m4'
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143 gl_source_base='lib'
15144 # Code from module arg-nonnull:
15145 # Code from module c++defs:
15146 # Code from module crypto/md5:
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15157
15158
15159
15160
15161 :
15162
15163 # Code from module dtoastr:
15164
15165 # Code from module extensions:
15166 # Code from module filemode:
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15178
15179
15180
15181 # Code from module getloadavg:
15182
15183
15184 # Persuade glibc <stdlib.h> to declare getloadavg().
15185
15186
15187 # Make sure getloadavg.c is where it belongs, at configure-time.
15188 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15189 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15190
15191 gl_save_LIBS=$LIBS
15192
15193 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15194 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15195 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15196 if test "x$ac_cv_func_getloadavg" = xyes; then :
15197
15198 else
15199 gl_have_func=no
15200
15201 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15202 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15203 # to get the right answer into the cache.
15204 # For kstat on solaris, we need to test for libelf and libkvm to force the
15205 # definition of SVR4 below.
15206 if test $gl_have_func = no; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15208 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15209 if ${ac_cv_lib_elf_elf_begin+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212 ac_check_lib_save_LIBS=$LIBS
15213 LIBS="-lelf $LIBS"
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15216
15217 /* Override any GCC internal prototype to avoid an error.
15218 Use char because int might match the return type of a GCC
15219 builtin and then its argument prototype would still apply. */
15220 #ifdef __cplusplus
15221 extern "C"
15222 #endif
15223 char elf_begin ();
15224 int
15225 main ()
15226 {
15227 return elf_begin ();
15228 ;
15229 return 0;
15230 }
15231 _ACEOF
15232 if ac_fn_c_try_link "$LINENO"; then :
15233 ac_cv_lib_elf_elf_begin=yes
15234 else
15235 ac_cv_lib_elf_elf_begin=no
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext \
15238 conftest$ac_exeext conftest.$ac_ext
15239 LIBS=$ac_check_lib_save_LIBS
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15242 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15243 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
15244 LIBS="-lelf $LIBS"
15245 fi
15246
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15248 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15249 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15252 ac_check_lib_save_LIBS=$LIBS
15253 LIBS="-lkvm $LIBS"
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15256
15257 /* Override any GCC internal prototype to avoid an error.
15258 Use char because int might match the return type of a GCC
15259 builtin and then its argument prototype would still apply. */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 char kvm_open ();
15264 int
15265 main ()
15266 {
15267 return kvm_open ();
15268 ;
15269 return 0;
15270 }
15271 _ACEOF
15272 if ac_fn_c_try_link "$LINENO"; then :
15273 ac_cv_lib_kvm_kvm_open=yes
15274 else
15275 ac_cv_lib_kvm_kvm_open=no
15276 fi
15277 rm -f core conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15279 LIBS=$ac_check_lib_save_LIBS
15280 fi
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15282 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15283 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15284 LIBS="-lkvm $LIBS"
15285 fi
15286
15287 # Check for the 4.4BSD definition of getloadavg.
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15289 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15290 if ${ac_cv_lib_util_getloadavg+:} false; then :
15291 $as_echo_n "(cached) " >&6
15292 else
15293 ac_check_lib_save_LIBS=$LIBS
15294 LIBS="-lutil $LIBS"
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15297
15298 /* Override any GCC internal prototype to avoid an error.
15299 Use char because int might match the return type of a GCC
15300 builtin and then its argument prototype would still apply. */
15301 #ifdef __cplusplus
15302 extern "C"
15303 #endif
15304 char getloadavg ();
15305 int
15306 main ()
15307 {
15308 return getloadavg ();
15309 ;
15310 return 0;
15311 }
15312 _ACEOF
15313 if ac_fn_c_try_link "$LINENO"; then :
15314 ac_cv_lib_util_getloadavg=yes
15315 else
15316 ac_cv_lib_util_getloadavg=no
15317 fi
15318 rm -f core conftest.err conftest.$ac_objext \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LIBS=$ac_check_lib_save_LIBS
15321 fi
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15323 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15324 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
15325 LIBS="-lutil $LIBS" gl_have_func=yes
15326 fi
15327
15328 fi
15329
15330 if test $gl_have_func = no; then
15331 # There is a commonly available library for RS/6000 AIX.
15332 # Since it is not a standard part of AIX, it might be installed locally.
15333 gl_getloadavg_LIBS=$LIBS
15334 LIBS="-L/usr/local/lib $LIBS"
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15336 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15337 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 ac_check_lib_save_LIBS=$LIBS
15341 LIBS="-lgetloadavg $LIBS"
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344
15345 /* Override any GCC internal prototype to avoid an error.
15346 Use char because int might match the return type of a GCC
15347 builtin and then its argument prototype would still apply. */
15348 #ifdef __cplusplus
15349 extern "C"
15350 #endif
15351 char getloadavg ();
15352 int
15353 main ()
15354 {
15355 return getloadavg ();
15356 ;
15357 return 0;
15358 }
15359 _ACEOF
15360 if ac_fn_c_try_link "$LINENO"; then :
15361 ac_cv_lib_getloadavg_getloadavg=yes
15362 else
15363 ac_cv_lib_getloadavg_getloadavg=no
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext \
15366 conftest$ac_exeext conftest.$ac_ext
15367 LIBS=$ac_check_lib_save_LIBS
15368 fi
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15370 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15371 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
15372 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15373 else
15374 LIBS=$gl_getloadavg_LIBS
15375 fi
15376
15377 fi
15378
15379 # Set up the replacement function if necessary.
15380 if test $gl_have_func = no; then
15381
15382
15383
15384
15385
15386
15387
15388
15389 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15390
15391
15392 # Figure out what our getloadavg.c needs.
15393
15394 # Solaris has libkstat which does not require root.
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15396 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15397 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
15398 $as_echo_n "(cached) " >&6
15399 else
15400 ac_check_lib_save_LIBS=$LIBS
15401 LIBS="-lkstat $LIBS"
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15404
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 char kstat_open ();
15412 int
15413 main ()
15414 {
15415 return kstat_open ();
15416 ;
15417 return 0;
15418 }
15419 _ACEOF
15420 if ac_fn_c_try_link "$LINENO"; then :
15421 ac_cv_lib_kstat_kstat_open=yes
15422 else
15423 ac_cv_lib_kstat_kstat_open=no
15424 fi
15425 rm -f core conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
15427 LIBS=$ac_check_lib_save_LIBS
15428 fi
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15430 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15431 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15432 cat >>confdefs.h <<_ACEOF
15433 #define HAVE_LIBKSTAT 1
15434 _ACEOF
15435
15436 LIBS="-lkstat $LIBS"
15437
15438 fi
15439
15440 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15441
15442 # On HPUX9, an unprivileged user can get load averages this way.
15443 if test $gl_have_func = no; then
15444 for ac_func in pstat_getdynamic
15445 do :
15446 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15447 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
15448 cat >>confdefs.h <<_ACEOF
15449 #define HAVE_PSTAT_GETDYNAMIC 1
15450 _ACEOF
15451 gl_have_func=yes
15452 fi
15453 done
15454
15455 fi
15456
15457 # AIX has libperfstat which does not require root
15458 if test $gl_have_func = no; then
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15460 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15461 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
15462 $as_echo_n "(cached) " >&6
15463 else
15464 ac_check_lib_save_LIBS=$LIBS
15465 LIBS="-lperfstat $LIBS"
15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467 /* end confdefs.h. */
15468
15469 /* Override any GCC internal prototype to avoid an error.
15470 Use char because int might match the return type of a GCC
15471 builtin and then its argument prototype would still apply. */
15472 #ifdef __cplusplus
15473 extern "C"
15474 #endif
15475 char perfstat_cpu_total ();
15476 int
15477 main ()
15478 {
15479 return perfstat_cpu_total ();
15480 ;
15481 return 0;
15482 }
15483 _ACEOF
15484 if ac_fn_c_try_link "$LINENO"; then :
15485 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15486 else
15487 ac_cv_lib_perfstat_perfstat_cpu_total=no
15488 fi
15489 rm -f core conftest.err conftest.$ac_objext \
15490 conftest$ac_exeext conftest.$ac_ext
15491 LIBS=$ac_check_lib_save_LIBS
15492 fi
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15494 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15495 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15496 cat >>confdefs.h <<_ACEOF
15497 #define HAVE_LIBPERFSTAT 1
15498 _ACEOF
15499
15500 LIBS="-lperfstat $LIBS"
15501
15502 fi
15503
15504 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15505 fi
15506
15507 if test $gl_have_func = no; then
15508 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15509 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15510 gl_have_func=yes
15511
15512 $as_echo "#define DGUX 1" >>confdefs.h
15513
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15515 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15516 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
15517 $as_echo_n "(cached) " >&6
15518 else
15519 ac_check_lib_save_LIBS=$LIBS
15520 LIBS="-ldgc $LIBS"
15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522 /* end confdefs.h. */
15523
15524 /* Override any GCC internal prototype to avoid an error.
15525 Use char because int might match the return type of a GCC
15526 builtin and then its argument prototype would still apply. */
15527 #ifdef __cplusplus
15528 extern "C"
15529 #endif
15530 char dg_sys_info ();
15531 int
15532 main ()
15533 {
15534 return dg_sys_info ();
15535 ;
15536 return 0;
15537 }
15538 _ACEOF
15539 if ac_fn_c_try_link "$LINENO"; then :
15540 ac_cv_lib_dgc_dg_sys_info=yes
15541 else
15542 ac_cv_lib_dgc_dg_sys_info=no
15543 fi
15544 rm -f core conftest.err conftest.$ac_objext \
15545 conftest$ac_exeext conftest.$ac_ext
15546 LIBS=$ac_check_lib_save_LIBS
15547 fi
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15549 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15550 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_LIBDGC 1
15553 _ACEOF
15554
15555 LIBS="-ldgc $LIBS"
15556
15557 fi
15558
15559 fi
15560
15561
15562 fi
15563
15564 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15565 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15566 # Irix 4.0.5F has the header but not the library.
15567 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15568 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15569 gl_have_func=yes
15570
15571 $as_echo "#define SVR4 1" >>confdefs.h
15572
15573 fi
15574
15575 if test $gl_have_func = no; then
15576 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15577 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15578 gl_have_func=yes
15579
15580 $as_echo "#define UMAX 1" >>confdefs.h
15581
15582
15583 $as_echo "#define UMAX4_3 1" >>confdefs.h
15584
15585 fi
15586
15587
15588 fi
15589
15590 if test $gl_have_func = no; then
15591 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15592 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15593 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15594
15595 fi
15596
15597
15598 fi
15599
15600 if test $gl_have_func = no; then
15601 for ac_header in mach/mach.h
15602 do :
15603 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15604 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15605 cat >>confdefs.h <<_ACEOF
15606 #define HAVE_MACH_MACH_H 1
15607 _ACEOF
15608
15609 fi
15610
15611 done
15612
15613 fi
15614
15615 for ac_header in nlist.h
15616 do :
15617 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15618 if test "x$ac_cv_header_nlist_h" = xyes; then :
15619 cat >>confdefs.h <<_ACEOF
15620 #define HAVE_NLIST_H 1
15621 _ACEOF
15622 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15623 "
15624 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15625
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15628 _ACEOF
15629
15630
15631 fi
15632
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 #include <nlist.h>
15636 int
15637 main ()
15638 {
15639 struct nlist x;
15640 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15641 x.n_un.n_name = "";
15642 #else
15643 x.n_name = "";
15644 #endif
15645 ;
15646 return 0;
15647 }
15648 _ACEOF
15649 if ac_fn_c_try_link "$LINENO"; then :
15650
15651 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15652
15653 fi
15654 rm -f core conftest.err conftest.$ac_objext \
15655 conftest$ac_exeext conftest.$ac_ext
15656
15657 fi
15658
15659 done
15660
15661 fi
15662 fi
15663
15664
15665 if test "x$gl_save_LIBS" = x; then
15666 GETLOADAVG_LIBS=$LIBS
15667 else
15668 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15669 fi
15670 LIBS=$gl_save_LIBS
15671
15672
15673 # Test whether the system declares getloadavg. Solaris has the function
15674 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15675 for ac_header in sys/loadavg.h
15676 do :
15677 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15678 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_SYS_LOADAVG_H 1
15681 _ACEOF
15682
15683 fi
15684
15685 done
15686
15687 if test $ac_cv_header_sys_loadavg_h = yes; then
15688 HAVE_SYS_LOADAVG_H=1
15689 else
15690 HAVE_SYS_LOADAVG_H=0
15691 fi
15692 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15693 # include <sys/loadavg.h>
15694 #endif
15695 #include <stdlib.h>
15696 "
15697 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
15698
15699 else
15700 HAVE_DECL_GETLOADAVG=0
15701 fi
15702
15703
15704
15705
15706
15707 GNULIB_GETLOADAVG=1
15708
15709
15710
15711 # Code from module getopt-gnu:
15712
15713
15714
15715
15716
15717
15718 # Code from module getopt-posix:
15719
15720
15721
15722
15723
15724 if test -n "$gl_replace_getopt"; then :
15725
15726
15727
15728 GETOPT_H=getopt.h
15729
15730 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15731
15732
15733
15734 GNULIB_UNISTD_H_GETOPT=1
15735
15736
15737
15738
15739
15740
15741
15742
15743 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15754
15755
15756
15757
15758
15759
15760 fi
15761
15762
15763 # Code from module gettext-h:
15764
15765
15766 # Code from module ignore-value:
15767
15768 # Code from module include_next:
15769 # Code from module intprops:
15770 # Code from module mktime:
15771
15772
15773
15774
15775
15776 if test $APPLE_UNIVERSAL_BUILD = 1; then
15777 # A universal build on Apple MacOS X platforms.
15778 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15779 # But we need a configuration result that is valid in both modes.
15780 ac_cv_func_working_mktime=no
15781 fi
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15783 $as_echo_n "checking for working mktime... " >&6; }
15784 if ${ac_cv_func_working_mktime+:} false; then :
15785 $as_echo_n "(cached) " >&6
15786 else
15787 if test "$cross_compiling" = yes; then :
15788 ac_cv_func_working_mktime=no
15789 else
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15792 /* Test program from Paul Eggert and Tony Leneis. */
15793 #include <limits.h>
15794 #include <stdlib.h>
15795 #include <time.h>
15796
15797 #ifdef HAVE_UNISTD_H
15798 # include <unistd.h>
15799 #endif
15800
15801 #ifndef HAVE_ALARM
15802 # define alarm(X) /* empty */
15803 #endif
15804
15805 /* Work around redefinition to rpl_putenv by other config tests. */
15806 #undef putenv
15807
15808 static time_t time_t_max;
15809 static time_t time_t_min;
15810
15811 /* Values we'll use to set the TZ environment variable. */
15812 static char *tz_strings[] = {
15813 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15814 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15815 };
15816 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15817
15818 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15819 Based on a problem report from Andreas Jaeger. */
15820 static int
15821 spring_forward_gap ()
15822 {
15823 /* glibc (up to about 1998-10-07) failed this test. */
15824 struct tm tm;
15825
15826 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15827 instead of "TZ=America/Vancouver" in order to detect the bug even
15828 on systems that don't support the Olson extension, or don't have the
15829 full zoneinfo tables installed. */
15830 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15831
15832 tm.tm_year = 98;
15833 tm.tm_mon = 3;
15834 tm.tm_mday = 5;
15835 tm.tm_hour = 2;
15836 tm.tm_min = 0;
15837 tm.tm_sec = 0;
15838 tm.tm_isdst = -1;
15839 return mktime (&tm) != (time_t) -1;
15840 }
15841
15842 static int
15843 mktime_test1 (time_t now)
15844 {
15845 struct tm *lt;
15846 return ! (lt = localtime (&now)) || mktime (lt) == now;
15847 }
15848
15849 static int
15850 mktime_test (time_t now)
15851 {
15852 return (mktime_test1 (now)
15853 && mktime_test1 ((time_t) (time_t_max - now))
15854 && mktime_test1 ((time_t) (time_t_min + now)));
15855 }
15856
15857 static int
15858 irix_6_4_bug ()
15859 {
15860 /* Based on code from Ariel Faigon. */
15861 struct tm tm;
15862 tm.tm_year = 96;
15863 tm.tm_mon = 3;
15864 tm.tm_mday = 0;
15865 tm.tm_hour = 0;
15866 tm.tm_min = 0;
15867 tm.tm_sec = 0;
15868 tm.tm_isdst = -1;
15869 mktime (&tm);
15870 return tm.tm_mon == 2 && tm.tm_mday == 31;
15871 }
15872
15873 static int
15874 bigtime_test (int j)
15875 {
15876 struct tm tm;
15877 time_t now;
15878 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15879 now = mktime (&tm);
15880 if (now != (time_t) -1)
15881 {
15882 struct tm *lt = localtime (&now);
15883 if (! (lt
15884 && lt->tm_year == tm.tm_year
15885 && lt->tm_mon == tm.tm_mon
15886 && lt->tm_mday == tm.tm_mday
15887 && lt->tm_hour == tm.tm_hour
15888 && lt->tm_min == tm.tm_min
15889 && lt->tm_sec == tm.tm_sec
15890 && lt->tm_yday == tm.tm_yday
15891 && lt->tm_wday == tm.tm_wday
15892 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15893 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15894 return 0;
15895 }
15896 return 1;
15897 }
15898
15899 static int
15900 year_2050_test ()
15901 {
15902 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15903 ignoring leap seconds. */
15904 unsigned long int answer = 2527315200UL;
15905
15906 struct tm tm;
15907 time_t t;
15908 tm.tm_year = 2050 - 1900;
15909 tm.tm_mon = 2 - 1;
15910 tm.tm_mday = 1;
15911 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15912 tm.tm_isdst = -1;
15913
15914 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15915 instead of "TZ=America/Vancouver" in order to detect the bug even
15916 on systems that don't support the Olson extension, or don't have the
15917 full zoneinfo tables installed. */
15918 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15919
15920 t = mktime (&tm);
15921
15922 /* Check that the result is either a failure, or close enough
15923 to the correct answer that we can assume the discrepancy is
15924 due to leap seconds. */
15925 return (t == (time_t) -1
15926 || (0 < t && answer - 120 <= t && t <= answer + 120));
15927 }
15928
15929 int
15930 main ()
15931 {
15932 int result = 0;
15933 time_t t, delta;
15934 int i, j;
15935 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15936 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15937
15938 /* This test makes some buggy mktime implementations loop.
15939 Give up after 60 seconds; a mktime slower than that
15940 isn't worth using anyway. */
15941 alarm (60);
15942
15943 time_t_max = (! time_t_signed
15944 ? (time_t) -1
15945 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15946 * 2 + 1));
15947 time_t_min = (! time_t_signed
15948 ? (time_t) 0
15949 : time_t_signed_magnitude
15950 ? ~ (time_t) 0
15951 : ~ time_t_max);
15952
15953 delta = time_t_max / 997; /* a suitable prime number */
15954 for (i = 0; i < N_STRINGS; i++)
15955 {
15956 if (tz_strings[i])
15957 putenv (tz_strings[i]);
15958
15959 for (t = 0; t <= time_t_max - delta; t += delta)
15960 if (! mktime_test (t))
15961 result |= 1;
15962 if (! (mktime_test ((time_t) 1)
15963 && mktime_test ((time_t) (60 * 60))
15964 && mktime_test ((time_t) (60 * 60 * 24))))
15965 result |= 2;
15966
15967 for (j = 1; ; j <<= 1)
15968 if (! bigtime_test (j))
15969 result |= 4;
15970 else if (INT_MAX / 2 < j)
15971 break;
15972 if (! bigtime_test (INT_MAX))
15973 result |= 8;
15974 }
15975 if (! irix_6_4_bug ())
15976 result |= 16;
15977 if (! spring_forward_gap ())
15978 result |= 32;
15979 if (! year_2050_test ())
15980 result |= 64;
15981 return result;
15982 }
15983 _ACEOF
15984 if ac_fn_c_try_run "$LINENO"; then :
15985 ac_cv_func_working_mktime=yes
15986 else
15987 ac_cv_func_working_mktime=no
15988 fi
15989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15990 conftest.$ac_objext conftest.beam conftest.$ac_ext
15991 fi
15992
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15995 $as_echo "$ac_cv_func_working_mktime" >&6; }
15996 if test $ac_cv_func_working_mktime = no; then
15997
15998
15999
16000
16001
16002
16003
16004
16005 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
16006
16007 fi
16008
16009 if test $ac_cv_func_working_mktime = no; then
16010 REPLACE_MKTIME=1
16011
16012
16013
16014 else
16015 REPLACE_MKTIME=0
16016 fi
16017
16018
16019
16020
16021 GNULIB_MKTIME=1
16022
16023
16024
16025 # Code from module multiarch:
16026
16027 # Code from module stdbool:
16028
16029
16030
16031 # Define two additional variables used in the Makefile substitution.
16032
16033 if test "$ac_cv_header_stdbool_h" = yes; then
16034 STDBOOL_H=''
16035 else
16036 STDBOOL_H='stdbool.h'
16037 fi
16038
16039
16040 if test "$ac_cv_type__Bool" = yes; then
16041 HAVE__BOOL=1
16042 else
16043 HAVE__BOOL=0
16044 fi
16045
16046
16047 # Code from module stddef:
16048
16049
16050
16051 if test $gt_cv_c_wchar_t = no; then
16052 HAVE_WCHAR_T=0
16053 STDDEF_H=stddef.h
16054 fi
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16056 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16057 if ${gl_cv_decl_null_works+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 #include <stddef.h>
16063 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16064
16065 int
16066 main ()
16067 {
16068
16069 ;
16070 return 0;
16071 }
16072 _ACEOF
16073 if ac_fn_c_try_compile "$LINENO"; then :
16074 gl_cv_decl_null_works=yes
16075 else
16076 gl_cv_decl_null_works=no
16077 fi
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 fi
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16081 $as_echo "$gl_cv_decl_null_works" >&6; }
16082 if test $gl_cv_decl_null_works = no; then
16083 REPLACE_NULL=1
16084 STDDEF_H=stddef.h
16085 fi
16086 if test -n "$STDDEF_H"; then
16087
16088
16089
16090
16091
16092
16093
16094
16095 if test $gl_cv_have_include_next = yes; then
16096 gl_cv_next_stddef_h='<'stddef.h'>'
16097 else
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16099 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16100 if ${gl_cv_next_stddef_h+:} false; then :
16101 $as_echo_n "(cached) " >&6
16102 else
16103
16104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16105 /* end confdefs.h. */
16106 #include <stddef.h>
16107
16108 _ACEOF
16109 case "$host_os" in
16110 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16111 *) gl_absname_cpp="$ac_cpp" ;;
16112 esac
16113 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16114 sed -n '\#/stddef.h#{
16115 s#.*"\(.*/stddef.h\)".*#\1#
16116 s#^/[^/]#//&#
16117 p
16118 q
16119 }'`'"'
16120
16121
16122 fi
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16124 $as_echo "$gl_cv_next_stddef_h" >&6; }
16125 fi
16126 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16127
16128 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16129 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16130 gl_next_as_first_directive='<'stddef.h'>'
16131 else
16132 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16133 gl_next_as_first_directive=$gl_cv_next_stddef_h
16134 fi
16135 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16136
16137
16138
16139
16140 fi
16141
16142 # Code from module stdint:
16143
16144
16145
16146 if test $ac_cv_type_long_long_int = yes; then
16147 HAVE_LONG_LONG_INT=1
16148 else
16149 HAVE_LONG_LONG_INT=0
16150 fi
16151
16152
16153 if test $ac_cv_type_unsigned_long_long_int = yes; then
16154 HAVE_UNSIGNED_LONG_LONG_INT=1
16155 else
16156 HAVE_UNSIGNED_LONG_LONG_INT=0
16157 fi
16158
16159
16160
16161 if test $ac_cv_header_wchar_h = yes; then
16162 HAVE_WCHAR_H=1
16163 else
16164 HAVE_WCHAR_H=0
16165 fi
16166
16167
16168 if test $ac_cv_header_inttypes_h = yes; then
16169 HAVE_INTTYPES_H=1
16170 else
16171 HAVE_INTTYPES_H=0
16172 fi
16173
16174
16175 if test $ac_cv_header_sys_types_h = yes; then
16176 HAVE_SYS_TYPES_H=1
16177 else
16178 HAVE_SYS_TYPES_H=0
16179 fi
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191 if test $gl_cv_have_include_next = yes; then
16192 gl_cv_next_stdint_h='<'stdint.h'>'
16193 else
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16195 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16196 if ${gl_cv_next_stdint_h+:} false; then :
16197 $as_echo_n "(cached) " >&6
16198 else
16199
16200 if test $ac_cv_header_stdint_h = yes; then
16201
16202
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #include <stdint.h>
16206
16207 _ACEOF
16208 case "$host_os" in
16209 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16210 *) gl_absname_cpp="$ac_cpp" ;;
16211 esac
16212 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16213 sed -n '\#/stdint.h#{
16214 s#.*"\(.*/stdint.h\)".*#\1#
16215 s#^/[^/]#//&#
16216 p
16217 q
16218 }'`'"'
16219 else
16220 gl_cv_next_stdint_h='<'stdint.h'>'
16221 fi
16222
16223
16224 fi
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16226 $as_echo "$gl_cv_next_stdint_h" >&6; }
16227 fi
16228 NEXT_STDINT_H=$gl_cv_next_stdint_h
16229
16230 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16232 gl_next_as_first_directive='<'stdint.h'>'
16233 else
16234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16235 gl_next_as_first_directive=$gl_cv_next_stdint_h
16236 fi
16237 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16238
16239
16240
16241
16242 if test $ac_cv_header_stdint_h = yes; then
16243 HAVE_STDINT_H=1
16244 else
16245 HAVE_STDINT_H=0
16246 fi
16247
16248
16249 if test $ac_cv_header_stdint_h = yes; then
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16251 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16252 if ${gl_cv_header_working_stdint_h+:} false; then :
16253 $as_echo_n "(cached) " >&6
16254 else
16255 gl_cv_header_working_stdint_h=no
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258
16259
16260 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16261 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16262 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16263 #include <stdint.h>
16264 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16265 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16266 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16267 #endif
16268
16269
16270 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16271 included before <wchar.h>. */
16272 #include <stddef.h>
16273 #include <signal.h>
16274 #if HAVE_WCHAR_H
16275 # include <stdio.h>
16276 # include <time.h>
16277 # include <wchar.h>
16278 #endif
16279
16280
16281 #ifdef INT8_MAX
16282 int8_t a1 = INT8_MAX;
16283 int8_t a1min = INT8_MIN;
16284 #endif
16285 #ifdef INT16_MAX
16286 int16_t a2 = INT16_MAX;
16287 int16_t a2min = INT16_MIN;
16288 #endif
16289 #ifdef INT32_MAX
16290 int32_t a3 = INT32_MAX;
16291 int32_t a3min = INT32_MIN;
16292 #endif
16293 #ifdef INT64_MAX
16294 int64_t a4 = INT64_MAX;
16295 int64_t a4min = INT64_MIN;
16296 #endif
16297 #ifdef UINT8_MAX
16298 uint8_t b1 = UINT8_MAX;
16299 #else
16300 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16301 #endif
16302 #ifdef UINT16_MAX
16303 uint16_t b2 = UINT16_MAX;
16304 #endif
16305 #ifdef UINT32_MAX
16306 uint32_t b3 = UINT32_MAX;
16307 #endif
16308 #ifdef UINT64_MAX
16309 uint64_t b4 = UINT64_MAX;
16310 #endif
16311 int_least8_t c1 = INT8_C (0x7f);
16312 int_least8_t c1max = INT_LEAST8_MAX;
16313 int_least8_t c1min = INT_LEAST8_MIN;
16314 int_least16_t c2 = INT16_C (0x7fff);
16315 int_least16_t c2max = INT_LEAST16_MAX;
16316 int_least16_t c2min = INT_LEAST16_MIN;
16317 int_least32_t c3 = INT32_C (0x7fffffff);
16318 int_least32_t c3max = INT_LEAST32_MAX;
16319 int_least32_t c3min = INT_LEAST32_MIN;
16320 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16321 int_least64_t c4max = INT_LEAST64_MAX;
16322 int_least64_t c4min = INT_LEAST64_MIN;
16323 uint_least8_t d1 = UINT8_C (0xff);
16324 uint_least8_t d1max = UINT_LEAST8_MAX;
16325 uint_least16_t d2 = UINT16_C (0xffff);
16326 uint_least16_t d2max = UINT_LEAST16_MAX;
16327 uint_least32_t d3 = UINT32_C (0xffffffff);
16328 uint_least32_t d3max = UINT_LEAST32_MAX;
16329 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16330 uint_least64_t d4max = UINT_LEAST64_MAX;
16331 int_fast8_t e1 = INT_FAST8_MAX;
16332 int_fast8_t e1min = INT_FAST8_MIN;
16333 int_fast16_t e2 = INT_FAST16_MAX;
16334 int_fast16_t e2min = INT_FAST16_MIN;
16335 int_fast32_t e3 = INT_FAST32_MAX;
16336 int_fast32_t e3min = INT_FAST32_MIN;
16337 int_fast64_t e4 = INT_FAST64_MAX;
16338 int_fast64_t e4min = INT_FAST64_MIN;
16339 uint_fast8_t f1 = UINT_FAST8_MAX;
16340 uint_fast16_t f2 = UINT_FAST16_MAX;
16341 uint_fast32_t f3 = UINT_FAST32_MAX;
16342 uint_fast64_t f4 = UINT_FAST64_MAX;
16343 #ifdef INTPTR_MAX
16344 intptr_t g = INTPTR_MAX;
16345 intptr_t gmin = INTPTR_MIN;
16346 #endif
16347 #ifdef UINTPTR_MAX
16348 uintptr_t h = UINTPTR_MAX;
16349 #endif
16350 intmax_t i = INTMAX_MAX;
16351 uintmax_t j = UINTMAX_MAX;
16352
16353 #include <limits.h> /* for CHAR_BIT */
16354 #define TYPE_MINIMUM(t) \
16355 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16356 #define TYPE_MAXIMUM(t) \
16357 ((t) ((t) 0 < (t) -1 \
16358 ? (t) -1 \
16359 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16360 struct s {
16361 int check_PTRDIFF:
16362 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16363 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16364 ? 1 : -1;
16365 /* Detect bug in FreeBSD 6.0 / ia64. */
16366 int check_SIG_ATOMIC:
16367 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16368 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16369 ? 1 : -1;
16370 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16371 int check_WCHAR:
16372 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16373 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16374 ? 1 : -1;
16375 /* Detect bug in mingw. */
16376 int check_WINT:
16377 WINT_MIN == TYPE_MINIMUM (wint_t)
16378 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16379 ? 1 : -1;
16380
16381 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16382 int check_UINT8_C:
16383 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16384 int check_UINT16_C:
16385 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16386
16387 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16388 #ifdef UINT8_MAX
16389 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16390 #endif
16391 #ifdef UINT16_MAX
16392 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16393 #endif
16394 #ifdef UINT32_MAX
16395 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16396 #endif
16397 #ifdef UINT64_MAX
16398 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16399 #endif
16400 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16401 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16402 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16403 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16404 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16405 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16406 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16407 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16408 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16409 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16410 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16411 };
16412
16413 int
16414 main ()
16415 {
16416
16417 ;
16418 return 0;
16419 }
16420 _ACEOF
16421 if ac_fn_c_try_compile "$LINENO"; then :
16422 if test "$cross_compiling" = yes; then :
16423 gl_cv_header_working_stdint_h=yes
16424
16425 else
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428
16429
16430 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16431 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16432 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16433 #include <stdint.h>
16434
16435
16436 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16437 included before <wchar.h>. */
16438 #include <stddef.h>
16439 #include <signal.h>
16440 #if HAVE_WCHAR_H
16441 # include <stdio.h>
16442 # include <time.h>
16443 # include <wchar.h>
16444 #endif
16445
16446
16447 #include <stdio.h>
16448 #include <string.h>
16449 #define MVAL(macro) MVAL1(macro)
16450 #define MVAL1(expression) #expression
16451 static const char *macro_values[] =
16452 {
16453 #ifdef INT8_MAX
16454 MVAL (INT8_MAX),
16455 #endif
16456 #ifdef INT16_MAX
16457 MVAL (INT16_MAX),
16458 #endif
16459 #ifdef INT32_MAX
16460 MVAL (INT32_MAX),
16461 #endif
16462 #ifdef INT64_MAX
16463 MVAL (INT64_MAX),
16464 #endif
16465 #ifdef UINT8_MAX
16466 MVAL (UINT8_MAX),
16467 #endif
16468 #ifdef UINT16_MAX
16469 MVAL (UINT16_MAX),
16470 #endif
16471 #ifdef UINT32_MAX
16472 MVAL (UINT32_MAX),
16473 #endif
16474 #ifdef UINT64_MAX
16475 MVAL (UINT64_MAX),
16476 #endif
16477 NULL
16478 };
16479
16480 int
16481 main ()
16482 {
16483
16484 const char **mv;
16485 for (mv = macro_values; *mv != NULL; mv++)
16486 {
16487 const char *value = *mv;
16488 /* Test whether it looks like a cast expression. */
16489 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16490 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16491 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16492 || strncmp (value, "((int)"/*)*/, 6) == 0
16493 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16494 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16495 return mv - macro_values + 1;
16496 }
16497 return 0;
16498
16499 ;
16500 return 0;
16501 }
16502 _ACEOF
16503 if ac_fn_c_try_run "$LINENO"; then :
16504 gl_cv_header_working_stdint_h=yes
16505 fi
16506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16507 conftest.$ac_objext conftest.beam conftest.$ac_ext
16508 fi
16509
16510
16511 fi
16512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16513
16514 fi
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16516 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16517 fi
16518 if test "$gl_cv_header_working_stdint_h" = yes; then
16519 STDINT_H=
16520 else
16521 for ac_header in sys/inttypes.h sys/bitypes.h
16522 do :
16523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16524 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16525 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16526 cat >>confdefs.h <<_ACEOF
16527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16528 _ACEOF
16529
16530 fi
16531
16532 done
16533
16534 if test $ac_cv_header_sys_inttypes_h = yes; then
16535 HAVE_SYS_INTTYPES_H=1
16536 else
16537 HAVE_SYS_INTTYPES_H=0
16538 fi
16539
16540 if test $ac_cv_header_sys_bitypes_h = yes; then
16541 HAVE_SYS_BITYPES_H=1
16542 else
16543 HAVE_SYS_BITYPES_H=0
16544 fi
16545
16546
16547
16548
16549 if test $APPLE_UNIVERSAL_BUILD = 0; then
16550
16551
16552 for gltype in ptrdiff_t size_t ; do
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16554 $as_echo_n "checking for bit size of $gltype... " >&6; }
16555 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16556 $as_echo_n "(cached) " >&6
16557 else
16558 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16559 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16560 included before <wchar.h>. */
16561 #include <stddef.h>
16562 #include <signal.h>
16563 #if HAVE_WCHAR_H
16564 # include <stdio.h>
16565 # include <time.h>
16566 # include <wchar.h>
16567 #endif
16568
16569 #include <limits.h>"; then :
16570
16571 else
16572 result=unknown
16573 fi
16574
16575 eval gl_cv_bitsizeof_${gltype}=\$result
16576
16577 fi
16578 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16580 $as_echo "$ac_res" >&6; }
16581 eval result=\$gl_cv_bitsizeof_${gltype}
16582 if test $result = unknown; then
16583 result=0
16584 fi
16585 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16586 cat >>confdefs.h <<_ACEOF
16587 #define BITSIZEOF_${GLTYPE} $result
16588 _ACEOF
16589
16590 eval BITSIZEOF_${GLTYPE}=\$result
16591 done
16592
16593
16594 fi
16595
16596
16597 for gltype in sig_atomic_t wchar_t wint_t ; do
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16599 $as_echo_n "checking for bit size of $gltype... " >&6; }
16600 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16601 $as_echo_n "(cached) " >&6
16602 else
16603 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16604 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16605 included before <wchar.h>. */
16606 #include <stddef.h>
16607 #include <signal.h>
16608 #if HAVE_WCHAR_H
16609 # include <stdio.h>
16610 # include <time.h>
16611 # include <wchar.h>
16612 #endif
16613
16614 #include <limits.h>"; then :
16615
16616 else
16617 result=unknown
16618 fi
16619
16620 eval gl_cv_bitsizeof_${gltype}=\$result
16621
16622 fi
16623 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16625 $as_echo "$ac_res" >&6; }
16626 eval result=\$gl_cv_bitsizeof_${gltype}
16627 if test $result = unknown; then
16628 result=0
16629 fi
16630 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16631 cat >>confdefs.h <<_ACEOF
16632 #define BITSIZEOF_${GLTYPE} $result
16633 _ACEOF
16634
16635 eval BITSIZEOF_${GLTYPE}=\$result
16636 done
16637
16638
16639
16640
16641 for gltype in sig_atomic_t wchar_t wint_t ; do
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16643 $as_echo_n "checking whether $gltype is signed... " >&6; }
16644 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
16645 $as_echo_n "(cached) " >&6
16646 else
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16649
16650 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16651 included before <wchar.h>. */
16652 #include <stddef.h>
16653 #include <signal.h>
16654 #if HAVE_WCHAR_H
16655 # include <stdio.h>
16656 # include <time.h>
16657 # include <wchar.h>
16658 #endif
16659
16660 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16661 int
16662 main ()
16663 {
16664
16665 ;
16666 return 0;
16667 }
16668 _ACEOF
16669 if ac_fn_c_try_compile "$LINENO"; then :
16670 result=yes
16671 else
16672 result=no
16673 fi
16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16675 eval gl_cv_type_${gltype}_signed=\$result
16676
16677 fi
16678 eval ac_res=\$gl_cv_type_${gltype}_signed
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16680 $as_echo "$ac_res" >&6; }
16681 eval result=\$gl_cv_type_${gltype}_signed
16682 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16683 if test "$result" = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define HAVE_SIGNED_${GLTYPE} 1
16686 _ACEOF
16687
16688 eval HAVE_SIGNED_${GLTYPE}=1
16689 else
16690 eval HAVE_SIGNED_${GLTYPE}=0
16691 fi
16692 done
16693
16694
16695 gl_cv_type_ptrdiff_t_signed=yes
16696 gl_cv_type_size_t_signed=no
16697 if test $APPLE_UNIVERSAL_BUILD = 0; then
16698
16699
16700 for gltype in ptrdiff_t size_t ; do
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16702 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16703 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16704 $as_echo_n "(cached) " >&6
16705 else
16706 eval gl_cv_type_${gltype}_suffix=no
16707 eval result=\$gl_cv_type_${gltype}_signed
16708 if test "$result" = yes; then
16709 glsufu=
16710 else
16711 glsufu=u
16712 fi
16713 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16714 case $glsuf in
16715 '') gltype1='int';;
16716 l) gltype1='long int';;
16717 ll) gltype1='long long int';;
16718 i64) gltype1='__int64';;
16719 u) gltype1='unsigned int';;
16720 ul) gltype1='unsigned long int';;
16721 ull) gltype1='unsigned long long int';;
16722 ui64)gltype1='unsigned __int64';;
16723 esac
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726
16727 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16728 included before <wchar.h>. */
16729 #include <stddef.h>
16730 #include <signal.h>
16731 #if HAVE_WCHAR_H
16732 # include <stdio.h>
16733 # include <time.h>
16734 # include <wchar.h>
16735 #endif
16736
16737 extern $gltype foo;
16738 extern $gltype1 foo;
16739 int
16740 main ()
16741 {
16742
16743 ;
16744 return 0;
16745 }
16746 _ACEOF
16747 if ac_fn_c_try_compile "$LINENO"; then :
16748 eval gl_cv_type_${gltype}_suffix=\$glsuf
16749 fi
16750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16751 eval result=\$gl_cv_type_${gltype}_suffix
16752 test "$result" != no && break
16753 done
16754 fi
16755 eval ac_res=\$gl_cv_type_${gltype}_suffix
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16757 $as_echo "$ac_res" >&6; }
16758 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16759 eval result=\$gl_cv_type_${gltype}_suffix
16760 test "$result" = no && result=
16761 eval ${GLTYPE}_SUFFIX=\$result
16762 cat >>confdefs.h <<_ACEOF
16763 #define ${GLTYPE}_SUFFIX $result
16764 _ACEOF
16765
16766 done
16767
16768
16769 fi
16770
16771
16772 for gltype in sig_atomic_t wchar_t wint_t ; do
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16774 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16775 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16778 eval gl_cv_type_${gltype}_suffix=no
16779 eval result=\$gl_cv_type_${gltype}_signed
16780 if test "$result" = yes; then
16781 glsufu=
16782 else
16783 glsufu=u
16784 fi
16785 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16786 case $glsuf in
16787 '') gltype1='int';;
16788 l) gltype1='long int';;
16789 ll) gltype1='long long int';;
16790 i64) gltype1='__int64';;
16791 u) gltype1='unsigned int';;
16792 ul) gltype1='unsigned long int';;
16793 ull) gltype1='unsigned long long int';;
16794 ui64)gltype1='unsigned __int64';;
16795 esac
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16798
16799 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16800 included before <wchar.h>. */
16801 #include <stddef.h>
16802 #include <signal.h>
16803 #if HAVE_WCHAR_H
16804 # include <stdio.h>
16805 # include <time.h>
16806 # include <wchar.h>
16807 #endif
16808
16809 extern $gltype foo;
16810 extern $gltype1 foo;
16811 int
16812 main ()
16813 {
16814
16815 ;
16816 return 0;
16817 }
16818 _ACEOF
16819 if ac_fn_c_try_compile "$LINENO"; then :
16820 eval gl_cv_type_${gltype}_suffix=\$glsuf
16821 fi
16822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16823 eval result=\$gl_cv_type_${gltype}_suffix
16824 test "$result" != no && break
16825 done
16826 fi
16827 eval ac_res=\$gl_cv_type_${gltype}_suffix
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16829 $as_echo "$ac_res" >&6; }
16830 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16831 eval result=\$gl_cv_type_${gltype}_suffix
16832 test "$result" = no && result=
16833 eval ${GLTYPE}_SUFFIX=\$result
16834 cat >>confdefs.h <<_ACEOF
16835 #define ${GLTYPE}_SUFFIX $result
16836 _ACEOF
16837
16838 done
16839
16840
16841
16842 STDINT_H=stdint.h
16843 fi
16844
16845
16846 # Code from module stdlib:
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857 if test $gl_cv_have_include_next = yes; then
16858 gl_cv_next_stdlib_h='<'stdlib.h'>'
16859 else
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16861 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16862 if ${gl_cv_next_stdlib_h+:} false; then :
16863 $as_echo_n "(cached) " >&6
16864 else
16865
16866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16867 /* end confdefs.h. */
16868 #include <stdlib.h>
16869
16870 _ACEOF
16871 case "$host_os" in
16872 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16873 *) gl_absname_cpp="$ac_cpp" ;;
16874 esac
16875 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16876 sed -n '\#/stdlib.h#{
16877 s#.*"\(.*/stdlib.h\)".*#\1#
16878 s#^/[^/]#//&#
16879 p
16880 q
16881 }'`'"'
16882
16883
16884 fi
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16886 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16887 fi
16888 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16889
16890 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16891 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16892 gl_next_as_first_directive='<'stdlib.h'>'
16893 else
16894 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16895 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16896 fi
16897 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16898
16899
16900
16901
16902
16903
16904
16905 # Code from module strftime:
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
16917
16918
16919 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16920
16921
16922
16923
16924
16925
16926
16927 $as_echo "#define my_strftime nstrftime" >>confdefs.h
16928
16929
16930
16931 # Code from module sys_stat:
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948 if test $gl_cv_have_include_next = yes; then
16949 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16950 else
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16952 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16953 if ${gl_cv_next_sys_stat_h+:} false; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956
16957 if test $ac_cv_header_sys_stat_h = yes; then
16958
16959
16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16961 /* end confdefs.h. */
16962 #include <sys/stat.h>
16963
16964 _ACEOF
16965 case "$host_os" in
16966 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16967 *) gl_absname_cpp="$ac_cpp" ;;
16968 esac
16969 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16970 sed -n '\#/sys/stat.h#{
16971 s#.*"\(.*/sys/stat.h\)".*#\1#
16972 s#^/[^/]#//&#
16973 p
16974 q
16975 }'`'"'
16976 else
16977 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16978 fi
16979
16980
16981 fi
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16983 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16984 fi
16985 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16986
16987 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16989 gl_next_as_first_directive='<'sys/stat.h'>'
16990 else
16991 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16992 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16993 fi
16994 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16995
16996
16997
16998
16999
17000 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17001 #include <sys/stat.h>
17002 "
17003 if test "x$ac_cv_type_nlink_t" = xyes; then :
17004
17005 else
17006
17007 $as_echo "#define nlink_t int" >>confdefs.h
17008
17009 fi
17010
17011
17012
17013
17014
17015 # Code from module time:
17016
17017
17018
17019 # Code from module time_r:
17020
17021
17022
17023
17024
17025
17026
17027 if test $ac_cv_have_decl_localtime_r = no; then
17028 HAVE_DECL_LOCALTIME_R=0
17029 fi
17030
17031
17032 if test $ac_cv_func_localtime_r = yes; then
17033 HAVE_LOCALTIME_R=1
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17035 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
17036 if ${gl_cv_time_r_posix+:} false; then :
17037 $as_echo_n "(cached) " >&6
17038 else
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041 #include <time.h>
17042 int
17043 main ()
17044 {
17045 /* We don't need to append 'restrict's to the argument types,
17046 even though the POSIX signature has the 'restrict's,
17047 since C99 says they can't affect type compatibility. */
17048 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17049 if (ptr) return 0;
17050 /* Check the return type is a pointer.
17051 On HP-UX 10 it is 'int'. */
17052 *localtime_r (0, 0);
17053 ;
17054 return 0;
17055 }
17056
17057 _ACEOF
17058 if ac_fn_c_try_compile "$LINENO"; then :
17059 gl_cv_time_r_posix=yes
17060 else
17061 gl_cv_time_r_posix=no
17062 fi
17063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17064
17065 fi
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17067 $as_echo "$gl_cv_time_r_posix" >&6; }
17068 if test $gl_cv_time_r_posix = yes; then
17069 REPLACE_LOCALTIME_R=0
17070 else
17071 REPLACE_LOCALTIME_R=1
17072 fi
17073 else
17074 HAVE_LOCALTIME_R=0
17075 fi
17076 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
17077
17078
17079
17080
17081
17082
17083
17084
17085 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
17086
17087
17088 :
17089
17090 fi
17091
17092
17093
17094
17095 GNULIB_TIME_R=1
17096
17097
17098
17099 # Code from module unistd:
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113 if test $gl_cv_have_include_next = yes; then
17114 gl_cv_next_unistd_h='<'unistd.h'>'
17115 else
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17117 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17118 if ${gl_cv_next_unistd_h+:} false; then :
17119 $as_echo_n "(cached) " >&6
17120 else
17121
17122 if test $ac_cv_header_unistd_h = yes; then
17123
17124
17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17127 #include <unistd.h>
17128
17129 _ACEOF
17130 case "$host_os" in
17131 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17132 *) gl_absname_cpp="$ac_cpp" ;;
17133 esac
17134 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17135 sed -n '\#/unistd.h#{
17136 s#.*"\(.*/unistd.h\)".*#\1#
17137 s#^/[^/]#//&#
17138 p
17139 q
17140 }'`'"'
17141 else
17142 gl_cv_next_unistd_h='<'unistd.h'>'
17143 fi
17144
17145
17146 fi
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17148 $as_echo "$gl_cv_next_unistd_h" >&6; }
17149 fi
17150 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17151
17152 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17153 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17154 gl_next_as_first_directive='<'unistd.h'>'
17155 else
17156 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17157 gl_next_as_first_directive=$gl_cv_next_unistd_h
17158 fi
17159 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17160
17161
17162
17163
17164 if test $ac_cv_header_unistd_h = yes; then
17165 HAVE_UNISTD_H=1
17166 else
17167 HAVE_UNISTD_H=0
17168 fi
17169
17170
17171
17172
17173 # Code from module warn-on-use:
17174 # End of code from modules
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184 gltests_libdeps=
17185 gltests_ltlibdeps=
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195 gl_source_base='tests'
17196 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
17197
17198 gl_module_indicator_condition=$gltests_WITNESS
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208 LIBGNU_LIBDEPS="$gl_libdeps"
17209
17210 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17211
17212
17213
17214 # UNIX98 PTYs.
17215 for ac_func in grantpt
17216 do :
17217 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
17218 if test "x$ac_cv_func_grantpt" = xyes; then :
17219 cat >>confdefs.h <<_ACEOF
17220 #define HAVE_GRANTPT 1
17221 _ACEOF
17222
17223 fi
17224 done
17225
17226
17227 # PTY-related GNU extensions.
17228 for ac_func in getpt
17229 do :
17230 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
17231 if test "x$ac_cv_func_getpt" = xyes; then :
17232 cat >>confdefs.h <<_ACEOF
17233 #define HAVE_GETPT 1
17234 _ACEOF
17235
17236 fi
17237 done
17238
17239
17240 # Check this now, so that we will NOT find the above functions in ncurses.
17241 # That is because we have not set up to link ncurses in lib-src.
17242 # It's better to believe a function is not available
17243 # than to expect to find it in ncurses.
17244 # Also we need tputs and friends to be able to build at all.
17245 have_tputs_et_al=true
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17247 $as_echo_n "checking for library containing tputs... " >&6; }
17248 if ${ac_cv_search_tputs+:} false; then :
17249 $as_echo_n "(cached) " >&6
17250 else
17251 ac_func_search_save_LIBS=$LIBS
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254
17255 /* Override any GCC internal prototype to avoid an error.
17256 Use char because int might match the return type of a GCC
17257 builtin and then its argument prototype would still apply. */
17258 #ifdef __cplusplus
17259 extern "C"
17260 #endif
17261 char tputs ();
17262 int
17263 main ()
17264 {
17265 return tputs ();
17266 ;
17267 return 0;
17268 }
17269 _ACEOF
17270 for ac_lib in '' ncurses terminfo termcap; do
17271 if test -z "$ac_lib"; then
17272 ac_res="none required"
17273 else
17274 ac_res=-l$ac_lib
17275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17276 fi
17277 if ac_fn_c_try_link "$LINENO"; then :
17278 ac_cv_search_tputs=$ac_res
17279 fi
17280 rm -f core conftest.err conftest.$ac_objext \
17281 conftest$ac_exeext
17282 if ${ac_cv_search_tputs+:} false; then :
17283 break
17284 fi
17285 done
17286 if ${ac_cv_search_tputs+:} false; then :
17287
17288 else
17289 ac_cv_search_tputs=no
17290 fi
17291 rm conftest.$ac_ext
17292 LIBS=$ac_func_search_save_LIBS
17293 fi
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17295 $as_echo "$ac_cv_search_tputs" >&6; }
17296 ac_res=$ac_cv_search_tputs
17297 if test "$ac_res" != no; then :
17298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17299
17300 else
17301 have_tputs_et_al=false
17302 fi
17303
17304 if test "$have_tputs_et_al" != true; then
17305 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
17306 Maybe some development libraries/packages are missing? Try installing
17307 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17308 fi
17309 # Must define this when any termcap library is found.
17310
17311 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17312
17313 ## FIXME This was the cpp logic, but I am not sure it is right.
17314 ## The above test has not necessarily found libncurses.
17315 HAVE_LIBNCURSES=yes
17316
17317 ## Use terminfo instead of termcap?
17318 ## Note only system files NOT using terminfo are:
17319 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17320 ## darwin|gnu without ncurses.
17321 TERMINFO=no
17322 LIBS_TERMCAP=
17323 case "$opsys" in
17324 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17325 ## hpux10-20: Use the system provided termcap(3) library.
17326 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17327 ## is necessary. Otherwise Emacs dumps core when run -nw.
17328 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17329
17330 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17331 ## The ncurses library has been moved out of the System framework in
17332 ## Mac OS X 10.2. So if configure detects it, set the command-line
17333 ## option to use it.
17334 darwin|gnu*)
17335 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17336 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17337 TERMINFO=yes
17338 LIBS_TERMCAP="-lncurses"
17339 fi
17340 ;;
17341
17342 freebsd)
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17344 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17345 if ${emacs_cv_freebsd_terminfo+:} false; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17350 #include <osreldate.h>
17351 int
17352 main ()
17353 {
17354 #if __FreeBSD_version < 400000
17355 fail;
17356 #endif
17357
17358 ;
17359 return 0;
17360 }
17361 _ACEOF
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 emacs_cv_freebsd_terminfo=yes
17364 else
17365 emacs_cv_freebsd_terminfo=no
17366 fi
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17369 fi
17370
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17373 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17374
17375 if test $emacs_cv_freebsd_terminfo = yes; then
17376 TERMINFO=yes
17377 LIBS_TERMCAP="-lncurses"
17378 else
17379 LIBS_TERMCAP="-ltermcap"
17380 fi
17381 ;;
17382
17383 netbsd)
17384 if test $ac_cv_search_tputs = -lterminfo; then
17385 TERMINFO=yes
17386 LIBS_TERMCAP="-lterminfo"
17387 else
17388 LIBS_TERMCAP="-ltermcap"
17389 fi
17390 ;;
17391
17392 esac
17393
17394 case "$opsys" in
17395 ## hpux: Make sure we get select from libc rather than from libcurses
17396 ## because libcurses on HPUX 10.10 has a broken version of select.
17397 ## We used to use -lc -lcurses, but this may be cleaner.
17398 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17399
17400 openbsd) LIBS_TERMCAP="-lncurses" ;;
17401
17402 ## Must use system termcap, if we use any termcap. It does special things.
17403 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17404 esac
17405
17406 TERMCAP_OBJ=tparam.o
17407 if test $TERMINFO = yes; then
17408
17409 $as_echo "#define TERMINFO 1" >>confdefs.h
17410
17411
17412 ## Default used to be -ltermcap. Add a case above if need something else.
17413 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17414
17415 TERMCAP_OBJ=terminfo.o
17416 fi
17417
17418
17419
17420
17421 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17422 resolv=no
17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424 /* end confdefs.h. */
17425 #include <netinet/in.h>
17426 #include <arpa/nameser.h>
17427 #include <resolv.h>
17428 int
17429 main ()
17430 {
17431 return res_init();
17432 ;
17433 return 0;
17434 }
17435 _ACEOF
17436 if ac_fn_c_try_link "$LINENO"; then :
17437 have_res_init=yes
17438 else
17439 have_res_init=no
17440 fi
17441 rm -f core conftest.err conftest.$ac_objext \
17442 conftest$ac_exeext conftest.$ac_ext
17443 if test "$have_res_init" = no; then
17444 OLIBS="$LIBS"
17445 LIBS="$LIBS -lresolv"
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17447 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17450 #include <netinet/in.h>
17451 #include <arpa/nameser.h>
17452 #include <resolv.h>
17453 int
17454 main ()
17455 {
17456 return res_init();
17457 ;
17458 return 0;
17459 }
17460 _ACEOF
17461 if ac_fn_c_try_link "$LINENO"; then :
17462 have_res_init=yes
17463 else
17464 have_res_init=no
17465 fi
17466 rm -f core conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17469 $as_echo "$have_res_init" >&6; }
17470 if test "$have_res_init" = yes ; then
17471 resolv=yes
17472 fi
17473 LIBS="$OLIBS"
17474 fi
17475
17476 if test "$have_res_init" = yes; then
17477
17478 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17479
17480 fi
17481
17482 # Do we need the Hesiod library to provide the support routines?
17483 LIBHESIOD=
17484 if test "$with_hesiod" != no ; then
17485 # Don't set $LIBS here -- see comments above. FIXME which comments?
17486 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
17487 if test "x$ac_cv_func_res_send" = xyes; then :
17488
17489 else
17490 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
17491 if test "x$ac_cv_func___res_send" = xyes; then :
17492
17493 else
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17495 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17496 if ${ac_cv_lib_resolv_res_send+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498 else
17499 ac_check_lib_save_LIBS=$LIBS
17500 LIBS="-lresolv $LIBS"
17501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502 /* end confdefs.h. */
17503
17504 /* Override any GCC internal prototype to avoid an error.
17505 Use char because int might match the return type of a GCC
17506 builtin and then its argument prototype would still apply. */
17507 #ifdef __cplusplus
17508 extern "C"
17509 #endif
17510 char res_send ();
17511 int
17512 main ()
17513 {
17514 return res_send ();
17515 ;
17516 return 0;
17517 }
17518 _ACEOF
17519 if ac_fn_c_try_link "$LINENO"; then :
17520 ac_cv_lib_resolv_res_send=yes
17521 else
17522 ac_cv_lib_resolv_res_send=no
17523 fi
17524 rm -f core conftest.err conftest.$ac_objext \
17525 conftest$ac_exeext conftest.$ac_ext
17526 LIBS=$ac_check_lib_save_LIBS
17527 fi
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17529 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17530 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
17531 resolv=yes
17532 else
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17534 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17535 if ${ac_cv_lib_resolv___res_send+:} false; then :
17536 $as_echo_n "(cached) " >&6
17537 else
17538 ac_check_lib_save_LIBS=$LIBS
17539 LIBS="-lresolv $LIBS"
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h. */
17542
17543 /* Override any GCC internal prototype to avoid an error.
17544 Use char because int might match the return type of a GCC
17545 builtin and then its argument prototype would still apply. */
17546 #ifdef __cplusplus
17547 extern "C"
17548 #endif
17549 char __res_send ();
17550 int
17551 main ()
17552 {
17553 return __res_send ();
17554 ;
17555 return 0;
17556 }
17557 _ACEOF
17558 if ac_fn_c_try_link "$LINENO"; then :
17559 ac_cv_lib_resolv___res_send=yes
17560 else
17561 ac_cv_lib_resolv___res_send=no
17562 fi
17563 rm -f core conftest.err conftest.$ac_objext \
17564 conftest$ac_exeext conftest.$ac_ext
17565 LIBS=$ac_check_lib_save_LIBS
17566 fi
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17568 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
17569 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
17570 resolv=yes
17571 fi
17572
17573 fi
17574
17575 fi
17576
17577 fi
17578
17579 if test "$resolv" = yes ; then
17580 RESOLVLIB=-lresolv
17581 else
17582 RESOLVLIB=
17583 fi
17584 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
17585 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
17586
17587 else
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17589 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
17590 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
17591 $as_echo_n "(cached) " >&6
17592 else
17593 ac_check_lib_save_LIBS=$LIBS
17594 LIBS="-lhesiod $RESOLVLIB $LIBS"
17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h. */
17597
17598 /* Override any GCC internal prototype to avoid an error.
17599 Use char because int might match the return type of a GCC
17600 builtin and then its argument prototype would still apply. */
17601 #ifdef __cplusplus
17602 extern "C"
17603 #endif
17604 char hes_getmailhost ();
17605 int
17606 main ()
17607 {
17608 return hes_getmailhost ();
17609 ;
17610 return 0;
17611 }
17612 _ACEOF
17613 if ac_fn_c_try_link "$LINENO"; then :
17614 ac_cv_lib_hesiod_hes_getmailhost=yes
17615 else
17616 ac_cv_lib_hesiod_hes_getmailhost=no
17617 fi
17618 rm -f core conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
17620 LIBS=$ac_check_lib_save_LIBS
17621 fi
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17623 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
17624 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
17625 hesiod=yes
17626 else
17627 :
17628 fi
17629
17630 fi
17631
17632
17633 if test x"$hesiod" = xyes; then
17634
17635 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17636
17637 LIBHESIOD=-lhesiod
17638 fi
17639 fi
17640
17641
17642 # Do we need libresolv (due to res_init or Hesiod)?
17643 if test "$resolv" = yes ; then
17644
17645 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17646
17647 LIBRESOLV=-lresolv
17648 else
17649 LIBRESOLV=
17650 fi
17651
17652
17653 # These tell us which Kerberos-related libraries to use.
17654 COM_ERRLIB=
17655 CRYPTOLIB=
17656 KRB5LIB=
17657 DESLIB=
17658 KRB4LIB=
17659
17660 if test "${with_kerberos}" != no; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17662 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
17663 if ${ac_cv_lib_com_err_com_err+:} false; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 ac_check_lib_save_LIBS=$LIBS
17667 LIBS="-lcom_err $LIBS"
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669 /* end confdefs.h. */
17670
17671 /* Override any GCC internal prototype to avoid an error.
17672 Use char because int might match the return type of a GCC
17673 builtin and then its argument prototype would still apply. */
17674 #ifdef __cplusplus
17675 extern "C"
17676 #endif
17677 char com_err ();
17678 int
17679 main ()
17680 {
17681 return com_err ();
17682 ;
17683 return 0;
17684 }
17685 _ACEOF
17686 if ac_fn_c_try_link "$LINENO"; then :
17687 ac_cv_lib_com_err_com_err=yes
17688 else
17689 ac_cv_lib_com_err_com_err=no
17690 fi
17691 rm -f core conftest.err conftest.$ac_objext \
17692 conftest$ac_exeext conftest.$ac_ext
17693 LIBS=$ac_check_lib_save_LIBS
17694 fi
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17696 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
17697 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
17698 have_com_err=yes
17699 else
17700 have_com_err=no
17701 fi
17702
17703 if test $have_com_err = yes; then
17704 COM_ERRLIB=-lcom_err
17705 LIBS="$COM_ERRLIB $LIBS"
17706
17707 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17708
17709 fi
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17711 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
17712 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
17713 $as_echo_n "(cached) " >&6
17714 else
17715 ac_check_lib_save_LIBS=$LIBS
17716 LIBS="-lcrypto $LIBS"
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719
17720 /* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 char mit_des_cbc_encrypt ();
17727 int
17728 main ()
17729 {
17730 return mit_des_cbc_encrypt ();
17731 ;
17732 return 0;
17733 }
17734 _ACEOF
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17737 else
17738 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17739 fi
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17743 fi
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17745 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
17746 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
17747 have_crypto=yes
17748 else
17749 have_crypto=no
17750 fi
17751
17752 if test $have_crypto = yes; then
17753 CRYPTOLIB=-lcrypto
17754 LIBS="$CRYPTOLIB $LIBS"
17755
17756 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17757
17758 fi
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17760 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
17761 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17764 ac_check_lib_save_LIBS=$LIBS
17765 LIBS="-lk5crypto $LIBS"
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17768
17769 /* Override any GCC internal prototype to avoid an error.
17770 Use char because int might match the return type of a GCC
17771 builtin and then its argument prototype would still apply. */
17772 #ifdef __cplusplus
17773 extern "C"
17774 #endif
17775 char mit_des_cbc_encrypt ();
17776 int
17777 main ()
17778 {
17779 return mit_des_cbc_encrypt ();
17780 ;
17781 return 0;
17782 }
17783 _ACEOF
17784 if ac_fn_c_try_link "$LINENO"; then :
17785 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17786 else
17787 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17788 fi
17789 rm -f core conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
17791 LIBS=$ac_check_lib_save_LIBS
17792 fi
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17794 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
17795 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
17796 have_k5crypto=yes
17797 else
17798 have_k5crypto=no
17799 fi
17800
17801 if test $have_k5crypto = yes; then
17802 CRYPTOLIB=-lk5crypto
17803 LIBS="$CRYPTOLIB $LIBS"
17804
17805 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17806
17807 fi
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17809 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17810 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
17811 $as_echo_n "(cached) " >&6
17812 else
17813 ac_check_lib_save_LIBS=$LIBS
17814 LIBS="-lkrb5 $LIBS"
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817
17818 /* Override any GCC internal prototype to avoid an error.
17819 Use char because int might match the return type of a GCC
17820 builtin and then its argument prototype would still apply. */
17821 #ifdef __cplusplus
17822 extern "C"
17823 #endif
17824 char krb5_init_context ();
17825 int
17826 main ()
17827 {
17828 return krb5_init_context ();
17829 ;
17830 return 0;
17831 }
17832 _ACEOF
17833 if ac_fn_c_try_link "$LINENO"; then :
17834 ac_cv_lib_krb5_krb5_init_context=yes
17835 else
17836 ac_cv_lib_krb5_krb5_init_context=no
17837 fi
17838 rm -f core conftest.err conftest.$ac_objext \
17839 conftest$ac_exeext conftest.$ac_ext
17840 LIBS=$ac_check_lib_save_LIBS
17841 fi
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17843 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17844 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
17845 have_krb5=yes
17846 else
17847 have_krb5=no
17848 fi
17849
17850 if test $have_krb5=yes; then
17851 KRB5LIB=-lkrb5
17852 LIBS="$KRB5LIB $LIBS"
17853
17854 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17855
17856 fi
17857 if test "${with_kerberos5}" = no; then
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17859 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17860 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
17861 $as_echo_n "(cached) " >&6
17862 else
17863 ac_check_lib_save_LIBS=$LIBS
17864 LIBS="-ldes425 $LIBS"
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867
17868 /* Override any GCC internal prototype to avoid an error.
17869 Use char because int might match the return type of a GCC
17870 builtin and then its argument prototype would still apply. */
17871 #ifdef __cplusplus
17872 extern "C"
17873 #endif
17874 char des_cbc_encrypt ();
17875 int
17876 main ()
17877 {
17878 return des_cbc_encrypt ();
17879 ;
17880 return 0;
17881 }
17882 _ACEOF
17883 if ac_fn_c_try_link "$LINENO"; then :
17884 ac_cv_lib_des425_des_cbc_encrypt=yes
17885 else
17886 ac_cv_lib_des425_des_cbc_encrypt=no
17887 fi
17888 rm -f core conftest.err conftest.$ac_objext \
17889 conftest$ac_exeext conftest.$ac_ext
17890 LIBS=$ac_check_lib_save_LIBS
17891 fi
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17893 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17894 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
17895 have_des425=yes
17896 else
17897 have_des425=no
17898 fi
17899
17900 if test $have_des425 = yes; then
17901 DESLIB=-ldes425
17902 LIBS="$DESLIB $LIBS"
17903
17904 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17905
17906 else
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17908 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17909 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 ac_check_lib_save_LIBS=$LIBS
17913 LIBS="-ldes $LIBS"
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17916
17917 /* Override any GCC internal prototype to avoid an error.
17918 Use char because int might match the return type of a GCC
17919 builtin and then its argument prototype would still apply. */
17920 #ifdef __cplusplus
17921 extern "C"
17922 #endif
17923 char des_cbc_encrypt ();
17924 int
17925 main ()
17926 {
17927 return des_cbc_encrypt ();
17928 ;
17929 return 0;
17930 }
17931 _ACEOF
17932 if ac_fn_c_try_link "$LINENO"; then :
17933 ac_cv_lib_des_des_cbc_encrypt=yes
17934 else
17935 ac_cv_lib_des_des_cbc_encrypt=no
17936 fi
17937 rm -f core conftest.err conftest.$ac_objext \
17938 conftest$ac_exeext conftest.$ac_ext
17939 LIBS=$ac_check_lib_save_LIBS
17940 fi
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17942 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17943 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
17944 have_des=yes
17945 else
17946 have_des=no
17947 fi
17948
17949 if test $have_des = yes; then
17950 DESLIB=-ldes
17951 LIBS="$DESLIB $LIBS"
17952
17953 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17954
17955 fi
17956 fi
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17958 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
17959 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
17960 $as_echo_n "(cached) " >&6
17961 else
17962 ac_check_lib_save_LIBS=$LIBS
17963 LIBS="-lkrb4 $LIBS"
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17966
17967 /* Override any GCC internal prototype to avoid an error.
17968 Use char because int might match the return type of a GCC
17969 builtin and then its argument prototype would still apply. */
17970 #ifdef __cplusplus
17971 extern "C"
17972 #endif
17973 char krb_get_cred ();
17974 int
17975 main ()
17976 {
17977 return krb_get_cred ();
17978 ;
17979 return 0;
17980 }
17981 _ACEOF
17982 if ac_fn_c_try_link "$LINENO"; then :
17983 ac_cv_lib_krb4_krb_get_cred=yes
17984 else
17985 ac_cv_lib_krb4_krb_get_cred=no
17986 fi
17987 rm -f core conftest.err conftest.$ac_objext \
17988 conftest$ac_exeext conftest.$ac_ext
17989 LIBS=$ac_check_lib_save_LIBS
17990 fi
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17992 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
17993 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
17994 have_krb4=yes
17995 else
17996 have_krb4=no
17997 fi
17998
17999 if test $have_krb4 = yes; then
18000 KRB4LIB=-lkrb4
18001 LIBS="$KRB4LIB $LIBS"
18002
18003 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18004
18005 else
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18007 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
18008 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
18009 $as_echo_n "(cached) " >&6
18010 else
18011 ac_check_lib_save_LIBS=$LIBS
18012 LIBS="-lkrb $LIBS"
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18015
18016 /* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18019 #ifdef __cplusplus
18020 extern "C"
18021 #endif
18022 char krb_get_cred ();
18023 int
18024 main ()
18025 {
18026 return krb_get_cred ();
18027 ;
18028 return 0;
18029 }
18030 _ACEOF
18031 if ac_fn_c_try_link "$LINENO"; then :
18032 ac_cv_lib_krb_krb_get_cred=yes
18033 else
18034 ac_cv_lib_krb_krb_get_cred=no
18035 fi
18036 rm -f core conftest.err conftest.$ac_objext \
18037 conftest$ac_exeext conftest.$ac_ext
18038 LIBS=$ac_check_lib_save_LIBS
18039 fi
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18041 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
18042 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
18043 have_krb=yes
18044 else
18045 have_krb=no
18046 fi
18047
18048 if test $have_krb = yes; then
18049 KRB4LIB=-lkrb
18050 LIBS="$KRB4LIB $LIBS"
18051
18052 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18053
18054 fi
18055 fi
18056 fi
18057
18058 if test "${with_kerberos5}" != no; then
18059 for ac_header in krb5.h
18060 do :
18061 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
18062 if test "x$ac_cv_header_krb5_h" = xyes; then :
18063 cat >>confdefs.h <<_ACEOF
18064 #define HAVE_KRB5_H 1
18065 _ACEOF
18066 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18067 "
18068 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
18069
18070 cat >>confdefs.h <<_ACEOF
18071 #define HAVE_KRB5_ERROR_TEXT 1
18072 _ACEOF
18073
18074
18075 fi
18076 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18077 "
18078 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
18079
18080 cat >>confdefs.h <<_ACEOF
18081 #define HAVE_KRB5_ERROR_E_TEXT 1
18082 _ACEOF
18083
18084
18085 fi
18086
18087 fi
18088
18089 done
18090
18091 else
18092 for ac_header in des.h
18093 do :
18094 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18095 if test "x$ac_cv_header_des_h" = xyes; then :
18096 cat >>confdefs.h <<_ACEOF
18097 #define HAVE_DES_H 1
18098 _ACEOF
18099
18100 else
18101 for ac_header in kerberosIV/des.h
18102 do :
18103 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
18104 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
18105 cat >>confdefs.h <<_ACEOF
18106 #define HAVE_KERBEROSIV_DES_H 1
18107 _ACEOF
18108
18109 else
18110 for ac_header in kerberos/des.h
18111 do :
18112 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
18113 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
18114 cat >>confdefs.h <<_ACEOF
18115 #define HAVE_KERBEROS_DES_H 1
18116 _ACEOF
18117
18118 fi
18119
18120 done
18121
18122 fi
18123
18124 done
18125
18126 fi
18127
18128 done
18129
18130 for ac_header in krb.h
18131 do :
18132 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18133 if test "x$ac_cv_header_krb_h" = xyes; then :
18134 cat >>confdefs.h <<_ACEOF
18135 #define HAVE_KRB_H 1
18136 _ACEOF
18137
18138 else
18139 for ac_header in kerberosIV/krb.h
18140 do :
18141 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
18142 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
18143 cat >>confdefs.h <<_ACEOF
18144 #define HAVE_KERBEROSIV_KRB_H 1
18145 _ACEOF
18146
18147 else
18148 for ac_header in kerberos/krb.h
18149 do :
18150 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
18151 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
18152 cat >>confdefs.h <<_ACEOF
18153 #define HAVE_KERBEROS_KRB_H 1
18154 _ACEOF
18155
18156 fi
18157
18158 done
18159
18160 fi
18161
18162 done
18163
18164 fi
18165
18166 done
18167
18168 fi
18169 for ac_header in com_err.h
18170 do :
18171 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
18172 if test "x$ac_cv_header_com_err_h" = xyes; then :
18173 cat >>confdefs.h <<_ACEOF
18174 #define HAVE_COM_ERR_H 1
18175 _ACEOF
18176
18177 fi
18178
18179 done
18180
18181 fi
18182
18183
18184
18185
18186
18187
18188
18189 # Solaris requires -lintl if you want strerror (which calls dgettext)
18190 # to return localized messages.
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18192 $as_echo_n "checking for dgettext in -lintl... " >&6; }
18193 if ${ac_cv_lib_intl_dgettext+:} false; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18196 ac_check_lib_save_LIBS=$LIBS
18197 LIBS="-lintl $LIBS"
18198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18200
18201 /* Override any GCC internal prototype to avoid an error.
18202 Use char because int might match the return type of a GCC
18203 builtin and then its argument prototype would still apply. */
18204 #ifdef __cplusplus
18205 extern "C"
18206 #endif
18207 char dgettext ();
18208 int
18209 main ()
18210 {
18211 return dgettext ();
18212 ;
18213 return 0;
18214 }
18215 _ACEOF
18216 if ac_fn_c_try_link "$LINENO"; then :
18217 ac_cv_lib_intl_dgettext=yes
18218 else
18219 ac_cv_lib_intl_dgettext=no
18220 fi
18221 rm -f core conftest.err conftest.$ac_objext \
18222 conftest$ac_exeext conftest.$ac_ext
18223 LIBS=$ac_check_lib_save_LIBS
18224 fi
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18226 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
18227 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
18228 cat >>confdefs.h <<_ACEOF
18229 #define HAVE_LIBINTL 1
18230 _ACEOF
18231
18232 LIBS="-lintl $LIBS"
18233
18234 fi
18235
18236
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18238 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18239 if ${emacs_cv_localtime_cache+:} false; then :
18240 $as_echo_n "(cached) " >&6
18241 else
18242 if test x$ac_cv_func_tzset = xyes; then
18243 if test "$cross_compiling" = yes; then :
18244 # If we have tzset, assume the worst when cross-compiling.
18245 emacs_cv_localtime_cache=yes
18246 else
18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248 /* end confdefs.h. */
18249 #include <time.h>
18250 char TZ_GMT0[] = "TZ=GMT0";
18251 char TZ_PST8[] = "TZ=PST8";
18252 main()
18253 {
18254 time_t now = time ((time_t *) 0);
18255 int hour_GMT0, hour_unset;
18256 if (putenv (TZ_GMT0) != 0)
18257 exit (1);
18258 hour_GMT0 = localtime (&now)->tm_hour;
18259 unsetenv("TZ");
18260 hour_unset = localtime (&now)->tm_hour;
18261 if (putenv (TZ_PST8) != 0)
18262 exit (1);
18263 if (localtime (&now)->tm_hour == hour_GMT0)
18264 exit (1);
18265 unsetenv("TZ");
18266 if (localtime (&now)->tm_hour != hour_unset)
18267 exit (1);
18268 exit (0);
18269 }
18270 _ACEOF
18271 if ac_fn_c_try_run "$LINENO"; then :
18272 emacs_cv_localtime_cache=no
18273 else
18274 emacs_cv_localtime_cache=yes
18275 fi
18276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18277 conftest.$ac_objext conftest.beam conftest.$ac_ext
18278 fi
18279
18280 else
18281 # If we lack tzset, report that localtime does not cache TZ,
18282 # since we can't invalidate the cache if we don't have tzset.
18283 emacs_cv_localtime_cache=no
18284 fi
18285 fi
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18287 $as_echo "$emacs_cv_localtime_cache" >&6; }
18288 if test $emacs_cv_localtime_cache = yes; then
18289
18290 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18291
18292 fi
18293
18294 if test "x$HAVE_TIMEVAL" = xyes; then
18295 for ac_func in gettimeofday
18296 do :
18297 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18298 if test "x$ac_cv_func_gettimeofday" = xyes; then :
18299 cat >>confdefs.h <<_ACEOF
18300 #define HAVE_GETTIMEOFDAY 1
18301 _ACEOF
18302
18303 fi
18304 done
18305
18306 if test $ac_cv_func_gettimeofday = yes; then
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18308 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18309 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
18310 $as_echo_n "(cached) " >&6
18311 else
18312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313 /* end confdefs.h. */
18314
18315 #ifdef TIME_WITH_SYS_TIME
18316 #include <sys/time.h>
18317 #include <time.h>
18318 #else
18319 #ifdef HAVE_SYS_TIME_H
18320 #include <sys/time.h>
18321 #else
18322 #include <time.h>
18323 #endif
18324 #endif
18325 int
18326 main ()
18327 {
18328 struct timeval time;
18329 gettimeofday (&time, 0);
18330 ;
18331 return 0;
18332 }
18333 _ACEOF
18334 if ac_fn_c_try_compile "$LINENO"; then :
18335 emacs_cv_gettimeofday_two_arguments=yes
18336 else
18337 emacs_cv_gettimeofday_two_arguments=no
18338 fi
18339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18340 fi
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18342 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18343 if test $emacs_cv_gettimeofday_two_arguments = no; then
18344
18345 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18346
18347 fi
18348 fi
18349 fi
18350
18351 ok_so_far=yes
18352 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
18353 if test "x$ac_cv_func_socket" = xyes; then :
18354
18355 else
18356 ok_so_far=no
18357 fi
18358
18359 if test $ok_so_far = yes; then
18360 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18361 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
18362
18363 else
18364 ok_so_far=no
18365 fi
18366
18367
18368 fi
18369 if test $ok_so_far = yes; then
18370 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18371 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
18372
18373 else
18374 ok_so_far=no
18375 fi
18376
18377
18378 fi
18379 if test $ok_so_far = yes; then
18380
18381 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18382
18383 fi
18384
18385 if test -f /usr/lpp/X11/bin/smt.exp; then
18386
18387 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18388
18389 fi
18390
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18392 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18393 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18395 $as_echo "yes" >&6; }
18396
18397 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18398
18399 else
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18401 $as_echo "no" >&6; }
18402 fi
18403
18404 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18405 if test "x$ac_cv_type_pid_t" = xyes; then :
18406
18407 else
18408
18409 cat >>confdefs.h <<_ACEOF
18410 #define pid_t int
18411 _ACEOF
18412
18413 fi
18414
18415 for ac_header in vfork.h
18416 do :
18417 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18418 if test "x$ac_cv_header_vfork_h" = xyes; then :
18419 cat >>confdefs.h <<_ACEOF
18420 #define HAVE_VFORK_H 1
18421 _ACEOF
18422
18423 fi
18424
18425 done
18426
18427 for ac_func in fork vfork
18428 do :
18429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18432 cat >>confdefs.h <<_ACEOF
18433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18434 _ACEOF
18435
18436 fi
18437 done
18438
18439 if test "x$ac_cv_func_fork" = xyes; then
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18441 $as_echo_n "checking for working fork... " >&6; }
18442 if ${ac_cv_func_fork_works+:} false; then :
18443 $as_echo_n "(cached) " >&6
18444 else
18445 if test "$cross_compiling" = yes; then :
18446 ac_cv_func_fork_works=cross
18447 else
18448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18449 /* end confdefs.h. */
18450 $ac_includes_default
18451 int
18452 main ()
18453 {
18454
18455 /* By Ruediger Kuhlmann. */
18456 return fork () < 0;
18457
18458 ;
18459 return 0;
18460 }
18461 _ACEOF
18462 if ac_fn_c_try_run "$LINENO"; then :
18463 ac_cv_func_fork_works=yes
18464 else
18465 ac_cv_func_fork_works=no
18466 fi
18467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18468 conftest.$ac_objext conftest.beam conftest.$ac_ext
18469 fi
18470
18471 fi
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18473 $as_echo "$ac_cv_func_fork_works" >&6; }
18474
18475 else
18476 ac_cv_func_fork_works=$ac_cv_func_fork
18477 fi
18478 if test "x$ac_cv_func_fork_works" = xcross; then
18479 case $host in
18480 *-*-amigaos* | *-*-msdosdjgpp*)
18481 # Override, as these systems have only a dummy fork() stub
18482 ac_cv_func_fork_works=no
18483 ;;
18484 *)
18485 ac_cv_func_fork_works=yes
18486 ;;
18487 esac
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18489 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18490 fi
18491 ac_cv_func_vfork_works=$ac_cv_func_vfork
18492 if test "x$ac_cv_func_vfork" = xyes; then
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18494 $as_echo_n "checking for working vfork... " >&6; }
18495 if ${ac_cv_func_vfork_works+:} false; then :
18496 $as_echo_n "(cached) " >&6
18497 else
18498 if test "$cross_compiling" = yes; then :
18499 ac_cv_func_vfork_works=cross
18500 else
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18503 /* Thanks to Paul Eggert for this test. */
18504 $ac_includes_default
18505 #include <sys/wait.h>
18506 #ifdef HAVE_VFORK_H
18507 # include <vfork.h>
18508 #endif
18509 /* On some sparc systems, changes by the child to local and incoming
18510 argument registers are propagated back to the parent. The compiler
18511 is told about this with #include <vfork.h>, but some compilers
18512 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18513 static variable whose address is put into a register that is
18514 clobbered by the vfork. */
18515 static void
18516 #ifdef __cplusplus
18517 sparc_address_test (int arg)
18518 # else
18519 sparc_address_test (arg) int arg;
18520 #endif
18521 {
18522 static pid_t child;
18523 if (!child) {
18524 child = vfork ();
18525 if (child < 0) {
18526 perror ("vfork");
18527 _exit(2);
18528 }
18529 if (!child) {
18530 arg = getpid();
18531 write(-1, "", 0);
18532 _exit (arg);
18533 }
18534 }
18535 }
18536
18537 int
18538 main ()
18539 {
18540 pid_t parent = getpid ();
18541 pid_t child;
18542
18543 sparc_address_test (0);
18544
18545 child = vfork ();
18546
18547 if (child == 0) {
18548 /* Here is another test for sparc vfork register problems. This
18549 test uses lots of local variables, at least as many local
18550 variables as main has allocated so far including compiler
18551 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18552 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18553 reuse the register of parent for one of the local variables,
18554 since it will think that parent can't possibly be used any more
18555 in this routine. Assigning to the local variable will thus
18556 munge parent in the parent process. */
18557 pid_t
18558 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18559 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18560 /* Convince the compiler that p..p7 are live; otherwise, it might
18561 use the same hardware register for all 8 local variables. */
18562 if (p != p1 || p != p2 || p != p3 || p != p4
18563 || p != p5 || p != p6 || p != p7)
18564 _exit(1);
18565
18566 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18567 from child file descriptors. If the child closes a descriptor
18568 before it execs or exits, this munges the parent's descriptor
18569 as well. Test for this by closing stdout in the child. */
18570 _exit(close(fileno(stdout)) != 0);
18571 } else {
18572 int status;
18573 struct stat st;
18574
18575 while (wait(&status) != child)
18576 ;
18577 return (
18578 /* Was there some problem with vforking? */
18579 child < 0
18580
18581 /* Did the child fail? (This shouldn't happen.) */
18582 || status
18583
18584 /* Did the vfork/compiler bug occur? */
18585 || parent != getpid()
18586
18587 /* Did the file descriptor bug occur? */
18588 || fstat(fileno(stdout), &st) != 0
18589 );
18590 }
18591 }
18592 _ACEOF
18593 if ac_fn_c_try_run "$LINENO"; then :
18594 ac_cv_func_vfork_works=yes
18595 else
18596 ac_cv_func_vfork_works=no
18597 fi
18598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18599 conftest.$ac_objext conftest.beam conftest.$ac_ext
18600 fi
18601
18602 fi
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18604 $as_echo "$ac_cv_func_vfork_works" >&6; }
18605
18606 fi;
18607 if test "x$ac_cv_func_fork_works" = xcross; then
18608 ac_cv_func_vfork_works=$ac_cv_func_vfork
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18610 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18611 fi
18612
18613 if test "x$ac_cv_func_vfork_works" = xyes; then
18614
18615 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18616
18617 else
18618
18619 $as_echo "#define vfork fork" >>confdefs.h
18620
18621 fi
18622 if test "x$ac_cv_func_fork_works" = xyes; then
18623
18624 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18625
18626 fi
18627
18628
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18630 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18631 if ${emacs_cv_langinfo_codeset+:} false; then :
18632 $as_echo_n "(cached) " >&6
18633 else
18634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h. */
18636 #include <langinfo.h>
18637 int
18638 main ()
18639 {
18640 char* cs = nl_langinfo(CODESET);
18641 ;
18642 return 0;
18643 }
18644 _ACEOF
18645 if ac_fn_c_try_link "$LINENO"; then :
18646 emacs_cv_langinfo_codeset=yes
18647 else
18648 emacs_cv_langinfo_codeset=no
18649 fi
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652
18653 fi
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18655 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
18656 if test $emacs_cv_langinfo_codeset = yes; then
18657
18658 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18659
18660 fi
18661
18662 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18663 if test "x$ac_cv_type_size_t" = xyes; then :
18664
18665 cat >>confdefs.h <<_ACEOF
18666 #define HAVE_SIZE_T 1
18667 _ACEOF
18668
18669
18670 fi
18671
18672
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18674 $as_echo_n "checking for mbstate_t... " >&6; }
18675 if ${ac_cv_type_mbstate_t+:} false; then :
18676 $as_echo_n "(cached) " >&6
18677 else
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18680 $ac_includes_default
18681 # include <wchar.h>
18682 int
18683 main ()
18684 {
18685 mbstate_t x; return sizeof x;
18686 ;
18687 return 0;
18688 }
18689 _ACEOF
18690 if ac_fn_c_try_compile "$LINENO"; then :
18691 ac_cv_type_mbstate_t=yes
18692 else
18693 ac_cv_type_mbstate_t=no
18694 fi
18695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18696 fi
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18698 $as_echo "$ac_cv_type_mbstate_t" >&6; }
18699 if test $ac_cv_type_mbstate_t = yes; then
18700
18701 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18702
18703 else
18704
18705 $as_echo "#define mbstate_t int" >>confdefs.h
18706
18707 fi
18708
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18710 $as_echo_n "checking for C restricted array declarations... " >&6; }
18711 if ${emacs_cv_c_restrict_arr+:} false; then :
18712 $as_echo_n "(cached) " >&6
18713 else
18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18716 void fred (int x[__restrict]);
18717 int
18718 main ()
18719 {
18720
18721 ;
18722 return 0;
18723 }
18724 _ACEOF
18725 if ac_fn_c_try_compile "$LINENO"; then :
18726 emacs_cv_c_restrict_arr=yes
18727 else
18728 emacs_cv_c_restrict_arr=no
18729 fi
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731 fi
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18733 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
18734 if test "$emacs_cv_c_restrict_arr" = yes; then
18735
18736 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
18737
18738 fi
18739
18740
18741
18742 # Set up the CFLAGS for real compilation, so we can substitute it.
18743 CFLAGS="$REAL_CFLAGS"
18744 CPPFLAGS="$REAL_CPPFLAGS"
18745
18746 ## Hack to detect a buggy GCC version.
18747 if test "x$GCC" = xyes \
18748 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18749 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
18750 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
18751 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
18752 fi
18753
18754 version=$PACKAGE_VERSION
18755
18756 ### Specify what sort of things we'll be editing into Makefile and config.h.
18757 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18758
18759
18760 ## Unused?
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18782 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18783 ## end of LIBX_BASE, but nothing ever set it.
18784
18785
18786
18787
18788 ## Used in lwlib/Makefile.in.
18789
18790 if test -n "${machfile}"; then
18791 M_FILE="\$(srcdir)/${machfile}"
18792 else
18793 M_FILE=
18794 fi
18795 S_FILE="\$(srcdir)/${opsysfile}"
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806 cat >>confdefs.h <<_ACEOF
18807 #define EMACS_CONFIGURATION "${canonical}"
18808 _ACEOF
18809
18810
18811 cat >>confdefs.h <<_ACEOF
18812 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18813 _ACEOF
18814
18815 if test -n "$machfile"; then
18816
18817 cat >>confdefs.h <<_ACEOF
18818 #define config_machfile "${machfile}"
18819 _ACEOF
18820
18821 fi
18822
18823 cat >>confdefs.h <<_ACEOF
18824 #define config_opsysfile "${opsysfile}"
18825 _ACEOF
18826
18827
18828 XMENU_OBJ=
18829 XOBJ=
18830 FONT_OBJ=
18831 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18832
18833 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18834
18835 XMENU_OBJ=xmenu.o
18836 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18837 FONT_OBJ=xfont.o
18838 if test "$HAVE_XFT" = "yes"; then
18839 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18840 elif test "$HAVE_FREETYPE" = "yes"; then
18841 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
18842 fi
18843
18844 fi
18845
18846
18847
18848
18849 WIDGET_OBJ=
18850 MOTIF_LIBW=
18851 if test "${USE_X_TOOLKIT}" != "none" ; then
18852 WIDGET_OBJ=widget.o
18853
18854 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18855
18856 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18857
18858 $as_echo "#define USE_LUCID 1" >>confdefs.h
18859
18860 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18861
18862 $as_echo "#define USE_MOTIF 1" >>confdefs.h
18863
18864 MOTIF_LIBW=-lXm
18865 case "$opsys" in
18866 gnu-linux)
18867 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18868 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
18869 ;;
18870
18871 unixware)
18872 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18873 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18874 MOTIF_LIBW="MOTIF_LIBW -lXimp"
18875 ;;
18876
18877 aix4-2)
18878 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18879 MOTIF_LIBW="$MOTIF_LIBW -li18n"
18880 ;;
18881 esac
18882 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
18883 fi
18884 fi
18885
18886
18887 TOOLKIT_LIBW=
18888 case "$USE_X_TOOLKIT" in
18889 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
18890 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
18891 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
18892 esac
18893
18894
18895 if test "$USE_X_TOOLKIT" = "none"; then
18896 LIBXT_OTHER="\$(LIBXSM)"
18897 OLDXMENU_TARGET="really-oldXMenu"
18898 else
18899 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18900 OLDXMENU_TARGET="really-lwlib"
18901 fi
18902
18903
18904 ## The X Menu stuff is present in the X10 distribution, but missing
18905 ## from X11. If we have X10, just use the installed library;
18906 ## otherwise, use our own copy.
18907 if test "${HAVE_X11}" = "yes" ; then
18908
18909 $as_echo "#define HAVE_X11 1" >>confdefs.h
18910
18911
18912 if test "$USE_X_TOOLKIT" = "none"; then
18913 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
18914 else
18915 OLDXMENU="\${lwlibdir}/liblw.a"
18916 fi
18917 LIBXMENU="\$(OLDXMENU)"
18918 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
18919 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
18920 else
18921 ## For a syntactically valid Makefile; not actually used for anything.
18922 ## See comments in src/Makefile.in.
18923 OLDXMENU=nothing
18924 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18925 if test "${HAVE_X_WINDOWS}" = "yes"; then
18926 LIBXMENU="-lXMenu"
18927 else
18928 LIBXMENU=
18929 fi
18930 LIBX_OTHER=
18931 OLDXMENU_DEPS=
18932 fi
18933
18934 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
18935 OLDXMENU_TARGET=
18936 OLDXMENU=nothing
18937 LIBXMENU=
18938 OLDXMENU_DEPS=
18939 fi
18940
18941
18942
18943
18944
18945
18946
18947 if test "${HAVE_MENUS}" = "yes" ; then
18948
18949 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
18950
18951 fi
18952
18953 if test "${GNU_MALLOC}" = "yes" ; then
18954
18955 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
18956
18957 fi
18958
18959 RALLOC_OBJ=
18960 if test "${REL_ALLOC}" = "yes" ; then
18961
18962 $as_echo "#define REL_ALLOC 1" >>confdefs.h
18963
18964
18965 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
18966 fi
18967
18968
18969 if test "$opsys" = "cygwin"; then
18970 CYGWIN_OBJ="sheap.o"
18971 ## Cygwin differs because of its unexec().
18972 PRE_ALLOC_OBJ=
18973 POST_ALLOC_OBJ=lastfile.o
18974 else
18975 CYGWIN_OBJ=
18976 PRE_ALLOC_OBJ=lastfile.o
18977 POST_ALLOC_OBJ=
18978 fi
18979
18980
18981
18982
18983
18984 case "$opsys" in
18985 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
18986
18987 darwin)
18988 ## The -headerpad option tells ld (see man page) to leave room at the
18989 ## end of the header for adding load commands. Needed for dumping.
18990 ## 0x690 is the total size of 30 segment load commands (at 56
18991 ## each); under Cocoa 31 commands are required.
18992 if test "$HAVE_NS" = "yes"; then
18993 libs_nsgui="-framework AppKit"
18994 headerpad_extra=6C8
18995 else
18996 libs_nsgui=
18997 headerpad_extra=690
18998 fi
18999 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19000
19001 ## This is here because src/Makefile.in did some extra fiddling around
19002 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19003 ## #ifndef LD_SWITCH_SYSTEM
19004 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19005 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19006 ## not using gcc, darwin system not on an alpha (ie darwin, since
19007 ## darwin + alpha does not occur).
19008 ## Because this was done in src/Makefile.in, the resulting part of
19009 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19010 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19011 ## rather than LD_SWITCH_SYSTEM.
19012 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19013 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19014 ;;
19015
19016 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19017 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19018 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19019 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19020 ## had different values in configure (in ac_link) and src/Makefile.in.
19021 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19022 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19023
19024 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19025 esac
19026
19027 if test "$NS_IMPL_GNUSTEP" = "yes"; then
19028 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19029 fi
19030
19031
19032
19033
19034 LD_FIRSTFLAG=
19035 ORDINARY_LINK=
19036 case "$opsys" in
19037 ## gnu: GNU needs its own crt0.
19038 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19039
19040 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19041 ## library search parth, i.e. it won't search /usr/lib for libc and
19042 ## friends. Using -nostartfiles instead avoids this problem, and
19043 ## will also work on earlier NetBSD releases.
19044 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19045
19046 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19047 ## MkLinux/LinuxPPC needs this.
19048 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19049 gnu-*)
19050 case "$machine" in
19051 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19052 esac
19053 ;;
19054 esac
19055
19056
19057 if test "x$ORDINARY_LINK" = "xyes"; then
19058
19059 LD_FIRSTFLAG=""
19060
19061 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19062
19063
19064 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19065 ## freebsd, gnu-* not on macppc|ibms390x.
19066 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19067
19068 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19069 ## places that are difficult to figure out at make time. Fortunately,
19070 ## these same versions allow you to pass arbitrary flags on to the
19071 ## linker, so there is no reason not to use it as a linker.
19072 ##
19073 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19074 ## searching for libraries in its internal directories, so we have to
19075 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19076 LD_FIRSTFLAG="-nostdlib"
19077 fi
19078
19079 ## FIXME? What setting of EDIT_LDFLAGS should this have?
19080 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19081
19082
19083
19084
19085 ## FIXME? The logic here is not precisely the same as that above.
19086 ## There is no check here for a pre-defined LD_FIRSTFLAG.
19087 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19088 LIB_GCC=
19089 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19090
19091 case "$opsys" in
19092 freebsd|netbsd|openbsd) LIB_GCC= ;;
19093
19094 gnu-*)
19095 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19096 ## build on ARM EABI under GNU/Linux. (Bug#5518)
19097 case $host_cpu in
19098 arm*)
19099 LIB_GCC="-lgcc_s"
19100 ;;
19101 *)
19102 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19103 ## immediately undefine it again and redefine it to empty.
19104 ## Was the C_SWITCH_X_SITE part really necessary?
19105 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19106 LIB_GCC=
19107 ;;
19108 esac
19109 ;;
19110
19111 ## Ask GCC where to find libgcc.a.
19112 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19113 esac
19114 fi
19115
19116
19117 TOOLTIP_SUPPORT=
19118 WINDOW_SUPPORT=
19119 ## If we're using X11/GNUstep, define some consequences.
19120 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19121
19122 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19123
19124
19125 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19126
19127 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19128 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19129
19130 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19131 test "$HAVE_X_WINDOWS" = "yes" && \
19132 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19133
19134 fi
19135
19136
19137
19138
19139
19140
19141
19142 #### Report on what we decided to do.
19143 #### Report GTK as a toolkit, even if it doesn't use Xt.
19144 #### It makes printing result more understandable as using GTK sets
19145 #### toolkit_scroll_bars to yes by default.
19146 if test "${HAVE_GTK}" = "yes"; then
19147 USE_X_TOOLKIT=GTK
19148 fi
19149
19150 and_machfile=
19151 if test -n "$machfile"; then
19152 and_machfile=" and \`${machfile}'"
19153 fi
19154
19155 echo "
19156 Configured for \`${canonical}'.
19157
19158 Where should the build process find the source code? ${srcdir}
19159 What operating system and machine description files should Emacs use?
19160 \`${opsysfile}'${and_machfile}
19161 What compiler should emacs be built with? ${CC} ${CFLAGS}
19162 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19163 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19164 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19165 What window system should Emacs use? ${window_system}
19166 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19167
19168 if test -n "${x_includes}"; then
19169 echo " Where do we find X Windows header files? ${x_includes}"
19170 else
19171 echo " Where do we find X Windows header files? Standard dirs"
19172 fi
19173 if test -n "${x_libraries}"; then
19174 echo " Where do we find X Windows libraries? ${x_libraries}"
19175 else
19176 echo " Where do we find X Windows libraries? Standard dirs"
19177 fi
19178
19179 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19180 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19181 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19182 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19183 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19184 echo " Does Emacs use -lpng? ${HAVE_PNG}"
19185 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19186 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19187
19188 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19189 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19190 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19191 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19192 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19193 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19194
19195 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19196 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19197 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19198 echo " Does Emacs use -lxft? ${HAVE_XFT}"
19199
19200 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19201 echo
19202
19203 if test $USE_XASSERTS = yes; then
19204 echo " Compiling with asserts turned on."
19205 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19206 fi
19207
19208 echo
19209
19210 if test "$HAVE_NS" = "yes"; then
19211 echo
19212 echo "You must run \"make install\" in order to test the built application.
19213 The installed application will go to nextstep/Emacs.app and can be
19214 run or moved from there."
19215 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19216 echo "The application will be fully self-contained."
19217 else
19218 echo "The lisp resources for the application will be installed under ${prefix}.
19219 You may need to run \"make install\" with sudo. The application will fail
19220 to run if these resources are not installed."
19221 fi
19222 echo
19223 fi
19224
19225
19226 # Remove any trailing slashes in these variables.
19227 test "${prefix}" != NONE &&
19228 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19229 test "${exec_prefix}" != NONE &&
19230 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19231
19232 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"
19233
19234 ac_config_commands="$ac_config_commands default"
19235
19236 cat >confcache <<\_ACEOF
19237 # This file is a shell script that caches the results of configure
19238 # tests run on this system so they can be shared between configure
19239 # scripts and configure runs, see configure's option --config-cache.
19240 # It is not useful on other systems. If it contains results you don't
19241 # want to keep, you may remove or edit it.
19242 #
19243 # config.status only pays attention to the cache file if you give it
19244 # the --recheck option to rerun configure.
19245 #
19246 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19247 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19248 # following values.
19249
19250 _ACEOF
19251
19252 # The following way of writing the cache mishandles newlines in values,
19253 # but we know of no workaround that is simple, portable, and efficient.
19254 # So, we kill variables containing newlines.
19255 # Ultrix sh set writes to stderr and can't be redirected directly,
19256 # and sets the high bit in the cache file unless we assign to the vars.
19257 (
19258 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19259 eval ac_val=\$$ac_var
19260 case $ac_val in #(
19261 *${as_nl}*)
19262 case $ac_var in #(
19263 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19264 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19265 esac
19266 case $ac_var in #(
19267 _ | IFS | as_nl) ;; #(
19268 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19269 *) { eval $ac_var=; unset $ac_var;} ;;
19270 esac ;;
19271 esac
19272 done
19273
19274 (set) 2>&1 |
19275 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19276 *${as_nl}ac_space=\ *)
19277 # `set' does not quote correctly, so add quotes: double-quote
19278 # substitution turns \\\\ into \\, and sed turns \\ into \.
19279 sed -n \
19280 "s/'/'\\\\''/g;
19281 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19282 ;; #(
19283 *)
19284 # `set' quotes correctly as required by POSIX, so do not add quotes.
19285 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19286 ;;
19287 esac |
19288 sort
19289 ) |
19290 sed '
19291 /^ac_cv_env_/b end
19292 t clear
19293 :clear
19294 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19295 t end
19296 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19297 :end' >>confcache
19298 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19299 if test -w "$cache_file"; then
19300 if test "x$cache_file" != "x/dev/null"; then
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19302 $as_echo "$as_me: updating cache $cache_file" >&6;}
19303 if test ! -f "$cache_file" || test -h "$cache_file"; then
19304 cat confcache >"$cache_file"
19305 else
19306 case $cache_file in #(
19307 */* | ?:*)
19308 mv -f confcache "$cache_file"$$ &&
19309 mv -f "$cache_file"$$ "$cache_file" ;; #(
19310 *)
19311 mv -f confcache "$cache_file" ;;
19312 esac
19313 fi
19314 fi
19315 else
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19318 fi
19319 fi
19320 rm -f confcache
19321
19322 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19323 # Let make expand exec_prefix.
19324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19325
19326 DEFS=-DHAVE_CONFIG_H
19327
19328 ac_libobjs=
19329 ac_ltlibobjs=
19330 U=
19331 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19332 # 1. Remove the extension, and $U if already installed.
19333 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19334 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19335 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19336 # will be set to the directory where LIBOBJS objects are built.
19337 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19338 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19339 done
19340 LIBOBJS=$ac_libobjs
19341
19342 LTLIBOBJS=$ac_ltlibobjs
19343
19344
19345 if test -n "$EXEEXT"; then
19346 am__EXEEXT_TRUE=
19347 am__EXEEXT_FALSE='#'
19348 else
19349 am__EXEEXT_TRUE='#'
19350 am__EXEEXT_FALSE=
19351 fi
19352
19353 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19354 as_fn_error $? "conditional \"AMDEP\" was never defined.
19355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19356 fi
19357 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19358 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19360 fi
19361
19362 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19363 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19365 fi
19366
19367
19368 gl_libobjs=
19369 gl_ltlibobjs=
19370 if test -n "$gl_LIBOBJS"; then
19371 # Remove the extension.
19372 sed_drop_objext='s/\.o$//;s/\.obj$//'
19373 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19374 gl_libobjs="$gl_libobjs $i.$ac_objext"
19375 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19376 done
19377 fi
19378 gl_LIBOBJS=$gl_libobjs
19379
19380 gl_LTLIBOBJS=$gl_ltlibobjs
19381
19382
19383
19384 gltests_libobjs=
19385 gltests_ltlibobjs=
19386 if test -n "$gltests_LIBOBJS"; then
19387 # Remove the extension.
19388 sed_drop_objext='s/\.o$//;s/\.obj$//'
19389 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19390 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19391 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19392 done
19393 fi
19394 gltests_LIBOBJS=$gltests_libobjs
19395
19396 gltests_LTLIBOBJS=$gltests_ltlibobjs
19397
19398
19399
19400 : "${CONFIG_STATUS=./config.status}"
19401 ac_write_fail=0
19402 ac_clean_files_save=$ac_clean_files
19403 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19405 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19406 as_write_fail=0
19407 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19408 #! $SHELL
19409 # Generated by $as_me.
19410 # Run this file to recreate the current configuration.
19411 # Compiler output produced by configure, useful for debugging
19412 # configure, is in config.log if it exists.
19413
19414 debug=false
19415 ac_cs_recheck=false
19416 ac_cs_silent=false
19417
19418 SHELL=\${CONFIG_SHELL-$SHELL}
19419 export SHELL
19420 _ASEOF
19421 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19422 ## -------------------- ##
19423 ## M4sh Initialization. ##
19424 ## -------------------- ##
19425
19426 # Be more Bourne compatible
19427 DUALCASE=1; export DUALCASE # for MKS sh
19428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19429 emulate sh
19430 NULLCMD=:
19431 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19432 # is contrary to our usage. Disable this feature.
19433 alias -g '${1+"$@"}'='"$@"'
19434 setopt NO_GLOB_SUBST
19435 else
19436 case `(set -o) 2>/dev/null` in #(
19437 *posix*) :
19438 set -o posix ;; #(
19439 *) :
19440 ;;
19441 esac
19442 fi
19443
19444
19445 as_nl='
19446 '
19447 export as_nl
19448 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19449 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19450 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19452 # Prefer a ksh shell builtin over an external printf program on Solaris,
19453 # but without wasting forks for bash or zsh.
19454 if test -z "$BASH_VERSION$ZSH_VERSION" \
19455 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19456 as_echo='print -r --'
19457 as_echo_n='print -rn --'
19458 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19459 as_echo='printf %s\n'
19460 as_echo_n='printf %s'
19461 else
19462 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19463 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19464 as_echo_n='/usr/ucb/echo -n'
19465 else
19466 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19467 as_echo_n_body='eval
19468 arg=$1;
19469 case $arg in #(
19470 *"$as_nl"*)
19471 expr "X$arg" : "X\\(.*\\)$as_nl";
19472 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19473 esac;
19474 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19475 '
19476 export as_echo_n_body
19477 as_echo_n='sh -c $as_echo_n_body as_echo'
19478 fi
19479 export as_echo_body
19480 as_echo='sh -c $as_echo_body as_echo'
19481 fi
19482
19483 # The user is always right.
19484 if test "${PATH_SEPARATOR+set}" != set; then
19485 PATH_SEPARATOR=:
19486 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19487 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19488 PATH_SEPARATOR=';'
19489 }
19490 fi
19491
19492
19493 # IFS
19494 # We need space, tab and new line, in precisely that order. Quoting is
19495 # there to prevent editors from complaining about space-tab.
19496 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19497 # splitting by setting IFS to empty value.)
19498 IFS=" "" $as_nl"
19499
19500 # Find who we are. Look in the path if we contain no directory separator.
19501 as_myself=
19502 case $0 in #((
19503 *[\\/]* ) as_myself=$0 ;;
19504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19505 for as_dir in $PATH
19506 do
19507 IFS=$as_save_IFS
19508 test -z "$as_dir" && as_dir=.
19509 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19510 done
19511 IFS=$as_save_IFS
19512
19513 ;;
19514 esac
19515 # We did not find ourselves, most probably we were run as `sh COMMAND'
19516 # in which case we are not to be found in the path.
19517 if test "x$as_myself" = x; then
19518 as_myself=$0
19519 fi
19520 if test ! -f "$as_myself"; then
19521 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19522 exit 1
19523 fi
19524
19525 # Unset variables that we do not need and which cause bugs (e.g. in
19526 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19527 # suppresses any "Segmentation fault" message there. '((' could
19528 # trigger a bug in pdksh 5.2.14.
19529 for as_var in BASH_ENV ENV MAIL MAILPATH
19530 do eval test x\${$as_var+set} = xset \
19531 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19532 done
19533 PS1='$ '
19534 PS2='> '
19535 PS4='+ '
19536
19537 # NLS nuisances.
19538 LC_ALL=C
19539 export LC_ALL
19540 LANGUAGE=C
19541 export LANGUAGE
19542
19543 # CDPATH.
19544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19545
19546
19547 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19548 # ----------------------------------------
19549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19551 # script with STATUS, using 1 if that was 0.
19552 as_fn_error ()
19553 {
19554 as_status=$1; test $as_status -eq 0 && as_status=1
19555 if test "$4"; then
19556 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19557 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19558 fi
19559 $as_echo "$as_me: error: $2" >&2
19560 as_fn_exit $as_status
19561 } # as_fn_error
19562
19563
19564 # as_fn_set_status STATUS
19565 # -----------------------
19566 # Set $? to STATUS, without forking.
19567 as_fn_set_status ()
19568 {
19569 return $1
19570 } # as_fn_set_status
19571
19572 # as_fn_exit STATUS
19573 # -----------------
19574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19575 as_fn_exit ()
19576 {
19577 set +e
19578 as_fn_set_status $1
19579 exit $1
19580 } # as_fn_exit
19581
19582 # as_fn_unset VAR
19583 # ---------------
19584 # Portably unset VAR.
19585 as_fn_unset ()
19586 {
19587 { eval $1=; unset $1;}
19588 }
19589 as_unset=as_fn_unset
19590 # as_fn_append VAR VALUE
19591 # ----------------------
19592 # Append the text in VALUE to the end of the definition contained in VAR. Take
19593 # advantage of any shell optimizations that allow amortized linear growth over
19594 # repeated appends, instead of the typical quadratic growth present in naive
19595 # implementations.
19596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19597 eval 'as_fn_append ()
19598 {
19599 eval $1+=\$2
19600 }'
19601 else
19602 as_fn_append ()
19603 {
19604 eval $1=\$$1\$2
19605 }
19606 fi # as_fn_append
19607
19608 # as_fn_arith ARG...
19609 # ------------------
19610 # Perform arithmetic evaluation on the ARGs, and store the result in the
19611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19612 # must be portable across $(()) and expr.
19613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19614 eval 'as_fn_arith ()
19615 {
19616 as_val=$(( $* ))
19617 }'
19618 else
19619 as_fn_arith ()
19620 {
19621 as_val=`expr "$@" || test $? -eq 1`
19622 }
19623 fi # as_fn_arith
19624
19625
19626 if expr a : '\(a\)' >/dev/null 2>&1 &&
19627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19628 as_expr=expr
19629 else
19630 as_expr=false
19631 fi
19632
19633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19634 as_basename=basename
19635 else
19636 as_basename=false
19637 fi
19638
19639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19640 as_dirname=dirname
19641 else
19642 as_dirname=false
19643 fi
19644
19645 as_me=`$as_basename -- "$0" ||
19646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19647 X"$0" : 'X\(//\)$' \| \
19648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19649 $as_echo X/"$0" |
19650 sed '/^.*\/\([^/][^/]*\)\/*$/{
19651 s//\1/
19652 q
19653 }
19654 /^X\/\(\/\/\)$/{
19655 s//\1/
19656 q
19657 }
19658 /^X\/\(\/\).*/{
19659 s//\1/
19660 q
19661 }
19662 s/.*/./; q'`
19663
19664 # Avoid depending upon Character Ranges.
19665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19668 as_cr_digits='0123456789'
19669 as_cr_alnum=$as_cr_Letters$as_cr_digits
19670
19671 ECHO_C= ECHO_N= ECHO_T=
19672 case `echo -n x` in #(((((
19673 -n*)
19674 case `echo 'xy\c'` in
19675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19676 xy) ECHO_C='\c';;
19677 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19678 ECHO_T=' ';;
19679 esac;;
19680 *)
19681 ECHO_N='-n';;
19682 esac
19683
19684 rm -f conf$$ conf$$.exe conf$$.file
19685 if test -d conf$$.dir; then
19686 rm -f conf$$.dir/conf$$.file
19687 else
19688 rm -f conf$$.dir
19689 mkdir conf$$.dir 2>/dev/null
19690 fi
19691 if (echo >conf$$.file) 2>/dev/null; then
19692 if ln -s conf$$.file conf$$ 2>/dev/null; then
19693 as_ln_s='ln -s'
19694 # ... but there are two gotchas:
19695 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19696 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19697 # In both cases, we have to default to `cp -p'.
19698 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19699 as_ln_s='cp -p'
19700 elif ln conf$$.file conf$$ 2>/dev/null; then
19701 as_ln_s=ln
19702 else
19703 as_ln_s='cp -p'
19704 fi
19705 else
19706 as_ln_s='cp -p'
19707 fi
19708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19709 rmdir conf$$.dir 2>/dev/null
19710
19711
19712 # as_fn_mkdir_p
19713 # -------------
19714 # Create "$as_dir" as a directory, including parents if necessary.
19715 as_fn_mkdir_p ()
19716 {
19717
19718 case $as_dir in #(
19719 -*) as_dir=./$as_dir;;
19720 esac
19721 test -d "$as_dir" || eval $as_mkdir_p || {
19722 as_dirs=
19723 while :; do
19724 case $as_dir in #(
19725 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19726 *) as_qdir=$as_dir;;
19727 esac
19728 as_dirs="'$as_qdir' $as_dirs"
19729 as_dir=`$as_dirname -- "$as_dir" ||
19730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19731 X"$as_dir" : 'X\(//\)[^/]' \| \
19732 X"$as_dir" : 'X\(//\)$' \| \
19733 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19734 $as_echo X"$as_dir" |
19735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19736 s//\1/
19737 q
19738 }
19739 /^X\(\/\/\)[^/].*/{
19740 s//\1/
19741 q
19742 }
19743 /^X\(\/\/\)$/{
19744 s//\1/
19745 q
19746 }
19747 /^X\(\/\).*/{
19748 s//\1/
19749 q
19750 }
19751 s/.*/./; q'`
19752 test -d "$as_dir" && break
19753 done
19754 test -z "$as_dirs" || eval "mkdir $as_dirs"
19755 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19756
19757
19758 } # as_fn_mkdir_p
19759 if mkdir -p . 2>/dev/null; then
19760 as_mkdir_p='mkdir -p "$as_dir"'
19761 else
19762 test -d ./-p && rmdir ./-p
19763 as_mkdir_p=false
19764 fi
19765
19766 if test -x / >/dev/null 2>&1; then
19767 as_test_x='test -x'
19768 else
19769 if ls -dL / >/dev/null 2>&1; then
19770 as_ls_L_option=L
19771 else
19772 as_ls_L_option=
19773 fi
19774 as_test_x='
19775 eval sh -c '\''
19776 if test -d "$1"; then
19777 test -d "$1/.";
19778 else
19779 case $1 in #(
19780 -*)set "./$1";;
19781 esac;
19782 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19783 ???[sx]*):;;*)false;;esac;fi
19784 '\'' sh
19785 '
19786 fi
19787 as_executable_p=$as_test_x
19788
19789 # Sed expression to map a string onto a valid CPP name.
19790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19791
19792 # Sed expression to map a string onto a valid variable name.
19793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19794
19795
19796 exec 6>&1
19797 ## ----------------------------------- ##
19798 ## Main body of $CONFIG_STATUS script. ##
19799 ## ----------------------------------- ##
19800 _ASEOF
19801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19802
19803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19804 # Save the log message, to keep $0 and so on meaningful, and to
19805 # report actual input values of CONFIG_FILES etc. instead of their
19806 # values after options handling.
19807 ac_log="
19808 This file was extended by emacs $as_me 24.0.50, which was
19809 generated by GNU Autoconf 2.68. Invocation command line was
19810
19811 CONFIG_FILES = $CONFIG_FILES
19812 CONFIG_HEADERS = $CONFIG_HEADERS
19813 CONFIG_LINKS = $CONFIG_LINKS
19814 CONFIG_COMMANDS = $CONFIG_COMMANDS
19815 $ $0 $@
19816
19817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19818 "
19819
19820 _ACEOF
19821
19822 case $ac_config_files in *"
19823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19824 esac
19825
19826 case $ac_config_headers in *"
19827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19828 esac
19829
19830
19831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19832 # Files that config.status was made for.
19833 config_files="$ac_config_files"
19834 config_headers="$ac_config_headers"
19835 config_commands="$ac_config_commands"
19836
19837 _ACEOF
19838
19839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19840 ac_cs_usage="\
19841 \`$as_me' instantiates files and other configuration actions
19842 from templates according to the current configuration. Unless the files
19843 and actions are specified as TAGs, all are instantiated by default.
19844
19845 Usage: $0 [OPTION]... [TAG]...
19846
19847 -h, --help print this help, then exit
19848 -V, --version print version number and configuration settings, then exit
19849 --config print configuration, then exit
19850 -q, --quiet, --silent
19851 do not print progress messages
19852 -d, --debug don't remove temporary files
19853 --recheck update $as_me by reconfiguring in the same conditions
19854 --file=FILE[:TEMPLATE]
19855 instantiate the configuration file FILE
19856 --header=FILE[:TEMPLATE]
19857 instantiate the configuration header FILE
19858
19859 Configuration files:
19860 $config_files
19861
19862 Configuration headers:
19863 $config_headers
19864
19865 Configuration commands:
19866 $config_commands
19867
19868 Report bugs to the package provider."
19869
19870 _ACEOF
19871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19872 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19873 ac_cs_version="\\
19874 emacs config.status 24.0.50
19875 configured by $0, generated by GNU Autoconf 2.68,
19876 with options \\"\$ac_cs_config\\"
19877
19878 Copyright (C) 2010 Free Software Foundation, Inc.
19879 This config.status script is free software; the Free Software Foundation
19880 gives unlimited permission to copy, distribute and modify it."
19881
19882 ac_pwd='$ac_pwd'
19883 srcdir='$srcdir'
19884 INSTALL='$INSTALL'
19885 MKDIR_P='$MKDIR_P'
19886 AWK='$AWK'
19887 test -n "\$AWK" || AWK=awk
19888 _ACEOF
19889
19890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19891 # The default lists apply if the user does not specify any file.
19892 ac_need_defaults=:
19893 while test $# != 0
19894 do
19895 case $1 in
19896 --*=?*)
19897 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19899 ac_shift=:
19900 ;;
19901 --*=)
19902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19903 ac_optarg=
19904 ac_shift=:
19905 ;;
19906 *)
19907 ac_option=$1
19908 ac_optarg=$2
19909 ac_shift=shift
19910 ;;
19911 esac
19912
19913 case $ac_option in
19914 # Handling of the options.
19915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19916 ac_cs_recheck=: ;;
19917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19918 $as_echo "$ac_cs_version"; exit ;;
19919 --config | --confi | --conf | --con | --co | --c )
19920 $as_echo "$ac_cs_config"; exit ;;
19921 --debug | --debu | --deb | --de | --d | -d )
19922 debug=: ;;
19923 --file | --fil | --fi | --f )
19924 $ac_shift
19925 case $ac_optarg in
19926 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19927 '') as_fn_error $? "missing file argument" ;;
19928 esac
19929 as_fn_append CONFIG_FILES " '$ac_optarg'"
19930 ac_need_defaults=false;;
19931 --header | --heade | --head | --hea )
19932 $ac_shift
19933 case $ac_optarg in
19934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19935 esac
19936 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19937 ac_need_defaults=false;;
19938 --he | --h)
19939 # Conflict between --help and --header
19940 as_fn_error $? "ambiguous option: \`$1'
19941 Try \`$0 --help' for more information.";;
19942 --help | --hel | -h )
19943 $as_echo "$ac_cs_usage"; exit ;;
19944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19945 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19946 ac_cs_silent=: ;;
19947
19948 # This is an error.
19949 -*) as_fn_error $? "unrecognized option: \`$1'
19950 Try \`$0 --help' for more information." ;;
19951
19952 *) as_fn_append ac_config_targets " $1"
19953 ac_need_defaults=false ;;
19954
19955 esac
19956 shift
19957 done
19958
19959 ac_configure_extra_args=
19960
19961 if $ac_cs_silent; then
19962 exec 6>/dev/null
19963 ac_configure_extra_args="$ac_configure_extra_args --silent"
19964 fi
19965
19966 _ACEOF
19967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19968 if \$ac_cs_recheck; then
19969 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19970 shift
19971 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19972 CONFIG_SHELL='$SHELL'
19973 export CONFIG_SHELL
19974 exec "\$@"
19975 fi
19976
19977 _ACEOF
19978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19979 exec 5>>config.log
19980 {
19981 echo
19982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19983 ## Running $as_me. ##
19984 _ASBOX
19985 $as_echo "$ac_log"
19986 } >&5
19987
19988 _ACEOF
19989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19990 #
19991 # INIT-COMMANDS
19992 #
19993 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19994 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
19995
19996 _ACEOF
19997
19998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19999
20000 # Handling of arguments.
20001 for ac_config_target in $ac_config_targets
20002 do
20003 case $ac_config_target in
20004 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
20005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20006 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20007 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20008 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20009 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20010 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20011 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20012 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20013 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20014 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20015 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20016 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20017 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
20018 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
20019 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20020
20021 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20022 esac
20023 done
20024
20025
20026 # If the user did not use the arguments to specify the items to instantiate,
20027 # then the envvar interface is used. Set only those that are not.
20028 # We use the long form for the default assignment because of an extremely
20029 # bizarre bug on SunOS 4.1.3.
20030 if $ac_need_defaults; then
20031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20034 fi
20035
20036 # Have a temporary directory for convenience. Make it in the build tree
20037 # simply because there is no reason against having it here, and in addition,
20038 # creating and moving files from /tmp can sometimes cause problems.
20039 # Hook for its removal unless debugging.
20040 # Note that there is a small window in which the directory will not be cleaned:
20041 # after its creation but before its name has been assigned to `$tmp'.
20042 $debug ||
20043 {
20044 tmp= ac_tmp=
20045 trap 'exit_status=$?
20046 : "${ac_tmp:=$tmp}"
20047 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20048 ' 0
20049 trap 'as_fn_exit 1' 1 2 13 15
20050 }
20051 # Create a (secure) tmp directory for tmp files.
20052
20053 {
20054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20055 test -d "$tmp"
20056 } ||
20057 {
20058 tmp=./conf$$-$RANDOM
20059 (umask 077 && mkdir "$tmp")
20060 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20061 ac_tmp=$tmp
20062
20063 # Set up the scripts for CONFIG_FILES section.
20064 # No need to generate them if there are no CONFIG_FILES.
20065 # This happens for instance with `./config.status config.h'.
20066 if test -n "$CONFIG_FILES"; then
20067
20068 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20069 ac_cs_awk_getline=:
20070 ac_cs_awk_pipe_init=
20071 ac_cs_awk_read_file='
20072 while ((getline aline < (F[key])) > 0)
20073 print(aline)
20074 close(F[key])'
20075 ac_cs_awk_pipe_fini=
20076 else
20077 ac_cs_awk_getline=false
20078 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20079 ac_cs_awk_read_file='
20080 print "|#_!!_#|"
20081 print "cat " F[key] " &&"
20082 '$ac_cs_awk_pipe_init
20083 # The final `:' finishes the AND list.
20084 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20085 fi
20086 ac_cr=`echo X | tr X '\015'`
20087 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20088 # But we know of no other shell where ac_cr would be empty at this
20089 # point, so we can use a bashism as a fallback.
20090 if test "x$ac_cr" = x; then
20091 eval ac_cr=\$\'\\r\'
20092 fi
20093 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20094 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20095 ac_cs_awk_cr='\\r'
20096 else
20097 ac_cs_awk_cr=$ac_cr
20098 fi
20099
20100 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20101 _ACEOF
20102
20103 # Create commands to substitute file output variables.
20104 {
20105 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20106 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20107 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20108 echo "_ACAWK" &&
20109 echo "_ACEOF"
20110 } >conf$$files.sh &&
20111 . ./conf$$files.sh ||
20112 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20113 rm -f conf$$files.sh
20114
20115 {
20116 echo "cat >conf$$subs.awk <<_ACEOF" &&
20117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20118 echo "_ACEOF"
20119 } >conf$$subs.sh ||
20120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20122 ac_delim='%!_!# '
20123 for ac_last_try in false false false false false :; do
20124 . ./conf$$subs.sh ||
20125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20126
20127 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20128 if test $ac_delim_n = $ac_delim_num; then
20129 break
20130 elif $ac_last_try; then
20131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20132 else
20133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20134 fi
20135 done
20136 rm -f conf$$subs.sh
20137
20138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20139 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20140 _ACEOF
20141 sed -n '
20142 h
20143 s/^/S["/; s/!.*/"]=/
20144 p
20145 g
20146 s/^[^!]*!//
20147 :repl
20148 t repl
20149 s/'"$ac_delim"'$//
20150 t delim
20151 :nl
20152 h
20153 s/\(.\{148\}\)..*/\1/
20154 t more1
20155 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20156 p
20157 n
20158 b repl
20159 :more1
20160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20161 p
20162 g
20163 s/.\{148\}//
20164 t nl
20165 :delim
20166 h
20167 s/\(.\{148\}\)..*/\1/
20168 t more2
20169 s/["\\]/\\&/g; s/^/"/; s/$/"/
20170 p
20171 b
20172 :more2
20173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20174 p
20175 g
20176 s/.\{148\}//
20177 t delim
20178 ' <conf$$subs.awk | sed '
20179 /^[^""]/{
20180 N
20181 s/\n//
20182 }
20183 ' >>$CONFIG_STATUS || ac_write_fail=1
20184 rm -f conf$$subs.awk
20185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20186 _ACAWK
20187 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20188 for (key in S) S_is_set[key] = 1
20189 FS = "\a"
20190 \$ac_cs_awk_pipe_init
20191 }
20192 {
20193 line = $ 0
20194 nfields = split(line, field, "@")
20195 substed = 0
20196 len = length(field[1])
20197 for (i = 2; i < nfields; i++) {
20198 key = field[i]
20199 keylen = length(key)
20200 if (S_is_set[key]) {
20201 value = S[key]
20202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20203 len += length(value) + length(field[++i])
20204 substed = 1
20205 } else
20206 len += 1 + keylen
20207 }
20208 if (nfields == 3 && !substed) {
20209 key = field[2]
20210 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20211 \$ac_cs_awk_read_file
20212 next
20213 }
20214 }
20215 print line
20216 }
20217 \$ac_cs_awk_pipe_fini
20218 _ACAWK
20219 _ACEOF
20220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20221 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20222 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20223 else
20224 cat
20225 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20226 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20227 _ACEOF
20228
20229 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20230 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20231 # trailing colons and then remove the whole line if VPATH becomes empty
20232 # (actually we leave an empty line to preserve line numbers).
20233 if test "x$srcdir" = x.; then
20234 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20235 h
20236 s///
20237 s/^/:/
20238 s/[ ]*$/:/
20239 s/:\$(srcdir):/:/g
20240 s/:\${srcdir}:/:/g
20241 s/:@srcdir@:/:/g
20242 s/^:*//
20243 s/:*$//
20244 x
20245 s/\(=[ ]*\).*/\1/
20246 G
20247 s/\n//
20248 s/^[^=]*=[ ]*$//
20249 }'
20250 fi
20251
20252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20253 fi # test -n "$CONFIG_FILES"
20254
20255 # Set up the scripts for CONFIG_HEADERS section.
20256 # No need to generate them if there are no CONFIG_HEADERS.
20257 # This happens for instance with `./config.status Makefile'.
20258 if test -n "$CONFIG_HEADERS"; then
20259 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20260 BEGIN {
20261 _ACEOF
20262
20263 # Transform confdefs.h into an awk script `defines.awk', embedded as
20264 # here-document in config.status, that substitutes the proper values into
20265 # config.h.in to produce config.h.
20266
20267 # Create a delimiter string that does not exist in confdefs.h, to ease
20268 # handling of long lines.
20269 ac_delim='%!_!# '
20270 for ac_last_try in false false :; do
20271 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20272 if test -z "$ac_tt"; then
20273 break
20274 elif $ac_last_try; then
20275 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20276 else
20277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20278 fi
20279 done
20280
20281 # For the awk script, D is an array of macro values keyed by name,
20282 # likewise P contains macro parameters if any. Preserve backslash
20283 # newline sequences.
20284
20285 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20286 sed -n '
20287 s/.\{148\}/&'"$ac_delim"'/g
20288 t rset
20289 :rset
20290 s/^[ ]*#[ ]*define[ ][ ]*/ /
20291 t def
20292 d
20293 :def
20294 s/\\$//
20295 t bsnl
20296 s/["\\]/\\&/g
20297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20298 D["\1"]=" \3"/p
20299 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20300 d
20301 :bsnl
20302 s/["\\]/\\&/g
20303 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20304 D["\1"]=" \3\\\\\\n"\\/p
20305 t cont
20306 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20307 t cont
20308 d
20309 :cont
20310 n
20311 s/.\{148\}/&'"$ac_delim"'/g
20312 t clear
20313 :clear
20314 s/\\$//
20315 t bsnlc
20316 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20317 d
20318 :bsnlc
20319 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20320 b cont
20321 ' <confdefs.h | sed '
20322 s/'"$ac_delim"'/"\\\
20323 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20324
20325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20326 for (key in D) D_is_set[key] = 1
20327 FS = "\a"
20328 }
20329 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20330 line = \$ 0
20331 split(line, arg, " ")
20332 if (arg[1] == "#") {
20333 defundef = arg[2]
20334 mac1 = arg[3]
20335 } else {
20336 defundef = substr(arg[1], 2)
20337 mac1 = arg[2]
20338 }
20339 split(mac1, mac2, "(") #)
20340 macro = mac2[1]
20341 prefix = substr(line, 1, index(line, defundef) - 1)
20342 if (D_is_set[macro]) {
20343 # Preserve the white space surrounding the "#".
20344 print prefix "define", macro P[macro] D[macro]
20345 next
20346 } else {
20347 # Replace #undef with comments. This is necessary, for example,
20348 # in the case of _POSIX_SOURCE, which is predefined and required
20349 # on some systems where configure will not decide to define it.
20350 if (defundef == "undef") {
20351 print "/*", prefix defundef, macro, "*/"
20352 next
20353 }
20354 }
20355 }
20356 { print }
20357 _ACAWK
20358 _ACEOF
20359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20360 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20361 fi # test -n "$CONFIG_HEADERS"
20362
20363
20364 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20365 shift
20366 for ac_tag
20367 do
20368 case $ac_tag in
20369 :[FHLC]) ac_mode=$ac_tag; continue;;
20370 esac
20371 case $ac_mode$ac_tag in
20372 :[FHL]*:*);;
20373 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20374 :[FH]-) ac_tag=-:-;;
20375 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20376 esac
20377 ac_save_IFS=$IFS
20378 IFS=:
20379 set x $ac_tag
20380 IFS=$ac_save_IFS
20381 shift
20382 ac_file=$1
20383 shift
20384
20385 case $ac_mode in
20386 :L) ac_source=$1;;
20387 :[FH])
20388 ac_file_inputs=
20389 for ac_f
20390 do
20391 case $ac_f in
20392 -) ac_f="$ac_tmp/stdin";;
20393 *) # Look for the file first in the build tree, then in the source tree
20394 # (if the path is not absolute). The absolute path cannot be DOS-style,
20395 # because $ac_f cannot contain `:'.
20396 test -f "$ac_f" ||
20397 case $ac_f in
20398 [\\/$]*) false;;
20399 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20400 esac ||
20401 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20402 esac
20403 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20404 as_fn_append ac_file_inputs " '$ac_f'"
20405 done
20406
20407 # Let's still pretend it is `configure' which instantiates (i.e., don't
20408 # use $as_me), people would be surprised to read:
20409 # /* config.h. Generated by config.status. */
20410 configure_input='Generated from '`
20411 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20412 `' by configure.'
20413 if test x"$ac_file" != x-; then
20414 configure_input="$ac_file. $configure_input"
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20416 $as_echo "$as_me: creating $ac_file" >&6;}
20417 fi
20418 # Neutralize special characters interpreted by sed in replacement strings.
20419 case $configure_input in #(
20420 *\&* | *\|* | *\\* )
20421 ac_sed_conf_input=`$as_echo "$configure_input" |
20422 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20423 *) ac_sed_conf_input=$configure_input;;
20424 esac
20425
20426 case $ac_tag in
20427 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20428 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20429 esac
20430 ;;
20431 esac
20432
20433 ac_dir=`$as_dirname -- "$ac_file" ||
20434 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20435 X"$ac_file" : 'X\(//\)[^/]' \| \
20436 X"$ac_file" : 'X\(//\)$' \| \
20437 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20438 $as_echo X"$ac_file" |
20439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20440 s//\1/
20441 q
20442 }
20443 /^X\(\/\/\)[^/].*/{
20444 s//\1/
20445 q
20446 }
20447 /^X\(\/\/\)$/{
20448 s//\1/
20449 q
20450 }
20451 /^X\(\/\).*/{
20452 s//\1/
20453 q
20454 }
20455 s/.*/./; q'`
20456 as_dir="$ac_dir"; as_fn_mkdir_p
20457 ac_builddir=.
20458
20459 case "$ac_dir" in
20460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20461 *)
20462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20463 # A ".." for each directory in $ac_dir_suffix.
20464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20465 case $ac_top_builddir_sub in
20466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20468 esac ;;
20469 esac
20470 ac_abs_top_builddir=$ac_pwd
20471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20472 # for backward compatibility:
20473 ac_top_builddir=$ac_top_build_prefix
20474
20475 case $srcdir in
20476 .) # We are building in place.
20477 ac_srcdir=.
20478 ac_top_srcdir=$ac_top_builddir_sub
20479 ac_abs_top_srcdir=$ac_pwd ;;
20480 [\\/]* | ?:[\\/]* ) # Absolute name.
20481 ac_srcdir=$srcdir$ac_dir_suffix;
20482 ac_top_srcdir=$srcdir
20483 ac_abs_top_srcdir=$srcdir ;;
20484 *) # Relative name.
20485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20486 ac_top_srcdir=$ac_top_build_prefix$srcdir
20487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20488 esac
20489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20490
20491
20492 case $ac_mode in
20493 :F)
20494 #
20495 # CONFIG_FILE
20496 #
20497
20498 case $INSTALL in
20499 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20500 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20501 esac
20502 ac_MKDIR_P=$MKDIR_P
20503 case $MKDIR_P in
20504 [\\/$]* | ?:[\\/]* ) ;;
20505 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20506 esac
20507 _ACEOF
20508
20509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20510 # If the template does not know about datarootdir, expand it.
20511 # FIXME: This hack should be removed a few years after 2.60.
20512 ac_datarootdir_hack=; ac_datarootdir_seen=
20513 ac_sed_dataroot='
20514 /datarootdir/ {
20515 p
20516 q
20517 }
20518 /@datadir@/p
20519 /@docdir@/p
20520 /@infodir@/p
20521 /@localedir@/p
20522 /@mandir@/p'
20523 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20524 *datarootdir*) ac_datarootdir_seen=yes;;
20525 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20527 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20528 _ACEOF
20529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20530 ac_datarootdir_hack='
20531 s&@datadir@&$datadir&g
20532 s&@docdir@&$docdir&g
20533 s&@infodir@&$infodir&g
20534 s&@localedir@&$localedir&g
20535 s&@mandir@&$mandir&g
20536 s&\\\${datarootdir}&$datarootdir&g' ;;
20537 esac
20538 _ACEOF
20539
20540 # Neutralize VPATH when `$srcdir' = `.'.
20541 # Shell code in configure.ac might set extrasub.
20542 # FIXME: do we really want to maintain this feature?
20543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20544 ac_sed_extra="$ac_vpsub
20545 $extrasub
20546 _ACEOF
20547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20548 :t
20549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20550 s|@configure_input@|$ac_sed_conf_input|;t t
20551 s&@top_builddir@&$ac_top_builddir_sub&;t t
20552 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20553 s&@srcdir@&$ac_srcdir&;t t
20554 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20555 s&@top_srcdir@&$ac_top_srcdir&;t t
20556 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20557 s&@builddir@&$ac_builddir&;t t
20558 s&@abs_builddir@&$ac_abs_builddir&;t t
20559 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20560 s&@INSTALL@&$ac_INSTALL&;t t
20561 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20562 $ac_datarootdir_hack
20563 "
20564 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20565 if $ac_cs_awk_getline; then
20566 $AWK -f "$ac_tmp/subs.awk"
20567 else
20568 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20569 fi \
20570 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20571
20572 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20573 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20574 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20575 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20577 which seems to be undefined. Please make sure it is defined" >&5
20578 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20579 which seems to be undefined. Please make sure it is defined" >&2;}
20580
20581 rm -f "$ac_tmp/stdin"
20582 case $ac_file in
20583 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20584 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20585 esac \
20586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20587 ;;
20588 :H)
20589 #
20590 # CONFIG_HEADER
20591 #
20592 if test x"$ac_file" != x-; then
20593 {
20594 $as_echo "/* $configure_input */" \
20595 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20596 } >"$ac_tmp/config.h" \
20597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20598 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20600 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20601 else
20602 rm -f "$ac_file"
20603 mv "$ac_tmp/config.h" "$ac_file" \
20604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20605 fi
20606 else
20607 $as_echo "/* $configure_input */" \
20608 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20609 || as_fn_error $? "could not create -" "$LINENO" 5
20610 fi
20611 # Compute "$ac_file"'s index in $config_headers.
20612 _am_arg="$ac_file"
20613 _am_stamp_count=1
20614 for _am_header in $config_headers :; do
20615 case $_am_header in
20616 $_am_arg | $_am_arg:* )
20617 break ;;
20618 * )
20619 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20620 esac
20621 done
20622 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20623 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20624 X"$_am_arg" : 'X\(//\)[^/]' \| \
20625 X"$_am_arg" : 'X\(//\)$' \| \
20626 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20627 $as_echo X"$_am_arg" |
20628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20629 s//\1/
20630 q
20631 }
20632 /^X\(\/\/\)[^/].*/{
20633 s//\1/
20634 q
20635 }
20636 /^X\(\/\/\)$/{
20637 s//\1/
20638 q
20639 }
20640 /^X\(\/\).*/{
20641 s//\1/
20642 q
20643 }
20644 s/.*/./; q'`/stamp-h$_am_stamp_count
20645 ;;
20646
20647 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20648 $as_echo "$as_me: executing $ac_file commands" >&6;}
20649 ;;
20650 esac
20651
20652
20653 case $ac_file$ac_mode in
20654 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20655 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20656 # are listed without --file. Let's play safe and only enable the eval
20657 # if we detect the quoting.
20658 case $CONFIG_FILES in
20659 *\'*) eval set x "$CONFIG_FILES" ;;
20660 *) set x $CONFIG_FILES ;;
20661 esac
20662 shift
20663 for mf
20664 do
20665 # Strip MF so we end up with the name of the file.
20666 mf=`echo "$mf" | sed -e 's/:.*$//'`
20667 # Check whether this is an Automake generated Makefile or not.
20668 # We used to match only the files named `Makefile.in', but
20669 # some people rename them; so instead we look at the file content.
20670 # Grep'ing the first line is not enough: some people post-process
20671 # each Makefile.in and add a new line on top of each file to say so.
20672 # Grep'ing the whole file is not good either: AIX grep has a line
20673 # limit of 2048, but all sed's we know have understand at least 4000.
20674 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20675 dirpart=`$as_dirname -- "$mf" ||
20676 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20677 X"$mf" : 'X\(//\)[^/]' \| \
20678 X"$mf" : 'X\(//\)$' \| \
20679 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20680 $as_echo X"$mf" |
20681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20682 s//\1/
20683 q
20684 }
20685 /^X\(\/\/\)[^/].*/{
20686 s//\1/
20687 q
20688 }
20689 /^X\(\/\/\)$/{
20690 s//\1/
20691 q
20692 }
20693 /^X\(\/\).*/{
20694 s//\1/
20695 q
20696 }
20697 s/.*/./; q'`
20698 else
20699 continue
20700 fi
20701 # Extract the definition of DEPDIR, am__include, and am__quote
20702 # from the Makefile without running `make'.
20703 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20704 test -z "$DEPDIR" && continue
20705 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20706 test -z "am__include" && continue
20707 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20708 # When using ansi2knr, U may be empty or an underscore; expand it
20709 U=`sed -n 's/^U = //p' < "$mf"`
20710 # Find all dependency output files, they are included files with
20711 # $(DEPDIR) in their names. We invoke sed twice because it is the
20712 # simplest approach to changing $(DEPDIR) to its actual value in the
20713 # expansion.
20714 for file in `sed -n "
20715 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20716 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20717 # Make sure the directory exists.
20718 test -f "$dirpart/$file" && continue
20719 fdir=`$as_dirname -- "$file" ||
20720 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20721 X"$file" : 'X\(//\)[^/]' \| \
20722 X"$file" : 'X\(//\)$' \| \
20723 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20724 $as_echo X"$file" |
20725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20726 s//\1/
20727 q
20728 }
20729 /^X\(\/\/\)[^/].*/{
20730 s//\1/
20731 q
20732 }
20733 /^X\(\/\/\)$/{
20734 s//\1/
20735 q
20736 }
20737 /^X\(\/\).*/{
20738 s//\1/
20739 q
20740 }
20741 s/.*/./; q'`
20742 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20743 # echo "creating $dirpart/$file"
20744 echo '# dummy' > "$dirpart/$file"
20745 done
20746 done
20747 }
20748 ;;
20749 "default":C)
20750
20751 ### Make the necessary directories, if they don't exist.
20752 for dir in etc lisp ; do
20753 test -d ${dir} || mkdir ${dir}
20754 done
20755
20756 echo creating src/epaths.h
20757 ${MAKE-make} epaths-force
20758
20759 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20760 echo creating src/.gdbinit
20761 echo source $srcdir/src/.gdbinit > src/.gdbinit
20762 fi
20763
20764 ;;
20765
20766 esac
20767 done # for ac_tag
20768
20769
20770 as_fn_exit 0
20771 _ACEOF
20772 ac_clean_files=$ac_clean_files_save
20773
20774 test $ac_write_fail = 0 ||
20775 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20776
20777
20778 # configure is writing to config.log, and then calls config.status.
20779 # config.status does its own redirection, appending to config.log.
20780 # Unfortunately, on DOS this fails, as config.log is still kept open
20781 # by configure, so config.status won't be able to write to it; its
20782 # output is simply discarded. So we exec the FD to /dev/null,
20783 # effectively closing config.log, so it can be properly (re)opened and
20784 # appended to by config.status. When coming back to configure, we
20785 # need to make the FD available again.
20786 if test "$no_create" != yes; then
20787 ac_cs_success=:
20788 ac_config_status_args=
20789 test "$silent" = yes &&
20790 ac_config_status_args="$ac_config_status_args --quiet"
20791 exec 5>/dev/null
20792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20793 exec 5>>config.log
20794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20795 # would make configure fail if this is the last instruction.
20796 $ac_cs_success || as_fn_exit 1
20797 fi
20798 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20800 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20801 fi
20802