Import simpler crypto/md5 module from gnulib, plus stdint module.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_header_list=
603 gl_getopt_required=POSIX
604 gl_getopt_required=POSIX
605 ac_func_list=
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
681 NEXT_STDLIB_H
682 STDINT_H
683 WINT_T_SUFFIX
684 WCHAR_T_SUFFIX
685 SIG_ATOMIC_T_SUFFIX
686 SIZE_T_SUFFIX
687 PTRDIFF_T_SUFFIX
688 HAVE_SIGNED_WINT_T
689 HAVE_SIGNED_WCHAR_T
690 HAVE_SIGNED_SIG_ATOMIC_T
691 BITSIZEOF_WINT_T
692 BITSIZEOF_WCHAR_T
693 BITSIZEOF_SIG_ATOMIC_T
694 BITSIZEOF_SIZE_T
695 BITSIZEOF_PTRDIFF_T
696 HAVE_SYS_BITYPES_H
697 HAVE_SYS_INTTYPES_H
698 HAVE_STDINT_H
699 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
700 NEXT_STDINT_H
701 HAVE_SYS_TYPES_H
702 HAVE_INTTYPES_H
703 HAVE_WCHAR_H
704 HAVE_UNSIGNED_LONG_LONG_INT
705 HAVE_LONG_LONG_INT
706 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
707 NEXT_STDDEF_H
708 STDDEF_H
709 HAVE_WCHAR_T
710 REPLACE_NULL
711 HAVE__BOOL
712 STDBOOL_H
713 APPLE_UNIVERSAL_BUILD
714 REPLACE_TIMEGM
715 REPLACE_NANOSLEEP
716 REPLACE_MKTIME
717 REPLACE_LOCALTIME_R
718 HAVE_TIMEGM
719 HAVE_STRPTIME
720 HAVE_NANOSLEEP
721 HAVE_DECL_LOCALTIME_R
722 GNULIB_TIME_R
723 GNULIB_TIMEGM
724 GNULIB_STRPTIME
725 GNULIB_NANOSLEEP
726 GNULIB_MKTIME
727 LTLIBINTL
728 LIBINTL
729 GETOPT_H
730 HAVE_GETOPT_H
731 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
732 NEXT_GETOPT_H
733 PRAGMA_COLUMNS
734 PRAGMA_SYSTEM_HEADER
735 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
736 INCLUDE_NEXT
737 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
738 UNISTD_H_HAVE_WINSOCK2_H
739 REPLACE_WRITE
740 REPLACE_USLEEP
741 REPLACE_UNLINKAT
742 REPLACE_UNLINK
743 REPLACE_TTYNAME_R
744 REPLACE_SYMLINK
745 REPLACE_SLEEP
746 REPLACE_RMDIR
747 REPLACE_READLINK
748 REPLACE_PWRITE
749 REPLACE_PREAD
750 REPLACE_LSEEK
751 REPLACE_LINKAT
752 REPLACE_LINK
753 REPLACE_LCHOWN
754 REPLACE_GETPAGESIZE
755 REPLACE_GETGROUPS
756 REPLACE_GETLOGIN_R
757 REPLACE_GETDOMAINNAME
758 REPLACE_GETCWD
759 REPLACE_FCHOWNAT
760 REPLACE_DUP2
761 REPLACE_DUP
762 REPLACE_CLOSE
763 REPLACE_CHOWN
764 HAVE_SYS_PARAM_H
765 HAVE_OS_H
766 HAVE_DECL_TTYNAME_R
767 HAVE_DECL_GETUSERSHELL
768 HAVE_DECL_GETPAGESIZE
769 HAVE_DECL_GETLOGIN_R
770 HAVE_DECL_GETDOMAINNAME
771 HAVE_DECL_FCHDIR
772 HAVE_DECL_ENVIRON
773 HAVE_USLEEP
774 HAVE_UNLINKAT
775 HAVE_SYMLINKAT
776 HAVE_SYMLINK
777 HAVE_SLEEP
778 HAVE_READLINKAT
779 HAVE_READLINK
780 HAVE_PWRITE
781 HAVE_PREAD
782 HAVE_PIPE2
783 HAVE_PIPE
784 HAVE_LINKAT
785 HAVE_LINK
786 HAVE_LCHOWN
787 HAVE_GETPAGESIZE
788 HAVE_GETLOGIN
789 HAVE_GETHOSTNAME
790 HAVE_GETGROUPS
791 HAVE_GETDTABLESIZE
792 HAVE_FTRUNCATE
793 HAVE_FSYNC
794 HAVE_FCHOWNAT
795 HAVE_FCHDIR
796 HAVE_FACCESSAT
797 HAVE_EUIDACCESS
798 HAVE_DUP3
799 HAVE_DUP2
800 HAVE_CHOWN
801 GNULIB_WRITE
802 GNULIB_USLEEP
803 GNULIB_UNLINKAT
804 GNULIB_UNLINK
805 GNULIB_UNISTD_H_SIGPIPE
806 GNULIB_UNISTD_H_GETOPT
807 GNULIB_TTYNAME_R
808 GNULIB_SYMLINKAT
809 GNULIB_SYMLINK
810 GNULIB_SLEEP
811 GNULIB_RMDIR
812 GNULIB_READLINKAT
813 GNULIB_READLINK
814 GNULIB_PWRITE
815 GNULIB_PREAD
816 GNULIB_PIPE2
817 GNULIB_PIPE
818 GNULIB_LSEEK
819 GNULIB_LINKAT
820 GNULIB_LINK
821 GNULIB_LCHOWN
822 GNULIB_GETUSERSHELL
823 GNULIB_GETPAGESIZE
824 GNULIB_GETLOGIN_R
825 GNULIB_GETLOGIN
826 GNULIB_GETHOSTNAME
827 GNULIB_GETGROUPS
828 GNULIB_GETDTABLESIZE
829 GNULIB_GETDOMAINNAME
830 GNULIB_GETCWD
831 GNULIB_FTRUNCATE
832 GNULIB_FSYNC
833 GNULIB_FCHOWNAT
834 GNULIB_FCHDIR
835 GNULIB_FACCESSAT
836 GNULIB_EUIDACCESS
837 GNULIB_ENVIRON
838 GNULIB_DUP3
839 GNULIB_DUP2
840 GNULIB_CLOSE
841 GNULIB_CHOWN
842 GETLOADAVG_LIBS
843 REPLACE_UNSETENV
844 REPLACE_STRTOD
845 REPLACE_SETENV
846 REPLACE_REALPATH
847 REPLACE_REALLOC
848 REPLACE_PUTENV
849 REPLACE_MKSTEMP
850 REPLACE_MALLOC
851 REPLACE_CANONICALIZE_FILE_NAME
852 REPLACE_CALLOC
853 HAVE_DECL_UNSETENV
854 HAVE_UNLOCKPT
855 HAVE_SYS_LOADAVG_H
856 HAVE_STRUCT_RANDOM_DATA
857 HAVE_STRTOULL
858 HAVE_STRTOLL
859 HAVE_STRTOD
860 HAVE_DECL_SETENV
861 HAVE_SETENV
862 HAVE_RPMATCH
863 HAVE_REALPATH
864 HAVE_RANDOM_R
865 HAVE_RANDOM_H
866 HAVE_PTSNAME
867 HAVE_MKSTEMPS
868 HAVE_MKSTEMP
869 HAVE_MKOSTEMPS
870 HAVE_MKOSTEMP
871 HAVE_MKDTEMP
872 HAVE_GRANTPT
873 HAVE_GETSUBOPT
874 HAVE_DECL_GETLOADAVG
875 HAVE_CANONICALIZE_FILE_NAME
876 HAVE_ATOLL
877 HAVE__EXIT
878 GNULIB_UNSETENV
879 GNULIB_UNLOCKPT
880 GNULIB_SYSTEM_POSIX
881 GNULIB_STRTOULL
882 GNULIB_STRTOLL
883 GNULIB_STRTOD
884 GNULIB_SETENV
885 GNULIB_RPMATCH
886 GNULIB_REALPATH
887 GNULIB_REALLOC_POSIX
888 GNULIB_RANDOM_R
889 GNULIB_PUTENV
890 GNULIB_PTSNAME
891 GNULIB_MKSTEMPS
892 GNULIB_MKSTEMP
893 GNULIB_MKOSTEMPS
894 GNULIB_MKOSTEMP
895 GNULIB_MKDTEMP
896 GNULIB_MALLOC_POSIX
897 GNULIB_GRANTPT
898 GNULIB_GETSUBOPT
899 GNULIB_GETLOADAVG
900 GNULIB_CANONICALIZE_FILE_NAME
901 GNULIB_CALLOC_POSIX
902 GNULIB_ATOLL
903 GNULIB__EXIT
904 GL_COND_LIBTOOL_FALSE
905 GL_COND_LIBTOOL_TRUE
906 BLESSMAIL_TARGET
907 LIBS_MAIL
908 liblockfile
909 ALLOCA
910 LIBXML2_LIBS
911 LIBXML2_CFLAGS
912 LIBXSM
913 LIBGPM
914 LIBGIF
915 LIBTIFF
916 LIBPNG
917 LIBJPEG
918 LIBXPM
919 FREETYPE_LIBS
920 FREETYPE_CFLAGS
921 M17N_FLT_LIBS
922 M17N_FLT_CFLAGS
923 LIBOTF_LIBS
924 LIBOTF_CFLAGS
925 XFT_LIBS
926 XFT_CFLAGS
927 FONTCONFIG_LIBS
928 FONTCONFIG_CFLAGS
929 LIBXMU
930 LIBXTR6
931 LIBGNUTLS_LIBS
932 LIBGNUTLS_CFLAGS
933 LIBSELINUX_LIBS
934 GCONF_LIBS
935 GCONF_CFLAGS
936 DBUS_OBJ
937 DBUS_LIBS
938 DBUS_CFLAGS
939 GTK_OBJ
940 GTK_LIBS
941 GTK_CFLAGS
942 IMAGEMAGICK_LIBS
943 IMAGEMAGICK_CFLAGS
944 RSVG_LIBS
945 RSVG_CFLAGS
946 VMLIMIT_OBJ
947 GMALLOC_OBJ
948 HAVE_XSERVER
949 LIB_STANDARD
950 NS_SUPPORT
951 NS_OBJC_OBJ
952 NS_OBJ
953 TEMACS_LDFLAGS2
954 LD_SWITCH_X_SITE_AUX_RPATH
955 LD_SWITCH_X_SITE_AUX
956 XMKMF
957 DEPFLAGS
958 MKDEPDIR
959 CFLAGS_SOUND
960 ALSA_LIBS
961 ALSA_CFLAGS
962 PKG_CONFIG
963 LIBSOUND
964 START_FILES
965 LIB_MATH
966 CRT_DIR
967 LIBS_SYSTEM
968 C_SWITCH_SYSTEM
969 UNEXEC_OBJ
970 C_SWITCH_MACHINE
971 LD_SWITCH_SYSTEM
972 CANNOT_DUMP
973 HAVE_MAKEINFO
974 GZIP_PROG
975 INSTALL_INFO
976 C_WARNINGS_SWITCH
977 EGREP
978 GREP
979 CPP
980 RANLIB
981 am__fastdepCC_FALSE
982 am__fastdepCC_TRUE
983 CCDEPMODE
984 AMDEPBACKSLASH
985 AMDEP_FALSE
986 AMDEP_TRUE
987 am__quote
988 am__include
989 DEPDIR
990 OBJEXT
991 EXEEXT
992 ac_ct_CC
993 CPPFLAGS
994 LDFLAGS
995 CFLAGS
996 CC
997 host_os
998 host_vendor
999 host_cpu
1000 host
1001 build_os
1002 build_vendor
1003 build_cpu
1004 build
1005 PROFILING_CFLAGS
1006 MAINT
1007 GZIP_INFO
1008 am__untar
1009 am__tar
1010 AMTAR
1011 am__leading_dot
1012 SET_MAKE
1013 AWK
1014 mkdir_p
1015 MKDIR_P
1016 INSTALL_STRIP_PROGRAM
1017 STRIP
1018 install_sh
1019 MAKEINFO
1020 AUTOHEADER
1021 AUTOMAKE
1022 AUTOCONF
1023 ACLOCAL
1024 VERSION
1025 PACKAGE
1026 CYGPATH_W
1027 am__isrc
1028 INSTALL_DATA
1029 INSTALL_SCRIPT
1030 INSTALL_PROGRAM
1031 target_alias
1032 host_alias
1033 build_alias
1034 LIBS
1035 ECHO_T
1036 ECHO_N
1037 ECHO_C
1038 DEFS
1039 mandir
1040 localedir
1041 libdir
1042 psdir
1043 pdfdir
1044 dvidir
1045 htmldir
1046 infodir
1047 docdir
1048 oldincludedir
1049 includedir
1050 localstatedir
1051 sharedstatedir
1052 sysconfdir
1053 datadir
1054 datarootdir
1055 libexecdir
1056 sbindir
1057 bindir
1058 program_transform_name
1059 prefix
1060 exec_prefix
1061 PACKAGE_URL
1062 PACKAGE_BUGREPORT
1063 PACKAGE_STRING
1064 PACKAGE_VERSION
1065 PACKAGE_TARNAME
1066 PACKAGE_NAME
1067 PATH_SEPARATOR
1068 SHELL'
1069 ac_subst_files='deps_frag
1070 ns_frag'
1071 ac_user_opts='
1072 enable_option_checking
1073 with_pop
1074 with_kerberos
1075 with_kerberos5
1076 with_hesiod
1077 with_mmdf
1078 with_mail_unlink
1079 with_mailhost
1080 with_sound
1081 with_sync_input
1082 with_x_toolkit
1083 with_xpm
1084 with_jpeg
1085 with_tiff
1086 with_gif
1087 with_png
1088 with_rsvg
1089 with_xml2
1090 with_imagemagick
1091 with_xft
1092 with_libotf
1093 with_m17n_flt
1094 with_toolkit_scroll_bars
1095 with_xaw3d
1096 with_xim
1097 with_ns
1098 with_gpm
1099 with_dbus
1100 with_gconf
1101 with_selinux
1102 with_gnutls
1103 with_makeinfo
1104 with_compress_info
1105 with_pkg_config_prog
1106 with_crt_dir
1107 with_gameuser
1108 with_gnustep_conf
1109 enable_ns_self_contained
1110 enable_asserts
1111 enable_maintainer_mode
1112 enable_locallisppath
1113 enable_checking
1114 enable_use_lisp_union_type
1115 enable_profiling
1116 enable_autodepend
1117 enable_dependency_tracking
1118 enable_largefile
1119 with_x
1120 '
1121 ac_precious_vars='build_alias
1122 host_alias
1123 target_alias
1124 CC
1125 CFLAGS
1126 LDFLAGS
1127 LIBS
1128 CPPFLAGS
1129 CPP
1130 CPPFLAGS
1131 CPP
1132 CPPFLAGS
1133 XMKMF'
1134
1135
1136 # Initialize some variables set by options.
1137 ac_init_help=
1138 ac_init_version=false
1139 ac_unrecognized_opts=
1140 ac_unrecognized_sep=
1141 # The variables have the same names as the options, with
1142 # dashes changed to underlines.
1143 cache_file=/dev/null
1144 exec_prefix=NONE
1145 no_create=
1146 no_recursion=
1147 prefix=NONE
1148 program_prefix=NONE
1149 program_suffix=NONE
1150 program_transform_name=s,x,x,
1151 silent=
1152 site=
1153 srcdir=
1154 verbose=
1155 x_includes=NONE
1156 x_libraries=NONE
1157
1158 # Installation directory options.
1159 # These are left unexpanded so users can "make install exec_prefix=/foo"
1160 # and all the variables that are supposed to be based on exec_prefix
1161 # by default will actually change.
1162 # Use braces instead of parens because sh, perl, etc. also accept them.
1163 # (The list follows the same order as the GNU Coding Standards.)
1164 bindir='${exec_prefix}/bin'
1165 sbindir='${exec_prefix}/sbin'
1166 libexecdir='${exec_prefix}/libexec'
1167 datarootdir='${prefix}/share'
1168 datadir='${datarootdir}'
1169 sysconfdir='${prefix}/etc'
1170 sharedstatedir='${prefix}/com'
1171 localstatedir='${prefix}/var'
1172 includedir='${prefix}/include'
1173 oldincludedir='/usr/include'
1174 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1175 infodir='${datarootdir}/info'
1176 htmldir='${docdir}'
1177 dvidir='${docdir}'
1178 pdfdir='${docdir}'
1179 psdir='${docdir}'
1180 libdir='${exec_prefix}/lib'
1181 localedir='${datarootdir}/locale'
1182 mandir='${datarootdir}/man'
1183
1184 ac_prev=
1185 ac_dashdash=
1186 for ac_option
1187 do
1188 # If the previous option needs an argument, assign it.
1189 if test -n "$ac_prev"; then
1190 eval $ac_prev=\$ac_option
1191 ac_prev=
1192 continue
1193 fi
1194
1195 case $ac_option in
1196 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1197 *=) ac_optarg= ;;
1198 *) ac_optarg=yes ;;
1199 esac
1200
1201 # Accept the important Cygnus configure options, so we can diagnose typos.
1202
1203 case $ac_dashdash$ac_option in
1204 --)
1205 ac_dashdash=yes ;;
1206
1207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1208 ac_prev=bindir ;;
1209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1210 bindir=$ac_optarg ;;
1211
1212 -build | --build | --buil | --bui | --bu)
1213 ac_prev=build_alias ;;
1214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1215 build_alias=$ac_optarg ;;
1216
1217 -cache-file | --cache-file | --cache-fil | --cache-fi \
1218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1219 ac_prev=cache_file ;;
1220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1222 cache_file=$ac_optarg ;;
1223
1224 --config-cache | -C)
1225 cache_file=config.cache ;;
1226
1227 -datadir | --datadir | --datadi | --datad)
1228 ac_prev=datadir ;;
1229 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1230 datadir=$ac_optarg ;;
1231
1232 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1233 | --dataroo | --dataro | --datar)
1234 ac_prev=datarootdir ;;
1235 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1236 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1237 datarootdir=$ac_optarg ;;
1238
1239 -disable-* | --disable-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid feature name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248 "enable_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval enable_$ac_useropt=no ;;
1254
1255 -docdir | --docdir | --docdi | --doc | --do)
1256 ac_prev=docdir ;;
1257 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1258 docdir=$ac_optarg ;;
1259
1260 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1261 ac_prev=dvidir ;;
1262 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1263 dvidir=$ac_optarg ;;
1264
1265 -enable-* | --enable-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid feature name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274 "enable_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval enable_$ac_useropt=\$ac_optarg ;;
1280
1281 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1282 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1283 | --exec | --exe | --ex)
1284 ac_prev=exec_prefix ;;
1285 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1286 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1287 | --exec=* | --exe=* | --ex=*)
1288 exec_prefix=$ac_optarg ;;
1289
1290 -gas | --gas | --ga | --g)
1291 # Obsolete; use --with-gas.
1292 with_gas=yes ;;
1293
1294 -help | --help | --hel | --he | -h)
1295 ac_init_help=long ;;
1296 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1297 ac_init_help=recursive ;;
1298 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1299 ac_init_help=short ;;
1300
1301 -host | --host | --hos | --ho)
1302 ac_prev=host_alias ;;
1303 -host=* | --host=* | --hos=* | --ho=*)
1304 host_alias=$ac_optarg ;;
1305
1306 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1307 ac_prev=htmldir ;;
1308 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1309 | --ht=*)
1310 htmldir=$ac_optarg ;;
1311
1312 -includedir | --includedir | --includedi | --included | --include \
1313 | --includ | --inclu | --incl | --inc)
1314 ac_prev=includedir ;;
1315 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1316 | --includ=* | --inclu=* | --incl=* | --inc=*)
1317 includedir=$ac_optarg ;;
1318
1319 -infodir | --infodir | --infodi | --infod | --info | --inf)
1320 ac_prev=infodir ;;
1321 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1322 infodir=$ac_optarg ;;
1323
1324 -libdir | --libdir | --libdi | --libd)
1325 ac_prev=libdir ;;
1326 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1327 libdir=$ac_optarg ;;
1328
1329 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1330 | --libexe | --libex | --libe)
1331 ac_prev=libexecdir ;;
1332 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1333 | --libexe=* | --libex=* | --libe=*)
1334 libexecdir=$ac_optarg ;;
1335
1336 -localedir | --localedir | --localedi | --localed | --locale)
1337 ac_prev=localedir ;;
1338 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1339 localedir=$ac_optarg ;;
1340
1341 -localstatedir | --localstatedir | --localstatedi | --localstated \
1342 | --localstate | --localstat | --localsta | --localst | --locals)
1343 ac_prev=localstatedir ;;
1344 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1345 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1346 localstatedir=$ac_optarg ;;
1347
1348 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1349 ac_prev=mandir ;;
1350 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1351 mandir=$ac_optarg ;;
1352
1353 -nfp | --nfp | --nf)
1354 # Obsolete; use --without-fp.
1355 with_fp=no ;;
1356
1357 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1358 | --no-cr | --no-c | -n)
1359 no_create=yes ;;
1360
1361 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1362 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1363 no_recursion=yes ;;
1364
1365 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1366 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1367 | --oldin | --oldi | --old | --ol | --o)
1368 ac_prev=oldincludedir ;;
1369 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1370 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1371 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1372 oldincludedir=$ac_optarg ;;
1373
1374 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1375 ac_prev=prefix ;;
1376 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1377 prefix=$ac_optarg ;;
1378
1379 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1380 | --program-pre | --program-pr | --program-p)
1381 ac_prev=program_prefix ;;
1382 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1383 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1384 program_prefix=$ac_optarg ;;
1385
1386 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1387 | --program-suf | --program-su | --program-s)
1388 ac_prev=program_suffix ;;
1389 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1390 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1391 program_suffix=$ac_optarg ;;
1392
1393 -program-transform-name | --program-transform-name \
1394 | --program-transform-nam | --program-transform-na \
1395 | --program-transform-n | --program-transform- \
1396 | --program-transform | --program-transfor \
1397 | --program-transfo | --program-transf \
1398 | --program-trans | --program-tran \
1399 | --progr-tra | --program-tr | --program-t)
1400 ac_prev=program_transform_name ;;
1401 -program-transform-name=* | --program-transform-name=* \
1402 | --program-transform-nam=* | --program-transform-na=* \
1403 | --program-transform-n=* | --program-transform-=* \
1404 | --program-transform=* | --program-transfor=* \
1405 | --program-transfo=* | --program-transf=* \
1406 | --program-trans=* | --program-tran=* \
1407 | --progr-tra=* | --program-tr=* | --program-t=*)
1408 program_transform_name=$ac_optarg ;;
1409
1410 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1411 ac_prev=pdfdir ;;
1412 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1413 pdfdir=$ac_optarg ;;
1414
1415 -psdir | --psdir | --psdi | --psd | --ps)
1416 ac_prev=psdir ;;
1417 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1418 psdir=$ac_optarg ;;
1419
1420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1421 | -silent | --silent | --silen | --sile | --sil)
1422 silent=yes ;;
1423
1424 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1425 ac_prev=sbindir ;;
1426 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1427 | --sbi=* | --sb=*)
1428 sbindir=$ac_optarg ;;
1429
1430 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1431 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1432 | --sharedst | --shareds | --shared | --share | --shar \
1433 | --sha | --sh)
1434 ac_prev=sharedstatedir ;;
1435 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1436 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1437 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1438 | --sha=* | --sh=*)
1439 sharedstatedir=$ac_optarg ;;
1440
1441 -site | --site | --sit)
1442 ac_prev=site ;;
1443 -site=* | --site=* | --sit=*)
1444 site=$ac_optarg ;;
1445
1446 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1447 ac_prev=srcdir ;;
1448 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1449 srcdir=$ac_optarg ;;
1450
1451 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1452 | --syscon | --sysco | --sysc | --sys | --sy)
1453 ac_prev=sysconfdir ;;
1454 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1455 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1456 sysconfdir=$ac_optarg ;;
1457
1458 -target | --target | --targe | --targ | --tar | --ta | --t)
1459 ac_prev=target_alias ;;
1460 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1461 target_alias=$ac_optarg ;;
1462
1463 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1464 verbose=yes ;;
1465
1466 -version | --version | --versio | --versi | --vers | -V)
1467 ac_init_version=: ;;
1468
1469 -with-* | --with-*)
1470 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1471 # Reject names that are not valid shell variable names.
1472 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1473 as_fn_error $? "invalid package name: $ac_useropt"
1474 ac_useropt_orig=$ac_useropt
1475 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1476 case $ac_user_opts in
1477 *"
1478 "with_$ac_useropt"
1479 "*) ;;
1480 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1481 ac_unrecognized_sep=', ';;
1482 esac
1483 eval with_$ac_useropt=\$ac_optarg ;;
1484
1485 -without-* | --without-*)
1486 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1487 # Reject names that are not valid shell variable names.
1488 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1489 as_fn_error $? "invalid package name: $ac_useropt"
1490 ac_useropt_orig=$ac_useropt
1491 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1492 case $ac_user_opts in
1493 *"
1494 "with_$ac_useropt"
1495 "*) ;;
1496 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1497 ac_unrecognized_sep=', ';;
1498 esac
1499 eval with_$ac_useropt=no ;;
1500
1501 --x)
1502 # Obsolete; use --with-x.
1503 with_x=yes ;;
1504
1505 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1506 | --x-incl | --x-inc | --x-in | --x-i)
1507 ac_prev=x_includes ;;
1508 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1509 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1510 x_includes=$ac_optarg ;;
1511
1512 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1513 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1514 ac_prev=x_libraries ;;
1515 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1516 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1517 x_libraries=$ac_optarg ;;
1518
1519 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1520 Try \`$0 --help' for more information"
1521 ;;
1522
1523 *=*)
1524 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1525 # Reject names that are not valid shell variable names.
1526 case $ac_envvar in #(
1527 '' | [0-9]* | *[!_$as_cr_alnum]* )
1528 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1529 esac
1530 eval $ac_envvar=\$ac_optarg
1531 export $ac_envvar ;;
1532
1533 *)
1534 # FIXME: should be removed in autoconf 3.0.
1535 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1536 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1537 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1538 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1539 ;;
1540
1541 esac
1542 done
1543
1544 if test -n "$ac_prev"; then
1545 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1546 as_fn_error $? "missing argument to $ac_option"
1547 fi
1548
1549 if test -n "$ac_unrecognized_opts"; then
1550 case $enable_option_checking in
1551 no) ;;
1552 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1553 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1554 esac
1555 fi
1556
1557 # Check all directory arguments for consistency.
1558 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1559 datadir sysconfdir sharedstatedir localstatedir includedir \
1560 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1561 libdir localedir mandir
1562 do
1563 eval ac_val=\$$ac_var
1564 # Remove trailing slashes.
1565 case $ac_val in
1566 */ )
1567 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1568 eval $ac_var=\$ac_val;;
1569 esac
1570 # Be sure to have absolute directory names.
1571 case $ac_val in
1572 [\\/$]* | ?:[\\/]* ) continue;;
1573 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1574 esac
1575 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1576 done
1577
1578 # There might be people who depend on the old broken behavior: `$host'
1579 # used to hold the argument of --host etc.
1580 # FIXME: To remove some day.
1581 build=$build_alias
1582 host=$host_alias
1583 target=$target_alias
1584
1585 # FIXME: To remove some day.
1586 if test "x$host_alias" != x; then
1587 if test "x$build_alias" = x; then
1588 cross_compiling=maybe
1589 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1590 If a cross compiler is detected then cross compile mode will be used" >&2
1591 elif test "x$build_alias" != "x$host_alias"; then
1592 cross_compiling=yes
1593 fi
1594 fi
1595
1596 ac_tool_prefix=
1597 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1598
1599 test "$silent" = yes && exec 6>/dev/null
1600
1601
1602 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1603 ac_ls_di=`ls -di .` &&
1604 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1605 as_fn_error $? "working directory cannot be determined"
1606 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1607 as_fn_error $? "pwd does not report name of working directory"
1608
1609
1610 # Find the source files, if location was not specified.
1611 if test -z "$srcdir"; then
1612 ac_srcdir_defaulted=yes
1613 # Try the directory containing this script, then the parent directory.
1614 ac_confdir=`$as_dirname -- "$as_myself" ||
1615 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1616 X"$as_myself" : 'X\(//\)[^/]' \| \
1617 X"$as_myself" : 'X\(//\)$' \| \
1618 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1619 $as_echo X"$as_myself" |
1620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1621 s//\1/
1622 q
1623 }
1624 /^X\(\/\/\)[^/].*/{
1625 s//\1/
1626 q
1627 }
1628 /^X\(\/\/\)$/{
1629 s//\1/
1630 q
1631 }
1632 /^X\(\/\).*/{
1633 s//\1/
1634 q
1635 }
1636 s/.*/./; q'`
1637 srcdir=$ac_confdir
1638 if test ! -r "$srcdir/$ac_unique_file"; then
1639 srcdir=..
1640 fi
1641 else
1642 ac_srcdir_defaulted=no
1643 fi
1644 if test ! -r "$srcdir/$ac_unique_file"; then
1645 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1646 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1647 fi
1648 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1649 ac_abs_confdir=`(
1650 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1651 pwd)`
1652 # When building in place, set srcdir=.
1653 if test "$ac_abs_confdir" = "$ac_pwd"; then
1654 srcdir=.
1655 fi
1656 # Remove unnecessary trailing slashes from srcdir.
1657 # Double slashes in file names in object file debugging info
1658 # mess up M-x gdb in Emacs.
1659 case $srcdir in
1660 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1661 esac
1662 for ac_var in $ac_precious_vars; do
1663 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1664 eval ac_env_${ac_var}_value=\$${ac_var}
1665 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1666 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1667 done
1668
1669 #
1670 # Report the --help message.
1671 #
1672 if test "$ac_init_help" = "long"; then
1673 # Omit some internal or obsolete options to make the list less imposing.
1674 # This message is too long to be a string in the A/UX 3.1 sh.
1675 cat <<_ACEOF
1676 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1677
1678 Usage: $0 [OPTION]... [VAR=VALUE]...
1679
1680 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1681 VAR=VALUE. See below for descriptions of some of the useful variables.
1682
1683 Defaults for the options are specified in brackets.
1684
1685 Configuration:
1686 -h, --help display this help and exit
1687 --help=short display options specific to this package
1688 --help=recursive display the short help of all the included packages
1689 -V, --version display version information and exit
1690 -q, --quiet, --silent do not print \`checking ...' messages
1691 --cache-file=FILE cache test results in FILE [disabled]
1692 -C, --config-cache alias for \`--cache-file=config.cache'
1693 -n, --no-create do not create output files
1694 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1695
1696 Installation directories:
1697 --prefix=PREFIX install architecture-independent files in PREFIX
1698 [$ac_default_prefix]
1699 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1700 [PREFIX]
1701
1702 By default, \`make install' will install all the files in
1703 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1704 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1705 for instance \`--prefix=\$HOME'.
1706
1707 For better control, use the options below.
1708
1709 Fine tuning of the installation directories:
1710 --bindir=DIR user executables [EPREFIX/bin]
1711 --sbindir=DIR system admin executables [EPREFIX/sbin]
1712 --libexecdir=DIR program executables [EPREFIX/libexec]
1713 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1714 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1715 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1716 --libdir=DIR object code libraries [EPREFIX/lib]
1717 --includedir=DIR C header files [PREFIX/include]
1718 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1719 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1720 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1721 --infodir=DIR info documentation [DATAROOTDIR/info]
1722 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1723 --mandir=DIR man documentation [DATAROOTDIR/man]
1724 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1725 --htmldir=DIR html documentation [DOCDIR]
1726 --dvidir=DIR dvi documentation [DOCDIR]
1727 --pdfdir=DIR pdf documentation [DOCDIR]
1728 --psdir=DIR ps documentation [DOCDIR]
1729 _ACEOF
1730
1731 cat <<\_ACEOF
1732
1733 Program names:
1734 --program-prefix=PREFIX prepend PREFIX to installed program names
1735 --program-suffix=SUFFIX append SUFFIX to installed program names
1736 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1737
1738 X features:
1739 --x-includes=DIR X include files are in DIR
1740 --x-libraries=DIR X library files are in DIR
1741
1742 System types:
1743 --build=BUILD configure for building on BUILD [guessed]
1744 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1745 _ACEOF
1746 fi
1747
1748 if test -n "$ac_init_help"; then
1749 case $ac_init_help in
1750 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1751 esac
1752 cat <<\_ACEOF
1753
1754 Optional Features:
1755 --disable-option-checking ignore unrecognized --enable/--with options
1756 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1757 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1758 --disable-ns-self-contained
1759 disable self contained build under NeXTstep
1760 --enable-asserts compile code with asserts enabled
1761 --enable-maintainer-mode
1762 enable make rules and dependencies not useful (and
1763 sometimes confusing) to the casual installer
1764 --enable-locallisppath=PATH
1765 directories Emacs should search for lisp files
1766 specific to this site
1767 --enable-checking[=LIST]
1768 enable expensive run-time checks. With LIST, enable
1769 only specific categories of checks. Categories are:
1770 all,yes,no. Flags are: stringbytes, stringoverrun,
1771 stringfreelist, xmallocoverrun, conslist
1772 --enable-use-lisp-union-type
1773 use a union for the Lisp_Object data type. This is
1774 only useful for development for catching certain
1775 types of bugs.
1776 --enable-profiling build emacs with profiling support. This might not
1777 work on all platforms
1778 --enable-autodepend automatically generate dependencies to .h-files.
1779 Requires GNU Make and Gcc. Enabled if GNU Make and
1780 Gcc is found
1781 --disable-dependency-tracking speeds up one-time build
1782 --enable-dependency-tracking do not reject slow dependency extractors
1783 --disable-largefile omit support for large files
1784
1785 Optional Packages:
1786 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1787 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1788 --without-pop don't support POP mail retrieval with movemail
1789 --with-kerberos support Kerberos-authenticated POP
1790 --with-kerberos5 support Kerberos version 5 authenticated POP
1791 --with-hesiod support Hesiod to get the POP server host
1792 --with-mmdf support MMDF mailboxes
1793 --with-mail-unlink unlink, rather than empty, mail spool after reading
1794 --with-mailhost=HOSTNAME
1795 string giving default POP mail host
1796 --without-sound don't compile with sound support
1797 --without-sync-input process async input synchronously
1798 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1799 lucid or athena, motif, no)
1800 --without-xpm don't compile with XPM image support
1801 --without-jpeg don't compile with JPEG image support
1802 --without-tiff don't compile with TIFF image support
1803 --without-gif don't compile with GIF image support
1804 --without-png don't compile with PNG image support
1805 --without-rsvg don't compile with SVG image support
1806 --without-xml2 don't compile with XML parsing support
1807 --without-imagemagick don't compile with ImageMagick image support
1808 --without-xft don't use XFT for anti aliased fonts
1809 --without-libotf don't use libotf for OpenType font support
1810 --without-m17n-flt don't use m17n-flt for text shaping
1811 --without-toolkit-scroll-bars
1812 don't use Motif or Xaw3d scroll bars
1813 --without-xaw3d don't use Xaw3d
1814 --without-xim don't use X11 XIM
1815 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1816 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1817 console
1818 --without-dbus don't compile with D-Bus support
1819 --without-gconf don't compile with GConf support
1820 --without-selinux don't compile with SELinux support
1821 --without-gnutls don't use -lgnutls for SSL/TLS support
1822 --without-makeinfo don't require makeinfo for building manuals
1823 --without-compress-info don't compress the installed Info pages
1824 --with-pkg-config-prog=PATH
1825 path to pkg-config for finding GTK and librsvg
1826 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1827 /usr/lib, or /usr/lib64 on some platforms.
1828 --with-gameuser=USER user for shared game score files
1829 --with-gnustep-conf=PATH
1830 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1831 or /etc/GNUstep/GNUstep.conf
1832 --with-x use the X Window System
1833
1834 Some influential environment variables:
1835 CC C compiler command
1836 CFLAGS C compiler flags
1837 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1838 nonstandard directory <lib dir>
1839 LIBS libraries to pass to the linker, e.g. -l<library>
1840 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1841 you have headers in a nonstandard directory <include dir>
1842 CPP C preprocessor
1843 XMKMF Path to xmkmf, Makefile generator for X Window System
1844
1845 Use these variables to override the choices made by `configure' or to help
1846 it to find libraries and programs with nonstandard names/locations.
1847
1848 Report bugs to the package provider.
1849 _ACEOF
1850 ac_status=$?
1851 fi
1852
1853 if test "$ac_init_help" = "recursive"; then
1854 # If there are subdirs, report their specific --help.
1855 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1856 test -d "$ac_dir" ||
1857 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1858 continue
1859 ac_builddir=.
1860
1861 case "$ac_dir" in
1862 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1863 *)
1864 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1865 # A ".." for each directory in $ac_dir_suffix.
1866 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1867 case $ac_top_builddir_sub in
1868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1870 esac ;;
1871 esac
1872 ac_abs_top_builddir=$ac_pwd
1873 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1874 # for backward compatibility:
1875 ac_top_builddir=$ac_top_build_prefix
1876
1877 case $srcdir in
1878 .) # We are building in place.
1879 ac_srcdir=.
1880 ac_top_srcdir=$ac_top_builddir_sub
1881 ac_abs_top_srcdir=$ac_pwd ;;
1882 [\\/]* | ?:[\\/]* ) # Absolute name.
1883 ac_srcdir=$srcdir$ac_dir_suffix;
1884 ac_top_srcdir=$srcdir
1885 ac_abs_top_srcdir=$srcdir ;;
1886 *) # Relative name.
1887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1888 ac_top_srcdir=$ac_top_build_prefix$srcdir
1889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1890 esac
1891 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1892
1893 cd "$ac_dir" || { ac_status=$?; continue; }
1894 # Check for guested configure.
1895 if test -f "$ac_srcdir/configure.gnu"; then
1896 echo &&
1897 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1898 elif test -f "$ac_srcdir/configure"; then
1899 echo &&
1900 $SHELL "$ac_srcdir/configure" --help=recursive
1901 else
1902 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1903 fi || ac_status=$?
1904 cd "$ac_pwd" || { ac_status=$?; break; }
1905 done
1906 fi
1907
1908 test -n "$ac_init_help" && exit $ac_status
1909 if $ac_init_version; then
1910 cat <<\_ACEOF
1911 emacs configure 24.0.50
1912 generated by GNU Autoconf 2.68
1913
1914 Copyright (C) 2010 Free Software Foundation, Inc.
1915 This configure script is free software; the Free Software Foundation
1916 gives unlimited permission to copy, distribute and modify it.
1917 _ACEOF
1918 exit
1919 fi
1920
1921 ## ------------------------ ##
1922 ## Autoconf initialization. ##
1923 ## ------------------------ ##
1924
1925 # ac_fn_c_try_compile LINENO
1926 # --------------------------
1927 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1928 ac_fn_c_try_compile ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext
1932 if { { ac_try="$ac_compile"
1933 case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_compile") 2>conftest.err
1940 ac_status=$?
1941 if test -s conftest.err; then
1942 grep -v '^ *+' conftest.err >conftest.er1
1943 cat conftest.er1 >&5
1944 mv -f conftest.er1 conftest.err
1945 fi
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest.$ac_objext; then :
1951 ac_retval=0
1952 else
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_retval=1
1957 fi
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_compile
1962
1963 # ac_fn_c_try_cpp LINENO
1964 # ----------------------
1965 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_cpp ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 ac_status=$?
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1982 fi
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } > conftest.i && {
1985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1986 test ! -s conftest.err
1987 }; then :
1988 ac_retval=0
1989 else
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_retval=1
1994 fi
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 as_fn_set_status $ac_retval
1997
1998 } # ac_fn_c_try_cpp
1999
2000 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2003 # the include files in INCLUDES and setting the cache variable VAR
2004 # accordingly.
2005 ac_fn_c_check_header_mongrel ()
2006 {
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if eval \${$3+:} false; then :
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013 fi
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 else
2018 # Is the header compilable?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2020 $as_echo_n "checking $2 usability... " >&6; }
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 $4
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_header_compiler=yes
2028 else
2029 ac_header_compiler=no
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2033 $as_echo "$ac_header_compiler" >&6; }
2034
2035 # Is the header present?
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2037 $as_echo_n "checking $2 presence... " >&6; }
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 #include <$2>
2041 _ACEOF
2042 if ac_fn_c_try_cpp "$LINENO"; then :
2043 ac_header_preproc=yes
2044 else
2045 ac_header_preproc=no
2046 fi
2047 rm -f conftest.err conftest.i conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2049 $as_echo "$ac_header_preproc" >&6; }
2050
2051 # So? What about this header?
2052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2053 yes:no: )
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2055 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2058 ;;
2059 no:yes:* )
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2061 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2063 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2065 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2067 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2070 ;;
2071 esac
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 eval "$3=\$ac_header_compiler"
2078 fi
2079 eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2082 fi
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084
2085 } # ac_fn_c_check_header_mongrel
2086
2087 # ac_fn_c_try_run LINENO
2088 # ----------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2090 # that executables *can* be run.
2091 ac_fn_c_try_run ()
2092 {
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if { { ac_try="$ac_link"
2095 case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098 esac
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>&5
2102 ac_status=$?
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2105 { { case "(($ac_try" in
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2108 esac
2109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_try") 2>&5
2112 ac_status=$?
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; }; }; then :
2115 ac_retval=0
2116 else
2117 $as_echo "$as_me: program exited with status $ac_status" >&5
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_retval=$ac_status
2122 fi
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
2126
2127 } # ac_fn_c_try_run
2128
2129 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2130 # -------------------------------------------------------
2131 # Tests whether HEADER exists and can be compiled using the include files in
2132 # INCLUDES, setting the cache variable VAR accordingly.
2133 ac_fn_c_check_header_compile ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2140 else
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $4
2144 #include <$2>
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 eval "$3=yes"
2148 else
2149 eval "$3=no"
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158 } # ac_fn_c_check_header_compile
2159
2160 # ac_fn_c_try_link LINENO
2161 # -----------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_c_try_link ()
2164 {
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 rm -f conftest.$ac_objext conftest$ac_exeext
2167 if { { ac_try="$ac_link"
2168 case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_link") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2180 fi
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_c_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest$ac_exeext && {
2186 test "$cross_compiling" = yes ||
2187 $as_test_x conftest$ac_exeext
2188 }; then :
2189 ac_retval=0
2190 else
2191 $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 ac_retval=1
2195 fi
2196 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198 # interfere with the next link command; also delete a directory that is
2199 # left behind by Apple's compiler. We do this before executing the actions.
2200 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2203
2204 } # ac_fn_c_try_link
2205
2206 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2207 # ---------------------------------------------
2208 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2209 # accordingly.
2210 ac_fn_c_check_decl ()
2211 {
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 as_decl_name=`echo $2|sed 's/ *(.*//'`
2214 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2216 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2217 if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2219 else
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2222 $4
2223 int
2224 main ()
2225 {
2226 #ifndef $as_decl_name
2227 #ifdef __cplusplus
2228 (void) $as_decl_use;
2229 #else
2230 (void) $as_decl_name;
2231 #endif
2232 #endif
2233
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 eval "$3=yes"
2240 else
2241 eval "$3=no"
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 fi
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250 } # ac_fn_c_check_decl
2251
2252 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2253 # ----------------------------------------------
2254 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2255 ac_fn_c_check_header_preproc ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 #include <$2>
2266 _ACEOF
2267 if ac_fn_c_try_cpp "$LINENO"; then :
2268 eval "$3=yes"
2269 else
2270 eval "$3=no"
2271 fi
2272 rm -f conftest.err conftest.i conftest.$ac_ext
2273 fi
2274 eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278
2279 } # ac_fn_c_check_header_preproc
2280
2281 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2282 # ----------------------------------------------------
2283 # Tries to find if the field MEMBER exists in type AGGR, after including
2284 # INCLUDES, setting cache variable VAR accordingly.
2285 ac_fn_c_check_member ()
2286 {
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2289 $as_echo_n "checking for $2.$3... " >&6; }
2290 if eval \${$4+:} false; then :
2291 $as_echo_n "(cached) " >&6
2292 else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $5
2296 int
2297 main ()
2298 {
2299 static $2 ac_aggr;
2300 if (ac_aggr.$3)
2301 return 0;
2302 ;
2303 return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$4=yes"
2308 else
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $5
2312 int
2313 main ()
2314 {
2315 static $2 ac_aggr;
2316 if (sizeof ac_aggr.$3)
2317 return 0;
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$4=yes"
2324 else
2325 eval "$4=no"
2326 fi
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 fi
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 fi
2331 eval ac_res=\$$4
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335
2336 } # ac_fn_c_check_member
2337
2338 # ac_fn_c_check_func LINENO FUNC VAR
2339 # ----------------------------------
2340 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2341 ac_fn_c_check_func ()
2342 {
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 $as_echo_n "checking for $2... " >&6; }
2346 if eval \${$3+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2353 #define $2 innocuous_$2
2354
2355 /* System header to define __stub macros and hopefully few prototypes,
2356 which can conflict with char $2 (); below.
2357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2358 <limits.h> exists even on freestanding compilers. */
2359
2360 #ifdef __STDC__
2361 # include <limits.h>
2362 #else
2363 # include <assert.h>
2364 #endif
2365
2366 #undef $2
2367
2368 /* Override any GCC internal prototype to avoid an error.
2369 Use char because int might match the return type of a GCC
2370 builtin and then its argument prototype would still apply. */
2371 #ifdef __cplusplus
2372 extern "C"
2373 #endif
2374 char $2 ();
2375 /* The GNU C library defines this for functions which it implements
2376 to always fail with ENOSYS. Some functions are actually named
2377 something starting with __ and the normal name is an alias. */
2378 #if defined __stub_$2 || defined __stub___$2
2379 choke me
2380 #endif
2381
2382 int
2383 main ()
2384 {
2385 return $2 ();
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 if ac_fn_c_try_link "$LINENO"; then :
2391 eval "$3=yes"
2392 else
2393 eval "$3=no"
2394 fi
2395 rm -f core conftest.err conftest.$ac_objext \
2396 conftest$ac_exeext conftest.$ac_ext
2397 fi
2398 eval ac_res=\$$3
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402
2403 } # ac_fn_c_check_func
2404
2405 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2406 # -------------------------------------------
2407 # Tests whether TYPE exists after having included INCLUDES, setting cache
2408 # variable VAR accordingly.
2409 ac_fn_c_check_type ()
2410 {
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if eval \${$3+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 eval "$3=no"
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2420 $4
2421 int
2422 main ()
2423 {
2424 if (sizeof ($2))
2425 return 0;
2426 ;
2427 return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2433 $4
2434 int
2435 main ()
2436 {
2437 if (sizeof (($2)))
2438 return 0;
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444
2445 else
2446 eval "$3=yes"
2447 fi
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 fi
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 fi
2452 eval ac_res=\$$3
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456
2457 } # ac_fn_c_check_type
2458
2459 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2460 # --------------------------------------------
2461 # Tries to find the compile-time value of EXPR in a program that includes
2462 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2463 # computed
2464 ac_fn_c_compute_int ()
2465 {
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 if test "$cross_compiling" = yes; then
2468 # Depending upon the size, compute the lo and hi bounds.
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2471 $4
2472 int
2473 main ()
2474 {
2475 static int test_array [1 - 2 * !(($2) >= 0)];
2476 test_array [0] = 0
2477
2478 ;
2479 return 0;
2480 }
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_lo=0 ac_mid=0
2484 while :; do
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2487 $4
2488 int
2489 main ()
2490 {
2491 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2492 test_array [0] = 0
2493
2494 ;
2495 return 0;
2496 }
2497 _ACEOF
2498 if ac_fn_c_try_compile "$LINENO"; then :
2499 ac_hi=$ac_mid; break
2500 else
2501 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2502 if test $ac_lo -le $ac_mid; then
2503 ac_lo= ac_hi=
2504 break
2505 fi
2506 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2507 fi
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 done
2510 else
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2513 $4
2514 int
2515 main ()
2516 {
2517 static int test_array [1 - 2 * !(($2) < 0)];
2518 test_array [0] = 0
2519
2520 ;
2521 return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_hi=-1 ac_mid=-1
2526 while :; do
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529 $4
2530 int
2531 main ()
2532 {
2533 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2534 test_array [0] = 0
2535
2536 ;
2537 return 0;
2538 }
2539 _ACEOF
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541 ac_lo=$ac_mid; break
2542 else
2543 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2544 if test $ac_mid -le $ac_hi; then
2545 ac_lo= ac_hi=
2546 break
2547 fi
2548 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2549 fi
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 done
2552 else
2553 ac_lo= ac_hi=
2554 fi
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 # Binary search between lo and hi bounds.
2559 while test "x$ac_lo" != "x$ac_hi"; do
2560 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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_hi=$ac_mid
2576 else
2577 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 done
2581 case $ac_lo in #((
2582 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2583 '') ac_retval=1 ;;
2584 esac
2585 else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2588 $4
2589 static long int longval () { return $2; }
2590 static unsigned long int ulongval () { return $2; }
2591 #include <stdio.h>
2592 #include <stdlib.h>
2593 int
2594 main ()
2595 {
2596
2597 FILE *f = fopen ("conftest.val", "w");
2598 if (! f)
2599 return 1;
2600 if (($2) < 0)
2601 {
2602 long int i = longval ();
2603 if (i != ($2))
2604 return 1;
2605 fprintf (f, "%ld", i);
2606 }
2607 else
2608 {
2609 unsigned long int i = ulongval ();
2610 if (i != ($2))
2611 return 1;
2612 fprintf (f, "%lu", i);
2613 }
2614 /* Do not output a trailing newline, as this causes \r\n confusion
2615 on some platforms. */
2616 return ferror (f) || fclose (f) != 0;
2617
2618 ;
2619 return 0;
2620 }
2621 _ACEOF
2622 if ac_fn_c_try_run "$LINENO"; then :
2623 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2624 else
2625 ac_retval=1
2626 fi
2627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2628 conftest.$ac_objext conftest.beam conftest.$ac_ext
2629 rm -f conftest.val
2630
2631 fi
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 as_fn_set_status $ac_retval
2634
2635 } # ac_fn_c_compute_int
2636 cat >config.log <<_ACEOF
2637 This file contains any messages produced by compilers while
2638 running configure, to aid debugging if configure makes a mistake.
2639
2640 It was created by emacs $as_me 24.0.50, which was
2641 generated by GNU Autoconf 2.68. Invocation command line was
2642
2643 $ $0 $@
2644
2645 _ACEOF
2646 exec 5>>config.log
2647 {
2648 cat <<_ASUNAME
2649 ## --------- ##
2650 ## Platform. ##
2651 ## --------- ##
2652
2653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2658
2659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2661
2662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2669
2670 _ASUNAME
2671
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 $as_echo "PATH: $as_dir"
2678 done
2679 IFS=$as_save_IFS
2680
2681 } >&5
2682
2683 cat >&5 <<_ACEOF
2684
2685
2686 ## ----------- ##
2687 ## Core tests. ##
2688 ## ----------- ##
2689
2690 _ACEOF
2691
2692
2693 # Keep a trace of the command line.
2694 # Strip out --no-create and --no-recursion so they do not pile up.
2695 # Strip out --silent because we don't want to record it for future runs.
2696 # Also quote any args containing shell meta-characters.
2697 # Make two passes to allow for proper duplicate-argument suppression.
2698 ac_configure_args=
2699 ac_configure_args0=
2700 ac_configure_args1=
2701 ac_must_keep_next=false
2702 for ac_pass in 1 2
2703 do
2704 for ac_arg
2705 do
2706 case $ac_arg in
2707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2709 | -silent | --silent | --silen | --sile | --sil)
2710 continue ;;
2711 *\'*)
2712 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2713 esac
2714 case $ac_pass in
2715 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2716 2)
2717 as_fn_append ac_configure_args1 " '$ac_arg'"
2718 if test $ac_must_keep_next = true; then
2719 ac_must_keep_next=false # Got value, back to normal.
2720 else
2721 case $ac_arg in
2722 *=* | --config-cache | -C | -disable-* | --disable-* \
2723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2725 | -with-* | --with-* | -without-* | --without-* | --x)
2726 case "$ac_configure_args0 " in
2727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2728 esac
2729 ;;
2730 -* ) ac_must_keep_next=true ;;
2731 esac
2732 fi
2733 as_fn_append ac_configure_args " '$ac_arg'"
2734 ;;
2735 esac
2736 done
2737 done
2738 { ac_configure_args0=; unset ac_configure_args0;}
2739 { ac_configure_args1=; unset ac_configure_args1;}
2740
2741 # When interrupted or exit'd, cleanup temporary files, and complete
2742 # config.log. We remove comments because anyway the quotes in there
2743 # would cause problems or look ugly.
2744 # WARNING: Use '\'' to represent an apostrophe within the trap.
2745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2746 trap 'exit_status=$?
2747 # Save into config.log some information that might help in debugging.
2748 {
2749 echo
2750
2751 $as_echo "## ---------------- ##
2752 ## Cache variables. ##
2753 ## ---------------- ##"
2754 echo
2755 # The following way of writing the cache mishandles newlines in values,
2756 (
2757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2758 eval ac_val=\$$ac_var
2759 case $ac_val in #(
2760 *${as_nl}*)
2761 case $ac_var in #(
2762 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2763 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2764 esac
2765 case $ac_var in #(
2766 _ | IFS | as_nl) ;; #(
2767 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2768 *) { eval $ac_var=; unset $ac_var;} ;;
2769 esac ;;
2770 esac
2771 done
2772 (set) 2>&1 |
2773 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2774 *${as_nl}ac_space=\ *)
2775 sed -n \
2776 "s/'\''/'\''\\\\'\'''\''/g;
2777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2778 ;; #(
2779 *)
2780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2781 ;;
2782 esac |
2783 sort
2784 )
2785 echo
2786
2787 $as_echo "## ----------------- ##
2788 ## Output variables. ##
2789 ## ----------------- ##"
2790 echo
2791 for ac_var in $ac_subst_vars
2792 do
2793 eval ac_val=\$$ac_var
2794 case $ac_val in
2795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796 esac
2797 $as_echo "$ac_var='\''$ac_val'\''"
2798 done | sort
2799 echo
2800
2801 if test -n "$ac_subst_files"; then
2802 $as_echo "## ------------------- ##
2803 ## File substitutions. ##
2804 ## ------------------- ##"
2805 echo
2806 for ac_var in $ac_subst_files
2807 do
2808 eval ac_val=\$$ac_var
2809 case $ac_val in
2810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2811 esac
2812 $as_echo "$ac_var='\''$ac_val'\''"
2813 done | sort
2814 echo
2815 fi
2816
2817 if test -s confdefs.h; then
2818 $as_echo "## ----------- ##
2819 ## confdefs.h. ##
2820 ## ----------- ##"
2821 echo
2822 cat confdefs.h
2823 echo
2824 fi
2825 test "$ac_signal" != 0 &&
2826 $as_echo "$as_me: caught signal $ac_signal"
2827 $as_echo "$as_me: exit $exit_status"
2828 } >&5
2829 rm -f core *.core core.conftest.* &&
2830 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2831 exit $exit_status
2832 ' 0
2833 for ac_signal in 1 2 13 15; do
2834 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2835 done
2836 ac_signal=0
2837
2838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2839 rm -f -r conftest* confdefs.h
2840
2841 $as_echo "/* confdefs.h */" > confdefs.h
2842
2843 # Predefined preprocessor variables.
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_NAME "$PACKAGE_NAME"
2847 _ACEOF
2848
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2851 _ACEOF
2852
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2855 _ACEOF
2856
2857 cat >>confdefs.h <<_ACEOF
2858 #define PACKAGE_STRING "$PACKAGE_STRING"
2859 _ACEOF
2860
2861 cat >>confdefs.h <<_ACEOF
2862 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2863 _ACEOF
2864
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_URL "$PACKAGE_URL"
2867 _ACEOF
2868
2869
2870 # Let the site file select an alternate cache file if it wants to.
2871 # Prefer an explicitly selected file to automatically selected ones.
2872 ac_site_file1=NONE
2873 ac_site_file2=NONE
2874 if test -n "$CONFIG_SITE"; then
2875 # We do not want a PATH search for config.site.
2876 case $CONFIG_SITE in #((
2877 -*) ac_site_file1=./$CONFIG_SITE;;
2878 */*) ac_site_file1=$CONFIG_SITE;;
2879 *) ac_site_file1=./$CONFIG_SITE;;
2880 esac
2881 elif test "x$prefix" != xNONE; then
2882 ac_site_file1=$prefix/share/config.site
2883 ac_site_file2=$prefix/etc/config.site
2884 else
2885 ac_site_file1=$ac_default_prefix/share/config.site
2886 ac_site_file2=$ac_default_prefix/etc/config.site
2887 fi
2888 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2889 do
2890 test "x$ac_site_file" = xNONE && continue
2891 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2893 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2894 sed 's/^/| /' "$ac_site_file" >&5
2895 . "$ac_site_file" \
2896 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error $? "failed to load site script $ac_site_file
2899 See \`config.log' for more details" "$LINENO" 5; }
2900 fi
2901 done
2902
2903 if test -r "$cache_file"; then
2904 # Some versions of bash will fail to source /dev/null (special files
2905 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2906 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2908 $as_echo "$as_me: loading cache $cache_file" >&6;}
2909 case $cache_file in
2910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2911 *) . "./$cache_file";;
2912 esac
2913 fi
2914 else
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2916 $as_echo "$as_me: creating cache $cache_file" >&6;}
2917 >$cache_file
2918 fi
2919
2920 as_fn_append ac_header_list " stdlib.h"
2921 as_fn_append ac_header_list " unistd.h"
2922 as_fn_append ac_header_list " sys/param.h"
2923 gl_getopt_required=GNU
2924 as_fn_append ac_header_list " getopt.h"
2925 as_fn_append ac_func_list " alarm"
2926 as_fn_append ac_header_list " wchar.h"
2927 as_fn_append ac_header_list " stdint.h"
2928 as_fn_append ac_func_list " tzset"
2929 as_fn_append ac_header_list " sys/time.h"
2930 as_fn_append ac_func_list " localtime_r"
2931 # Check that the precious variables saved in the cache have kept the same
2932 # value.
2933 ac_cache_corrupted=false
2934 for ac_var in $ac_precious_vars; do
2935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2936 eval ac_new_set=\$ac_env_${ac_var}_set
2937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2938 eval ac_new_val=\$ac_env_${ac_var}_value
2939 case $ac_old_set,$ac_new_set in
2940 set,)
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2942 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2944 ,set)
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2946 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2947 ac_cache_corrupted=: ;;
2948 ,);;
2949 *)
2950 if test "x$ac_old_val" != "x$ac_new_val"; then
2951 # differences in whitespace do not lead to failure.
2952 ac_old_val_w=`echo x $ac_old_val`
2953 ac_new_val_w=`echo x $ac_new_val`
2954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2957 ac_cache_corrupted=:
2958 else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2961 eval $ac_var=\$ac_old_val
2962 fi
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2964 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2966 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2967 fi;;
2968 esac
2969 # Pass precious variables to config.status.
2970 if test "$ac_new_set" = set; then
2971 case $ac_new_val in
2972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2973 *) ac_arg=$ac_var=$ac_new_val ;;
2974 esac
2975 case " $ac_configure_args " in
2976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2977 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2978 esac
2979 fi
2980 done
2981 if $ac_cache_corrupted; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2986 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2987 fi
2988 ## -------------------- ##
2989 ## Main body of script. ##
2990 ## -------------------- ##
2991
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997
2998
2999 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3000
3001
3002 am__api_version='1.11'
3003
3004 ac_aux_dir=
3005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3006 if test -f "$ac_dir/install-sh"; then
3007 ac_aux_dir=$ac_dir
3008 ac_install_sh="$ac_aux_dir/install-sh -c"
3009 break
3010 elif test -f "$ac_dir/install.sh"; then
3011 ac_aux_dir=$ac_dir
3012 ac_install_sh="$ac_aux_dir/install.sh -c"
3013 break
3014 elif test -f "$ac_dir/shtool"; then
3015 ac_aux_dir=$ac_dir
3016 ac_install_sh="$ac_aux_dir/shtool install -c"
3017 break
3018 fi
3019 done
3020 if test -z "$ac_aux_dir"; then
3021 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3022 fi
3023
3024 # These three variables are undocumented and unsupported,
3025 # and are intended to be withdrawn in a future Autoconf release.
3026 # They can cause serious problems if a builder's source tree is in a directory
3027 # whose full name contains unusual characters.
3028 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3029 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3030 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3031
3032
3033 # Find a good install program. We prefer a C program (faster),
3034 # so one script is as good as another. But avoid the broken or
3035 # incompatible versions:
3036 # SysV /etc/install, /usr/sbin/install
3037 # SunOS /usr/etc/install
3038 # IRIX /sbin/install
3039 # AIX /bin/install
3040 # AmigaOS /C/install, which installs bootblocks on floppy discs
3041 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3042 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3043 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3044 # OS/2's system install, which has a completely different semantic
3045 # ./install, which can be erroneously created by make from ./install.sh.
3046 # Reject install programs that cannot install multiple files.
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3048 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3049 if test -z "$INSTALL"; then
3050 if ${ac_cv_path_install+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 # Account for people who put trailing slashes in PATH elements.
3059 case $as_dir/ in #((
3060 ./ | .// | /[cC]/* | \
3061 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3062 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3063 /usr/ucb/* ) ;;
3064 *)
3065 # OSF1 and SCO ODT 3.0 have their own names for install.
3066 # Don't use installbsd from OSF since it installs stuff as root
3067 # by default.
3068 for ac_prog in ginstall scoinst install; do
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3071 if test $ac_prog = install &&
3072 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3073 # AIX install. It has an incompatible calling convention.
3074 :
3075 elif test $ac_prog = install &&
3076 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3077 # program-specific install script used by HP pwplus--don't use.
3078 :
3079 else
3080 rm -rf conftest.one conftest.two conftest.dir
3081 echo one > conftest.one
3082 echo two > conftest.two
3083 mkdir conftest.dir
3084 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3085 test -s conftest.one && test -s conftest.two &&
3086 test -s conftest.dir/conftest.one &&
3087 test -s conftest.dir/conftest.two
3088 then
3089 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3090 break 3
3091 fi
3092 fi
3093 fi
3094 done
3095 done
3096 ;;
3097 esac
3098
3099 done
3100 IFS=$as_save_IFS
3101
3102 rm -rf conftest.one conftest.two conftest.dir
3103
3104 fi
3105 if test "${ac_cv_path_install+set}" = set; then
3106 INSTALL=$ac_cv_path_install
3107 else
3108 # As a last resort, use the slow shell script. Don't cache a
3109 # value for INSTALL within a source directory, because that will
3110 # break other packages using the cache if that directory is
3111 # removed, or if the value is a relative name.
3112 INSTALL=$ac_install_sh
3113 fi
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3116 $as_echo "$INSTALL" >&6; }
3117
3118 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3119 # It thinks the first close brace ends the variable substitution.
3120 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3121
3122 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3123
3124 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3125
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3127 $as_echo_n "checking whether build environment is sane... " >&6; }
3128 # Just in case
3129 sleep 1
3130 echo timestamp > conftest.file
3131 # Reject unsafe characters in $srcdir or the absolute working directory
3132 # name. Accept space and tab only in the latter.
3133 am_lf='
3134 '
3135 case `pwd` in
3136 *[\\\"\#\$\&\'\`$am_lf]*)
3137 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3138 esac
3139 case $srcdir in
3140 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3141 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3142 esac
3143
3144 # Do `set' in a subshell so we don't clobber the current shell's
3145 # arguments. Must try -L first in case configure is actually a
3146 # symlink; some systems play weird games with the mod time of symlinks
3147 # (eg FreeBSD returns the mod time of the symlink's containing
3148 # directory).
3149 if (
3150 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3151 if test "$*" = "X"; then
3152 # -L didn't work.
3153 set X `ls -t "$srcdir/configure" conftest.file`
3154 fi
3155 rm -f conftest.file
3156 if test "$*" != "X $srcdir/configure conftest.file" \
3157 && test "$*" != "X conftest.file $srcdir/configure"; then
3158
3159 # If neither matched, then we have a broken ls. This can happen
3160 # if, for instance, CONFIG_SHELL is bash and it inherits a
3161 # broken ls alias from the environment. This has actually
3162 # happened. Such a system could not be considered "sane".
3163 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3164 alias in your environment" "$LINENO" 5
3165 fi
3166
3167 test "$2" = conftest.file
3168 )
3169 then
3170 # Ok.
3171 :
3172 else
3173 as_fn_error $? "newly created file is older than distributed files!
3174 Check your system clock" "$LINENO" 5
3175 fi
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3177 $as_echo "yes" >&6; }
3178 test "$program_prefix" != NONE &&
3179 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3180 # Use a double $ so make ignores it.
3181 test "$program_suffix" != NONE &&
3182 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3183 # Double any \ or $.
3184 # By default was `s,x,x', remove it if useless.
3185 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3186 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3187
3188 # expand $ac_aux_dir to an absolute path
3189 am_aux_dir=`cd $ac_aux_dir && pwd`
3190
3191 if test x"${MISSING+set}" != xset; then
3192 case $am_aux_dir in
3193 *\ * | *\ *)
3194 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3195 *)
3196 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3197 esac
3198 fi
3199 # Use eval to expand $SHELL
3200 if eval "$MISSING --run true"; then
3201 am_missing_run="$MISSING --run "
3202 else
3203 am_missing_run=
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3205 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3206 fi
3207
3208 if test x"${install_sh}" != xset; then
3209 case $am_aux_dir in
3210 *\ * | *\ *)
3211 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3212 *)
3213 install_sh="\${SHELL} $am_aux_dir/install-sh"
3214 esac
3215 fi
3216
3217 # Installed binaries are usually stripped using `strip' when the user
3218 # run `make install-strip'. However `strip' might not be the right
3219 # tool to use in cross-compilation environments, therefore Automake
3220 # will honor the `STRIP' environment variable to overrule this program.
3221 if test "$cross_compiling" != no; then
3222 if test -n "$ac_tool_prefix"; then
3223 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3224 set dummy ${ac_tool_prefix}strip; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_STRIP+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 if test -n "$STRIP"; then
3231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 break 2
3243 fi
3244 done
3245 done
3246 IFS=$as_save_IFS
3247
3248 fi
3249 fi
3250 STRIP=$ac_cv_prog_STRIP
3251 if test -n "$STRIP"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3253 $as_echo "$STRIP" >&6; }
3254 else
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 fi
3258
3259
3260 fi
3261 if test -z "$ac_cv_prog_STRIP"; then
3262 ac_ct_STRIP=$STRIP
3263 # Extract the first word of "strip", so it can be a program name with args.
3264 set dummy strip; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$ac_ct_STRIP"; then
3271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_STRIP="strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3291 if test -n "$ac_ct_STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3293 $as_echo "$ac_ct_STRIP" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299 if test "x$ac_ct_STRIP" = x; then
3300 STRIP=":"
3301 else
3302 case $cross_compiling:$ac_tool_warned in
3303 yes:)
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned=yes ;;
3307 esac
3308 STRIP=$ac_ct_STRIP
3309 fi
3310 else
3311 STRIP="$ac_cv_prog_STRIP"
3312 fi
3313
3314 fi
3315 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3316
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3318 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3319 if test -z "$MKDIR_P"; then
3320 if ${ac_cv_path_mkdir+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3325 do
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_prog in mkdir gmkdir; do
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3331 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3332 'mkdir (GNU coreutils) '* | \
3333 'mkdir (coreutils) '* | \
3334 'mkdir (fileutils) '4.1*)
3335 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3336 break 3;;
3337 esac
3338 done
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 fi
3344
3345 test -d ./--version && rmdir ./--version
3346 if test "${ac_cv_path_mkdir+set}" = set; then
3347 MKDIR_P="$ac_cv_path_mkdir -p"
3348 else
3349 # As a last resort, use the slow shell script. Don't cache a
3350 # value for MKDIR_P within a source directory, because that will
3351 # break other packages using the cache if that directory is
3352 # removed, or if the value is a relative name.
3353 MKDIR_P="$ac_install_sh -d"
3354 fi
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3357 $as_echo "$MKDIR_P" >&6; }
3358
3359
3360 mkdir_p="$MKDIR_P"
3361 case $mkdir_p in
3362 [\\/$]* | ?:[\\/]*) ;;
3363 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3364 esac
3365
3366 for ac_prog in gawk mawk nawk awk
3367 do
3368 # Extract the first word of "$ac_prog", so it can be a program name with args.
3369 set dummy $ac_prog; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_AWK+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 if test -n "$AWK"; then
3376 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_AWK="$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 AWK=$ac_cv_prog_AWK
3396 if test -n "$AWK"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3398 $as_echo "$AWK" >&6; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 test -n "$AWK" && break
3406 done
3407
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3409 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3410 set x ${MAKE-make}
3411 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3412 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 cat >conftest.make <<\_ACEOF
3416 SHELL = /bin/sh
3417 all:
3418 @echo '@@@%%%=$(MAKE)=@@@%%%'
3419 _ACEOF
3420 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3421 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3422 *@@@%%%=?*=@@@%%%*)
3423 eval ac_cv_prog_make_${ac_make}_set=yes;;
3424 *)
3425 eval ac_cv_prog_make_${ac_make}_set=no;;
3426 esac
3427 rm -f conftest.make
3428 fi
3429 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3431 $as_echo "yes" >&6; }
3432 SET_MAKE=
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 SET_MAKE="MAKE=${MAKE-make}"
3437 fi
3438
3439 rm -rf .tst 2>/dev/null
3440 mkdir .tst 2>/dev/null
3441 if test -d .tst; then
3442 am__leading_dot=.
3443 else
3444 am__leading_dot=_
3445 fi
3446 rmdir .tst 2>/dev/null
3447
3448 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3449 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3450 # is not polluted with repeated "-I."
3451 am__isrc=' -I$(srcdir)'
3452 # test to see if srcdir already configured
3453 if test -f $srcdir/config.status; then
3454 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3455 fi
3456 fi
3457
3458 # test whether we have cygpath
3459 if test -z "$CYGPATH_W"; then
3460 if (cygpath --version) >/dev/null 2>/dev/null; then
3461 CYGPATH_W='cygpath -w'
3462 else
3463 CYGPATH_W=echo
3464 fi
3465 fi
3466
3467
3468 # Define the identity of the package.
3469 PACKAGE='emacs'
3470 VERSION='24.0.50'
3471
3472
3473 cat >>confdefs.h <<_ACEOF
3474 #define PACKAGE "$PACKAGE"
3475 _ACEOF
3476
3477
3478 cat >>confdefs.h <<_ACEOF
3479 #define VERSION "$VERSION"
3480 _ACEOF
3481
3482 # Some tools Automake needs.
3483
3484 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3485
3486
3487 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3488
3489
3490 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3491
3492
3493 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3494
3495
3496 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3497
3498 # We need awk for the "check" target. The system "awk" is bad on
3499 # some platforms.
3500 # Always define AMTAR for backward compatibility.
3501
3502 AMTAR=${AMTAR-"${am_missing_run}tar"}
3503
3504 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3505
3506
3507
3508
3509
3510
3511
3512
3513 lispdir='${datadir}/emacs/${version}/lisp'
3514 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3515 '${datadir}/emacs/site-lisp'
3516 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3517 etcdir='${datadir}/emacs/${version}/etc'
3518 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3519 docdir='${datadir}/emacs/${version}/etc'
3520 gamedir='${localstatedir}/games/emacs'
3521
3522
3523
3524
3525 # Check whether --with-pop was given.
3526 if test "${with_pop+set}" = set; then :
3527 withval=$with_pop;
3528 else
3529 with_pop=yes
3530 fi
3531
3532 if test "$with_pop" = yes; then
3533 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3534
3535 fi
3536
3537
3538 # Check whether --with-kerberos was given.
3539 if test "${with_kerberos+set}" = set; then :
3540 withval=$with_kerberos;
3541 else
3542 with_kerberos=no
3543 fi
3544
3545 if test "$with_kerberos" != no; then
3546 $as_echo "#define KERBEROS 1" >>confdefs.h
3547
3548 fi
3549
3550
3551 # Check whether --with-kerberos5 was given.
3552 if test "${with_kerberos5+set}" = set; then :
3553 withval=$with_kerberos5;
3554 else
3555 with_kerberos5=no
3556 fi
3557
3558 if test "${with_kerberos5}" != no; then
3559 if test "${with_kerberos}" = no; then
3560 with_kerberos=yes
3561 $as_echo "#define KERBEROS 1" >>confdefs.h
3562
3563 fi
3564
3565 $as_echo "#define KERBEROS5 1" >>confdefs.h
3566
3567 fi
3568
3569
3570 # Check whether --with-hesiod was given.
3571 if test "${with_hesiod+set}" = set; then :
3572 withval=$with_hesiod;
3573 else
3574 with_hesiod=no
3575 fi
3576
3577 if test "$with_hesiod" != no; then
3578
3579 $as_echo "#define HESIOD 1" >>confdefs.h
3580
3581 fi
3582
3583
3584 # Check whether --with-mmdf was given.
3585 if test "${with_mmdf+set}" = set; then :
3586 withval=$with_mmdf;
3587 else
3588 with_mmdf=no
3589 fi
3590
3591 if test "$with_mmdf" != no; then
3592
3593 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3594
3595 fi
3596
3597
3598 # Check whether --with-mail-unlink was given.
3599 if test "${with_mail_unlink+set}" = set; then :
3600 withval=$with_mail_unlink;
3601 else
3602 with_mail_unlink=no
3603 fi
3604
3605 if test "$with_mail_unlink" != no; then
3606
3607 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3608
3609 fi
3610
3611
3612 # Check whether --with-mailhost was given.
3613 if test "${with_mailhost+set}" = set; then :
3614 withval=$with_mailhost;
3615 cat >>confdefs.h <<_ACEOF
3616 #define MAILHOST "$withval"
3617 _ACEOF
3618
3619 fi
3620
3621
3622
3623 # Check whether --with-sound was given.
3624 if test "${with_sound+set}" = set; then :
3625 withval=$with_sound;
3626 else
3627 with_sound=yes
3628 fi
3629
3630
3631
3632 # Check whether --with-sync-input was given.
3633 if test "${with_sync_input+set}" = set; then :
3634 withval=$with_sync_input;
3635 else
3636 with_sync_input=yes
3637 fi
3638
3639 if test "$with_sync_input" = yes; then
3640
3641 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3642
3643 fi
3644
3645
3646 # Check whether --with-x-toolkit was given.
3647 if test "${with_x_toolkit+set}" = set; then :
3648 withval=$with_x_toolkit; case "${withval}" in
3649 y | ye | yes ) val=gtk ;;
3650 n | no ) val=no ;;
3651 l | lu | luc | luci | lucid ) val=lucid ;;
3652 a | at | ath | athe | athen | athena ) val=athena ;;
3653 m | mo | mot | moti | motif ) val=motif ;;
3654 g | gt | gtk ) val=gtk ;;
3655 gtk3 ) val=gtk3 ;;
3656 * )
3657 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3658 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3659 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3660 ;;
3661 esac
3662 with_x_toolkit=$val
3663
3664 fi
3665
3666
3667
3668 # Check whether --with-xpm was given.
3669 if test "${with_xpm+set}" = set; then :
3670 withval=$with_xpm;
3671 else
3672 with_xpm=yes
3673 fi
3674
3675
3676 # Check whether --with-jpeg was given.
3677 if test "${with_jpeg+set}" = set; then :
3678 withval=$with_jpeg;
3679 else
3680 with_jpeg=yes
3681 fi
3682
3683
3684 # Check whether --with-tiff was given.
3685 if test "${with_tiff+set}" = set; then :
3686 withval=$with_tiff;
3687 else
3688 with_tiff=yes
3689 fi
3690
3691
3692 # Check whether --with-gif was given.
3693 if test "${with_gif+set}" = set; then :
3694 withval=$with_gif;
3695 else
3696 with_gif=yes
3697 fi
3698
3699
3700 # Check whether --with-png was given.
3701 if test "${with_png+set}" = set; then :
3702 withval=$with_png;
3703 else
3704 with_png=yes
3705 fi
3706
3707
3708 # Check whether --with-rsvg was given.
3709 if test "${with_rsvg+set}" = set; then :
3710 withval=$with_rsvg;
3711 else
3712 with_rsvg=yes
3713 fi
3714
3715
3716 # Check whether --with-xml2 was given.
3717 if test "${with_xml2+set}" = set; then :
3718 withval=$with_xml2;
3719 else
3720 with_xml2=yes
3721 fi
3722
3723
3724 # Check whether --with-imagemagick was given.
3725 if test "${with_imagemagick+set}" = set; then :
3726 withval=$with_imagemagick;
3727 else
3728 with_imagemagick=yes
3729 fi
3730
3731
3732
3733 # Check whether --with-xft was given.
3734 if test "${with_xft+set}" = set; then :
3735 withval=$with_xft;
3736 else
3737 with_xft=yes
3738 fi
3739
3740
3741 # Check whether --with-libotf was given.
3742 if test "${with_libotf+set}" = set; then :
3743 withval=$with_libotf;
3744 else
3745 with_libotf=yes
3746 fi
3747
3748
3749 # Check whether --with-m17n-flt was given.
3750 if test "${with_m17n_flt+set}" = set; then :
3751 withval=$with_m17n_flt;
3752 else
3753 with_m17n_flt=yes
3754 fi
3755
3756
3757
3758 # Check whether --with-toolkit-scroll-bars was given.
3759 if test "${with_toolkit_scroll_bars+set}" = set; then :
3760 withval=$with_toolkit_scroll_bars;
3761 else
3762 with_toolkit_scroll_bars=yes
3763 fi
3764
3765
3766 # Check whether --with-xaw3d was given.
3767 if test "${with_xaw3d+set}" = set; then :
3768 withval=$with_xaw3d;
3769 else
3770 with_xaw3d=yes
3771 fi
3772
3773
3774 # Check whether --with-xim was given.
3775 if test "${with_xim+set}" = set; then :
3776 withval=$with_xim;
3777 else
3778 with_xim=yes
3779 fi
3780
3781
3782 # Check whether --with-ns was given.
3783 if test "${with_ns+set}" = set; then :
3784 withval=$with_ns;
3785 else
3786 with_ns=no
3787 fi
3788
3789
3790
3791 # Check whether --with-gpm was given.
3792 if test "${with_gpm+set}" = set; then :
3793 withval=$with_gpm;
3794 else
3795 with_gpm=yes
3796 fi
3797
3798
3799 # Check whether --with-dbus was given.
3800 if test "${with_dbus+set}" = set; then :
3801 withval=$with_dbus;
3802 else
3803 with_dbus=yes
3804 fi
3805
3806
3807 # Check whether --with-gconf was given.
3808 if test "${with_gconf+set}" = set; then :
3809 withval=$with_gconf;
3810 else
3811 with_gconf=yes
3812 fi
3813
3814
3815 # Check whether --with-selinux was given.
3816 if test "${with_selinux+set}" = set; then :
3817 withval=$with_selinux;
3818 else
3819 with_selinux=yes
3820 fi
3821
3822
3823 # Check whether --with-gnutls was given.
3824 if test "${with_gnutls+set}" = set; then :
3825 withval=$with_gnutls;
3826 else
3827 with_gnutls=yes
3828 fi
3829
3830
3831 ## For the times when you want to build Emacs but don't have
3832 ## a suitable makeinfo, and can live without the manuals.
3833
3834 # Check whether --with-makeinfo was given.
3835 if test "${with_makeinfo+set}" = set; then :
3836 withval=$with_makeinfo;
3837 else
3838 with_makeinfo=yes
3839 fi
3840
3841
3842 ## This is an option because I do not know if all info/man support
3843 ## compressed files, nor how to test if they do so.
3844
3845 # Check whether --with-compress-info was given.
3846 if test "${with_compress_info+set}" = set; then :
3847 withval=$with_compress_info;
3848 else
3849 with_compress_info=yes
3850 fi
3851
3852 if test $with_compress_info = yes; then
3853 GZIP_INFO=yes
3854 else
3855 GZIP_INFO=
3856 fi
3857
3858
3859
3860 # Check whether --with-pkg-config-prog was given.
3861 if test "${with_pkg_config_prog+set}" = set; then :
3862 withval=$with_pkg_config_prog;
3863 fi
3864
3865 if test "X${with_pkg_config_prog}" != X; then
3866 if test "${with_pkg_config_prog}" != yes; then
3867 PKG_CONFIG="${with_pkg_config_prog}"
3868 fi
3869 fi
3870
3871 CRT_DIR=
3872
3873 # Check whether --with-crt-dir was given.
3874 if test "${with_crt_dir+set}" = set; then :
3875 withval=$with_crt_dir;
3876 fi
3877
3878 CRT_DIR="${with_crt_dir}"
3879
3880
3881 # Check whether --with-gameuser was given.
3882 if test "${with_gameuser+set}" = set; then :
3883 withval=$with_gameuser;
3884 fi
3885
3886 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3887 && gameuser="${with_gameuser}"
3888 test "X$gameuser" = X && gameuser=games
3889
3890
3891 # Check whether --with-gnustep-conf was given.
3892 if test "${with_gnustep_conf+set}" = set; then :
3893 withval=$with_gnustep_conf;
3894 fi
3895
3896 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3897 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3898 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3899 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3900
3901 # Check whether --enable-ns-self-contained was given.
3902 if test "${enable_ns_self_contained+set}" = set; then :
3903 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3904 else
3905 EN_NS_SELF_CONTAINED=yes
3906 fi
3907
3908
3909 # Check whether --enable-asserts was given.
3910 if test "${enable_asserts+set}" = set; then :
3911 enableval=$enable_asserts; USE_XASSERTS=$enableval
3912 else
3913 USE_XASSERTS=no
3914 fi
3915
3916
3917 # Check whether --enable-maintainer-mode was given.
3918 if test "${enable_maintainer_mode+set}" = set; then :
3919 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3920 else
3921 USE_MAINTAINER_MODE=no
3922 fi
3923
3924 if test $USE_MAINTAINER_MODE = yes; then
3925 MAINT=
3926 else
3927 MAINT=#
3928 fi
3929
3930
3931 # Check whether --enable-locallisppath was given.
3932 if test "${enable_locallisppath+set}" = set; then :
3933 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3934 locallisppath=
3935 elif test "${enableval}" != "yes"; then
3936 locallisppath=${enableval}
3937 fi
3938 fi
3939
3940
3941 # Check whether --enable-checking was given.
3942 if test "${enable_checking+set}" = set; then :
3943 enableval=$enable_checking; ac_checking_flags="${enableval}"
3944 fi
3945
3946 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3947 for check in $ac_checking_flags
3948 do
3949 case $check in
3950 # these set all the flags to specific states
3951 yes) ac_enable_checking=1 ;;
3952 no) ac_enable_checking= ;
3953 ac_gc_check_stringbytes= ;
3954 ac_gc_check_string_overrun= ;
3955 ac_gc_check_string_free_list= ;
3956 ac_xmalloc_overrun= ;
3957 ac_gc_check_cons_list= ;;
3958 all) ac_enable_checking=1 ;
3959 ac_gc_check_stringbytes=1 ;
3960 ac_gc_check_string_overrun=1 ;
3961 ac_gc_check_string_free_list=1 ;
3962 ac_xmalloc_overrun=1 ;
3963 ac_gc_check_cons_list=1 ;;
3964 # these enable particular checks
3965 stringbytes) ac_gc_check_stringbytes=1 ;;
3966 stringoverrun) ac_gc_check_string_overrun=1 ;;
3967 stringfreelist) ac_gc_check_string_free_list=1 ;;
3968 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3969 conslist) ac_gc_check_cons_list=1 ;;
3970 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3971 esac
3972 done
3973 IFS="$ac_save_IFS"
3974
3975 if test x$ac_enable_checking != x ; then
3976
3977 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3978
3979 fi
3980 if test x$ac_gc_check_stringbytes != x ; then
3981
3982 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3983
3984 fi
3985 if test x$ac_gc_check_stringoverrun != x ; then
3986
3987 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3988
3989 fi
3990 if test x$ac_gc_check_string_free_list != x ; then
3991
3992 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3993
3994 fi
3995 if test x$ac_xmalloc_overrun != x ; then
3996
3997 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3998
3999 fi
4000 if test x$ac_gc_check_cons_list != x ; then
4001
4002 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4003
4004 fi
4005
4006 # Check whether --enable-use-lisp-union-type was given.
4007 if test "${enable_use_lisp_union_type+set}" = set; then :
4008 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4009
4010 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4011
4012 fi
4013 fi
4014
4015
4016
4017 # Check whether --enable-profiling was given.
4018 if test "${enable_profiling+set}" = set; then :
4019 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4020 fi
4021
4022 if test x$ac_enable_profiling != x ; then
4023 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4024 else
4025 PROFILING_CFLAGS=
4026 fi
4027
4028
4029 # Check whether --enable-autodepend was given.
4030 if test "${enable_autodepend+set}" = set; then :
4031 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4032 else
4033 ac_enable_autodepend=yes
4034 fi
4035
4036
4037 #### Make srcdir absolute, if it isn't already. It's important to
4038 #### avoid running the path through pwd unnecessarily, since pwd can
4039 #### give you automounter prefixes, which can go away. We do all this
4040 #### so Emacs can find its files when run uninstalled.
4041 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4042 unset CDPATH
4043 case "${srcdir}" in
4044 /* ) ;;
4045 . )
4046 ## We may be able to use the $PWD environment variable to make this
4047 ## absolute. But sometimes PWD is inaccurate.
4048 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4049 ## but that tested only for a well-formed and valid PWD,
4050 ## it did not object when PWD was well-formed and valid but just wrong.
4051 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4052 then
4053 srcdir="$PWD"
4054 else
4055 srcdir="`(cd ${srcdir}; pwd)`"
4056 fi
4057 ;;
4058 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4059 esac
4060
4061 #### Check if the source directory already has a configured system in it.
4062 if test `pwd` != `(cd ${srcdir} && pwd)` \
4063 && test -f "${srcdir}/src/config.h" ; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4065 as a build directory right now; it has been configured in its own
4066 right. To configure in another directory as well, you MUST
4067 use GNU make. If you do not have GNU make, then you must
4068 now do \`make distclean' in ${srcdir},
4069 and then run $0 again." >&5
4070 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4071 as a build directory right now; it has been configured in its own
4072 right. To configure in another directory as well, you MUST
4073 use GNU make. If you do not have GNU make, then you must
4074 now do \`make distclean' in ${srcdir},
4075 and then run $0 again." >&2;}
4076 fi
4077
4078 #### Given the configuration name, set machfile and opsysfile to the
4079 #### names of the m/*.h and s/*.h files we should use.
4080
4081 ### Canonicalize the configuration name.
4082
4083 # Make sure we can run config.sub.
4084 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4085 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4088 $as_echo_n "checking build system type... " >&6; }
4089 if ${ac_cv_build+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_build_alias=$build_alias
4093 test "x$ac_build_alias" = x &&
4094 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4095 test "x$ac_build_alias" = x &&
4096 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4097 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4098 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4099
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4102 $as_echo "$ac_cv_build" >&6; }
4103 case $ac_cv_build in
4104 *-*-*) ;;
4105 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4106 esac
4107 build=$ac_cv_build
4108 ac_save_IFS=$IFS; IFS='-'
4109 set x $ac_cv_build
4110 shift
4111 build_cpu=$1
4112 build_vendor=$2
4113 shift; shift
4114 # Remember, the first character of IFS is used to create $*,
4115 # except with old shells:
4116 build_os=$*
4117 IFS=$ac_save_IFS
4118 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4119
4120
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4122 $as_echo_n "checking host system type... " >&6; }
4123 if ${ac_cv_host+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test "x$host_alias" = x; then
4127 ac_cv_host=$ac_cv_build
4128 else
4129 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4130 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4131 fi
4132
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4135 $as_echo "$ac_cv_host" >&6; }
4136 case $ac_cv_host in
4137 *-*-*) ;;
4138 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4139 esac
4140 host=$ac_cv_host
4141 ac_save_IFS=$IFS; IFS='-'
4142 set x $ac_cv_host
4143 shift
4144 host_cpu=$1
4145 host_vendor=$2
4146 shift; shift
4147 # Remember, the first character of IFS is used to create $*,
4148 # except with old shells:
4149 host_os=$*
4150 IFS=$ac_save_IFS
4151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4152
4153
4154 canonical=$host
4155 configuration=${host_alias-${build_alias-$host}}
4156
4157
4158
4159 ### If you add support for a new configuration, add code to this
4160 ### switch statement to recognize your configuration name and select
4161 ### the appropriate operating system and machine description files.
4162
4163 ### You would hope that you could choose an m/*.h file pretty much
4164 ### based on the machine portion of the configuration name, and an s/*.h
4165 ### file based on the operating system portion. However, it turns out
4166 ### that each m/*.h file is pretty manufacturer-specific - for
4167 ### example mips.h is MIPS
4168 ### So we basically have to have a special case for each
4169 ### configuration name.
4170 ###
4171 ### As far as handling version numbers on operating systems is
4172 ### concerned, make sure things will fail in a fixable way. If
4173 ### /etc/MACHINES doesn't say anything about version numbers, be
4174 ### prepared to handle anything reasonably. If version numbers
4175 ### matter, be sure /etc/MACHINES says something about it.
4176
4177 machine='' opsys='' unported=no
4178 case "${canonical}" in
4179
4180 ## GNU/Linux ports
4181 *-*-linux-gnu*)
4182 opsys=gnu-linux
4183 case ${canonical} in
4184 alpha*) machine=alpha ;;
4185 s390-*) machine=ibms390 ;;
4186 s390x-*) machine=ibms390x ;;
4187 powerpc*) machine=macppc ;;
4188 sparc*) machine=sparc ;;
4189 ia64*) machine=ia64 ;;
4190 m68k*) machine=m68k ;;
4191 x86_64*) machine=amdx86-64 ;;
4192 esac
4193 ;;
4194
4195 ## FreeBSD ports
4196 *-*-freebsd* )
4197 opsys=freebsd
4198 case "${canonical}" in
4199 alpha*) machine=alpha ;;
4200 amd64-*|x86_64-*) machine=amdx86-64 ;;
4201 ia64-*) machine=ia64 ;;
4202 i[3456]86-*) machine=intel386 ;;
4203 powerpc-*) machine=macppc ;;
4204 sparc-*) machine=sparc ;;
4205 sparc64-*) machine=sparc ;;
4206 esac
4207 ;;
4208
4209 ## FreeBSD kernel + glibc based userland
4210 *-*-kfreebsd*gnu* )
4211 opsys=gnu-kfreebsd
4212 case "${canonical}" in
4213 alpha*) machine=alpha ;;
4214 amd64-*|x86_64-*) machine=amdx86-64 ;;
4215 ia64-*) machine=ia64 ;;
4216 i[3456]86-*) machine=intel386 ;;
4217 powerpc-*) machine=macppc ;;
4218 sparc-*) machine=sparc ;;
4219 sparc64-*) machine=sparc ;;
4220 esac
4221 ;;
4222
4223 ## NetBSD ports
4224 *-*-netbsd* )
4225 opsys=netbsd
4226 case "${canonical}" in
4227 alpha*) machine=alpha ;;
4228 x86_64-*) machine=amdx86-64 ;;
4229 i[3456]86-*) machine=intel386 ;;
4230 m68k-*) machine=m68k ;;
4231 powerpc-*) machine=macppc ;;
4232 sparc*-) machine=sparc ;;
4233 vax-*) machine=vax ;;
4234 esac
4235 ;;
4236
4237 ## OpenBSD ports
4238 *-*-openbsd* )
4239 opsys=openbsd
4240 case "${canonical}" in
4241 alpha*) machine=alpha ;;
4242 x86_64-*) machine=amdx86-64 ;;
4243 i386-*) machine=intel386 ;;
4244 powerpc-*) machine=macppc ;;
4245 sparc*) machine=sparc ;;
4246 vax-*) machine=vax ;;
4247 esac
4248 ;;
4249
4250 ## Apple Darwin / Mac OS X
4251 *-apple-darwin* )
4252 case "${canonical}" in
4253 i[3456]86-* ) machine=intel386 ;;
4254 powerpc-* ) machine=macppc ;;
4255 x86_64-* ) machine=amdx86-64 ;;
4256 * ) unported=yes ;;
4257 esac
4258 opsys=darwin
4259 # Define CPP as follows to make autoconf work correctly.
4260 CPP="${CC-cc} -E -no-cpp-precomp"
4261 # Use fink packages if available.
4262 if test -d /sw/include && test -d /sw/lib; then
4263 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4264 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4265 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4266 fi
4267 ;;
4268
4269 ## HP 9000 series 700 and 800, running HP/UX
4270 hppa*-hp-hpux10.2* )
4271 opsys=hpux10-20
4272 ;;
4273 hppa*-hp-hpux1[1-9]* )
4274 opsys=hpux11
4275 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4276 ;;
4277
4278 ia64*-hp-hpux1[1-9]* )
4279 machine=hp800 opsys=hpux11
4280 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4281 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4282 CANNOT_DUMP=yes
4283 ;;
4284
4285 hppa*-*-linux-gnu* )
4286 machine=hp800 opsys=gnu-linux
4287 ;;
4288
4289 ## IBM machines
4290 rs6000-ibm-aix4.[23]* )
4291 machine=ibmrs6000 opsys=aix4-2
4292 ;;
4293 powerpc-ibm-aix4.[23]* )
4294 machine=ibmrs6000 opsys=aix4-2
4295 ;;
4296 rs6000-ibm-aix[56]* )
4297 machine=ibmrs6000 opsys=aix4-2
4298 ;;
4299 powerpc-ibm-aix[56]* )
4300 machine=ibmrs6000 opsys=aix4-2
4301 ;;
4302
4303 ## Silicon Graphics machines
4304 ## Iris 4D
4305 mips-sgi-irix6.5 )
4306 machine=iris4d opsys=irix6-5
4307 # Without defining _LANGUAGE_C, things get masked out in the headers
4308 # so that, for instance, grepping for `free' in stdlib.h fails and
4309 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4310 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4311 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4312 ;;
4313
4314 ## Suns
4315 *-sun-solaris* \
4316 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4317 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4318 case "${canonical}" in
4319 i[3456]86-*-* ) machine=intel386 ;;
4320 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4321 sparc* ) machine=sparc ;;
4322 * ) unported=yes ;;
4323 esac
4324 case "${canonical}" in
4325 *-sunos5.6* | *-solaris2.6* )
4326 opsys=sol2-6
4327 NON_GNU_CPP=/usr/ccs/lib/cpp
4328 RANLIB="ar -ts"
4329 ;;
4330 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4331 opsys=sol2-6
4332 emacs_check_sunpro_c=yes
4333 NON_GNU_CPP=/usr/ccs/lib/cpp
4334 ;;
4335 *-sunos5* | *-solaris* )
4336 opsys=sol2-10
4337 emacs_check_sunpro_c=yes
4338 NON_GNU_CPP=/usr/ccs/lib/cpp
4339 ;;
4340 esac
4341 ## Watch out for a compiler that we know will not work.
4342 case "${canonical}" in
4343 *-solaris* | *-sunos5* )
4344 if [ "x$CC" = x/usr/ucb/cc ]; then
4345 ## /usr/ucb/cc doesn't work;
4346 ## we should find some other compiler that does work.
4347 unset CC
4348 fi
4349 ;;
4350 *) ;;
4351 esac
4352 ;;
4353
4354 ## Intel 386 machines where we don't care about the manufacturer.
4355 i[3456]86-*-* )
4356 machine=intel386
4357 case "${canonical}" in
4358 *-cygwin ) opsys=cygwin ;;
4359 *-darwin* ) opsys=darwin
4360 CPP="${CC-cc} -E -no-cpp-precomp"
4361 ;;
4362 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4363 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4364 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4365 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4366 esac
4367 ;;
4368
4369 * )
4370 unported=yes
4371 ;;
4372 esac
4373
4374 ### If the code above didn't choose an operating system, just choose
4375 ### an operating system based on the configuration name. You really
4376 ### only want to use this when you have no idea what the right
4377 ### operating system is; if you know what operating systems a machine
4378 ### runs, it's cleaner to make it explicit in the case statement
4379 ### above.
4380 if test x"${opsys}" = x; then
4381 case "${canonical}" in
4382 *-gnu* ) opsys=gnu ;;
4383 * )
4384 unported=yes
4385 ;;
4386 esac
4387 fi
4388
4389
4390
4391 if test $unported = yes; then
4392 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4393 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4394 fi
4395
4396 if test -n "$machine"; then
4397 machfile="m/${machine}.h"
4398 else
4399 machfile=
4400 fi
4401 opsysfile="s/${opsys}.h"
4402
4403
4404 #### Choose a compiler.
4405 test -n "$CC" && cc_specified=yes
4406
4407 # Save the value of CFLAGS that the user specified.
4408 SPECIFIED_CFLAGS="$CFLAGS"
4409
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415 if test -n "$ac_tool_prefix"; then
4416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_CC+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437 done
4438 done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 CC=$ac_cv_prog_CC
4444 if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 fi
4451
4452
4453 fi
4454 if test -z "$ac_cv_prog_CC"; then
4455 ac_ct_CC=$CC
4456 # Extract the first word of "gcc", so it can be a program name with args.
4457 set dummy gcc; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 if test -n "$ac_ct_CC"; then
4464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_ac_ct_CC="gcc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 fi
4482 fi
4483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4484 if test -n "$ac_ct_CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4486 $as_echo "$ac_ct_CC" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491
4492 if test "x$ac_ct_CC" = x; then
4493 CC=""
4494 else
4495 case $cross_compiling:$ac_tool_warned in
4496 yes:)
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499 ac_tool_warned=yes ;;
4500 esac
4501 CC=$ac_ct_CC
4502 fi
4503 else
4504 CC="$ac_cv_prog_CC"
4505 fi
4506
4507 if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}cc; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_CC+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC="$CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_CC="${ac_tool_prefix}cc"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 fi
4535 fi
4536 CC=$ac_cv_prog_CC
4537 if test -n "$CC"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4539 $as_echo "$CC" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4545
4546 fi
4547 fi
4548 if test -z "$CC"; then
4549 # Extract the first word of "cc", so it can be a program name with args.
4550 set dummy cc; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CC+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC="$CC" # Let the user override the test.
4558 else
4559 ac_prog_rejected=no
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4568 ac_prog_rejected=yes
4569 continue
4570 fi
4571 ac_cv_prog_CC="cc"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 if test $ac_prog_rejected = yes; then
4580 # We found a bogon in the path, so make sure we never use it.
4581 set dummy $ac_cv_prog_CC
4582 shift
4583 if test $# != 0; then
4584 # We chose a different compiler from the bogus one.
4585 # However, it has the same basename, so the bogon will be chosen
4586 # first if we set CC to just the basename; use the full file name.
4587 shift
4588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4589 fi
4590 fi
4591 fi
4592 fi
4593 CC=$ac_cv_prog_CC
4594 if test -n "$CC"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4596 $as_echo "$CC" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601
4602
4603 fi
4604 if test -z "$CC"; then
4605 if test -n "$ac_tool_prefix"; then
4606 for ac_prog in cl.exe
4607 do
4608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_prog_CC+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$CC"; then
4616 ac_cv_prog_CC="$CC" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 CC=$ac_cv_prog_CC
4636 if test -n "$CC"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4638 $as_echo "$CC" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643
4644
4645 test -n "$CC" && break
4646 done
4647 fi
4648 if test -z "$CC"; then
4649 ac_ct_CC=$CC
4650 for ac_prog in cl.exe
4651 do
4652 # Extract the first word of "$ac_prog", so it can be a program name with args.
4653 set dummy $ac_prog; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$ac_ct_CC"; then
4660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_CC="$ac_prog"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 fi
4678 fi
4679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4680 if test -n "$ac_ct_CC"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4682 $as_echo "$ac_ct_CC" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4686 fi
4687
4688
4689 test -n "$ac_ct_CC" && break
4690 done
4691
4692 if test "x$ac_ct_CC" = x; then
4693 CC=""
4694 else
4695 case $cross_compiling:$ac_tool_warned in
4696 yes:)
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4699 ac_tool_warned=yes ;;
4700 esac
4701 CC=$ac_ct_CC
4702 fi
4703 fi
4704
4705 fi
4706
4707
4708 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4710 as_fn_error $? "no acceptable C compiler found in \$PATH
4711 See \`config.log' for more details" "$LINENO" 5; }
4712
4713 # Provide some information about the compiler.
4714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4715 set X $ac_compile
4716 ac_compiler=$2
4717 for ac_option in --version -v -V -qversion; do
4718 { { ac_try="$ac_compiler $ac_option >&5"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4726 ac_status=$?
4727 if test -s conftest.err; then
4728 sed '10a\
4729 ... rest of stderr output deleted ...
4730 10q' conftest.err >conftest.er1
4731 cat conftest.er1 >&5
4732 fi
4733 rm -f conftest.er1 conftest.err
4734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4735 test $ac_status = 0; }
4736 done
4737
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740
4741 int
4742 main ()
4743 {
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 ac_clean_files_save=$ac_clean_files
4750 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4751 # Try to create an executable without -o first, disregard a.out.
4752 # It will help us diagnose broken compilers, and finding out an intuition
4753 # of exeext.
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4755 $as_echo_n "checking whether the C compiler works... " >&6; }
4756 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4757
4758 # The possible output files:
4759 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4760
4761 ac_rmfiles=
4762 for ac_file in $ac_files
4763 do
4764 case $ac_file in
4765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4767 esac
4768 done
4769 rm -f $ac_rmfiles
4770
4771 if { { ac_try="$ac_link_default"
4772 case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4777 $as_echo "$ac_try_echo"; } >&5
4778 (eval "$ac_link_default") 2>&5
4779 ac_status=$?
4780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4781 test $ac_status = 0; }; then :
4782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4785 # so that the user can short-circuit this test for compilers unknown to
4786 # Autoconf.
4787 for ac_file in $ac_files ''
4788 do
4789 test -f "$ac_file" || continue
4790 case $ac_file in
4791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4792 ;;
4793 [ab].out )
4794 # We found the default executable, but exeext='' is most
4795 # certainly right.
4796 break;;
4797 *.* )
4798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4799 then :; else
4800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4801 fi
4802 # We set ac_cv_exeext here because the later test for it is not
4803 # safe: cross compilers may not add the suffix if given an `-o'
4804 # argument, so we may need to know it at that point already.
4805 # Even if this section looks crufty: it has the advantage of
4806 # actually working.
4807 break;;
4808 * )
4809 break;;
4810 esac
4811 done
4812 test "$ac_cv_exeext" = no && ac_cv_exeext=
4813
4814 else
4815 ac_file=''
4816 fi
4817 if test -z "$ac_file"; then :
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 $as_echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4825 as_fn_error 77 "C compiler cannot create executables
4826 See \`config.log' for more details" "$LINENO" 5; }
4827 else
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4829 $as_echo "yes" >&6; }
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4832 $as_echo_n "checking for C compiler default output file name... " >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4834 $as_echo "$ac_file" >&6; }
4835 ac_exeext=$ac_cv_exeext
4836
4837 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4838 ac_clean_files=$ac_clean_files_save
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4840 $as_echo_n "checking for suffix of executables... " >&6; }
4841 if { { ac_try="$ac_link"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847 $as_echo "$ac_try_echo"; } >&5
4848 (eval "$ac_link") 2>&5
4849 ac_status=$?
4850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4851 test $ac_status = 0; }; then :
4852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4854 # work properly (i.e., refer to `conftest.exe'), while it won't with
4855 # `rm'.
4856 for ac_file in conftest.exe conftest conftest.*; do
4857 test -f "$ac_file" || continue
4858 case $ac_file in
4859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4861 break;;
4862 * ) break;;
4863 esac
4864 done
4865 else
4866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4868 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4869 See \`config.log' for more details" "$LINENO" 5; }
4870 fi
4871 rm -f conftest conftest$ac_cv_exeext
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4873 $as_echo "$ac_cv_exeext" >&6; }
4874
4875 rm -f conftest.$ac_ext
4876 EXEEXT=$ac_cv_exeext
4877 ac_exeext=$EXEEXT
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4880 #include <stdio.h>
4881 int
4882 main ()
4883 {
4884 FILE *f = fopen ("conftest.out", "w");
4885 return ferror (f) || fclose (f) != 0;
4886
4887 ;
4888 return 0;
4889 }
4890 _ACEOF
4891 ac_clean_files="$ac_clean_files conftest.out"
4892 # Check that the compiler produces executables we can run. If not, either
4893 # the compiler is broken, or we cross compile.
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4895 $as_echo_n "checking whether we are cross compiling... " >&6; }
4896 if test "$cross_compiling" != yes; then
4897 { { ac_try="$ac_link"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4903 $as_echo "$ac_try_echo"; } >&5
4904 (eval "$ac_link") 2>&5
4905 ac_status=$?
4906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4907 test $ac_status = 0; }
4908 if { ac_try='./conftest$ac_cv_exeext'
4909 { { case "(($ac_try" in
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4912 esac
4913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4914 $as_echo "$ac_try_echo"; } >&5
4915 (eval "$ac_try") 2>&5
4916 ac_status=$?
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }; }; then
4919 cross_compiling=no
4920 else
4921 if test "$cross_compiling" = maybe; then
4922 cross_compiling=yes
4923 else
4924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error $? "cannot run C compiled programs.
4927 If you meant to cross compile, use \`--host'.
4928 See \`config.log' for more details" "$LINENO" 5; }
4929 fi
4930 fi
4931 fi
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4933 $as_echo "$cross_compiling" >&6; }
4934
4935 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4936 ac_clean_files=$ac_clean_files_save
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4938 $as_echo_n "checking for suffix of object files... " >&6; }
4939 if ${ac_cv_objext+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944
4945 int
4946 main ()
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.o conftest.obj
4954 if { { ac_try="$ac_compile"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4960 $as_echo "$ac_try_echo"; } >&5
4961 (eval "$ac_compile") 2>&5
4962 ac_status=$?
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }; then :
4965 for ac_file in conftest.o conftest.obj conftest.*; do
4966 test -f "$ac_file" || continue;
4967 case $ac_file in
4968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4970 break;;
4971 esac
4972 done
4973 else
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4979 as_fn_error $? "cannot compute suffix of object files: cannot compile
4980 See \`config.log' for more details" "$LINENO" 5; }
4981 fi
4982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4985 $as_echo "$ac_cv_objext" >&6; }
4986 OBJEXT=$ac_cv_objext
4987 ac_objext=$OBJEXT
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4990 if ${ac_cv_c_compiler_gnu+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995
4996 int
4997 main ()
4998 {
4999 #ifndef __GNUC__
5000 choke me
5001 #endif
5002
5003 ;
5004 return 0;
5005 }
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 ac_compiler_gnu=yes
5009 else
5010 ac_compiler_gnu=no
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5014
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5018 if test $ac_compiler_gnu = yes; then
5019 GCC=yes
5020 else
5021 GCC=
5022 fi
5023 ac_test_CFLAGS=${CFLAGS+set}
5024 ac_save_CFLAGS=$CFLAGS
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5027 if ${ac_cv_prog_cc_g+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 ac_save_c_werror_flag=$ac_c_werror_flag
5031 ac_c_werror_flag=yes
5032 ac_cv_prog_cc_g=no
5033 CFLAGS="-g"
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036
5037 int
5038 main ()
5039 {
5040
5041 ;
5042 return 0;
5043 }
5044 _ACEOF
5045 if ac_fn_c_try_compile "$LINENO"; then :
5046 ac_cv_prog_cc_g=yes
5047 else
5048 CFLAGS=""
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051
5052 int
5053 main ()
5054 {
5055
5056 ;
5057 return 0;
5058 }
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"; then :
5061
5062 else
5063 ac_c_werror_flag=$ac_save_c_werror_flag
5064 CFLAGS="-g"
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067
5068 int
5069 main ()
5070 {
5071
5072 ;
5073 return 0;
5074 }
5075 _ACEOF
5076 if ac_fn_c_try_compile "$LINENO"; then :
5077 ac_cv_prog_cc_g=yes
5078 fi
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5084 ac_c_werror_flag=$ac_save_c_werror_flag
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5087 $as_echo "$ac_cv_prog_cc_g" >&6; }
5088 if test "$ac_test_CFLAGS" = set; then
5089 CFLAGS=$ac_save_CFLAGS
5090 elif test $ac_cv_prog_cc_g = yes; then
5091 if test "$GCC" = yes; then
5092 CFLAGS="-g -O2"
5093 else
5094 CFLAGS="-g"
5095 fi
5096 else
5097 if test "$GCC" = yes; then
5098 CFLAGS="-O2"
5099 else
5100 CFLAGS=
5101 fi
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5105 if ${ac_cv_prog_cc_c89+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 ac_cv_prog_cc_c89=no
5109 ac_save_CC=$CC
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 #include <stdarg.h>
5113 #include <stdio.h>
5114 #include <sys/types.h>
5115 #include <sys/stat.h>
5116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5117 struct buf { int x; };
5118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5119 static char *e (p, i)
5120 char **p;
5121 int i;
5122 {
5123 return p[i];
5124 }
5125 static char *f (char * (*g) (char **, int), char **p, ...)
5126 {
5127 char *s;
5128 va_list v;
5129 va_start (v,p);
5130 s = g (p, va_arg (v,int));
5131 va_end (v);
5132 return s;
5133 }
5134
5135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5136 function prototypes and stuff, but not '\xHH' hex character constants.
5137 These don't provoke an error unfortunately, instead are silently treated
5138 as 'x'. The following induces an error, until -std is added to get
5139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5140 array size at least. It's necessary to write '\x00'==0 to get something
5141 that's true only with -std. */
5142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5143
5144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5145 inside strings and character constants. */
5146 #define FOO(x) 'x'
5147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5148
5149 int test (int i, double x);
5150 struct s1 {int (*f) (int a);};
5151 struct s2 {int (*f) (double a);};
5152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5153 int argc;
5154 char **argv;
5155 int
5156 main ()
5157 {
5158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5165 do
5166 CC="$ac_save_CC $ac_arg"
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_cv_prog_cc_c89=$ac_arg
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext
5171 test "x$ac_cv_prog_cc_c89" != "xno" && break
5172 done
5173 rm -f conftest.$ac_ext
5174 CC=$ac_save_CC
5175
5176 fi
5177 # AC_CACHE_VAL
5178 case "x$ac_cv_prog_cc_c89" in
5179 x)
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5181 $as_echo "none needed" >&6; } ;;
5182 xno)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5184 $as_echo "unsupported" >&6; } ;;
5185 *)
5186 CC="$CC $ac_cv_prog_cc_c89"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5188 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5189 esac
5190 if test "x$ac_cv_prog_cc_c89" != xno; then :
5191
5192 fi
5193
5194 ac_ext=c
5195 ac_cpp='$CPP $CPPFLAGS'
5196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 DEPDIR="${am__leading_dot}deps"
5200
5201 ac_config_commands="$ac_config_commands depfiles"
5202
5203
5204 am_make=${MAKE-make}
5205 cat > confinc << 'END'
5206 am__doit:
5207 @echo this is the am__doit target
5208 .PHONY: am__doit
5209 END
5210 # If we don't find an include directive, just comment out the code.
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5212 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5213 am__include="#"
5214 am__quote=
5215 _am_result=none
5216 # First try GNU make style include.
5217 echo "include confinc" > confmf
5218 # Ignore all kinds of additional output from `make'.
5219 case `$am_make -s -f confmf 2> /dev/null` in #(
5220 *the\ am__doit\ target*)
5221 am__include=include
5222 am__quote=
5223 _am_result=GNU
5224 ;;
5225 esac
5226 # Now try BSD make style include.
5227 if test "$am__include" = "#"; then
5228 echo '.include "confinc"' > confmf
5229 case `$am_make -s -f confmf 2> /dev/null` in #(
5230 *the\ am__doit\ target*)
5231 am__include=.include
5232 am__quote="\""
5233 _am_result=BSD
5234 ;;
5235 esac
5236 fi
5237
5238
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5240 $as_echo "$_am_result" >&6; }
5241 rm -f confinc confmf
5242
5243 # Check whether --enable-dependency-tracking was given.
5244 if test "${enable_dependency_tracking+set}" = set; then :
5245 enableval=$enable_dependency_tracking;
5246 fi
5247
5248 if test "x$enable_dependency_tracking" != xno; then
5249 am_depcomp="$ac_aux_dir/depcomp"
5250 AMDEPBACKSLASH='\'
5251 fi
5252 if test "x$enable_dependency_tracking" != xno; then
5253 AMDEP_TRUE=
5254 AMDEP_FALSE='#'
5255 else
5256 AMDEP_TRUE='#'
5257 AMDEP_FALSE=
5258 fi
5259
5260
5261
5262 depcc="$CC" am_compiler_list=
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5265 $as_echo_n "checking dependency style of $depcc... " >&6; }
5266 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5274 # in D'.
5275 mkdir conftest.dir
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5279 cd conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5285 # directory.
5286 mkdir sub
5287
5288 am_cv_CC_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5291 fi
5292 am__universal=false
5293 case " $depcc " in #(
5294 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5295 esac
5296
5297 for depmode in $am_compiler_list; do
5298 # Setup a source with many dependencies, because some compilers
5299 # like to wrap large dependency lists on column 80 (with \), and
5300 # we should not choose a depcomp mode which is confused by this.
5301 #
5302 # We need to recreate these files for each test, as the compiler may
5303 # overwrite some of them when testing with obscure command lines.
5304 # This happens at least with the AIX C compiler.
5305 : > sub/conftest.c
5306 for i in 1 2 3 4 5 6; do
5307 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5308 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5309 # Solaris 8's {/usr,}/bin/sh.
5310 touch sub/conftst$i.h
5311 done
5312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5313
5314 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5315 # mode. It turns out that the SunPro C++ compiler does not properly
5316 # handle `-M -o', and we need to detect this. Also, some Intel
5317 # versions had trouble with output in subdirs
5318 am__obj=sub/conftest.${OBJEXT-o}
5319 am__minus_obj="-o $am__obj"
5320 case $depmode in
5321 gcc)
5322 # This depmode causes a compiler race in universal mode.
5323 test "$am__universal" = false || continue
5324 ;;
5325 nosideeffect)
5326 # after this tag, mechanisms are not by side-effect, so they'll
5327 # only be used when explicitly requested
5328 if test "x$enable_dependency_tracking" = xyes; then
5329 continue
5330 else
5331 break
5332 fi
5333 ;;
5334 msvisualcpp | msvcmsys)
5335 # This compiler won't grok `-c -o', but also, the minuso test has
5336 # not run yet. These depmodes are late enough in the game, and
5337 # so weak that their functioning should not be impacted.
5338 am__obj=conftest.${OBJEXT-o}
5339 am__minus_obj=
5340 ;;
5341 none) break ;;
5342 esac
5343 if depmode=$depmode \
5344 source=sub/conftest.c object=$am__obj \
5345 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5346 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5347 >/dev/null 2>conftest.err &&
5348 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5349 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5350 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5351 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5352 # icc doesn't choke on unknown options, it will just issue warnings
5353 # or remarks (even with -Werror). So we grep stderr for any message
5354 # that says an option was ignored or not supported.
5355 # When given -MP, icc 7.0 and 7.1 complain thusly:
5356 # icc: Command line warning: ignoring option '-M'; no argument required
5357 # The diagnosis changed in icc 8.0:
5358 # icc: Command line remark: option '-MP' not supported
5359 if (grep 'ignoring option' conftest.err ||
5360 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5361 am_cv_CC_dependencies_compiler_type=$depmode
5362 break
5363 fi
5364 fi
5365 done
5366
5367 cd ..
5368 rm -rf conftest.dir
5369 else
5370 am_cv_CC_dependencies_compiler_type=none
5371 fi
5372
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5375 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5376 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5377
5378 if
5379 test "x$enable_dependency_tracking" != xno \
5380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5381 am__fastdepCC_TRUE=
5382 am__fastdepCC_FALSE='#'
5383 else
5384 am__fastdepCC_TRUE='#'
5385 am__fastdepCC_FALSE=
5386 fi
5387
5388
5389 if test "x$CC" != xcc; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5391 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5394 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5395 fi
5396 set dummy $CC; ac_cc=`$as_echo "$2" |
5397 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5398 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403
5404 int
5405 main ()
5406 {
5407
5408 ;
5409 return 0;
5410 }
5411 _ACEOF
5412 # Make sure it works both with $CC and with simple cc.
5413 # We do the test twice because some compilers refuse to overwrite an
5414 # existing .o file with -o, though they will create one.
5415 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5416 rm -f conftest2.*
5417 if { { case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5422 $as_echo "$ac_try_echo"; } >&5
5423 (eval "$ac_try") 2>&5
5424 ac_status=$?
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; } &&
5427 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430 esac
5431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5432 $as_echo "$ac_try_echo"; } >&5
5433 (eval "$ac_try") 2>&5
5434 ac_status=$?
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; };
5437 then
5438 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5439 if test "x$CC" != xcc; then
5440 # Test first that cc exists at all.
5441 if { ac_try='cc -c conftest.$ac_ext >&5'
5442 { { case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5445 esac
5446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5447 $as_echo "$ac_try_echo"; } >&5
5448 (eval "$ac_try") 2>&5
5449 ac_status=$?
5450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5451 test $ac_status = 0; }; }; then
5452 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5453 rm -f conftest2.*
5454 if { { case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457 esac
5458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5459 $as_echo "$ac_try_echo"; } >&5
5460 (eval "$ac_try") 2>&5
5461 ac_status=$?
5462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5463 test $ac_status = 0; } &&
5464 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467 esac
5468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5469 $as_echo "$ac_try_echo"; } >&5
5470 (eval "$ac_try") 2>&5
5471 ac_status=$?
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; };
5474 then
5475 # cc works too.
5476 :
5477 else
5478 # cc exists but doesn't like -o.
5479 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5480 fi
5481 fi
5482 fi
5483 else
5484 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5485 fi
5486 rm -f core conftest*
5487
5488 fi
5489 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5491 $as_echo "yes" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495
5496 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5497
5498 fi
5499
5500 # FIXME: we rely on the cache variable name because
5501 # there is no other way.
5502 set dummy $CC
5503 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5504 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5505 if test "$am_t" != yes; then
5506 # Losing compiler, so override with the script.
5507 # FIXME: It is wrong to rewrite CC.
5508 # But if we don't then we get into trouble of one sort or another.
5509 # A longer-term fix would be to have automake use am__CC in this case,
5510 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5511 CC="$am_aux_dir/compile $CC"
5512 fi
5513
5514
5515
5516 # Initialize gnulib right after verifying that the C compiler works.
5517 if test -n "$ac_tool_prefix"; then
5518 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_RANLIB+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$RANLIB"; then
5526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5535 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539 done
5540 done
5541 IFS=$as_save_IFS
5542
5543 fi
5544 fi
5545 RANLIB=$ac_cv_prog_RANLIB
5546 if test -n "$RANLIB"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5548 $as_echo "$RANLIB" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553
5554
5555 fi
5556 if test -z "$ac_cv_prog_RANLIB"; then
5557 ac_ct_RANLIB=$RANLIB
5558 # Extract the first word of "ranlib", so it can be a program name with args.
5559 set dummy ranlib; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5563 $as_echo_n "(cached) " >&6
5564 else
5565 if test -n "$ac_ct_RANLIB"; then
5566 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_ac_ct_RANLIB="ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579 done
5580 done
5581 IFS=$as_save_IFS
5582
5583 fi
5584 fi
5585 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5586 if test -n "$ac_ct_RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5588 $as_echo "$ac_ct_RANLIB" >&6; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594 if test "x$ac_ct_RANLIB" = x; then
5595 RANLIB=":"
5596 else
5597 case $cross_compiling:$ac_tool_warned in
5598 yes:)
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601 ac_tool_warned=yes ;;
5602 esac
5603 RANLIB=$ac_ct_RANLIB
5604 fi
5605 else
5606 RANLIB="$ac_cv_prog_RANLIB"
5607 fi
5608
5609
5610 ac_ext=c
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5616 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5617 # On Suns, sometimes $CPP names a directory.
5618 if test -n "$CPP" && test -d "$CPP"; then
5619 CPP=
5620 fi
5621 if test -z "$CPP"; then
5622 if ${ac_cv_prog_CPP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 # Double quotes because CPP needs to be expanded
5626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5627 do
5628 ac_preproc_ok=false
5629 for ac_c_preproc_warn_flag in '' yes
5630 do
5631 # Use a header file that comes with gcc, so configuring glibc
5632 # with a fresh cross-compiler works.
5633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5634 # <limits.h> exists even on freestanding compilers.
5635 # On the NeXT, cc -E runs the code through the compiler's parser,
5636 # not just through cpp. "Syntax error" is here to catch this case.
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #ifdef __STDC__
5640 # include <limits.h>
5641 #else
5642 # include <assert.h>
5643 #endif
5644 Syntax error
5645 _ACEOF
5646 if ac_fn_c_try_cpp "$LINENO"; then :
5647
5648 else
5649 # Broken: fails on valid input.
5650 continue
5651 fi
5652 rm -f conftest.err conftest.i conftest.$ac_ext
5653
5654 # OK, works on sane cases. Now check whether nonexistent headers
5655 # can be detected and how.
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <ac_nonexistent.h>
5659 _ACEOF
5660 if ac_fn_c_try_cpp "$LINENO"; then :
5661 # Broken: success on invalid input.
5662 continue
5663 else
5664 # Passes both tests.
5665 ac_preproc_ok=:
5666 break
5667 fi
5668 rm -f conftest.err conftest.i conftest.$ac_ext
5669
5670 done
5671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672 rm -f conftest.i conftest.err conftest.$ac_ext
5673 if $ac_preproc_ok; then :
5674 break
5675 fi
5676
5677 done
5678 ac_cv_prog_CPP=$CPP
5679
5680 fi
5681 CPP=$ac_cv_prog_CPP
5682 else
5683 ac_cv_prog_CPP=$CPP
5684 fi
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5686 $as_echo "$CPP" >&6; }
5687 ac_preproc_ok=false
5688 for ac_c_preproc_warn_flag in '' yes
5689 do
5690 # Use a header file that comes with gcc, so configuring glibc
5691 # with a fresh cross-compiler works.
5692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5693 # <limits.h> exists even on freestanding compilers.
5694 # On the NeXT, cc -E runs the code through the compiler's parser,
5695 # not just through cpp. "Syntax error" is here to catch this case.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #ifdef __STDC__
5699 # include <limits.h>
5700 #else
5701 # include <assert.h>
5702 #endif
5703 Syntax error
5704 _ACEOF
5705 if ac_fn_c_try_cpp "$LINENO"; then :
5706
5707 else
5708 # Broken: fails on valid input.
5709 continue
5710 fi
5711 rm -f conftest.err conftest.i conftest.$ac_ext
5712
5713 # OK, works on sane cases. Now check whether nonexistent headers
5714 # can be detected and how.
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <ac_nonexistent.h>
5718 _ACEOF
5719 if ac_fn_c_try_cpp "$LINENO"; then :
5720 # Broken: success on invalid input.
5721 continue
5722 else
5723 # Passes both tests.
5724 ac_preproc_ok=:
5725 break
5726 fi
5727 rm -f conftest.err conftest.i conftest.$ac_ext
5728
5729 done
5730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5731 rm -f conftest.i conftest.err conftest.$ac_ext
5732 if $ac_preproc_ok; then :
5733
5734 else
5735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5737 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5738 See \`config.log' for more details" "$LINENO" 5; }
5739 fi
5740
5741 ac_ext=c
5742 ac_cpp='$CPP $CPPFLAGS'
5743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5746
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5749 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5750 if ${ac_cv_path_GREP+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 if test -z "$GREP"; then
5754 ac_path_GREP_found=false
5755 # Loop through the user's path and test for each of PROGNAME-LIST
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5758 do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_prog in grep ggrep; do
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5764 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5765 # Check for GNU ac_path_GREP and select it if it is found.
5766 # Check for GNU $ac_path_GREP
5767 case `"$ac_path_GREP" --version 2>&1` in
5768 *GNU*)
5769 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5770 *)
5771 ac_count=0
5772 $as_echo_n 0123456789 >"conftest.in"
5773 while :
5774 do
5775 cat "conftest.in" "conftest.in" >"conftest.tmp"
5776 mv "conftest.tmp" "conftest.in"
5777 cp "conftest.in" "conftest.nl"
5778 $as_echo 'GREP' >> "conftest.nl"
5779 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5781 as_fn_arith $ac_count + 1 && ac_count=$as_val
5782 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5783 # Best one so far, save it but keep looking for a better one
5784 ac_cv_path_GREP="$ac_path_GREP"
5785 ac_path_GREP_max=$ac_count
5786 fi
5787 # 10*(2^10) chars as input seems more than enough
5788 test $ac_count -gt 10 && break
5789 done
5790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5791 esac
5792
5793 $ac_path_GREP_found && break 3
5794 done
5795 done
5796 done
5797 IFS=$as_save_IFS
5798 if test -z "$ac_cv_path_GREP"; then
5799 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5800 fi
5801 else
5802 ac_cv_path_GREP=$GREP
5803 fi
5804
5805 fi
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5807 $as_echo "$ac_cv_path_GREP" >&6; }
5808 GREP="$ac_cv_path_GREP"
5809
5810
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5812 $as_echo_n "checking for egrep... " >&6; }
5813 if ${ac_cv_path_EGREP+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5817 then ac_cv_path_EGREP="$GREP -E"
5818 else
5819 if test -z "$EGREP"; then
5820 ac_path_EGREP_found=false
5821 # Loop through the user's path and test for each of PROGNAME-LIST
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5824 do
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_prog in egrep; do
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5830 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5831 # Check for GNU ac_path_EGREP and select it if it is found.
5832 # Check for GNU $ac_path_EGREP
5833 case `"$ac_path_EGREP" --version 2>&1` in
5834 *GNU*)
5835 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5836 *)
5837 ac_count=0
5838 $as_echo_n 0123456789 >"conftest.in"
5839 while :
5840 do
5841 cat "conftest.in" "conftest.in" >"conftest.tmp"
5842 mv "conftest.tmp" "conftest.in"
5843 cp "conftest.in" "conftest.nl"
5844 $as_echo 'EGREP' >> "conftest.nl"
5845 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5847 as_fn_arith $ac_count + 1 && ac_count=$as_val
5848 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5849 # Best one so far, save it but keep looking for a better one
5850 ac_cv_path_EGREP="$ac_path_EGREP"
5851 ac_path_EGREP_max=$ac_count
5852 fi
5853 # 10*(2^10) chars as input seems more than enough
5854 test $ac_count -gt 10 && break
5855 done
5856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5857 esac
5858
5859 $ac_path_EGREP_found && break 3
5860 done
5861 done
5862 done
5863 IFS=$as_save_IFS
5864 if test -z "$ac_cv_path_EGREP"; then
5865 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5866 fi
5867 else
5868 ac_cv_path_EGREP=$EGREP
5869 fi
5870
5871 fi
5872 fi
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5874 $as_echo "$ac_cv_path_EGREP" >&6; }
5875 EGREP="$ac_cv_path_EGREP"
5876
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5879 $as_echo_n "checking for ANSI C header files... " >&6; }
5880 if ${ac_cv_header_stdc+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #include <stdlib.h>
5886 #include <stdarg.h>
5887 #include <string.h>
5888 #include <float.h>
5889
5890 int
5891 main ()
5892 {
5893
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_compile "$LINENO"; then :
5899 ac_cv_header_stdc=yes
5900 else
5901 ac_cv_header_stdc=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904
5905 if test $ac_cv_header_stdc = yes; then
5906 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #include <string.h>
5910
5911 _ACEOF
5912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5913 $EGREP "memchr" >/dev/null 2>&1; then :
5914
5915 else
5916 ac_cv_header_stdc=no
5917 fi
5918 rm -f conftest*
5919
5920 fi
5921
5922 if test $ac_cv_header_stdc = yes; then
5923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5926 #include <stdlib.h>
5927
5928 _ACEOF
5929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5930 $EGREP "free" >/dev/null 2>&1; then :
5931
5932 else
5933 ac_cv_header_stdc=no
5934 fi
5935 rm -f conftest*
5936
5937 fi
5938
5939 if test $ac_cv_header_stdc = yes; then
5940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5941 if test "$cross_compiling" = yes; then :
5942 :
5943 else
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #include <ctype.h>
5947 #include <stdlib.h>
5948 #if ((' ' & 0x0FF) == 0x020)
5949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5951 #else
5952 # define ISLOWER(c) \
5953 (('a' <= (c) && (c) <= 'i') \
5954 || ('j' <= (c) && (c) <= 'r') \
5955 || ('s' <= (c) && (c) <= 'z'))
5956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5957 #endif
5958
5959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5960 int
5961 main ()
5962 {
5963 int i;
5964 for (i = 0; i < 256; i++)
5965 if (XOR (islower (i), ISLOWER (i))
5966 || toupper (i) != TOUPPER (i))
5967 return 2;
5968 return 0;
5969 }
5970 _ACEOF
5971 if ac_fn_c_try_run "$LINENO"; then :
5972
5973 else
5974 ac_cv_header_stdc=no
5975 fi
5976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5977 conftest.$ac_objext conftest.beam conftest.$ac_ext
5978 fi
5979
5980 fi
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5983 $as_echo "$ac_cv_header_stdc" >&6; }
5984 if test $ac_cv_header_stdc = yes; then
5985
5986 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5987
5988 fi
5989
5990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5991 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5992 inttypes.h stdint.h unistd.h
5993 do :
5994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5996 "
5997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5998 cat >>confdefs.h <<_ACEOF
5999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6000 _ACEOF
6001
6002 fi
6003
6004 done
6005
6006
6007
6008
6009
6010 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6011 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6012 MINIX=yes
6013 else
6014 MINIX=
6015 fi
6016
6017
6018 if test "$MINIX" = yes; then
6019
6020 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6021
6022
6023 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6024
6025
6026 $as_echo "#define _MINIX 1" >>confdefs.h
6027
6028 fi
6029
6030 case "$host_os" in
6031 hpux*)
6032
6033 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6034
6035 ;;
6036 esac
6037
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6040 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6041 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046
6047 # define __EXTENSIONS__ 1
6048 $ac_includes_default
6049 int
6050 main ()
6051 {
6052
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6058 ac_cv_safe_to_define___extensions__=yes
6059 else
6060 ac_cv_safe_to_define___extensions__=no
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6065 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6066 test $ac_cv_safe_to_define___extensions__ = yes &&
6067 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6068
6069 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6070
6071 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6072
6073 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6074
6075 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086 # Code from module arg-nonnull:
6087 # Code from module c++defs:
6088 # Code from module crypto/md5:
6089 # Code from module dtoastr:
6090 # Code from module extensions:
6091
6092 # Code from module getloadavg:
6093 # Code from module getopt-gnu:
6094 # Code from module getopt-posix:
6095 # Code from module gettext-h:
6096 # Code from module ignore-value:
6097 # Code from module include_next:
6098 # Code from module intprops:
6099 # Code from module mktime:
6100 # Code from module multiarch:
6101 # Code from module stdbool:
6102 # Code from module stddef:
6103 # Code from module stdint:
6104 # Code from module stdlib:
6105 # Code from module strftime:
6106 # Code from module time:
6107 # Code from module time_r:
6108 # Code from module unistd:
6109 # Code from module warn-on-use:
6110
6111
6112 # On Suns, sometimes $CPP names a directory.
6113 if test -n "$CPP" && test -d "$CPP"; then
6114 CPP=
6115 fi
6116
6117 ## If not using gcc, and on Solaris, and no CPP specified, see if
6118 ## using a Sun compiler, which needs -Xs to prevent whitespace.
6119 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6120 test x"$CPP" = x; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6122 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
6123 if ${emacs_cv_sunpro_c+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128
6129 int
6130 main ()
6131 {
6132 #ifndef __SUNPRO_C
6133 fail;
6134 #endif
6135
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_link "$LINENO"; then :
6141 emacs_cv_sunpro_c=yes
6142 else
6143 emacs_cv_sunpro_c=no
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext \
6146 conftest$ac_exeext conftest.$ac_ext
6147 fi
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6150 $as_echo "$emacs_cv_sunpro_c" >&6; }
6151
6152 if test x"$emacs_cv_sunpro_c" = xyes; then
6153 NON_GNU_CPP="$CC -E -Xs"
6154 fi
6155 fi
6156
6157 #### Some systems specify a CPP to use unless we are using GCC.
6158 #### Now that we know whether we are using GCC, we can decide whether
6159 #### to use that one.
6160 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6161 then
6162 CPP="$NON_GNU_CPP"
6163 fi
6164
6165 #### Some systems specify a CC to use unless we are using GCC.
6166 #### Now that we know whether we are using GCC, we can decide whether
6167 #### to use that one.
6168 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6169 test x$cc_specified != xyes
6170 then
6171 CC="$NON_GNU_CC"
6172 fi
6173
6174 if test x$GCC = xyes; then
6175 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6176 else
6177 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6178 fi
6179
6180 ### Use -Wno-pointer-sign if the compiler supports it
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
6182 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
6183 SAVE_CFLAGS="$CFLAGS"
6184 CFLAGS="$CFLAGS -Wno-pointer-sign"
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h. */
6187
6188 int
6189 main ()
6190 {
6191
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197 has_option=yes
6198 else
6199 has_option=no
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 if test $has_option = yes; then
6203 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6206 $as_echo "$has_option" >&6; }
6207 CFLAGS="$SAVE_CFLAGS"
6208 unset has_option
6209 unset SAVE_CFLAGS
6210
6211 ### Use -Wdeclaration-after-statement if the compiler supports it
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6213 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6214 SAVE_CFLAGS="$CFLAGS"
6215 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218
6219 int
6220 main ()
6221 {
6222
6223 ;
6224 return 0;
6225 }
6226 _ACEOF
6227 if ac_fn_c_try_compile "$LINENO"; then :
6228 has_option=yes
6229 else
6230 has_option=no
6231 fi
6232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 if test $has_option = yes; then
6234 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6235 fi
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6237 $as_echo "$has_option" >&6; }
6238 CFLAGS="$SAVE_CFLAGS"
6239 unset has_option
6240 unset SAVE_CFLAGS
6241
6242 ### Use -Wold-style-definition if the compiler supports it
6243 # This can be removed when conversion to standard C is finished.
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6245 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6246 SAVE_CFLAGS="$CFLAGS"
6247 CFLAGS="$CFLAGS -Wold-style-definition"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250
6251 int
6252 main ()
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 has_option=yes
6261 else
6262 has_option=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $has_option = yes; then
6266 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6267 fi
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6269 $as_echo "$has_option" >&6; }
6270 CFLAGS="$SAVE_CFLAGS"
6271 unset has_option
6272 unset SAVE_CFLAGS
6273
6274 ### Use -Wimplicit-function-declaration if the compiler supports it
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6276 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6277 SAVE_CFLAGS="$CFLAGS"
6278 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6281
6282 int
6283 main ()
6284 {
6285
6286 ;
6287 return 0;
6288 }
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291 has_option=yes
6292 else
6293 has_option=no
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 if test $has_option = yes; then
6297 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6298 fi
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6300 $as_echo "$has_option" >&6; }
6301 CFLAGS="$SAVE_CFLAGS"
6302 unset has_option
6303 unset SAVE_CFLAGS
6304
6305
6306
6307
6308 #### Some other nice autoconf tests.
6309
6310 ac_ext=c
6311 ac_cpp='$CPP $CPPFLAGS'
6312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6317 # On Suns, sometimes $CPP names a directory.
6318 if test -n "$CPP" && test -d "$CPP"; then
6319 CPP=
6320 fi
6321 if test -z "$CPP"; then
6322 if ${ac_cv_prog_CPP+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 # Double quotes because CPP needs to be expanded
6326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6327 do
6328 ac_preproc_ok=false
6329 for ac_c_preproc_warn_flag in '' yes
6330 do
6331 # Use a header file that comes with gcc, so configuring glibc
6332 # with a fresh cross-compiler works.
6333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334 # <limits.h> exists even on freestanding compilers.
6335 # On the NeXT, cc -E runs the code through the compiler's parser,
6336 # not just through cpp. "Syntax error" is here to catch this case.
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6339 #ifdef __STDC__
6340 # include <limits.h>
6341 #else
6342 # include <assert.h>
6343 #endif
6344 Syntax error
6345 _ACEOF
6346 if ac_fn_c_try_cpp "$LINENO"; then :
6347
6348 else
6349 # Broken: fails on valid input.
6350 continue
6351 fi
6352 rm -f conftest.err conftest.i conftest.$ac_ext
6353
6354 # OK, works on sane cases. Now check whether nonexistent headers
6355 # can be detected and how.
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6358 #include <ac_nonexistent.h>
6359 _ACEOF
6360 if ac_fn_c_try_cpp "$LINENO"; then :
6361 # Broken: success on invalid input.
6362 continue
6363 else
6364 # Passes both tests.
6365 ac_preproc_ok=:
6366 break
6367 fi
6368 rm -f conftest.err conftest.i conftest.$ac_ext
6369
6370 done
6371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6372 rm -f conftest.i conftest.err conftest.$ac_ext
6373 if $ac_preproc_ok; then :
6374 break
6375 fi
6376
6377 done
6378 ac_cv_prog_CPP=$CPP
6379
6380 fi
6381 CPP=$ac_cv_prog_CPP
6382 else
6383 ac_cv_prog_CPP=$CPP
6384 fi
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6386 $as_echo "$CPP" >&6; }
6387 ac_preproc_ok=false
6388 for ac_c_preproc_warn_flag in '' yes
6389 do
6390 # Use a header file that comes with gcc, so configuring glibc
6391 # with a fresh cross-compiler works.
6392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6393 # <limits.h> exists even on freestanding compilers.
6394 # On the NeXT, cc -E runs the code through the compiler's parser,
6395 # not just through cpp. "Syntax error" is here to catch this case.
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398 #ifdef __STDC__
6399 # include <limits.h>
6400 #else
6401 # include <assert.h>
6402 #endif
6403 Syntax error
6404 _ACEOF
6405 if ac_fn_c_try_cpp "$LINENO"; then :
6406
6407 else
6408 # Broken: fails on valid input.
6409 continue
6410 fi
6411 rm -f conftest.err conftest.i conftest.$ac_ext
6412
6413 # OK, works on sane cases. Now check whether nonexistent headers
6414 # can be detected and how.
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6417 #include <ac_nonexistent.h>
6418 _ACEOF
6419 if ac_fn_c_try_cpp "$LINENO"; then :
6420 # Broken: success on invalid input.
6421 continue
6422 else
6423 # Passes both tests.
6424 ac_preproc_ok=:
6425 break
6426 fi
6427 rm -f conftest.err conftest.i conftest.$ac_ext
6428
6429 done
6430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6431 rm -f conftest.i conftest.err conftest.$ac_ext
6432 if $ac_preproc_ok; then :
6433
6434 else
6435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6437 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6438 See \`config.log' for more details" "$LINENO" 5; }
6439 fi
6440
6441 ac_ext=c
6442 ac_cpp='$CPP $CPPFLAGS'
6443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446
6447
6448 if test "x$RANLIB" = x; then
6449 if test -n "$ac_tool_prefix"; then
6450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_prog_RANLIB+:} false; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 if test -n "$RANLIB"; then
6458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6459 else
6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 for as_dir in $PATH
6462 do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
6466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471 done
6472 done
6473 IFS=$as_save_IFS
6474
6475 fi
6476 fi
6477 RANLIB=$ac_cv_prog_RANLIB
6478 if test -n "$RANLIB"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6480 $as_echo "$RANLIB" >&6; }
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6484 fi
6485
6486
6487 fi
6488 if test -z "$ac_cv_prog_RANLIB"; then
6489 ac_ct_RANLIB=$RANLIB
6490 # Extract the first word of "ranlib", so it can be a program name with args.
6491 set dummy ranlib; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$ac_ct_RANLIB"; then
6498 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507 ac_cv_prog_ac_ct_RANLIB="ranlib"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6518 if test -n "$ac_ct_RANLIB"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6520 $as_echo "$ac_ct_RANLIB" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526 if test "x$ac_ct_RANLIB" = x; then
6527 RANLIB=":"
6528 else
6529 case $cross_compiling:$ac_tool_warned in
6530 yes:)
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533 ac_tool_warned=yes ;;
6534 esac
6535 RANLIB=$ac_ct_RANLIB
6536 fi
6537 else
6538 RANLIB="$ac_cv_prog_RANLIB"
6539 fi
6540
6541 fi
6542
6543 ## Although we're running on an amd64 kernel, we're actually compiling for
6544 ## the x86 architecture. The user should probably have provided an
6545 ## explicit --build to `configure', but if everything else than the kernel
6546 ## is running in i386 mode, we can help them out.
6547 if test "$machine" = "amdx86-64"; then
6548 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6549 if test "x$ac_cv_have_decl_i386" = xyes; then :
6550
6551 fi
6552
6553 if test "$ac_cv_have_decl_i386" = "yes"; then
6554 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6555 machine=intel386
6556 machfile="m/${machine}.h"
6557 fi
6558 fi
6559
6560 # Extract the first word of "install-info", so it can be a program name with args.
6561 set dummy install-info; ac_word=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 case $INSTALL_INFO in
6568 [\\/]* | ?:[\\/]*)
6569 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6570 ;;
6571 *)
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 ;;
6588 esac
6589 fi
6590 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6591 if test -n "$INSTALL_INFO"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6593 $as_echo "$INSTALL_INFO" >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600 # Extract the first word of "install-info", so it can be a program name with args.
6601 set dummy install-info; ac_word=$2
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607 case $INSTALL_INFO in
6608 [\\/]* | ?:[\\/]*)
6609 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6610 ;;
6611 *)
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613 for as_dir in /usr/sbin
6614 do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623 done
6624 done
6625 IFS=$as_save_IFS
6626
6627 ;;
6628 esac
6629 fi
6630 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6631 if test -n "$INSTALL_INFO"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6633 $as_echo "$INSTALL_INFO" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639
6640 # Extract the first word of "install-info", so it can be a program name with args.
6641 set dummy install-info; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 case $INSTALL_INFO in
6648 [\\/]* | ?:[\\/]*)
6649 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6650 ;;
6651 *)
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in /sbin
6654 do
6655 IFS=$as_save_IFS
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 break 2
6662 fi
6663 done
6664 done
6665 IFS=$as_save_IFS
6666
6667 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6668 ;;
6669 esac
6670 fi
6671 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6672 if test -n "$INSTALL_INFO"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6674 $as_echo "$INSTALL_INFO" >&6; }
6675 else
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6678 fi
6679
6680
6681 # Extract the first word of "gzip", so it can be a program name with args.
6682 set dummy gzip; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_path_GZIP_PROG+:} false; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 case $GZIP_PROG in
6689 [\\/]* | ?:[\\/]*)
6690 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6691 ;;
6692 *)
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6703 fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 ;;
6709 esac
6710 fi
6711 GZIP_PROG=$ac_cv_path_GZIP_PROG
6712 if test -n "$GZIP_PROG"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6714 $as_echo "$GZIP_PROG" >&6; }
6715 else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6718 fi
6719
6720
6721
6722
6723 ## Need makeinfo >= 4.6 (?) to build the manuals.
6724 # Extract the first word of "makeinfo", so it can be a program name with args.
6725 set dummy makeinfo; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_path_MAKEINFO+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 case $MAKEINFO in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6734 ;;
6735 *)
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6752 ;;
6753 esac
6754 fi
6755 MAKEINFO=$ac_cv_path_MAKEINFO
6756 if test -n "$MAKEINFO"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6758 $as_echo "$MAKEINFO" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763
6764
6765 if test "$MAKEINFO" != "no" && \
6766 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
6767 MAKEINFO=no
6768 fi
6769
6770 ## Makeinfo is unusual. For a released Emacs, the manuals are
6771 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6772 ## therefore in the category of "special tools" not normally required, which
6773 ## configure does not have to check for (eg autoconf itself).
6774 ## In a Bazaar checkout on the other hand, the manuals are not included.
6775 ## So makeinfo is a requirement to build from Bazaar, and configure
6776 ## should test for it as it does for any other build requirement.
6777 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6778 ## with pre-built manuals, from a Bazaar checkout.
6779 HAVE_MAKEINFO=yes
6780
6781 if test "$MAKEINFO" = "no"; then
6782 MAKEINFO=makeinfo
6783 if test "x${with_makeinfo}" = "xno"; then
6784 HAVE_MAKEINFO=no
6785 elif test ! -e $srcdir/info/emacs; then
6786 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6787 source tree does not seem to have pre-built manuals in the \`info' directory.
6788 Either install a suitable version of makeinfo, or re-run configure
6789 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6790 fi
6791 fi
6792
6793
6794
6795 if test x$GCC = xyes; then
6796 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6797 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6798 else
6799 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6800 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6801 fi
6802
6803
6804 late_LDFLAGS=$LDFLAGS
6805 if test x$GCC = xyes; then
6806 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6807 else
6808 LDFLAGS="$LDFLAGS -znocombreloc"
6809 fi
6810
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6812 $as_echo_n "checking for -znocombreloc... " >&6; }
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815
6816 int
6817 main ()
6818 {
6819
6820 ;
6821 return 0;
6822 }
6823 _ACEOF
6824 if ac_fn_c_try_link "$LINENO"; then :
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6826 $as_echo "yes" >&6; }
6827 else
6828 LDFLAGS=$late_LDFLAGS
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834
6835
6836 # The value of CPP is a quoted variable reference, so we need to do this
6837 # to get its actual value...
6838 CPP=`eval "echo $CPP"`
6839
6840
6841 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6842 case "$opsys" in
6843 your-opsys-here) CANNOT_DUMP=yes ;;
6844 esac
6845
6846 test "$CANNOT_DUMP" = "yes" && \
6847
6848 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6849
6850
6851
6852
6853
6854 UNEXEC_OBJ=unexelf.o
6855 case "$opsys" in
6856 # MSDOS uses unexcoff.o
6857 # MSWindows uses unexw32.o
6858 aix4-2)
6859 UNEXEC_OBJ=unexaix.o
6860 ;;
6861 cygwin)
6862 UNEXEC_OBJ=unexcw.o
6863 ;;
6864 darwin)
6865 UNEXEC_OBJ=unexmacosx.o
6866 ;;
6867 hpux10-20 | hpux11)
6868 UNEXEC_OBJ=unexhp9k800.o
6869 ;;
6870 sol2-10)
6871 # Use the Solaris dldump() function, called from unexsol.c, to dump
6872 # emacs, instead of the generic ELF dump code found in unexelf.c.
6873 # The resulting binary has a complete symbol table, and is better
6874 # for debugging and other observability tools (debuggers, pstack, etc).
6875 #
6876 # If you encounter a problem using dldump(), please consider sending
6877 # a message to the OpenSolaris tools-linking mailing list:
6878 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6879 #
6880 # It is likely that dldump() works with older Solaris too, but this has
6881 # not been tested, so for now this change is for Solaris 10 or newer.
6882 UNEXEC_OBJ=unexsol.o
6883 ;;
6884 esac
6885
6886 LD_SWITCH_SYSTEM=
6887 case "$opsys" in
6888 freebsd)
6889 ## Let `ld' find image libs and similar things in /usr/local/lib.
6890 ## The system compiler, GCC, has apparently been modified to not
6891 ## look there, contrary to what a stock GCC would do.
6892 LD_SWITCH_SYSTEM=-L/usr/local/lib
6893 ;;
6894
6895 gnu-linux)
6896 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6897 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6898 ;;
6899
6900 netbsd)
6901 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6902 ;;
6903
6904 openbsd)
6905 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6906 ## otherwise Emacs dumps core on elf systems.
6907 LD_SWITCH_SYSTEM="-Z"
6908 ;;
6909 esac
6910
6911
6912 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6913
6914 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6915 ## which has not been defined yet. When this was handled with cpp,
6916 ## it was expanded to null when configure sourced the s/*.h file.
6917 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6918 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6919 ## (or somesuch), but because it is supposed to go at the _front_
6920 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6921 ## Compare with the gnu-linux case below, which added to the end
6922 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6923 ## LD_SWITCH_SYSTEM_TEMACS.
6924 case "$opsys" in
6925 netbsd|openbsd)
6926 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6927 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6928 esac
6929
6930
6931 C_SWITCH_MACHINE=
6932 if test "$machine" = "alpha"; then
6933 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6934 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6935
6936 fi
6937
6938 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6939 ## With ELF, make sure that all common symbols get allocated to in the
6940 ## data section. Otherwise, the dump of temacs may miss variables in
6941 ## the shared library that have been initialized. For example, with
6942 ## GNU libc, __malloc_initialized would normally be resolved to the
6943 ## shared library's .bss section, which is fatal.
6944 if test "x$GCC" = "xyes"; then
6945 C_SWITCH_MACHINE="-fno-common"
6946 else
6947 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6948 fi
6949 else
6950 UNEXEC_OBJ=unexalpha.o
6951 fi
6952 fi
6953
6954
6955
6956
6957 C_SWITCH_SYSTEM=
6958 ## Some programs in src produce warnings saying certain subprograms
6959 ## are too complex and need a MAXMEM value greater than 2000 for
6960 ## additional optimization. --nils@exp-math.uni-essen.de
6961 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6962 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6963 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6964 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6965
6966
6967
6968 LIBS_SYSTEM=
6969 case "$opsys" in
6970 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6971 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6972
6973 freebsd) LIBS_SYSTEM="-lutil" ;;
6974
6975 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6976
6977 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6978
6979 ## Motif needs -lgen.
6980 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6981 esac
6982
6983
6984
6985 ### Make sure subsequent tests use flags consistent with the build flags.
6986
6987 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6988 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6989 else
6990 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6991 fi
6992
6993 # Check whether --enable-largefile was given.
6994 if test "${enable_largefile+set}" = set; then :
6995 enableval=$enable_largefile;
6996 fi
6997
6998 if test "$enable_largefile" != no; then
6999
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7001 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7002 if ${ac_cv_sys_largefile_CC+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 ac_cv_sys_largefile_CC=no
7006 if test "$GCC" != yes; then
7007 ac_save_CC=$CC
7008 while :; do
7009 # IRIX 6.2 and later do not support large files by default,
7010 # so use the C compiler's -n32 option if that helps.
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013 #include <sys/types.h>
7014 /* Check that off_t can represent 2**63 - 1 correctly.
7015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7016 since some C++ compilers masquerading as C compilers
7017 incorrectly reject 9223372036854775807. */
7018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7020 && LARGE_OFF_T % 2147483647 == 1)
7021 ? 1 : -1];
7022 int
7023 main ()
7024 {
7025
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 if ac_fn_c_try_compile "$LINENO"; then :
7031 break
7032 fi
7033 rm -f core conftest.err conftest.$ac_objext
7034 CC="$CC -n32"
7035 if ac_fn_c_try_compile "$LINENO"; then :
7036 ac_cv_sys_largefile_CC=' -n32'; break
7037 fi
7038 rm -f core conftest.err conftest.$ac_objext
7039 break
7040 done
7041 CC=$ac_save_CC
7042 rm -f conftest.$ac_ext
7043 fi
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7046 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7047 if test "$ac_cv_sys_largefile_CC" != no; then
7048 CC=$CC$ac_cv_sys_largefile_CC
7049 fi
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7052 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7053 if ${ac_cv_sys_file_offset_bits+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 while :; do
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 #include <sys/types.h>
7060 /* Check that off_t can represent 2**63 - 1 correctly.
7061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7062 since some C++ compilers masquerading as C compilers
7063 incorrectly reject 9223372036854775807. */
7064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7066 && LARGE_OFF_T % 2147483647 == 1)
7067 ? 1 : -1];
7068 int
7069 main ()
7070 {
7071
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 if ac_fn_c_try_compile "$LINENO"; then :
7077 ac_cv_sys_file_offset_bits=no; break
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #define _FILE_OFFSET_BITS 64
7083 #include <sys/types.h>
7084 /* Check that off_t can represent 2**63 - 1 correctly.
7085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7086 since some C++ compilers masquerading as C compilers
7087 incorrectly reject 9223372036854775807. */
7088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7090 && LARGE_OFF_T % 2147483647 == 1)
7091 ? 1 : -1];
7092 int
7093 main ()
7094 {
7095
7096 ;
7097 return 0;
7098 }
7099 _ACEOF
7100 if ac_fn_c_try_compile "$LINENO"; then :
7101 ac_cv_sys_file_offset_bits=64; break
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 ac_cv_sys_file_offset_bits=unknown
7105 break
7106 done
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7109 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7110 case $ac_cv_sys_file_offset_bits in #(
7111 no | unknown) ;;
7112 *)
7113 cat >>confdefs.h <<_ACEOF
7114 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7115 _ACEOF
7116 ;;
7117 esac
7118 rm -rf conftest*
7119 if test $ac_cv_sys_file_offset_bits = unknown; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7121 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7122 if ${ac_cv_sys_large_files+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 while :; do
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7129 /* Check that off_t can represent 2**63 - 1 correctly.
7130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7131 since some C++ compilers masquerading as C compilers
7132 incorrectly reject 9223372036854775807. */
7133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7135 && LARGE_OFF_T % 2147483647 == 1)
7136 ? 1 : -1];
7137 int
7138 main ()
7139 {
7140
7141 ;
7142 return 0;
7143 }
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7146 ac_cv_sys_large_files=no; break
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 #define _LARGE_FILES 1
7152 #include <sys/types.h>
7153 /* Check that off_t can represent 2**63 - 1 correctly.
7154 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7155 since some C++ compilers masquerading as C compilers
7156 incorrectly reject 9223372036854775807. */
7157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7158 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7159 && LARGE_OFF_T % 2147483647 == 1)
7160 ? 1 : -1];
7161 int
7162 main ()
7163 {
7164
7165 ;
7166 return 0;
7167 }
7168 _ACEOF
7169 if ac_fn_c_try_compile "$LINENO"; then :
7170 ac_cv_sys_large_files=1; break
7171 fi
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7173 ac_cv_sys_large_files=unknown
7174 break
7175 done
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7178 $as_echo "$ac_cv_sys_large_files" >&6; }
7179 case $ac_cv_sys_large_files in #(
7180 no | unknown) ;;
7181 *)
7182 cat >>confdefs.h <<_ACEOF
7183 #define _LARGE_FILES $ac_cv_sys_large_files
7184 _ACEOF
7185 ;;
7186 esac
7187 rm -rf conftest*
7188 fi
7189 fi
7190
7191
7192
7193 ## If user specified a crt-dir, use that unconditionally.
7194 if test "X$CRT_DIR" = "X"; then
7195
7196 case "$canonical" in
7197 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7198 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7199 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7200 ## For anything else (eg /usr/lib32), it is up the user to specify
7201 ## the location (bug#5655).
7202 ## Test for crtn.o, not just the directory, because sometimes the
7203 ## directory exists but does not have the relevant files (bug#1287).
7204 ## FIXME better to test for binary compatibility somehow.
7205 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7206 ;;
7207
7208 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7209 esac
7210
7211 case "$opsys" in
7212 hpux10-20) CRT_DIR=/lib ;;
7213 esac
7214
7215 ## Default is /usr/lib.
7216 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7217
7218 else
7219
7220 ## Some platforms don't use any of these files, so it is not
7221 ## appropriate to put this test outside the if block.
7222 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7223 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7224
7225 fi
7226
7227
7228
7229 LIB_MATH=-lm
7230 LIB_STANDARD=
7231 START_FILES=
7232
7233 case $opsys in
7234 cygwin )
7235 LIB_MATH=
7236 START_FILES='pre-crt0.o'
7237 ;;
7238 darwin )
7239 ## Adding -lm confuses the dynamic linker, so omit it.
7240 LIB_MATH=
7241 START_FILES='pre-crt0.o'
7242 ;;
7243 freebsd )
7244 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7245 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7246 ;;
7247 gnu-linux | gnu-kfreebsd )
7248 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7249 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7250 ;;
7251 hpux10-20 | hpux11 )
7252 LIB_STANDARD=-lc
7253 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7254 ;;
7255 netbsd | openbsd )
7256 if test -f $CRT_DIR/crti.o; then
7257 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7258 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7259 else
7260 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7261 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7262 fi
7263 ;;
7264 esac
7265
7266
7267
7268
7269
7270
7271
7272 if test "${with_sound}" != "no"; then
7273 # Sound support for GNU/Linux and the free BSDs.
7274 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7275 do :
7276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7279 cat >>confdefs.h <<_ACEOF
7280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7281 _ACEOF
7282 have_sound_header=yes
7283 fi
7284
7285 done
7286
7287 # Emulation library used on NetBSD.
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7289 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7290 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 ac_check_lib_save_LIBS=$LIBS
7294 LIBS="-lossaudio $LIBS"
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h. */
7297
7298 /* Override any GCC internal prototype to avoid an error.
7299 Use char because int might match the return type of a GCC
7300 builtin and then its argument prototype would still apply. */
7301 #ifdef __cplusplus
7302 extern "C"
7303 #endif
7304 char _oss_ioctl ();
7305 int
7306 main ()
7307 {
7308 return _oss_ioctl ();
7309 ;
7310 return 0;
7311 }
7312 _ACEOF
7313 if ac_fn_c_try_link "$LINENO"; then :
7314 ac_cv_lib_ossaudio__oss_ioctl=yes
7315 else
7316 ac_cv_lib_ossaudio__oss_ioctl=no
7317 fi
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7320 LIBS=$ac_check_lib_save_LIBS
7321 fi
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7323 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7324 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7325 LIBSOUND=-lossaudio
7326 else
7327 LIBSOUND=
7328 fi
7329
7330
7331
7332 ALSA_REQUIRED=1.0.0
7333 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7334
7335 succeeded=no
7336
7337 # Extract the first word of "pkg-config", so it can be a program name with args.
7338 set dummy pkg-config; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 case $PKG_CONFIG in
7345 [\\/]* | ?:[\\/]*)
7346 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7347 ;;
7348 *)
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7365 ;;
7366 esac
7367 fi
7368 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7369 if test -n "$PKG_CONFIG"; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7371 $as_echo "$PKG_CONFIG" >&6; }
7372 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 $as_echo "no" >&6; }
7375 fi
7376
7377
7378
7379 if test "$PKG_CONFIG" = "no" ; then
7380 HAVE_ALSA=no
7381 else
7382 PKG_CONFIG_MIN_VERSION=0.9.0
7383 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7385 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7386
7387 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7389 $as_echo "yes" >&6; }
7390 succeeded=yes
7391
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7393 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7394 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7396 $as_echo "$ALSA_CFLAGS" >&6; }
7397
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7399 $as_echo_n "checking ALSA_LIBS... " >&6; }
7400 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7402 $as_echo "$ALSA_LIBS" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 ALSA_CFLAGS=""
7407 ALSA_LIBS=""
7408 ## If we have a custom action on failure, don't print errors, but
7409 ## do set a variable so people can do so.
7410 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7411
7412 fi
7413
7414
7415
7416 else
7417 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7418 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7419 fi
7420 fi
7421
7422 if test $succeeded = yes; then
7423 HAVE_ALSA=yes
7424 else
7425 HAVE_ALSA=no
7426 fi
7427
7428 if test $HAVE_ALSA = yes; then
7429 SAVE_CFLAGS="$CFLAGS"
7430 SAVE_LDFLAGS="$LDFLAGS"
7431 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7432 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 #include <asoundlib.h>
7436 int
7437 main ()
7438 {
7439 snd_lib_error_set_handler (0);
7440 ;
7441 return 0;
7442 }
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"; then :
7445 emacs_alsa_normal=yes
7446 else
7447 emacs_alsa_normal=no
7448 fi
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 if test "$emacs_alsa_normal" != yes; then
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7453 #include <alsa/asoundlib.h>
7454 int
7455 main ()
7456 {
7457 snd_lib_error_set_handler (0);
7458 ;
7459 return 0;
7460 }
7461 _ACEOF
7462 if ac_fn_c_try_compile "$LINENO"; then :
7463 emacs_alsa_subdir=yes
7464 else
7465 emacs_alsa_subdir=no
7466 fi
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 if test "$emacs_alsa_subdir" != yes; then
7469 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7470 fi
7471 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7472 fi
7473
7474 CFLAGS="$SAVE_CFLAGS"
7475 LDFLAGS="$SAVE_LDFLAGS"
7476 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7477 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7478
7479 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7480
7481 fi
7482
7483 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7484 case "$opsys" in
7485 gnu-linux|freebsd|netbsd)
7486
7487 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7488
7489 ;;
7490 esac
7491 fi
7492
7493
7494 fi
7495
7496 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7497 linux/version.h sys/systeminfo.h limits.h \
7498 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7499 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7500 sys/utsname.h pwd.h utmp.h dirent.h util.h
7501 do :
7502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7503 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7505 cat >>confdefs.h <<_ACEOF
7506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507 _ACEOF
7508
7509 fi
7510
7511 done
7512
7513
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7515 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #include <sys/personality.h>
7519 int
7520 main ()
7521 {
7522 personality (PER_LINUX32)
7523 ;
7524 return 0;
7525 }
7526 _ACEOF
7527 if ac_fn_c_try_compile "$LINENO"; then :
7528 emacs_cv_personality_linux32=yes
7529 else
7530 emacs_cv_personality_linux32=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7534 $as_echo "$emacs_cv_personality_linux32" >&6; }
7535
7536 if test $emacs_cv_personality_linux32 = yes; then
7537
7538 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7539
7540 fi
7541
7542 for ac_header in term.h
7543 do :
7544 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7545 if test "x$ac_cv_header_term_h" = xyes; then :
7546 cat >>confdefs.h <<_ACEOF
7547 #define HAVE_TERM_H 1
7548 _ACEOF
7549
7550 fi
7551
7552 done
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7555 $as_echo_n "checking for ANSI C header files... " >&6; }
7556 if ${ac_cv_header_stdc+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <stdlib.h>
7562 #include <stdarg.h>
7563 #include <string.h>
7564 #include <float.h>
7565
7566 int
7567 main ()
7568 {
7569
7570 ;
7571 return 0;
7572 }
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 ac_cv_header_stdc=yes
7576 else
7577 ac_cv_header_stdc=no
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580
7581 if test $ac_cv_header_stdc = yes; then
7582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 #include <string.h>
7586
7587 _ACEOF
7588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7589 $EGREP "memchr" >/dev/null 2>&1; then :
7590
7591 else
7592 ac_cv_header_stdc=no
7593 fi
7594 rm -f conftest*
7595
7596 fi
7597
7598 if test $ac_cv_header_stdc = yes; then
7599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 #include <stdlib.h>
7603
7604 _ACEOF
7605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7606 $EGREP "free" >/dev/null 2>&1; then :
7607
7608 else
7609 ac_cv_header_stdc=no
7610 fi
7611 rm -f conftest*
7612
7613 fi
7614
7615 if test $ac_cv_header_stdc = yes; then
7616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7617 if test "$cross_compiling" = yes; then :
7618 :
7619 else
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 #include <ctype.h>
7623 #include <stdlib.h>
7624 #if ((' ' & 0x0FF) == 0x020)
7625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7627 #else
7628 # define ISLOWER(c) \
7629 (('a' <= (c) && (c) <= 'i') \
7630 || ('j' <= (c) && (c) <= 'r') \
7631 || ('s' <= (c) && (c) <= 'z'))
7632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7633 #endif
7634
7635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7636 int
7637 main ()
7638 {
7639 int i;
7640 for (i = 0; i < 256; i++)
7641 if (XOR (islower (i), ISLOWER (i))
7642 || toupper (i) != TOUPPER (i))
7643 return 2;
7644 return 0;
7645 }
7646 _ACEOF
7647 if ac_fn_c_try_run "$LINENO"; then :
7648
7649 else
7650 ac_cv_header_stdc=no
7651 fi
7652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7653 conftest.$ac_objext conftest.beam conftest.$ac_ext
7654 fi
7655
7656 fi
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7659 $as_echo "$ac_cv_header_stdc" >&6; }
7660 if test $ac_cv_header_stdc = yes; then
7661
7662 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7663
7664 fi
7665
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7667 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7668 if ${ac_cv_header_time+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 #include <sys/types.h>
7674 #include <sys/time.h>
7675 #include <time.h>
7676
7677 int
7678 main ()
7679 {
7680 if ((struct tm *) 0)
7681 return 0;
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 if ac_fn_c_try_compile "$LINENO"; then :
7687 ac_cv_header_time=yes
7688 else
7689 ac_cv_header_time=no
7690 fi
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7694 $as_echo "$ac_cv_header_time" >&6; }
7695 if test $ac_cv_header_time = yes; then
7696
7697 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7698
7699 fi
7700
7701 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7702 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7703 ac_have_decl=1
7704 else
7705 ac_have_decl=0
7706 fi
7707
7708 cat >>confdefs.h <<_ACEOF
7709 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7710 _ACEOF
7711
7712 if test $ac_cv_have_decl_sys_siglist != yes; then
7713 # For Tru64, at least:
7714 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7715 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7716 ac_have_decl=1
7717 else
7718 ac_have_decl=0
7719 fi
7720
7721 cat >>confdefs.h <<_ACEOF
7722 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7723 _ACEOF
7724
7725 if test $ac_cv_have_decl___sys_siglist = yes; then
7726
7727 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7728
7729 fi
7730 fi
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7732 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7733 if ${ac_cv_header_sys_wait_h+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 #include <sys/types.h>
7739 #include <sys/wait.h>
7740 #ifndef WEXITSTATUS
7741 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7742 #endif
7743 #ifndef WIFEXITED
7744 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7745 #endif
7746
7747 int
7748 main ()
7749 {
7750 int s;
7751 wait (&s);
7752 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 if ac_fn_c_try_compile "$LINENO"; then :
7758 ac_cv_header_sys_wait_h=yes
7759 else
7760 ac_cv_header_sys_wait_h=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7765 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7766 if test $ac_cv_header_sys_wait_h = yes; then
7767
7768 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7769
7770 fi
7771
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7774 $as_echo_n "checking for struct utimbuf... " >&6; }
7775 if ${emacs_cv_struct_utimbuf+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #ifdef TIME_WITH_SYS_TIME
7781 #include <sys/time.h>
7782 #include <time.h>
7783 #else
7784 #ifdef HAVE_SYS_TIME_H
7785 #include <sys/time.h>
7786 #else
7787 #include <time.h>
7788 #endif
7789 #endif
7790 #ifdef HAVE_UTIME_H
7791 #include <utime.h>
7792 #endif
7793 int
7794 main ()
7795 {
7796 static struct utimbuf x; x.actime = x.modtime;
7797 ;
7798 return 0;
7799 }
7800 _ACEOF
7801 if ac_fn_c_try_compile "$LINENO"; then :
7802 emacs_cv_struct_utimbuf=yes
7803 else
7804 emacs_cv_struct_utimbuf=no
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7809 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7810 if test $emacs_cv_struct_utimbuf = yes; then
7811
7812 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7813
7814 fi
7815
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7817 $as_echo_n "checking return type of signal handlers... " >&6; }
7818 if ${ac_cv_type_signal+:} false; then :
7819 $as_echo_n "(cached) " >&6
7820 else
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 #include <sys/types.h>
7824 #include <signal.h>
7825
7826 int
7827 main ()
7828 {
7829 return *(signal (0, 0)) (0) == 1;
7830 ;
7831 return 0;
7832 }
7833 _ACEOF
7834 if ac_fn_c_try_compile "$LINENO"; then :
7835 ac_cv_type_signal=int
7836 else
7837 ac_cv_type_signal=void
7838 fi
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 fi
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7842 $as_echo "$ac_cv_type_signal" >&6; }
7843
7844 cat >>confdefs.h <<_ACEOF
7845 #define RETSIGTYPE $ac_cv_type_signal
7846 _ACEOF
7847
7848
7849
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7851 $as_echo_n "checking for speed_t... " >&6; }
7852 if ${emacs_cv_speed_t+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #include <termios.h>
7858 int
7859 main ()
7860 {
7861 speed_t x = 1;
7862 ;
7863 return 0;
7864 }
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"; then :
7867 emacs_cv_speed_t=yes
7868 else
7869 emacs_cv_speed_t=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7874 $as_echo "$emacs_cv_speed_t" >&6; }
7875 if test $emacs_cv_speed_t = yes; then
7876
7877 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7878
7879 fi
7880
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7882 $as_echo_n "checking for struct timeval... " >&6; }
7883 if ${emacs_cv_struct_timeval+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #ifdef TIME_WITH_SYS_TIME
7889 #include <sys/time.h>
7890 #include <time.h>
7891 #else
7892 #ifdef HAVE_SYS_TIME_H
7893 #include <sys/time.h>
7894 #else
7895 #include <time.h>
7896 #endif
7897 #endif
7898 int
7899 main ()
7900 {
7901 static struct timeval x; x.tv_sec = x.tv_usec;
7902 ;
7903 return 0;
7904 }
7905 _ACEOF
7906 if ac_fn_c_try_compile "$LINENO"; then :
7907 emacs_cv_struct_timeval=yes
7908 else
7909 emacs_cv_struct_timeval=no
7910 fi
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 fi
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7914 $as_echo "$emacs_cv_struct_timeval" >&6; }
7915 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7916 if test $emacs_cv_struct_timeval = yes; then
7917
7918 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7919
7920 fi
7921
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7923 $as_echo_n "checking for struct exception... " >&6; }
7924 if ${emacs_cv_struct_exception+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929 #include <math.h>
7930 int
7931 main ()
7932 {
7933 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_compile "$LINENO"; then :
7939 emacs_cv_struct_exception=yes
7940 else
7941 emacs_cv_struct_exception=no
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7944 fi
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7946 $as_echo "$emacs_cv_struct_exception" >&6; }
7947 HAVE_EXCEPTION=$emacs_cv_struct_exception
7948 if test $emacs_cv_struct_exception != yes; then
7949
7950 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7951
7952 fi
7953
7954 for ac_header in sys/socket.h
7955 do :
7956 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7957 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7958 cat >>confdefs.h <<_ACEOF
7959 #define HAVE_SYS_SOCKET_H 1
7960 _ACEOF
7961
7962 fi
7963
7964 done
7965
7966 for ac_header in net/if.h
7967 do :
7968 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7969 #if HAVE_SYS_SOCKET_H
7970 #include <sys/socket.h>
7971 #endif
7972 "
7973 if test "x$ac_cv_header_net_if_h" = xyes; then :
7974 cat >>confdefs.h <<_ACEOF
7975 #define HAVE_NET_IF_H 1
7976 _ACEOF
7977
7978 fi
7979
7980 done
7981
7982
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7984 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7985 if ${ac_cv_struct_tm+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 #include <sys/types.h>
7991 #include <time.h>
7992
7993 int
7994 main ()
7995 {
7996 struct tm tm;
7997 int *p = &tm.tm_sec;
7998 return !p;
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"; then :
8004 ac_cv_struct_tm=time.h
8005 else
8006 ac_cv_struct_tm=sys/time.h
8007 fi
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8011 $as_echo "$ac_cv_struct_tm" >&6; }
8012 if test $ac_cv_struct_tm = sys/time.h; then
8013
8014 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8015
8016 fi
8017
8018 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8019 #include <$ac_cv_struct_tm>
8020
8021 "
8022 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
8023
8024 cat >>confdefs.h <<_ACEOF
8025 #define HAVE_STRUCT_TM_TM_ZONE 1
8026 _ACEOF
8027
8028
8029 fi
8030
8031 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8032
8033 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8034
8035 else
8036 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8037 "
8038 if test "x$ac_cv_have_decl_tzname" = xyes; then :
8039 ac_have_decl=1
8040 else
8041 ac_have_decl=0
8042 fi
8043
8044 cat >>confdefs.h <<_ACEOF
8045 #define HAVE_DECL_TZNAME $ac_have_decl
8046 _ACEOF
8047
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8049 $as_echo_n "checking for tzname... " >&6; }
8050 if ${ac_cv_var_tzname+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 #include <time.h>
8056 #if !HAVE_DECL_TZNAME
8057 extern char *tzname[];
8058 #endif
8059
8060 int
8061 main ()
8062 {
8063 return tzname[0][0];
8064 ;
8065 return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_link "$LINENO"; then :
8069 ac_cv_var_tzname=yes
8070 else
8071 ac_cv_var_tzname=no
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075 fi
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8077 $as_echo "$ac_cv_var_tzname" >&6; }
8078 if test $ac_cv_var_tzname = yes; then
8079
8080 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8081
8082 fi
8083 fi
8084
8085 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8086 "
8087 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
8088
8089 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8090
8091 fi
8092
8093 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8094 #if HAVE_SYS_SOCKET_H
8095 #include <sys/socket.h>
8096 #endif
8097 #if HAVE_NET_IF_H
8098 #include <net/if.h>
8099 #endif
8100 "
8101 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
8102
8103 cat >>confdefs.h <<_ACEOF
8104 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8105 _ACEOF
8106
8107
8108 fi
8109 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8110 #if HAVE_SYS_SOCKET_H
8111 #include <sys/socket.h>
8112 #endif
8113 #if HAVE_NET_IF_H
8114 #include <net/if.h>
8115 #endif
8116 "
8117 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
8118
8119 cat >>confdefs.h <<_ACEOF
8120 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8121 _ACEOF
8122
8123
8124 fi
8125 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8126 #if HAVE_SYS_SOCKET_H
8127 #include <sys/socket.h>
8128 #endif
8129 #if HAVE_NET_IF_H
8130 #include <net/if.h>
8131 #endif
8132 "
8133 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
8134
8135 cat >>confdefs.h <<_ACEOF
8136 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8137 _ACEOF
8138
8139
8140 fi
8141 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8144 #endif
8145 #if HAVE_NET_IF_H
8146 #include <net/if.h>
8147 #endif
8148 "
8149 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
8150
8151 cat >>confdefs.h <<_ACEOF
8152 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8153 _ACEOF
8154
8155
8156 fi
8157 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8158 #if HAVE_SYS_SOCKET_H
8159 #include <sys/socket.h>
8160 #endif
8161 #if HAVE_NET_IF_H
8162 #include <net/if.h>
8163 #endif
8164 "
8165 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
8166
8167 cat >>confdefs.h <<_ACEOF
8168 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8169 _ACEOF
8170
8171
8172 fi
8173
8174
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8177 $as_echo_n "checking for function prototypes... " >&6; }
8178 if test "$ac_cv_prog_cc_c89" != no; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8180 $as_echo "yes" >&6; }
8181
8182 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8183
8184
8185 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8186
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8190 fi
8191
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8193 $as_echo_n "checking for working volatile... " >&6; }
8194 if ${ac_cv_c_volatile+:} false; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199
8200 int
8201 main ()
8202 {
8203
8204 volatile int x;
8205 int * volatile y = (int *) 0;
8206 return !x && !y;
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 ac_cv_c_volatile=yes
8213 else
8214 ac_cv_c_volatile=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8219 $as_echo "$ac_cv_c_volatile" >&6; }
8220 if test $ac_cv_c_volatile = no; then
8221
8222 $as_echo "#define volatile /**/" >>confdefs.h
8223
8224 fi
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8227 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8228 if ${ac_cv_c_const+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8233
8234 int
8235 main ()
8236 {
8237 /* FIXME: Include the comments suggested by Paul. */
8238 #ifndef __cplusplus
8239 /* Ultrix mips cc rejects this. */
8240 typedef int charset[2];
8241 const charset cs;
8242 /* SunOS 4.1.1 cc rejects this. */
8243 char const *const *pcpcc;
8244 char **ppc;
8245 /* NEC SVR4.0.2 mips cc rejects this. */
8246 struct point {int x, y;};
8247 static struct point const zero = {0,0};
8248 /* AIX XL C 1.02.0.0 rejects this.
8249 It does not let you subtract one const X* pointer from another in
8250 an arm of an if-expression whose if-part is not a constant
8251 expression */
8252 const char *g = "string";
8253 pcpcc = &g + (g ? g-g : 0);
8254 /* HPUX 7.0 cc rejects these. */
8255 ++pcpcc;
8256 ppc = (char**) pcpcc;
8257 pcpcc = (char const *const *) ppc;
8258 { /* SCO 3.2v4 cc rejects this. */
8259 char *t;
8260 char const *s = 0 ? (char *) 0 : (char const *) 0;
8261
8262 *t++ = 0;
8263 if (s) return 0;
8264 }
8265 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8266 int x[] = {25, 17};
8267 const int *foo = &x[0];
8268 ++foo;
8269 }
8270 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8271 typedef const int *iptr;
8272 iptr p = 0;
8273 ++p;
8274 }
8275 { /* AIX XL C 1.02.0.0 rejects this saying
8276 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8277 struct s { int j; const int *ap[3]; };
8278 struct s *b; b->j = 5;
8279 }
8280 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8281 const int foo = 10;
8282 if (!foo) return 0;
8283 }
8284 return !cs[0] && !zero.x;
8285 #endif
8286
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292 ac_cv_c_const=yes
8293 else
8294 ac_cv_c_const=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8299 $as_echo "$ac_cv_c_const" >&6; }
8300 if test $ac_cv_c_const = no; then
8301
8302 $as_echo "#define const /**/" >>confdefs.h
8303
8304 fi
8305
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8307 $as_echo_n "checking for void * support... " >&6; }
8308 if ${emacs_cv_void_star+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h. */
8313
8314 int
8315 main ()
8316 {
8317 void * foo;
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"; then :
8323 emacs_cv_void_star=yes
8324 else
8325 emacs_cv_void_star=no
8326 fi
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 fi
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8330 $as_echo "$emacs_cv_void_star" >&6; }
8331 if test $emacs_cv_void_star = yes; then
8332 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8333
8334 else
8335 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8336
8337 fi
8338
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8340 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8341 if ${ac_cv_c_bigendian+:} false; then :
8342 $as_echo_n "(cached) " >&6
8343 else
8344 ac_cv_c_bigendian=unknown
8345 # See if we're dealing with a universal compiler.
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348 #ifndef __APPLE_CC__
8349 not a universal capable compiler
8350 #endif
8351 typedef int dummy;
8352
8353 _ACEOF
8354 if ac_fn_c_try_compile "$LINENO"; then :
8355
8356 # Check for potential -arch flags. It is not universal unless
8357 # there are at least two -arch flags with different values.
8358 ac_arch=
8359 ac_prev=
8360 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8361 if test -n "$ac_prev"; then
8362 case $ac_word in
8363 i?86 | x86_64 | ppc | ppc64)
8364 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8365 ac_arch=$ac_word
8366 else
8367 ac_cv_c_bigendian=universal
8368 break
8369 fi
8370 ;;
8371 esac
8372 ac_prev=
8373 elif test "x$ac_word" = "x-arch"; then
8374 ac_prev=arch
8375 fi
8376 done
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 if test $ac_cv_c_bigendian = unknown; then
8380 # See if sys/param.h defines the BYTE_ORDER macro.
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383 #include <sys/types.h>
8384 #include <sys/param.h>
8385
8386 int
8387 main ()
8388 {
8389 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8390 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8391 && LITTLE_ENDIAN)
8392 bogus endian macros
8393 #endif
8394
8395 ;
8396 return 0;
8397 }
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"; then :
8400 # It does; now see whether it defined to BIG_ENDIAN or not.
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <sys/types.h>
8404 #include <sys/param.h>
8405
8406 int
8407 main ()
8408 {
8409 #if BYTE_ORDER != BIG_ENDIAN
8410 not big endian
8411 #endif
8412
8413 ;
8414 return 0;
8415 }
8416 _ACEOF
8417 if ac_fn_c_try_compile "$LINENO"; then :
8418 ac_cv_c_bigendian=yes
8419 else
8420 ac_cv_c_bigendian=no
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 fi
8426 if test $ac_cv_c_bigendian = unknown; then
8427 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8430 #include <limits.h>
8431
8432 int
8433 main ()
8434 {
8435 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8436 bogus endian macros
8437 #endif
8438
8439 ;
8440 return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_compile "$LINENO"; then :
8444 # It does; now see whether it defined to _BIG_ENDIAN or not.
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8447 #include <limits.h>
8448
8449 int
8450 main ()
8451 {
8452 #ifndef _BIG_ENDIAN
8453 not big endian
8454 #endif
8455
8456 ;
8457 return 0;
8458 }
8459 _ACEOF
8460 if ac_fn_c_try_compile "$LINENO"; then :
8461 ac_cv_c_bigendian=yes
8462 else
8463 ac_cv_c_bigendian=no
8464 fi
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 fi
8469 if test $ac_cv_c_bigendian = unknown; then
8470 # Compile a test program.
8471 if test "$cross_compiling" = yes; then :
8472 # Try to guess by grepping values from an object file.
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 short int ascii_mm[] =
8476 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8477 short int ascii_ii[] =
8478 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8479 int use_ascii (int i) {
8480 return ascii_mm[i] + ascii_ii[i];
8481 }
8482 short int ebcdic_ii[] =
8483 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8484 short int ebcdic_mm[] =
8485 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8486 int use_ebcdic (int i) {
8487 return ebcdic_mm[i] + ebcdic_ii[i];
8488 }
8489 extern int foo;
8490
8491 int
8492 main ()
8493 {
8494 return use_ascii (foo) == use_ebcdic (foo);
8495 ;
8496 return 0;
8497 }
8498 _ACEOF
8499 if ac_fn_c_try_compile "$LINENO"; then :
8500 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8501 ac_cv_c_bigendian=yes
8502 fi
8503 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8504 if test "$ac_cv_c_bigendian" = unknown; then
8505 ac_cv_c_bigendian=no
8506 else
8507 # finding both strings is unlikely to happen, but who knows?
8508 ac_cv_c_bigendian=unknown
8509 fi
8510 fi
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 $ac_includes_default
8517 int
8518 main ()
8519 {
8520
8521 /* Are we little or big endian? From Harbison&Steele. */
8522 union
8523 {
8524 long int l;
8525 char c[sizeof (long int)];
8526 } u;
8527 u.l = 1;
8528 return u.c[sizeof (long int) - 1] == 1;
8529
8530 ;
8531 return 0;
8532 }
8533 _ACEOF
8534 if ac_fn_c_try_run "$LINENO"; then :
8535 ac_cv_c_bigendian=no
8536 else
8537 ac_cv_c_bigendian=yes
8538 fi
8539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8540 conftest.$ac_objext conftest.beam conftest.$ac_ext
8541 fi
8542
8543 fi
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8546 $as_echo "$ac_cv_c_bigendian" >&6; }
8547 case $ac_cv_c_bigendian in #(
8548 yes)
8549 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8550 ;; #(
8551 no)
8552 ;; #(
8553 universal)
8554
8555 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8556
8557 ;; #(
8558 *)
8559 as_fn_error $? "unknown endianness
8560 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8561 esac
8562
8563
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8565 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8566 if ${emacs_cv_attribute_aligned+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 char __attribute__ ((__aligned__ (1 << 3))) c;
8572 int
8573 main ()
8574 {
8575
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_compile "$LINENO"; then :
8581 emacs_cv_attribute_aligned=yes
8582 else
8583 emacs_cv_attribute_aligned=no
8584 fi
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8586 fi
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8588 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8589 if test $emacs_cv_attribute_aligned = yes; then
8590
8591 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8592
8593 fi
8594
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8596 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8597 set x ${MAKE-make}
8598 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8599 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 cat >conftest.make <<\_ACEOF
8603 SHELL = /bin/sh
8604 all:
8605 @echo '@@@%%%=$(MAKE)=@@@%%%'
8606 _ACEOF
8607 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8608 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8609 *@@@%%%=?*=@@@%%%*)
8610 eval ac_cv_prog_make_${ac_make}_set=yes;;
8611 *)
8612 eval ac_cv_prog_make_${ac_make}_set=no;;
8613 esac
8614 rm -f conftest.make
8615 fi
8616 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8618 $as_echo "yes" >&6; }
8619 SET_MAKE=
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 SET_MAKE="MAKE=${MAKE-make}"
8624 fi
8625
8626
8627 DEPFLAGS=
8628 MKDEPDIR=":"
8629 deps_frag=deps.mk
8630 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8632 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8633 HAVE_GNU_MAKE=no
8634 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8635 if test "x$testval" != x; then
8636 HAVE_GNU_MAKE=yes
8637 else
8638 ac_enable_autodepend=no
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8641 $as_echo "$HAVE_GNU_MAKE" >&6; }
8642 if test $HAVE_GNU_MAKE = yes; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8644 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8645 SAVE_CFLAGS="$CFLAGS"
8646 CFLAGS="$CFLAGS -MMD -MF deps.d"
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649
8650 int
8651 main ()
8652 {
8653
8654 ;
8655 return 0;
8656 }
8657 _ACEOF
8658 if ac_fn_c_try_compile "$LINENO"; then :
8659
8660 else
8661 ac_enable_autodepend=no
8662 fi
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 CFLAGS="$SAVE_CFLAGS"
8665 test -f deps.d || ac_enable_autodepend=no
8666 rm -rf deps.d
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8668 $as_echo "$ac_enable_autodepend" >&6; }
8669 fi
8670 if test $ac_enable_autodepend = yes; then
8671 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8672 ## In parallel builds, another make might create depdir between
8673 ## the first test and mkdir, so stick another test on the end.
8674 ## Or use mkinstalldirs? mkdir -p is not portable.
8675 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8676 deps_frag=autodeps.mk
8677 fi
8678 fi
8679 deps_frag=$srcdir/src/$deps_frag
8680
8681
8682
8683
8684
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8686 $as_echo_n "checking for long file names... " >&6; }
8687 if ${ac_cv_sys_long_file_names+:} false; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 ac_cv_sys_long_file_names=yes
8691 # Test for long file names in all the places we know might matter:
8692 # . the current directory, where building will happen
8693 # $prefix/lib where we will be installing things
8694 # $exec_prefix/lib likewise
8695 # $TMPDIR if set, where it might want to write temporary files
8696 # /tmp where it might want to write temporary files
8697 # /var/tmp likewise
8698 # /usr/tmp likewise
8699 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8700 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8701 # in the usual case where exec_prefix is '${prefix}'.
8702 case $ac_dir in #(
8703 . | /* | ?:[\\/]*) ;; #(
8704 *) continue;;
8705 esac
8706 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8707 ac_xdir=$ac_dir/cf$$
8708 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8709 ac_tf1=$ac_xdir/conftest9012345
8710 ac_tf2=$ac_xdir/conftest9012346
8711 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8712 ac_cv_sys_long_file_names=no
8713 rm -f -r "$ac_xdir" 2>/dev/null
8714 test $ac_cv_sys_long_file_names = no && break
8715 done
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8718 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8719 if test $ac_cv_sys_long_file_names = yes; then
8720
8721 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8722
8723 fi
8724
8725
8726 #### Choose a window system.
8727
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8729 $as_echo_n "checking for X... " >&6; }
8730
8731
8732 # Check whether --with-x was given.
8733 if test "${with_x+set}" = set; then :
8734 withval=$with_x;
8735 fi
8736
8737 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8738 if test "x$with_x" = xno; then
8739 # The user explicitly disabled X.
8740 have_x=disabled
8741 else
8742 case $x_includes,$x_libraries in #(
8743 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8744 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 # One or both of the vars are not set, and there is no cached value.
8748 ac_x_includes=no ac_x_libraries=no
8749 rm -f -r conftest.dir
8750 if mkdir conftest.dir; then
8751 cd conftest.dir
8752 cat >Imakefile <<'_ACEOF'
8753 incroot:
8754 @echo incroot='${INCROOT}'
8755 usrlibdir:
8756 @echo usrlibdir='${USRLIBDIR}'
8757 libdir:
8758 @echo libdir='${LIBDIR}'
8759 _ACEOF
8760 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8761 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8762 for ac_var in incroot usrlibdir libdir; do
8763 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8764 done
8765 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8766 for ac_extension in a so sl dylib la dll; do
8767 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8768 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8769 ac_im_usrlibdir=$ac_im_libdir; break
8770 fi
8771 done
8772 # Screen out bogus values from the imake configuration. They are
8773 # bogus both because they are the default anyway, and because
8774 # using them would break gcc on systems where it needs fixed includes.
8775 case $ac_im_incroot in
8776 /usr/include) ac_x_includes= ;;
8777 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8778 esac
8779 case $ac_im_usrlibdir in
8780 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8781 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8782 esac
8783 fi
8784 cd ..
8785 rm -f -r conftest.dir
8786 fi
8787
8788 # Standard set of common directories for X headers.
8789 # Check X11 before X11Rn because it is often a symlink to the current release.
8790 ac_x_header_dirs='
8791 /usr/X11/include
8792 /usr/X11R7/include
8793 /usr/X11R6/include
8794 /usr/X11R5/include
8795 /usr/X11R4/include
8796
8797 /usr/include/X11
8798 /usr/include/X11R7
8799 /usr/include/X11R6
8800 /usr/include/X11R5
8801 /usr/include/X11R4
8802
8803 /usr/local/X11/include
8804 /usr/local/X11R7/include
8805 /usr/local/X11R6/include
8806 /usr/local/X11R5/include
8807 /usr/local/X11R4/include
8808
8809 /usr/local/include/X11
8810 /usr/local/include/X11R7
8811 /usr/local/include/X11R6
8812 /usr/local/include/X11R5
8813 /usr/local/include/X11R4
8814
8815 /usr/X386/include
8816 /usr/x386/include
8817 /usr/XFree86/include/X11
8818
8819 /usr/include
8820 /usr/local/include
8821 /usr/unsupported/include
8822 /usr/athena/include
8823 /usr/local/x11r5/include
8824 /usr/lpp/Xamples/include
8825
8826 /usr/openwin/include
8827 /usr/openwin/share/include'
8828
8829 if test "$ac_x_includes" = no; then
8830 # Guess where to find include files, by looking for Xlib.h.
8831 # First, try using that file with no special directory specified.
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834 #include <X11/Xlib.h>
8835 _ACEOF
8836 if ac_fn_c_try_cpp "$LINENO"; then :
8837 # We can compile using X headers with no special include directory.
8838 ac_x_includes=
8839 else
8840 for ac_dir in $ac_x_header_dirs; do
8841 if test -r "$ac_dir/X11/Xlib.h"; then
8842 ac_x_includes=$ac_dir
8843 break
8844 fi
8845 done
8846 fi
8847 rm -f conftest.err conftest.i conftest.$ac_ext
8848 fi # $ac_x_includes = no
8849
8850 if test "$ac_x_libraries" = no; then
8851 # Check for the libraries.
8852 # See if we find them without any special options.
8853 # Don't add to $LIBS permanently.
8854 ac_save_LIBS=$LIBS
8855 LIBS="-lX11 $LIBS"
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <X11/Xlib.h>
8859 int
8860 main ()
8861 {
8862 XrmInitialize ()
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_link "$LINENO"; then :
8868 LIBS=$ac_save_LIBS
8869 # We can link X programs with no special library path.
8870 ac_x_libraries=
8871 else
8872 LIBS=$ac_save_LIBS
8873 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8874 do
8875 # Don't even attempt the hair of trying to link an X program!
8876 for ac_extension in a so sl dylib la dll; do
8877 if test -r "$ac_dir/libX11.$ac_extension"; then
8878 ac_x_libraries=$ac_dir
8879 break 2
8880 fi
8881 done
8882 done
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 fi # $ac_x_libraries = no
8887
8888 case $ac_x_includes,$ac_x_libraries in #(
8889 no,* | *,no | *\'*)
8890 # Didn't find X, or a directory has "'" in its name.
8891 ac_cv_have_x="have_x=no";; #(
8892 *)
8893 # Record where we found X for the cache.
8894 ac_cv_have_x="have_x=yes\
8895 ac_x_includes='$ac_x_includes'\
8896 ac_x_libraries='$ac_x_libraries'"
8897 esac
8898 fi
8899 ;; #(
8900 *) have_x=yes;;
8901 esac
8902 eval "$ac_cv_have_x"
8903 fi # $with_x != no
8904
8905 if test "$have_x" != yes; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8907 $as_echo "$have_x" >&6; }
8908 no_x=yes
8909 else
8910 # If each of the values was on the command line, it overrides each guess.
8911 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8912 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8913 # Update the cache value to reflect the command line values.
8914 ac_cv_have_x="have_x=yes\
8915 ac_x_includes='$x_includes'\
8916 ac_x_libraries='$x_libraries'"
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8918 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8919 fi
8920
8921 if test "$no_x" = yes; then
8922 window_system=none
8923 else
8924 window_system=x11
8925 fi
8926
8927 ## Workaround for bug in autoconf <= 2.62.
8928 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8929 ## No need to do anything special for these standard directories.
8930 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8931
8932 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8933
8934 fi
8935
8936 LD_SWITCH_X_SITE_AUX=
8937 LD_SWITCH_X_SITE_AUX_RPATH=
8938 if test "${x_libraries}" != NONE; then
8939 if test -n "${x_libraries}"; then
8940 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8941 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8942 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8943 fi
8944 x_default_search_path=""
8945 x_search_path=${x_libraries}
8946 if test -z "${x_search_path}"; then
8947 x_search_path=/usr/lib
8948 fi
8949 for x_library in `echo ${x_search_path}: | \
8950 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8951 x_search_path="\
8952 ${x_library}/X11/%L/%T/%N%C%S:\
8953 ${x_library}/X11/%l/%T/%N%C%S:\
8954 ${x_library}/X11/%T/%N%C%S:\
8955 ${x_library}/X11/%L/%T/%N%S:\
8956 ${x_library}/X11/%l/%T/%N%S:\
8957 ${x_library}/X11/%T/%N%S"
8958 if test x"${x_default_search_path}" = x; then
8959 x_default_search_path=${x_search_path}
8960 else
8961 x_default_search_path="${x_search_path}:${x_default_search_path}"
8962 fi
8963 done
8964 fi
8965
8966
8967
8968 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8969 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8970 fi
8971
8972 if test x"${x_includes}" = x; then
8973 bitmapdir=/usr/include/X11/bitmaps
8974 else
8975 # accumulate include directories that have X11 bitmap subdirectories
8976 bmd_acc="dummyval"
8977 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8978 if test -d "${bmd}/X11/bitmaps"; then
8979 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8980 fi
8981 if test -d "${bmd}/bitmaps"; then
8982 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8983 fi
8984 done
8985 if test ${bmd_acc} != "dummyval"; then
8986 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8987 fi
8988 fi
8989
8990 HAVE_NS=no
8991 NS_IMPL_COCOA=no
8992 NS_IMPL_GNUSTEP=no
8993 tmp_CPPFLAGS="$CPPFLAGS"
8994 tmp_CFLAGS="$CFLAGS"
8995 CPPFLAGS="$CPPFLAGS -x objective-c"
8996 CFLAGS="$CFLAGS -x objective-c"
8997 TEMACS_LDFLAGS2="\${LDFLAGS}"
8998 if test "${with_ns}" != no; then
8999 if test "${opsys}" = darwin; then
9000 NS_IMPL_COCOA=yes
9001 ns_appdir=`pwd`/nextstep/Emacs.app
9002 ns_appbindir=${ns_appdir}/Contents/MacOS/
9003 ns_appresdir=${ns_appdir}/Contents/Resources
9004 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9005 elif test -f $GNUSTEP_CONFIG_FILE; then
9006 NS_IMPL_GNUSTEP=yes
9007 ns_appdir=`pwd`/nextstep/Emacs.app
9008 ns_appbindir=${ns_appdir}/
9009 ns_appresdir=${ns_appdir}/Resources
9010 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9011 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9012 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9013 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9014 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9015 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9016 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9017 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9018 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9019 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9020 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9021 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9022 LIB_STANDARD=
9023 START_FILES=
9024 TEMACS_LDFLAGS2=
9025 fi
9026 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9027 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
9028 HAVE_NS=yes
9029 else
9030 as_fn_error $? "\`--with-ns' was specified, but the include
9031 files are missing or cannot be compiled." "$LINENO" 5
9032 fi
9033
9034
9035 NS_HAVE_NSINTEGER=yes
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #include <Foundation/NSObjCRuntime.h>
9039 int
9040 main ()
9041 {
9042 NSInteger i;
9043 ;
9044 return 0;
9045 }
9046 _ACEOF
9047 if ac_fn_c_try_compile "$LINENO"; then :
9048 ns_have_nsinteger=yes
9049 else
9050 ns_have_nsinteger=no
9051 fi
9052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9053 if test $ns_have_nsinteger = no; then
9054 NS_HAVE_NSINTEGER=no
9055 fi
9056 fi
9057
9058
9059 ns_frag=/dev/null
9060 NS_OBJ=
9061 NS_OBJC_OBJ=
9062 NS_SUPPORT=
9063 if test "${HAVE_NS}" = yes; then
9064 window_system=nextstep
9065 with_xft=no
9066 # set up packaging dirs
9067 exec_prefix=${ns_appbindir}
9068 libexecdir=${ns_appbindir}/libexec
9069 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9070 prefix=${ns_appresdir}
9071 fi
9072 ns_frag=$srcdir/src/ns.mk
9073 NS_OBJ="fontset.o fringe.o image.o"
9074 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
9075 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9076 fi
9077 CFLAGS="$tmp_CFLAGS"
9078 CPPFLAGS="$tmp_CPPFLAGS"
9079
9080
9081
9082
9083
9084
9085 case "${window_system}" in
9086 x11 )
9087 HAVE_X_WINDOWS=yes
9088 HAVE_X11=yes
9089 case "${with_x_toolkit}" in
9090 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9091 motif ) USE_X_TOOLKIT=MOTIF ;;
9092 gtk ) with_gtk=yes
9093 USE_X_TOOLKIT=none ;;
9094 gtk3 ) with_gtk3=yes
9095 USE_X_TOOLKIT=none ;;
9096 no ) USE_X_TOOLKIT=none ;;
9097 * ) USE_X_TOOLKIT=maybe ;;
9098 esac
9099 ;;
9100 nextstep | none )
9101 HAVE_X_WINDOWS=no
9102 HAVE_X11=no
9103 USE_X_TOOLKIT=none
9104 ;;
9105 esac
9106
9107 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9108 # Extract the first word of "X", so it can be a program name with args.
9109 set dummy X; ac_word=$2
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 $as_echo_n "checking for $ac_word... " >&6; }
9112 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 if test -n "$HAVE_XSERVER"; then
9116 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9117 else
9118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119 for as_dir in $PATH
9120 do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9125 ac_cv_prog_HAVE_XSERVER="true"
9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9127 break 2
9128 fi
9129 done
9130 done
9131 IFS=$as_save_IFS
9132
9133 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9134 fi
9135 fi
9136 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9137 if test -n "$HAVE_XSERVER"; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9139 $as_echo "$HAVE_XSERVER" >&6; }
9140 else
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9143 fi
9144
9145
9146 if test "$HAVE_XSERVER" = true ||
9147 test -n "$DISPLAY" ||
9148 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9149 as_fn_error $? "You seem to be running X, but no X development libraries
9150 were found. You should install the relevant development files for X
9151 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9152 sure you have development files for image handling, i.e.
9153 tiff, gif, jpeg, png and xpm.
9154 If you are sure you want Emacs compiled without X window support, pass
9155 --without-x
9156 to configure." "$LINENO" 5
9157 fi
9158 fi
9159
9160 ### If we're using X11, we should use the X menu package.
9161 HAVE_MENUS=no
9162 case ${HAVE_X11} in
9163 yes ) HAVE_MENUS=yes ;;
9164 esac
9165
9166 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9167 # Assume not, until told otherwise.
9168 GNU_MALLOC=yes
9169 doug_lea_malloc=yes
9170 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9171 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
9172
9173 else
9174 doug_lea_malloc=no
9175 fi
9176
9177 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
9178 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
9179
9180 else
9181 doug_lea_malloc=no
9182 fi
9183
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9185 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9186 if ${emacs_cv_var___after_morecore_hook+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 extern void (* __after_morecore_hook)();
9192 int
9193 main ()
9194 {
9195 __after_morecore_hook = 0
9196 ;
9197 return 0;
9198 }
9199 _ACEOF
9200 if ac_fn_c_try_link "$LINENO"; then :
9201 emacs_cv_var___after_morecore_hook=yes
9202 else
9203 emacs_cv_var___after_morecore_hook=no
9204 fi
9205 rm -f core conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
9207 fi
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9209 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9210 if test $emacs_cv_var___after_morecore_hook = no; then
9211 doug_lea_malloc=no
9212 fi
9213
9214
9215 system_malloc=no
9216 case "$opsys" in
9217 ## darwin ld insists on the use of malloc routines in the System framework.
9218 darwin|sol2-10) system_malloc=yes ;;
9219 esac
9220
9221 if test "${system_malloc}" = "yes"; then
9222
9223 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9224
9225 GNU_MALLOC=no
9226 GNU_MALLOC_reason="
9227 (The GNU allocators don't work with this system configuration.)"
9228 GMALLOC_OBJ=
9229 VMLIMIT_OBJ=
9230 else
9231 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9232 VMLIMIT_OBJ=vm-limit.o
9233 fi
9234
9235
9236
9237 if test "$doug_lea_malloc" = "yes" ; then
9238 if test "$GNU_MALLOC" = yes ; then
9239 GNU_MALLOC_reason="
9240 (Using Doug Lea's new malloc from the GNU C Library.)"
9241 fi
9242
9243 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9244
9245
9246 ## Use mmap directly for allocating larger buffers.
9247 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9248 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9249 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9250 case "$opsys" in
9251 gnu*) REL_ALLOC=no ;;
9252 esac
9253 fi
9254
9255 if test x"${REL_ALLOC}" = x; then
9256 REL_ALLOC=${GNU_MALLOC}
9257 fi
9258
9259 use_mmap_for_buffers=no
9260 case "$opsys" in
9261 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9262 esac
9263
9264
9265
9266
9267 for ac_header in $ac_header_list
9268 do :
9269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9270 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9271 "
9272 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9273 cat >>confdefs.h <<_ACEOF
9274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9275 _ACEOF
9276
9277 fi
9278
9279 done
9280
9281
9282
9283
9284
9285
9286
9287
9288 for ac_func in getpagesize
9289 do :
9290 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9291 if test "x$ac_cv_func_getpagesize" = xyes; then :
9292 cat >>confdefs.h <<_ACEOF
9293 #define HAVE_GETPAGESIZE 1
9294 _ACEOF
9295
9296 fi
9297 done
9298
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9300 $as_echo_n "checking for working mmap... " >&6; }
9301 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 if test "$cross_compiling" = yes; then :
9305 ac_cv_func_mmap_fixed_mapped=no
9306 else
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 /* malloc might have been renamed as rpl_malloc. */
9311 #undef malloc
9312
9313 /* Thanks to Mike Haertel and Jim Avera for this test.
9314 Here is a matrix of mmap possibilities:
9315 mmap private not fixed
9316 mmap private fixed at somewhere currently unmapped
9317 mmap private fixed at somewhere already mapped
9318 mmap shared not fixed
9319 mmap shared fixed at somewhere currently unmapped
9320 mmap shared fixed at somewhere already mapped
9321 For private mappings, we should verify that changes cannot be read()
9322 back from the file, nor mmap's back from the file at a different
9323 address. (There have been systems where private was not correctly
9324 implemented like the infamous i386 svr4.0, and systems where the
9325 VM page cache was not coherent with the file system buffer cache
9326 like early versions of FreeBSD and possibly contemporary NetBSD.)
9327 For shared mappings, we should conversely verify that changes get
9328 propagated back to all the places they're supposed to be.
9329
9330 Grep wants private fixed already mapped.
9331 The main things grep needs to know about mmap are:
9332 * does it exist and is it safe to write into the mmap'd area
9333 * how to use it (BSD variants) */
9334
9335 #include <fcntl.h>
9336 #include <sys/mman.h>
9337
9338 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9339 char *malloc ();
9340 #endif
9341
9342 /* This mess was copied from the GNU getpagesize.h. */
9343 #ifndef HAVE_GETPAGESIZE
9344 # ifdef _SC_PAGESIZE
9345 # define getpagesize() sysconf(_SC_PAGESIZE)
9346 # else /* no _SC_PAGESIZE */
9347 # ifdef HAVE_SYS_PARAM_H
9348 # include <sys/param.h>
9349 # ifdef EXEC_PAGESIZE
9350 # define getpagesize() EXEC_PAGESIZE
9351 # else /* no EXEC_PAGESIZE */
9352 # ifdef NBPG
9353 # define getpagesize() NBPG * CLSIZE
9354 # ifndef CLSIZE
9355 # define CLSIZE 1
9356 # endif /* no CLSIZE */
9357 # else /* no NBPG */
9358 # ifdef NBPC
9359 # define getpagesize() NBPC
9360 # else /* no NBPC */
9361 # ifdef PAGESIZE
9362 # define getpagesize() PAGESIZE
9363 # endif /* PAGESIZE */
9364 # endif /* no NBPC */
9365 # endif /* no NBPG */
9366 # endif /* no EXEC_PAGESIZE */
9367 # else /* no HAVE_SYS_PARAM_H */
9368 # define getpagesize() 8192 /* punt totally */
9369 # endif /* no HAVE_SYS_PARAM_H */
9370 # endif /* no _SC_PAGESIZE */
9371
9372 #endif /* no HAVE_GETPAGESIZE */
9373
9374 int
9375 main ()
9376 {
9377 char *data, *data2, *data3;
9378 const char *cdata2;
9379 int i, pagesize;
9380 int fd, fd2;
9381
9382 pagesize = getpagesize ();
9383
9384 /* First, make a file with some known garbage in it. */
9385 data = (char *) malloc (pagesize);
9386 if (!data)
9387 return 1;
9388 for (i = 0; i < pagesize; ++i)
9389 *(data + i) = rand ();
9390 umask (0);
9391 fd = creat ("conftest.mmap", 0600);
9392 if (fd < 0)
9393 return 2;
9394 if (write (fd, data, pagesize) != pagesize)
9395 return 3;
9396 close (fd);
9397
9398 /* Next, check that the tail of a page is zero-filled. File must have
9399 non-zero length, otherwise we risk SIGBUS for entire page. */
9400 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9401 if (fd2 < 0)
9402 return 4;
9403 cdata2 = "";
9404 if (write (fd2, cdata2, 1) != 1)
9405 return 5;
9406 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9407 if (data2 == MAP_FAILED)
9408 return 6;
9409 for (i = 0; i < pagesize; ++i)
9410 if (*(data2 + i))
9411 return 7;
9412 close (fd2);
9413 if (munmap (data2, pagesize))
9414 return 8;
9415
9416 /* Next, try to mmap the file at a fixed address which already has
9417 something else allocated at it. If we can, also make sure that
9418 we see the same garbage. */
9419 fd = open ("conftest.mmap", O_RDWR);
9420 if (fd < 0)
9421 return 9;
9422 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9423 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9424 return 10;
9425 for (i = 0; i < pagesize; ++i)
9426 if (*(data + i) != *(data2 + i))
9427 return 11;
9428
9429 /* Finally, make sure that changes to the mapped area do not
9430 percolate back to the file as seen by read(). (This is a bug on
9431 some variants of i386 svr4.0.) */
9432 for (i = 0; i < pagesize; ++i)
9433 *(data2 + i) = *(data2 + i) + 1;
9434 data3 = (char *) malloc (pagesize);
9435 if (!data3)
9436 return 12;
9437 if (read (fd, data3, pagesize) != pagesize)
9438 return 13;
9439 for (i = 0; i < pagesize; ++i)
9440 if (*(data + i) != *(data3 + i))
9441 return 14;
9442 close (fd);
9443 return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_run "$LINENO"; then :
9447 ac_cv_func_mmap_fixed_mapped=yes
9448 else
9449 ac_cv_func_mmap_fixed_mapped=no
9450 fi
9451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9452 conftest.$ac_objext conftest.beam conftest.$ac_ext
9453 fi
9454
9455 fi
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9457 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9458 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9459
9460 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9461
9462 fi
9463 rm -f conftest.mmap conftest.txt
9464
9465 if test $use_mmap_for_buffers = yes; then
9466
9467 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9468
9469 REL_ALLOC=no
9470 fi
9471
9472 LIBS="$LIBS_SYSTEM $LIBS"
9473
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9475 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9476 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 ac_check_lib_save_LIBS=$LIBS
9480 LIBS="-ldnet $LIBS"
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483
9484 /* Override any GCC internal prototype to avoid an error.
9485 Use char because int might match the return type of a GCC
9486 builtin and then its argument prototype would still apply. */
9487 #ifdef __cplusplus
9488 extern "C"
9489 #endif
9490 char dnet_ntoa ();
9491 int
9492 main ()
9493 {
9494 return dnet_ntoa ();
9495 ;
9496 return 0;
9497 }
9498 _ACEOF
9499 if ac_fn_c_try_link "$LINENO"; then :
9500 ac_cv_lib_dnet_dnet_ntoa=yes
9501 else
9502 ac_cv_lib_dnet_dnet_ntoa=no
9503 fi
9504 rm -f core conftest.err conftest.$ac_objext \
9505 conftest$ac_exeext conftest.$ac_ext
9506 LIBS=$ac_check_lib_save_LIBS
9507 fi
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9509 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9510 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9511 cat >>confdefs.h <<_ACEOF
9512 #define HAVE_LIBDNET 1
9513 _ACEOF
9514
9515 LIBS="-ldnet $LIBS"
9516
9517 fi
9518
9519
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9521 $as_echo_n "checking for main in -lXbsd... " >&6; }
9522 if ${ac_cv_lib_Xbsd_main+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 ac_check_lib_save_LIBS=$LIBS
9526 LIBS="-lXbsd $LIBS"
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9529
9530
9531 int
9532 main ()
9533 {
9534 return main ();
9535 ;
9536 return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540 ac_cv_lib_Xbsd_main=yes
9541 else
9542 ac_cv_lib_Xbsd_main=no
9543 fi
9544 rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9547 fi
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9549 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9550 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9551 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9552 fi
9553
9554
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9556 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9557 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 ac_check_lib_save_LIBS=$LIBS
9561 LIBS="-lpthreads $LIBS"
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564
9565 /* Override any GCC internal prototype to avoid an error.
9566 Use char because int might match the return type of a GCC
9567 builtin and then its argument prototype would still apply. */
9568 #ifdef __cplusplus
9569 extern "C"
9570 #endif
9571 char cma_open ();
9572 int
9573 main ()
9574 {
9575 return cma_open ();
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 ac_cv_lib_pthreads_cma_open=yes
9582 else
9583 ac_cv_lib_pthreads_cma_open=no
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587 LIBS=$ac_check_lib_save_LIBS
9588 fi
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9590 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9591 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9592 cat >>confdefs.h <<_ACEOF
9593 #define HAVE_LIBPTHREADS 1
9594 _ACEOF
9595
9596 LIBS="-lpthreads $LIBS"
9597
9598 fi
9599
9600
9601 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9602 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9603 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9604 ## added to LIBS in configure would never contain the pthreads part,
9605 ## but the value used in Makefiles might. FIXME?
9606 ##
9607 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9608 ## be harmless on older versions of X where it happens to exist.
9609 test "$opsys" = "aix4-2" && \
9610 test $ac_cv_lib_pthreads_cma_open = yes && \
9611 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9612
9613
9614 case ${host_os} in
9615 aix*)
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9617 $as_echo_n "checking for -bbigtoc option... " >&6; }
9618 if ${gdb_cv_bigtoc+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621
9622 case $GCC in
9623 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9624 *) gdb_cv_bigtoc=-bbigtoc ;;
9625 esac
9626
9627 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630
9631 int
9632 main ()
9633 {
9634 int i;
9635 ;
9636 return 0;
9637 }
9638 _ACEOF
9639 if ac_fn_c_try_link "$LINENO"; then :
9640
9641 else
9642 gdb_cv_bigtoc=
9643 fi
9644 rm -f core conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646
9647 fi
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9649 $as_echo "$gdb_cv_bigtoc" >&6; }
9650 ;;
9651 esac
9652
9653 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9654 # used for the tests that follow. We set them back to REAL_CFLAGS and
9655 # REAL_CPPFLAGS later on.
9656
9657 REAL_CFLAGS="$CFLAGS"
9658 REAL_CPPFLAGS="$CPPFLAGS"
9659
9660 if test "${HAVE_X11}" = "yes"; then
9661 DEFS="$C_SWITCH_X_SITE $DEFS"
9662 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9663 LIBS="-lX11 $LIBS"
9664 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9665 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9666
9667 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9668 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9669 # but it's more convenient here to set LD_RUN_PATH
9670 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9671 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9672 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9673 export LD_RUN_PATH
9674 fi
9675
9676 if test "${opsys}" = "gnu-linux"; then
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9678 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9681
9682 int
9683 main ()
9684 {
9685 XOpenDisplay ("foo");
9686 ;
9687 return 0;
9688 }
9689 _ACEOF
9690 if ac_fn_c_try_link "$LINENO"; then :
9691 xlinux_first_failure=no
9692 else
9693 xlinux_first_failure=yes
9694 fi
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 if test "${xlinux_first_failure}" = "yes"; then
9698 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9699 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9700 OLD_CPPFLAGS="$CPPFLAGS"
9701 OLD_LIBS="$LIBS"
9702 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9703 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9704 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9705 LIBS="$LIBS -b i486-linuxaout"
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9708
9709 int
9710 main ()
9711 {
9712 XOpenDisplay ("foo");
9713 ;
9714 return 0;
9715 }
9716 _ACEOF
9717 if ac_fn_c_try_link "$LINENO"; then :
9718 xlinux_second_failure=no
9719 else
9720 xlinux_second_failure=yes
9721 fi
9722 rm -f core conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 if test "${xlinux_second_failure}" = "yes"; then
9725 # If we get the same failure with -b, there is no use adding -b.
9726 # So take it out. This plays safe.
9727 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9728 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9729 CPPFLAGS="$OLD_CPPFLAGS"
9730 LIBS="$OLD_LIBS"
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9735 $as_echo "yes" >&6; }
9736 fi
9737 else
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; }
9740 fi
9741 fi
9742
9743 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9744 # header files included from there.
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9746 $as_echo_n "checking for Xkb... " >&6; }
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 #include <X11/Xlib.h>
9750 #include <X11/XKBlib.h>
9751 int
9752 main ()
9753 {
9754 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_c_try_link "$LINENO"; then :
9760 emacs_xkb=yes
9761 else
9762 emacs_xkb=no
9763 fi
9764 rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9767 $as_echo "$emacs_xkb" >&6; }
9768 if test $emacs_xkb = yes; then
9769
9770 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9771
9772 fi
9773
9774 for ac_func in XrmSetDatabase XScreenResourceString \
9775 XScreenNumberOfScreen XSetWMProtocols
9776 do :
9777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9779 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9780 cat >>confdefs.h <<_ACEOF
9781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9782 _ACEOF
9783
9784 fi
9785 done
9786
9787 fi
9788
9789 if test "${window_system}" = "x11"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9791 $as_echo_n "checking X11 version 6... " >&6; }
9792 if ${emacs_cv_x11_version_6+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 #include <X11/Xlib.h>
9798 int
9799 main ()
9800 {
9801 #if XlibSpecificationRelease < 6
9802 fail;
9803 #endif
9804
9805 ;
9806 return 0;
9807 }
9808 _ACEOF
9809 if ac_fn_c_try_link "$LINENO"; then :
9810 emacs_cv_x11_version_6=yes
9811 else
9812 emacs_cv_x11_version_6=no
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816 fi
9817
9818 if test $emacs_cv_x11_version_6 = yes; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9820 $as_echo "6 or newer" >&6; }
9821
9822 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9823
9824
9825 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9826
9827 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9828 ## XIM support.
9829 case "$opsys" in
9830 sol2-*) : ;;
9831 *)
9832 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9833
9834 ;;
9835 esac
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9838 $as_echo "before 6" >&6; }
9839 fi
9840 fi
9841
9842
9843 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9844 HAVE_RSVG=no
9845 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9846 if test "${with_rsvg}" != "no"; then
9847 RSVG_REQUIRED=2.11.0
9848 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9849
9850
9851 succeeded=no
9852
9853 # Extract the first word of "pkg-config", so it can be a program name with args.
9854 set dummy pkg-config; ac_word=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9858 $as_echo_n "(cached) " >&6
9859 else
9860 case $PKG_CONFIG in
9861 [\\/]* | ?:[\\/]*)
9862 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9863 ;;
9864 *)
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 for ac_exec_ext in '' $ac_executable_extensions; do
9871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9872 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874 break 2
9875 fi
9876 done
9877 done
9878 IFS=$as_save_IFS
9879
9880 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9881 ;;
9882 esac
9883 fi
9884 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9885 if test -n "$PKG_CONFIG"; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9887 $as_echo "$PKG_CONFIG" >&6; }
9888 else
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9891 fi
9892
9893
9894
9895 if test "$PKG_CONFIG" = "no" ; then
9896 :
9897 else
9898 PKG_CONFIG_MIN_VERSION=0.9.0
9899 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9901 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9902
9903 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9905 $as_echo "yes" >&6; }
9906 succeeded=yes
9907
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9909 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9910 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9912 $as_echo "$RSVG_CFLAGS" >&6; }
9913
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9915 $as_echo_n "checking RSVG_LIBS... " >&6; }
9916 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9918 $as_echo "$RSVG_LIBS" >&6; }
9919 else
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9922 RSVG_CFLAGS=""
9923 RSVG_LIBS=""
9924 ## If we have a custom action on failure, don't print errors, but
9925 ## do set a variable so people can do so.
9926 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9927
9928 fi
9929
9930
9931
9932 else
9933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9935 fi
9936 fi
9937
9938 if test $succeeded = yes; then
9939 HAVE_RSVG=yes
9940 else
9941 :
9942 fi
9943
9944
9945
9946
9947 if test $HAVE_RSVG = yes; then
9948
9949 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9950
9951 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9952 LIBS="$RSVG_LIBS $LIBS"
9953 fi
9954 fi
9955 fi
9956
9957 HAVE_IMAGEMAGICK=no
9958 if test "${HAVE_X11}" = "yes"; then
9959 if test "${with_imagemagick}" != "no"; then
9960 IMAGEMAGICK_MODULE="Wand"
9961
9962 succeeded=no
9963
9964 # Extract the first word of "pkg-config", so it can be a program name with args.
9965 set dummy pkg-config; ac_word=$2
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9967 $as_echo_n "checking for $ac_word... " >&6; }
9968 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 case $PKG_CONFIG in
9972 [\\/]* | ?:[\\/]*)
9973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9974 ;;
9975 *)
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9978 do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 break 2
9986 fi
9987 done
9988 done
9989 IFS=$as_save_IFS
9990
9991 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9992 ;;
9993 esac
9994 fi
9995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9996 if test -n "$PKG_CONFIG"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9998 $as_echo "$PKG_CONFIG" >&6; }
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10002 fi
10003
10004
10005
10006 if test "$PKG_CONFIG" = "no" ; then
10007 :
10008 else
10009 PKG_CONFIG_MIN_VERSION=0.9.0
10010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10012 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10013
10014 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10016 $as_echo "yes" >&6; }
10017 succeeded=yes
10018
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10020 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10021 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10023 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10026 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10027 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10029 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
10030 else
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032 $as_echo "no" >&6; }
10033 IMAGEMAGICK_CFLAGS=""
10034 IMAGEMAGICK_LIBS=""
10035 ## If we have a custom action on failure, don't print errors, but
10036 ## do set a variable so people can do so.
10037 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10038
10039 fi
10040
10041
10042
10043 else
10044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10046 fi
10047 fi
10048
10049 if test $succeeded = yes; then
10050 HAVE_IMAGEMAGICK=yes
10051 else
10052 :
10053 fi
10054
10055
10056
10057
10058 if test $HAVE_IMAGEMAGICK = yes; then
10059
10060 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10061
10062 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10063 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10064 for ac_func in MagickExportImagePixels
10065 do :
10066 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
10067 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
10068 cat >>confdefs.h <<_ACEOF
10069 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10070 _ACEOF
10071
10072 fi
10073 done
10074
10075 fi
10076 fi
10077 fi
10078
10079
10080 HAVE_GTK=no
10081 if test "${with_gtk3}" = "yes"; then
10082 GLIB_REQUIRED=2.6
10083 GTK_REQUIRED=2.90
10084 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10085
10086
10087 succeeded=no
10088
10089 # Extract the first word of "pkg-config", so it can be a program name with args.
10090 set dummy pkg-config; ac_word=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092 $as_echo_n "checking for $ac_word... " >&6; }
10093 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 case $PKG_CONFIG in
10097 [\\/]* | ?:[\\/]*)
10098 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10099 ;;
10100 *)
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10103 do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 break 2
10111 fi
10112 done
10113 done
10114 IFS=$as_save_IFS
10115
10116 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10117 ;;
10118 esac
10119 fi
10120 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10121 if test -n "$PKG_CONFIG"; then
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10123 $as_echo "$PKG_CONFIG" >&6; }
10124 else
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 fi
10128
10129
10130
10131 if test "$PKG_CONFIG" = "no" ; then
10132 pkg_check_gtk=no
10133 else
10134 PKG_CONFIG_MIN_VERSION=0.9.0
10135 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10137 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10138
10139 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10141 $as_echo "yes" >&6; }
10142 succeeded=yes
10143
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10145 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10146 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10148 $as_echo "$GTK_CFLAGS" >&6; }
10149
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10151 $as_echo_n "checking GTK_LIBS... " >&6; }
10152 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10154 $as_echo "$GTK_LIBS" >&6; }
10155 else
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10158 GTK_CFLAGS=""
10159 GTK_LIBS=""
10160 ## If we have a custom action on failure, don't print errors, but
10161 ## do set a variable so people can do so.
10162 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10163
10164 fi
10165
10166
10167
10168 else
10169 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10170 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10171 fi
10172 fi
10173
10174 if test $succeeded = yes; then
10175 pkg_check_gtk=yes
10176 else
10177 pkg_check_gtk=no
10178 fi
10179
10180 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10181 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10182 fi
10183 fi
10184
10185 if test "$pkg_check_gtk" != "yes"; then
10186 HAVE_GTK=no
10187 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10188 GLIB_REQUIRED=2.6
10189 GTK_REQUIRED=2.6
10190 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10191
10192
10193 succeeded=no
10194
10195 # Extract the first word of "pkg-config", so it can be a program name with args.
10196 set dummy pkg-config; ac_word=$2
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198 $as_echo_n "checking for $ac_word... " >&6; }
10199 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 case $PKG_CONFIG in
10203 [\\/]* | ?:[\\/]*)
10204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10205 ;;
10206 *)
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 break 2
10217 fi
10218 done
10219 done
10220 IFS=$as_save_IFS
10221
10222 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10223 ;;
10224 esac
10225 fi
10226 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10227 if test -n "$PKG_CONFIG"; then
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10229 $as_echo "$PKG_CONFIG" >&6; }
10230 else
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232 $as_echo "no" >&6; }
10233 fi
10234
10235
10236
10237 if test "$PKG_CONFIG" = "no" ; then
10238 pkg_check_gtk=no
10239 else
10240 PKG_CONFIG_MIN_VERSION=0.9.0
10241 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10243 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10244
10245 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10247 $as_echo "yes" >&6; }
10248 succeeded=yes
10249
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10251 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10252 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10254 $as_echo "$GTK_CFLAGS" >&6; }
10255
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10257 $as_echo_n "checking GTK_LIBS... " >&6; }
10258 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10260 $as_echo "$GTK_LIBS" >&6; }
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263 $as_echo "no" >&6; }
10264 GTK_CFLAGS=""
10265 GTK_LIBS=""
10266 ## If we have a custom action on failure, don't print errors, but
10267 ## do set a variable so people can do so.
10268 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10269
10270 fi
10271
10272
10273
10274 else
10275 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10276 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10277 fi
10278 fi
10279
10280 if test $succeeded = yes; then
10281 pkg_check_gtk=yes
10282 else
10283 pkg_check_gtk=no
10284 fi
10285
10286 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10287 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10288 fi
10289 fi
10290 fi
10291
10292 GTK_OBJ=
10293 if test x"$pkg_check_gtk" = xyes; then
10294
10295
10296
10297 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10298 CFLAGS="$CFLAGS $GTK_CFLAGS"
10299 LIBS="$GTK_LIBS $LIBS"
10300 GTK_COMPILES=no
10301 for ac_func in gtk_main
10302 do :
10303 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10304 if test "x$ac_cv_func_gtk_main" = xyes; then :
10305 cat >>confdefs.h <<_ACEOF
10306 #define HAVE_GTK_MAIN 1
10307 _ACEOF
10308 GTK_COMPILES=yes
10309 fi
10310 done
10311
10312 if test "${GTK_COMPILES}" != "yes"; then
10313 if test "$USE_X_TOOLKIT" != "maybe"; then
10314 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10315 fi
10316 else
10317 HAVE_GTK=yes
10318
10319 $as_echo "#define USE_GTK 1" >>confdefs.h
10320
10321 GTK_OBJ=gtkutil.o
10322 USE_X_TOOLKIT=none
10323 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10324 :
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10327 closing open displays. This is no problem if you just use
10328 one display, but if you use more than one and close one of them
10329 Emacs may crash." >&5
10330 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10331 closing open displays. This is no problem if you just use
10332 one display, but if you use more than one and close one of them
10333 Emacs may crash." >&2;}
10334 sleep 3
10335 fi
10336 fi
10337
10338 fi
10339
10340
10341
10342 if test "${HAVE_GTK}" = "yes"; then
10343
10344 if test "$with_toolkit_scroll_bars" != no; then
10345 with_toolkit_scroll_bars=yes
10346 fi
10347
10348 HAVE_GTK_FILE_SELECTION=no
10349 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10350 #include <gtk/gtk.h>
10351 "
10352 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10353 HAVE_GTK_FILE_SELECTION=yes
10354 else
10355 HAVE_GTK_FILE_SELECTION=no
10356 fi
10357
10358 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10359 for ac_func in gtk_file_selection_new
10360 do :
10361 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10362 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10363 cat >>confdefs.h <<_ACEOF
10364 #define HAVE_GTK_FILE_SELECTION_NEW 1
10365 _ACEOF
10366
10367 fi
10368 done
10369
10370 fi
10371
10372 HAVE_GTK_AND_PTHREAD=no
10373 for ac_header in pthread.h
10374 do :
10375 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10376 if test "x$ac_cv_header_pthread_h" = xyes; then :
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_PTHREAD_H 1
10379 _ACEOF
10380
10381 fi
10382
10383 done
10384
10385 if test "$ac_cv_header_pthread_h"; then
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10387 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10388 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-lpthread $LIBS"
10393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395
10396 /* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
10399 #ifdef __cplusplus
10400 extern "C"
10401 #endif
10402 char pthread_self ();
10403 int
10404 main ()
10405 {
10406 return pthread_self ();
10407 ;
10408 return 0;
10409 }
10410 _ACEOF
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 ac_cv_lib_pthread_pthread_self=yes
10413 else
10414 ac_cv_lib_pthread_pthread_self=no
10415 fi
10416 rm -f core conftest.err conftest.$ac_objext \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10419 fi
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10421 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10422 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10423 HAVE_GTK_AND_PTHREAD=yes
10424 fi
10425
10426 fi
10427 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10428 case "${canonical}" in
10429 *-hpux*) ;;
10430 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10431 esac
10432
10433 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10434
10435 fi
10436
10437 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10438 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10439 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10440 gtk_orientable_set_orientation
10441 do :
10442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10443 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10444 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10445 cat >>confdefs.h <<_ACEOF
10446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10447 _ACEOF
10448
10449 fi
10450 done
10451
10452
10453 fi
10454
10455 HAVE_DBUS=no
10456 DBUS_OBJ=
10457 if test "${with_dbus}" = "yes"; then
10458
10459 succeeded=no
10460
10461 # Extract the first word of "pkg-config", so it can be a program name with args.
10462 set dummy pkg-config; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 case $PKG_CONFIG in
10469 [\\/]* | ?:[\\/]*)
10470 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10471 ;;
10472 *)
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10475 do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484 done
10485 done
10486 IFS=$as_save_IFS
10487
10488 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10489 ;;
10490 esac
10491 fi
10492 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10493 if test -n "$PKG_CONFIG"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10495 $as_echo "$PKG_CONFIG" >&6; }
10496 else
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10499 fi
10500
10501
10502
10503 if test "$PKG_CONFIG" = "no" ; then
10504 HAVE_DBUS=no
10505 else
10506 PKG_CONFIG_MIN_VERSION=0.9.0
10507 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10509 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10510
10511 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10513 $as_echo "yes" >&6; }
10514 succeeded=yes
10515
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10517 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10518 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10520 $as_echo "$DBUS_CFLAGS" >&6; }
10521
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10523 $as_echo_n "checking DBUS_LIBS... " >&6; }
10524 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10526 $as_echo "$DBUS_LIBS" >&6; }
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10530 DBUS_CFLAGS=""
10531 DBUS_LIBS=""
10532 ## If we have a custom action on failure, don't print errors, but
10533 ## do set a variable so people can do so.
10534 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10535
10536 fi
10537
10538
10539
10540 else
10541 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10542 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10543 fi
10544 fi
10545
10546 if test $succeeded = yes; then
10547 HAVE_DBUS=yes
10548 else
10549 HAVE_DBUS=no
10550 fi
10551
10552 if test "$HAVE_DBUS" = yes; then
10553 LIBS="$LIBS $DBUS_LIBS"
10554
10555 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10556
10557 for ac_func in dbus_watch_get_unix_fd
10558 do :
10559 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10560 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10561 cat >>confdefs.h <<_ACEOF
10562 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10563 _ACEOF
10564
10565 fi
10566 done
10567
10568 DBUS_OBJ=dbusbind.o
10569 fi
10570 fi
10571
10572
10573 HAVE_GCONF=no
10574 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10575
10576 succeeded=no
10577
10578 # Extract the first word of "pkg-config", so it can be a program name with args.
10579 set dummy pkg-config; ac_word=$2
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 $as_echo_n "checking for $ac_word... " >&6; }
10582 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 case $PKG_CONFIG in
10586 [\\/]* | ?:[\\/]*)
10587 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10588 ;;
10589 *)
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10597 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601 done
10602 done
10603 IFS=$as_save_IFS
10604
10605 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10606 ;;
10607 esac
10608 fi
10609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10610 if test -n "$PKG_CONFIG"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10612 $as_echo "$PKG_CONFIG" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10616 fi
10617
10618
10619
10620 if test "$PKG_CONFIG" = "no" ; then
10621 HAVE_GCONF=no
10622 else
10623 PKG_CONFIG_MIN_VERSION=0.9.0
10624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10626 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10627
10628 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630 $as_echo "yes" >&6; }
10631 succeeded=yes
10632
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10634 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10635 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10637 $as_echo "$GCONF_CFLAGS" >&6; }
10638
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10640 $as_echo_n "checking GCONF_LIBS... " >&6; }
10641 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10643 $as_echo "$GCONF_LIBS" >&6; }
10644 else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10647 GCONF_CFLAGS=""
10648 GCONF_LIBS=""
10649 ## If we have a custom action on failure, don't print errors, but
10650 ## do set a variable so people can do so.
10651 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10652
10653 fi
10654
10655
10656
10657 else
10658 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10659 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10660 fi
10661 fi
10662
10663 if test $succeeded = yes; then
10664 HAVE_GCONF=yes
10665 else
10666 HAVE_GCONF=no
10667 fi
10668
10669 if test "$HAVE_GCONF" = yes; then
10670
10671 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10672
10673 for ac_func in g_type_init
10674 do :
10675 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10676 if test "x$ac_cv_func_g_type_init" = xyes; then :
10677 cat >>confdefs.h <<_ACEOF
10678 #define HAVE_G_TYPE_INIT 1
10679 _ACEOF
10680
10681 fi
10682 done
10683
10684 fi
10685 fi
10686
10687 HAVE_LIBSELINUX=no
10688 LIBSELINUX_LIBS=
10689 if test "${with_selinux}" = "yes"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10691 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10692 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10693 $as_echo_n "(cached) " >&6
10694 else
10695 ac_check_lib_save_LIBS=$LIBS
10696 LIBS="-lselinux $LIBS"
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 char lgetfilecon ();
10707 int
10708 main ()
10709 {
10710 return lgetfilecon ();
10711 ;
10712 return 0;
10713 }
10714 _ACEOF
10715 if ac_fn_c_try_link "$LINENO"; then :
10716 ac_cv_lib_selinux_lgetfilecon=yes
10717 else
10718 ac_cv_lib_selinux_lgetfilecon=no
10719 fi
10720 rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_lib_save_LIBS
10723 fi
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10725 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10726 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10727 HAVE_LIBSELINUX=yes
10728 else
10729 HAVE_LIBSELINUX=no
10730 fi
10731
10732 if test "$HAVE_LIBSELINUX" = yes; then
10733
10734 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10735
10736 LIBSELINUX_LIBS=-lselinux
10737 fi
10738 fi
10739
10740
10741 HAVE_GNUTLS=no
10742 if test "${with_gnutls}" = "yes" ; then
10743
10744 succeeded=no
10745
10746 # Extract the first word of "pkg-config", so it can be a program name with args.
10747 set dummy pkg-config; ac_word=$2
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10749 $as_echo_n "checking for $ac_word... " >&6; }
10750 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 case $PKG_CONFIG in
10754 [\\/]* | ?:[\\/]*)
10755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10756 ;;
10757 *)
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10760 do
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10768 fi
10769 done
10770 done
10771 IFS=$as_save_IFS
10772
10773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10774 ;;
10775 esac
10776 fi
10777 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10778 if test -n "$PKG_CONFIG"; then
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10780 $as_echo "$PKG_CONFIG" >&6; }
10781 else
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785
10786
10787
10788 if test "$PKG_CONFIG" = "no" ; then
10789 HAVE_GNUTLS=no
10790 else
10791 PKG_CONFIG_MIN_VERSION=0.9.0
10792 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10794 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10795
10796 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10798 $as_echo "yes" >&6; }
10799 succeeded=yes
10800
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10802 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10803 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10805 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10806
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10808 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10809 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10811 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 LIBGNUTLS_CFLAGS=""
10816 LIBGNUTLS_LIBS=""
10817 ## If we have a custom action on failure, don't print errors, but
10818 ## do set a variable so people can do so.
10819 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10820
10821 fi
10822
10823
10824
10825 else
10826 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10827 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10828 fi
10829 fi
10830
10831 if test $succeeded = yes; then
10832 HAVE_GNUTLS=yes
10833 else
10834 HAVE_GNUTLS=no
10835 fi
10836
10837 if test "${HAVE_GNUTLS}" = "yes"; then
10838
10839 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10840
10841 fi
10842 fi
10843
10844
10845
10846 HAVE_XAW3D=no
10847 LUCID_LIBW=
10848 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10849 if test "$with_xaw3d" != no; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10851 $as_echo_n "checking for xaw3d... " >&6; }
10852 if ${emacs_cv_xaw3d+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10857
10858 #include <X11/Intrinsic.h>
10859 #include <X11/Xaw3d/Simple.h>
10860 int
10861 main ()
10862 {
10863
10864 ;
10865 return 0;
10866 }
10867 _ACEOF
10868 if ac_fn_c_try_link "$LINENO"; then :
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10870 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10871 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873 else
10874 ac_check_lib_save_LIBS=$LIBS
10875 LIBS="-lXaw3d $LIBS"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878
10879 /* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10882 #ifdef __cplusplus
10883 extern "C"
10884 #endif
10885 char XawScrollbarSetThumb ();
10886 int
10887 main ()
10888 {
10889 return XawScrollbarSetThumb ();
10890 ;
10891 return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10896 else
10897 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 LIBS=$ac_check_lib_save_LIBS
10902 fi
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10904 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10905 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
10906 emacs_cv_xaw3d=yes
10907 else
10908 emacs_cv_xaw3d=no
10909 fi
10910
10911 else
10912 emacs_cv_xaw3d=no
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 fi
10917
10918 else
10919 emacs_cv_xaw3d=no
10920 fi
10921 if test $emacs_cv_xaw3d = yes; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10923 $as_echo "yes; using Lucid toolkit" >&6; }
10924 USE_X_TOOLKIT=LUCID
10925 HAVE_XAW3D=yes
10926 LUCID_LIBW=-lXaw3d
10927
10928 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10929
10930 else
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10934 $as_echo_n "checking for libXaw... " >&6; }
10935 if ${emacs_cv_xaw+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940
10941 #include <X11/Intrinsic.h>
10942 #include <X11/Xaw/Simple.h>
10943 int
10944 main ()
10945 {
10946
10947 ;
10948 return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_link "$LINENO"; then :
10952 emacs_cv_xaw=yes
10953 else
10954 emacs_cv_xaw=no
10955 fi
10956 rm -f core conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 fi
10959
10960 if test $emacs_cv_xaw = yes; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10962 $as_echo "yes; using Lucid toolkit" >&6; }
10963 USE_X_TOOLKIT=LUCID
10964 LUCID_LIBW=-lXaw
10965 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10966 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10969 $as_echo "no; do not use toolkit by default" >&6; }
10970 USE_X_TOOLKIT=none
10971 fi
10972 fi
10973 fi
10974
10975 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10976
10977 LIBXTR6=
10978 if test "${USE_X_TOOLKIT}" != "none"; then
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10980 $as_echo_n "checking X11 toolkit version... " >&6; }
10981 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 #include <X11/Intrinsic.h>
10987 int
10988 main ()
10989 {
10990 #if XtSpecificationRelease < 6
10991 fail;
10992 #endif
10993
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_link "$LINENO"; then :
10999 emacs_cv_x11_toolkit_version_6=yes
11000 else
11001 emacs_cv_x11_toolkit_version_6=no
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 fi
11006
11007 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11008 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11010 $as_echo "6 or newer" >&6; }
11011
11012 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11013
11014 LIBXTR6="-lSM -lICE"
11015 case "$opsys" in
11016 ## Use libw.a along with X11R6 Xt.
11017 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11018 esac
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11021 $as_echo "before 6" >&6; }
11022 fi
11023
11024 OLDLIBS="$LIBS"
11025 if test x$HAVE_X11XTR6 = xyes; then
11026 LIBS="-lXt -lSM -lICE $LIBS"
11027 else
11028 LIBS="-lXt $LIBS"
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11031 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
11032 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 ac_check_lib_save_LIBS=$LIBS
11036 LIBS="-lXmu $LIBS"
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11039
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 char XmuConvertStandardSelection ();
11047 int
11048 main ()
11049 {
11050 return XmuConvertStandardSelection ();
11051 ;
11052 return 0;
11053 }
11054 _ACEOF
11055 if ac_fn_c_try_link "$LINENO"; then :
11056 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11057 else
11058 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11063 fi
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11065 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11066 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
11067 cat >>confdefs.h <<_ACEOF
11068 #define HAVE_LIBXMU 1
11069 _ACEOF
11070
11071 LIBS="-lXmu $LIBS"
11072
11073 fi
11074
11075 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11076 fi
11077
11078
11079 LIBXMU=-lXmu
11080 case $opsys in
11081 ## These systems don't supply Xmu.
11082 hpux* | aix4-2 )
11083 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11084 ;;
11085 esac
11086
11087
11088 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11089 if test "${HAVE_X11}" = "yes"; then
11090 if test "${USE_X_TOOLKIT}" != "none"; then
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11092 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
11093 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-lXext $LIBS"
11098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11100
11101 /* Override any GCC internal prototype to avoid an error.
11102 Use char because int might match the return type of a GCC
11103 builtin and then its argument prototype would still apply. */
11104 #ifdef __cplusplus
11105 extern "C"
11106 #endif
11107 char XShapeQueryExtension ();
11108 int
11109 main ()
11110 {
11111 return XShapeQueryExtension ();
11112 ;
11113 return 0;
11114 }
11115 _ACEOF
11116 if ac_fn_c_try_link "$LINENO"; then :
11117 ac_cv_lib_Xext_XShapeQueryExtension=yes
11118 else
11119 ac_cv_lib_Xext_XShapeQueryExtension=no
11120 fi
11121 rm -f core conftest.err conftest.$ac_objext \
11122 conftest$ac_exeext conftest.$ac_ext
11123 LIBS=$ac_check_lib_save_LIBS
11124 fi
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11126 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11127 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
11128 cat >>confdefs.h <<_ACEOF
11129 #define HAVE_LIBXEXT 1
11130 _ACEOF
11131
11132 LIBS="-lXext $LIBS"
11133
11134 fi
11135
11136 fi
11137 fi
11138
11139 LIBXP=
11140 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11142 $as_echo_n "checking for Motif version 2.1... " >&6; }
11143 if ${emacs_cv_motif_version_2_1+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148 #include <Xm/Xm.h>
11149 int
11150 main ()
11151 {
11152 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11153 int x = 5;
11154 #else
11155 Motif version prior to 2.1.
11156 #endif
11157 ;
11158 return 0;
11159 }
11160 _ACEOF
11161 if ac_fn_c_try_compile "$LINENO"; then :
11162 emacs_cv_motif_version_2_1=yes
11163 else
11164 emacs_cv_motif_version_2_1=no
11165 fi
11166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11169 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
11170 if test $emacs_cv_motif_version_2_1 = yes; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11172 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
11173 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-lXp $LIBS"
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11184 #ifdef __cplusplus
11185 extern "C"
11186 #endif
11187 char XpCreateContext ();
11188 int
11189 main ()
11190 {
11191 return XpCreateContext ();
11192 ;
11193 return 0;
11194 }
11195 _ACEOF
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 ac_cv_lib_Xp_XpCreateContext=yes
11198 else
11199 ac_cv_lib_Xp_XpCreateContext=no
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11204 fi
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11206 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11207 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
11208 LIBXP=-lXp
11209 fi
11210
11211 else
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11213 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11214 if ${emacs_cv_lesstif+:} false; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 # We put this in CFLAGS temporarily to precede other -I options
11218 # that might be in CFLAGS temporarily.
11219 # We put this in CPPFLAGS where it precedes the other -I options.
11220 OLD_CPPFLAGS=$CPPFLAGS
11221 OLD_CFLAGS=$CFLAGS
11222 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11223 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11226 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11227 int
11228 main ()
11229 {
11230 int x = 5;
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 if ac_fn_c_try_compile "$LINENO"; then :
11236 emacs_cv_lesstif=yes
11237 else
11238 emacs_cv_lesstif=no
11239 fi
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11243 $as_echo "$emacs_cv_lesstif" >&6; }
11244 if test $emacs_cv_lesstif = yes; then
11245 # Make sure this -I option remains in CPPFLAGS after it is set
11246 # back to REAL_CPPFLAGS.
11247 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11248 # have those other -I options anyway. Ultimately, having this
11249 # directory ultimately in CPPFLAGS will be enough.
11250 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11251 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11252 else
11253 CFLAGS=$OLD_CFLAGS
11254 CPPFLAGS=$OLD_CPPFLAGS
11255 fi
11256 fi
11257 fi
11258
11259
11260 USE_TOOLKIT_SCROLL_BARS=no
11261 if test "${with_toolkit_scroll_bars}" != "no"; then
11262 if test "${USE_X_TOOLKIT}" != "none"; then
11263 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11264 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11265
11266 HAVE_XAW3D=no
11267 USE_TOOLKIT_SCROLL_BARS=yes
11268 elif test "${HAVE_XAW3D}" = "yes"; then
11269 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11270
11271 USE_TOOLKIT_SCROLL_BARS=yes
11272 fi
11273 elif test "${HAVE_GTK}" = "yes"; then
11274 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11275
11276 USE_TOOLKIT_SCROLL_BARS=yes
11277 elif test "${HAVE_NS}" = "yes"; then
11278 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11279
11280 USE_TOOLKIT_SCROLL_BARS=yes
11281 fi
11282 fi
11283
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286
11287 #include <X11/Xlib.h>
11288 #include <X11/Xresource.h>
11289 int
11290 main ()
11291 {
11292 XIMProc callback;
11293 ;
11294 return 0;
11295 }
11296 _ACEOF
11297 if ac_fn_c_try_compile "$LINENO"; then :
11298 HAVE_XIM=yes
11299
11300 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11301
11302 else
11303 HAVE_XIM=no
11304 fi
11305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11306
11307
11308 if test "${with_xim}" != "no"; then
11309
11310 $as_echo "#define USE_XIM 1" >>confdefs.h
11311
11312 fi
11313
11314
11315 if test "${HAVE_XIM}" != "no"; then
11316 late_CFLAGS=$CFLAGS
11317 if test "$GCC" = yes; then
11318 CFLAGS="$CFLAGS --pedantic-errors"
11319 fi
11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11322
11323 #include <X11/Xlib.h>
11324 #include <X11/Xresource.h>
11325 int
11326 main ()
11327 {
11328 Display *display;
11329 XrmDatabase db;
11330 char *res_name;
11331 char *res_class;
11332 XIMProc callback;
11333 XPointer *client_data;
11334 #ifndef __GNUC__
11335 /* If we're not using GCC, it's probably not XFree86, and this is
11336 probably right, but we can't use something like --pedantic-errors. */
11337 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11338 char*, XIMProc, XPointer*);
11339 #endif
11340 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11341 client_data);
11342 ;
11343 return 0;
11344 }
11345 _ACEOF
11346 if ac_fn_c_try_compile "$LINENO"; then :
11347 emacs_cv_arg6_star=yes
11348 fi
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11350 if test "$emacs_cv_arg6_star" = yes; then
11351 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11352
11353 else
11354 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11355
11356 fi
11357 CFLAGS=$late_CFLAGS
11358 fi
11359
11360 ### Start of font-backend (under any platform) section.
11361 # (nothing here yet -- this is a placeholder)
11362 ### End of font-backend (under any platform) section.
11363
11364 ### Start of font-backend (under X11) section.
11365 if test "${HAVE_X11}" = "yes"; then
11366
11367 succeeded=no
11368
11369 # Extract the first word of "pkg-config", so it can be a program name with args.
11370 set dummy pkg-config; ac_word=$2
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11372 $as_echo_n "checking for $ac_word... " >&6; }
11373 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 case $PKG_CONFIG in
11377 [\\/]* | ?:[\\/]*)
11378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11379 ;;
11380 *)
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11383 do
11384 IFS=$as_save_IFS
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11388 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390 break 2
11391 fi
11392 done
11393 done
11394 IFS=$as_save_IFS
11395
11396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11397 ;;
11398 esac
11399 fi
11400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11401 if test -n "$PKG_CONFIG"; then
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11403 $as_echo "$PKG_CONFIG" >&6; }
11404 else
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 fi
11408
11409
11410
11411 if test "$PKG_CONFIG" = "no" ; then
11412 HAVE_FC=no
11413 else
11414 PKG_CONFIG_MIN_VERSION=0.9.0
11415 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11417 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11418
11419 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11421 $as_echo "yes" >&6; }
11422 succeeded=yes
11423
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11425 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11426 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11428 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11431 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11432 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11434 $as_echo "$FONTCONFIG_LIBS" >&6; }
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11438 FONTCONFIG_CFLAGS=""
11439 FONTCONFIG_LIBS=""
11440 ## If we have a custom action on failure, don't print errors, but
11441 ## do set a variable so people can do so.
11442 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11443
11444 fi
11445
11446
11447
11448 else
11449 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11450 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11451 fi
11452 fi
11453
11454 if test $succeeded = yes; then
11455 HAVE_FC=yes
11456 else
11457 HAVE_FC=no
11458 fi
11459
11460
11461 ## Use -lXft if available, unless `--with-xft=no'.
11462 HAVE_XFT=maybe
11463 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11464 with_xft="no";
11465 fi
11466 if test "x${with_xft}" != "xno"; then
11467
11468
11469 succeeded=no
11470
11471 # Extract the first word of "pkg-config", so it can be a program name with args.
11472 set dummy pkg-config; ac_word=$2
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 $as_echo_n "checking for $ac_word... " >&6; }
11475 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11476 $as_echo_n "(cached) " >&6
11477 else
11478 case $PKG_CONFIG in
11479 [\\/]* | ?:[\\/]*)
11480 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11481 ;;
11482 *)
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11485 do
11486 IFS=$as_save_IFS
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11492 break 2
11493 fi
11494 done
11495 done
11496 IFS=$as_save_IFS
11497
11498 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11499 ;;
11500 esac
11501 fi
11502 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11503 if test -n "$PKG_CONFIG"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11505 $as_echo "$PKG_CONFIG" >&6; }
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11509 fi
11510
11511
11512
11513 if test "$PKG_CONFIG" = "no" ; then
11514 HAVE_XFT=no
11515 else
11516 PKG_CONFIG_MIN_VERSION=0.9.0
11517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11519 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11520
11521 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523 $as_echo "yes" >&6; }
11524 succeeded=yes
11525
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11527 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11528 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11530 $as_echo "$XFT_CFLAGS" >&6; }
11531
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11533 $as_echo_n "checking XFT_LIBS... " >&6; }
11534 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11536 $as_echo "$XFT_LIBS" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11540 XFT_CFLAGS=""
11541 XFT_LIBS=""
11542 ## If we have a custom action on failure, don't print errors, but
11543 ## do set a variable so people can do so.
11544 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11545
11546 fi
11547
11548
11549
11550 else
11551 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11552 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11553 fi
11554 fi
11555
11556 if test $succeeded = yes; then
11557 :
11558 else
11559 HAVE_XFT=no
11560 fi
11561
11562 ## Because xftfont.c uses XRenderQueryExtension, we also
11563 ## need to link to -lXrender.
11564 HAVE_XRENDER=no
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11566 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11567 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11568 $as_echo_n "(cached) " >&6
11569 else
11570 ac_check_lib_save_LIBS=$LIBS
11571 LIBS="-lXrender $LIBS"
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574
11575 /* Override any GCC internal prototype to avoid an error.
11576 Use char because int might match the return type of a GCC
11577 builtin and then its argument prototype would still apply. */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char XRenderQueryExtension ();
11582 int
11583 main ()
11584 {
11585 return XRenderQueryExtension ();
11586 ;
11587 return 0;
11588 }
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11592 else
11593 ac_cv_lib_Xrender_XRenderQueryExtension=no
11594 fi
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LIBS=$ac_check_lib_save_LIBS
11598 fi
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11600 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11601 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11602 HAVE_XRENDER=yes
11603 fi
11604
11605 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11606 OLD_CPPFLAGS="$CPPFLAGS"
11607 OLD_CFLAGS="$CFLAGS"
11608 OLD_LIBS="$LIBS"
11609 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11610 CFLAGS="$CFLAGS $XFT_CFLAGS"
11611 XFT_LIBS="-lXrender $XFT_LIBS"
11612 LIBS="$XFT_LIBS $LIBS"
11613 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11614 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11616 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11617 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-lXft $XFT_LIBS $LIBS"
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char XftFontOpen ();
11632 int
11633 main ()
11634 {
11635 return XftFontOpen ();
11636 ;
11637 return 0;
11638 }
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 ac_cv_lib_Xft_XftFontOpen=yes
11642 else
11643 ac_cv_lib_Xft_XftFontOpen=no
11644 fi
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_lib_save_LIBS
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11650 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11651 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11652 HAVE_XFT=yes
11653 fi
11654
11655 fi
11656
11657
11658
11659 if test "${HAVE_XFT}" = "yes"; then
11660
11661 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11662
11663
11664 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11665 else
11666 CPPFLAGS="$OLD_CPPFLAGS"
11667 CFLAGS="$OLD_CFLAGS"
11668 LIBS="$OLD_LIBS"
11669 fi # "${HAVE_XFT}" = "yes"
11670 fi # "$HAVE_XFT" != no
11671 fi # "x${with_xft}" != "xno"
11672
11673 if test "$HAVE_XFT" != "yes"; then
11674 HAVE_XFT=no
11675 fi
11676
11677 ## We used to allow building with FreeType and without Xft.
11678 ## However, the ftx font backend driver is not in good shape.
11679 HAVE_FREETYPE=$HAVE_XFT
11680
11681 HAVE_LIBOTF=no
11682 if test "${HAVE_FREETYPE}" = "yes"; then
11683
11684 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11685
11686 if test "${with_libotf}" != "no"; then
11687
11688 succeeded=no
11689
11690 # Extract the first word of "pkg-config", so it can be a program name with args.
11691 set dummy pkg-config; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 case $PKG_CONFIG in
11698 [\\/]* | ?:[\\/]*)
11699 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11700 ;;
11701 *)
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11704 do
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11712 fi
11713 done
11714 done
11715 IFS=$as_save_IFS
11716
11717 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11718 ;;
11719 esac
11720 fi
11721 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11722 if test -n "$PKG_CONFIG"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11724 $as_echo "$PKG_CONFIG" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11727 $as_echo "no" >&6; }
11728 fi
11729
11730
11731
11732 if test "$PKG_CONFIG" = "no" ; then
11733 HAVE_LIBOTF=no
11734 else
11735 PKG_CONFIG_MIN_VERSION=0.9.0
11736 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11738 $as_echo_n "checking for libotf... " >&6; }
11739
11740 if $PKG_CONFIG --exists "libotf" 2>&5; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742 $as_echo "yes" >&6; }
11743 succeeded=yes
11744
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11746 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11747 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11749 $as_echo "$LIBOTF_CFLAGS" >&6; }
11750
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11752 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11753 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11755 $as_echo "$LIBOTF_LIBS" >&6; }
11756 else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11759 LIBOTF_CFLAGS=""
11760 LIBOTF_LIBS=""
11761 ## If we have a custom action on failure, don't print errors, but
11762 ## do set a variable so people can do so.
11763 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11764
11765 fi
11766
11767
11768
11769 else
11770 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11771 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11772 fi
11773 fi
11774
11775 if test $succeeded = yes; then
11776 HAVE_LIBOTF=yes
11777 else
11778 HAVE_LIBOTF=no
11779 fi
11780
11781 if test "$HAVE_LIBOTF" = "yes"; then
11782
11783 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11784
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11786 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11787 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 ac_check_lib_save_LIBS=$LIBS
11791 LIBS="-lotf $LIBS"
11792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11794
11795 /* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11798 #ifdef __cplusplus
11799 extern "C"
11800 #endif
11801 char OTF_get_variation_glyphs ();
11802 int
11803 main ()
11804 {
11805 return OTF_get_variation_glyphs ();
11806 ;
11807 return 0;
11808 }
11809 _ACEOF
11810 if ac_fn_c_try_link "$LINENO"; then :
11811 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11812 else
11813 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11814 fi
11815 rm -f core conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817 LIBS=$ac_check_lib_save_LIBS
11818 fi
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11820 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11821 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11822 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11823 else
11824 HAVE_OTF_GET_VARIATION_GLYPHS=no
11825 fi
11826
11827 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11828
11829 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11830
11831 fi
11832 fi
11833 fi
11834 fi
11835
11836 HAVE_M17N_FLT=no
11837 if test "${HAVE_LIBOTF}" = yes; then
11838 if test "${with_m17n_flt}" != "no"; then
11839
11840 succeeded=no
11841
11842 # Extract the first word of "pkg-config", so it can be a program name with args.
11843 set dummy pkg-config; ac_word=$2
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11845 $as_echo_n "checking for $ac_word... " >&6; }
11846 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 case $PKG_CONFIG in
11850 [\\/]* | ?:[\\/]*)
11851 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11852 ;;
11853 *)
11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11855 for as_dir in $PATH
11856 do
11857 IFS=$as_save_IFS
11858 test -z "$as_dir" && as_dir=.
11859 for ac_exec_ext in '' $ac_executable_extensions; do
11860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11861 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11863 break 2
11864 fi
11865 done
11866 done
11867 IFS=$as_save_IFS
11868
11869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11870 ;;
11871 esac
11872 fi
11873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11874 if test -n "$PKG_CONFIG"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11876 $as_echo "$PKG_CONFIG" >&6; }
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11880 fi
11881
11882
11883
11884 if test "$PKG_CONFIG" = "no" ; then
11885 HAVE_M17N_FLT=no
11886 else
11887 PKG_CONFIG_MIN_VERSION=0.9.0
11888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11890 $as_echo_n "checking for m17n-flt... " >&6; }
11891
11892 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11895 succeeded=yes
11896
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11898 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11899 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11901 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11904 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11905 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11907 $as_echo "$M17N_FLT_LIBS" >&6; }
11908 else
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 M17N_FLT_CFLAGS=""
11912 M17N_FLT_LIBS=""
11913 ## If we have a custom action on failure, don't print errors, but
11914 ## do set a variable so people can do so.
11915 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11916
11917 fi
11918
11919
11920
11921 else
11922 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11923 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11924 fi
11925 fi
11926
11927 if test $succeeded = yes; then
11928 HAVE_M17N_FLT=yes
11929 else
11930 HAVE_M17N_FLT=no
11931 fi
11932
11933 if test "$HAVE_M17N_FLT" = "yes"; then
11934
11935 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11936
11937 fi
11938 fi
11939 fi
11940 else
11941 HAVE_XFT=no
11942 HAVE_FREETYPE=no
11943 HAVE_LIBOTF=no
11944 HAVE_M17N_FLT=no
11945 fi
11946
11947 ### End of font-backend (under X11) section.
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958 ### Use -lXpm if available, unless `--with-xpm=no'.
11959 HAVE_XPM=no
11960 LIBXPM=
11961 if test "${HAVE_X11}" = "yes"; then
11962 if test "${with_xpm}" != "no"; then
11963 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11964 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11966 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11967 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 ac_check_lib_save_LIBS=$LIBS
11971 LIBS="-lXpm -lX11 $LIBS"
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974
11975 /* Override any GCC internal prototype to avoid an error.
11976 Use char because int might match the return type of a GCC
11977 builtin and then its argument prototype would still apply. */
11978 #ifdef __cplusplus
11979 extern "C"
11980 #endif
11981 char XpmReadFileToPixmap ();
11982 int
11983 main ()
11984 {
11985 return XpmReadFileToPixmap ();
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 if ac_fn_c_try_link "$LINENO"; then :
11991 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11992 else
11993 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11994 fi
11995 rm -f core conftest.err conftest.$ac_objext \
11996 conftest$ac_exeext conftest.$ac_ext
11997 LIBS=$ac_check_lib_save_LIBS
11998 fi
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12000 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12001 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
12002 HAVE_XPM=yes
12003 fi
12004
12005 fi
12006
12007
12008 if test "${HAVE_XPM}" = "yes"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12010 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12013 #include "X11/xpm.h"
12014 #ifndef XpmReturnAllocPixels
12015 no_return_alloc_pixels
12016 #endif
12017
12018 _ACEOF
12019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12020 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12021 HAVE_XPM=no
12022 else
12023 HAVE_XPM=yes
12024 fi
12025 rm -f conftest*
12026
12027
12028 if test "${HAVE_XPM}" = "yes"; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12030 $as_echo "yes" >&6; }
12031 else
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034 fi
12035 fi
12036 fi
12037
12038 if test "${HAVE_XPM}" = "yes"; then
12039
12040 $as_echo "#define HAVE_XPM 1" >>confdefs.h
12041
12042 LIBXPM=-lXpm
12043 fi
12044 fi
12045
12046
12047 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12048 HAVE_JPEG=no
12049 LIBJPEG=
12050 if test "${HAVE_X11}" = "yes"; then
12051 if test "${with_jpeg}" != "no"; then
12052 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
12053 if test "x$ac_cv_header_jerror_h" = xyes; then :
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12055 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
12056 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 ac_check_lib_save_LIBS=$LIBS
12060 LIBS="-ljpeg $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12063
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 char jpeg_destroy_compress ();
12071 int
12072 main ()
12073 {
12074 return jpeg_destroy_compress ();
12075 ;
12076 return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"; then :
12080 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12081 else
12082 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12083 fi
12084 rm -f core conftest.err conftest.$ac_objext \
12085 conftest$ac_exeext conftest.$ac_ext
12086 LIBS=$ac_check_lib_save_LIBS
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12089 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12090 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
12091 HAVE_JPEG=yes
12092 fi
12093
12094 fi
12095
12096
12097 fi
12098
12099 if test "${HAVE_JPEG}" = "yes"; then
12100 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12101
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 #include <jpeglib.h>
12105 version=JPEG_LIB_VERSION
12106
12107 _ACEOF
12108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12109 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12110 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12111
12112 else
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12114 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12115 HAVE_JPEG=no
12116 fi
12117 rm -f conftest*
12118
12119 fi
12120 if test "${HAVE_JPEG}" = "yes"; then
12121 LIBJPEG=-ljpeg
12122 fi
12123 fi
12124
12125
12126 ### Use -lpng if available, unless `--with-png=no'.
12127 HAVE_PNG=no
12128 LIBPNG=
12129 if test "${HAVE_X11}" = "yes"; then
12130 if test "${with_png}" != "no"; then
12131 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12132 # in /usr/include/libpng.
12133 for ac_header in png.h libpng/png.h
12134 do :
12135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12136 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12138 cat >>confdefs.h <<_ACEOF
12139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12140 _ACEOF
12141
12142 fi
12143
12144 done
12145
12146 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12148 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
12149 if ${ac_cv_lib_png_png_get_channels+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151 else
12152 ac_check_lib_save_LIBS=$LIBS
12153 LIBS="-lpng -lz -lm $LIBS"
12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156
12157 /* Override any GCC internal prototype to avoid an error.
12158 Use char because int might match the return type of a GCC
12159 builtin and then its argument prototype would still apply. */
12160 #ifdef __cplusplus
12161 extern "C"
12162 #endif
12163 char png_get_channels ();
12164 int
12165 main ()
12166 {
12167 return png_get_channels ();
12168 ;
12169 return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_link "$LINENO"; then :
12173 ac_cv_lib_png_png_get_channels=yes
12174 else
12175 ac_cv_lib_png_png_get_channels=no
12176 fi
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12180 fi
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12182 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
12183 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
12184 HAVE_PNG=yes
12185 fi
12186
12187 fi
12188 fi
12189
12190 if test "${HAVE_PNG}" = "yes"; then
12191
12192 $as_echo "#define HAVE_PNG 1" >>confdefs.h
12193
12194 LIBPNG="-lpng -lz -lm"
12195 fi
12196 fi
12197
12198
12199 ### Use -ltiff if available, unless `--with-tiff=no'.
12200 HAVE_TIFF=no
12201 LIBTIFF=
12202 if test "${HAVE_X11}" = "yes"; then
12203 if test "${with_tiff}" != "no"; then
12204 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12205 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12206 tifflibs="-lz -lm"
12207 # At least one tiff package requires the jpeg library.
12208 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12210 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12211 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12212 $as_echo_n "(cached) " >&6
12213 else
12214 ac_check_lib_save_LIBS=$LIBS
12215 LIBS="-ltiff $tifflibs $LIBS"
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218
12219 /* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12222 #ifdef __cplusplus
12223 extern "C"
12224 #endif
12225 char TIFFGetVersion ();
12226 int
12227 main ()
12228 {
12229 return TIFFGetVersion ();
12230 ;
12231 return 0;
12232 }
12233 _ACEOF
12234 if ac_fn_c_try_link "$LINENO"; then :
12235 ac_cv_lib_tiff_TIFFGetVersion=yes
12236 else
12237 ac_cv_lib_tiff_TIFFGetVersion=no
12238 fi
12239 rm -f core conftest.err conftest.$ac_objext \
12240 conftest$ac_exeext conftest.$ac_ext
12241 LIBS=$ac_check_lib_save_LIBS
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12244 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12245 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12246 HAVE_TIFF=yes
12247 fi
12248
12249 fi
12250
12251
12252 fi
12253
12254 if test "${HAVE_TIFF}" = "yes"; then
12255
12256 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12257
12258 LIBTIFF=-ltiff
12259 fi
12260 fi
12261
12262
12263 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12264 HAVE_GIF=no
12265 LIBGIF=
12266 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12267 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12268 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12269 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12270 # Earlier versions can crash Emacs.
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12272 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12273 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lgif $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char EGifPutExtensionLast ();
12288 int
12289 main ()
12290 {
12291 return EGifPutExtensionLast ();
12292 ;
12293 return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_lib_gif_EGifPutExtensionLast=yes
12298 else
12299 ac_cv_lib_gif_EGifPutExtensionLast=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12306 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12307 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12308 HAVE_GIF=yes
12309 else
12310 HAVE_GIF=maybe
12311 fi
12312
12313 fi
12314
12315
12316
12317 if test "$HAVE_GIF" = yes; then
12318 LIBGIF=-lgif
12319 elif test "$HAVE_GIF" = maybe; then
12320 # If gif_lib.h but no libgif, try libungif.
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12322 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12323 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-lungif $LIBS"
12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330
12331 /* Override any GCC internal prototype to avoid an error.
12332 Use char because int might match the return type of a GCC
12333 builtin and then its argument prototype would still apply. */
12334 #ifdef __cplusplus
12335 extern "C"
12336 #endif
12337 char EGifPutExtensionLast ();
12338 int
12339 main ()
12340 {
12341 return EGifPutExtensionLast ();
12342 ;
12343 return 0;
12344 }
12345 _ACEOF
12346 if ac_fn_c_try_link "$LINENO"; then :
12347 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12348 else
12349 ac_cv_lib_ungif_EGifPutExtensionLast=no
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353 LIBS=$ac_check_lib_save_LIBS
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12356 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12357 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12358 HAVE_GIF=yes
12359 else
12360 HAVE_GIF=no
12361 fi
12362
12363 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12364 fi
12365
12366 if test "${HAVE_GIF}" = "yes"; then
12367
12368 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12369
12370 fi
12371 fi
12372
12373
12374 if test "${HAVE_X11}" = "yes"; then
12375 MISSING=""
12376 WITH_NO=""
12377 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12378 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12379 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12380 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12381 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12382 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12383 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12384 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12385 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12386 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12387
12388 if test "X${MISSING}" != X; then
12389 as_fn_error $? "The following required libraries were not found:
12390 $MISSING
12391 Maybe some development libraries/packages are missing?
12392 If you don't want to link with them give
12393 $WITH_NO
12394 as options to configure" "$LINENO" 5
12395 fi
12396 fi
12397
12398 ### Use -lgpm if available, unless `--with-gpm=no'.
12399 HAVE_GPM=no
12400 LIBGPM=
12401 MOUSE_SUPPORT=
12402 if test "${with_gpm}" != "no"; then
12403 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12404 if test "x$ac_cv_header_gpm_h" = xyes; then :
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12406 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12407 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 ac_check_lib_save_LIBS=$LIBS
12411 LIBS="-lgpm $LIBS"
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12414
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12418 #ifdef __cplusplus
12419 extern "C"
12420 #endif
12421 char Gpm_Open ();
12422 int
12423 main ()
12424 {
12425 return Gpm_Open ();
12426 ;
12427 return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_c_try_link "$LINENO"; then :
12431 ac_cv_lib_gpm_Gpm_Open=yes
12432 else
12433 ac_cv_lib_gpm_Gpm_Open=no
12434 fi
12435 rm -f core conftest.err conftest.$ac_objext \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12438 fi
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12440 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12441 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12442 HAVE_GPM=yes
12443 fi
12444
12445 fi
12446
12447
12448
12449 if test "${HAVE_GPM}" = "yes"; then
12450
12451 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12452
12453 LIBGPM=-lgpm
12454 ## May be reset below.
12455 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12456 fi
12457 fi
12458
12459
12460 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12461 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12462
12463 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12464
12465 fi
12466
12467
12468
12469 C_SWITCH_X_SYSTEM=
12470 ### Use NeXTstep API to implement GUI.
12471 if test "${HAVE_NS}" = "yes"; then
12472
12473 $as_echo "#define HAVE_NS 1" >>confdefs.h
12474
12475 if test "${NS_IMPL_COCOA}" = "yes"; then
12476
12477 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12478
12479 GNU_OBJC_CFLAGS=
12480 fi
12481 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12482
12483 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12484
12485 # See also .m.o rule in Makefile.in */
12486 # FIXME: are all these flags really needed? Document here why. */
12487 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12488 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12489 fi
12490 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12491
12492 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12493
12494 fi
12495 # We also have mouse menus.
12496 HAVE_MENUS=yes
12497 OTHER_FILES=ns-app
12498 fi
12499
12500
12501 ### Use session management (-lSM -lICE) if available
12502 HAVE_X_SM=no
12503 LIBXSM=
12504 if test "${HAVE_X11}" = "yes"; then
12505 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12506 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12508 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12509 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 ac_check_lib_save_LIBS=$LIBS
12513 LIBS="-lSM -lICE $LIBS"
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12520 #ifdef __cplusplus
12521 extern "C"
12522 #endif
12523 char SmcOpenConnection ();
12524 int
12525 main ()
12526 {
12527 return SmcOpenConnection ();
12528 ;
12529 return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"; then :
12533 ac_cv_lib_SM_SmcOpenConnection=yes
12534 else
12535 ac_cv_lib_SM_SmcOpenConnection=no
12536 fi
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 LIBS=$ac_check_lib_save_LIBS
12540 fi
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12542 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12543 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12544 HAVE_X_SM=yes
12545 fi
12546
12547 fi
12548
12549
12550
12551 if test "${HAVE_X_SM}" = "yes"; then
12552
12553 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12554
12555 LIBXSM="-lSM -lICE"
12556 case "$LIBS" in
12557 *-lSM*) ;;
12558 *) LIBS="$LIBXSM $LIBS" ;;
12559 esac
12560 fi
12561 fi
12562
12563
12564 ### Use libxml (-lxml2) if available
12565 if test "${with_xml2}" != "no"; then
12566 ### I'm not sure what the version number should be, so I just guessed.
12567
12568 succeeded=no
12569
12570 # Extract the first word of "pkg-config", so it can be a program name with args.
12571 set dummy pkg-config; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 case $PKG_CONFIG in
12578 [\\/]* | ?:[\\/]*)
12579 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12580 ;;
12581 *)
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12584 do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12589 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12591 break 2
12592 fi
12593 done
12594 done
12595 IFS=$as_save_IFS
12596
12597 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12598 ;;
12599 esac
12600 fi
12601 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12602 if test -n "$PKG_CONFIG"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12604 $as_echo "$PKG_CONFIG" >&6; }
12605 else
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12608 fi
12609
12610
12611
12612 if test "$PKG_CONFIG" = "no" ; then
12613 HAVE_LIBXML2=no
12614 else
12615 PKG_CONFIG_MIN_VERSION=0.9.0
12616 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12618 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12619
12620 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12623 succeeded=yes
12624
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12626 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12627 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12629 $as_echo "$LIBXML2_CFLAGS" >&6; }
12630
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12632 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12633 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12635 $as_echo "$LIBXML2_LIBS" >&6; }
12636 else
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12639 LIBXML2_CFLAGS=""
12640 LIBXML2_LIBS=""
12641 ## If we have a custom action on failure, don't print errors, but
12642 ## do set a variable so people can do so.
12643 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12644
12645 fi
12646
12647
12648
12649 else
12650 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12651 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12652 fi
12653 fi
12654
12655 if test $succeeded = yes; then
12656 HAVE_LIBXML2=yes
12657 else
12658 HAVE_LIBXML2=no
12659 fi
12660
12661 if test "${HAVE_LIBXML2}" = "yes"; then
12662 LIBS="$LIBXML2_LIBS $LIBS"
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12664 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12665 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 ac_check_lib_save_LIBS=$LIBS
12669 LIBS="-lxml2 $LIBS"
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12676 #ifdef __cplusplus
12677 extern "C"
12678 #endif
12679 char htmlReadMemory ();
12680 int
12681 main ()
12682 {
12683 return htmlReadMemory ();
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"; then :
12689 ac_cv_lib_xml2_htmlReadMemory=yes
12690 else
12691 ac_cv_lib_xml2_htmlReadMemory=no
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 LIBS=$ac_check_lib_save_LIBS
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12698 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12699 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12700 HAVE_LIBXML2=yes
12701 else
12702 HAVE_LIBXML2=no
12703 fi
12704
12705 if test "${HAVE_LIBXML2}" = "yes"; then
12706
12707 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12708
12709 else
12710 LIBXML2_LIBS=""
12711 LIBXML2_CFLAGS=""
12712 fi
12713 fi
12714 fi
12715
12716
12717
12718 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12720 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12721 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12722 $as_echo_n "(cached) " >&6
12723 else
12724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12726 #include <netdb.h>
12727 int
12728 main ()
12729 {
12730 return h_errno;
12731 ;
12732 return 0;
12733 }
12734 _ACEOF
12735 if ac_fn_c_try_link "$LINENO"; then :
12736 emacs_cv_netdb_declares_h_errno=yes
12737 else
12738 emacs_cv_netdb_declares_h_errno=no
12739 fi
12740 rm -f core conftest.err conftest.$ac_objext \
12741 conftest$ac_exeext conftest.$ac_ext
12742 fi
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12744 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12745 if test $emacs_cv_netdb_declares_h_errno = yes; then
12746
12747 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12748
12749 fi
12750
12751 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12752 if test "x$ac_cv_type_size_t" = xyes; then :
12753
12754 else
12755
12756 cat >>confdefs.h <<_ACEOF
12757 #define size_t unsigned int
12758 _ACEOF
12759
12760 fi
12761
12762 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12763 # for constant arguments. Useless!
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12765 $as_echo_n "checking for working alloca.h... " >&6; }
12766 if ${ac_cv_working_alloca_h+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <alloca.h>
12772 int
12773 main ()
12774 {
12775 char *p = (char *) alloca (2 * sizeof (int));
12776 if (p) return 0;
12777 ;
12778 return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_link "$LINENO"; then :
12782 ac_cv_working_alloca_h=yes
12783 else
12784 ac_cv_working_alloca_h=no
12785 fi
12786 rm -f core conftest.err conftest.$ac_objext \
12787 conftest$ac_exeext conftest.$ac_ext
12788 fi
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12790 $as_echo "$ac_cv_working_alloca_h" >&6; }
12791 if test $ac_cv_working_alloca_h = yes; then
12792
12793 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12794
12795 fi
12796
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12798 $as_echo_n "checking for alloca... " >&6; }
12799 if ${ac_cv_func_alloca_works+:} false; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804 #ifdef __GNUC__
12805 # define alloca __builtin_alloca
12806 #else
12807 # ifdef _MSC_VER
12808 # include <malloc.h>
12809 # define alloca _alloca
12810 # else
12811 # ifdef HAVE_ALLOCA_H
12812 # include <alloca.h>
12813 # else
12814 # ifdef _AIX
12815 #pragma alloca
12816 # else
12817 # ifndef alloca /* predefined by HP cc +Olibcalls */
12818 void *alloca (size_t);
12819 # endif
12820 # endif
12821 # endif
12822 # endif
12823 #endif
12824
12825 int
12826 main ()
12827 {
12828 char *p = (char *) alloca (1);
12829 if (p) return 0;
12830 ;
12831 return 0;
12832 }
12833 _ACEOF
12834 if ac_fn_c_try_link "$LINENO"; then :
12835 ac_cv_func_alloca_works=yes
12836 else
12837 ac_cv_func_alloca_works=no
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext \
12840 conftest$ac_exeext conftest.$ac_ext
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12843 $as_echo "$ac_cv_func_alloca_works" >&6; }
12844
12845 if test $ac_cv_func_alloca_works = yes; then
12846
12847 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12848
12849 else
12850 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12851 # that cause trouble. Some versions do not even contain alloca or
12852 # contain a buggy version. If you still want to use their alloca,
12853 # use ar to extract alloca.o from them instead of compiling alloca.c.
12854
12855 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12856
12857 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12858
12859
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12861 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12862 if ${ac_cv_os_cray+:} false; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 #if defined CRAY && ! defined CRAY2
12868 webecray
12869 #else
12870 wenotbecray
12871 #endif
12872
12873 _ACEOF
12874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12875 $EGREP "webecray" >/dev/null 2>&1; then :
12876 ac_cv_os_cray=yes
12877 else
12878 ac_cv_os_cray=no
12879 fi
12880 rm -f conftest*
12881
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12884 $as_echo "$ac_cv_os_cray" >&6; }
12885 if test $ac_cv_os_cray = yes; then
12886 for ac_func in _getb67 GETB67 getb67; do
12887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12888 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12889 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12890
12891 cat >>confdefs.h <<_ACEOF
12892 #define CRAY_STACKSEG_END $ac_func
12893 _ACEOF
12894
12895 break
12896 fi
12897
12898 done
12899 fi
12900
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12902 $as_echo_n "checking stack direction for C alloca... " >&6; }
12903 if ${ac_cv_c_stack_direction+:} false; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 if test "$cross_compiling" = yes; then :
12907 ac_cv_c_stack_direction=0
12908 else
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 $ac_includes_default
12912 int
12913 find_stack_direction ()
12914 {
12915 static char *addr = 0;
12916 auto char dummy;
12917 if (addr == 0)
12918 {
12919 addr = &dummy;
12920 return find_stack_direction ();
12921 }
12922 else
12923 return (&dummy > addr) ? 1 : -1;
12924 }
12925
12926 int
12927 main ()
12928 {
12929 return find_stack_direction () < 0;
12930 }
12931 _ACEOF
12932 if ac_fn_c_try_run "$LINENO"; then :
12933 ac_cv_c_stack_direction=1
12934 else
12935 ac_cv_c_stack_direction=-1
12936 fi
12937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12938 conftest.$ac_objext conftest.beam conftest.$ac_ext
12939 fi
12940
12941 fi
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12943 $as_echo "$ac_cv_c_stack_direction" >&6; }
12944 cat >>confdefs.h <<_ACEOF
12945 #define STACK_DIRECTION $ac_cv_c_stack_direction
12946 _ACEOF
12947
12948
12949 fi
12950
12951
12952 if test x"$ac_cv_func_alloca_works" != xyes; then
12953 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12954 fi
12955
12956 # fmod, logb, and frexp are found in -lm on most systems.
12957 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12959 $as_echo_n "checking for sqrt in -lm... " >&6; }
12960 if ${ac_cv_lib_m_sqrt+:} false; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 ac_check_lib_save_LIBS=$LIBS
12964 LIBS="-lm $LIBS"
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12971 #ifdef __cplusplus
12972 extern "C"
12973 #endif
12974 char sqrt ();
12975 int
12976 main ()
12977 {
12978 return sqrt ();
12979 ;
12980 return 0;
12981 }
12982 _ACEOF
12983 if ac_fn_c_try_link "$LINENO"; then :
12984 ac_cv_lib_m_sqrt=yes
12985 else
12986 ac_cv_lib_m_sqrt=no
12987 fi
12988 rm -f core conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12990 LIBS=$ac_check_lib_save_LIBS
12991 fi
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12993 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12994 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12995 cat >>confdefs.h <<_ACEOF
12996 #define HAVE_LIBM 1
12997 _ACEOF
12998
12999 LIBS="-lm $LIBS"
13000
13001 fi
13002
13003
13004 # Check for mail-locking functions in a "mail" library. Probably this should
13005 # have the same check as for liblockfile below.
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13007 $as_echo_n "checking for maillock in -lmail... " >&6; }
13008 if ${ac_cv_lib_mail_maillock+:} false; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 ac_check_lib_save_LIBS=$LIBS
13012 LIBS="-lmail $LIBS"
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015
13016 /* Override any GCC internal prototype to avoid an error.
13017 Use char because int might match the return type of a GCC
13018 builtin and then its argument prototype would still apply. */
13019 #ifdef __cplusplus
13020 extern "C"
13021 #endif
13022 char maillock ();
13023 int
13024 main ()
13025 {
13026 return maillock ();
13027 ;
13028 return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_c_try_link "$LINENO"; then :
13032 ac_cv_lib_mail_maillock=yes
13033 else
13034 ac_cv_lib_mail_maillock=no
13035 fi
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038 LIBS=$ac_check_lib_save_LIBS
13039 fi
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13041 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
13042 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
13043 have_mail=yes
13044 else
13045 have_mail=no
13046 fi
13047
13048 if test $have_mail = yes; then
13049 LIBS_MAIL=-lmail
13050 LIBS="$LIBS_MAIL $LIBS"
13051
13052 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13053
13054 else
13055 LIBS_MAIL=
13056 fi
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13058 $as_echo_n "checking for maillock in -llockfile... " >&6; }
13059 if ${ac_cv_lib_lockfile_maillock+:} false; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13062 ac_check_lib_save_LIBS=$LIBS
13063 LIBS="-llockfile $LIBS"
13064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065 /* end confdefs.h. */
13066
13067 /* Override any GCC internal prototype to avoid an error.
13068 Use char because int might match the return type of a GCC
13069 builtin and then its argument prototype would still apply. */
13070 #ifdef __cplusplus
13071 extern "C"
13072 #endif
13073 char maillock ();
13074 int
13075 main ()
13076 {
13077 return maillock ();
13078 ;
13079 return 0;
13080 }
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"; then :
13083 ac_cv_lib_lockfile_maillock=yes
13084 else
13085 ac_cv_lib_lockfile_maillock=no
13086 fi
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 LIBS=$ac_check_lib_save_LIBS
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13092 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
13093 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
13094 have_lockfile=yes
13095 else
13096 have_lockfile=no
13097 fi
13098
13099 if test $have_lockfile = yes; then
13100 LIBS_MAIL=-llockfile
13101 LIBS="$LIBS_MAIL $LIBS"
13102
13103 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13104
13105 else
13106 # If we have the shared liblockfile, assume we must use it for mail
13107 # locking (e.g. Debian). If we couldn't link against liblockfile
13108 # (no liblockfile.a installed), ensure that we don't need to.
13109 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13110 set dummy liblockfile.so; ac_word=$2
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13112 $as_echo_n "checking for $ac_word... " >&6; }
13113 if ${ac_cv_prog_liblockfile+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 if test -n "$liblockfile"; then
13117 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13118 else
13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13120 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13121 for as_dir in $as_dummy
13122 do
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for ac_exec_ext in '' $ac_executable_extensions; do
13126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13127 ac_cv_prog_liblockfile="yes"
13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13129 break 2
13130 fi
13131 done
13132 done
13133 IFS=$as_save_IFS
13134
13135 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13136 fi
13137 fi
13138 liblockfile=$ac_cv_prog_liblockfile
13139 if test -n "$liblockfile"; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13141 $as_echo "$liblockfile" >&6; }
13142 else
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13145 fi
13146
13147
13148 if test $ac_cv_prog_liblockfile = yes; then
13149 as_fn_error $? "Shared liblockfile found but can't link against it.
13150 This probably means that movemail could lose mail.
13151 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13152 fi
13153 fi
13154 for ac_func in touchlock
13155 do :
13156 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
13157 if test "x$ac_cv_func_touchlock" = xyes; then :
13158 cat >>confdefs.h <<_ACEOF
13159 #define HAVE_TOUCHLOCK 1
13160 _ACEOF
13161
13162 fi
13163 done
13164
13165 for ac_header in maillock.h
13166 do :
13167 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
13168 if test "x$ac_cv_header_maillock_h" = xyes; then :
13169 cat >>confdefs.h <<_ACEOF
13170 #define HAVE_MAILLOCK_H 1
13171 _ACEOF
13172
13173 fi
13174
13175 done
13176
13177
13178
13179 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13180 ## interlock access to the mail spool. The alternative is a lock file named
13181 ## /usr/spool/mail/$USER.lock.
13182 mail_lock=no
13183 case "$opsys" in
13184 aix4-2) mail_lock="lockf" ;;
13185
13186 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13187
13188 ## On GNU/Linux systems, both methods are used by various mail programs.
13189 ## I assume most people are using newer mailers that have heard of flock.
13190 ## Change this if you need to.
13191 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13192 ## configure gets the right answers, and that means *NOT* using flock.
13193 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13194 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13195 ## Debian maintainer hasn't provided a clean fix for Emacs.
13196 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13197 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13198 ## correct logic. -- fx
13199 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13200 ## liblockfile is a Free Software replacement for libmail, used on
13201 ## Debian systems and elsewhere. -rfr.
13202 gnu-*)
13203 mail_lock="flock"
13204 if test $have_mail = yes || test $have_lockfile = yes; then
13205 test $ac_cv_header_maillock_h = yes && mail_lock=no
13206 fi
13207 ;;
13208 esac
13209
13210 BLESSMAIL_TARGET=
13211 case "$mail_lock" in
13212 flock)
13213 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13214 ;;
13215
13216 lockf)
13217 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13218 ;;
13219
13220 *) BLESSMAIL_TARGET="need-blessmail" ;;
13221 esac
13222
13223
13224
13225 for ac_func in gethostname getdomainname dup2 \
13226 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13227 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13228 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13229 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13230 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13231 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13232 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13233 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13234 cfmakeraw cfsetspeed isnan copysign __executable_start
13235 do :
13236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13238 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13239 cat >>confdefs.h <<_ACEOF
13240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13241 _ACEOF
13242
13243 fi
13244 done
13245
13246
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13248 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13249 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251 else
13252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13254
13255 int
13256 main ()
13257 {
13258 __builtin_unwind_init ();
13259 ;
13260 return 0;
13261 }
13262 _ACEOF
13263 if ac_fn_c_try_link "$LINENO"; then :
13264 emacs_cv_func___builtin_unwind_init=yes
13265 else
13266 emacs_cv_func___builtin_unwind_init=no
13267 fi
13268 rm -f core conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270 fi
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13272 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13273 if test $emacs_cv_func___builtin_unwind_init = yes; then
13274
13275 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13276
13277 fi
13278
13279 for ac_header in sys/un.h
13280 do :
13281 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13282 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13283 cat >>confdefs.h <<_ACEOF
13284 #define HAVE_SYS_UN_H 1
13285 _ACEOF
13286
13287 fi
13288
13289 done
13290
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13293 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13294 if ${ac_cv_sys_largefile_source+:} false; then :
13295 $as_echo_n "(cached) " >&6
13296 else
13297 while :; do
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300 #include <sys/types.h> /* for off_t */
13301 #include <stdio.h>
13302 int
13303 main ()
13304 {
13305 int (*fp) (FILE *, off_t, int) = fseeko;
13306 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13307 ;
13308 return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_link "$LINENO"; then :
13312 ac_cv_sys_largefile_source=no; break
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 #define _LARGEFILE_SOURCE 1
13319 #include <sys/types.h> /* for off_t */
13320 #include <stdio.h>
13321 int
13322 main ()
13323 {
13324 int (*fp) (FILE *, off_t, int) = fseeko;
13325 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_link "$LINENO"; then :
13331 ac_cv_sys_largefile_source=1; break
13332 fi
13333 rm -f core conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 ac_cv_sys_largefile_source=unknown
13336 break
13337 done
13338 fi
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13340 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13341 case $ac_cv_sys_largefile_source in #(
13342 no | unknown) ;;
13343 *)
13344 cat >>confdefs.h <<_ACEOF
13345 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13346 _ACEOF
13347 ;;
13348 esac
13349 rm -rf conftest*
13350
13351 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13352 # in glibc 2.1.3, but that breaks too many other things.
13353 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13354 if test $ac_cv_sys_largefile_source != unknown; then
13355
13356 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13357
13358 fi
13359
13360
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13362 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13363 if ${ac_cv_func_getpgrp_void+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 # Use it with a single arg.
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 $ac_includes_default
13370 int
13371 main ()
13372 {
13373 getpgrp (0);
13374 ;
13375 return 0;
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_compile "$LINENO"; then :
13379 ac_cv_func_getpgrp_void=no
13380 else
13381 ac_cv_func_getpgrp_void=yes
13382 fi
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13387 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13388 if test $ac_cv_func_getpgrp_void = yes; then
13389
13390 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13391
13392 fi
13393
13394
13395 # Configure gnulib.
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406 LIBC_FATAL_STDERR_=1
13407 export LIBC_FATAL_STDERR_
13408
13409
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13411 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13412 if ${ac_cv_c_bigendian+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 ac_cv_c_bigendian=unknown
13416 # See if we're dealing with a universal compiler.
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 #ifndef __APPLE_CC__
13420 not a universal capable compiler
13421 #endif
13422 typedef int dummy;
13423
13424 _ACEOF
13425 if ac_fn_c_try_compile "$LINENO"; then :
13426
13427 # Check for potential -arch flags. It is not universal unless
13428 # there are at least two -arch flags with different values.
13429 ac_arch=
13430 ac_prev=
13431 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13432 if test -n "$ac_prev"; then
13433 case $ac_word in
13434 i?86 | x86_64 | ppc | ppc64)
13435 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13436 ac_arch=$ac_word
13437 else
13438 ac_cv_c_bigendian=universal
13439 break
13440 fi
13441 ;;
13442 esac
13443 ac_prev=
13444 elif test "x$ac_word" = "x-arch"; then
13445 ac_prev=arch
13446 fi
13447 done
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 if test $ac_cv_c_bigendian = unknown; then
13451 # See if sys/param.h defines the BYTE_ORDER macro.
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 #include <sys/types.h>
13455 #include <sys/param.h>
13456
13457 int
13458 main ()
13459 {
13460 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13461 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13462 && LITTLE_ENDIAN)
13463 bogus endian macros
13464 #endif
13465
13466 ;
13467 return 0;
13468 }
13469 _ACEOF
13470 if ac_fn_c_try_compile "$LINENO"; then :
13471 # It does; now see whether it defined to BIG_ENDIAN or not.
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13474 #include <sys/types.h>
13475 #include <sys/param.h>
13476
13477 int
13478 main ()
13479 {
13480 #if BYTE_ORDER != BIG_ENDIAN
13481 not big endian
13482 #endif
13483
13484 ;
13485 return 0;
13486 }
13487 _ACEOF
13488 if ac_fn_c_try_compile "$LINENO"; then :
13489 ac_cv_c_bigendian=yes
13490 else
13491 ac_cv_c_bigendian=no
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13494 fi
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 fi
13497 if test $ac_cv_c_bigendian = unknown; then
13498 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13500 /* end confdefs.h. */
13501 #include <limits.h>
13502
13503 int
13504 main ()
13505 {
13506 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13507 bogus endian macros
13508 #endif
13509
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_c_try_compile "$LINENO"; then :
13515 # It does; now see whether it defined to _BIG_ENDIAN or not.
13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517 /* end confdefs.h. */
13518 #include <limits.h>
13519
13520 int
13521 main ()
13522 {
13523 #ifndef _BIG_ENDIAN
13524 not big endian
13525 #endif
13526
13527 ;
13528 return 0;
13529 }
13530 _ACEOF
13531 if ac_fn_c_try_compile "$LINENO"; then :
13532 ac_cv_c_bigendian=yes
13533 else
13534 ac_cv_c_bigendian=no
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 fi
13540 if test $ac_cv_c_bigendian = unknown; then
13541 # Compile a test program.
13542 if test "$cross_compiling" = yes; then :
13543 # Try to guess by grepping values from an object file.
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13546 short int ascii_mm[] =
13547 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13548 short int ascii_ii[] =
13549 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13550 int use_ascii (int i) {
13551 return ascii_mm[i] + ascii_ii[i];
13552 }
13553 short int ebcdic_ii[] =
13554 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13555 short int ebcdic_mm[] =
13556 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13557 int use_ebcdic (int i) {
13558 return ebcdic_mm[i] + ebcdic_ii[i];
13559 }
13560 extern int foo;
13561
13562 int
13563 main ()
13564 {
13565 return use_ascii (foo) == use_ebcdic (foo);
13566 ;
13567 return 0;
13568 }
13569 _ACEOF
13570 if ac_fn_c_try_compile "$LINENO"; then :
13571 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13572 ac_cv_c_bigendian=yes
13573 fi
13574 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13575 if test "$ac_cv_c_bigendian" = unknown; then
13576 ac_cv_c_bigendian=no
13577 else
13578 # finding both strings is unlikely to happen, but who knows?
13579 ac_cv_c_bigendian=unknown
13580 fi
13581 fi
13582 fi
13583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 else
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 $ac_includes_default
13588 int
13589 main ()
13590 {
13591
13592 /* Are we little or big endian? From Harbison&Steele. */
13593 union
13594 {
13595 long int l;
13596 char c[sizeof (long int)];
13597 } u;
13598 u.l = 1;
13599 return u.c[sizeof (long int) - 1] == 1;
13600
13601 ;
13602 return 0;
13603 }
13604 _ACEOF
13605 if ac_fn_c_try_run "$LINENO"; then :
13606 ac_cv_c_bigendian=no
13607 else
13608 ac_cv_c_bigendian=yes
13609 fi
13610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13611 conftest.$ac_objext conftest.beam conftest.$ac_ext
13612 fi
13613
13614 fi
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13617 $as_echo "$ac_cv_c_bigendian" >&6; }
13618 case $ac_cv_c_bigendian in #(
13619 yes)
13620 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13621 ;; #(
13622 no)
13623 ;; #(
13624 universal)
13625
13626 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13627
13628 ;; #(
13629 *)
13630 as_fn_error $? "unknown endianness
13631 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13632 esac
13633
13634
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13636 $as_echo_n "checking for inline... " >&6; }
13637 if ${ac_cv_c_inline+:} false; then :
13638 $as_echo_n "(cached) " >&6
13639 else
13640 ac_cv_c_inline=no
13641 for ac_kw in inline __inline__ __inline; do
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644 #ifndef __cplusplus
13645 typedef int foo_t;
13646 static $ac_kw foo_t static_foo () {return 0; }
13647 $ac_kw foo_t foo () {return 0; }
13648 #endif
13649
13650 _ACEOF
13651 if ac_fn_c_try_compile "$LINENO"; then :
13652 ac_cv_c_inline=$ac_kw
13653 fi
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 test "$ac_cv_c_inline" != no && break
13656 done
13657
13658 fi
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13660 $as_echo "$ac_cv_c_inline" >&6; }
13661
13662 case $ac_cv_c_inline in
13663 inline | yes) ;;
13664 *)
13665 case $ac_cv_c_inline in
13666 no) ac_val=;;
13667 *) ac_val=$ac_cv_c_inline;;
13668 esac
13669 cat >>confdefs.h <<_ACEOF
13670 #ifndef __cplusplus
13671 #define inline $ac_val
13672 #endif
13673 _ACEOF
13674 ;;
13675 esac
13676
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13679 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13680 if ${gl_cv_func_c99_strtold+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 /* On HP-UX before 11.23, strtold returns a struct instead of
13686 long double. Reject implementations like that, by requiring
13687 compatibility with the C99 prototype. */
13688 #include <stdlib.h>
13689 static long double (*p) (char const *, char **) = strtold;
13690 static long double
13691 test (char const *nptr, char **endptr)
13692 {
13693 long double r;
13694 r = strtold (nptr, endptr);
13695 return r;
13696 }
13697 int
13698 main ()
13699 {
13700 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 if ac_fn_c_try_link "$LINENO"; then :
13706 gl_cv_func_c99_strtold=yes
13707 else
13708 gl_cv_func_c99_strtold=no
13709 fi
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 fi
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13714 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13715 if test $gl_cv_func_c99_strtold = yes; then
13716
13717 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13718
13719 fi
13720
13721
13722 GNULIB__EXIT=0;
13723 GNULIB_ATOLL=0;
13724 GNULIB_CALLOC_POSIX=0;
13725 GNULIB_CANONICALIZE_FILE_NAME=0;
13726 GNULIB_GETLOADAVG=0;
13727 GNULIB_GETSUBOPT=0;
13728 GNULIB_GRANTPT=0;
13729 GNULIB_MALLOC_POSIX=0;
13730 GNULIB_MKDTEMP=0;
13731 GNULIB_MKOSTEMP=0;
13732 GNULIB_MKOSTEMPS=0;
13733 GNULIB_MKSTEMP=0;
13734 GNULIB_MKSTEMPS=0;
13735 GNULIB_PTSNAME=0;
13736 GNULIB_PUTENV=0;
13737 GNULIB_RANDOM_R=0;
13738 GNULIB_REALLOC_POSIX=0;
13739 GNULIB_REALPATH=0;
13740 GNULIB_RPMATCH=0;
13741 GNULIB_SETENV=0;
13742 GNULIB_STRTOD=0;
13743 GNULIB_STRTOLL=0;
13744 GNULIB_STRTOULL=0;
13745 GNULIB_SYSTEM_POSIX=0;
13746 GNULIB_UNLOCKPT=0;
13747 GNULIB_UNSETENV=0;
13748 HAVE__EXIT=1;
13749 HAVE_ATOLL=1;
13750 HAVE_CANONICALIZE_FILE_NAME=1;
13751 HAVE_DECL_GETLOADAVG=1;
13752 HAVE_GETSUBOPT=1;
13753 HAVE_GRANTPT=1;
13754 HAVE_MKDTEMP=1;
13755 HAVE_MKOSTEMP=1;
13756 HAVE_MKOSTEMPS=1;
13757 HAVE_MKSTEMP=1;
13758 HAVE_MKSTEMPS=1;
13759 HAVE_PTSNAME=1;
13760 HAVE_RANDOM_H=1;
13761 HAVE_RANDOM_R=1;
13762 HAVE_REALPATH=1;
13763 HAVE_RPMATCH=1;
13764 HAVE_SETENV=1;
13765 HAVE_DECL_SETENV=1;
13766 HAVE_STRTOD=1;
13767 HAVE_STRTOLL=1;
13768 HAVE_STRTOULL=1;
13769 HAVE_STRUCT_RANDOM_DATA=1;
13770 HAVE_SYS_LOADAVG_H=0;
13771 HAVE_UNLOCKPT=1;
13772 HAVE_DECL_UNSETENV=1;
13773 REPLACE_CALLOC=0;
13774 REPLACE_CANONICALIZE_FILE_NAME=0;
13775 REPLACE_MALLOC=0;
13776 REPLACE_MKSTEMP=0;
13777 REPLACE_PUTENV=0;
13778 REPLACE_REALLOC=0;
13779 REPLACE_REALPATH=0;
13780 REPLACE_SETENV=0;
13781 REPLACE_STRTOD=0;
13782 REPLACE_UNSETENV=0;
13783
13784
13785 GNULIB_CHOWN=0;
13786 GNULIB_CLOSE=0;
13787 GNULIB_DUP2=0;
13788 GNULIB_DUP3=0;
13789 GNULIB_ENVIRON=0;
13790 GNULIB_EUIDACCESS=0;
13791 GNULIB_FACCESSAT=0;
13792 GNULIB_FCHDIR=0;
13793 GNULIB_FCHOWNAT=0;
13794 GNULIB_FSYNC=0;
13795 GNULIB_FTRUNCATE=0;
13796 GNULIB_GETCWD=0;
13797 GNULIB_GETDOMAINNAME=0;
13798 GNULIB_GETDTABLESIZE=0;
13799 GNULIB_GETGROUPS=0;
13800 GNULIB_GETHOSTNAME=0;
13801 GNULIB_GETLOGIN=0;
13802 GNULIB_GETLOGIN_R=0;
13803 GNULIB_GETPAGESIZE=0;
13804 GNULIB_GETUSERSHELL=0;
13805 GNULIB_LCHOWN=0;
13806 GNULIB_LINK=0;
13807 GNULIB_LINKAT=0;
13808 GNULIB_LSEEK=0;
13809 GNULIB_PIPE=0;
13810 GNULIB_PIPE2=0;
13811 GNULIB_PREAD=0;
13812 GNULIB_PWRITE=0;
13813 GNULIB_READLINK=0;
13814 GNULIB_READLINKAT=0;
13815 GNULIB_RMDIR=0;
13816 GNULIB_SLEEP=0;
13817 GNULIB_SYMLINK=0;
13818 GNULIB_SYMLINKAT=0;
13819 GNULIB_TTYNAME_R=0;
13820 GNULIB_UNISTD_H_GETOPT=0;
13821 GNULIB_UNISTD_H_SIGPIPE=0;
13822 GNULIB_UNLINK=0;
13823 GNULIB_UNLINKAT=0;
13824 GNULIB_USLEEP=0;
13825 GNULIB_WRITE=0;
13826 HAVE_CHOWN=1;
13827 HAVE_DUP2=1;
13828 HAVE_DUP3=1;
13829 HAVE_EUIDACCESS=1;
13830 HAVE_FACCESSAT=1;
13831 HAVE_FCHDIR=1;
13832 HAVE_FCHOWNAT=1;
13833 HAVE_FSYNC=1;
13834 HAVE_FTRUNCATE=1;
13835 HAVE_GETDTABLESIZE=1;
13836 HAVE_GETGROUPS=1;
13837 HAVE_GETHOSTNAME=1;
13838 HAVE_GETLOGIN=1;
13839 HAVE_GETPAGESIZE=1;
13840 HAVE_LCHOWN=1;
13841 HAVE_LINK=1;
13842 HAVE_LINKAT=1;
13843 HAVE_PIPE=1;
13844 HAVE_PIPE2=1;
13845 HAVE_PREAD=1;
13846 HAVE_PWRITE=1;
13847 HAVE_READLINK=1;
13848 HAVE_READLINKAT=1;
13849 HAVE_SLEEP=1;
13850 HAVE_SYMLINK=1;
13851 HAVE_SYMLINKAT=1;
13852 HAVE_UNLINKAT=1;
13853 HAVE_USLEEP=1;
13854 HAVE_DECL_ENVIRON=1;
13855 HAVE_DECL_FCHDIR=1;
13856 HAVE_DECL_GETDOMAINNAME=1;
13857 HAVE_DECL_GETLOGIN_R=1;
13858 HAVE_DECL_GETPAGESIZE=1;
13859 HAVE_DECL_GETUSERSHELL=1;
13860 HAVE_DECL_TTYNAME_R=1;
13861 HAVE_OS_H=0;
13862 HAVE_SYS_PARAM_H=0;
13863 REPLACE_CHOWN=0;
13864 REPLACE_CLOSE=0;
13865 REPLACE_DUP=0;
13866 REPLACE_DUP2=0;
13867 REPLACE_FCHOWNAT=0;
13868 REPLACE_GETCWD=0;
13869 REPLACE_GETDOMAINNAME=0;
13870 REPLACE_GETLOGIN_R=0;
13871 REPLACE_GETGROUPS=0;
13872 REPLACE_GETPAGESIZE=0;
13873 REPLACE_LCHOWN=0;
13874 REPLACE_LINK=0;
13875 REPLACE_LINKAT=0;
13876 REPLACE_LSEEK=0;
13877 REPLACE_PREAD=0;
13878 REPLACE_PWRITE=0;
13879 REPLACE_READLINK=0;
13880 REPLACE_RMDIR=0;
13881 REPLACE_SLEEP=0;
13882 REPLACE_SYMLINK=0;
13883 REPLACE_TTYNAME_R=0;
13884 REPLACE_UNLINK=0;
13885 REPLACE_UNLINKAT=0;
13886 REPLACE_USLEEP=0;
13887 REPLACE_WRITE=0;
13888 UNISTD_H_HAVE_WINSOCK2_H=0;
13889 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13890
13891
13892
13893
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13895 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13896 if ${gl_cv_have_include_next+:} false; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 rm -rf conftestd1a conftestd1b conftestd2
13900 mkdir conftestd1a conftestd1b conftestd2
13901 cat <<EOF > conftestd1a/conftest.h
13902 #define DEFINED_IN_CONFTESTD1
13903 #include_next <conftest.h>
13904 #ifdef DEFINED_IN_CONFTESTD2
13905 int foo;
13906 #else
13907 #error "include_next doesn't work"
13908 #endif
13909 EOF
13910 cat <<EOF > conftestd1b/conftest.h
13911 #define DEFINED_IN_CONFTESTD1
13912 #include <stdio.h>
13913 #include_next <conftest.h>
13914 #ifdef DEFINED_IN_CONFTESTD2
13915 int foo;
13916 #else
13917 #error "include_next doesn't work"
13918 #endif
13919 EOF
13920 cat <<EOF > conftestd2/conftest.h
13921 #ifndef DEFINED_IN_CONFTESTD1
13922 #error "include_next test doesn't work"
13923 #endif
13924 #define DEFINED_IN_CONFTESTD2
13925 EOF
13926 gl_save_CPPFLAGS="$CPPFLAGS"
13927 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930 #include <conftest.h>
13931 _ACEOF
13932 if ac_fn_c_try_compile "$LINENO"; then :
13933 gl_cv_have_include_next=yes
13934 else
13935 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 #include <conftest.h>
13939 _ACEOF
13940 if ac_fn_c_try_compile "$LINENO"; then :
13941 gl_cv_have_include_next=buggy
13942 else
13943 gl_cv_have_include_next=no
13944 fi
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 CPPFLAGS="$gl_save_CPPFLAGS"
13950 rm -rf conftestd1a conftestd1b conftestd2
13951
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13954 $as_echo "$gl_cv_have_include_next" >&6; }
13955 PRAGMA_SYSTEM_HEADER=
13956 if test $gl_cv_have_include_next = yes; then
13957 INCLUDE_NEXT=include_next
13958 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13959 if test -n "$GCC"; then
13960 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13961 fi
13962 else
13963 if test $gl_cv_have_include_next = buggy; then
13964 INCLUDE_NEXT=include
13965 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13966 else
13967 INCLUDE_NEXT=include
13968 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13969 fi
13970 fi
13971
13972
13973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13975 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13976 if ${gl_cv_pragma_columns+:} false; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981
13982 #ifdef __TANDEM
13983 choke me
13984 #endif
13985
13986 _ACEOF
13987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13988 $EGREP "choke me" >/dev/null 2>&1; then :
13989 gl_cv_pragma_columns=yes
13990 else
13991 gl_cv_pragma_columns=no
13992 fi
13993 rm -f conftest*
13994
13995
13996 fi
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13998 $as_echo "$gl_cv_pragma_columns" >&6; }
13999 if test $gl_cv_pragma_columns = yes; then
14000 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14001 else
14002 PRAGMA_COLUMNS=
14003 fi
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021 if test $gl_cv_have_include_next = yes; then
14022 gl_cv_next_getopt_h='<'getopt.h'>'
14023 else
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14025 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14026 if ${gl_cv_next_getopt_h+:} false; then :
14027 $as_echo_n "(cached) " >&6
14028 else
14029
14030 if test $ac_cv_header_getopt_h = yes; then
14031
14032
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <getopt.h>
14036
14037 _ACEOF
14038 case "$host_os" in
14039 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14040 *) gl_absname_cpp="$ac_cpp" ;;
14041 esac
14042 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14043 sed -n '\#/getopt.h#{
14044 s#.*"\(.*/getopt.h\)".*#\1#
14045 s#^/[^/]#//&#
14046 p
14047 q
14048 }'`'"'
14049 else
14050 gl_cv_next_getopt_h='<'getopt.h'>'
14051 fi
14052
14053
14054 fi
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14056 $as_echo "$gl_cv_next_getopt_h" >&6; }
14057 fi
14058 NEXT_GETOPT_H=$gl_cv_next_getopt_h
14059
14060 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14062 gl_next_as_first_directive='<'getopt.h'>'
14063 else
14064 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14065 gl_next_as_first_directive=$gl_cv_next_getopt_h
14066 fi
14067 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
14068
14069
14070
14071
14072 if test $ac_cv_header_getopt_h = yes; then
14073 HAVE_GETOPT_H=1
14074 else
14075 HAVE_GETOPT_H=0
14076 fi
14077
14078
14079 gl_replace_getopt=
14080
14081 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14082 for ac_header in getopt.h
14083 do :
14084 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14085 if test "x$ac_cv_header_getopt_h" = xyes; then :
14086 cat >>confdefs.h <<_ACEOF
14087 #define HAVE_GETOPT_H 1
14088 _ACEOF
14089
14090 else
14091 gl_replace_getopt=yes
14092 fi
14093
14094 done
14095
14096 fi
14097
14098 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14099 for ac_func in getopt_long_only
14100 do :
14101 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14102 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_GETOPT_LONG_ONLY 1
14105 _ACEOF
14106
14107 else
14108 gl_replace_getopt=yes
14109 fi
14110 done
14111
14112 fi
14113
14114 if test -z "$gl_replace_getopt"; then
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14116 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14117 if ${gl_cv_func_getopt_posix+:} false; then :
14118 $as_echo_n "(cached) " >&6
14119 else
14120
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 #include <unistd.h>
14124 int
14125 main ()
14126 {
14127 int *p = &optreset; return optreset;
14128 ;
14129 return 0;
14130 }
14131 _ACEOF
14132 if ac_fn_c_try_compile "$LINENO"; then :
14133 gl_optind_min=1
14134 else
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 #include <getopt.h>
14138 int
14139 main ()
14140 {
14141 return !getopt_clip;
14142 ;
14143 return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_compile "$LINENO"; then :
14147 gl_optind_min=1
14148 else
14149 gl_optind_min=0
14150 fi
14151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14152 fi
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154
14155 gl_save_CPPFLAGS=$CPPFLAGS
14156 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14157 if test "$cross_compiling" = yes; then :
14158 case "$host_os" in
14159 mingw*) gl_cv_func_getopt_posix="guessing no";;
14160 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14161 *) gl_cv_func_getopt_posix="guessing yes";;
14162 esac
14163
14164 else
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167
14168 #include <unistd.h>
14169 #include <stdlib.h>
14170 #include <string.h>
14171
14172 int
14173 main ()
14174 {
14175 {
14176 int argc = 0;
14177 char *argv[10];
14178 int c;
14179
14180 argv[argc++] = "program";
14181 argv[argc++] = "-a";
14182 argv[argc++] = "foo";
14183 argv[argc++] = "bar";
14184 argv[argc] = NULL;
14185 optind = OPTIND_MIN;
14186 opterr = 0;
14187
14188 c = getopt (argc, argv, "ab");
14189 if (!(c == 'a'))
14190 return 1;
14191 c = getopt (argc, argv, "ab");
14192 if (!(c == -1))
14193 return 2;
14194 if (!(optind == 2))
14195 return 3;
14196 }
14197 /* Some internal state exists at this point. */
14198 {
14199 int argc = 0;
14200 char *argv[10];
14201 int c;
14202
14203 argv[argc++] = "program";
14204 argv[argc++] = "donald";
14205 argv[argc++] = "-p";
14206 argv[argc++] = "billy";
14207 argv[argc++] = "duck";
14208 argv[argc++] = "-a";
14209 argv[argc++] = "bar";
14210 argv[argc] = NULL;
14211 optind = OPTIND_MIN;
14212 opterr = 0;
14213
14214 c = getopt (argc, argv, "+abp:q:");
14215 if (!(c == -1))
14216 return 4;
14217 if (!(strcmp (argv[0], "program") == 0))
14218 return 5;
14219 if (!(strcmp (argv[1], "donald") == 0))
14220 return 6;
14221 if (!(strcmp (argv[2], "-p") == 0))
14222 return 7;
14223 if (!(strcmp (argv[3], "billy") == 0))
14224 return 8;
14225 if (!(strcmp (argv[4], "duck") == 0))
14226 return 9;
14227 if (!(strcmp (argv[5], "-a") == 0))
14228 return 10;
14229 if (!(strcmp (argv[6], "bar") == 0))
14230 return 11;
14231 if (!(optind == 1))
14232 return 12;
14233 }
14234 /* Detect MacOS 10.5, AIX 7.1 bug. */
14235 {
14236 char *argv[3] = { "program", "-ab", NULL };
14237 optind = OPTIND_MIN;
14238 opterr = 0;
14239 if (getopt (2, argv, "ab:") != 'a')
14240 return 13;
14241 if (getopt (2, argv, "ab:") != '?')
14242 return 14;
14243 if (optopt != 'b')
14244 return 15;
14245 if (optind != 2)
14246 return 16;
14247 }
14248
14249 return 0;
14250 }
14251
14252 _ACEOF
14253 if ac_fn_c_try_run "$LINENO"; then :
14254 gl_cv_func_getopt_posix=yes
14255 else
14256 gl_cv_func_getopt_posix=no
14257 fi
14258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14259 conftest.$ac_objext conftest.beam conftest.$ac_ext
14260 fi
14261
14262 CPPFLAGS=$gl_save_CPPFLAGS
14263
14264 fi
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14266 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14267 case "$gl_cv_func_getopt_posix" in
14268 *no) gl_replace_getopt=yes ;;
14269 esac
14270 fi
14271
14272 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14274 $as_echo_n "checking for working GNU getopt function... " >&6; }
14275 if ${gl_cv_func_getopt_gnu+:} false; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14279 # optstring is necessary for programs like m4 that have POSIX-mandated
14280 # semantics for supporting options interspersed with files.
14281 # Also, since getopt_long is a GNU extension, we require optind=0.
14282 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14283 # so take care to revert to the correct (non-)export state.
14284 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14285 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14286 xx) gl_had_POSIXLY_CORRECT=exported ;;
14287 x) gl_had_POSIXLY_CORRECT=yes ;;
14288 *) gl_had_POSIXLY_CORRECT= ;;
14289 esac
14290 POSIXLY_CORRECT=1
14291 export POSIXLY_CORRECT
14292 if test "$cross_compiling" = yes; then :
14293 case $host_os:$ac_cv_have_decl_optreset in
14294 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14295 *:yes) gl_cv_func_getopt_gnu=no;;
14296 *) gl_cv_func_getopt_gnu=yes;;
14297 esac
14298
14299 else
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 #include <getopt.h>
14303 #include <stddef.h>
14304 #include <string.h>
14305
14306 int
14307 main ()
14308 {
14309
14310 int result = 0;
14311 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14312 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14313 OSF/1 5.1, Solaris 10. */
14314 {
14315 char *myargv[3];
14316 myargv[0] = "conftest";
14317 myargv[1] = "-+";
14318 myargv[2] = 0;
14319 opterr = 0;
14320 if (getopt (2, myargv, "+a") != '?')
14321 result |= 1;
14322 }
14323 /* This code succeeds on glibc 2.8, mingw,
14324 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14325 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14326 {
14327 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14328
14329 optind = 1;
14330 if (getopt (4, argv, "p::") != 'p')
14331 result |= 2;
14332 else if (optarg != NULL)
14333 result |= 4;
14334 else if (getopt (4, argv, "p::") != -1)
14335 result |= 6;
14336 else if (optind != 2)
14337 result |= 8;
14338 }
14339 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14340 {
14341 char *argv[] = { "program", "foo", "-p", NULL };
14342 optind = 0;
14343 if (getopt (3, argv, "-p") != 1)
14344 result |= 16;
14345 else if (getopt (3, argv, "-p") != 'p')
14346 result |= 32;
14347 }
14348 /* This code fails on glibc 2.11. */
14349 {
14350 char *argv[] = { "program", "-b", "-a", NULL };
14351 optind = opterr = 0;
14352 if (getopt (3, argv, "+:a:b") != 'b')
14353 result |= 64;
14354 else if (getopt (3, argv, "+:a:b") != ':')
14355 result |= 64;
14356 }
14357 return result;
14358
14359 ;
14360 return 0;
14361 }
14362 _ACEOF
14363 if ac_fn_c_try_run "$LINENO"; then :
14364 gl_cv_func_getopt_gnu=yes
14365 else
14366 gl_cv_func_getopt_gnu=no
14367 fi
14368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14369 conftest.$ac_objext conftest.beam conftest.$ac_ext
14370 fi
14371
14372 case $gl_had_POSIXLY_CORRECT in
14373 exported) ;;
14374 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14375 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14376 esac
14377
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14380 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14381 if test "$gl_cv_func_getopt_gnu" = "no"; then
14382 gl_replace_getopt=yes
14383 fi
14384 fi
14385
14386 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14387 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14388 ac_have_decl=1
14389 else
14390 ac_have_decl=0
14391 fi
14392
14393 cat >>confdefs.h <<_ACEOF
14394 #define HAVE_DECL_GETENV $ac_have_decl
14395 _ACEOF
14396
14397
14398
14399
14400
14401
14402 if test -n "$gl_replace_getopt"; then :
14403
14404
14405
14406 GETOPT_H=getopt.h
14407
14408 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14409
14410
14411
14412 GNULIB_UNISTD_H_GETOPT=1
14413
14414
14415
14416
14417
14418
14419
14420
14421 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14432
14433
14434
14435
14436
14437
14438 fi
14439
14440
14441
14442 GNULIB_MKTIME=0;
14443 GNULIB_NANOSLEEP=0;
14444 GNULIB_STRPTIME=0;
14445 GNULIB_TIMEGM=0;
14446 GNULIB_TIME_R=0;
14447 HAVE_DECL_LOCALTIME_R=1;
14448 HAVE_NANOSLEEP=1;
14449 HAVE_STRPTIME=1;
14450 HAVE_TIMEGM=1;
14451 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14452 REPLACE_MKTIME=GNULIB_PORTCHECK;
14453 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14454 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14455
14456
14457
14458
14459 for ac_func in $ac_func_list
14460 do :
14461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14462 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14463 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14464 cat >>confdefs.h <<_ACEOF
14465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14466 _ACEOF
14467
14468 fi
14469 done
14470
14471
14472
14473
14474 gl_cv_c_multiarch=no
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14477 #ifndef __APPLE_CC__
14478 not a universal capable compiler
14479 #endif
14480 typedef int dummy;
14481
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484
14485 arch=
14486 prev=
14487 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14488 if test -n "$prev"; then
14489 case $word in
14490 i?86 | x86_64 | ppc | ppc64)
14491 if test -z "$arch" || test "$arch" = "$word"; then
14492 arch="$word"
14493 else
14494 gl_cv_c_multiarch=yes
14495 fi
14496 ;;
14497 esac
14498 prev=
14499 else
14500 if test "x$word" = "x-arch"; then
14501 prev=arch
14502 fi
14503 fi
14504 done
14505
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 if test $gl_cv_c_multiarch = yes; then
14509 APPLE_UNIVERSAL_BUILD=1
14510 else
14511 APPLE_UNIVERSAL_BUILD=0
14512 fi
14513
14514
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14516 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14517 if ${ac_cv_header_stdbool_h+:} false; then :
14518 $as_echo_n "(cached) " >&6
14519 else
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522
14523 #include <stdbool.h>
14524 #ifndef bool
14525 "error: bool is not defined"
14526 #endif
14527 #ifndef false
14528 "error: false is not defined"
14529 #endif
14530 #if false
14531 "error: false is not 0"
14532 #endif
14533 #ifndef true
14534 "error: true is not defined"
14535 #endif
14536 #if true != 1
14537 "error: true is not 1"
14538 #endif
14539 #ifndef __bool_true_false_are_defined
14540 "error: __bool_true_false_are_defined is not defined"
14541 #endif
14542
14543 struct s { _Bool s: 1; _Bool t; } s;
14544
14545 char a[true == 1 ? 1 : -1];
14546 char b[false == 0 ? 1 : -1];
14547 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14548 char d[(bool) 0.5 == true ? 1 : -1];
14549 /* See body of main program for 'e'. */
14550 char f[(_Bool) 0.0 == false ? 1 : -1];
14551 char g[true];
14552 char h[sizeof (_Bool)];
14553 char i[sizeof s.t];
14554 enum { j = false, k = true, l = false * true, m = true * 256 };
14555 /* The following fails for
14556 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14557 _Bool n[m];
14558 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14559 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14560 /* Catch a bug in an HP-UX C compiler. See
14561 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14562 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14563 */
14564 _Bool q = true;
14565 _Bool *pq = &q;
14566
14567 int
14568 main ()
14569 {
14570
14571 bool e = &s;
14572 *pq |= q;
14573 *pq |= ! q;
14574 /* Refer to every declared value, to avoid compiler optimizations. */
14575 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14576 + !m + !n + !o + !p + !q + !pq);
14577
14578 ;
14579 return 0;
14580 }
14581 _ACEOF
14582 if ac_fn_c_try_compile "$LINENO"; then :
14583 ac_cv_header_stdbool_h=yes
14584 else
14585 ac_cv_header_stdbool_h=no
14586 fi
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 fi
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14590 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14591 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14592 if test "x$ac_cv_type__Bool" = xyes; then :
14593
14594 cat >>confdefs.h <<_ACEOF
14595 #define HAVE__BOOL 1
14596 _ACEOF
14597
14598
14599 fi
14600
14601
14602
14603 REPLACE_NULL=0;
14604 HAVE_WCHAR_T=1;
14605 STDDEF_H='';
14606
14607
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14609 $as_echo_n "checking for wchar_t... " >&6; }
14610 if ${gt_cv_c_wchar_t+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 #include <stddef.h>
14616 wchar_t foo = (wchar_t)'\0';
14617 int
14618 main ()
14619 {
14620
14621 ;
14622 return 0;
14623 }
14624 _ACEOF
14625 if ac_fn_c_try_compile "$LINENO"; then :
14626 gt_cv_c_wchar_t=yes
14627 else
14628 gt_cv_c_wchar_t=no
14629 fi
14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631 fi
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14633 $as_echo "$gt_cv_c_wchar_t" >&6; }
14634 if test $gt_cv_c_wchar_t = yes; then
14635
14636 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14637
14638 fi
14639
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14642 $as_echo_n "checking for unsigned long long int... " >&6; }
14643 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14644 $as_echo_n "(cached) " >&6
14645 else
14646 ac_cv_type_unsigned_long_long_int=yes
14647 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650
14651 /* For now, do not test the preprocessor; as of 2007 there are too many
14652 implementations with broken preprocessors. Perhaps this can
14653 be revisited in 2012. In the meantime, code should not expect
14654 #if to work with literals wider than 32 bits. */
14655 /* Test literals. */
14656 long long int ll = 9223372036854775807ll;
14657 long long int nll = -9223372036854775807LL;
14658 unsigned long long int ull = 18446744073709551615ULL;
14659 /* Test constant expressions. */
14660 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14661 ? 1 : -1)];
14662 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14663 ? 1 : -1)];
14664 int i = 63;
14665 int
14666 main ()
14667 {
14668 /* Test availability of runtime routines for shift and division. */
14669 long long int llmax = 9223372036854775807ll;
14670 unsigned long long int ullmax = 18446744073709551615ull;
14671 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14672 | (llmax / ll) | (llmax % ll)
14673 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14674 | (ullmax / ull) | (ullmax % ull));
14675 ;
14676 return 0;
14677 }
14678
14679 _ACEOF
14680 if ac_fn_c_try_link "$LINENO"; then :
14681
14682 else
14683 ac_cv_type_unsigned_long_long_int=no
14684 fi
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 fi
14688 fi
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14690 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14691 if test $ac_cv_type_unsigned_long_long_int = yes; then
14692
14693 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14694
14695 fi
14696
14697
14698
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14700 $as_echo_n "checking for long long int... " >&6; }
14701 if ${ac_cv_type_long_long_int+:} false; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704 ac_cv_type_long_long_int=yes
14705 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14706 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14707 if test $ac_cv_type_long_long_int = yes; then
14708 if test "$cross_compiling" = yes; then :
14709 :
14710 else
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713 #include <limits.h>
14714 #ifndef LLONG_MAX
14715 # define HALF \
14716 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14717 # define LLONG_MAX (HALF - 1 + HALF)
14718 #endif
14719 int
14720 main ()
14721 {
14722 long long int n = 1;
14723 int i;
14724 for (i = 0; ; i++)
14725 {
14726 long long int m = n << i;
14727 if (m >> i != n)
14728 return 1;
14729 if (LLONG_MAX / 2 < m)
14730 break;
14731 }
14732 return 0;
14733 ;
14734 return 0;
14735 }
14736 _ACEOF
14737 if ac_fn_c_try_run "$LINENO"; then :
14738
14739 else
14740 ac_cv_type_long_long_int=no
14741 fi
14742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14743 conftest.$ac_objext conftest.beam conftest.$ac_ext
14744 fi
14745
14746 fi
14747 fi
14748 fi
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14750 $as_echo "$ac_cv_type_long_long_int" >&6; }
14751 if test $ac_cv_type_long_long_int = yes; then
14752
14753 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14754
14755 fi
14756
14757
14758
14759
14760
14761
14762 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14763 "
14764 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14765
14766 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14767
14768 fi
14769
14770
14771
14772
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14774 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14775 if ${ac_cv_c_restrict+:} false; then :
14776 $as_echo_n "(cached) " >&6
14777 else
14778 ac_cv_c_restrict=no
14779 # The order here caters to the fact that C++ does not require restrict.
14780 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14783 typedef int * int_ptr;
14784 int foo (int_ptr $ac_kw ip) {
14785 return ip[0];
14786 }
14787 int
14788 main ()
14789 {
14790 int s[1];
14791 int * $ac_kw t = s;
14792 t[0] = 0;
14793 return foo(t)
14794 ;
14795 return 0;
14796 }
14797 _ACEOF
14798 if ac_fn_c_try_compile "$LINENO"; then :
14799 ac_cv_c_restrict=$ac_kw
14800 fi
14801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14802 test "$ac_cv_c_restrict" != no && break
14803 done
14804
14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14807 $as_echo "$ac_cv_c_restrict" >&6; }
14808
14809 case $ac_cv_c_restrict in
14810 restrict) ;;
14811 no) $as_echo "#define restrict /**/" >>confdefs.h
14812 ;;
14813 *) cat >>confdefs.h <<_ACEOF
14814 #define restrict $ac_cv_c_restrict
14815 _ACEOF
14816 ;;
14817 esac
14818
14819
14820
14821
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14824 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14825 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827 else
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14830 #include <time.h>
14831
14832 int
14833 main ()
14834 {
14835 static struct timespec x; x.tv_sec = x.tv_nsec;
14836 ;
14837 return 0;
14838 }
14839 _ACEOF
14840 if ac_fn_c_try_compile "$LINENO"; then :
14841 gl_cv_sys_struct_timespec_in_time_h=yes
14842 else
14843 gl_cv_sys_struct_timespec_in_time_h=no
14844 fi
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846 fi
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14848 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14849
14850 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14851 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14852 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14853 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14854 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14855 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14857 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14858 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 #include <sys/time.h>
14864
14865 int
14866 main ()
14867 {
14868 static struct timespec x; x.tv_sec = x.tv_nsec;
14869 ;
14870 return 0;
14871 }
14872 _ACEOF
14873 if ac_fn_c_try_compile "$LINENO"; then :
14874 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14875 else
14876 gl_cv_sys_struct_timespec_in_sys_time_h=no
14877 fi
14878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879 fi
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14881 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14882 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14883 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14884 else
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14886 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14887 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14888 $as_echo_n "(cached) " >&6
14889 else
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 #include <pthread.h>
14893
14894 int
14895 main ()
14896 {
14897 static struct timespec x; x.tv_sec = x.tv_nsec;
14898 ;
14899 return 0;
14900 }
14901 _ACEOF
14902 if ac_fn_c_try_compile "$LINENO"; then :
14903 gl_cv_sys_struct_timespec_in_pthread_h=yes
14904 else
14905 gl_cv_sys_struct_timespec_in_pthread_h=no
14906 fi
14907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 fi
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14910 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14911 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14912 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14913 fi
14914 fi
14915 fi
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931 if test $gl_cv_have_include_next = yes; then
14932 gl_cv_next_time_h='<'time.h'>'
14933 else
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14935 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14936 if ${gl_cv_next_time_h+:} false; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942 #include <time.h>
14943
14944 _ACEOF
14945 case "$host_os" in
14946 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14947 *) gl_absname_cpp="$ac_cpp" ;;
14948 esac
14949 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14950 sed -n '\#/time.h#{
14951 s#.*"\(.*/time.h\)".*#\1#
14952 s#^/[^/]#//&#
14953 p
14954 q
14955 }'`'"'
14956
14957
14958 fi
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14960 $as_echo "$gl_cv_next_time_h" >&6; }
14961 fi
14962 NEXT_TIME_H=$gl_cv_next_time_h
14963
14964 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14965 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14966 gl_next_as_first_directive='<'time.h'>'
14967 else
14968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14969 gl_next_as_first_directive=$gl_cv_next_time_h
14970 fi
14971 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14972
14973
14974
14975
14976
14977
14978 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14979 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14980 ac_have_decl=1
14981 else
14982 ac_have_decl=0
14983 fi
14984
14985 cat >>confdefs.h <<_ACEOF
14986 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14987 _ACEOF
14988
14989
14990
14991
14992 if false; then
14993 GL_COND_LIBTOOL_TRUE=
14994 GL_COND_LIBTOOL_FALSE='#'
14995 else
14996 GL_COND_LIBTOOL_TRUE='#'
14997 GL_COND_LIBTOOL_FALSE=
14998 fi
14999
15000 gl_cond_libtool=false
15001 gl_libdeps=
15002 gl_ltlibdeps=
15003 gl_m4_base='m4'
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013 gl_source_base='lib'
15014 # Code from module arg-nonnull:
15015 # Code from module c++defs:
15016 # Code from module crypto/md5:
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15027
15028
15029
15030
15031 :
15032
15033 # Code from module dtoastr:
15034
15035 # Code from module extensions:
15036 # Code from module getloadavg:
15037
15038
15039 # Persuade glibc <stdlib.h> to declare getloadavg().
15040
15041
15042 # Make sure getloadavg.c is where it belongs, at configure-time.
15043 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15044 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
15045
15046 gl_save_LIBS=$LIBS
15047
15048 # getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15049 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
15050 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15051 if test "x$ac_cv_func_getloadavg" = xyes; then :
15052
15053 else
15054 gl_have_func=no
15055
15056 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15057 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15058 # to get the right answer into the cache.
15059 # For kstat on solaris, we need to test for libelf and libkvm to force the
15060 # definition of SVR4 below.
15061 if test $gl_have_func = no; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15063 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
15064 if ${ac_cv_lib_elf_elf_begin+:} false; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15067 ac_check_lib_save_LIBS=$LIBS
15068 LIBS="-lelf $LIBS"
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071
15072 /* Override any GCC internal prototype to avoid an error.
15073 Use char because int might match the return type of a GCC
15074 builtin and then its argument prototype would still apply. */
15075 #ifdef __cplusplus
15076 extern "C"
15077 #endif
15078 char elf_begin ();
15079 int
15080 main ()
15081 {
15082 return elf_begin ();
15083 ;
15084 return 0;
15085 }
15086 _ACEOF
15087 if ac_fn_c_try_link "$LINENO"; then :
15088 ac_cv_lib_elf_elf_begin=yes
15089 else
15090 ac_cv_lib_elf_elf_begin=no
15091 fi
15092 rm -f core conftest.err conftest.$ac_objext \
15093 conftest$ac_exeext conftest.$ac_ext
15094 LIBS=$ac_check_lib_save_LIBS
15095 fi
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15097 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15098 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
15099 LIBS="-lelf $LIBS"
15100 fi
15101
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15103 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15104 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15105 $as_echo_n "(cached) " >&6
15106 else
15107 ac_check_lib_save_LIBS=$LIBS
15108 LIBS="-lkvm $LIBS"
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111
15112 /* Override any GCC internal prototype to avoid an error.
15113 Use char because int might match the return type of a GCC
15114 builtin and then its argument prototype would still apply. */
15115 #ifdef __cplusplus
15116 extern "C"
15117 #endif
15118 char kvm_open ();
15119 int
15120 main ()
15121 {
15122 return kvm_open ();
15123 ;
15124 return 0;
15125 }
15126 _ACEOF
15127 if ac_fn_c_try_link "$LINENO"; then :
15128 ac_cv_lib_kvm_kvm_open=yes
15129 else
15130 ac_cv_lib_kvm_kvm_open=no
15131 fi
15132 rm -f core conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15134 LIBS=$ac_check_lib_save_LIBS
15135 fi
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15137 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15138 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15139 LIBS="-lkvm $LIBS"
15140 fi
15141
15142 # Check for the 4.4BSD definition of getloadavg.
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15144 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
15145 if ${ac_cv_lib_util_getloadavg+:} false; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 ac_check_lib_save_LIBS=$LIBS
15149 LIBS="-lutil $LIBS"
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15152
15153 /* Override any GCC internal prototype to avoid an error.
15154 Use char because int might match the return type of a GCC
15155 builtin and then its argument prototype would still apply. */
15156 #ifdef __cplusplus
15157 extern "C"
15158 #endif
15159 char getloadavg ();
15160 int
15161 main ()
15162 {
15163 return getloadavg ();
15164 ;
15165 return 0;
15166 }
15167 _ACEOF
15168 if ac_fn_c_try_link "$LINENO"; then :
15169 ac_cv_lib_util_getloadavg=yes
15170 else
15171 ac_cv_lib_util_getloadavg=no
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15176 fi
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15178 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15179 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
15180 LIBS="-lutil $LIBS" gl_have_func=yes
15181 fi
15182
15183 fi
15184
15185 if test $gl_have_func = no; then
15186 # There is a commonly available library for RS/6000 AIX.
15187 # Since it is not a standard part of AIX, it might be installed locally.
15188 gl_getloadavg_LIBS=$LIBS
15189 LIBS="-L/usr/local/lib $LIBS"
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15191 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15192 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
15193 $as_echo_n "(cached) " >&6
15194 else
15195 ac_check_lib_save_LIBS=$LIBS
15196 LIBS="-lgetloadavg $LIBS"
15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15199
15200 /* Override any GCC internal prototype to avoid an error.
15201 Use char because int might match the return type of a GCC
15202 builtin and then its argument prototype would still apply. */
15203 #ifdef __cplusplus
15204 extern "C"
15205 #endif
15206 char getloadavg ();
15207 int
15208 main ()
15209 {
15210 return getloadavg ();
15211 ;
15212 return 0;
15213 }
15214 _ACEOF
15215 if ac_fn_c_try_link "$LINENO"; then :
15216 ac_cv_lib_getloadavg_getloadavg=yes
15217 else
15218 ac_cv_lib_getloadavg_getloadavg=no
15219 fi
15220 rm -f core conftest.err conftest.$ac_objext \
15221 conftest$ac_exeext conftest.$ac_ext
15222 LIBS=$ac_check_lib_save_LIBS
15223 fi
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15225 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15226 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
15227 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15228 else
15229 LIBS=$gl_getloadavg_LIBS
15230 fi
15231
15232 fi
15233
15234 # Set up the replacement function if necessary.
15235 if test $gl_have_func = no; then
15236
15237
15238
15239
15240
15241
15242
15243
15244 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15245
15246
15247 # Figure out what our getloadavg.c needs.
15248
15249 # Solaris has libkstat which does not require root.
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15251 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15252 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 ac_check_lib_save_LIBS=$LIBS
15256 LIBS="-lkstat $LIBS"
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15259
15260 /* Override any GCC internal prototype to avoid an error.
15261 Use char because int might match the return type of a GCC
15262 builtin and then its argument prototype would still apply. */
15263 #ifdef __cplusplus
15264 extern "C"
15265 #endif
15266 char kstat_open ();
15267 int
15268 main ()
15269 {
15270 return kstat_open ();
15271 ;
15272 return 0;
15273 }
15274 _ACEOF
15275 if ac_fn_c_try_link "$LINENO"; then :
15276 ac_cv_lib_kstat_kstat_open=yes
15277 else
15278 ac_cv_lib_kstat_kstat_open=no
15279 fi
15280 rm -f core conftest.err conftest.$ac_objext \
15281 conftest$ac_exeext conftest.$ac_ext
15282 LIBS=$ac_check_lib_save_LIBS
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15285 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15286 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15287 cat >>confdefs.h <<_ACEOF
15288 #define HAVE_LIBKSTAT 1
15289 _ACEOF
15290
15291 LIBS="-lkstat $LIBS"
15292
15293 fi
15294
15295 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15296
15297 # On HPUX9, an unprivileged user can get load averages this way.
15298 if test $gl_have_func = no; then
15299 for ac_func in pstat_getdynamic
15300 do :
15301 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15302 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
15303 cat >>confdefs.h <<_ACEOF
15304 #define HAVE_PSTAT_GETDYNAMIC 1
15305 _ACEOF
15306 gl_have_func=yes
15307 fi
15308 done
15309
15310 fi
15311
15312 # AIX has libperfstat which does not require root
15313 if test $gl_have_func = no; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15315 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15316 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 ac_check_lib_save_LIBS=$LIBS
15320 LIBS="-lperfstat $LIBS"
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323
15324 /* Override any GCC internal prototype to avoid an error.
15325 Use char because int might match the return type of a GCC
15326 builtin and then its argument prototype would still apply. */
15327 #ifdef __cplusplus
15328 extern "C"
15329 #endif
15330 char perfstat_cpu_total ();
15331 int
15332 main ()
15333 {
15334 return perfstat_cpu_total ();
15335 ;
15336 return 0;
15337 }
15338 _ACEOF
15339 if ac_fn_c_try_link "$LINENO"; then :
15340 ac_cv_lib_perfstat_perfstat_cpu_total=yes
15341 else
15342 ac_cv_lib_perfstat_perfstat_cpu_total=no
15343 fi
15344 rm -f core conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15346 LIBS=$ac_check_lib_save_LIBS
15347 fi
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15349 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15350 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15351 cat >>confdefs.h <<_ACEOF
15352 #define HAVE_LIBPERFSTAT 1
15353 _ACEOF
15354
15355 LIBS="-lperfstat $LIBS"
15356
15357 fi
15358
15359 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15360 fi
15361
15362 if test $gl_have_func = no; then
15363 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15364 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15365 gl_have_func=yes
15366
15367 $as_echo "#define DGUX 1" >>confdefs.h
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15370 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15371 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 ac_check_lib_save_LIBS=$LIBS
15375 LIBS="-ldgc $LIBS"
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378
15379 /* Override any GCC internal prototype to avoid an error.
15380 Use char because int might match the return type of a GCC
15381 builtin and then its argument prototype would still apply. */
15382 #ifdef __cplusplus
15383 extern "C"
15384 #endif
15385 char dg_sys_info ();
15386 int
15387 main ()
15388 {
15389 return dg_sys_info ();
15390 ;
15391 return 0;
15392 }
15393 _ACEOF
15394 if ac_fn_c_try_link "$LINENO"; then :
15395 ac_cv_lib_dgc_dg_sys_info=yes
15396 else
15397 ac_cv_lib_dgc_dg_sys_info=no
15398 fi
15399 rm -f core conftest.err conftest.$ac_objext \
15400 conftest$ac_exeext conftest.$ac_ext
15401 LIBS=$ac_check_lib_save_LIBS
15402 fi
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15404 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15405 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15406 cat >>confdefs.h <<_ACEOF
15407 #define HAVE_LIBDGC 1
15408 _ACEOF
15409
15410 LIBS="-ldgc $LIBS"
15411
15412 fi
15413
15414 fi
15415
15416
15417 fi
15418
15419 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15420 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15421 # Irix 4.0.5F has the header but not the library.
15422 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15423 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15424 gl_have_func=yes
15425
15426 $as_echo "#define SVR4 1" >>confdefs.h
15427
15428 fi
15429
15430 if test $gl_have_func = no; then
15431 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15432 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15433 gl_have_func=yes
15434
15435 $as_echo "#define UMAX 1" >>confdefs.h
15436
15437
15438 $as_echo "#define UMAX4_3 1" >>confdefs.h
15439
15440 fi
15441
15442
15443 fi
15444
15445 if test $gl_have_func = no; then
15446 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15447 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15448 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
15449
15450 fi
15451
15452
15453 fi
15454
15455 if test $gl_have_func = no; then
15456 for ac_header in mach/mach.h
15457 do :
15458 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15459 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15460 cat >>confdefs.h <<_ACEOF
15461 #define HAVE_MACH_MACH_H 1
15462 _ACEOF
15463
15464 fi
15465
15466 done
15467
15468 fi
15469
15470 for ac_header in nlist.h
15471 do :
15472 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15473 if test "x$ac_cv_header_nlist_h" = xyes; then :
15474 cat >>confdefs.h <<_ACEOF
15475 #define HAVE_NLIST_H 1
15476 _ACEOF
15477 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15478 "
15479 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15480
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15483 _ACEOF
15484
15485
15486 fi
15487
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 #include <nlist.h>
15491 int
15492 main ()
15493 {
15494 struct nlist x;
15495 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15496 x.n_un.n_name = "";
15497 #else
15498 x.n_name = "";
15499 #endif
15500 ;
15501 return 0;
15502 }
15503 _ACEOF
15504 if ac_fn_c_try_link "$LINENO"; then :
15505
15506 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15507
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext \
15510 conftest$ac_exeext conftest.$ac_ext
15511
15512 fi
15513
15514 done
15515
15516 fi
15517 fi
15518
15519
15520 if test "x$gl_save_LIBS" = x; then
15521 GETLOADAVG_LIBS=$LIBS
15522 else
15523 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15524 fi
15525 LIBS=$gl_save_LIBS
15526
15527
15528 # Test whether the system declares getloadavg. Solaris has the function
15529 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15530 for ac_header in sys/loadavg.h
15531 do :
15532 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15533 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15534 cat >>confdefs.h <<_ACEOF
15535 #define HAVE_SYS_LOADAVG_H 1
15536 _ACEOF
15537
15538 fi
15539
15540 done
15541
15542 if test $ac_cv_header_sys_loadavg_h = yes; then
15543 HAVE_SYS_LOADAVG_H=1
15544 else
15545 HAVE_SYS_LOADAVG_H=0
15546 fi
15547 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15548 # include <sys/loadavg.h>
15549 #endif
15550 #include <stdlib.h>
15551 "
15552 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
15553
15554 else
15555 HAVE_DECL_GETLOADAVG=0
15556 fi
15557
15558
15559
15560
15561
15562 GNULIB_GETLOADAVG=1
15563
15564
15565
15566 # Code from module getopt-gnu:
15567
15568
15569
15570
15571
15572
15573 # Code from module getopt-posix:
15574
15575
15576
15577
15578
15579 if test -n "$gl_replace_getopt"; then :
15580
15581
15582
15583 GETOPT_H=getopt.h
15584
15585 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15586
15587
15588
15589 GNULIB_UNISTD_H_GETOPT=1
15590
15591
15592
15593
15594
15595
15596
15597
15598 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15609
15610
15611
15612
15613
15614
15615 fi
15616
15617
15618 # Code from module gettext-h:
15619
15620
15621 # Code from module ignore-value:
15622
15623 # Code from module include_next:
15624 # Code from module intprops:
15625 # Code from module mktime:
15626
15627
15628
15629
15630
15631 if test $APPLE_UNIVERSAL_BUILD = 1; then
15632 # A universal build on Apple MacOS X platforms.
15633 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15634 # But we need a configuration result that is valid in both modes.
15635 ac_cv_func_working_mktime=no
15636 fi
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15638 $as_echo_n "checking for working mktime... " >&6; }
15639 if ${ac_cv_func_working_mktime+:} false; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 if test "$cross_compiling" = yes; then :
15643 ac_cv_func_working_mktime=no
15644 else
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 /* Test program from Paul Eggert and Tony Leneis. */
15648 #include <limits.h>
15649 #include <stdlib.h>
15650 #include <time.h>
15651
15652 #ifdef HAVE_UNISTD_H
15653 # include <unistd.h>
15654 #endif
15655
15656 #ifndef HAVE_ALARM
15657 # define alarm(X) /* empty */
15658 #endif
15659
15660 /* Work around redefinition to rpl_putenv by other config tests. */
15661 #undef putenv
15662
15663 static time_t time_t_max;
15664 static time_t time_t_min;
15665
15666 /* Values we'll use to set the TZ environment variable. */
15667 static char *tz_strings[] = {
15668 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15669 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15670 };
15671 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15672
15673 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15674 Based on a problem report from Andreas Jaeger. */
15675 static int
15676 spring_forward_gap ()
15677 {
15678 /* glibc (up to about 1998-10-07) failed this test. */
15679 struct tm tm;
15680
15681 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15682 instead of "TZ=America/Vancouver" in order to detect the bug even
15683 on systems that don't support the Olson extension, or don't have the
15684 full zoneinfo tables installed. */
15685 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15686
15687 tm.tm_year = 98;
15688 tm.tm_mon = 3;
15689 tm.tm_mday = 5;
15690 tm.tm_hour = 2;
15691 tm.tm_min = 0;
15692 tm.tm_sec = 0;
15693 tm.tm_isdst = -1;
15694 return mktime (&tm) != (time_t) -1;
15695 }
15696
15697 static int
15698 mktime_test1 (time_t now)
15699 {
15700 struct tm *lt;
15701 return ! (lt = localtime (&now)) || mktime (lt) == now;
15702 }
15703
15704 static int
15705 mktime_test (time_t now)
15706 {
15707 return (mktime_test1 (now)
15708 && mktime_test1 ((time_t) (time_t_max - now))
15709 && mktime_test1 ((time_t) (time_t_min + now)));
15710 }
15711
15712 static int
15713 irix_6_4_bug ()
15714 {
15715 /* Based on code from Ariel Faigon. */
15716 struct tm tm;
15717 tm.tm_year = 96;
15718 tm.tm_mon = 3;
15719 tm.tm_mday = 0;
15720 tm.tm_hour = 0;
15721 tm.tm_min = 0;
15722 tm.tm_sec = 0;
15723 tm.tm_isdst = -1;
15724 mktime (&tm);
15725 return tm.tm_mon == 2 && tm.tm_mday == 31;
15726 }
15727
15728 static int
15729 bigtime_test (int j)
15730 {
15731 struct tm tm;
15732 time_t now;
15733 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15734 now = mktime (&tm);
15735 if (now != (time_t) -1)
15736 {
15737 struct tm *lt = localtime (&now);
15738 if (! (lt
15739 && lt->tm_year == tm.tm_year
15740 && lt->tm_mon == tm.tm_mon
15741 && lt->tm_mday == tm.tm_mday
15742 && lt->tm_hour == tm.tm_hour
15743 && lt->tm_min == tm.tm_min
15744 && lt->tm_sec == tm.tm_sec
15745 && lt->tm_yday == tm.tm_yday
15746 && lt->tm_wday == tm.tm_wday
15747 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15748 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15749 return 0;
15750 }
15751 return 1;
15752 }
15753
15754 static int
15755 year_2050_test ()
15756 {
15757 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15758 ignoring leap seconds. */
15759 unsigned long int answer = 2527315200UL;
15760
15761 struct tm tm;
15762 time_t t;
15763 tm.tm_year = 2050 - 1900;
15764 tm.tm_mon = 2 - 1;
15765 tm.tm_mday = 1;
15766 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15767 tm.tm_isdst = -1;
15768
15769 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15770 instead of "TZ=America/Vancouver" in order to detect the bug even
15771 on systems that don't support the Olson extension, or don't have the
15772 full zoneinfo tables installed. */
15773 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15774
15775 t = mktime (&tm);
15776
15777 /* Check that the result is either a failure, or close enough
15778 to the correct answer that we can assume the discrepancy is
15779 due to leap seconds. */
15780 return (t == (time_t) -1
15781 || (0 < t && answer - 120 <= t && t <= answer + 120));
15782 }
15783
15784 int
15785 main ()
15786 {
15787 int result = 0;
15788 time_t t, delta;
15789 int i, j;
15790 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15791 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15792
15793 /* This test makes some buggy mktime implementations loop.
15794 Give up after 60 seconds; a mktime slower than that
15795 isn't worth using anyway. */
15796 alarm (60);
15797
15798 time_t_max = (! time_t_signed
15799 ? (time_t) -1
15800 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15801 * 2 + 1));
15802 time_t_min = (! time_t_signed
15803 ? (time_t) 0
15804 : time_t_signed_magnitude
15805 ? ~ (time_t) 0
15806 : ~ time_t_max);
15807
15808 delta = time_t_max / 997; /* a suitable prime number */
15809 for (i = 0; i < N_STRINGS; i++)
15810 {
15811 if (tz_strings[i])
15812 putenv (tz_strings[i]);
15813
15814 for (t = 0; t <= time_t_max - delta; t += delta)
15815 if (! mktime_test (t))
15816 result |= 1;
15817 if (! (mktime_test ((time_t) 1)
15818 && mktime_test ((time_t) (60 * 60))
15819 && mktime_test ((time_t) (60 * 60 * 24))))
15820 result |= 2;
15821
15822 for (j = 1; ; j <<= 1)
15823 if (! bigtime_test (j))
15824 result |= 4;
15825 else if (INT_MAX / 2 < j)
15826 break;
15827 if (! bigtime_test (INT_MAX))
15828 result |= 8;
15829 }
15830 if (! irix_6_4_bug ())
15831 result |= 16;
15832 if (! spring_forward_gap ())
15833 result |= 32;
15834 if (! year_2050_test ())
15835 result |= 64;
15836 return result;
15837 }
15838 _ACEOF
15839 if ac_fn_c_try_run "$LINENO"; then :
15840 ac_cv_func_working_mktime=yes
15841 else
15842 ac_cv_func_working_mktime=no
15843 fi
15844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15845 conftest.$ac_objext conftest.beam conftest.$ac_ext
15846 fi
15847
15848 fi
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15850 $as_echo "$ac_cv_func_working_mktime" >&6; }
15851 if test $ac_cv_func_working_mktime = no; then
15852
15853
15854
15855
15856
15857
15858
15859
15860 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
15861
15862 fi
15863
15864 if test $ac_cv_func_working_mktime = no; then
15865 REPLACE_MKTIME=1
15866
15867
15868
15869 else
15870 REPLACE_MKTIME=0
15871 fi
15872
15873
15874
15875
15876 GNULIB_MKTIME=1
15877
15878
15879
15880 # Code from module multiarch:
15881
15882 # Code from module stdbool:
15883
15884
15885
15886 # Define two additional variables used in the Makefile substitution.
15887
15888 if test "$ac_cv_header_stdbool_h" = yes; then
15889 STDBOOL_H=''
15890 else
15891 STDBOOL_H='stdbool.h'
15892 fi
15893
15894
15895 if test "$ac_cv_type__Bool" = yes; then
15896 HAVE__BOOL=1
15897 else
15898 HAVE__BOOL=0
15899 fi
15900
15901
15902 # Code from module stddef:
15903
15904
15905
15906 if test $gt_cv_c_wchar_t = no; then
15907 HAVE_WCHAR_T=0
15908 STDDEF_H=stddef.h
15909 fi
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15911 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15912 if ${gl_cv_decl_null_works+:} false; then :
15913 $as_echo_n "(cached) " >&6
15914 else
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15917 #include <stddef.h>
15918 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15919
15920 int
15921 main ()
15922 {
15923
15924 ;
15925 return 0;
15926 }
15927 _ACEOF
15928 if ac_fn_c_try_compile "$LINENO"; then :
15929 gl_cv_decl_null_works=yes
15930 else
15931 gl_cv_decl_null_works=no
15932 fi
15933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15934 fi
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15936 $as_echo "$gl_cv_decl_null_works" >&6; }
15937 if test $gl_cv_decl_null_works = no; then
15938 REPLACE_NULL=1
15939 STDDEF_H=stddef.h
15940 fi
15941 if test -n "$STDDEF_H"; then
15942
15943
15944
15945
15946
15947
15948
15949
15950 if test $gl_cv_have_include_next = yes; then
15951 gl_cv_next_stddef_h='<'stddef.h'>'
15952 else
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15954 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15955 if ${gl_cv_next_stddef_h+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15958
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961 #include <stddef.h>
15962
15963 _ACEOF
15964 case "$host_os" in
15965 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15966 *) gl_absname_cpp="$ac_cpp" ;;
15967 esac
15968 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15969 sed -n '\#/stddef.h#{
15970 s#.*"\(.*/stddef.h\)".*#\1#
15971 s#^/[^/]#//&#
15972 p
15973 q
15974 }'`'"'
15975
15976
15977 fi
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15979 $as_echo "$gl_cv_next_stddef_h" >&6; }
15980 fi
15981 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15982
15983 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15984 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15985 gl_next_as_first_directive='<'stddef.h'>'
15986 else
15987 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15988 gl_next_as_first_directive=$gl_cv_next_stddef_h
15989 fi
15990 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15991
15992
15993
15994
15995 fi
15996
15997 # Code from module stdint:
15998
15999
16000
16001 if test $ac_cv_type_long_long_int = yes; then
16002 HAVE_LONG_LONG_INT=1
16003 else
16004 HAVE_LONG_LONG_INT=0
16005 fi
16006
16007
16008 if test $ac_cv_type_unsigned_long_long_int = yes; then
16009 HAVE_UNSIGNED_LONG_LONG_INT=1
16010 else
16011 HAVE_UNSIGNED_LONG_LONG_INT=0
16012 fi
16013
16014
16015
16016 if test $ac_cv_header_wchar_h = yes; then
16017 HAVE_WCHAR_H=1
16018 else
16019 HAVE_WCHAR_H=0
16020 fi
16021
16022
16023 if test $ac_cv_header_inttypes_h = yes; then
16024 HAVE_INTTYPES_H=1
16025 else
16026 HAVE_INTTYPES_H=0
16027 fi
16028
16029
16030 if test $ac_cv_header_sys_types_h = yes; then
16031 HAVE_SYS_TYPES_H=1
16032 else
16033 HAVE_SYS_TYPES_H=0
16034 fi
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046 if test $gl_cv_have_include_next = yes; then
16047 gl_cv_next_stdint_h='<'stdint.h'>'
16048 else
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16050 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16051 if ${gl_cv_next_stdint_h+:} false; then :
16052 $as_echo_n "(cached) " >&6
16053 else
16054
16055 if test $ac_cv_header_stdint_h = yes; then
16056
16057
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 #include <stdint.h>
16061
16062 _ACEOF
16063 case "$host_os" in
16064 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16065 *) gl_absname_cpp="$ac_cpp" ;;
16066 esac
16067 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16068 sed -n '\#/stdint.h#{
16069 s#.*"\(.*/stdint.h\)".*#\1#
16070 s#^/[^/]#//&#
16071 p
16072 q
16073 }'`'"'
16074 else
16075 gl_cv_next_stdint_h='<'stdint.h'>'
16076 fi
16077
16078
16079 fi
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16081 $as_echo "$gl_cv_next_stdint_h" >&6; }
16082 fi
16083 NEXT_STDINT_H=$gl_cv_next_stdint_h
16084
16085 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16087 gl_next_as_first_directive='<'stdint.h'>'
16088 else
16089 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16090 gl_next_as_first_directive=$gl_cv_next_stdint_h
16091 fi
16092 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16093
16094
16095
16096
16097 if test $ac_cv_header_stdint_h = yes; then
16098 HAVE_STDINT_H=1
16099 else
16100 HAVE_STDINT_H=0
16101 fi
16102
16103
16104 if test $ac_cv_header_stdint_h = yes; then
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16106 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16107 if ${gl_cv_header_working_stdint_h+:} false; then :
16108 $as_echo_n "(cached) " >&6
16109 else
16110 gl_cv_header_working_stdint_h=no
16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16113
16114
16115 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16116 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16117 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16118 #include <stdint.h>
16119 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16120 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16121 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16122 #endif
16123
16124
16125 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16126 included before <wchar.h>. */
16127 #include <stddef.h>
16128 #include <signal.h>
16129 #if HAVE_WCHAR_H
16130 # include <stdio.h>
16131 # include <time.h>
16132 # include <wchar.h>
16133 #endif
16134
16135
16136 #ifdef INT8_MAX
16137 int8_t a1 = INT8_MAX;
16138 int8_t a1min = INT8_MIN;
16139 #endif
16140 #ifdef INT16_MAX
16141 int16_t a2 = INT16_MAX;
16142 int16_t a2min = INT16_MIN;
16143 #endif
16144 #ifdef INT32_MAX
16145 int32_t a3 = INT32_MAX;
16146 int32_t a3min = INT32_MIN;
16147 #endif
16148 #ifdef INT64_MAX
16149 int64_t a4 = INT64_MAX;
16150 int64_t a4min = INT64_MIN;
16151 #endif
16152 #ifdef UINT8_MAX
16153 uint8_t b1 = UINT8_MAX;
16154 #else
16155 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16156 #endif
16157 #ifdef UINT16_MAX
16158 uint16_t b2 = UINT16_MAX;
16159 #endif
16160 #ifdef UINT32_MAX
16161 uint32_t b3 = UINT32_MAX;
16162 #endif
16163 #ifdef UINT64_MAX
16164 uint64_t b4 = UINT64_MAX;
16165 #endif
16166 int_least8_t c1 = INT8_C (0x7f);
16167 int_least8_t c1max = INT_LEAST8_MAX;
16168 int_least8_t c1min = INT_LEAST8_MIN;
16169 int_least16_t c2 = INT16_C (0x7fff);
16170 int_least16_t c2max = INT_LEAST16_MAX;
16171 int_least16_t c2min = INT_LEAST16_MIN;
16172 int_least32_t c3 = INT32_C (0x7fffffff);
16173 int_least32_t c3max = INT_LEAST32_MAX;
16174 int_least32_t c3min = INT_LEAST32_MIN;
16175 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16176 int_least64_t c4max = INT_LEAST64_MAX;
16177 int_least64_t c4min = INT_LEAST64_MIN;
16178 uint_least8_t d1 = UINT8_C (0xff);
16179 uint_least8_t d1max = UINT_LEAST8_MAX;
16180 uint_least16_t d2 = UINT16_C (0xffff);
16181 uint_least16_t d2max = UINT_LEAST16_MAX;
16182 uint_least32_t d3 = UINT32_C (0xffffffff);
16183 uint_least32_t d3max = UINT_LEAST32_MAX;
16184 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16185 uint_least64_t d4max = UINT_LEAST64_MAX;
16186 int_fast8_t e1 = INT_FAST8_MAX;
16187 int_fast8_t e1min = INT_FAST8_MIN;
16188 int_fast16_t e2 = INT_FAST16_MAX;
16189 int_fast16_t e2min = INT_FAST16_MIN;
16190 int_fast32_t e3 = INT_FAST32_MAX;
16191 int_fast32_t e3min = INT_FAST32_MIN;
16192 int_fast64_t e4 = INT_FAST64_MAX;
16193 int_fast64_t e4min = INT_FAST64_MIN;
16194 uint_fast8_t f1 = UINT_FAST8_MAX;
16195 uint_fast16_t f2 = UINT_FAST16_MAX;
16196 uint_fast32_t f3 = UINT_FAST32_MAX;
16197 uint_fast64_t f4 = UINT_FAST64_MAX;
16198 #ifdef INTPTR_MAX
16199 intptr_t g = INTPTR_MAX;
16200 intptr_t gmin = INTPTR_MIN;
16201 #endif
16202 #ifdef UINTPTR_MAX
16203 uintptr_t h = UINTPTR_MAX;
16204 #endif
16205 intmax_t i = INTMAX_MAX;
16206 uintmax_t j = UINTMAX_MAX;
16207
16208 #include <limits.h> /* for CHAR_BIT */
16209 #define TYPE_MINIMUM(t) \
16210 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16211 #define TYPE_MAXIMUM(t) \
16212 ((t) ((t) 0 < (t) -1 \
16213 ? (t) -1 \
16214 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16215 struct s {
16216 int check_PTRDIFF:
16217 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16218 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16219 ? 1 : -1;
16220 /* Detect bug in FreeBSD 6.0 / ia64. */
16221 int check_SIG_ATOMIC:
16222 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16223 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16224 ? 1 : -1;
16225 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16226 int check_WCHAR:
16227 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16228 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16229 ? 1 : -1;
16230 /* Detect bug in mingw. */
16231 int check_WINT:
16232 WINT_MIN == TYPE_MINIMUM (wint_t)
16233 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16234 ? 1 : -1;
16235
16236 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16237 int check_UINT8_C:
16238 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16239 int check_UINT16_C:
16240 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16241
16242 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16243 #ifdef UINT8_MAX
16244 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16245 #endif
16246 #ifdef UINT16_MAX
16247 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16248 #endif
16249 #ifdef UINT32_MAX
16250 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16251 #endif
16252 #ifdef UINT64_MAX
16253 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16254 #endif
16255 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16256 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16257 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16258 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16259 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16260 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16261 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16262 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16263 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16264 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16265 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16266 };
16267
16268 int
16269 main ()
16270 {
16271
16272 ;
16273 return 0;
16274 }
16275 _ACEOF
16276 if ac_fn_c_try_compile "$LINENO"; then :
16277 if test "$cross_compiling" = yes; then :
16278 gl_cv_header_working_stdint_h=yes
16279
16280 else
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283
16284
16285 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16286 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16287 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16288 #include <stdint.h>
16289
16290
16291 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16292 included before <wchar.h>. */
16293 #include <stddef.h>
16294 #include <signal.h>
16295 #if HAVE_WCHAR_H
16296 # include <stdio.h>
16297 # include <time.h>
16298 # include <wchar.h>
16299 #endif
16300
16301
16302 #include <stdio.h>
16303 #include <string.h>
16304 #define MVAL(macro) MVAL1(macro)
16305 #define MVAL1(expression) #expression
16306 static const char *macro_values[] =
16307 {
16308 #ifdef INT8_MAX
16309 MVAL (INT8_MAX),
16310 #endif
16311 #ifdef INT16_MAX
16312 MVAL (INT16_MAX),
16313 #endif
16314 #ifdef INT32_MAX
16315 MVAL (INT32_MAX),
16316 #endif
16317 #ifdef INT64_MAX
16318 MVAL (INT64_MAX),
16319 #endif
16320 #ifdef UINT8_MAX
16321 MVAL (UINT8_MAX),
16322 #endif
16323 #ifdef UINT16_MAX
16324 MVAL (UINT16_MAX),
16325 #endif
16326 #ifdef UINT32_MAX
16327 MVAL (UINT32_MAX),
16328 #endif
16329 #ifdef UINT64_MAX
16330 MVAL (UINT64_MAX),
16331 #endif
16332 NULL
16333 };
16334
16335 int
16336 main ()
16337 {
16338
16339 const char **mv;
16340 for (mv = macro_values; *mv != NULL; mv++)
16341 {
16342 const char *value = *mv;
16343 /* Test whether it looks like a cast expression. */
16344 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16345 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16346 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16347 || strncmp (value, "((int)"/*)*/, 6) == 0
16348 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16349 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16350 return mv - macro_values + 1;
16351 }
16352 return 0;
16353
16354 ;
16355 return 0;
16356 }
16357 _ACEOF
16358 if ac_fn_c_try_run "$LINENO"; then :
16359 gl_cv_header_working_stdint_h=yes
16360 fi
16361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16362 conftest.$ac_objext conftest.beam conftest.$ac_ext
16363 fi
16364
16365
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368
16369 fi
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16371 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16372 fi
16373 if test "$gl_cv_header_working_stdint_h" = yes; then
16374 STDINT_H=
16375 else
16376 for ac_header in sys/inttypes.h sys/bitypes.h
16377 do :
16378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16379 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16380 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16381 cat >>confdefs.h <<_ACEOF
16382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16383 _ACEOF
16384
16385 fi
16386
16387 done
16388
16389 if test $ac_cv_header_sys_inttypes_h = yes; then
16390 HAVE_SYS_INTTYPES_H=1
16391 else
16392 HAVE_SYS_INTTYPES_H=0
16393 fi
16394
16395 if test $ac_cv_header_sys_bitypes_h = yes; then
16396 HAVE_SYS_BITYPES_H=1
16397 else
16398 HAVE_SYS_BITYPES_H=0
16399 fi
16400
16401
16402
16403
16404 if test $APPLE_UNIVERSAL_BUILD = 0; then
16405
16406
16407 for gltype in ptrdiff_t size_t ; do
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16409 $as_echo_n "checking for bit size of $gltype... " >&6; }
16410 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16411 $as_echo_n "(cached) " >&6
16412 else
16413 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16414 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16415 included before <wchar.h>. */
16416 #include <stddef.h>
16417 #include <signal.h>
16418 #if HAVE_WCHAR_H
16419 # include <stdio.h>
16420 # include <time.h>
16421 # include <wchar.h>
16422 #endif
16423
16424 #include <limits.h>"; then :
16425
16426 else
16427 result=unknown
16428 fi
16429
16430 eval gl_cv_bitsizeof_${gltype}=\$result
16431
16432 fi
16433 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16435 $as_echo "$ac_res" >&6; }
16436 eval result=\$gl_cv_bitsizeof_${gltype}
16437 if test $result = unknown; then
16438 result=0
16439 fi
16440 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16441 cat >>confdefs.h <<_ACEOF
16442 #define BITSIZEOF_${GLTYPE} $result
16443 _ACEOF
16444
16445 eval BITSIZEOF_${GLTYPE}=\$result
16446 done
16447
16448
16449 fi
16450
16451
16452 for gltype in sig_atomic_t wchar_t wint_t ; do
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16454 $as_echo_n "checking for bit size of $gltype... " >&6; }
16455 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16456 $as_echo_n "(cached) " >&6
16457 else
16458 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16459 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16460 included before <wchar.h>. */
16461 #include <stddef.h>
16462 #include <signal.h>
16463 #if HAVE_WCHAR_H
16464 # include <stdio.h>
16465 # include <time.h>
16466 # include <wchar.h>
16467 #endif
16468
16469 #include <limits.h>"; then :
16470
16471 else
16472 result=unknown
16473 fi
16474
16475 eval gl_cv_bitsizeof_${gltype}=\$result
16476
16477 fi
16478 eval ac_res=\$gl_cv_bitsizeof_${gltype}
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16480 $as_echo "$ac_res" >&6; }
16481 eval result=\$gl_cv_bitsizeof_${gltype}
16482 if test $result = unknown; then
16483 result=0
16484 fi
16485 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16486 cat >>confdefs.h <<_ACEOF
16487 #define BITSIZEOF_${GLTYPE} $result
16488 _ACEOF
16489
16490 eval BITSIZEOF_${GLTYPE}=\$result
16491 done
16492
16493
16494
16495
16496 for gltype in sig_atomic_t wchar_t wint_t ; do
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16498 $as_echo_n "checking whether $gltype is signed... " >&6; }
16499 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
16500 $as_echo_n "(cached) " >&6
16501 else
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504
16505 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16506 included before <wchar.h>. */
16507 #include <stddef.h>
16508 #include <signal.h>
16509 #if HAVE_WCHAR_H
16510 # include <stdio.h>
16511 # include <time.h>
16512 # include <wchar.h>
16513 #endif
16514
16515 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16516 int
16517 main ()
16518 {
16519
16520 ;
16521 return 0;
16522 }
16523 _ACEOF
16524 if ac_fn_c_try_compile "$LINENO"; then :
16525 result=yes
16526 else
16527 result=no
16528 fi
16529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 eval gl_cv_type_${gltype}_signed=\$result
16531
16532 fi
16533 eval ac_res=\$gl_cv_type_${gltype}_signed
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16535 $as_echo "$ac_res" >&6; }
16536 eval result=\$gl_cv_type_${gltype}_signed
16537 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16538 if test "$result" = yes; then
16539 cat >>confdefs.h <<_ACEOF
16540 #define HAVE_SIGNED_${GLTYPE} 1
16541 _ACEOF
16542
16543 eval HAVE_SIGNED_${GLTYPE}=1
16544 else
16545 eval HAVE_SIGNED_${GLTYPE}=0
16546 fi
16547 done
16548
16549
16550 gl_cv_type_ptrdiff_t_signed=yes
16551 gl_cv_type_size_t_signed=no
16552 if test $APPLE_UNIVERSAL_BUILD = 0; then
16553
16554
16555 for gltype in ptrdiff_t size_t ; do
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16557 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16558 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16559 $as_echo_n "(cached) " >&6
16560 else
16561 eval gl_cv_type_${gltype}_suffix=no
16562 eval result=\$gl_cv_type_${gltype}_signed
16563 if test "$result" = yes; then
16564 glsufu=
16565 else
16566 glsufu=u
16567 fi
16568 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16569 case $glsuf in
16570 '') gltype1='int';;
16571 l) gltype1='long int';;
16572 ll) gltype1='long long int';;
16573 i64) gltype1='__int64';;
16574 u) gltype1='unsigned int';;
16575 ul) gltype1='unsigned long int';;
16576 ull) gltype1='unsigned long long int';;
16577 ui64)gltype1='unsigned __int64';;
16578 esac
16579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16581
16582 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16583 included before <wchar.h>. */
16584 #include <stddef.h>
16585 #include <signal.h>
16586 #if HAVE_WCHAR_H
16587 # include <stdio.h>
16588 # include <time.h>
16589 # include <wchar.h>
16590 #endif
16591
16592 extern $gltype foo;
16593 extern $gltype1 foo;
16594 int
16595 main ()
16596 {
16597
16598 ;
16599 return 0;
16600 }
16601 _ACEOF
16602 if ac_fn_c_try_compile "$LINENO"; then :
16603 eval gl_cv_type_${gltype}_suffix=\$glsuf
16604 fi
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 eval result=\$gl_cv_type_${gltype}_suffix
16607 test "$result" != no && break
16608 done
16609 fi
16610 eval ac_res=\$gl_cv_type_${gltype}_suffix
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16612 $as_echo "$ac_res" >&6; }
16613 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16614 eval result=\$gl_cv_type_${gltype}_suffix
16615 test "$result" = no && result=
16616 eval ${GLTYPE}_SUFFIX=\$result
16617 cat >>confdefs.h <<_ACEOF
16618 #define ${GLTYPE}_SUFFIX $result
16619 _ACEOF
16620
16621 done
16622
16623
16624 fi
16625
16626
16627 for gltype in sig_atomic_t wchar_t wint_t ; do
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16629 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16630 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16631 $as_echo_n "(cached) " >&6
16632 else
16633 eval gl_cv_type_${gltype}_suffix=no
16634 eval result=\$gl_cv_type_${gltype}_signed
16635 if test "$result" = yes; then
16636 glsufu=
16637 else
16638 glsufu=u
16639 fi
16640 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16641 case $glsuf in
16642 '') gltype1='int';;
16643 l) gltype1='long int';;
16644 ll) gltype1='long long int';;
16645 i64) gltype1='__int64';;
16646 u) gltype1='unsigned int';;
16647 ul) gltype1='unsigned long int';;
16648 ull) gltype1='unsigned long long int';;
16649 ui64)gltype1='unsigned __int64';;
16650 esac
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653
16654 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16655 included before <wchar.h>. */
16656 #include <stddef.h>
16657 #include <signal.h>
16658 #if HAVE_WCHAR_H
16659 # include <stdio.h>
16660 # include <time.h>
16661 # include <wchar.h>
16662 #endif
16663
16664 extern $gltype foo;
16665 extern $gltype1 foo;
16666 int
16667 main ()
16668 {
16669
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_compile "$LINENO"; then :
16675 eval gl_cv_type_${gltype}_suffix=\$glsuf
16676 fi
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 eval result=\$gl_cv_type_${gltype}_suffix
16679 test "$result" != no && break
16680 done
16681 fi
16682 eval ac_res=\$gl_cv_type_${gltype}_suffix
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16684 $as_echo "$ac_res" >&6; }
16685 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16686 eval result=\$gl_cv_type_${gltype}_suffix
16687 test "$result" = no && result=
16688 eval ${GLTYPE}_SUFFIX=\$result
16689 cat >>confdefs.h <<_ACEOF
16690 #define ${GLTYPE}_SUFFIX $result
16691 _ACEOF
16692
16693 done
16694
16695
16696
16697 STDINT_H=stdint.h
16698 fi
16699
16700
16701 # Code from module stdlib:
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712 if test $gl_cv_have_include_next = yes; then
16713 gl_cv_next_stdlib_h='<'stdlib.h'>'
16714 else
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16716 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16717 if ${gl_cv_next_stdlib_h+:} false; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720
16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722 /* end confdefs.h. */
16723 #include <stdlib.h>
16724
16725 _ACEOF
16726 case "$host_os" in
16727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16728 *) gl_absname_cpp="$ac_cpp" ;;
16729 esac
16730 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16731 sed -n '\#/stdlib.h#{
16732 s#.*"\(.*/stdlib.h\)".*#\1#
16733 s#^/[^/]#//&#
16734 p
16735 q
16736 }'`'"'
16737
16738
16739 fi
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16741 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16742 fi
16743 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16744
16745 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16746 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16747 gl_next_as_first_directive='<'stdlib.h'>'
16748 else
16749 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16750 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16751 fi
16752 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16753
16754
16755
16756
16757
16758
16759
16760 # Code from module strftime:
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
16772
16773
16774 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16775
16776
16777
16778
16779
16780
16781
16782 $as_echo "#define my_strftime nstrftime" >>confdefs.h
16783
16784
16785
16786 # Code from module time:
16787
16788
16789
16790 # Code from module time_r:
16791
16792
16793
16794
16795
16796
16797
16798 if test $ac_cv_have_decl_localtime_r = no; then
16799 HAVE_DECL_LOCALTIME_R=0
16800 fi
16801
16802
16803 if test $ac_cv_func_localtime_r = yes; then
16804 HAVE_LOCALTIME_R=1
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
16806 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
16807 if ${gl_cv_time_r_posix+:} false; then :
16808 $as_echo_n "(cached) " >&6
16809 else
16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16811 /* end confdefs.h. */
16812 #include <time.h>
16813 int
16814 main ()
16815 {
16816 /* We don't need to append 'restrict's to the argument types,
16817 even though the POSIX signature has the 'restrict's,
16818 since C99 says they can't affect type compatibility. */
16819 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
16820 if (ptr) return 0;
16821 /* Check the return type is a pointer.
16822 On HP-UX 10 it is 'int'. */
16823 *localtime_r (0, 0);
16824 ;
16825 return 0;
16826 }
16827
16828 _ACEOF
16829 if ac_fn_c_try_compile "$LINENO"; then :
16830 gl_cv_time_r_posix=yes
16831 else
16832 gl_cv_time_r_posix=no
16833 fi
16834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16835
16836 fi
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
16838 $as_echo "$gl_cv_time_r_posix" >&6; }
16839 if test $gl_cv_time_r_posix = yes; then
16840 REPLACE_LOCALTIME_R=0
16841 else
16842 REPLACE_LOCALTIME_R=1
16843 fi
16844 else
16845 HAVE_LOCALTIME_R=0
16846 fi
16847 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
16848
16849
16850
16851
16852
16853
16854
16855
16856 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
16857
16858
16859 :
16860
16861 fi
16862
16863
16864
16865
16866 GNULIB_TIME_R=1
16867
16868
16869
16870 # Code from module unistd:
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884 if test $gl_cv_have_include_next = yes; then
16885 gl_cv_next_unistd_h='<'unistd.h'>'
16886 else
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16888 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16889 if ${gl_cv_next_unistd_h+:} false; then :
16890 $as_echo_n "(cached) " >&6
16891 else
16892
16893 if test $ac_cv_header_unistd_h = yes; then
16894
16895
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898 #include <unistd.h>
16899
16900 _ACEOF
16901 case "$host_os" in
16902 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16903 *) gl_absname_cpp="$ac_cpp" ;;
16904 esac
16905 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16906 sed -n '\#/unistd.h#{
16907 s#.*"\(.*/unistd.h\)".*#\1#
16908 s#^/[^/]#//&#
16909 p
16910 q
16911 }'`'"'
16912 else
16913 gl_cv_next_unistd_h='<'unistd.h'>'
16914 fi
16915
16916
16917 fi
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
16919 $as_echo "$gl_cv_next_unistd_h" >&6; }
16920 fi
16921 NEXT_UNISTD_H=$gl_cv_next_unistd_h
16922
16923 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16924 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16925 gl_next_as_first_directive='<'unistd.h'>'
16926 else
16927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16928 gl_next_as_first_directive=$gl_cv_next_unistd_h
16929 fi
16930 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
16931
16932
16933
16934
16935 if test $ac_cv_header_unistd_h = yes; then
16936 HAVE_UNISTD_H=1
16937 else
16938 HAVE_UNISTD_H=0
16939 fi
16940
16941
16942
16943
16944 # Code from module warn-on-use:
16945 # End of code from modules
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955 gltests_libdeps=
16956 gltests_ltlibdeps=
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966 gl_source_base='tests'
16967 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
16968
16969 gl_module_indicator_condition=$gltests_WITNESS
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979 LIBGNU_LIBDEPS="$gl_libdeps"
16980
16981 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
16982
16983
16984
16985 # UNIX98 PTYs.
16986 for ac_func in grantpt
16987 do :
16988 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
16989 if test "x$ac_cv_func_grantpt" = xyes; then :
16990 cat >>confdefs.h <<_ACEOF
16991 #define HAVE_GRANTPT 1
16992 _ACEOF
16993
16994 fi
16995 done
16996
16997
16998 # PTY-related GNU extensions.
16999 for ac_func in getpt
17000 do :
17001 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
17002 if test "x$ac_cv_func_getpt" = xyes; then :
17003 cat >>confdefs.h <<_ACEOF
17004 #define HAVE_GETPT 1
17005 _ACEOF
17006
17007 fi
17008 done
17009
17010
17011 # Check this now, so that we will NOT find the above functions in ncurses.
17012 # That is because we have not set up to link ncurses in lib-src.
17013 # It's better to believe a function is not available
17014 # than to expect to find it in ncurses.
17015 # Also we need tputs and friends to be able to build at all.
17016 have_tputs_et_al=true
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17018 $as_echo_n "checking for library containing tputs... " >&6; }
17019 if ${ac_cv_search_tputs+:} false; then :
17020 $as_echo_n "(cached) " >&6
17021 else
17022 ac_func_search_save_LIBS=$LIBS
17023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17024 /* end confdefs.h. */
17025
17026 /* Override any GCC internal prototype to avoid an error.
17027 Use char because int might match the return type of a GCC
17028 builtin and then its argument prototype would still apply. */
17029 #ifdef __cplusplus
17030 extern "C"
17031 #endif
17032 char tputs ();
17033 int
17034 main ()
17035 {
17036 return tputs ();
17037 ;
17038 return 0;
17039 }
17040 _ACEOF
17041 for ac_lib in '' ncurses terminfo termcap; do
17042 if test -z "$ac_lib"; then
17043 ac_res="none required"
17044 else
17045 ac_res=-l$ac_lib
17046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17047 fi
17048 if ac_fn_c_try_link "$LINENO"; then :
17049 ac_cv_search_tputs=$ac_res
17050 fi
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext
17053 if ${ac_cv_search_tputs+:} false; then :
17054 break
17055 fi
17056 done
17057 if ${ac_cv_search_tputs+:} false; then :
17058
17059 else
17060 ac_cv_search_tputs=no
17061 fi
17062 rm conftest.$ac_ext
17063 LIBS=$ac_func_search_save_LIBS
17064 fi
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17066 $as_echo "$ac_cv_search_tputs" >&6; }
17067 ac_res=$ac_cv_search_tputs
17068 if test "$ac_res" != no; then :
17069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17070
17071 else
17072 have_tputs_et_al=false
17073 fi
17074
17075 if test "$have_tputs_et_al" != true; then
17076 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
17077 Maybe some development libraries/packages are missing? Try installing
17078 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17079 fi
17080 # Must define this when any termcap library is found.
17081
17082 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17083
17084 ## FIXME This was the cpp logic, but I am not sure it is right.
17085 ## The above test has not necessarily found libncurses.
17086 HAVE_LIBNCURSES=yes
17087
17088 ## Use terminfo instead of termcap?
17089 ## Note only system files NOT using terminfo are:
17090 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17091 ## darwin|gnu without ncurses.
17092 TERMINFO=no
17093 LIBS_TERMCAP=
17094 case "$opsys" in
17095 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17096 ## hpux10-20: Use the system provided termcap(3) library.
17097 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17098 ## is necessary. Otherwise Emacs dumps core when run -nw.
17099 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17100
17101 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17102 ## The ncurses library has been moved out of the System framework in
17103 ## Mac OS X 10.2. So if configure detects it, set the command-line
17104 ## option to use it.
17105 darwin|gnu*)
17106 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17107 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17108 TERMINFO=yes
17109 LIBS_TERMCAP="-lncurses"
17110 fi
17111 ;;
17112
17113 freebsd)
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17115 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
17116 if ${emacs_cv_freebsd_terminfo+:} false; then :
17117 $as_echo_n "(cached) " >&6
17118 else
17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120 /* end confdefs.h. */
17121 #include <osreldate.h>
17122 int
17123 main ()
17124 {
17125 #if __FreeBSD_version < 400000
17126 fail;
17127 #endif
17128
17129 ;
17130 return 0;
17131 }
17132 _ACEOF
17133 if ac_fn_c_try_link "$LINENO"; then :
17134 emacs_cv_freebsd_terminfo=yes
17135 else
17136 emacs_cv_freebsd_terminfo=no
17137 fi
17138 rm -f core conftest.err conftest.$ac_objext \
17139 conftest$ac_exeext conftest.$ac_ext
17140 fi
17141
17142
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17144 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17145
17146 if test $emacs_cv_freebsd_terminfo = yes; then
17147 TERMINFO=yes
17148 LIBS_TERMCAP="-lncurses"
17149 else
17150 LIBS_TERMCAP="-ltermcap"
17151 fi
17152 ;;
17153
17154 netbsd)
17155 if test $ac_cv_search_tputs = -lterminfo; then
17156 TERMINFO=yes
17157 LIBS_TERMCAP="-lterminfo"
17158 else
17159 LIBS_TERMCAP="-ltermcap"
17160 fi
17161 ;;
17162
17163 esac
17164
17165 case "$opsys" in
17166 ## hpux: Make sure we get select from libc rather than from libcurses
17167 ## because libcurses on HPUX 10.10 has a broken version of select.
17168 ## We used to use -lc -lcurses, but this may be cleaner.
17169 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17170
17171 openbsd) LIBS_TERMCAP="-lncurses" ;;
17172
17173 ## Must use system termcap, if we use any termcap. It does special things.
17174 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17175 esac
17176
17177 TERMCAP_OBJ=tparam.o
17178 if test $TERMINFO = yes; then
17179
17180 $as_echo "#define TERMINFO 1" >>confdefs.h
17181
17182
17183 ## Default used to be -ltermcap. Add a case above if need something else.
17184 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17185
17186 TERMCAP_OBJ=terminfo.o
17187 fi
17188
17189
17190
17191
17192 # Do we have res_init, for detecting changes in /etc/resolv.conf?
17193 resolv=no
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17196 #include <netinet/in.h>
17197 #include <arpa/nameser.h>
17198 #include <resolv.h>
17199 int
17200 main ()
17201 {
17202 return res_init();
17203 ;
17204 return 0;
17205 }
17206 _ACEOF
17207 if ac_fn_c_try_link "$LINENO"; then :
17208 have_res_init=yes
17209 else
17210 have_res_init=no
17211 fi
17212 rm -f core conftest.err conftest.$ac_objext \
17213 conftest$ac_exeext conftest.$ac_ext
17214 if test "$have_res_init" = no; then
17215 OLIBS="$LIBS"
17216 LIBS="$LIBS -lresolv"
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17218 $as_echo_n "checking for res_init with -lresolv... " >&6; }
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17221 #include <netinet/in.h>
17222 #include <arpa/nameser.h>
17223 #include <resolv.h>
17224 int
17225 main ()
17226 {
17227 return res_init();
17228 ;
17229 return 0;
17230 }
17231 _ACEOF
17232 if ac_fn_c_try_link "$LINENO"; then :
17233 have_res_init=yes
17234 else
17235 have_res_init=no
17236 fi
17237 rm -f core conftest.err conftest.$ac_objext \
17238 conftest$ac_exeext conftest.$ac_ext
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17240 $as_echo "$have_res_init" >&6; }
17241 if test "$have_res_init" = yes ; then
17242 resolv=yes
17243 fi
17244 LIBS="$OLIBS"
17245 fi
17246
17247 if test "$have_res_init" = yes; then
17248
17249 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17250
17251 fi
17252
17253 # Do we need the Hesiod library to provide the support routines?
17254 LIBHESIOD=
17255 if test "$with_hesiod" != no ; then
17256 # Don't set $LIBS here -- see comments above. FIXME which comments?
17257 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
17258 if test "x$ac_cv_func_res_send" = xyes; then :
17259
17260 else
17261 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
17262 if test "x$ac_cv_func___res_send" = xyes; then :
17263
17264 else
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17266 $as_echo_n "checking for res_send in -lresolv... " >&6; }
17267 if ${ac_cv_lib_resolv_res_send+:} false; then :
17268 $as_echo_n "(cached) " >&6
17269 else
17270 ac_check_lib_save_LIBS=$LIBS
17271 LIBS="-lresolv $LIBS"
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17274
17275 /* Override any GCC internal prototype to avoid an error.
17276 Use char because int might match the return type of a GCC
17277 builtin and then its argument prototype would still apply. */
17278 #ifdef __cplusplus
17279 extern "C"
17280 #endif
17281 char res_send ();
17282 int
17283 main ()
17284 {
17285 return res_send ();
17286 ;
17287 return 0;
17288 }
17289 _ACEOF
17290 if ac_fn_c_try_link "$LINENO"; then :
17291 ac_cv_lib_resolv_res_send=yes
17292 else
17293 ac_cv_lib_resolv_res_send=no
17294 fi
17295 rm -f core conftest.err conftest.$ac_objext \
17296 conftest$ac_exeext conftest.$ac_ext
17297 LIBS=$ac_check_lib_save_LIBS
17298 fi
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17300 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
17301 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
17302 resolv=yes
17303 else
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17305 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
17306 if ${ac_cv_lib_resolv___res_send+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308 else
17309 ac_check_lib_save_LIBS=$LIBS
17310 LIBS="-lresolv $LIBS"
17311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312 /* end confdefs.h. */
17313
17314 /* Override any GCC internal prototype to avoid an error.
17315 Use char because int might match the return type of a GCC
17316 builtin and then its argument prototype would still apply. */
17317 #ifdef __cplusplus
17318 extern "C"
17319 #endif
17320 char __res_send ();
17321 int
17322 main ()
17323 {
17324 return __res_send ();
17325 ;
17326 return 0;
17327 }
17328 _ACEOF
17329 if ac_fn_c_try_link "$LINENO"; then :
17330 ac_cv_lib_resolv___res_send=yes
17331 else
17332 ac_cv_lib_resolv___res_send=no
17333 fi
17334 rm -f core conftest.err conftest.$ac_objext \
17335 conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17337 fi
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17339 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
17340 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
17341 resolv=yes
17342 fi
17343
17344 fi
17345
17346 fi
17347
17348 fi
17349
17350 if test "$resolv" = yes ; then
17351 RESOLVLIB=-lresolv
17352 else
17353 RESOLVLIB=
17354 fi
17355 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
17356 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
17357
17358 else
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17360 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
17361 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
17362 $as_echo_n "(cached) " >&6
17363 else
17364 ac_check_lib_save_LIBS=$LIBS
17365 LIBS="-lhesiod $RESOLVLIB $LIBS"
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17368
17369 /* Override any GCC internal prototype to avoid an error.
17370 Use char because int might match the return type of a GCC
17371 builtin and then its argument prototype would still apply. */
17372 #ifdef __cplusplus
17373 extern "C"
17374 #endif
17375 char hes_getmailhost ();
17376 int
17377 main ()
17378 {
17379 return hes_getmailhost ();
17380 ;
17381 return 0;
17382 }
17383 _ACEOF
17384 if ac_fn_c_try_link "$LINENO"; then :
17385 ac_cv_lib_hesiod_hes_getmailhost=yes
17386 else
17387 ac_cv_lib_hesiod_hes_getmailhost=no
17388 fi
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391 LIBS=$ac_check_lib_save_LIBS
17392 fi
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17394 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
17395 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
17396 hesiod=yes
17397 else
17398 :
17399 fi
17400
17401 fi
17402
17403
17404 if test x"$hesiod" = xyes; then
17405
17406 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17407
17408 LIBHESIOD=-lhesiod
17409 fi
17410 fi
17411
17412
17413 # Do we need libresolv (due to res_init or Hesiod)?
17414 if test "$resolv" = yes ; then
17415
17416 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17417
17418 LIBRESOLV=-lresolv
17419 else
17420 LIBRESOLV=
17421 fi
17422
17423
17424 # These tell us which Kerberos-related libraries to use.
17425 COM_ERRLIB=
17426 CRYPTOLIB=
17427 KRB5LIB=
17428 DESLIB=
17429 KRB4LIB=
17430
17431 if test "${with_kerberos}" != no; then
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17433 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
17434 if ${ac_cv_lib_com_err_com_err+:} false; then :
17435 $as_echo_n "(cached) " >&6
17436 else
17437 ac_check_lib_save_LIBS=$LIBS
17438 LIBS="-lcom_err $LIBS"
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441
17442 /* Override any GCC internal prototype to avoid an error.
17443 Use char because int might match the return type of a GCC
17444 builtin and then its argument prototype would still apply. */
17445 #ifdef __cplusplus
17446 extern "C"
17447 #endif
17448 char com_err ();
17449 int
17450 main ()
17451 {
17452 return com_err ();
17453 ;
17454 return 0;
17455 }
17456 _ACEOF
17457 if ac_fn_c_try_link "$LINENO"; then :
17458 ac_cv_lib_com_err_com_err=yes
17459 else
17460 ac_cv_lib_com_err_com_err=no
17461 fi
17462 rm -f core conftest.err conftest.$ac_objext \
17463 conftest$ac_exeext conftest.$ac_ext
17464 LIBS=$ac_check_lib_save_LIBS
17465 fi
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17467 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
17468 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
17469 have_com_err=yes
17470 else
17471 have_com_err=no
17472 fi
17473
17474 if test $have_com_err = yes; then
17475 COM_ERRLIB=-lcom_err
17476 LIBS="$COM_ERRLIB $LIBS"
17477
17478 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17479
17480 fi
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17482 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
17483 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
17484 $as_echo_n "(cached) " >&6
17485 else
17486 ac_check_lib_save_LIBS=$LIBS
17487 LIBS="-lcrypto $LIBS"
17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490
17491 /* Override any GCC internal prototype to avoid an error.
17492 Use char because int might match the return type of a GCC
17493 builtin and then its argument prototype would still apply. */
17494 #ifdef __cplusplus
17495 extern "C"
17496 #endif
17497 char mit_des_cbc_encrypt ();
17498 int
17499 main ()
17500 {
17501 return mit_des_cbc_encrypt ();
17502 ;
17503 return 0;
17504 }
17505 _ACEOF
17506 if ac_fn_c_try_link "$LINENO"; then :
17507 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17508 else
17509 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17514 fi
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17516 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
17517 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
17518 have_crypto=yes
17519 else
17520 have_crypto=no
17521 fi
17522
17523 if test $have_crypto = yes; then
17524 CRYPTOLIB=-lcrypto
17525 LIBS="$CRYPTOLIB $LIBS"
17526
17527 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17528
17529 fi
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17531 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
17532 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
17533 $as_echo_n "(cached) " >&6
17534 else
17535 ac_check_lib_save_LIBS=$LIBS
17536 LIBS="-lk5crypto $LIBS"
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539
17540 /* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply. */
17543 #ifdef __cplusplus
17544 extern "C"
17545 #endif
17546 char mit_des_cbc_encrypt ();
17547 int
17548 main ()
17549 {
17550 return mit_des_cbc_encrypt ();
17551 ;
17552 return 0;
17553 }
17554 _ACEOF
17555 if ac_fn_c_try_link "$LINENO"; then :
17556 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17557 else
17558 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17559 fi
17560 rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17562 LIBS=$ac_check_lib_save_LIBS
17563 fi
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17565 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
17566 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
17567 have_k5crypto=yes
17568 else
17569 have_k5crypto=no
17570 fi
17571
17572 if test $have_k5crypto = yes; then
17573 CRYPTOLIB=-lk5crypto
17574 LIBS="$CRYPTOLIB $LIBS"
17575
17576 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17577
17578 fi
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17580 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17581 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
17582 $as_echo_n "(cached) " >&6
17583 else
17584 ac_check_lib_save_LIBS=$LIBS
17585 LIBS="-lkrb5 $LIBS"
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588
17589 /* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17592 #ifdef __cplusplus
17593 extern "C"
17594 #endif
17595 char krb5_init_context ();
17596 int
17597 main ()
17598 {
17599 return krb5_init_context ();
17600 ;
17601 return 0;
17602 }
17603 _ACEOF
17604 if ac_fn_c_try_link "$LINENO"; then :
17605 ac_cv_lib_krb5_krb5_init_context=yes
17606 else
17607 ac_cv_lib_krb5_krb5_init_context=no
17608 fi
17609 rm -f core conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17612 fi
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17614 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17615 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
17616 have_krb5=yes
17617 else
17618 have_krb5=no
17619 fi
17620
17621 if test $have_krb5=yes; then
17622 KRB5LIB=-lkrb5
17623 LIBS="$KRB5LIB $LIBS"
17624
17625 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17626
17627 fi
17628 if test "${with_kerberos5}" = no; then
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17630 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
17631 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
17632 $as_echo_n "(cached) " >&6
17633 else
17634 ac_check_lib_save_LIBS=$LIBS
17635 LIBS="-ldes425 $LIBS"
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17638
17639 /* Override any GCC internal prototype to avoid an error.
17640 Use char because int might match the return type of a GCC
17641 builtin and then its argument prototype would still apply. */
17642 #ifdef __cplusplus
17643 extern "C"
17644 #endif
17645 char des_cbc_encrypt ();
17646 int
17647 main ()
17648 {
17649 return des_cbc_encrypt ();
17650 ;
17651 return 0;
17652 }
17653 _ACEOF
17654 if ac_fn_c_try_link "$LINENO"; then :
17655 ac_cv_lib_des425_des_cbc_encrypt=yes
17656 else
17657 ac_cv_lib_des425_des_cbc_encrypt=no
17658 fi
17659 rm -f core conftest.err conftest.$ac_objext \
17660 conftest$ac_exeext conftest.$ac_ext
17661 LIBS=$ac_check_lib_save_LIBS
17662 fi
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17664 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
17665 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
17666 have_des425=yes
17667 else
17668 have_des425=no
17669 fi
17670
17671 if test $have_des425 = yes; then
17672 DESLIB=-ldes425
17673 LIBS="$DESLIB $LIBS"
17674
17675 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17676
17677 else
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17679 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
17680 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
17681 $as_echo_n "(cached) " >&6
17682 else
17683 ac_check_lib_save_LIBS=$LIBS
17684 LIBS="-ldes $LIBS"
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17687
17688 /* Override any GCC internal prototype to avoid an error.
17689 Use char because int might match the return type of a GCC
17690 builtin and then its argument prototype would still apply. */
17691 #ifdef __cplusplus
17692 extern "C"
17693 #endif
17694 char des_cbc_encrypt ();
17695 int
17696 main ()
17697 {
17698 return des_cbc_encrypt ();
17699 ;
17700 return 0;
17701 }
17702 _ACEOF
17703 if ac_fn_c_try_link "$LINENO"; then :
17704 ac_cv_lib_des_des_cbc_encrypt=yes
17705 else
17706 ac_cv_lib_des_des_cbc_encrypt=no
17707 fi
17708 rm -f core conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17710 LIBS=$ac_check_lib_save_LIBS
17711 fi
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17713 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
17714 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
17715 have_des=yes
17716 else
17717 have_des=no
17718 fi
17719
17720 if test $have_des = yes; then
17721 DESLIB=-ldes
17722 LIBS="$DESLIB $LIBS"
17723
17724 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17725
17726 fi
17727 fi
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17729 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
17730 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
17731 $as_echo_n "(cached) " >&6
17732 else
17733 ac_check_lib_save_LIBS=$LIBS
17734 LIBS="-lkrb4 $LIBS"
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17737
17738 /* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17741 #ifdef __cplusplus
17742 extern "C"
17743 #endif
17744 char krb_get_cred ();
17745 int
17746 main ()
17747 {
17748 return krb_get_cred ();
17749 ;
17750 return 0;
17751 }
17752 _ACEOF
17753 if ac_fn_c_try_link "$LINENO"; then :
17754 ac_cv_lib_krb4_krb_get_cred=yes
17755 else
17756 ac_cv_lib_krb4_krb_get_cred=no
17757 fi
17758 rm -f core conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17760 LIBS=$ac_check_lib_save_LIBS
17761 fi
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
17763 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
17764 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
17765 have_krb4=yes
17766 else
17767 have_krb4=no
17768 fi
17769
17770 if test $have_krb4 = yes; then
17771 KRB4LIB=-lkrb4
17772 LIBS="$KRB4LIB $LIBS"
17773
17774 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
17775
17776 else
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
17778 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
17779 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
17780 $as_echo_n "(cached) " >&6
17781 else
17782 ac_check_lib_save_LIBS=$LIBS
17783 LIBS="-lkrb $LIBS"
17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h. */
17786
17787 /* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17790 #ifdef __cplusplus
17791 extern "C"
17792 #endif
17793 char krb_get_cred ();
17794 int
17795 main ()
17796 {
17797 return krb_get_cred ();
17798 ;
17799 return 0;
17800 }
17801 _ACEOF
17802 if ac_fn_c_try_link "$LINENO"; then :
17803 ac_cv_lib_krb_krb_get_cred=yes
17804 else
17805 ac_cv_lib_krb_krb_get_cred=no
17806 fi
17807 rm -f core conftest.err conftest.$ac_objext \
17808 conftest$ac_exeext conftest.$ac_ext
17809 LIBS=$ac_check_lib_save_LIBS
17810 fi
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
17812 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
17813 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
17814 have_krb=yes
17815 else
17816 have_krb=no
17817 fi
17818
17819 if test $have_krb = yes; then
17820 KRB4LIB=-lkrb
17821 LIBS="$KRB4LIB $LIBS"
17822
17823 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
17824
17825 fi
17826 fi
17827 fi
17828
17829 if test "${with_kerberos5}" != no; then
17830 for ac_header in krb5.h
17831 do :
17832 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
17833 if test "x$ac_cv_header_krb5_h" = xyes; then :
17834 cat >>confdefs.h <<_ACEOF
17835 #define HAVE_KRB5_H 1
17836 _ACEOF
17837 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
17838 "
17839 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
17840
17841 cat >>confdefs.h <<_ACEOF
17842 #define HAVE_KRB5_ERROR_TEXT 1
17843 _ACEOF
17844
17845
17846 fi
17847 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
17848 "
17849 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
17850
17851 cat >>confdefs.h <<_ACEOF
17852 #define HAVE_KRB5_ERROR_E_TEXT 1
17853 _ACEOF
17854
17855
17856 fi
17857
17858 fi
17859
17860 done
17861
17862 else
17863 for ac_header in des.h
17864 do :
17865 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
17866 if test "x$ac_cv_header_des_h" = xyes; then :
17867 cat >>confdefs.h <<_ACEOF
17868 #define HAVE_DES_H 1
17869 _ACEOF
17870
17871 else
17872 for ac_header in kerberosIV/des.h
17873 do :
17874 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
17875 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
17876 cat >>confdefs.h <<_ACEOF
17877 #define HAVE_KERBEROSIV_DES_H 1
17878 _ACEOF
17879
17880 else
17881 for ac_header in kerberos/des.h
17882 do :
17883 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
17884 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
17885 cat >>confdefs.h <<_ACEOF
17886 #define HAVE_KERBEROS_DES_H 1
17887 _ACEOF
17888
17889 fi
17890
17891 done
17892
17893 fi
17894
17895 done
17896
17897 fi
17898
17899 done
17900
17901 for ac_header in krb.h
17902 do :
17903 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
17904 if test "x$ac_cv_header_krb_h" = xyes; then :
17905 cat >>confdefs.h <<_ACEOF
17906 #define HAVE_KRB_H 1
17907 _ACEOF
17908
17909 else
17910 for ac_header in kerberosIV/krb.h
17911 do :
17912 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
17913 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
17914 cat >>confdefs.h <<_ACEOF
17915 #define HAVE_KERBEROSIV_KRB_H 1
17916 _ACEOF
17917
17918 else
17919 for ac_header in kerberos/krb.h
17920 do :
17921 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
17922 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
17923 cat >>confdefs.h <<_ACEOF
17924 #define HAVE_KERBEROS_KRB_H 1
17925 _ACEOF
17926
17927 fi
17928
17929 done
17930
17931 fi
17932
17933 done
17934
17935 fi
17936
17937 done
17938
17939 fi
17940 for ac_header in com_err.h
17941 do :
17942 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
17943 if test "x$ac_cv_header_com_err_h" = xyes; then :
17944 cat >>confdefs.h <<_ACEOF
17945 #define HAVE_COM_ERR_H 1
17946 _ACEOF
17947
17948 fi
17949
17950 done
17951
17952 fi
17953
17954
17955
17956
17957
17958
17959
17960 # Solaris requires -lintl if you want strerror (which calls dgettext)
17961 # to return localized messages.
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
17963 $as_echo_n "checking for dgettext in -lintl... " >&6; }
17964 if ${ac_cv_lib_intl_dgettext+:} false; then :
17965 $as_echo_n "(cached) " >&6
17966 else
17967 ac_check_lib_save_LIBS=$LIBS
17968 LIBS="-lintl $LIBS"
17969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17970 /* end confdefs.h. */
17971
17972 /* Override any GCC internal prototype to avoid an error.
17973 Use char because int might match the return type of a GCC
17974 builtin and then its argument prototype would still apply. */
17975 #ifdef __cplusplus
17976 extern "C"
17977 #endif
17978 char dgettext ();
17979 int
17980 main ()
17981 {
17982 return dgettext ();
17983 ;
17984 return 0;
17985 }
17986 _ACEOF
17987 if ac_fn_c_try_link "$LINENO"; then :
17988 ac_cv_lib_intl_dgettext=yes
17989 else
17990 ac_cv_lib_intl_dgettext=no
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994 LIBS=$ac_check_lib_save_LIBS
17995 fi
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
17997 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17998 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
17999 cat >>confdefs.h <<_ACEOF
18000 #define HAVE_LIBINTL 1
18001 _ACEOF
18002
18003 LIBS="-lintl $LIBS"
18004
18005 fi
18006
18007
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18009 $as_echo_n "checking whether localtime caches TZ... " >&6; }
18010 if ${emacs_cv_localtime_cache+:} false; then :
18011 $as_echo_n "(cached) " >&6
18012 else
18013 if test x$ac_cv_func_tzset = xyes; then
18014 if test "$cross_compiling" = yes; then :
18015 # If we have tzset, assume the worst when cross-compiling.
18016 emacs_cv_localtime_cache=yes
18017 else
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18020 #include <time.h>
18021 char TZ_GMT0[] = "TZ=GMT0";
18022 char TZ_PST8[] = "TZ=PST8";
18023 main()
18024 {
18025 time_t now = time ((time_t *) 0);
18026 int hour_GMT0, hour_unset;
18027 if (putenv (TZ_GMT0) != 0)
18028 exit (1);
18029 hour_GMT0 = localtime (&now)->tm_hour;
18030 unsetenv("TZ");
18031 hour_unset = localtime (&now)->tm_hour;
18032 if (putenv (TZ_PST8) != 0)
18033 exit (1);
18034 if (localtime (&now)->tm_hour == hour_GMT0)
18035 exit (1);
18036 unsetenv("TZ");
18037 if (localtime (&now)->tm_hour != hour_unset)
18038 exit (1);
18039 exit (0);
18040 }
18041 _ACEOF
18042 if ac_fn_c_try_run "$LINENO"; then :
18043 emacs_cv_localtime_cache=no
18044 else
18045 emacs_cv_localtime_cache=yes
18046 fi
18047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18048 conftest.$ac_objext conftest.beam conftest.$ac_ext
18049 fi
18050
18051 else
18052 # If we lack tzset, report that localtime does not cache TZ,
18053 # since we can't invalidate the cache if we don't have tzset.
18054 emacs_cv_localtime_cache=no
18055 fi
18056 fi
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18058 $as_echo "$emacs_cv_localtime_cache" >&6; }
18059 if test $emacs_cv_localtime_cache = yes; then
18060
18061 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18062
18063 fi
18064
18065 if test "x$HAVE_TIMEVAL" = xyes; then
18066 for ac_func in gettimeofday
18067 do :
18068 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
18069 if test "x$ac_cv_func_gettimeofday" = xyes; then :
18070 cat >>confdefs.h <<_ACEOF
18071 #define HAVE_GETTIMEOFDAY 1
18072 _ACEOF
18073
18074 fi
18075 done
18076
18077 if test $ac_cv_func_gettimeofday = yes; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18079 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
18080 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
18081 $as_echo_n "(cached) " >&6
18082 else
18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18085
18086 #ifdef TIME_WITH_SYS_TIME
18087 #include <sys/time.h>
18088 #include <time.h>
18089 #else
18090 #ifdef HAVE_SYS_TIME_H
18091 #include <sys/time.h>
18092 #else
18093 #include <time.h>
18094 #endif
18095 #endif
18096 int
18097 main ()
18098 {
18099 struct timeval time;
18100 gettimeofday (&time, 0);
18101 ;
18102 return 0;
18103 }
18104 _ACEOF
18105 if ac_fn_c_try_compile "$LINENO"; then :
18106 emacs_cv_gettimeofday_two_arguments=yes
18107 else
18108 emacs_cv_gettimeofday_two_arguments=no
18109 fi
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 fi
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18113 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18114 if test $emacs_cv_gettimeofday_two_arguments = no; then
18115
18116 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18117
18118 fi
18119 fi
18120 fi
18121
18122 ok_so_far=yes
18123 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
18124 if test "x$ac_cv_func_socket" = xyes; then :
18125
18126 else
18127 ok_so_far=no
18128 fi
18129
18130 if test $ok_so_far = yes; then
18131 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18132 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
18133
18134 else
18135 ok_so_far=no
18136 fi
18137
18138
18139 fi
18140 if test $ok_so_far = yes; then
18141 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
18142 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
18143
18144 else
18145 ok_so_far=no
18146 fi
18147
18148
18149 fi
18150 if test $ok_so_far = yes; then
18151
18152 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18153
18154 fi
18155
18156 if test -f /usr/lpp/X11/bin/smt.exp; then
18157
18158 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18159
18160 fi
18161
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18163 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18164 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18166 $as_echo "yes" >&6; }
18167
18168 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18169
18170 else
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18172 $as_echo "no" >&6; }
18173 fi
18174
18175 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18176 if test "x$ac_cv_type_pid_t" = xyes; then :
18177
18178 else
18179
18180 cat >>confdefs.h <<_ACEOF
18181 #define pid_t int
18182 _ACEOF
18183
18184 fi
18185
18186 for ac_header in vfork.h
18187 do :
18188 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
18189 if test "x$ac_cv_header_vfork_h" = xyes; then :
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_VFORK_H 1
18192 _ACEOF
18193
18194 fi
18195
18196 done
18197
18198 for ac_func in fork vfork
18199 do :
18200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18202 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18203 cat >>confdefs.h <<_ACEOF
18204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18205 _ACEOF
18206
18207 fi
18208 done
18209
18210 if test "x$ac_cv_func_fork" = xyes; then
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18212 $as_echo_n "checking for working fork... " >&6; }
18213 if ${ac_cv_func_fork_works+:} false; then :
18214 $as_echo_n "(cached) " >&6
18215 else
18216 if test "$cross_compiling" = yes; then :
18217 ac_cv_func_fork_works=cross
18218 else
18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220 /* end confdefs.h. */
18221 $ac_includes_default
18222 int
18223 main ()
18224 {
18225
18226 /* By Ruediger Kuhlmann. */
18227 return fork () < 0;
18228
18229 ;
18230 return 0;
18231 }
18232 _ACEOF
18233 if ac_fn_c_try_run "$LINENO"; then :
18234 ac_cv_func_fork_works=yes
18235 else
18236 ac_cv_func_fork_works=no
18237 fi
18238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18239 conftest.$ac_objext conftest.beam conftest.$ac_ext
18240 fi
18241
18242 fi
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18244 $as_echo "$ac_cv_func_fork_works" >&6; }
18245
18246 else
18247 ac_cv_func_fork_works=$ac_cv_func_fork
18248 fi
18249 if test "x$ac_cv_func_fork_works" = xcross; then
18250 case $host in
18251 *-*-amigaos* | *-*-msdosdjgpp*)
18252 # Override, as these systems have only a dummy fork() stub
18253 ac_cv_func_fork_works=no
18254 ;;
18255 *)
18256 ac_cv_func_fork_works=yes
18257 ;;
18258 esac
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18260 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18261 fi
18262 ac_cv_func_vfork_works=$ac_cv_func_vfork
18263 if test "x$ac_cv_func_vfork" = xyes; then
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18265 $as_echo_n "checking for working vfork... " >&6; }
18266 if ${ac_cv_func_vfork_works+:} false; then :
18267 $as_echo_n "(cached) " >&6
18268 else
18269 if test "$cross_compiling" = yes; then :
18270 ac_cv_func_vfork_works=cross
18271 else
18272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18273 /* end confdefs.h. */
18274 /* Thanks to Paul Eggert for this test. */
18275 $ac_includes_default
18276 #include <sys/wait.h>
18277 #ifdef HAVE_VFORK_H
18278 # include <vfork.h>
18279 #endif
18280 /* On some sparc systems, changes by the child to local and incoming
18281 argument registers are propagated back to the parent. The compiler
18282 is told about this with #include <vfork.h>, but some compilers
18283 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18284 static variable whose address is put into a register that is
18285 clobbered by the vfork. */
18286 static void
18287 #ifdef __cplusplus
18288 sparc_address_test (int arg)
18289 # else
18290 sparc_address_test (arg) int arg;
18291 #endif
18292 {
18293 static pid_t child;
18294 if (!child) {
18295 child = vfork ();
18296 if (child < 0) {
18297 perror ("vfork");
18298 _exit(2);
18299 }
18300 if (!child) {
18301 arg = getpid();
18302 write(-1, "", 0);
18303 _exit (arg);
18304 }
18305 }
18306 }
18307
18308 int
18309 main ()
18310 {
18311 pid_t parent = getpid ();
18312 pid_t child;
18313
18314 sparc_address_test (0);
18315
18316 child = vfork ();
18317
18318 if (child == 0) {
18319 /* Here is another test for sparc vfork register problems. This
18320 test uses lots of local variables, at least as many local
18321 variables as main has allocated so far including compiler
18322 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18323 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18324 reuse the register of parent for one of the local variables,
18325 since it will think that parent can't possibly be used any more
18326 in this routine. Assigning to the local variable will thus
18327 munge parent in the parent process. */
18328 pid_t
18329 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18330 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18331 /* Convince the compiler that p..p7 are live; otherwise, it might
18332 use the same hardware register for all 8 local variables. */
18333 if (p != p1 || p != p2 || p != p3 || p != p4
18334 || p != p5 || p != p6 || p != p7)
18335 _exit(1);
18336
18337 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18338 from child file descriptors. If the child closes a descriptor
18339 before it execs or exits, this munges the parent's descriptor
18340 as well. Test for this by closing stdout in the child. */
18341 _exit(close(fileno(stdout)) != 0);
18342 } else {
18343 int status;
18344 struct stat st;
18345
18346 while (wait(&status) != child)
18347 ;
18348 return (
18349 /* Was there some problem with vforking? */
18350 child < 0
18351
18352 /* Did the child fail? (This shouldn't happen.) */
18353 || status
18354
18355 /* Did the vfork/compiler bug occur? */
18356 || parent != getpid()
18357
18358 /* Did the file descriptor bug occur? */
18359 || fstat(fileno(stdout), &st) != 0
18360 );
18361 }
18362 }
18363 _ACEOF
18364 if ac_fn_c_try_run "$LINENO"; then :
18365 ac_cv_func_vfork_works=yes
18366 else
18367 ac_cv_func_vfork_works=no
18368 fi
18369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18370 conftest.$ac_objext conftest.beam conftest.$ac_ext
18371 fi
18372
18373 fi
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18375 $as_echo "$ac_cv_func_vfork_works" >&6; }
18376
18377 fi;
18378 if test "x$ac_cv_func_fork_works" = xcross; then
18379 ac_cv_func_vfork_works=$ac_cv_func_vfork
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18381 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18382 fi
18383
18384 if test "x$ac_cv_func_vfork_works" = xyes; then
18385
18386 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18387
18388 else
18389
18390 $as_echo "#define vfork fork" >>confdefs.h
18391
18392 fi
18393 if test "x$ac_cv_func_fork_works" = xyes; then
18394
18395 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18396
18397 fi
18398
18399
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18401 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18402 if ${emacs_cv_langinfo_codeset+:} false; then :
18403 $as_echo_n "(cached) " >&6
18404 else
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407 #include <langinfo.h>
18408 int
18409 main ()
18410 {
18411 char* cs = nl_langinfo(CODESET);
18412 ;
18413 return 0;
18414 }
18415 _ACEOF
18416 if ac_fn_c_try_link "$LINENO"; then :
18417 emacs_cv_langinfo_codeset=yes
18418 else
18419 emacs_cv_langinfo_codeset=no
18420 fi
18421 rm -f core conftest.err conftest.$ac_objext \
18422 conftest$ac_exeext conftest.$ac_ext
18423
18424 fi
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18426 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
18427 if test $emacs_cv_langinfo_codeset = yes; then
18428
18429 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18430
18431 fi
18432
18433 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18434 if test "x$ac_cv_type_size_t" = xyes; then :
18435
18436 cat >>confdefs.h <<_ACEOF
18437 #define HAVE_SIZE_T 1
18438 _ACEOF
18439
18440
18441 fi
18442
18443
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18445 $as_echo_n "checking for mbstate_t... " >&6; }
18446 if ${ac_cv_type_mbstate_t+:} false; then :
18447 $as_echo_n "(cached) " >&6
18448 else
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18451 $ac_includes_default
18452 # include <wchar.h>
18453 int
18454 main ()
18455 {
18456 mbstate_t x; return sizeof x;
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 if ac_fn_c_try_compile "$LINENO"; then :
18462 ac_cv_type_mbstate_t=yes
18463 else
18464 ac_cv_type_mbstate_t=no
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467 fi
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18469 $as_echo "$ac_cv_type_mbstate_t" >&6; }
18470 if test $ac_cv_type_mbstate_t = yes; then
18471
18472 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18473
18474 else
18475
18476 $as_echo "#define mbstate_t int" >>confdefs.h
18477
18478 fi
18479
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18481 $as_echo_n "checking for C restricted array declarations... " >&6; }
18482 if ${emacs_cv_c_restrict_arr+:} false; then :
18483 $as_echo_n "(cached) " >&6
18484 else
18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18487 void fred (int x[__restrict]);
18488 int
18489 main ()
18490 {
18491
18492 ;
18493 return 0;
18494 }
18495 _ACEOF
18496 if ac_fn_c_try_compile "$LINENO"; then :
18497 emacs_cv_c_restrict_arr=yes
18498 else
18499 emacs_cv_c_restrict_arr=no
18500 fi
18501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502 fi
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18504 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
18505 if test "$emacs_cv_c_restrict_arr" = yes; then
18506
18507 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
18508
18509 fi
18510
18511
18512
18513 # Set up the CFLAGS for real compilation, so we can substitute it.
18514 CFLAGS="$REAL_CFLAGS"
18515 CPPFLAGS="$REAL_CPPFLAGS"
18516
18517 ## Hack to detect a buggy GCC version.
18518 if test "x$GCC" = xyes \
18519 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18520 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
18521 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
18522 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
18523 fi
18524
18525 version=$PACKAGE_VERSION
18526
18527 ### Specify what sort of things we'll be editing into Makefile and config.h.
18528 ### Use configuration here uncanonicalized to avoid exceeding size limits.
18529
18530
18531 ## Unused?
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18553 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18554 ## end of LIBX_BASE, but nothing ever set it.
18555
18556
18557
18558
18559 ## Used in lwlib/Makefile.in.
18560
18561 if test -n "${machfile}"; then
18562 M_FILE="\$(srcdir)/${machfile}"
18563 else
18564 M_FILE=
18565 fi
18566 S_FILE="\$(srcdir)/${opsysfile}"
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577 cat >>confdefs.h <<_ACEOF
18578 #define EMACS_CONFIGURATION "${canonical}"
18579 _ACEOF
18580
18581
18582 cat >>confdefs.h <<_ACEOF
18583 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18584 _ACEOF
18585
18586 if test -n "$machfile"; then
18587
18588 cat >>confdefs.h <<_ACEOF
18589 #define config_machfile "${machfile}"
18590 _ACEOF
18591
18592 fi
18593
18594 cat >>confdefs.h <<_ACEOF
18595 #define config_opsysfile "${opsysfile}"
18596 _ACEOF
18597
18598
18599 XMENU_OBJ=
18600 XOBJ=
18601 FONT_OBJ=
18602 if test "${HAVE_X_WINDOWS}" = "yes" ; then
18603
18604 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18605
18606 XMENU_OBJ=xmenu.o
18607 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18608 FONT_OBJ=xfont.o
18609 if test "$HAVE_XFT" = "yes"; then
18610 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18611 elif test "$HAVE_FREETYPE" = "yes"; then
18612 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
18613 fi
18614
18615 fi
18616
18617
18618
18619
18620 WIDGET_OBJ=
18621 MOTIF_LIBW=
18622 if test "${USE_X_TOOLKIT}" != "none" ; then
18623 WIDGET_OBJ=widget.o
18624
18625 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18626
18627 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18628
18629 $as_echo "#define USE_LUCID 1" >>confdefs.h
18630
18631 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18632
18633 $as_echo "#define USE_MOTIF 1" >>confdefs.h
18634
18635 MOTIF_LIBW=-lXm
18636 case "$opsys" in
18637 gnu-linux)
18638 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18639 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
18640 ;;
18641
18642 unixware)
18643 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18644 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18645 MOTIF_LIBW="MOTIF_LIBW -lXimp"
18646 ;;
18647
18648 aix4-2)
18649 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18650 MOTIF_LIBW="$MOTIF_LIBW -li18n"
18651 ;;
18652 esac
18653 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
18654 fi
18655 fi
18656
18657
18658 TOOLKIT_LIBW=
18659 case "$USE_X_TOOLKIT" in
18660 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
18661 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
18662 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
18663 esac
18664
18665
18666 if test "$USE_X_TOOLKIT" = "none"; then
18667 LIBXT_OTHER="\$(LIBXSM)"
18668 OLDXMENU_TARGET="really-oldXMenu"
18669 else
18670 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18671 OLDXMENU_TARGET="really-lwlib"
18672 fi
18673
18674
18675 ## The X Menu stuff is present in the X10 distribution, but missing
18676 ## from X11. If we have X10, just use the installed library;
18677 ## otherwise, use our own copy.
18678 if test "${HAVE_X11}" = "yes" ; then
18679
18680 $as_echo "#define HAVE_X11 1" >>confdefs.h
18681
18682
18683 if test "$USE_X_TOOLKIT" = "none"; then
18684 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
18685 else
18686 OLDXMENU="\${lwlibdir}/liblw.a"
18687 fi
18688 LIBXMENU="\$(OLDXMENU)"
18689 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
18690 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
18691 else
18692 ## For a syntactically valid Makefile; not actually used for anything.
18693 ## See comments in src/Makefile.in.
18694 OLDXMENU=nothing
18695 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18696 if test "${HAVE_X_WINDOWS}" = "yes"; then
18697 LIBXMENU="-lXMenu"
18698 else
18699 LIBXMENU=
18700 fi
18701 LIBX_OTHER=
18702 OLDXMENU_DEPS=
18703 fi
18704
18705 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
18706 OLDXMENU_TARGET=
18707 OLDXMENU=nothing
18708 LIBXMENU=
18709 OLDXMENU_DEPS=
18710 fi
18711
18712
18713
18714
18715
18716
18717
18718 if test "${HAVE_MENUS}" = "yes" ; then
18719
18720 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
18721
18722 fi
18723
18724 if test "${GNU_MALLOC}" = "yes" ; then
18725
18726 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
18727
18728 fi
18729
18730 RALLOC_OBJ=
18731 if test "${REL_ALLOC}" = "yes" ; then
18732
18733 $as_echo "#define REL_ALLOC 1" >>confdefs.h
18734
18735
18736 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
18737 fi
18738
18739
18740 if test "$opsys" = "cygwin"; then
18741 CYGWIN_OBJ="sheap.o"
18742 ## Cygwin differs because of its unexec().
18743 PRE_ALLOC_OBJ=
18744 POST_ALLOC_OBJ=lastfile.o
18745 else
18746 CYGWIN_OBJ=
18747 PRE_ALLOC_OBJ=lastfile.o
18748 POST_ALLOC_OBJ=
18749 fi
18750
18751
18752
18753
18754
18755 case "$opsys" in
18756 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
18757
18758 darwin)
18759 ## The -headerpad option tells ld (see man page) to leave room at the
18760 ## end of the header for adding load commands. Needed for dumping.
18761 ## 0x690 is the total size of 30 segment load commands (at 56
18762 ## each); under Cocoa 31 commands are required.
18763 if test "$HAVE_NS" = "yes"; then
18764 libs_nsgui="-framework AppKit"
18765 headerpad_extra=6C8
18766 else
18767 libs_nsgui=
18768 headerpad_extra=690
18769 fi
18770 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
18771
18772 ## This is here because src/Makefile.in did some extra fiddling around
18773 ## with LD_SWITCH_SYSTEM. The cpp logic was:
18774 ## #ifndef LD_SWITCH_SYSTEM
18775 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
18776 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
18777 ## not using gcc, darwin system not on an alpha (ie darwin, since
18778 ## darwin + alpha does not occur).
18779 ## Because this was done in src/Makefile.in, the resulting part of
18780 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
18781 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
18782 ## rather than LD_SWITCH_SYSTEM.
18783 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
18784 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
18785 ;;
18786
18787 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
18788 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
18789 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
18790 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
18791 ## had different values in configure (in ac_link) and src/Makefile.in.
18792 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
18793 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
18794
18795 *) LD_SWITCH_SYSTEM_TEMACS= ;;
18796 esac
18797
18798 if test "$NS_IMPL_GNUSTEP" = "yes"; then
18799 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
18800 fi
18801
18802
18803
18804
18805 LD_FIRSTFLAG=
18806 ORDINARY_LINK=
18807 case "$opsys" in
18808 ## gnu: GNU needs its own crt0.
18809 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
18810
18811 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
18812 ## library search parth, i.e. it won't search /usr/lib for libc and
18813 ## friends. Using -nostartfiles instead avoids this problem, and
18814 ## will also work on earlier NetBSD releases.
18815 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
18816
18817 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
18818 ## MkLinux/LinuxPPC needs this.
18819 ## ibms390x only supports opsys = gnu-linux so it can be added here.
18820 gnu-*)
18821 case "$machine" in
18822 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
18823 esac
18824 ;;
18825 esac
18826
18827
18828 if test "x$ORDINARY_LINK" = "xyes"; then
18829
18830 LD_FIRSTFLAG=""
18831
18832 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
18833
18834
18835 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
18836 ## freebsd, gnu-* not on macppc|ibms390x.
18837 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
18838
18839 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
18840 ## places that are difficult to figure out at make time. Fortunately,
18841 ## these same versions allow you to pass arbitrary flags on to the
18842 ## linker, so there is no reason not to use it as a linker.
18843 ##
18844 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
18845 ## searching for libraries in its internal directories, so we have to
18846 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
18847 LD_FIRSTFLAG="-nostdlib"
18848 fi
18849
18850 ## FIXME? What setting of EDIT_LDFLAGS should this have?
18851 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
18852
18853
18854
18855
18856 ## FIXME? The logic here is not precisely the same as that above.
18857 ## There is no check here for a pre-defined LD_FIRSTFLAG.
18858 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
18859 LIB_GCC=
18860 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
18861
18862 case "$opsys" in
18863 freebsd|netbsd|openbsd) LIB_GCC= ;;
18864
18865 gnu-*)
18866 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
18867 ## build on ARM EABI under GNU/Linux. (Bug#5518)
18868 case $host_cpu in
18869 arm*)
18870 LIB_GCC="-lgcc_s"
18871 ;;
18872 *)
18873 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
18874 ## immediately undefine it again and redefine it to empty.
18875 ## Was the C_SWITCH_X_SITE part really necessary?
18876 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
18877 LIB_GCC=
18878 ;;
18879 esac
18880 ;;
18881
18882 ## Ask GCC where to find libgcc.a.
18883 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
18884 esac
18885 fi
18886
18887
18888 TOOLTIP_SUPPORT=
18889 WINDOW_SUPPORT=
18890 ## If we're using X11/GNUstep, define some consequences.
18891 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
18892
18893 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
18894
18895
18896 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
18897
18898 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
18899 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
18900
18901 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
18902 test "$HAVE_X_WINDOWS" = "yes" && \
18903 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
18904
18905 fi
18906
18907
18908
18909
18910
18911
18912
18913 #### Report on what we decided to do.
18914 #### Report GTK as a toolkit, even if it doesn't use Xt.
18915 #### It makes printing result more understandable as using GTK sets
18916 #### toolkit_scroll_bars to yes by default.
18917 if test "${HAVE_GTK}" = "yes"; then
18918 USE_X_TOOLKIT=GTK
18919 fi
18920
18921 and_machfile=
18922 if test -n "$machfile"; then
18923 and_machfile=" and \`${machfile}'"
18924 fi
18925
18926 echo "
18927 Configured for \`${canonical}'.
18928
18929 Where should the build process find the source code? ${srcdir}
18930 What operating system and machine description files should Emacs use?
18931 \`${opsysfile}'${and_machfile}
18932 What compiler should emacs be built with? ${CC} ${CFLAGS}
18933 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
18934 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
18935 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
18936 What window system should Emacs use? ${window_system}
18937 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
18938
18939 if test -n "${x_includes}"; then
18940 echo " Where do we find X Windows header files? ${x_includes}"
18941 else
18942 echo " Where do we find X Windows header files? Standard dirs"
18943 fi
18944 if test -n "${x_libraries}"; then
18945 echo " Where do we find X Windows libraries? ${x_libraries}"
18946 else
18947 echo " Where do we find X Windows libraries? Standard dirs"
18948 fi
18949
18950 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
18951 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
18952 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
18953 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
18954 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
18955 echo " Does Emacs use -lpng? ${HAVE_PNG}"
18956 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
18957 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
18958
18959 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
18960 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
18961 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
18962 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
18963 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
18964 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
18965
18966 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
18967 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
18968 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
18969 echo " Does Emacs use -lxft? ${HAVE_XFT}"
18970
18971 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
18972 echo
18973
18974 if test $USE_XASSERTS = yes; then
18975 echo " Compiling with asserts turned on."
18976 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
18977 fi
18978
18979 echo
18980
18981 if test "$HAVE_NS" = "yes"; then
18982 echo
18983 echo "You must run \"make install\" in order to test the built application.
18984 The installed application will go to nextstep/Emacs.app and can be
18985 run or moved from there."
18986 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
18987 echo "The application will be fully self-contained."
18988 else
18989 echo "The lisp resources for the application will be installed under ${prefix}.
18990 You may need to run \"make install\" with sudo. The application will fail
18991 to run if these resources are not installed."
18992 fi
18993 echo
18994 fi
18995
18996
18997 # Remove any trailing slashes in these variables.
18998 test "${prefix}" != NONE &&
18999 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19000 test "${exec_prefix}" != NONE &&
19001 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19002
19003 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"
19004
19005 ac_config_commands="$ac_config_commands default"
19006
19007 cat >confcache <<\_ACEOF
19008 # This file is a shell script that caches the results of configure
19009 # tests run on this system so they can be shared between configure
19010 # scripts and configure runs, see configure's option --config-cache.
19011 # It is not useful on other systems. If it contains results you don't
19012 # want to keep, you may remove or edit it.
19013 #
19014 # config.status only pays attention to the cache file if you give it
19015 # the --recheck option to rerun configure.
19016 #
19017 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19018 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19019 # following values.
19020
19021 _ACEOF
19022
19023 # The following way of writing the cache mishandles newlines in values,
19024 # but we know of no workaround that is simple, portable, and efficient.
19025 # So, we kill variables containing newlines.
19026 # Ultrix sh set writes to stderr and can't be redirected directly,
19027 # and sets the high bit in the cache file unless we assign to the vars.
19028 (
19029 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19030 eval ac_val=\$$ac_var
19031 case $ac_val in #(
19032 *${as_nl}*)
19033 case $ac_var in #(
19034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19035 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19036 esac
19037 case $ac_var in #(
19038 _ | IFS | as_nl) ;; #(
19039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19040 *) { eval $ac_var=; unset $ac_var;} ;;
19041 esac ;;
19042 esac
19043 done
19044
19045 (set) 2>&1 |
19046 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19047 *${as_nl}ac_space=\ *)
19048 # `set' does not quote correctly, so add quotes: double-quote
19049 # substitution turns \\\\ into \\, and sed turns \\ into \.
19050 sed -n \
19051 "s/'/'\\\\''/g;
19052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19053 ;; #(
19054 *)
19055 # `set' quotes correctly as required by POSIX, so do not add quotes.
19056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19057 ;;
19058 esac |
19059 sort
19060 ) |
19061 sed '
19062 /^ac_cv_env_/b end
19063 t clear
19064 :clear
19065 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19066 t end
19067 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19068 :end' >>confcache
19069 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19070 if test -w "$cache_file"; then
19071 if test "x$cache_file" != "x/dev/null"; then
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19073 $as_echo "$as_me: updating cache $cache_file" >&6;}
19074 if test ! -f "$cache_file" || test -h "$cache_file"; then
19075 cat confcache >"$cache_file"
19076 else
19077 case $cache_file in #(
19078 */* | ?:*)
19079 mv -f confcache "$cache_file"$$ &&
19080 mv -f "$cache_file"$$ "$cache_file" ;; #(
19081 *)
19082 mv -f confcache "$cache_file" ;;
19083 esac
19084 fi
19085 fi
19086 else
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19088 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19089 fi
19090 fi
19091 rm -f confcache
19092
19093 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19094 # Let make expand exec_prefix.
19095 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19096
19097 DEFS=-DHAVE_CONFIG_H
19098
19099 ac_libobjs=
19100 ac_ltlibobjs=
19101 U=
19102 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19103 # 1. Remove the extension, and $U if already installed.
19104 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19105 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19106 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19107 # will be set to the directory where LIBOBJS objects are built.
19108 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19109 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19110 done
19111 LIBOBJS=$ac_libobjs
19112
19113 LTLIBOBJS=$ac_ltlibobjs
19114
19115
19116 if test -n "$EXEEXT"; then
19117 am__EXEEXT_TRUE=
19118 am__EXEEXT_FALSE='#'
19119 else
19120 am__EXEEXT_TRUE='#'
19121 am__EXEEXT_FALSE=
19122 fi
19123
19124 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19125 as_fn_error $? "conditional \"AMDEP\" was never defined.
19126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19127 fi
19128 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19129 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19131 fi
19132
19133 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19134 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19136 fi
19137
19138
19139 gl_libobjs=
19140 gl_ltlibobjs=
19141 if test -n "$gl_LIBOBJS"; then
19142 # Remove the extension.
19143 sed_drop_objext='s/\.o$//;s/\.obj$//'
19144 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19145 gl_libobjs="$gl_libobjs $i.$ac_objext"
19146 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19147 done
19148 fi
19149 gl_LIBOBJS=$gl_libobjs
19150
19151 gl_LTLIBOBJS=$gl_ltlibobjs
19152
19153
19154
19155 gltests_libobjs=
19156 gltests_ltlibobjs=
19157 if test -n "$gltests_LIBOBJS"; then
19158 # Remove the extension.
19159 sed_drop_objext='s/\.o$//;s/\.obj$//'
19160 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19161 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19162 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19163 done
19164 fi
19165 gltests_LIBOBJS=$gltests_libobjs
19166
19167 gltests_LTLIBOBJS=$gltests_ltlibobjs
19168
19169
19170
19171 : "${CONFIG_STATUS=./config.status}"
19172 ac_write_fail=0
19173 ac_clean_files_save=$ac_clean_files
19174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19176 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19177 as_write_fail=0
19178 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19179 #! $SHELL
19180 # Generated by $as_me.
19181 # Run this file to recreate the current configuration.
19182 # Compiler output produced by configure, useful for debugging
19183 # configure, is in config.log if it exists.
19184
19185 debug=false
19186 ac_cs_recheck=false
19187 ac_cs_silent=false
19188
19189 SHELL=\${CONFIG_SHELL-$SHELL}
19190 export SHELL
19191 _ASEOF
19192 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19193 ## -------------------- ##
19194 ## M4sh Initialization. ##
19195 ## -------------------- ##
19196
19197 # Be more Bourne compatible
19198 DUALCASE=1; export DUALCASE # for MKS sh
19199 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19200 emulate sh
19201 NULLCMD=:
19202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19203 # is contrary to our usage. Disable this feature.
19204 alias -g '${1+"$@"}'='"$@"'
19205 setopt NO_GLOB_SUBST
19206 else
19207 case `(set -o) 2>/dev/null` in #(
19208 *posix*) :
19209 set -o posix ;; #(
19210 *) :
19211 ;;
19212 esac
19213 fi
19214
19215
19216 as_nl='
19217 '
19218 export as_nl
19219 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19220 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19221 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19223 # Prefer a ksh shell builtin over an external printf program on Solaris,
19224 # but without wasting forks for bash or zsh.
19225 if test -z "$BASH_VERSION$ZSH_VERSION" \
19226 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19227 as_echo='print -r --'
19228 as_echo_n='print -rn --'
19229 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19230 as_echo='printf %s\n'
19231 as_echo_n='printf %s'
19232 else
19233 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19234 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19235 as_echo_n='/usr/ucb/echo -n'
19236 else
19237 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19238 as_echo_n_body='eval
19239 arg=$1;
19240 case $arg in #(
19241 *"$as_nl"*)
19242 expr "X$arg" : "X\\(.*\\)$as_nl";
19243 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19244 esac;
19245 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19246 '
19247 export as_echo_n_body
19248 as_echo_n='sh -c $as_echo_n_body as_echo'
19249 fi
19250 export as_echo_body
19251 as_echo='sh -c $as_echo_body as_echo'
19252 fi
19253
19254 # The user is always right.
19255 if test "${PATH_SEPARATOR+set}" != set; then
19256 PATH_SEPARATOR=:
19257 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19258 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19259 PATH_SEPARATOR=';'
19260 }
19261 fi
19262
19263
19264 # IFS
19265 # We need space, tab and new line, in precisely that order. Quoting is
19266 # there to prevent editors from complaining about space-tab.
19267 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19268 # splitting by setting IFS to empty value.)
19269 IFS=" "" $as_nl"
19270
19271 # Find who we are. Look in the path if we contain no directory separator.
19272 as_myself=
19273 case $0 in #((
19274 *[\\/]* ) as_myself=$0 ;;
19275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19276 for as_dir in $PATH
19277 do
19278 IFS=$as_save_IFS
19279 test -z "$as_dir" && as_dir=.
19280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19281 done
19282 IFS=$as_save_IFS
19283
19284 ;;
19285 esac
19286 # We did not find ourselves, most probably we were run as `sh COMMAND'
19287 # in which case we are not to be found in the path.
19288 if test "x$as_myself" = x; then
19289 as_myself=$0
19290 fi
19291 if test ! -f "$as_myself"; then
19292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19293 exit 1
19294 fi
19295
19296 # Unset variables that we do not need and which cause bugs (e.g. in
19297 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19298 # suppresses any "Segmentation fault" message there. '((' could
19299 # trigger a bug in pdksh 5.2.14.
19300 for as_var in BASH_ENV ENV MAIL MAILPATH
19301 do eval test x\${$as_var+set} = xset \
19302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19303 done
19304 PS1='$ '
19305 PS2='> '
19306 PS4='+ '
19307
19308 # NLS nuisances.
19309 LC_ALL=C
19310 export LC_ALL
19311 LANGUAGE=C
19312 export LANGUAGE
19313
19314 # CDPATH.
19315 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19316
19317
19318 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19319 # ----------------------------------------
19320 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19321 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19322 # script with STATUS, using 1 if that was 0.
19323 as_fn_error ()
19324 {
19325 as_status=$1; test $as_status -eq 0 && as_status=1
19326 if test "$4"; then
19327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19329 fi
19330 $as_echo "$as_me: error: $2" >&2
19331 as_fn_exit $as_status
19332 } # as_fn_error
19333
19334
19335 # as_fn_set_status STATUS
19336 # -----------------------
19337 # Set $? to STATUS, without forking.
19338 as_fn_set_status ()
19339 {
19340 return $1
19341 } # as_fn_set_status
19342
19343 # as_fn_exit STATUS
19344 # -----------------
19345 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19346 as_fn_exit ()
19347 {
19348 set +e
19349 as_fn_set_status $1
19350 exit $1
19351 } # as_fn_exit
19352
19353 # as_fn_unset VAR
19354 # ---------------
19355 # Portably unset VAR.
19356 as_fn_unset ()
19357 {
19358 { eval $1=; unset $1;}
19359 }
19360 as_unset=as_fn_unset
19361 # as_fn_append VAR VALUE
19362 # ----------------------
19363 # Append the text in VALUE to the end of the definition contained in VAR. Take
19364 # advantage of any shell optimizations that allow amortized linear growth over
19365 # repeated appends, instead of the typical quadratic growth present in naive
19366 # implementations.
19367 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19368 eval 'as_fn_append ()
19369 {
19370 eval $1+=\$2
19371 }'
19372 else
19373 as_fn_append ()
19374 {
19375 eval $1=\$$1\$2
19376 }
19377 fi # as_fn_append
19378
19379 # as_fn_arith ARG...
19380 # ------------------
19381 # Perform arithmetic evaluation on the ARGs, and store the result in the
19382 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19383 # must be portable across $(()) and expr.
19384 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19385 eval 'as_fn_arith ()
19386 {
19387 as_val=$(( $* ))
19388 }'
19389 else
19390 as_fn_arith ()
19391 {
19392 as_val=`expr "$@" || test $? -eq 1`
19393 }
19394 fi # as_fn_arith
19395
19396
19397 if expr a : '\(a\)' >/dev/null 2>&1 &&
19398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19399 as_expr=expr
19400 else
19401 as_expr=false
19402 fi
19403
19404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19405 as_basename=basename
19406 else
19407 as_basename=false
19408 fi
19409
19410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19411 as_dirname=dirname
19412 else
19413 as_dirname=false
19414 fi
19415
19416 as_me=`$as_basename -- "$0" ||
19417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19418 X"$0" : 'X\(//\)$' \| \
19419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19420 $as_echo X/"$0" |
19421 sed '/^.*\/\([^/][^/]*\)\/*$/{
19422 s//\1/
19423 q
19424 }
19425 /^X\/\(\/\/\)$/{
19426 s//\1/
19427 q
19428 }
19429 /^X\/\(\/\).*/{
19430 s//\1/
19431 q
19432 }
19433 s/.*/./; q'`
19434
19435 # Avoid depending upon Character Ranges.
19436 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19437 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19438 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19439 as_cr_digits='0123456789'
19440 as_cr_alnum=$as_cr_Letters$as_cr_digits
19441
19442 ECHO_C= ECHO_N= ECHO_T=
19443 case `echo -n x` in #(((((
19444 -n*)
19445 case `echo 'xy\c'` in
19446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19447 xy) ECHO_C='\c';;
19448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19449 ECHO_T=' ';;
19450 esac;;
19451 *)
19452 ECHO_N='-n';;
19453 esac
19454
19455 rm -f conf$$ conf$$.exe conf$$.file
19456 if test -d conf$$.dir; then
19457 rm -f conf$$.dir/conf$$.file
19458 else
19459 rm -f conf$$.dir
19460 mkdir conf$$.dir 2>/dev/null
19461 fi
19462 if (echo >conf$$.file) 2>/dev/null; then
19463 if ln -s conf$$.file conf$$ 2>/dev/null; then
19464 as_ln_s='ln -s'
19465 # ... but there are two gotchas:
19466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19468 # In both cases, we have to default to `cp -p'.
19469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19470 as_ln_s='cp -p'
19471 elif ln conf$$.file conf$$ 2>/dev/null; then
19472 as_ln_s=ln
19473 else
19474 as_ln_s='cp -p'
19475 fi
19476 else
19477 as_ln_s='cp -p'
19478 fi
19479 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19480 rmdir conf$$.dir 2>/dev/null
19481
19482
19483 # as_fn_mkdir_p
19484 # -------------
19485 # Create "$as_dir" as a directory, including parents if necessary.
19486 as_fn_mkdir_p ()
19487 {
19488
19489 case $as_dir in #(
19490 -*) as_dir=./$as_dir;;
19491 esac
19492 test -d "$as_dir" || eval $as_mkdir_p || {
19493 as_dirs=
19494 while :; do
19495 case $as_dir in #(
19496 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19497 *) as_qdir=$as_dir;;
19498 esac
19499 as_dirs="'$as_qdir' $as_dirs"
19500 as_dir=`$as_dirname -- "$as_dir" ||
19501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19502 X"$as_dir" : 'X\(//\)[^/]' \| \
19503 X"$as_dir" : 'X\(//\)$' \| \
19504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19505 $as_echo X"$as_dir" |
19506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19507 s//\1/
19508 q
19509 }
19510 /^X\(\/\/\)[^/].*/{
19511 s//\1/
19512 q
19513 }
19514 /^X\(\/\/\)$/{
19515 s//\1/
19516 q
19517 }
19518 /^X\(\/\).*/{
19519 s//\1/
19520 q
19521 }
19522 s/.*/./; q'`
19523 test -d "$as_dir" && break
19524 done
19525 test -z "$as_dirs" || eval "mkdir $as_dirs"
19526 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19527
19528
19529 } # as_fn_mkdir_p
19530 if mkdir -p . 2>/dev/null; then
19531 as_mkdir_p='mkdir -p "$as_dir"'
19532 else
19533 test -d ./-p && rmdir ./-p
19534 as_mkdir_p=false
19535 fi
19536
19537 if test -x / >/dev/null 2>&1; then
19538 as_test_x='test -x'
19539 else
19540 if ls -dL / >/dev/null 2>&1; then
19541 as_ls_L_option=L
19542 else
19543 as_ls_L_option=
19544 fi
19545 as_test_x='
19546 eval sh -c '\''
19547 if test -d "$1"; then
19548 test -d "$1/.";
19549 else
19550 case $1 in #(
19551 -*)set "./$1";;
19552 esac;
19553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19554 ???[sx]*):;;*)false;;esac;fi
19555 '\'' sh
19556 '
19557 fi
19558 as_executable_p=$as_test_x
19559
19560 # Sed expression to map a string onto a valid CPP name.
19561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19562
19563 # Sed expression to map a string onto a valid variable name.
19564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19565
19566
19567 exec 6>&1
19568 ## ----------------------------------- ##
19569 ## Main body of $CONFIG_STATUS script. ##
19570 ## ----------------------------------- ##
19571 _ASEOF
19572 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19573
19574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19575 # Save the log message, to keep $0 and so on meaningful, and to
19576 # report actual input values of CONFIG_FILES etc. instead of their
19577 # values after options handling.
19578 ac_log="
19579 This file was extended by emacs $as_me 24.0.50, which was
19580 generated by GNU Autoconf 2.68. Invocation command line was
19581
19582 CONFIG_FILES = $CONFIG_FILES
19583 CONFIG_HEADERS = $CONFIG_HEADERS
19584 CONFIG_LINKS = $CONFIG_LINKS
19585 CONFIG_COMMANDS = $CONFIG_COMMANDS
19586 $ $0 $@
19587
19588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19589 "
19590
19591 _ACEOF
19592
19593 case $ac_config_files in *"
19594 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19595 esac
19596
19597 case $ac_config_headers in *"
19598 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19599 esac
19600
19601
19602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19603 # Files that config.status was made for.
19604 config_files="$ac_config_files"
19605 config_headers="$ac_config_headers"
19606 config_commands="$ac_config_commands"
19607
19608 _ACEOF
19609
19610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19611 ac_cs_usage="\
19612 \`$as_me' instantiates files and other configuration actions
19613 from templates according to the current configuration. Unless the files
19614 and actions are specified as TAGs, all are instantiated by default.
19615
19616 Usage: $0 [OPTION]... [TAG]...
19617
19618 -h, --help print this help, then exit
19619 -V, --version print version number and configuration settings, then exit
19620 --config print configuration, then exit
19621 -q, --quiet, --silent
19622 do not print progress messages
19623 -d, --debug don't remove temporary files
19624 --recheck update $as_me by reconfiguring in the same conditions
19625 --file=FILE[:TEMPLATE]
19626 instantiate the configuration file FILE
19627 --header=FILE[:TEMPLATE]
19628 instantiate the configuration header FILE
19629
19630 Configuration files:
19631 $config_files
19632
19633 Configuration headers:
19634 $config_headers
19635
19636 Configuration commands:
19637 $config_commands
19638
19639 Report bugs to the package provider."
19640
19641 _ACEOF
19642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19643 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19644 ac_cs_version="\\
19645 emacs config.status 24.0.50
19646 configured by $0, generated by GNU Autoconf 2.68,
19647 with options \\"\$ac_cs_config\\"
19648
19649 Copyright (C) 2010 Free Software Foundation, Inc.
19650 This config.status script is free software; the Free Software Foundation
19651 gives unlimited permission to copy, distribute and modify it."
19652
19653 ac_pwd='$ac_pwd'
19654 srcdir='$srcdir'
19655 INSTALL='$INSTALL'
19656 MKDIR_P='$MKDIR_P'
19657 AWK='$AWK'
19658 test -n "\$AWK" || AWK=awk
19659 _ACEOF
19660
19661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19662 # The default lists apply if the user does not specify any file.
19663 ac_need_defaults=:
19664 while test $# != 0
19665 do
19666 case $1 in
19667 --*=?*)
19668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19670 ac_shift=:
19671 ;;
19672 --*=)
19673 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19674 ac_optarg=
19675 ac_shift=:
19676 ;;
19677 *)
19678 ac_option=$1
19679 ac_optarg=$2
19680 ac_shift=shift
19681 ;;
19682 esac
19683
19684 case $ac_option in
19685 # Handling of the options.
19686 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19687 ac_cs_recheck=: ;;
19688 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19689 $as_echo "$ac_cs_version"; exit ;;
19690 --config | --confi | --conf | --con | --co | --c )
19691 $as_echo "$ac_cs_config"; exit ;;
19692 --debug | --debu | --deb | --de | --d | -d )
19693 debug=: ;;
19694 --file | --fil | --fi | --f )
19695 $ac_shift
19696 case $ac_optarg in
19697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19698 '') as_fn_error $? "missing file argument" ;;
19699 esac
19700 as_fn_append CONFIG_FILES " '$ac_optarg'"
19701 ac_need_defaults=false;;
19702 --header | --heade | --head | --hea )
19703 $ac_shift
19704 case $ac_optarg in
19705 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19706 esac
19707 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19708 ac_need_defaults=false;;
19709 --he | --h)
19710 # Conflict between --help and --header
19711 as_fn_error $? "ambiguous option: \`$1'
19712 Try \`$0 --help' for more information.";;
19713 --help | --hel | -h )
19714 $as_echo "$ac_cs_usage"; exit ;;
19715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19717 ac_cs_silent=: ;;
19718
19719 # This is an error.
19720 -*) as_fn_error $? "unrecognized option: \`$1'
19721 Try \`$0 --help' for more information." ;;
19722
19723 *) as_fn_append ac_config_targets " $1"
19724 ac_need_defaults=false ;;
19725
19726 esac
19727 shift
19728 done
19729
19730 ac_configure_extra_args=
19731
19732 if $ac_cs_silent; then
19733 exec 6>/dev/null
19734 ac_configure_extra_args="$ac_configure_extra_args --silent"
19735 fi
19736
19737 _ACEOF
19738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19739 if \$ac_cs_recheck; then
19740 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19741 shift
19742 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19743 CONFIG_SHELL='$SHELL'
19744 export CONFIG_SHELL
19745 exec "\$@"
19746 fi
19747
19748 _ACEOF
19749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19750 exec 5>>config.log
19751 {
19752 echo
19753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19754 ## Running $as_me. ##
19755 _ASBOX
19756 $as_echo "$ac_log"
19757 } >&5
19758
19759 _ACEOF
19760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19761 #
19762 # INIT-COMMANDS
19763 #
19764 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19765 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
19766
19767 _ACEOF
19768
19769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19770
19771 # Handling of arguments.
19772 for ac_config_target in $ac_config_targets
19773 do
19774 case $ac_config_target in
19775 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
19776 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19777 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19778 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19779 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
19780 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
19781 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
19782 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
19783 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
19784 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
19785 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19786 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
19787 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
19788 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
19789 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
19790 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19791
19792 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19793 esac
19794 done
19795
19796
19797 # If the user did not use the arguments to specify the items to instantiate,
19798 # then the envvar interface is used. Set only those that are not.
19799 # We use the long form for the default assignment because of an extremely
19800 # bizarre bug on SunOS 4.1.3.
19801 if $ac_need_defaults; then
19802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19803 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19804 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19805 fi
19806
19807 # Have a temporary directory for convenience. Make it in the build tree
19808 # simply because there is no reason against having it here, and in addition,
19809 # creating and moving files from /tmp can sometimes cause problems.
19810 # Hook for its removal unless debugging.
19811 # Note that there is a small window in which the directory will not be cleaned:
19812 # after its creation but before its name has been assigned to `$tmp'.
19813 $debug ||
19814 {
19815 tmp= ac_tmp=
19816 trap 'exit_status=$?
19817 : "${ac_tmp:=$tmp}"
19818 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19819 ' 0
19820 trap 'as_fn_exit 1' 1 2 13 15
19821 }
19822 # Create a (secure) tmp directory for tmp files.
19823
19824 {
19825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19826 test -d "$tmp"
19827 } ||
19828 {
19829 tmp=./conf$$-$RANDOM
19830 (umask 077 && mkdir "$tmp")
19831 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19832 ac_tmp=$tmp
19833
19834 # Set up the scripts for CONFIG_FILES section.
19835 # No need to generate them if there are no CONFIG_FILES.
19836 # This happens for instance with `./config.status config.h'.
19837 if test -n "$CONFIG_FILES"; then
19838
19839 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19840 ac_cs_awk_getline=:
19841 ac_cs_awk_pipe_init=
19842 ac_cs_awk_read_file='
19843 while ((getline aline < (F[key])) > 0)
19844 print(aline)
19845 close(F[key])'
19846 ac_cs_awk_pipe_fini=
19847 else
19848 ac_cs_awk_getline=false
19849 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19850 ac_cs_awk_read_file='
19851 print "|#_!!_#|"
19852 print "cat " F[key] " &&"
19853 '$ac_cs_awk_pipe_init
19854 # The final `:' finishes the AND list.
19855 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19856 fi
19857 ac_cr=`echo X | tr X '\015'`
19858 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19859 # But we know of no other shell where ac_cr would be empty at this
19860 # point, so we can use a bashism as a fallback.
19861 if test "x$ac_cr" = x; then
19862 eval ac_cr=\$\'\\r\'
19863 fi
19864 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19865 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19866 ac_cs_awk_cr='\\r'
19867 else
19868 ac_cs_awk_cr=$ac_cr
19869 fi
19870
19871 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19872 _ACEOF
19873
19874 # Create commands to substitute file output variables.
19875 {
19876 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19877 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19878 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19879 echo "_ACAWK" &&
19880 echo "_ACEOF"
19881 } >conf$$files.sh &&
19882 . ./conf$$files.sh ||
19883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19884 rm -f conf$$files.sh
19885
19886 {
19887 echo "cat >conf$$subs.awk <<_ACEOF" &&
19888 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19889 echo "_ACEOF"
19890 } >conf$$subs.sh ||
19891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19892 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19893 ac_delim='%!_!# '
19894 for ac_last_try in false false false false false :; do
19895 . ./conf$$subs.sh ||
19896 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19897
19898 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19899 if test $ac_delim_n = $ac_delim_num; then
19900 break
19901 elif $ac_last_try; then
19902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19903 else
19904 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19905 fi
19906 done
19907 rm -f conf$$subs.sh
19908
19909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19910 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19911 _ACEOF
19912 sed -n '
19913 h
19914 s/^/S["/; s/!.*/"]=/
19915 p
19916 g
19917 s/^[^!]*!//
19918 :repl
19919 t repl
19920 s/'"$ac_delim"'$//
19921 t delim
19922 :nl
19923 h
19924 s/\(.\{148\}\)..*/\1/
19925 t more1
19926 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19927 p
19928 n
19929 b repl
19930 :more1
19931 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19932 p
19933 g
19934 s/.\{148\}//
19935 t nl
19936 :delim
19937 h
19938 s/\(.\{148\}\)..*/\1/
19939 t more2
19940 s/["\\]/\\&/g; s/^/"/; s/$/"/
19941 p
19942 b
19943 :more2
19944 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19945 p
19946 g
19947 s/.\{148\}//
19948 t delim
19949 ' <conf$$subs.awk | sed '
19950 /^[^""]/{
19951 N
19952 s/\n//
19953 }
19954 ' >>$CONFIG_STATUS || ac_write_fail=1
19955 rm -f conf$$subs.awk
19956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19957 _ACAWK
19958 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19959 for (key in S) S_is_set[key] = 1
19960 FS = "\a"
19961 \$ac_cs_awk_pipe_init
19962 }
19963 {
19964 line = $ 0
19965 nfields = split(line, field, "@")
19966 substed = 0
19967 len = length(field[1])
19968 for (i = 2; i < nfields; i++) {
19969 key = field[i]
19970 keylen = length(key)
19971 if (S_is_set[key]) {
19972 value = S[key]
19973 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19974 len += length(value) + length(field[++i])
19975 substed = 1
19976 } else
19977 len += 1 + keylen
19978 }
19979 if (nfields == 3 && !substed) {
19980 key = field[2]
19981 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19982 \$ac_cs_awk_read_file
19983 next
19984 }
19985 }
19986 print line
19987 }
19988 \$ac_cs_awk_pipe_fini
19989 _ACAWK
19990 _ACEOF
19991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19994 else
19995 cat
19996 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19997 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19998 _ACEOF
19999
20000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20002 # trailing colons and then remove the whole line if VPATH becomes empty
20003 # (actually we leave an empty line to preserve line numbers).
20004 if test "x$srcdir" = x.; then
20005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20006 h
20007 s///
20008 s/^/:/
20009 s/[ ]*$/:/
20010 s/:\$(srcdir):/:/g
20011 s/:\${srcdir}:/:/g
20012 s/:@srcdir@:/:/g
20013 s/^:*//
20014 s/:*$//
20015 x
20016 s/\(=[ ]*\).*/\1/
20017 G
20018 s/\n//
20019 s/^[^=]*=[ ]*$//
20020 }'
20021 fi
20022
20023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20024 fi # test -n "$CONFIG_FILES"
20025
20026 # Set up the scripts for CONFIG_HEADERS section.
20027 # No need to generate them if there are no CONFIG_HEADERS.
20028 # This happens for instance with `./config.status Makefile'.
20029 if test -n "$CONFIG_HEADERS"; then
20030 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20031 BEGIN {
20032 _ACEOF
20033
20034 # Transform confdefs.h into an awk script `defines.awk', embedded as
20035 # here-document in config.status, that substitutes the proper values into
20036 # config.h.in to produce config.h.
20037
20038 # Create a delimiter string that does not exist in confdefs.h, to ease
20039 # handling of long lines.
20040 ac_delim='%!_!# '
20041 for ac_last_try in false false :; do
20042 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20043 if test -z "$ac_tt"; then
20044 break
20045 elif $ac_last_try; then
20046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20047 else
20048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20049 fi
20050 done
20051
20052 # For the awk script, D is an array of macro values keyed by name,
20053 # likewise P contains macro parameters if any. Preserve backslash
20054 # newline sequences.
20055
20056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20057 sed -n '
20058 s/.\{148\}/&'"$ac_delim"'/g
20059 t rset
20060 :rset
20061 s/^[ ]*#[ ]*define[ ][ ]*/ /
20062 t def
20063 d
20064 :def
20065 s/\\$//
20066 t bsnl
20067 s/["\\]/\\&/g
20068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20069 D["\1"]=" \3"/p
20070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20071 d
20072 :bsnl
20073 s/["\\]/\\&/g
20074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20075 D["\1"]=" \3\\\\\\n"\\/p
20076 t cont
20077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20078 t cont
20079 d
20080 :cont
20081 n
20082 s/.\{148\}/&'"$ac_delim"'/g
20083 t clear
20084 :clear
20085 s/\\$//
20086 t bsnlc
20087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20088 d
20089 :bsnlc
20090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20091 b cont
20092 ' <confdefs.h | sed '
20093 s/'"$ac_delim"'/"\\\
20094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20095
20096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20097 for (key in D) D_is_set[key] = 1
20098 FS = "\a"
20099 }
20100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20101 line = \$ 0
20102 split(line, arg, " ")
20103 if (arg[1] == "#") {
20104 defundef = arg[2]
20105 mac1 = arg[3]
20106 } else {
20107 defundef = substr(arg[1], 2)
20108 mac1 = arg[2]
20109 }
20110 split(mac1, mac2, "(") #)
20111 macro = mac2[1]
20112 prefix = substr(line, 1, index(line, defundef) - 1)
20113 if (D_is_set[macro]) {
20114 # Preserve the white space surrounding the "#".
20115 print prefix "define", macro P[macro] D[macro]
20116 next
20117 } else {
20118 # Replace #undef with comments. This is necessary, for example,
20119 # in the case of _POSIX_SOURCE, which is predefined and required
20120 # on some systems where configure will not decide to define it.
20121 if (defundef == "undef") {
20122 print "/*", prefix defundef, macro, "*/"
20123 next
20124 }
20125 }
20126 }
20127 { print }
20128 _ACAWK
20129 _ACEOF
20130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20132 fi # test -n "$CONFIG_HEADERS"
20133
20134
20135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20136 shift
20137 for ac_tag
20138 do
20139 case $ac_tag in
20140 :[FHLC]) ac_mode=$ac_tag; continue;;
20141 esac
20142 case $ac_mode$ac_tag in
20143 :[FHL]*:*);;
20144 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20145 :[FH]-) ac_tag=-:-;;
20146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20147 esac
20148 ac_save_IFS=$IFS
20149 IFS=:
20150 set x $ac_tag
20151 IFS=$ac_save_IFS
20152 shift
20153 ac_file=$1
20154 shift
20155
20156 case $ac_mode in
20157 :L) ac_source=$1;;
20158 :[FH])
20159 ac_file_inputs=
20160 for ac_f
20161 do
20162 case $ac_f in
20163 -) ac_f="$ac_tmp/stdin";;
20164 *) # Look for the file first in the build tree, then in the source tree
20165 # (if the path is not absolute). The absolute path cannot be DOS-style,
20166 # because $ac_f cannot contain `:'.
20167 test -f "$ac_f" ||
20168 case $ac_f in
20169 [\\/$]*) false;;
20170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20171 esac ||
20172 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20173 esac
20174 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20175 as_fn_append ac_file_inputs " '$ac_f'"
20176 done
20177
20178 # Let's still pretend it is `configure' which instantiates (i.e., don't
20179 # use $as_me), people would be surprised to read:
20180 # /* config.h. Generated by config.status. */
20181 configure_input='Generated from '`
20182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20183 `' by configure.'
20184 if test x"$ac_file" != x-; then
20185 configure_input="$ac_file. $configure_input"
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20187 $as_echo "$as_me: creating $ac_file" >&6;}
20188 fi
20189 # Neutralize special characters interpreted by sed in replacement strings.
20190 case $configure_input in #(
20191 *\&* | *\|* | *\\* )
20192 ac_sed_conf_input=`$as_echo "$configure_input" |
20193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20194 *) ac_sed_conf_input=$configure_input;;
20195 esac
20196
20197 case $ac_tag in
20198 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20200 esac
20201 ;;
20202 esac
20203
20204 ac_dir=`$as_dirname -- "$ac_file" ||
20205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20206 X"$ac_file" : 'X\(//\)[^/]' \| \
20207 X"$ac_file" : 'X\(//\)$' \| \
20208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20209 $as_echo X"$ac_file" |
20210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20211 s//\1/
20212 q
20213 }
20214 /^X\(\/\/\)[^/].*/{
20215 s//\1/
20216 q
20217 }
20218 /^X\(\/\/\)$/{
20219 s//\1/
20220 q
20221 }
20222 /^X\(\/\).*/{
20223 s//\1/
20224 q
20225 }
20226 s/.*/./; q'`
20227 as_dir="$ac_dir"; as_fn_mkdir_p
20228 ac_builddir=.
20229
20230 case "$ac_dir" in
20231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20232 *)
20233 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20234 # A ".." for each directory in $ac_dir_suffix.
20235 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20236 case $ac_top_builddir_sub in
20237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20239 esac ;;
20240 esac
20241 ac_abs_top_builddir=$ac_pwd
20242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20243 # for backward compatibility:
20244 ac_top_builddir=$ac_top_build_prefix
20245
20246 case $srcdir in
20247 .) # We are building in place.
20248 ac_srcdir=.
20249 ac_top_srcdir=$ac_top_builddir_sub
20250 ac_abs_top_srcdir=$ac_pwd ;;
20251 [\\/]* | ?:[\\/]* ) # Absolute name.
20252 ac_srcdir=$srcdir$ac_dir_suffix;
20253 ac_top_srcdir=$srcdir
20254 ac_abs_top_srcdir=$srcdir ;;
20255 *) # Relative name.
20256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20257 ac_top_srcdir=$ac_top_build_prefix$srcdir
20258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20259 esac
20260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20261
20262
20263 case $ac_mode in
20264 :F)
20265 #
20266 # CONFIG_FILE
20267 #
20268
20269 case $INSTALL in
20270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20271 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20272 esac
20273 ac_MKDIR_P=$MKDIR_P
20274 case $MKDIR_P in
20275 [\\/$]* | ?:[\\/]* ) ;;
20276 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20277 esac
20278 _ACEOF
20279
20280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20281 # If the template does not know about datarootdir, expand it.
20282 # FIXME: This hack should be removed a few years after 2.60.
20283 ac_datarootdir_hack=; ac_datarootdir_seen=
20284 ac_sed_dataroot='
20285 /datarootdir/ {
20286 p
20287 q
20288 }
20289 /@datadir@/p
20290 /@docdir@/p
20291 /@infodir@/p
20292 /@localedir@/p
20293 /@mandir@/p'
20294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20295 *datarootdir*) ac_datarootdir_seen=yes;;
20296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20299 _ACEOF
20300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20301 ac_datarootdir_hack='
20302 s&@datadir@&$datadir&g
20303 s&@docdir@&$docdir&g
20304 s&@infodir@&$infodir&g
20305 s&@localedir@&$localedir&g
20306 s&@mandir@&$mandir&g
20307 s&\\\${datarootdir}&$datarootdir&g' ;;
20308 esac
20309 _ACEOF
20310
20311 # Neutralize VPATH when `$srcdir' = `.'.
20312 # Shell code in configure.ac might set extrasub.
20313 # FIXME: do we really want to maintain this feature?
20314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20315 ac_sed_extra="$ac_vpsub
20316 $extrasub
20317 _ACEOF
20318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20319 :t
20320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20321 s|@configure_input@|$ac_sed_conf_input|;t t
20322 s&@top_builddir@&$ac_top_builddir_sub&;t t
20323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20324 s&@srcdir@&$ac_srcdir&;t t
20325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20326 s&@top_srcdir@&$ac_top_srcdir&;t t
20327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20328 s&@builddir@&$ac_builddir&;t t
20329 s&@abs_builddir@&$ac_abs_builddir&;t t
20330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20331 s&@INSTALL@&$ac_INSTALL&;t t
20332 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20333 $ac_datarootdir_hack
20334 "
20335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20336 if $ac_cs_awk_getline; then
20337 $AWK -f "$ac_tmp/subs.awk"
20338 else
20339 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20340 fi \
20341 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20342
20343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20344 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20345 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20346 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20348 which seems to be undefined. Please make sure it is defined" >&5
20349 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20350 which seems to be undefined. Please make sure it is defined" >&2;}
20351
20352 rm -f "$ac_tmp/stdin"
20353 case $ac_file in
20354 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20355 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20356 esac \
20357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20358 ;;
20359 :H)
20360 #
20361 # CONFIG_HEADER
20362 #
20363 if test x"$ac_file" != x-; then
20364 {
20365 $as_echo "/* $configure_input */" \
20366 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20367 } >"$ac_tmp/config.h" \
20368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20369 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20371 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20372 else
20373 rm -f "$ac_file"
20374 mv "$ac_tmp/config.h" "$ac_file" \
20375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20376 fi
20377 else
20378 $as_echo "/* $configure_input */" \
20379 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20380 || as_fn_error $? "could not create -" "$LINENO" 5
20381 fi
20382 # Compute "$ac_file"'s index in $config_headers.
20383 _am_arg="$ac_file"
20384 _am_stamp_count=1
20385 for _am_header in $config_headers :; do
20386 case $_am_header in
20387 $_am_arg | $_am_arg:* )
20388 break ;;
20389 * )
20390 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20391 esac
20392 done
20393 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20394 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20395 X"$_am_arg" : 'X\(//\)[^/]' \| \
20396 X"$_am_arg" : 'X\(//\)$' \| \
20397 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20398 $as_echo X"$_am_arg" |
20399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20400 s//\1/
20401 q
20402 }
20403 /^X\(\/\/\)[^/].*/{
20404 s//\1/
20405 q
20406 }
20407 /^X\(\/\/\)$/{
20408 s//\1/
20409 q
20410 }
20411 /^X\(\/\).*/{
20412 s//\1/
20413 q
20414 }
20415 s/.*/./; q'`/stamp-h$_am_stamp_count
20416 ;;
20417
20418 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20419 $as_echo "$as_me: executing $ac_file commands" >&6;}
20420 ;;
20421 esac
20422
20423
20424 case $ac_file$ac_mode in
20425 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20426 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20427 # are listed without --file. Let's play safe and only enable the eval
20428 # if we detect the quoting.
20429 case $CONFIG_FILES in
20430 *\'*) eval set x "$CONFIG_FILES" ;;
20431 *) set x $CONFIG_FILES ;;
20432 esac
20433 shift
20434 for mf
20435 do
20436 # Strip MF so we end up with the name of the file.
20437 mf=`echo "$mf" | sed -e 's/:.*$//'`
20438 # Check whether this is an Automake generated Makefile or not.
20439 # We used to match only the files named `Makefile.in', but
20440 # some people rename them; so instead we look at the file content.
20441 # Grep'ing the first line is not enough: some people post-process
20442 # each Makefile.in and add a new line on top of each file to say so.
20443 # Grep'ing the whole file is not good either: AIX grep has a line
20444 # limit of 2048, but all sed's we know have understand at least 4000.
20445 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20446 dirpart=`$as_dirname -- "$mf" ||
20447 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20448 X"$mf" : 'X\(//\)[^/]' \| \
20449 X"$mf" : 'X\(//\)$' \| \
20450 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20451 $as_echo X"$mf" |
20452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20453 s//\1/
20454 q
20455 }
20456 /^X\(\/\/\)[^/].*/{
20457 s//\1/
20458 q
20459 }
20460 /^X\(\/\/\)$/{
20461 s//\1/
20462 q
20463 }
20464 /^X\(\/\).*/{
20465 s//\1/
20466 q
20467 }
20468 s/.*/./; q'`
20469 else
20470 continue
20471 fi
20472 # Extract the definition of DEPDIR, am__include, and am__quote
20473 # from the Makefile without running `make'.
20474 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20475 test -z "$DEPDIR" && continue
20476 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20477 test -z "am__include" && continue
20478 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20479 # When using ansi2knr, U may be empty or an underscore; expand it
20480 U=`sed -n 's/^U = //p' < "$mf"`
20481 # Find all dependency output files, they are included files with
20482 # $(DEPDIR) in their names. We invoke sed twice because it is the
20483 # simplest approach to changing $(DEPDIR) to its actual value in the
20484 # expansion.
20485 for file in `sed -n "
20486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20488 # Make sure the directory exists.
20489 test -f "$dirpart/$file" && continue
20490 fdir=`$as_dirname -- "$file" ||
20491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20492 X"$file" : 'X\(//\)[^/]' \| \
20493 X"$file" : 'X\(//\)$' \| \
20494 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20495 $as_echo X"$file" |
20496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20497 s//\1/
20498 q
20499 }
20500 /^X\(\/\/\)[^/].*/{
20501 s//\1/
20502 q
20503 }
20504 /^X\(\/\/\)$/{
20505 s//\1/
20506 q
20507 }
20508 /^X\(\/\).*/{
20509 s//\1/
20510 q
20511 }
20512 s/.*/./; q'`
20513 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20514 # echo "creating $dirpart/$file"
20515 echo '# dummy' > "$dirpart/$file"
20516 done
20517 done
20518 }
20519 ;;
20520 "default":C)
20521
20522 ### Make the necessary directories, if they don't exist.
20523 for dir in etc lisp ; do
20524 test -d ${dir} || mkdir ${dir}
20525 done
20526
20527 echo creating src/epaths.h
20528 ${MAKE-make} epaths-force
20529
20530 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20531 echo creating src/.gdbinit
20532 echo source $srcdir/src/.gdbinit > src/.gdbinit
20533 fi
20534
20535 ;;
20536
20537 esac
20538 done # for ac_tag
20539
20540
20541 as_fn_exit 0
20542 _ACEOF
20543 ac_clean_files=$ac_clean_files_save
20544
20545 test $ac_write_fail = 0 ||
20546 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20547
20548
20549 # configure is writing to config.log, and then calls config.status.
20550 # config.status does its own redirection, appending to config.log.
20551 # Unfortunately, on DOS this fails, as config.log is still kept open
20552 # by configure, so config.status won't be able to write to it; its
20553 # output is simply discarded. So we exec the FD to /dev/null,
20554 # effectively closing config.log, so it can be properly (re)opened and
20555 # appended to by config.status. When coming back to configure, we
20556 # need to make the FD available again.
20557 if test "$no_create" != yes; then
20558 ac_cs_success=:
20559 ac_config_status_args=
20560 test "$silent" = yes &&
20561 ac_config_status_args="$ac_config_status_args --quiet"
20562 exec 5>/dev/null
20563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20564 exec 5>>config.log
20565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20566 # would make configure fail if this is the last instruction.
20567 $ac_cs_success || as_fn_exit 1
20568 fi
20569 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20571 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20572 fi
20573